2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for emacs 24.2.50.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE
=1; export DUALCASE
# for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print
-rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
55 as_echo_n='/usr
/ucb
/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
68 as_echo_n='sh
-c $as_echo_n_body as_echo
'
71 as_echo='sh
-c $as_echo_body as_echo
'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x
; then
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var
in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\
${$as_var+set} = xset \
121 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
134 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
136 if test "x$CONFIG_SHELL" = x
; then
137 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
145 case \`(set -o) 2>/dev/null\` in #(
153 as_required
="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167 exitcode=1; echo positional parameters were not saved.
169 test x\$exitcode = x0 || exit 1"
170 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev
/null
; then :
180 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
183 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
185 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
188 test -z "$as_dir" && as_dir
=.
192 for as_base
in sh bash ksh sh5
; do
193 # Try only shells that exist, to save several forks.
194 as_shell
=$as_dir/$as_base
195 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
197 CONFIG_SHELL
=$as_shell as_have_required
=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
206 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
208 CONFIG_SHELL
=$SHELL as_have_required
=yes
213 if test "x$CONFIG_SHELL" != x
; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
219 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224 if test x
$as_have_required = xno
; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x
${ZSH_VERSION+set} = xset
; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
231 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232 $0: including any error possibly output before this
233 $0: message. Then install a modern shell, or manually run
234 $0: the script under such a shell if you do have one."
240 SHELL
=${CONFIG_SHELL-/bin/sh}
242 # Unset more variables known to interfere with behavior of common tools.
243 CLICOLOR_FORCE
= GREP_OPTIONS
=
244 unset CLICOLOR_FORCE GREP_OPTIONS
246 ## --------------------- ##
247 ## M4sh Shell Functions. ##
248 ## --------------------- ##
251 # Portably unset VAR.
254 { eval $1=; unset $1;}
258 # as_fn_set_status STATUS
259 # -----------------------
260 # Set $? to STATUS, without forking.
268 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
278 # Create "$as_dir" as a directory, including parents if necessary.
283 -*) as_dir
=.
/$as_dir;;
285 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
289 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
292 as_dirs
="'$as_qdir' $as_dirs"
293 as_dir
=`$as_dirname -- "$as_dir" ||
294 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295 X"$as_dir" : 'X\(//\)[^/]' \| \
296 X"$as_dir" : 'X\(//\)$' \| \
297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298 $as_echo X"$as_dir" |
299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
316 test -d "$as_dir" && break
318 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
319 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
323 # as_fn_append VAR VALUE
324 # ----------------------
325 # Append the text in VALUE to the end of the definition contained in VAR. Take
326 # advantage of any shell optimizations that allow amortized linear growth over
327 # repeated appends, instead of the typical quadratic growth present in naive
329 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
330 eval 'as_fn_append ()
343 # Perform arithmetic evaluation on the ARGs, and store the result in the
344 # global $as_val. Take advantage of shells that can avoid forks. The arguments
345 # must be portable across $(()) and expr.
346 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
354 as_val
=`expr "$@" || test $? -eq 1`
359 # as_fn_error ERROR [LINENO LOG_FD]
360 # ---------------------------------
361 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363 # script with status $?, using 1 if that was 0.
366 as_status
=$?
; test $as_status -eq 0 && as_status
=1
368 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
371 $as_echo "$as_me: error: $1" >&2
372 as_fn_exit
$as_status
375 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
376 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
382 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
388 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
394 as_me
=`$as_basename -- "$0" ||
395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396 X"$0" : 'X\(//\)$' \| \
397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
399 sed '/^.*\/\([^/][^/]*\)\/*$/{
413 # Avoid depending upon Character Ranges.
414 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
415 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
417 as_cr_digits
='0123456789'
418 as_cr_alnum
=$as_cr_Letters$as_cr_digits
421 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
422 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
441 chmod +x
"$as_me.lineno" ||
442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
444 # Don't try to exec as it changes $[0], causing all sort of problems
445 # (the dirname of $[0] is not the place where we might find the
446 # original and so on. Autoconf is especially sensitive to this).
448 # Exit status is that of the last command.
452 ECHO_C
= ECHO_N
= ECHO_T
=
453 case `echo -n x` in #(((((
455 case `echo 'xy\c'` in
456 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
458 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
465 rm -f conf$$ conf$$.exe conf$$.
file
466 if test -d conf$$.dir
; then
467 rm -f conf$$.dir
/conf$$.
file
470 mkdir conf$$.dir
2>/dev
/null
472 if (echo >conf$$.
file) 2>/dev
/null
; then
473 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
475 # ... but there are two gotchas:
476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478 # In both cases, we have to default to `cp -p'.
479 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
481 elif ln conf$$.
file conf$$
2>/dev
/null
; then
489 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
490 rmdir conf$$.dir
2>/dev
/null
492 if mkdir
-p .
2>/dev
/null
; then
493 as_mkdir_p
='mkdir -p "$as_dir"'
495 test -d .
/-p && rmdir .
/-p
499 if test -x / >/dev
/null
2>&1; then
502 if ls -dL / >/dev
/null
2>&1; then
509 if test -d "$1"; then
515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516 ???[sx]*):;;*)false;;esac;fi
520 as_executable_p
=$as_test_x
522 # Sed expression to map a string onto a valid CPP name.
523 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
525 # Sed expression to map a string onto a valid variable name.
526 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
529 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
533 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
534 # so uname gets run too.
535 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
540 ac_default_prefix
=/usr
/local
542 ac_config_libobj_dir
=.
549 # Identity of this package.
551 PACKAGE_TARNAME
='emacs'
552 PACKAGE_VERSION
='24.2.50'
553 PACKAGE_STRING
='emacs 24.2.50'
557 ac_unique_file
="src/lisp.h"
558 # Factoring default headers for most tests.
559 ac_includes_default
="\
561 #ifdef HAVE_SYS_TYPES_H
562 # include <sys/types.h>
564 #ifdef HAVE_SYS_STAT_H
565 # include <sys/stat.h>
571 # ifdef HAVE_STDLIB_H
576 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
581 #ifdef HAVE_STRINGS_H
582 # include <strings.h>
584 #ifdef HAVE_INTTYPES_H
585 # include <inttypes.h>
596 gl_getopt_required
=POSIX
597 gl_getopt_required
=POSIX
598 ac_subst_vars
='gltests_LTLIBOBJS
610 LD_SWITCH_SYSTEM_TEMACS
614 gl_GNULIB_ENABLED_verify_FALSE
615 gl_GNULIB_ENABLED_verify_TRUE
616 gl_GNULIB_ENABLED_strtoull_FALSE
617 gl_GNULIB_ENABLED_strtoull_TRUE
618 gl_GNULIB_ENABLED_strtoll_FALSE
619 gl_GNULIB_ENABLED_strtoll_TRUE
620 gl_GNULIB_ENABLED_stat_FALSE
621 gl_GNULIB_ENABLED_stat_TRUE
622 gl_GNULIB_ENABLED_pathmax_FALSE
623 gl_GNULIB_ENABLED_pathmax_TRUE
624 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE
625 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE
626 gl_GNULIB_ENABLED_dosname_FALSE
627 gl_GNULIB_ENABLED_dosname_TRUE
632 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
634 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
635 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
636 TIME_H_DEFINES_STRUCT_TIMESPEC
637 NEXT_AS_FIRST_DIRECTIVE_TIME_H
639 WINDOWS_64_BIT_ST_SIZE
640 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
642 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
644 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
653 REPLACE_STDIO_WRITE_FUNCS
654 REPLACE_STDIO_READ_FUNCS
663 REPLACE_OBSTACK_PRINTF
688 HAVE_DECL_OBSTACK_PRINTF
694 GNULIB_VSPRINTF_POSIX
698 GNULIB_VFPRINTF_POSIX
705 GNULIB_STDIO_H_SIGPIPE
706 GNULIB_STDIO_H_NONBLOCKING
721 GNULIB_OBSTACK_PRINTF_POSIX
722 GNULIB_OBSTACK_PRINTF
747 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
749 GL_GENERATE_STDDEF_H_FALSE
750 GL_GENERATE_STDDEF_H_TRUE
755 GL_GENERATE_STDBOOL_H_FALSE
756 GL_GENERATE_STDBOOL_H_TRUE
758 GL_GENERATE_STDARG_H_FALSE
759 GL_GENERATE_STDARG_H_TRUE
761 NEXT_AS_FIRST_DIRECTIVE_STDARG_H
763 GL_GENERATE_STDALIGN_H_FALSE
764 GL_GENERATE_STDALIGN_H_TRUE
766 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
770 REPLACE_PTHREAD_SIGMASK
772 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
773 HAVE_STRUCT_SIGACTION_SA_SIGACTION
779 HAVE_POSIX_SIGNALBLOCKING
782 GNULIB_SIGNAL_H_SIGPIPE
784 GNULIB_PTHREAD_SIGMASK
786 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H
800 HAVE_DECL_LOCALTIME_R
839 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
841 UINT64_MAX_EQ_ULONG_MAX
842 UINT32_MAX_LT_UINTMAX_MAX
845 INT64_MAX_EQ_LONG_MAX
846 INT32_MAX_LT_INTMAX_MAX
856 GL_GENERATE_STDINT_H_FALSE
857 GL_GENERATE_STDINT_H_TRUE
866 HAVE_SIGNED_SIG_ATOMIC_T
869 BITSIZEOF_SIG_ATOMIC_T
872 APPLE_UNIVERSAL_BUILD
876 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
881 HAVE_UNSIGNED_LONG_LONG_INT
884 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
886 REPLACE_STRUCT_TIMEVAL
892 GNULIB_GL_UNISTD_H_GETOPT
895 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
899 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
914 REPLACE_CANONICALIZE_FILE_NAME
919 HAVE_STRUCT_RANDOM_DATA
941 HAVE_CANONICALIZE_FILE_NAME
971 GNULIB_CANONICALIZE_FILE_NAME
975 GL_GENERATE_EXECINFO_H_FALSE
976 GL_GENERATE_EXECINFO_H_TRUE
979 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
980 UNISTD_H_HAVE_WINSOCK2_H
1001 REPLACE_GETDOMAINNAME
1012 HAVE_DECL_SETHOSTNAME
1013 HAVE_DECL_GETUSERSHELL
1014 HAVE_DECL_GETPAGESIZE
1015 HAVE_DECL_GETLOGIN_R
1016 HAVE_DECL_GETDOMAINNAME
1055 GNULIB_UNISTD_H_SIGPIPE
1056 GNULIB_UNISTD_H_NONBLOCKING
1082 GNULIB_GETDTABLESIZE
1083 GNULIB_GETDOMAINNAME
1100 GL_GENERATE_ALLOCA_H_FALSE
1101 GL_GENERATE_ALLOCA_H_TRUE
1104 GL_COND_LIBTOOL_FALSE
1105 GL_COND_LIBTOOL_TRUE
1136 x_default_search_path
1208 INSTALL_ARCH_INDEP_EXTRA
1210 LD_SWITCH_X_SITE_RPATH
1279 INSTALL_STRIP_PROGRAM
1321 program_transform_name
1332 ac_subst_files
='deps_frag
1336 enable_option_checking
1360 with_toolkit_scroll_bars
1372 with_pkg_config_prog
1376 enable_ns_self_contained
1377 enable_locallisppath
1379 enable_check_lisp_object_type
1382 enable_dependency_tracking
1385 enable_link_time_optimization
1388 ac_precious_vars
='build_alias
1400 # Initialize some variables set by options.
1402 ac_init_version
=false
1403 ac_unrecognized_opts
=
1404 ac_unrecognized_sep
=
1405 # The variables have the same names as the options, with
1406 # dashes changed to underlines.
1407 cache_file
=/dev
/null
1414 program_transform_name
=s
,x
,x
,
1422 # Installation directory options.
1423 # These are left unexpanded so users can "make install exec_prefix=/foo"
1424 # and all the variables that are supposed to be based on exec_prefix
1425 # by default will actually change.
1426 # Use braces instead of parens because sh, perl, etc. also accept them.
1427 # (The list follows the same order as the GNU Coding Standards.)
1428 bindir
='${exec_prefix}/bin'
1429 sbindir
='${exec_prefix}/sbin'
1430 libexecdir
='${exec_prefix}/libexec'
1431 datarootdir
='${prefix}/share'
1432 datadir
='${datarootdir}'
1433 sysconfdir
='${prefix}/etc'
1434 sharedstatedir
='${prefix}/com'
1435 localstatedir
='${prefix}/var'
1436 includedir
='${prefix}/include'
1437 oldincludedir
='/usr/include'
1438 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
1439 infodir
='${datarootdir}/info'
1444 libdir
='${exec_prefix}/lib'
1445 localedir
='${datarootdir}/locale'
1446 mandir
='${datarootdir}/man'
1452 # If the previous option needs an argument, assign it.
1453 if test -n "$ac_prev"; then
1454 eval $ac_prev=\
$ac_option
1460 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1464 # Accept the important Cygnus configure options, so we can diagnose typos.
1466 case $ac_dashdash$ac_option in
1470 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1472 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1473 bindir
=$ac_optarg ;;
1475 -build |
--build |
--buil |
--bui |
--bu)
1476 ac_prev
=build_alias
;;
1477 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1478 build_alias
=$ac_optarg ;;
1480 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1481 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1482 ac_prev
=cache_file
;;
1483 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1484 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1485 cache_file
=$ac_optarg ;;
1487 --config-cache |
-C)
1488 cache_file
=config.cache
;;
1490 -datadir |
--datadir |
--datadi |
--datad)
1492 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1493 datadir
=$ac_optarg ;;
1495 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1496 |
--dataroo |
--dataro |
--datar)
1497 ac_prev
=datarootdir
;;
1498 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1499 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1500 datarootdir
=$ac_optarg ;;
1502 -disable-* |
--disable-*)
1503 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1504 # Reject names that are not valid shell variable names.
1505 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1506 as_fn_error
"invalid feature name: $ac_useropt"
1507 ac_useropt_orig
=$ac_useropt
1508 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1509 case $ac_user_opts in
1511 "enable_
$ac_useropt"
1513 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1514 ac_unrecognized_sep
=', ';;
1516 eval enable_
$ac_useropt=no
;;
1518 -docdir |
--docdir |
--docdi |
--doc |
--do)
1520 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1521 docdir
=$ac_optarg ;;
1523 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1525 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1526 dvidir
=$ac_optarg ;;
1528 -enable-* |
--enable-*)
1529 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1530 # Reject names that are not valid shell variable names.
1531 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1532 as_fn_error
"invalid feature name: $ac_useropt"
1533 ac_useropt_orig
=$ac_useropt
1534 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1535 case $ac_user_opts in
1537 "enable_
$ac_useropt"
1539 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1540 ac_unrecognized_sep
=', ';;
1542 eval enable_
$ac_useropt=\
$ac_optarg ;;
1544 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1545 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1546 |
--exec |
--exe |
--ex)
1547 ac_prev
=exec_prefix
;;
1548 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1549 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1550 |
--exec=* |
--exe=* |
--ex=*)
1551 exec_prefix
=$ac_optarg ;;
1553 -gas |
--gas |
--ga |
--g)
1554 # Obsolete; use --with-gas.
1557 -help |
--help |
--hel |
--he |
-h)
1558 ac_init_help
=long
;;
1559 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1560 ac_init_help
=recursive
;;
1561 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1562 ac_init_help
=short
;;
1564 -host |
--host |
--hos |
--ho)
1565 ac_prev
=host_alias
;;
1566 -host=* |
--host=* |
--hos=* |
--ho=*)
1567 host_alias
=$ac_optarg ;;
1569 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1571 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1573 htmldir
=$ac_optarg ;;
1575 -includedir |
--includedir |
--includedi |
--included |
--include \
1576 |
--includ |
--inclu |
--incl |
--inc)
1577 ac_prev
=includedir
;;
1578 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1579 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1580 includedir
=$ac_optarg ;;
1582 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1584 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1585 infodir
=$ac_optarg ;;
1587 -libdir |
--libdir |
--libdi |
--libd)
1589 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1590 libdir
=$ac_optarg ;;
1592 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1593 |
--libexe |
--libex |
--libe)
1594 ac_prev
=libexecdir
;;
1595 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1596 |
--libexe=* |
--libex=* |
--libe=*)
1597 libexecdir
=$ac_optarg ;;
1599 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1600 ac_prev
=localedir
;;
1601 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1602 localedir
=$ac_optarg ;;
1604 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1605 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1606 ac_prev
=localstatedir
;;
1607 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1608 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1609 localstatedir
=$ac_optarg ;;
1611 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1613 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1614 mandir
=$ac_optarg ;;
1616 -nfp |
--nfp |
--nf)
1617 # Obsolete; use --without-fp.
1620 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1621 |
--no-cr |
--no-c |
-n)
1624 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1625 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1628 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1629 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1630 |
--oldin |
--oldi |
--old |
--ol |
--o)
1631 ac_prev
=oldincludedir
;;
1632 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1633 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1634 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1635 oldincludedir
=$ac_optarg ;;
1637 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1639 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1640 prefix
=$ac_optarg ;;
1642 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1643 |
--program-pre |
--program-pr |
--program-p)
1644 ac_prev
=program_prefix
;;
1645 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1646 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1647 program_prefix
=$ac_optarg ;;
1649 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1650 |
--program-suf |
--program-su |
--program-s)
1651 ac_prev
=program_suffix
;;
1652 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1653 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1654 program_suffix
=$ac_optarg ;;
1656 -program-transform-name |
--program-transform-name \
1657 |
--program-transform-nam |
--program-transform-na \
1658 |
--program-transform-n |
--program-transform- \
1659 |
--program-transform |
--program-transfor \
1660 |
--program-transfo |
--program-transf \
1661 |
--program-trans |
--program-tran \
1662 |
--progr-tra |
--program-tr |
--program-t)
1663 ac_prev
=program_transform_name
;;
1664 -program-transform-name=* |
--program-transform-name=* \
1665 |
--program-transform-nam=* |
--program-transform-na=* \
1666 |
--program-transform-n=* |
--program-transform-=* \
1667 |
--program-transform=* |
--program-transfor=* \
1668 |
--program-transfo=* |
--program-transf=* \
1669 |
--program-trans=* |
--program-tran=* \
1670 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1671 program_transform_name
=$ac_optarg ;;
1673 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1675 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1676 pdfdir
=$ac_optarg ;;
1678 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1680 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1683 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1684 |
-silent |
--silent |
--silen |
--sile |
--sil)
1687 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1689 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1691 sbindir
=$ac_optarg ;;
1693 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1694 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1695 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1697 ac_prev
=sharedstatedir
;;
1698 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1699 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1700 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1702 sharedstatedir
=$ac_optarg ;;
1704 -site |
--site |
--sit)
1706 -site=* |
--site=* |
--sit=*)
1709 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1711 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1712 srcdir
=$ac_optarg ;;
1714 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1715 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1716 ac_prev
=sysconfdir
;;
1717 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1718 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1719 sysconfdir
=$ac_optarg ;;
1721 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1722 ac_prev
=target_alias
;;
1723 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1724 target_alias
=$ac_optarg ;;
1726 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1729 -version |
--version |
--versio |
--versi |
--vers |
-V)
1730 ac_init_version
=: ;;
1733 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1734 # Reject names that are not valid shell variable names.
1735 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1736 as_fn_error
"invalid package name: $ac_useropt"
1737 ac_useropt_orig
=$ac_useropt
1738 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1739 case $ac_user_opts in
1743 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1744 ac_unrecognized_sep
=', ';;
1746 eval with_
$ac_useropt=\
$ac_optarg ;;
1748 -without-* |
--without-*)
1749 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1750 # Reject names that are not valid shell variable names.
1751 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1752 as_fn_error
"invalid package name: $ac_useropt"
1753 ac_useropt_orig
=$ac_useropt
1754 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1755 case $ac_user_opts in
1759 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1760 ac_unrecognized_sep
=', ';;
1762 eval with_
$ac_useropt=no
;;
1765 # Obsolete; use --with-x.
1768 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1769 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1770 ac_prev
=x_includes
;;
1771 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1772 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1773 x_includes
=$ac_optarg ;;
1775 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1776 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1777 ac_prev
=x_libraries
;;
1778 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1779 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1780 x_libraries
=$ac_optarg ;;
1782 -*) as_fn_error
"unrecognized option: \`$ac_option'
1783 Try \`$0 --help' for more information."
1787 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1788 # Reject names that are not valid shell variable names.
1789 case $ac_envvar in #(
1790 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1791 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1793 eval $ac_envvar=\
$ac_optarg
1794 export $ac_envvar ;;
1797 # FIXME: should be removed in autoconf 3.0.
1798 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1799 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1800 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1801 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1807 if test -n "$ac_prev"; then
1808 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1809 as_fn_error
"missing argument to $ac_option"
1812 if test -n "$ac_unrecognized_opts"; then
1813 case $enable_option_checking in
1815 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1816 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1820 # Check all directory arguments for consistency.
1821 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1822 datadir sysconfdir sharedstatedir localstatedir includedir \
1823 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1824 libdir localedir mandir
1826 eval ac_val
=\$
$ac_var
1827 # Remove trailing slashes.
1830 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1831 eval $ac_var=\
$ac_val;;
1833 # Be sure to have absolute directory names.
1835 [\\/$
]* | ?
:[\\/]* ) continue;;
1836 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1838 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1841 # There might be people who depend on the old broken behavior: `$host'
1842 # used to hold the argument of --host etc.
1843 # FIXME: To remove some day.
1846 target
=$target_alias
1848 # FIXME: To remove some day.
1849 if test "x$host_alias" != x
; then
1850 if test "x$build_alias" = x
; then
1851 cross_compiling
=maybe
1852 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1853 If a cross compiler is detected then cross compile mode will be used." >&2
1854 elif test "x$build_alias" != "x$host_alias"; then
1860 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1862 test "$silent" = yes && exec 6>/dev
/null
1865 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1866 ac_ls_di
=`ls -di .` &&
1867 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1868 as_fn_error
"working directory cannot be determined"
1869 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1870 as_fn_error
"pwd does not report name of working directory"
1873 # Find the source files, if location was not specified.
1874 if test -z "$srcdir"; then
1875 ac_srcdir_defaulted
=yes
1876 # Try the directory containing this script, then the parent directory.
1877 ac_confdir
=`$as_dirname -- "$as_myself" ||
1878 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1879 X"$as_myself" : 'X\(//\)[^/]' \| \
1880 X"$as_myself" : 'X\(//\)$' \| \
1881 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1882 $as_echo X"$as_myself" |
1883 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1901 if test ! -r "$srcdir/$ac_unique_file"; then
1905 ac_srcdir_defaulted
=no
1907 if test ! -r "$srcdir/$ac_unique_file"; then
1908 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1909 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1911 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1913 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1915 # When building in place, set srcdir=.
1916 if test "$ac_abs_confdir" = "$ac_pwd"; then
1919 # Remove unnecessary trailing slashes from srcdir.
1920 # Double slashes in file names in object file debugging info
1921 # mess up M-x gdb in Emacs.
1923 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1925 for ac_var
in $ac_precious_vars; do
1926 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1927 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1928 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1929 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1933 # Report the --help message.
1935 if test "$ac_init_help" = "long"; then
1936 # Omit some internal or obsolete options to make the list less imposing.
1937 # This message is too long to be a string in the A/UX 3.1 sh.
1939 \`configure' configures emacs 24.2.50 to adapt to many kinds of systems.
1941 Usage: $0 [OPTION]... [VAR=VALUE]...
1943 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1944 VAR=VALUE. See below for descriptions of some of the useful variables.
1946 Defaults for the options are specified in brackets.
1949 -h, --help display this help and exit
1950 --help=short display options specific to this package
1951 --help=recursive display the short help of all the included packages
1952 -V, --version display version information and exit
1953 -q, --quiet, --silent do not print \`checking...' messages
1954 --cache-file=FILE cache test results in FILE [disabled]
1955 -C, --config-cache alias for \`--cache-file=config.cache'
1956 -n, --no-create do not create output files
1957 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1959 Installation directories:
1960 --prefix=PREFIX install architecture-independent files in PREFIX
1961 [$ac_default_prefix]
1962 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1965 By default, \`make install' will install all the files in
1966 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1967 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1968 for instance \`--prefix=\$HOME'.
1970 For better control, use the options below.
1972 Fine tuning of the installation directories:
1973 --bindir=DIR user executables [EPREFIX/bin]
1974 --sbindir=DIR system admin executables [EPREFIX/sbin]
1975 --libexecdir=DIR program executables [EPREFIX/libexec]
1976 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1977 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1978 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1979 --libdir=DIR object code libraries [EPREFIX/lib]
1980 --includedir=DIR C header files [PREFIX/include]
1981 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1982 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1983 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1984 --infodir=DIR info documentation [DATAROOTDIR/info]
1985 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1986 --mandir=DIR man documentation [DATAROOTDIR/man]
1987 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1988 --htmldir=DIR html documentation [DOCDIR]
1989 --dvidir=DIR dvi documentation [DOCDIR]
1990 --pdfdir=DIR pdf documentation [DOCDIR]
1991 --psdir=DIR ps documentation [DOCDIR]
1997 --program-prefix=PREFIX prepend PREFIX to installed program names
1998 --program-suffix=SUFFIX append SUFFIX to installed program names
1999 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
2002 --x-includes=DIR X include files are
in DIR
2003 --x-libraries=DIR X library files are
in DIR
2006 --build=BUILD configure
for building on BUILD
[guessed
]
2007 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
2011 if test -n "$ac_init_help"; then
2012 case $ac_init_help in
2013 short | recursive
) echo "Configuration of emacs 24.2.50:";;
2018 --disable-option-checking ignore unrecognized
--enable/--with options
2019 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
2020 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
2021 --disable-ns-self-contained
2022 disable self contained build under NeXTstep
2023 --enable-locallisppath=PATH
2024 directories Emacs should search
for lisp files
2025 specific to this site
2026 --enable-checking[=LIST
]
2027 enable expensive run-time checks. With LIST
, enable
2028 only specific categories of checks. Categories are
:
2029 all
,yes,no. Flags are
: stringbytes
, stringoverrun
,
2030 stringfreelist
, xmallocoverrun
, conslist
, glyphs
2031 --enable-check-lisp-object-type
2032 enable compile
time checks
for the Lisp_Object data
2033 type. This is useful
for development
for catching
2034 certain types of bugs.
2035 --enable-profiling build emacs with profiling support. This might not
2036 work on all platforms
2037 --enable-autodepend automatically generate dependencies to .h-files.
2038 Requires GNU Make and Gcc. Enabled
if GNU Make and
2040 --disable-dependency-tracking speeds up one-time build
2041 --enable-dependency-tracking do not reject slow dependency extractors
2042 --disable-largefile omit support
for large files
2043 --enable-gcc-warnings turn on lots of GCC warnings. This is intended
for
2044 developers
, and may generate false alarms when used
2045 with older or non-GNU development tools.
2046 --enable-link-time-optimization
2047 build emacs with link-time optimization. This is
2048 supported only
for GCC since
4.5.0.
2051 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
2052 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
2053 --without-all omit almost all features and build small executable
2054 with minimal dependencies
2055 --without-pop don
't support POP mail retrieval with movemail
2056 --with-kerberos support Kerberos-authenticated POP
2057 --with-kerberos5 support Kerberos version 5 authenticated POP
2058 --with-hesiod support Hesiod to get the POP server host
2059 --with-mmdf support MMDF mailboxes
2060 --with-mail-unlink unlink, rather than empty, mail spool after reading
2061 --with-mailhost=HOSTNAME
2062 string giving default POP mail host
2063 --without-sound don't compile with sound support
2064 --without-sync-input process async input synchronously
2065 --with-x-toolkit=KIT use an X toolkit
(KIT one of
: yes or gtk
, gtk3
,
2066 lucid or athena
, motif
, no
)
2067 --with-wide-int prefer wide Emacs integers
(typically
62-bit)
2068 --without-xpm don
't compile with XPM image support
2069 --without-jpeg don't compile with JPEG image support
2070 --without-tiff don
't compile with TIFF image support
2071 --without-gif don't compile with GIF image support
2072 --without-png don
't compile with PNG image support
2073 --without-rsvg don't compile with SVG image support
2074 --without-xml2 don
't compile with XML parsing support
2075 --without-imagemagick don't compile with ImageMagick image support
2076 --without-xft don
't use XFT for anti aliased fonts
2077 --without-libotf don't use libotf
for OpenType font support
2078 --without-m17n-flt don
't use m17n-flt for text shaping
2079 --without-toolkit-scroll-bars
2080 don't use Motif or Xaw3d scroll bars
2081 --without-xaw3d don
't use Xaw3d
2082 --without-xim don't use X11 XIM
2083 --with-ns use NeXTstep
(Cocoa or GNUstep
) windowing system
2084 --without-gpm don
't use -lgpm for mouse support on a GNU/Linux
2086 --without-dbus don't compile with D-Bus support
2087 --without-gconf don
't compile with GConf support
2088 --without-gsettings don't compile with GSettings support
2089 --without-selinux don
't compile with SELinux support
2090 --without-gnutls don't use
-lgnutls for SSL
/TLS support
2091 --without-makeinfo don
't require makeinfo for building manuals
2092 --without-compress-info don't
compress the installed Info pages
2093 --with-pkg-config-prog=PATH
2094 path to pkg-config
for finding GTK and librsvg
2095 --with-crt-dir=DIR directory containing crtn.o etc. The default is
2096 /usr
/lib
, or
/usr
/lib64 on some platforms.
2097 --with-gameuser=USER user
for shared game score files
2098 --with-gnustep-conf=PATH
2099 path to GNUstep.conf
; default
$GNUSTEP_CONFIG_FILE,
2100 or
/etc
/GNUstep
/GNUstep.conf
2101 --with-x use the X Window System
2103 Some influential environment variables
:
2104 CC C compiler
command
2105 CFLAGS C compiler flags
2106 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
2107 nonstandard directory
<lib dir
>
2108 LIBS libraries to pass to the linker
, e.g.
-l<library
>
2109 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
2110 you have headers
in a nonstandard directory
<include dir
>
2112 XMKMF Path to xmkmf
, Makefile generator
for X Window System
2114 Use these variables to override the choices made by
`configure' or to help
2115 it to find libraries and programs with nonstandard names/locations.
2117 Report bugs to the package provider.
2122 if test "$ac_init_help" = "recursive"; then
2123 # If there are subdirs, report their specific --help.
2124 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2125 test -d "$ac_dir" ||
2126 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2131 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2133 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
2134 # A ".." for each directory in $ac_dir_suffix.
2135 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
2136 case $ac_top_builddir_sub in
2137 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2138 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2141 ac_abs_top_builddir=$ac_pwd
2142 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2143 # for backward compatibility:
2144 ac_top_builddir=$ac_top_build_prefix
2147 .) # We are building in place.
2149 ac_top_srcdir=$ac_top_builddir_sub
2150 ac_abs_top_srcdir=$ac_pwd ;;
2151 [\\/]* | ?:[\\/]* ) # Absolute name.
2152 ac_srcdir=$srcdir$ac_dir_suffix;
2153 ac_top_srcdir=$srcdir
2154 ac_abs_top_srcdir=$srcdir ;;
2156 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2157 ac_top_srcdir=$ac_top_build_prefix$srcdir
2158 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2160 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2162 cd "$ac_dir" || { ac_status=$?; continue; }
2163 # Check for guested configure.
2164 if test -f "$ac_srcdir/configure.gnu"; then
2166 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2167 elif test -f "$ac_srcdir/configure"; then
2169 $SHELL "$ac_srcdir/configure" --help=recursive
2171 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2173 cd "$ac_pwd" || { ac_status=$?; break; }
2177 test -n "$ac_init_help" && exit $ac_status
2178 if $ac_init_version; then
2180 emacs configure 24.2.50
2181 generated by GNU Autoconf 2.65
2183 Copyright (C) 2009 Free Software Foundation, Inc.
2184 This configure script is free software; the Free Software Foundation
2185 gives unlimited permission to copy, distribute and modify it.
2190 ## ------------------------ ##
2191 ## Autoconf initialization. ##
2192 ## ------------------------ ##
2194 # ac_fn_c_try_compile LINENO
2195 # --------------------------
2196 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2197 ac_fn_c_try_compile ()
2199 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2200 rm -f conftest.$ac_objext
2201 if { { ac_try="$ac_compile"
2203 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2204 *) ac_try_echo
=$ac_try;;
2206 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2207 $as_echo "$ac_try_echo"; } >&5
2208 (eval "$ac_compile") 2>conftest.err
2210 if test -s conftest.err
; then
2211 grep -v '^ *+' conftest.err
>conftest.er1
2212 cat conftest.er1
>&5
2213 mv -f conftest.er1 conftest.err
2215 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2216 test $ac_status = 0; } && {
2217 test -z "$ac_c_werror_flag" ||
2218 test ! -s conftest.err
2219 } && test -s conftest.
$ac_objext; then :
2222 $as_echo "$as_me: failed program was:" >&5
2223 sed 's/^/| /' conftest.
$ac_ext >&5
2227 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2228 as_fn_set_status
$ac_retval
2230 } # ac_fn_c_try_compile
2232 # ac_fn_c_try_cpp LINENO
2233 # ----------------------
2234 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2237 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2238 if { { ac_try
="$ac_cpp conftest.$ac_ext"
2240 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2241 *) ac_try_echo=$ac_try;;
2243 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2244 $as_echo "$ac_try_echo"; } >&5
2245 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2247 if test -s conftest.err; then
2248 grep -v '^ *+' conftest.err >conftest.er1
2249 cat conftest.er1 >&5
2250 mv -f conftest.er1 conftest.err
2252 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2253 test $ac_status = 0; } >/dev/null && {
2254 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2255 test ! -s conftest.err
2259 $as_echo "$as_me: failed program was:" >&5
2260 sed 's/^/| /' conftest.$ac_ext >&5
2264 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2265 as_fn_set_status $ac_retval
2269 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2270 # -------------------------------------------------------
2271 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2272 # the include files in INCLUDES and setting the cache variable VAR
2274 ac_fn_c_check_header_mongrel ()
2276 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2277 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2279 $as_echo_n "checking for $2... " >&6; }
2280 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2281 $as_echo_n "(cached) " >&6
2284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2285 $as_echo "$ac_res" >&6; }
2287 # Is the header compilable?
2288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2289 $as_echo_n "checking $2 usability... " >&6; }
2290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2291 /* end confdefs.h. */
2295 if ac_fn_c_try_compile "$LINENO"; then :
2296 ac_header_compiler=yes
2298 ac_header_compiler=no
2300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2302 $as_echo "$ac_header_compiler" >&6; }
2304 # Is the header present?
2305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2306 $as_echo_n "checking $2 presence... " >&6; }
2307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2308 /* end confdefs.h. */
2311 if ac_fn_c_try_cpp "$LINENO"; then :
2312 ac_header_preproc=yes
2314 ac_header_preproc=no
2316 rm -f conftest.err conftest.$ac_ext
2317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2318 $as_echo "$ac_header_preproc" >&6; }
2320 # So? What about this header?
2321 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2323 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2324 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2325 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2326 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2329 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2330 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2331 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2332 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2333 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2334 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2335 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2336 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2337 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2338 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2342 $as_echo_n "checking for $2... " >&6; }
2343 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2344 $as_echo_n "(cached) " >&6
2346 eval "$3=\$ac_header_compiler"
2349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2350 $as_echo "$ac_res" >&6; }
2352 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2354 } # ac_fn_c_check_header_mongrel
2356 # ac_fn_c_try_run LINENO
2357 # ----------------------
2358 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2359 # that executables *can* be run.
2362 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2363 if { { ac_try="$ac_link"
2365 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2366 *) ac_try_echo
=$ac_try;;
2368 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2369 $as_echo "$ac_try_echo"; } >&5
2370 (eval "$ac_link") 2>&5
2372 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2373 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
2374 { { case "(($ac_try" in
2375 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2376 *) ac_try_echo=$ac_try;;
2378 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2379 $as_echo "$ac_try_echo"; } >&5
2380 (eval "$ac_try") 2>&5
2382 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2383 test $ac_status = 0; }; }; then :
2386 $as_echo "$as_me: program exited with status $ac_status" >&5
2387 $as_echo "$as_me: failed program was:" >&5
2388 sed 's/^/| /' conftest.$ac_ext >&5
2390 ac_retval=$ac_status
2392 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2393 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2394 as_fn_set_status $ac_retval
2398 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2399 # -------------------------------------------------------
2400 # Tests whether HEADER exists and can be compiled using the include files in
2401 # INCLUDES, setting the cache variable VAR accordingly.
2402 ac_fn_c_check_header_compile ()
2404 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2406 $as_echo_n "checking for $2... " >&6; }
2407 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2408 $as_echo_n "(cached) " >&6
2410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2411 /* end confdefs.h. */
2415 if ac_fn_c_try_compile "$LINENO"; then :
2420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2424 $as_echo "$ac_res" >&6; }
2425 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2427 } # ac_fn_c_check_header_compile
2429 # ac_fn_c_try_link LINENO
2430 # -----------------------
2431 # Try to link conftest.$ac_ext, and return whether this succeeded.
2434 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2435 rm -f conftest.$ac_objext conftest$ac_exeext
2436 if { { ac_try="$ac_link"
2438 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2439 *) ac_try_echo
=$ac_try;;
2441 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2442 $as_echo "$ac_try_echo"; } >&5
2443 (eval "$ac_link") 2>conftest.err
2445 if test -s conftest.err
; then
2446 grep -v '^ *+' conftest.err
>conftest.er1
2447 cat conftest.er1
>&5
2448 mv -f conftest.er1 conftest.err
2450 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2451 test $ac_status = 0; } && {
2452 test -z "$ac_c_werror_flag" ||
2453 test ! -s conftest.err
2454 } && test -s conftest
$ac_exeext && {
2455 test "$cross_compiling" = yes ||
2456 $as_test_x conftest
$ac_exeext
2460 $as_echo "$as_me: failed program was:" >&5
2461 sed 's/^/| /' conftest.
$ac_ext >&5
2465 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2466 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2467 # interfere with the next link command; also delete a directory that is
2468 # left behind by Apple's compiler. We do this before executing the actions.
2469 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2470 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2471 as_fn_set_status
$ac_retval
2473 } # ac_fn_c_try_link
2475 # ac_fn_c_check_decl LINENO SYMBOL VAR
2476 # ------------------------------------
2477 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2478 ac_fn_c_check_decl
()
2480 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2482 $as_echo_n "checking whether $2 is declared... " >&6; }
2483 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2484 $as_echo_n "(cached) " >&6
2486 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2487 /* end confdefs.h. */
2500 if ac_fn_c_try_compile
"$LINENO"; then :
2505 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2509 $as_echo "$ac_res" >&6; }
2510 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2512 } # ac_fn_c_check_decl
2514 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2515 # ----------------------------------------------
2516 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2517 ac_fn_c_check_header_preproc
()
2519 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2521 $as_echo_n "checking for $2... " >&6; }
2522 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2523 $as_echo_n "(cached) " >&6
2525 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2526 /* end confdefs.h. */
2529 if ac_fn_c_try_cpp
"$LINENO"; then :
2534 rm -f conftest.err conftest.
$ac_ext
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2538 $as_echo "$ac_res" >&6; }
2539 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2541 } # ac_fn_c_check_header_preproc
2543 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2544 # ----------------------------------------------------
2545 # Tries to find if the field MEMBER exists in type AGGR, after including
2546 # INCLUDES, setting cache variable VAR accordingly.
2547 ac_fn_c_check_member
()
2549 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2551 $as_echo_n "checking for $2.$3... " >&6; }
2552 if { as_var
=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2553 $as_echo_n "(cached) " >&6
2555 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2556 /* end confdefs.h. */
2568 if ac_fn_c_try_compile
"$LINENO"; then :
2571 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2572 /* end confdefs.h. */
2578 if (sizeof ac_aggr.$3)
2584 if ac_fn_c_try_compile
"$LINENO"; then :
2589 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2591 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2595 $as_echo "$ac_res" >&6; }
2596 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2598 } # ac_fn_c_check_member
2600 # ac_fn_c_check_func LINENO FUNC VAR
2601 # ----------------------------------
2602 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2603 ac_fn_c_check_func
()
2605 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2607 $as_echo_n "checking for $2... " >&6; }
2608 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2609 $as_echo_n "(cached) " >&6
2611 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2612 /* end confdefs.h. */
2613 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2614 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2615 #define $2 innocuous_$2
2617 /* System header to define __stub macros and hopefully few prototypes,
2618 which can conflict with char $2 (); below.
2619 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2620 <limits.h> exists even on freestanding compilers. */
2623 # include <limits.h>
2625 # include <assert.h>
2630 /* Override any GCC internal prototype to avoid an error.
2631 Use char because int might match the return type of a GCC
2632 builtin and then its argument prototype would still apply. */
2637 /* The GNU C library defines this for functions which it implements
2638 to always fail with ENOSYS. Some functions are actually named
2639 something starting with __ and the normal name is an alias. */
2640 #if defined __stub_$2 || defined __stub___$2
2652 if ac_fn_c_try_link
"$LINENO"; then :
2657 rm -f core conftest.err conftest.
$ac_objext \
2658 conftest
$ac_exeext conftest.
$ac_ext
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2662 $as_echo "$ac_res" >&6; }
2663 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2665 } # ac_fn_c_check_func
2667 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2668 # -------------------------------------------
2669 # Tests whether TYPE exists after having included INCLUDES, setting cache
2670 # variable VAR accordingly.
2671 ac_fn_c_check_type
()
2673 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2675 $as_echo_n "checking for $2... " >&6; }
2676 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2677 $as_echo_n "(cached) " >&6
2680 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2681 /* end confdefs.h. */
2692 if ac_fn_c_try_compile
"$LINENO"; then :
2693 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2694 /* end confdefs.h. */
2705 if ac_fn_c_try_compile
"$LINENO"; then :
2710 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2712 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2716 $as_echo "$ac_res" >&6; }
2717 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2719 } # ac_fn_c_check_type
2721 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2722 # --------------------------------------------
2723 # Tries to find the compile-time value of EXPR in a program that includes
2724 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2726 ac_fn_c_compute_int
()
2728 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2729 if test "$cross_compiling" = yes; then
2730 # Depending upon the size, compute the lo and hi bounds.
2731 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2732 /* end confdefs.h. */
2737 static int test_array [1 - 2 * !(($2) >= 0)];
2744 if ac_fn_c_try_compile
"$LINENO"; then :
2747 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2748 /* end confdefs.h. */
2753 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2760 if ac_fn_c_try_compile
"$LINENO"; then :
2761 ac_hi
=$ac_mid; break
2763 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2764 if test $ac_lo -le $ac_mid; then
2768 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2770 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2773 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2774 /* end confdefs.h. */
2779 static int test_array [1 - 2 * !(($2) < 0)];
2786 if ac_fn_c_try_compile
"$LINENO"; then :
2789 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2790 /* end confdefs.h. */
2795 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2802 if ac_fn_c_try_compile
"$LINENO"; then :
2803 ac_lo
=$ac_mid; break
2805 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2806 if test $ac_mid -le $ac_hi; then
2810 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2812 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2817 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2819 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2820 # Binary search between lo and hi bounds.
2821 while test "x$ac_lo" != "x$ac_hi"; do
2822 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2823 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2824 /* end confdefs.h. */
2829 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2836 if ac_fn_c_try_compile
"$LINENO"; then :
2839 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2841 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2844 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2848 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2849 /* end confdefs.h. */
2851 static long int longval () { return $2; }
2852 static unsigned long int ulongval () { return $2; }
2859 FILE *f = fopen ("conftest.val", "w");
2864 long int i = longval ();
2867 fprintf (f, "%ld", i);
2871 unsigned long int i = ulongval ();
2874 fprintf (f, "%lu", i);
2876 /* Do not output a trailing newline, as this causes \r\n confusion
2877 on some platforms. */
2878 return ferror (f) || fclose (f) != 0;
2884 if ac_fn_c_try_run
"$LINENO"; then :
2885 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2889 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2890 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2894 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2895 as_fn_set_status
$ac_retval
2897 } # ac_fn_c_compute_int
2898 cat >config.log
<<_ACEOF
2899 This file contains any messages produced by compilers while
2900 running configure, to aid debugging if configure makes a mistake.
2902 It was created by emacs $as_me 24.2.50, which was
2903 generated by GNU Autoconf 2.65. Invocation command line was
2915 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2916 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2917 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2918 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2919 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2921 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2922 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2924 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2925 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2926 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2927 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2928 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2929 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2930 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2934 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2938 test -z "$as_dir" && as_dir
=.
2939 $as_echo "PATH: $as_dir"
2955 # Keep a trace of the command line.
2956 # Strip out --no-create and --no-recursion so they do not pile up.
2957 # Strip out --silent because we don't want to record it for future runs.
2958 # Also quote any args containing shell meta-characters.
2959 # Make two passes to allow for proper duplicate-argument suppression.
2963 ac_must_keep_next
=false
2969 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2970 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2971 |
-silent |
--silent |
--silen |
--sile |
--sil)
2974 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2977 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2979 as_fn_append ac_configure_args1
" '$ac_arg'"
2980 if test $ac_must_keep_next = true
; then
2981 ac_must_keep_next
=false
# Got value, back to normal.
2984 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2985 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2986 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2987 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2988 case "$ac_configure_args0 " in
2989 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2992 -* ) ac_must_keep_next
=true
;;
2995 as_fn_append ac_configure_args
" '$ac_arg'"
3000 { ac_configure_args0
=; unset ac_configure_args0
;}
3001 { ac_configure_args1
=; unset ac_configure_args1
;}
3003 # When interrupted or exit'd, cleanup temporary files, and complete
3004 # config.log. We remove comments because anyway the quotes in there
3005 # would cause problems or look ugly.
3006 # WARNING: Use '\'' to represent an apostrophe within the trap.
3007 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3008 trap 'exit_status=$?
3009 # Save into config.log some information that might help in debugging.
3014 ## ---------------- ##
3015 ## Cache variables. ##
3016 ## ---------------- ##
3019 # The following way of writing the cache mishandles newlines in values,
3021 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3022 eval ac_val=\$$ac_var
3026 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3027 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3030 _ | IFS | as_nl) ;; #(
3031 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3032 *) { eval $ac_var=; unset $ac_var;} ;;
3037 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3038 *${as_nl}ac_space=\ *)
3040 "s/'\''/'\''\\\\'\'''\''/g;
3041 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3044 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3052 ## ----------------- ##
3053 ## Output variables. ##
3054 ## ----------------- ##
3057 for ac_var in $ac_subst_vars
3059 eval ac_val=\$$ac_var
3061 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3063 $as_echo "$ac_var='\''$ac_val'\''"
3067 if test -n "$ac_subst_files"; then
3069 ## ------------------- ##
3070 ## File substitutions. ##
3071 ## ------------------- ##
3074 for ac_var
in $ac_subst_files
3076 eval ac_val
=\$
$ac_var
3078 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3080 $as_echo "$ac_var='\''$ac_val'\''"
3085 if test -s confdefs.h; then
3095 test "$ac_signal" != 0 &&
3096 $as_echo "$as_me: caught signal $ac_signal"
3097 $as_echo "$as_me: exit $exit_status"
3099 rm -f core *.core core.conftest.* &&
3100 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3103 for ac_signal
in 1 2 13 15; do
3104 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3108 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3109 rm -f -r conftest
* confdefs.h
3111 $as_echo "/* confdefs.h */" > confdefs.h
3113 # Predefined preprocessor variables.
3115 cat >>confdefs.h
<<_ACEOF
3116 #define PACKAGE_NAME "$PACKAGE_NAME"
3119 cat >>confdefs.h
<<_ACEOF
3120 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3123 cat >>confdefs.h
<<_ACEOF
3124 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3127 cat >>confdefs.h
<<_ACEOF
3128 #define PACKAGE_STRING "$PACKAGE_STRING"
3131 cat >>confdefs.h
<<_ACEOF
3132 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3135 cat >>confdefs.h
<<_ACEOF
3136 #define PACKAGE_URL "$PACKAGE_URL"
3140 # Let the site file select an alternate cache file if it wants to.
3141 # Prefer an explicitly selected file to automatically selected ones.
3144 if test -n "$CONFIG_SITE"; then
3145 ac_site_file1
=$CONFIG_SITE
3146 elif test "x$prefix" != xNONE
; then
3147 ac_site_file1
=$prefix/share
/config.site
3148 ac_site_file2
=$prefix/etc
/config.site
3150 ac_site_file1
=$ac_default_prefix/share
/config.site
3151 ac_site_file2
=$ac_default_prefix/etc
/config.site
3153 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
3155 test "x$ac_site_file" = xNONE
&& continue
3156 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
3157 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3158 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3159 sed 's/^/| /' "$ac_site_file" >&5
3164 if test -r "$cache_file"; then
3165 # Some versions of bash will fail to source /dev/null (special files
3166 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3167 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
3168 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3169 $as_echo "$as_me: loading cache $cache_file" >&6;}
3171 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
3172 *) .
"./$cache_file";;
3176 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3177 $as_echo "$as_me: creating cache $cache_file" >&6;}
3181 as_fn_append ac_header_list
" linux/version.h"
3182 as_fn_append ac_header_list
" sys/systeminfo.h"
3183 as_fn_append ac_header_list
" stdio_ext.h"
3184 as_fn_append ac_header_list
" fcntl.h"
3185 as_fn_append ac_header_list
" coff.h"
3186 as_fn_append ac_header_list
" pty.h"
3187 as_fn_append ac_header_list
" sys/vlimit.h"
3188 as_fn_append ac_header_list
" sys/resource.h"
3189 as_fn_append ac_header_list
" sys/utsname.h"
3190 as_fn_append ac_header_list
" pwd.h"
3191 as_fn_append ac_header_list
" utmp.h"
3192 as_fn_append ac_header_list
" dirent.h"
3193 as_fn_append ac_header_list
" util.h"
3194 as_fn_append ac_header_list
" sys/socket.h"
3195 as_fn_append ac_header_list
" stdlib.h"
3196 as_fn_append ac_header_list
" unistd.h"
3197 as_fn_append ac_header_list
" sys/param.h"
3198 as_fn_append ac_header_list
" pthread.h"
3199 as_fn_append ac_header_list
" malloc/malloc.h"
3200 as_fn_append ac_header_list
" maillock.h"
3201 as_fn_append ac_header_list
" sys/un.h"
3202 as_fn_append ac_func_list
" tzset"
3203 as_fn_append ac_func_list
" readlinkat"
3204 as_fn_append ac_header_list
" execinfo.h"
3205 gl_getopt_required
=GNU
3206 as_fn_append ac_header_list
" getopt.h"
3207 as_fn_append ac_func_list
" gettimeofday"
3208 as_fn_append ac_func_list
" nanotime"
3209 as_fn_append ac_header_list
" sys/time.h"
3210 as_fn_append ac_header_list
" wchar.h"
3211 as_fn_append ac_header_list
" stdint.h"
3212 as_fn_append ac_header_list
" inttypes.h"
3213 as_fn_append ac_func_list
" lstat"
3214 as_fn_append ac_func_list
" alarm"
3215 as_fn_append ac_header_list
" sys/select.h"
3216 as_fn_append ac_func_list
" pselect"
3217 as_fn_append ac_func_list
" pthread_sigmask"
3218 as_fn_append ac_func_list
" readlink"
3219 as_fn_append ac_func_list
" strtoimax"
3220 as_fn_append ac_func_list
" strtoumax"
3221 as_fn_append ac_func_list
" symlink"
3222 as_fn_append ac_header_list
" sys/stat.h"
3223 as_fn_append ac_func_list
" localtime_r"
3224 as_fn_append ac_header_list
" utime.h"
3225 as_fn_append ac_func_list
" futimes"
3226 as_fn_append ac_func_list
" futimesat"
3227 as_fn_append ac_func_list
" futimens"
3228 as_fn_append ac_func_list
" utimensat"
3229 as_fn_append ac_func_list
" lutimes"
3230 # Check that the precious variables saved in the cache have kept the same
3232 ac_cache_corrupted
=false
3233 for ac_var
in $ac_precious_vars; do
3234 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
3235 eval ac_new_set
=\
$ac_env_${ac_var}_set
3236 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
3237 eval ac_new_val
=\
$ac_env_${ac_var}_value
3238 case $ac_old_set,$ac_new_set in
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3241 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3242 ac_cache_corrupted
=: ;;
3244 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3245 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3246 ac_cache_corrupted
=: ;;
3249 if test "x$ac_old_val" != "x$ac_new_val"; then
3250 # differences in whitespace do not lead to failure.
3251 ac_old_val_w
=`echo x $ac_old_val`
3252 ac_new_val_w
=`echo x $ac_new_val`
3253 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3255 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3256 ac_cache_corrupted
=:
3258 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3259 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3260 eval $ac_var=\
$ac_old_val
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3263 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3265 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3268 # Pass precious variables to config.status.
3269 if test "$ac_new_set" = set; then
3271 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3272 *) ac_arg
=$ac_var=$ac_new_val ;;
3274 case " $ac_configure_args " in
3275 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3276 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
3280 if $ac_cache_corrupted; then
3281 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3282 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3283 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3284 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3285 as_fn_error
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3287 ## -------------------- ##
3288 ## Main body of script. ##
3289 ## -------------------- ##
3292 ac_cpp
='$CPP $CPPFLAGS'
3293 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3294 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3295 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3298 ac_config_headers
="$ac_config_headers src/config.h:src/config.in"
3302 for ac_dir
in build-aux
"$srcdir"/build-aux
; do
3303 for ac_t
in install-sh
install.sh shtool
; do
3304 if test -f "$ac_dir/$ac_t"; then
3306 ac_install_sh
="$ac_aux_dir/$ac_t -c"
3311 if test -z "$ac_aux_dir"; then
3312 as_fn_error
"cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
3315 # These three variables are undocumented and unsupported,
3316 # and are intended to be withdrawn in a future Autoconf release.
3317 # They can cause serious problems if a builder's source tree is in a directory
3318 # whose full name contains unusual characters.
3319 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3320 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3321 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3324 am__api_version
='1.11'
3326 # Find a good install program. We prefer a C program (faster),
3327 # so one script is as good as another. But avoid the broken or
3328 # incompatible versions:
3329 # SysV /etc/install, /usr/sbin/install
3330 # SunOS /usr/etc/install
3331 # IRIX /sbin/install
3333 # AmigaOS /C/install, which installs bootblocks on floppy discs
3334 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3335 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3336 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3337 # OS/2's system install, which has a completely different semantic
3338 # ./install, which can be erroneously created by make from ./install.sh.
3339 # Reject install programs that cannot install multiple files.
3340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3341 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3342 if test -z "$INSTALL"; then
3343 if test "${ac_cv_path_install+set}" = set; then :
3344 $as_echo_n "(cached) " >&6
3346 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3350 test -z "$as_dir" && as_dir
=.
3351 # Account for people who put trailing slashes in PATH elements.
3352 case $as_dir/ in #((
3353 .
/ | .
// |
/[cC
]/* | \
3354 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
3355 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
3358 # OSF1 and SCO ODT 3.0 have their own names for install.
3359 # Don't use installbsd from OSF since it installs stuff as root
3361 for ac_prog
in ginstall scoinst
install; do
3362 for ac_exec_ext
in '' $ac_executable_extensions; do
3363 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3364 if test $ac_prog = install &&
3365 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3366 # AIX install. It has an incompatible calling convention.
3368 elif test $ac_prog = install &&
3369 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3370 # program-specific install script used by HP pwplus--don't use.
3373 rm -rf conftest.one conftest.two conftest.dir
3374 echo one
> conftest.one
3375 echo two
> conftest.two
3377 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
3378 test -s conftest.one
&& test -s conftest.two
&&
3379 test -s conftest.dir
/conftest.one
&&
3380 test -s conftest.dir
/conftest.two
3382 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
3395 rm -rf conftest.one conftest.two conftest.dir
3398 if test "${ac_cv_path_install+set}" = set; then
3399 INSTALL
=$ac_cv_path_install
3401 # As a last resort, use the slow shell script. Don't cache a
3402 # value for INSTALL within a source directory, because that will
3403 # break other packages using the cache if that directory is
3404 # removed, or if the value is a relative name.
3405 INSTALL
=$ac_install_sh
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3409 $as_echo "$INSTALL" >&6; }
3411 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3412 # It thinks the first close brace ends the variable substitution.
3413 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3415 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3417 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3420 $as_echo_n "checking whether build environment is sane... " >&6; }
3423 echo timestamp
> conftest.
file
3424 # Reject unsafe characters in $srcdir or the absolute working directory
3425 # name. Accept space and tab only in the latter.
3429 *[\\\"\
#\$\&\'\`$am_lf]*)
3430 as_fn_error
"unsafe absolute working directory name" "$LINENO" 5;;
3433 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
3434 as_fn_error
"unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3437 # Do `set' in a subshell so we don't clobber the current shell's
3438 # arguments. Must try -L first in case configure is actually a
3439 # symlink; some systems play weird games with the mod time of symlinks
3440 # (eg FreeBSD returns the mod time of the symlink's containing
3443 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3444 if test "$*" = "X"; then
3446 set X
`ls -t "$srcdir/configure" conftest.file`
3449 if test "$*" != "X $srcdir/configure conftest.file" \
3450 && test "$*" != "X conftest.file $srcdir/configure"; then
3452 # If neither matched, then we have a broken ls. This can happen
3453 # if, for instance, CONFIG_SHELL is bash and it inherits a
3454 # broken ls alias from the environment. This has actually
3455 # happened. Such a system could not be considered "sane".
3456 as_fn_error
"ls -t appears to fail. Make sure there is not a broken
3457 alias in your environment" "$LINENO" 5
3460 test "$2" = conftest.
file
3466 as_fn_error
"newly created file is older than distributed files!
3467 Check your system clock" "$LINENO" 5
3469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3470 $as_echo "yes" >&6; }
3471 test "$program_prefix" != NONE
&&
3472 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
3473 # Use a double $ so make ignores it.
3474 test "$program_suffix" != NONE
&&
3475 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
3476 # Double any \ or $.
3477 # By default was `s,x,x', remove it if useless.
3478 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
3479 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
3481 # expand $ac_aux_dir to an absolute path
3482 am_aux_dir
=`cd $ac_aux_dir && pwd`
3484 if test x
"${MISSING+set}" != xset
; then
3487 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
3489 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
3492 # Use eval to expand $SHELL
3493 if eval "$MISSING --run true"; then
3494 am_missing_run
="$MISSING --run "
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3498 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3501 if test x
"${install_sh}" != xset
; then
3504 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
3506 install_sh
="\${SHELL} $am_aux_dir/install-sh"
3510 # Installed binaries are usually stripped using `strip' when the user
3511 # run `make install-strip'. However `strip' might not be the right
3512 # tool to use in cross-compilation environments, therefore Automake
3513 # will honor the `STRIP' environment variable to overrule this program.
3514 if test "$cross_compiling" != no
; then
3515 if test -n "$ac_tool_prefix"; then
3516 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3517 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
3518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3519 $as_echo_n "checking for $ac_word... " >&6; }
3520 if test "${ac_cv_prog_STRIP+set}" = set; then :
3521 $as_echo_n "(cached) " >&6
3523 if test -n "$STRIP"; then
3524 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
3526 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3530 test -z "$as_dir" && as_dir
=.
3531 for ac_exec_ext
in '' $ac_executable_extensions; do
3532 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3533 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
3534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3543 STRIP
=$ac_cv_prog_STRIP
3544 if test -n "$STRIP"; then
3545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3546 $as_echo "$STRIP" >&6; }
3548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3549 $as_echo "no" >&6; }
3554 if test -z "$ac_cv_prog_STRIP"; then
3556 # Extract the first word of "strip", so it can be a program name with args.
3557 set dummy strip
; ac_word
=$2
3558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3559 $as_echo_n "checking for $ac_word... " >&6; }
3560 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3561 $as_echo_n "(cached) " >&6
3563 if test -n "$ac_ct_STRIP"; then
3564 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
3566 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3570 test -z "$as_dir" && as_dir
=.
3571 for ac_exec_ext
in '' $ac_executable_extensions; do
3572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3573 ac_cv_prog_ac_ct_STRIP
="strip"
3574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3583 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
3584 if test -n "$ac_ct_STRIP"; then
3585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3586 $as_echo "$ac_ct_STRIP" >&6; }
3588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3589 $as_echo "no" >&6; }
3592 if test "x$ac_ct_STRIP" = x
; then
3595 case $cross_compiling:$ac_tool_warned in
3597 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3598 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3599 ac_tool_warned
=yes ;;
3604 STRIP
="$ac_cv_prog_STRIP"
3608 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
3610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3611 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3612 if test -z "$MKDIR_P"; then
3613 if test "${ac_cv_path_mkdir+set}" = set; then :
3614 $as_echo_n "(cached) " >&6
3616 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3617 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
3620 test -z "$as_dir" && as_dir
=.
3621 for ac_prog
in mkdir gmkdir
; do
3622 for ac_exec_ext
in '' $ac_executable_extensions; do
3623 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } ||
continue
3624 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3625 'mkdir (GNU coreutils) '* | \
3626 'mkdir (coreutils) '* | \
3627 'mkdir (fileutils) '4.1*)
3628 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
3638 test -d .
/--version && rmdir .
/--version
3639 if test "${ac_cv_path_mkdir+set}" = set; then
3640 MKDIR_P
="$ac_cv_path_mkdir -p"
3642 # As a last resort, use the slow shell script. Don't cache a
3643 # value for MKDIR_P within a source directory, because that will
3644 # break other packages using the cache if that directory is
3645 # removed, or if the value is a relative name.
3646 MKDIR_P
="$ac_install_sh -d"
3649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3650 $as_echo "$MKDIR_P" >&6; }
3655 [\\/$
]* | ?
:[\\/]*) ;;
3656 */*) mkdir_p
="\$(top_builddir)/$mkdir_p" ;;
3659 for ac_prog
in gawk mawk nawk
awk
3661 # Extract the first word of "$ac_prog", so it can be a program name with args.
3662 set dummy
$ac_prog; ac_word
=$2
3663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3664 $as_echo_n "checking for $ac_word... " >&6; }
3665 if test "${ac_cv_prog_AWK+set}" = set; then :
3666 $as_echo_n "(cached) " >&6
3668 if test -n "$AWK"; then
3669 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
3671 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3675 test -z "$as_dir" && as_dir
=.
3676 for ac_exec_ext
in '' $ac_executable_extensions; do
3677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3678 ac_cv_prog_AWK
="$ac_prog"
3679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3689 if test -n "$AWK"; then
3690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3691 $as_echo "$AWK" >&6; }
3693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3694 $as_echo "no" >&6; }
3698 test -n "$AWK" && break
3701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3702 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3704 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3705 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3706 $as_echo_n "(cached) " >&6
3708 cat >conftest.
make <<\_ACEOF
3711 @
echo '@@@%%%=$(MAKE)=@@@%%%'
3713 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3714 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3716 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
3718 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
3722 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
3723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3724 $as_echo "yes" >&6; }
3727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3728 $as_echo "no" >&6; }
3729 SET_MAKE
="MAKE=${MAKE-make}"
3732 rm -rf .tst
2>/dev
/null
3733 mkdir .tst
2>/dev
/null
3734 if test -d .tst
; then
3739 rmdir .tst
2>/dev
/null
3741 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3742 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3743 # is not polluted with repeated "-I."
3744 am__isrc
=' -I$(srcdir)'
3745 # test to see if srcdir already configured
3746 if test -f $srcdir/config.status
; then
3747 as_fn_error
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3751 # test whether we have cygpath
3752 if test -z "$CYGPATH_W"; then
3753 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
3754 CYGPATH_W
='cygpath -w'
3761 # Define the identity of the package.
3766 cat >>confdefs.h
<<_ACEOF
3767 #define PACKAGE "$PACKAGE"
3771 cat >>confdefs.h
<<_ACEOF
3772 #define VERSION "$VERSION"
3775 # Some tools Automake needs.
3777 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3780 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
3783 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3786 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
3789 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
3791 # We need awk for the "check" target. The system "awk" is bad on
3793 # Always define AMTAR for backward compatibility.
3795 AMTAR
=${AMTAR-"${am_missing_run}tar"}
3797 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
3806 lispdir
='${datadir}/emacs/${version}/lisp'
3807 leimdir
='${datadir}/emacs/${version}/leim'
3808 standardlisppath
='${lispdir}:${leimdir}'
3809 locallisppath
='${datadir}/emacs/${version}/site-lisp:'\
3810 '${datadir}/emacs/site-lisp'
3811 lisppath
='${locallisppath}:${standardlisppath}'
3812 etcdir
='${datadir}/emacs/${version}/etc'
3813 archlibdir
='${libexecdir}/emacs/${version}/${configuration}'
3814 docdir
='${datadir}/emacs/${version}/etc'
3815 gamedir
='${localstatedir}/games/emacs'
3818 # Check whether --with-all was given.
3819 if test "${with_all+set}" = set; then :
3820 withval
=$with_all; with_features
=$withval
3829 # Check whether --with-pop was given.
3830 if test "${with_pop+set}" = set; then :
3833 with_pop
=$with_features
3836 if test "$with_pop" = yes; then
3837 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
3842 # Check whether --with-kerberos was given.
3843 if test "${with_kerberos+set}" = set; then :
3844 withval
=$with_kerberos;
3849 if test "$with_kerberos" != no
; then
3850 $as_echo "#define KERBEROS 1" >>confdefs.h
3855 # Check whether --with-kerberos5 was given.
3856 if test "${with_kerberos5+set}" = set; then :
3857 withval
=$with_kerberos5;
3862 if test "${with_kerberos5}" != no
; then
3863 if test "${with_kerberos}" = no
; then
3865 $as_echo "#define KERBEROS 1" >>confdefs.h
3869 $as_echo "#define KERBEROS5 1" >>confdefs.h
3874 # Check whether --with-hesiod was given.
3875 if test "${with_hesiod+set}" = set; then :
3876 withval
=$with_hesiod;
3881 if test "$with_hesiod" != no
; then
3883 $as_echo "#define HESIOD 1" >>confdefs.h
3888 # Check whether --with-mmdf was given.
3889 if test "${with_mmdf+set}" = set; then :
3895 if test "$with_mmdf" != no
; then
3897 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
3902 # Check whether --with-mail-unlink was given.
3903 if test "${with_mail_unlink+set}" = set; then :
3904 withval
=$with_mail_unlink;
3909 if test "$with_mail_unlink" != no
; then
3911 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
3916 # Check whether --with-mailhost was given.
3917 if test "${with_mailhost+set}" = set; then :
3918 withval
=$with_mailhost;
3919 cat >>confdefs.h
<<_ACEOF
3920 #define MAILHOST "$withval"
3927 # Check whether --with-sound was given.
3928 if test "${with_sound+set}" = set; then :
3929 withval
=$with_sound;
3931 with_sound
=$with_features
3936 # Check whether --with-sync-input was given.
3937 if test "${with_sync_input+set}" = set; then :
3938 withval
=$with_sync_input;
3940 with_sync_input
=$with_features
3943 if test "$with_sync_input" = yes; then
3945 $as_echo "#define SYNC_INPUT 1" >>confdefs.h
3950 # Check whether --with-x-toolkit was given.
3951 if test "${with_x_toolkit+set}" = set; then :
3952 withval
=$with_x_toolkit; case "${withval}" in
3953 y | ye |
yes ) val
=gtk
;;
3955 l | lu | luc | luci | lucid
) val
=lucid
;;
3956 a |
at | ath | athe | athen | athena
) val
=athena
;;
3957 m | mo | mot | moti | motif
) val
=motif
;;
3958 g | gt | gtk
) val
=gtk
;;
3961 as_fn_error
"\`--with-x-toolkit=$withval' is invalid;
3962 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk' or
3963 \`gtk3'. \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." "$LINENO" 5
3972 # Check whether --with-wide-int was given.
3973 if test "${with_wide_int+set}" = set; then :
3974 withval
=$with_wide_int;
3979 if test "$with_wide_int" = yes; then
3981 $as_echo "#define WIDE_EMACS_INT 1" >>confdefs.h
3986 # Check whether --with-xpm was given.
3987 if test "${with_xpm+set}" = set; then :
3990 with_xpm
=$with_features
3994 # Check whether --with-jpeg was given.
3995 if test "${with_jpeg+set}" = set; then :
3998 with_jpeg
=$with_features
4002 # Check whether --with-tiff was given.
4003 if test "${with_tiff+set}" = set; then :
4006 with_tiff
=$with_features
4010 # Check whether --with-gif was given.
4011 if test "${with_gif+set}" = set; then :
4014 with_gif
=$with_features
4018 # Check whether --with-png was given.
4019 if test "${with_png+set}" = set; then :
4022 with_png
=$with_features
4026 # Check whether --with-rsvg was given.
4027 if test "${with_rsvg+set}" = set; then :
4030 with_rsvg
=$with_features
4034 # Check whether --with-xml2 was given.
4035 if test "${with_xml2+set}" = set; then :
4038 with_xml2
=$with_features
4042 # Check whether --with-imagemagick was given.
4043 if test "${with_imagemagick+set}" = set; then :
4044 withval
=$with_imagemagick;
4046 with_imagemagick
=$with_features
4051 # Check whether --with-xft was given.
4052 if test "${with_xft+set}" = set; then :
4055 with_xft
=$with_features
4059 # Check whether --with-libotf was given.
4060 if test "${with_libotf+set}" = set; then :
4061 withval
=$with_libotf;
4063 with_libotf
=$with_features
4067 # Check whether --with-m17n-flt was given.
4068 if test "${with_m17n_flt+set}" = set; then :
4069 withval
=$with_m17n_flt;
4071 with_m17n_flt
=$with_features
4076 # Check whether --with-toolkit-scroll-bars was given.
4077 if test "${with_toolkit_scroll_bars+set}" = set; then :
4078 withval
=$with_toolkit_scroll_bars;
4080 with_toolkit_scroll_bars
=$with_features
4084 # Check whether --with-xaw3d was given.
4085 if test "${with_xaw3d+set}" = set; then :
4086 withval
=$with_xaw3d;
4088 with_xaw3d
=$with_features
4092 # Check whether --with-xim was given.
4093 if test "${with_xim+set}" = set; then :
4096 with_xim
=$with_features
4100 # Check whether --with-ns was given.
4101 if test "${with_ns+set}" = set; then :
4109 # Check whether --with-gpm was given.
4110 if test "${with_gpm+set}" = set; then :
4113 with_gpm
=$with_features
4117 # Check whether --with-dbus was given.
4118 if test "${with_dbus+set}" = set; then :
4121 with_dbus
=$with_features
4125 # Check whether --with-gconf was given.
4126 if test "${with_gconf+set}" = set; then :
4127 withval
=$with_gconf;
4129 with_gconf
=$with_features
4133 # Check whether --with-gsettings was given.
4134 if test "${with_gsettings+set}" = set; then :
4135 withval
=$with_gsettings;
4137 with_gsettings
=$with_features
4141 # Check whether --with-selinux was given.
4142 if test "${with_selinux+set}" = set; then :
4143 withval
=$with_selinux;
4145 with_selinux
=$with_features
4149 # Check whether --with-gnutls was given.
4150 if test "${with_gnutls+set}" = set; then :
4151 withval
=$with_gnutls;
4153 with_gnutls
=$with_features
4157 ## For the times when you want to build Emacs but don't have
4158 ## a suitable makeinfo, and can live without the manuals.
4160 # Check whether --with-makeinfo was given.
4161 if test "${with_makeinfo+set}" = set; then :
4162 withval
=$with_makeinfo;
4164 with_makeinfo
=$with_features
4168 ## Makefile.in needs the cache file name.
4171 ## This is an option because I do not know if all info/man support
4172 ## compressed files, nor how to test if they do so.
4174 # Check whether --with-compress-info was given.
4175 if test "${with_compress_info+set}" = set; then :
4176 withval
=$with_compress_info;
4178 with_compress_info
=$with_features
4181 if test $with_compress_info = yes; then
4189 # Check whether --with-pkg-config-prog was given.
4190 if test "${with_pkg_config_prog+set}" = set; then :
4191 withval
=$with_pkg_config_prog;
4194 if test "X${with_pkg_config_prog}" != X
; then
4195 if test "${with_pkg_config_prog}" != yes; then
4196 PKG_CONFIG
="${with_pkg_config_prog}"
4202 # Check whether --with-crt-dir was given.
4203 if test "${with_crt_dir+set}" = set; then :
4204 withval
=$with_crt_dir;
4207 CRT_DIR
="${with_crt_dir}"
4210 # Check whether --with-gameuser was given.
4211 if test "${with_gameuser+set}" = set; then :
4212 withval
=$with_gameuser;
4215 test "X${with_gameuser}" != X
&& test "${with_gameuser}" != yes \
4216 && gameuser
="${with_gameuser}"
4217 test "X$gameuser" = X
&& gameuser
=games
4220 # Check whether --with-gnustep-conf was given.
4221 if test "${with_gnustep_conf+set}" = set; then :
4222 withval
=$with_gnustep_conf;
4225 test "X${with_gnustep_conf}" != X
&& test "${with_gnustep_conf}" != yes && \
4226 GNUSTEP_CONFIG_FILE
="${with_gnustep_conf}"
4227 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
4228 GNUSTEP_CONFIG_FILE
=/etc
/GNUstep
/GNUstep.conf
4230 # Check whether --enable-ns-self-contained was given.
4231 if test "${enable_ns_self_contained+set}" = set; then :
4232 enableval
=$enable_ns_self_contained; EN_NS_SELF_CONTAINED
=$enableval
4234 EN_NS_SELF_CONTAINED
=yes
4238 # Check whether --enable-locallisppath was given.
4239 if test "${enable_locallisppath+set}" = set; then :
4240 enableval
=$enable_locallisppath; if test "${enableval}" = "no"; then
4242 elif test "${enableval}" != "yes"; then
4243 locallisppath
=${enableval}
4248 # Check whether --enable-checking was given.
4249 if test "${enable_checking+set}" = set; then :
4250 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
4253 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
4254 for check
in $ac_checking_flags
4257 # these set all the flags to specific states
4258 yes) ac_enable_checking
=1 ;;
4259 no
) ac_enable_checking
= ;
4260 ac_gc_check_stringbytes
= ;
4261 ac_gc_check_string_overrun
= ;
4262 ac_gc_check_string_free_list
= ;
4263 ac_xmalloc_overrun
= ;
4264 ac_gc_check_cons_list
= ;
4266 all
) ac_enable_checking
=1 ;
4267 ac_gc_check_stringbytes
=1 ;
4268 ac_gc_check_string_overrun
=1 ;
4269 ac_gc_check_string_free_list
=1 ;
4270 ac_xmalloc_overrun
=1 ;
4271 ac_gc_check_cons_list
=1 ;
4272 ac_glyphs_debug
=1 ;;
4273 # these enable particular checks
4274 stringbytes
) ac_gc_check_stringbytes
=1 ;;
4275 stringoverrun
) ac_gc_check_string_overrun
=1 ;;
4276 stringfreelist
) ac_gc_check_string_free_list
=1 ;;
4277 xmallocoverrun
) ac_xmalloc_overrun
=1 ;;
4278 conslist
) ac_gc_check_cons_list
=1 ;;
4279 glyphs
) ac_glyphs_debug
=1 ;;
4280 *) as_fn_error
"unknown check category $check" "$LINENO" 5 ;;
4285 if test x
$ac_enable_checking != x
; then
4287 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
4290 if test x
$ac_gc_check_stringbytes != x
; then
4292 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
4295 if test x
$ac_gc_check_string_overrun != x
; then
4297 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
4300 if test x
$ac_gc_check_string_free_list != x
; then
4302 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
4305 if test x
$ac_xmalloc_overrun != x
; then
4307 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
4310 if test x
$ac_gc_check_cons_list != x
; then
4312 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
4315 if test x
$ac_glyphs_debug != x
; then
4317 $as_echo "#define GLYPH_DEBUG 1" >>confdefs.h
4321 # Check whether --enable-check-lisp-object-type was given.
4322 if test "${enable_check_lisp_object_type+set}" = set; then :
4323 enableval
=$enable_check_lisp_object_type; if test "${enableval}" != "no"; then
4325 $as_echo "#define CHECK_LISP_OBJECT_TYPE 1" >>confdefs.h
4332 # Check whether --enable-profiling was given.
4333 if test "${enable_profiling+set}" = set; then :
4334 enableval
=$enable_profiling; ac_enable_profiling
="${enableval}"
4337 if test x
$ac_enable_profiling != x
; then
4338 PROFILING_CFLAGS
="-DPROFILING=1 -pg"
4344 # Check whether --enable-autodepend was given.
4345 if test "${enable_autodepend+set}" = set; then :
4346 enableval
=$enable_autodepend; ac_enable_autodepend
="${enableval}"
4348 ac_enable_autodepend
=yes
4352 #### Make srcdir absolute, if it isn't already. It's important to
4353 #### avoid running the path through pwd unnecessarily, since pwd can
4354 #### give you automounter prefixes, which can go away. We do all this
4355 #### so Emacs can find its files when run uninstalled.
4356 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
4361 ## We may be able to use the $PWD environment variable to make this
4362 ## absolute. But sometimes PWD is inaccurate.
4363 ## Note: we used to use ${PWD} at the end instead of `pwd`,
4364 ## but that tested only for a well-formed and valid PWD,
4365 ## it did not object when PWD was well-formed and valid but just wrong.
4366 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
4370 srcdir
="`(cd ${srcdir}; pwd)`"
4373 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
4376 ### Canonicalize the configuration name.
4378 # Make sure we can run config.sub.
4379 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
4380 as_fn_error
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4383 $as_echo_n "checking build system type... " >&6; }
4384 if test "${ac_cv_build+set}" = set; then :
4385 $as_echo_n "(cached) " >&6
4387 ac_build_alias
=$build_alias
4388 test "x$ac_build_alias" = x
&&
4389 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
4390 test "x$ac_build_alias" = x
&&
4391 as_fn_error
"cannot guess build type; you must specify one" "$LINENO" 5
4392 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4393 as_fn_error
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4397 $as_echo "$ac_cv_build" >&6; }
4398 case $ac_cv_build in
4400 *) as_fn_error
"invalid value of canonical build" "$LINENO" 5;;
4403 ac_save_IFS
=$IFS; IFS
='-'
4409 # Remember, the first character of IFS is used to create $*,
4410 # except with old shells:
4413 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
4416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4417 $as_echo_n "checking host system type... " >&6; }
4418 if test "${ac_cv_host+set}" = set; then :
4419 $as_echo_n "(cached) " >&6
4421 if test "x$host_alias" = x
; then
4422 ac_cv_host
=$ac_cv_build
4424 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4425 as_fn_error
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4430 $as_echo "$ac_cv_host" >&6; }
4433 *) as_fn_error
"invalid value of canonical host" "$LINENO" 5;;
4436 ac_save_IFS
=$IFS; IFS
='-'
4442 # Remember, the first character of IFS is used to create $*,
4443 # except with old shells:
4446 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
4450 configuration
=${host_alias-${build_alias-$host}}
4454 ### If you add support for a new configuration, add code to this
4455 ### switch statement to recognize your configuration name and select
4456 ### the appropriate operating system file.
4458 ### You would hope that you could choose an s/*.h
4459 ### file based on the operating system portion. However, it turns out
4460 ### that each s/*.h file is pretty manufacturer-specific.
4461 ### So we basically have to have a special case for each
4462 ### configuration name.
4464 ### As far as handling version numbers on operating systems is
4465 ### concerned, make sure things will fail in a fixable way. If
4466 ### /etc/MACHINES doesn't say anything about version numbers, be
4467 ### prepared to handle anything reasonably. If version numbers
4468 ### matter, be sure /etc/MACHINES says something about it.
4470 opsys
='' unported
=no
4471 case "${canonical}" in
4473 ## GNU/Linux and similar ports
4483 ## FreeBSD kernel + glibc based userland
4498 ## Apple Darwin / Mac OS X
4500 case "${canonical}" in
4507 ## Use fink packages if available.
4508 ## FIXME find a better way to do this: http://debbugs.gnu.org/11507
4509 ## if test -d /sw/include && test -d /sw/lib; then
4510 ## GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
4511 ## NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
4515 ## HP 9000 series 700 and 800, running HP/UX
4516 hppa
*-hp-hpux10.2
* )
4519 hppa
*-hp-hpux1[1-9]* )
4521 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
4525 rs6000-ibm-aix4.
[23]* )
4528 powerpc-ibm-aix4.
[23]* )
4531 rs6000-ibm-aix
[56]* )
4534 powerpc-ibm-aix
[56]* )
4538 ## Silicon Graphics machines
4542 # Without defining _LANGUAGE_C, things get masked out in the headers
4543 # so that, for instance, grepping for `free' in stdlib.h fails and
4544 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
4545 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
4550 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* \
4551 | x86_64-
*-solaris2* | x86_64-
*-sunos5*)
4552 case "${canonical}" in
4554 amd64-
*-*|x86_64-
*-*) ;;
4558 case "${canonical}" in
4559 *-sunos5.6
* |
*-solaris2.6
* )
4563 *-sunos5.
[7-9]* |
*-solaris2.
[7-9]* )
4565 emacs_check_sunpro_c
=yes
4567 *-sunos5* |
*-solaris* )
4569 emacs_check_sunpro_c
=yes
4572 ## Watch out for a compiler that we know will not work.
4573 case "${canonical}" in
4574 *-solaris* |
*-sunos5* )
4575 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
4576 ## /usr/ucb/cc doesn't work;
4577 ## we should find some other compiler that does work.
4585 ## Intel 386 machines where we don't care about the manufacturer.
4587 case "${canonical}" in
4588 *-cygwin ) opsys
=cygwin
;;
4589 *-darwin* ) opsys
=darwin
;;
4590 *-sysv4.2uw
* ) opsys
=unixware
;;
4591 *-sysv5uw* ) opsys
=unixware
;;
4592 *-sysv5OpenUNIX* ) opsys
=unixware
;;
4593 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
4602 ### If the code above didn't choose an operating system, just choose
4603 ### an operating system based on the configuration name. You really
4604 ### only want to use this when you have no idea what the right
4605 ### operating system is; if you know what operating systems a machine
4606 ### runs, it's cleaner to make it explicit in the case statement
4608 if test x
"${opsys}" = x
; then
4609 case "${canonical}" in
4610 *-gnu* ) opsys
=gnu
;;
4619 if test $unported = yes; then
4620 as_fn_error
"Emacs hasn't been ported to \`${canonical}' systems.
4621 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
4625 #### Choose a compiler.
4628 ac_cpp
='$CPP $CPPFLAGS'
4629 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4630 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4631 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4632 if test -n "$ac_tool_prefix"; then
4633 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4634 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
4635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4636 $as_echo_n "checking for $ac_word... " >&6; }
4637 if test "${ac_cv_prog_CC+set}" = set; then :
4638 $as_echo_n "(cached) " >&6
4640 if test -n "$CC"; then
4641 ac_cv_prog_CC
="$CC" # Let the user override the test.
4643 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4647 test -z "$as_dir" && as_dir
=.
4648 for ac_exec_ext
in '' $ac_executable_extensions; do
4649 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4650 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
4651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4661 if test -n "$CC"; then
4662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4663 $as_echo "$CC" >&6; }
4665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4666 $as_echo "no" >&6; }
4671 if test -z "$ac_cv_prog_CC"; then
4673 # Extract the first word of "gcc", so it can be a program name with args.
4674 set dummy gcc
; ac_word
=$2
4675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4676 $as_echo_n "checking for $ac_word... " >&6; }
4677 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4678 $as_echo_n "(cached) " >&6
4680 if test -n "$ac_ct_CC"; then
4681 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4683 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4687 test -z "$as_dir" && as_dir
=.
4688 for ac_exec_ext
in '' $ac_executable_extensions; do
4689 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4690 ac_cv_prog_ac_ct_CC
="gcc"
4691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4700 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4701 if test -n "$ac_ct_CC"; then
4702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4703 $as_echo "$ac_ct_CC" >&6; }
4705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4706 $as_echo "no" >&6; }
4709 if test "x$ac_ct_CC" = x
; then
4712 case $cross_compiling:$ac_tool_warned in
4714 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4715 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4716 ac_tool_warned
=yes ;;
4724 if test -z "$CC"; then
4725 if test -n "$ac_tool_prefix"; then
4726 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4727 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4729 $as_echo_n "checking for $ac_word... " >&6; }
4730 if test "${ac_cv_prog_CC+set}" = set; then :
4731 $as_echo_n "(cached) " >&6
4733 if test -n "$CC"; then
4734 ac_cv_prog_CC
="$CC" # Let the user override the test.
4736 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4740 test -z "$as_dir" && as_dir
=.
4741 for ac_exec_ext
in '' $ac_executable_extensions; do
4742 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4743 ac_cv_prog_CC
="${ac_tool_prefix}cc"
4744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4754 if test -n "$CC"; then
4755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4756 $as_echo "$CC" >&6; }
4758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4759 $as_echo "no" >&6; }
4765 if test -z "$CC"; then
4766 # Extract the first word of "cc", so it can be a program name with args.
4767 set dummy cc
; ac_word
=$2
4768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4769 $as_echo_n "checking for $ac_word... " >&6; }
4770 if test "${ac_cv_prog_CC+set}" = set; then :
4771 $as_echo_n "(cached) " >&6
4773 if test -n "$CC"; then
4774 ac_cv_prog_CC
="$CC" # Let the user override the test.
4777 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4781 test -z "$as_dir" && as_dir
=.
4782 for ac_exec_ext
in '' $ac_executable_extensions; do
4783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4784 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4785 ac_prog_rejected
=yes
4789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4796 if test $ac_prog_rejected = yes; then
4797 # We found a bogon in the path, so make sure we never use it.
4798 set dummy
$ac_cv_prog_CC
4800 if test $# != 0; then
4801 # We chose a different compiler from the bogus one.
4802 # However, it has the same basename, so the bogon will be chosen
4803 # first if we set CC to just the basename; use the full file name.
4805 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
4811 if test -n "$CC"; then
4812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4813 $as_echo "$CC" >&6; }
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4816 $as_echo "no" >&6; }
4821 if test -z "$CC"; then
4822 if test -n "$ac_tool_prefix"; then
4823 for ac_prog
in cl.exe
4825 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4826 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4828 $as_echo_n "checking for $ac_word... " >&6; }
4829 if test "${ac_cv_prog_CC+set}" = set; then :
4830 $as_echo_n "(cached) " >&6
4832 if test -n "$CC"; then
4833 ac_cv_prog_CC
="$CC" # Let the user override the test.
4835 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4839 test -z "$as_dir" && as_dir
=.
4840 for ac_exec_ext
in '' $ac_executable_extensions; do
4841 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4842 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
4843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4853 if test -n "$CC"; then
4854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4855 $as_echo "$CC" >&6; }
4857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4858 $as_echo "no" >&6; }
4862 test -n "$CC" && break
4865 if test -z "$CC"; then
4867 for ac_prog
in cl.exe
4869 # Extract the first word of "$ac_prog", so it can be a program name with args.
4870 set dummy
$ac_prog; ac_word
=$2
4871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4872 $as_echo_n "checking for $ac_word... " >&6; }
4873 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4874 $as_echo_n "(cached) " >&6
4876 if test -n "$ac_ct_CC"; then
4877 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4879 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4883 test -z "$as_dir" && as_dir
=.
4884 for ac_exec_ext
in '' $ac_executable_extensions; do
4885 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4886 ac_cv_prog_ac_ct_CC
="$ac_prog"
4887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4896 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4897 if test -n "$ac_ct_CC"; then
4898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4899 $as_echo "$ac_ct_CC" >&6; }
4901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4902 $as_echo "no" >&6; }
4906 test -n "$ac_ct_CC" && break
4909 if test "x$ac_ct_CC" = x
; then
4912 case $cross_compiling:$ac_tool_warned in
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4915 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4916 ac_tool_warned
=yes ;;
4925 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4926 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4927 as_fn_error
"no acceptable C compiler found in \$PATH
4928 See \`config.log' for more details." "$LINENO" 5; }
4930 # Provide some information about the compiler.
4931 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4934 for ac_option
in --version -v -V -qversion; do
4935 { { ac_try
="$ac_compiler $ac_option >&5"
4937 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4938 *) ac_try_echo=$ac_try;;
4940 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4941 $as_echo "$ac_try_echo"; } >&5
4942 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4944 if test -s conftest.err; then
4946 ... rest of stderr output deleted ...
4947 10q' conftest.err >conftest.er1
4948 cat conftest.er1 >&5
4950 rm -f conftest.er1 conftest.err
4951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4952 test $ac_status = 0; }
4955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4956 /* end confdefs.h. */
4966 ac_clean_files_save=$ac_clean_files
4967 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4968 # Try to create an executable without -o first, disregard a.out.
4969 # It will help us diagnose broken compilers, and finding out an intuition
4971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4972 $as_echo_n "checking whether the C compiler works... " >&6; }
4973 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
4975 # The possible output files:
4976 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4979 for ac_file in $ac_files
4982 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4983 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4988 if { { ac_try="$ac_link_default"
4990 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4991 *) ac_try_echo
=$ac_try;;
4993 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4994 $as_echo "$ac_try_echo"; } >&5
4995 (eval "$ac_link_default") 2>&5
4997 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4998 test $ac_status = 0; }; then :
4999 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
5000 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
5001 # in a Makefile. We should not override ac_cv_exeext if it was cached,
5002 # so that the user can short-circuit this test for compilers unknown to
5004 for ac_file
in $ac_files ''
5006 test -f "$ac_file" ||
continue
5008 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
5011 # We found the default executable, but exeext='' is most
5015 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
5017 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
5019 # We set ac_cv_exeext here because the later test for it is not
5020 # safe: cross compilers may not add the suffix if given an `-o'
5021 # argument, so we may need to know it at that point already.
5022 # Even if this section looks crufty: it has the advantage of
5029 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
5034 if test -z "$ac_file"; then :
5035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5036 $as_echo "no" >&6; }
5037 $as_echo "$as_me: failed program was:" >&5
5038 sed 's/^/| /' conftest.
$ac_ext >&5
5040 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5041 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5042 { as_fn_set_status
77
5043 as_fn_error
"C compiler cannot create executables
5044 See \`config.log' for more details." "$LINENO" 5; }; }
5046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5047 $as_echo "yes" >&6; }
5049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5050 $as_echo_n "checking for C compiler default output file name... " >&6; }
5051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5052 $as_echo "$ac_file" >&6; }
5053 ac_exeext
=$ac_cv_exeext
5055 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
5056 ac_clean_files
=$ac_clean_files_save
5057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5058 $as_echo_n "checking for suffix of executables... " >&6; }
5059 if { { ac_try
="$ac_link"
5061 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5062 *) ac_try_echo=$ac_try;;
5064 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5065 $as_echo "$ac_try_echo"; } >&5
5066 (eval "$ac_link") 2>&5
5068 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5069 test $ac_status = 0; }; then :
5070 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
5071 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
5072 # work properly (i.e., refer to `conftest.exe'), while it won't with
5074 for ac_file
in conftest.exe conftest conftest.
*; do
5075 test -f "$ac_file" ||
continue
5077 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
5078 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
5084 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5085 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5086 as_fn_error
"cannot compute suffix of executables: cannot compile and link
5087 See \`config.log' for more details." "$LINENO" 5; }
5089 rm -f conftest conftest
$ac_cv_exeext
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5091 $as_echo "$ac_cv_exeext" >&6; }
5093 rm -f conftest.
$ac_ext
5094 EXEEXT
=$ac_cv_exeext
5096 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5097 /* end confdefs.h. */
5102 FILE *f = fopen ("conftest.out", "w");
5103 return ferror (f) || fclose (f) != 0;
5109 ac_clean_files
="$ac_clean_files conftest.out"
5110 # Check that the compiler produces executables we can run. If not, either
5111 # the compiler is broken, or we cross compile.
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5113 $as_echo_n "checking whether we are cross compiling... " >&6; }
5114 if test "$cross_compiling" != yes; then
5115 { { ac_try
="$ac_link"
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_link") 2>&5
5124 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5125 test $ac_status = 0; }
5126 if { ac_try='./conftest$ac_cv_exeext'
5127 { { case "(($ac_try" in
5128 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5129 *) ac_try_echo
=$ac_try;;
5131 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5132 $as_echo "$ac_try_echo"; } >&5
5133 (eval "$ac_try") 2>&5
5135 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5136 test $ac_status = 0; }; }; then
5139 if test "$cross_compiling" = maybe
; then
5142 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5143 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5144 as_fn_error
"cannot run C compiled programs.
5145 If you meant to cross compile, use \`--host'.
5146 See \`config.log' for more details." "$LINENO" 5; }
5150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5151 $as_echo "$cross_compiling" >&6; }
5153 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
5154 ac_clean_files
=$ac_clean_files_save
5155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5156 $as_echo_n "checking for suffix of object files... " >&6; }
5157 if test "${ac_cv_objext+set}" = set; then :
5158 $as_echo_n "(cached) " >&6
5160 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5161 /* end confdefs.h. */
5171 rm -f conftest.o conftest.obj
5172 if { { ac_try
="$ac_compile"
5174 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5175 *) ac_try_echo=$ac_try;;
5177 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5178 $as_echo "$ac_try_echo"; } >&5
5179 (eval "$ac_compile") 2>&5
5181 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5182 test $ac_status = 0; }; then :
5183 for ac_file in conftest.o conftest.obj conftest.*; do
5184 test -f "$ac_file" || continue;
5186 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5187 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5192 $as_echo "$as_me: failed program was:" >&5
5193 sed 's/^/| /' conftest.$ac_ext >&5
5195 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5196 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5197 as_fn_error "cannot compute suffix of object files
: cannot compile
5198 See \
`config.log' for more details." "$LINENO" 5; }
5200 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5203 $as_echo "$ac_cv_objext" >&6; }
5204 OBJEXT=$ac_cv_objext
5206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5207 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5208 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5209 $as_echo_n "(cached) " >&6
5211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5212 /* end confdefs.h. */
5225 if ac_fn_c_try_compile "$LINENO"; then :
5230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5231 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5235 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5236 if test $ac_compiler_gnu = yes; then
5241 ac_test_CFLAGS=${CFLAGS+set}
5242 ac_save_CFLAGS=$CFLAGS
5243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5244 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5245 if test "${ac_cv_prog_cc_g+set}" = set; then :
5246 $as_echo_n "(cached) " >&6
5248 ac_save_c_werror_flag=$ac_c_werror_flag
5249 ac_c_werror_flag=yes
5252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5253 /* end confdefs.h. */
5263 if ac_fn_c_try_compile "$LINENO"; then :
5267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5268 /* end confdefs.h. */
5278 if ac_fn_c_try_compile "$LINENO"; then :
5281 ac_c_werror_flag=$ac_save_c_werror_flag
5283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5284 /* end confdefs.h. */
5294 if ac_fn_c_try_compile "$LINENO"; then :
5297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5302 ac_c_werror_flag=$ac_save_c_werror_flag
5304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5305 $as_echo "$ac_cv_prog_cc_g" >&6; }
5306 if test "$ac_test_CFLAGS" = set; then
5307 CFLAGS=$ac_save_CFLAGS
5308 elif test $ac_cv_prog_cc_g = yes; then
5309 if test "$GCC" = yes; then
5315 if test "$GCC" = yes; then
5321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5322 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5323 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5324 $as_echo_n "(cached) " >&6
5326 ac_cv_prog_cc_c89=no
5328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5329 /* end confdefs.h. */
5332 #include <sys/types.h>
5333 #include <sys/stat.h>
5334 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5335 struct buf { int x; };
5336 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5337 static char *e (p, i)
5343 static char *f (char * (*g) (char **, int), char **p, ...)
5348 s = g (p, va_arg (v,int));
5353 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5354 function prototypes and stuff, but not '\xHH' hex character constants.
5355 These don't provoke an error unfortunately, instead are silently treated
5356 as 'x'. The following induces an error, until -std is added to get
5357 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5358 array size at least. It's necessary to write '\x00'==0 to get something
5359 that's true only with -std. */
5360 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5362 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5363 inside strings and character constants. */
5365 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5367 int test (int i, double x);
5368 struct s1 {int (*f) (int a);};
5369 struct s2 {int (*f) (double a);};
5370 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5376 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5381 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5382 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5384 CC="$ac_save_CC $ac_arg"
5385 if ac_fn_c_try_compile "$LINENO"; then :
5386 ac_cv_prog_cc_c89=$ac_arg
5388 rm -f core conftest.err conftest.$ac_objext
5389 test "x$ac_cv_prog_cc_c89" != "xno" && break
5391 rm -f conftest.$ac_ext
5396 case "x$ac_cv_prog_cc_c89" in
5398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5399 $as_echo "none needed" >&6; } ;;
5401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5402 $as_echo "unsupported" >&6; } ;;
5404 CC="$CC $ac_cv_prog_cc_c89"
5405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5406 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5408 if test "x$ac_cv_prog_cc_c89" != xno; then :
5413 ac_cpp='$CPP $CPPFLAGS'
5414 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5415 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5416 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5417 DEPDIR="${am__leading_dot}deps"
5419 ac_config_commands="$ac_config_commands depfiles"
5422 am_make=${MAKE-make}
5423 cat > confinc << 'END'
5425 @echo this is the am__doit target
5428 # If we don't find an include directive, just comment out the code.
5429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5430 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5434 # First try GNU make style include.
5435 echo "include confinc" > confmf
5436 # Ignore all kinds of additional output from `make'.
5437 case `$am_make -s -f confmf 2> /dev/null` in #(
5438 *the\ am__doit\ target*)
5444 # Now try BSD make style include.
5445 if test "$am__include" = "#"; then
5446 echo '.include
"confinc"' > confmf
5447 case `$am_make -s -f confmf 2> /dev/null` in #(
5448 *the\ am__doit\ target*)
5449 am__include=.include
5457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5458 $as_echo "$_am_result" >&6; }
5459 rm -f confinc confmf
5461 # Check whether --enable-dependency-tracking was given.
5462 if test "${enable_dependency_tracking+set}" = set; then :
5463 enableval=$enable_dependency_tracking;
5466 if test "x$enable_dependency_tracking" != xno; then
5467 am_depcomp="$ac_aux_dir/depcomp"
5470 if test "x$enable_dependency_tracking" != xno
; then
5480 depcc
="$CC" am_compiler_list
=
5482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5483 $as_echo_n "checking dependency style of $depcc... " >&6; }
5484 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5485 $as_echo_n "(cached) " >&6
5487 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5488 # We make a subdir and do the tests there. Otherwise we can end up
5489 # making bogus files that we don't know about and never remove. For
5490 # instance it was reported that on HP-UX the gcc test will end up
5491 # making a dummy file named `D' -- because `-MD' means `put the output
5494 # Copy depcomp to subdir because otherwise we won't find it if we're
5495 # using a relative directory.
5496 cp "$am_depcomp" conftest.dir
5498 # We will build objects and dependencies in a subdirectory because
5499 # it helps to detect inapplicable dependency modes. For instance
5500 # both Tru64's cc and ICC support -MD to output dependencies as a
5501 # side effect of compilation, but ICC will put the dependencies in
5502 # the current directory while Tru64 will put them in the object
5506 am_cv_CC_dependencies_compiler_type
=none
5507 if test "$am_compiler_list" = ""; then
5508 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5511 case " $depcc " in #(
5512 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
5515 for depmode
in $am_compiler_list; do
5516 # Setup a source with many dependencies, because some compilers
5517 # like to wrap large dependency lists on column 80 (with \), and
5518 # we should not choose a depcomp mode which is confused by this.
5520 # We need to recreate these files for each test, as the compiler may
5521 # overwrite some of them when testing with obscure command lines.
5522 # This happens at least with the AIX C compiler.
5524 for i
in 1 2 3 4 5 6; do
5525 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
5526 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5527 # Solaris 8's {/usr,}/bin/sh.
5528 touch sub
/conftst
$i.h
5530 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5532 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5533 # mode. It turns out that the SunPro C++ compiler does not properly
5534 # handle `-M -o', and we need to detect this. Also, some Intel
5535 # versions had trouble with output in subdirs
5536 am__obj
=sub
/conftest.
${OBJEXT-o}
5537 am__minus_obj
="-o $am__obj"
5540 # This depmode causes a compiler race in universal mode.
5541 test "$am__universal" = false ||
continue
5544 # after this tag, mechanisms are not by side-effect, so they'll
5545 # only be used when explicitly requested
5546 if test "x$enable_dependency_tracking" = xyes
; then
5552 msvisualcpp | msvcmsys
)
5553 # This compiler won't grok `-c -o', but also, the minuso test has
5554 # not run yet. These depmodes are late enough in the game, and
5555 # so weak that their functioning should not be impacted.
5556 am__obj
=conftest.
${OBJEXT-o}
5561 if depmode
=$depmode \
5562 source=sub
/conftest.c object
=$am__obj \
5563 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
5564 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
5565 >/dev
/null
2>conftest.err
&&
5566 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
5567 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
5568 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
5569 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
5570 # icc doesn't choke on unknown options, it will just issue warnings
5571 # or remarks (even with -Werror). So we grep stderr for any message
5572 # that says an option was ignored or not supported.
5573 # When given -MP, icc 7.0 and 7.1 complain thusly:
5574 # icc: Command line warning: ignoring option '-M'; no argument required
5575 # The diagnosis changed in icc 8.0:
5576 # icc: Command line remark: option '-MP' not supported
5577 if (grep 'ignoring option' conftest.err ||
5578 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
5579 am_cv_CC_dependencies_compiler_type
=$depmode
5588 am_cv_CC_dependencies_compiler_type
=none
5592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5593 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5594 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
5597 test "x$enable_dependency_tracking" != xno \
5598 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
5600 am__fastdepCC_FALSE
='#'
5602 am__fastdepCC_TRUE
='#'
5603 am__fastdepCC_FALSE
=
5607 if test "x$CC" != xcc
; then
5608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5609 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5612 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5614 set dummy
$CC; ac_cc
=`$as_echo "$2" |
5615 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5616 if { as_var
=ac_cv_prog_cc_
${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
5617 $as_echo_n "(cached) " >&6
5619 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5620 /* end confdefs.h. */
5630 # Make sure it works both with $CC and with simple cc.
5631 # We do the test twice because some compilers refuse to overwrite an
5632 # existing .o file with -o, though they will create one.
5633 ac_try
='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5635 if { { case "(($ac_try" in
5636 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5637 *) ac_try_echo=$ac_try;;
5639 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5640 $as_echo "$ac_try_echo"; } >&5
5641 (eval "$ac_try") 2>&5
5643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5644 test $ac_status = 0; } &&
5645 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5646 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5647 *) ac_try_echo
=$ac_try;;
5649 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5650 $as_echo "$ac_try_echo"; } >&5
5651 (eval "$ac_try") 2>&5
5653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5654 test $ac_status = 0; };
5656 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
5657 if test "x$CC" != xcc
; then
5658 # Test first that cc exists at all.
5659 if { ac_try
='cc -c conftest.$ac_ext >&5'
5660 { { case "(($ac_try" in
5661 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5662 *) ac_try_echo=$ac_try;;
5664 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5665 $as_echo "$ac_try_echo"; } >&5
5666 (eval "$ac_try") 2>&5
5668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5669 test $ac_status = 0; }; }; then
5670 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5672 if { { case "(($ac_try" in
5673 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5674 *) ac_try_echo
=$ac_try;;
5676 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5677 $as_echo "$ac_try_echo"; } >&5
5678 (eval "$ac_try") 2>&5
5680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5681 test $ac_status = 0; } &&
5682 test -f conftest2.
$ac_objext && { { case "(($ac_try" in
5683 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5684 *) ac_try_echo=$ac_try;;
5686 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5687 $as_echo "$ac_try_echo"; } >&5
5688 (eval "$ac_try") 2>&5
5690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5691 test $ac_status = 0; };
5696 # cc exists but doesn't like -o.
5697 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5702 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5704 rm -f core conftest*
5707 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5709 $as_echo "yes" >&6; }
5711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5712 $as_echo "no" >&6; }
5714 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5718 # FIXME: we rely on the cache variable name because
5719 # there is no other way.
5721 am_cc=`echo $2 |
sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5722 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5723 if test "$am_t" != yes; then
5724 # Losing compiler, so override with the script.
5725 # FIXME: It is wrong to rewrite CC.
5726 # But if we don't then we get into trouble of one sort or another.
5727 # A longer-term fix would be to have automake use am__CC in this case,
5728 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5729 CC="$am_aux_dir/compile $CC"
5734 if test x$GCC = xyes; then
5735 test "x$GCC_TEST_OPTIONS" != x && CC="$CC $GCC_TEST_OPTIONS"
5737 test "x$NON_GCC_TEST_OPTIONS" != x && CC="$CC $NON_GCC_TEST_OPTIONS"
5740 # Initialize gnulib right after choosing the compiler.
5743 ac_cpp='$CPP $CPPFLAGS'
5744 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5745 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5746 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5748 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5749 # On Suns, sometimes $CPP names a directory.
5750 if test -n "$CPP" && test -d "$CPP"; then
5753 if test -z "$CPP"; then
5754 if test "${ac_cv_prog_CPP+set}" = set; then :
5755 $as_echo_n "(cached) " >&6
5757 # Double quotes because CPP needs to be expanded
5758 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5761 for ac_c_preproc_warn_flag in '' yes
5763 # Use a header file that comes with gcc, so configuring glibc
5764 # with a fresh cross-compiler works.
5765 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5766 # <limits.h> exists even on freestanding compilers.
5767 # On the NeXT, cc -E runs the code through the compiler's parser,
5768 # not just through cpp. "Syntax error" is here to catch this case.
5769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5770 /* end confdefs.h. */
5772 # include <limits.h>
5774 # include <assert.h>
5778 if ac_fn_c_try_cpp "$LINENO"; then :
5781 # Broken: fails on valid input.
5784 rm -f conftest.err conftest.$ac_ext
5786 # OK, works on sane cases. Now check whether nonexistent headers
5787 # can be detected and how.
5788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5789 /* end confdefs.h. */
5790 #include <ac_nonexistent.h>
5792 if ac_fn_c_try_cpp "$LINENO"; then :
5793 # Broken: success on invalid input.
5796 # Passes both tests.
5800 rm -f conftest.err conftest.$ac_ext
5803 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5804 rm -f conftest.err conftest.
$ac_ext
5805 if $ac_preproc_ok; then :
5817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5818 $as_echo "$CPP" >&6; }
5820 for ac_c_preproc_warn_flag
in '' yes
5822 # Use a header file that comes with gcc, so configuring glibc
5823 # with a fresh cross-compiler works.
5824 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5825 # <limits.h> exists even on freestanding compilers.
5826 # On the NeXT, cc -E runs the code through the compiler's parser,
5827 # not just through cpp. "Syntax error" is here to catch this case.
5828 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5829 /* end confdefs.h. */
5831 # include <limits.h>
5833 # include <assert.h>
5837 if ac_fn_c_try_cpp
"$LINENO"; then :
5840 # Broken: fails on valid input.
5843 rm -f conftest.err conftest.
$ac_ext
5845 # OK, works on sane cases. Now check whether nonexistent headers
5846 # can be detected and how.
5847 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5848 /* end confdefs.h. */
5849 #include <ac_nonexistent.h>
5851 if ac_fn_c_try_cpp
"$LINENO"; then :
5852 # Broken: success on invalid input.
5855 # Passes both tests.
5859 rm -f conftest.err conftest.
$ac_ext
5862 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5863 rm -f conftest.err conftest.
$ac_ext
5864 if $ac_preproc_ok; then :
5867 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5868 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5869 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
5870 See \`config.log' for more details." "$LINENO" 5; }
5874 ac_cpp
='$CPP $CPPFLAGS'
5875 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5876 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5877 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5881 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5882 if test "${ac_cv_path_GREP+set}" = set; then :
5883 $as_echo_n "(cached) " >&6
5885 if test -z "$GREP"; then
5886 ac_path_GREP_found
=false
5887 # Loop through the user's path and test for each of PROGNAME-LIST
5888 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5889 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5892 test -z "$as_dir" && as_dir
=.
5893 for ac_prog
in grep ggrep
; do
5894 for ac_exec_ext
in '' $ac_executable_extensions; do
5895 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5896 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
5897 # Check for GNU ac_path_GREP and select it if it is found.
5898 # Check for GNU $ac_path_GREP
5899 case `"$ac_path_GREP" --version 2>&1` in
5901 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5904 $as_echo_n 0123456789 >"conftest.in"
5907 cat "conftest.in" "conftest.in" >"conftest.tmp"
5908 mv "conftest.tmp" "conftest.in"
5909 cp "conftest.in" "conftest.nl"
5910 $as_echo 'GREP' >> "conftest.nl"
5911 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5912 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5913 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5914 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5915 # Best one so far, save it but keep looking for a better one
5916 ac_cv_path_GREP
="$ac_path_GREP"
5917 ac_path_GREP_max
=$ac_count
5919 # 10*(2^10) chars as input seems more than enough
5920 test $ac_count -gt 10 && break
5922 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5925 $ac_path_GREP_found && break 3
5930 if test -z "$ac_cv_path_GREP"; then
5931 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5934 ac_cv_path_GREP
=$GREP
5938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5939 $as_echo "$ac_cv_path_GREP" >&6; }
5940 GREP
="$ac_cv_path_GREP"
5943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5944 $as_echo_n "checking for egrep... " >&6; }
5945 if test "${ac_cv_path_EGREP+set}" = set; then :
5946 $as_echo_n "(cached) " >&6
5948 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5949 then ac_cv_path_EGREP
="$GREP -E"
5951 if test -z "$EGREP"; then
5952 ac_path_EGREP_found
=false
5953 # Loop through the user's path and test for each of PROGNAME-LIST
5954 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5955 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5958 test -z "$as_dir" && as_dir
=.
5959 for ac_prog
in egrep; do
5960 for ac_exec_ext
in '' $ac_executable_extensions; do
5961 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5962 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
5963 # Check for GNU ac_path_EGREP and select it if it is found.
5964 # Check for GNU $ac_path_EGREP
5965 case `"$ac_path_EGREP" --version 2>&1` in
5967 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5970 $as_echo_n 0123456789 >"conftest.in"
5973 cat "conftest.in" "conftest.in" >"conftest.tmp"
5974 mv "conftest.tmp" "conftest.in"
5975 cp "conftest.in" "conftest.nl"
5976 $as_echo 'EGREP' >> "conftest.nl"
5977 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5978 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5979 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5980 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5981 # Best one so far, save it but keep looking for a better one
5982 ac_cv_path_EGREP
="$ac_path_EGREP"
5983 ac_path_EGREP_max
=$ac_count
5985 # 10*(2^10) chars as input seems more than enough
5986 test $ac_count -gt 10 && break
5988 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5991 $ac_path_EGREP_found && break 3
5996 if test -z "$ac_cv_path_EGREP"; then
5997 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6000 ac_cv_path_EGREP
=$EGREP
6005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6006 $as_echo "$ac_cv_path_EGREP" >&6; }
6007 EGREP
="$ac_cv_path_EGREP"
6012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
6013 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
6014 if test "${gl_cv_c_amsterdam_compiler+set}" = set; then :
6015 $as_echo_n "(cached) " >&6
6018 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6019 /* end confdefs.h. */
6026 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6027 $EGREP "Amsterdam" >/dev
/null
2>&1; then :
6028 gl_cv_c_amsterdam_compiler
=yes
6030 gl_cv_c_amsterdam_compiler
=no
6036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
6037 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
6038 if test -z "$AR"; then
6039 if test $gl_cv_c_amsterdam_compiler = yes; then
6041 if test -z "$ARFLAGS"; then
6045 if test -n "$ac_tool_prefix"; then
6046 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6047 set dummy
${ac_tool_prefix}ar; ac_word
=$2
6048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6049 $as_echo_n "checking for $ac_word... " >&6; }
6050 if test "${ac_cv_prog_AR+set}" = set; then :
6051 $as_echo_n "(cached) " >&6
6053 if test -n "$AR"; then
6054 ac_cv_prog_AR
="$AR" # Let the user override the test.
6056 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6060 test -z "$as_dir" && as_dir
=.
6061 for ac_exec_ext
in '' $ac_executable_extensions; do
6062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6063 ac_cv_prog_AR
="${ac_tool_prefix}ar"
6064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6074 if test -n "$AR"; then
6075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6076 $as_echo "$AR" >&6; }
6078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6079 $as_echo "no" >&6; }
6084 if test -z "$ac_cv_prog_AR"; then
6086 # Extract the first word of "ar", so it can be a program name with args.
6087 set dummy
ar; ac_word
=$2
6088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6089 $as_echo_n "checking for $ac_word... " >&6; }
6090 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6091 $as_echo_n "(cached) " >&6
6093 if test -n "$ac_ct_AR"; then
6094 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
6096 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6100 test -z "$as_dir" && as_dir
=.
6101 for ac_exec_ext
in '' $ac_executable_extensions; do
6102 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6103 ac_cv_prog_ac_ct_AR
="ar"
6104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6113 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
6114 if test -n "$ac_ct_AR"; then
6115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6116 $as_echo "$ac_ct_AR" >&6; }
6118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6119 $as_echo "no" >&6; }
6122 if test "x$ac_ct_AR" = x
; then
6125 case $cross_compiling:$ac_tool_warned in
6127 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6128 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6129 ac_tool_warned
=yes ;;
6137 if test -z "$ARFLAGS"; then
6142 if test -z "$ARFLAGS"; then
6148 if test -z "$RANLIB"; then
6149 if test $gl_cv_c_amsterdam_compiler = yes; then
6152 if test -n "$ac_tool_prefix"; then
6153 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6154 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
6155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6156 $as_echo_n "checking for $ac_word... " >&6; }
6157 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6158 $as_echo_n "(cached) " >&6
6160 if test -n "$RANLIB"; then
6161 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
6163 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6167 test -z "$as_dir" && as_dir
=.
6168 for ac_exec_ext
in '' $ac_executable_extensions; do
6169 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6170 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
6171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6180 RANLIB
=$ac_cv_prog_RANLIB
6181 if test -n "$RANLIB"; then
6182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6183 $as_echo "$RANLIB" >&6; }
6185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6186 $as_echo "no" >&6; }
6191 if test -z "$ac_cv_prog_RANLIB"; then
6192 ac_ct_RANLIB
=$RANLIB
6193 # Extract the first word of "ranlib", so it can be a program name with args.
6194 set dummy ranlib
; ac_word
=$2
6195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6196 $as_echo_n "checking for $ac_word... " >&6; }
6197 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6198 $as_echo_n "(cached) " >&6
6200 if test -n "$ac_ct_RANLIB"; then
6201 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
6203 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6207 test -z "$as_dir" && as_dir
=.
6208 for ac_exec_ext
in '' $ac_executable_extensions; do
6209 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6210 ac_cv_prog_ac_ct_RANLIB
="ranlib"
6211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6220 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
6221 if test -n "$ac_ct_RANLIB"; then
6222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6223 $as_echo "$ac_ct_RANLIB" >&6; }
6225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6226 $as_echo "no" >&6; }
6229 if test "x$ac_ct_RANLIB" = x
; then
6232 case $cross_compiling:$ac_tool_warned in
6234 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6235 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6236 ac_tool_warned
=yes ;;
6238 RANLIB
=$ac_ct_RANLIB
6241 RANLIB
="$ac_cv_prog_RANLIB"
6248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6249 $as_echo_n "checking for ANSI C header files... " >&6; }
6250 if test "${ac_cv_header_stdc+set}" = set; then :
6251 $as_echo_n "(cached) " >&6
6253 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6254 /* end confdefs.h. */
6268 if ac_fn_c_try_compile
"$LINENO"; then :
6269 ac_cv_header_stdc
=yes
6271 ac_cv_header_stdc
=no
6273 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6275 if test $ac_cv_header_stdc = yes; then
6276 # SunOS 4.x string.h does not declare mem*, 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 "memchr" >/dev
/null
2>&1; then :
6286 ac_cv_header_stdc
=no
6292 if test $ac_cv_header_stdc = yes; then
6293 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6294 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6295 /* end confdefs.h. */
6299 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6300 $EGREP "free" >/dev
/null
2>&1; then :
6303 ac_cv_header_stdc
=no
6309 if test $ac_cv_header_stdc = yes; then
6310 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6311 if test "$cross_compiling" = yes; then :
6314 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6315 /* end confdefs.h. */
6318 #if ((' ' & 0x0FF) == 0x020)
6319 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6320 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6322 # define ISLOWER(c) \
6323 (('a' <= (c) && (c) <= 'i') \
6324 || ('j' <= (c) && (c) <= 'r') \
6325 || ('s' <= (c) && (c) <= 'z'))
6326 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6329 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6334 for (i = 0; i < 256; i++)
6335 if (XOR (islower (i), ISLOWER (i))
6336 || toupper (i) != TOUPPER (i))
6341 if ac_fn_c_try_run
"$LINENO"; then :
6344 ac_cv_header_stdc
=no
6346 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6347 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6353 $as_echo "$ac_cv_header_stdc" >&6; }
6354 if test $ac_cv_header_stdc = yes; then
6356 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6360 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6361 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
6362 inttypes.h stdint.h unistd.h
6364 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6365 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6367 eval as_val
=\$
$as_ac_Header
6368 if test "x$as_val" = x
""yes; then :
6369 cat >>confdefs.h
<<_ACEOF
6370 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6381 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
6382 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
6389 if test "$MINIX" = yes; then
6391 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6394 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6397 $as_echo "#define _MINIX 1" >>confdefs.h
6404 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
6410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6411 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6412 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
6413 $as_echo_n "(cached) " >&6
6415 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6416 /* end confdefs.h. */
6418 # define __EXTENSIONS__ 1
6419 $ac_includes_default
6428 if ac_fn_c_try_compile
"$LINENO"; then :
6429 ac_cv_safe_to_define___extensions__
=yes
6431 ac_cv_safe_to_define___extensions__
=no
6433 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6436 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6437 test $ac_cv_safe_to_define___extensions__ = yes &&
6438 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6440 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6442 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
6444 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6446 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6448 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6457 # Check whether --enable-largefile was given.
6458 if test "${enable_largefile+set}" = set; then :
6459 enableval
=$enable_largefile;
6462 if test "$enable_largefile" != no
; then
6464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6465 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6466 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
6467 $as_echo_n "(cached) " >&6
6469 ac_cv_sys_largefile_CC
=no
6470 if test "$GCC" != yes; then
6473 # IRIX 6.2 and later do not support large files by default,
6474 # so use the C compiler's -n32 option if that helps.
6475 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6476 /* end confdefs.h. */
6477 #include <sys/types.h>
6478 /* Check that off_t can represent 2**63 - 1 correctly.
6479 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6480 since some C++ compilers masquerading as C compilers
6481 incorrectly reject 9223372036854775807. */
6482 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6483 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6484 && LARGE_OFF_T % 2147483647 == 1)
6494 if ac_fn_c_try_compile
"$LINENO"; then :
6497 rm -f core conftest.err conftest.
$ac_objext
6499 if ac_fn_c_try_compile
"$LINENO"; then :
6500 ac_cv_sys_largefile_CC
=' -n32'; break
6502 rm -f core conftest.err conftest.
$ac_objext
6506 rm -f conftest.
$ac_ext
6509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6510 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6511 if test "$ac_cv_sys_largefile_CC" != no
; then
6512 CC
=$CC$ac_cv_sys_largefile_CC
6515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6516 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6517 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
6518 $as_echo_n "(cached) " >&6
6521 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6522 /* end confdefs.h. */
6523 #include <sys/types.h>
6524 /* Check that off_t can represent 2**63 - 1 correctly.
6525 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6526 since some C++ compilers masquerading as C compilers
6527 incorrectly reject 9223372036854775807. */
6528 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6529 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6530 && LARGE_OFF_T % 2147483647 == 1)
6540 if ac_fn_c_try_compile
"$LINENO"; then :
6541 ac_cv_sys_file_offset_bits
=no
; break
6543 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6544 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6545 /* end confdefs.h. */
6546 #define _FILE_OFFSET_BITS 64
6547 #include <sys/types.h>
6548 /* Check that off_t can represent 2**63 - 1 correctly.
6549 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6550 since some C++ compilers masquerading as C compilers
6551 incorrectly reject 9223372036854775807. */
6552 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6553 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6554 && LARGE_OFF_T % 2147483647 == 1)
6564 if ac_fn_c_try_compile
"$LINENO"; then :
6565 ac_cv_sys_file_offset_bits
=64; break
6567 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6568 ac_cv_sys_file_offset_bits
=unknown
6572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6573 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6574 case $ac_cv_sys_file_offset_bits in #(
6577 cat >>confdefs.h
<<_ACEOF
6578 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6583 if test $ac_cv_sys_file_offset_bits = unknown
; then
6584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6585 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6586 if test "${ac_cv_sys_large_files+set}" = set; then :
6587 $as_echo_n "(cached) " >&6
6590 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6591 /* end confdefs.h. */
6592 #include <sys/types.h>
6593 /* Check that off_t can represent 2**63 - 1 correctly.
6594 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6595 since some C++ compilers masquerading as C compilers
6596 incorrectly reject 9223372036854775807. */
6597 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6598 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6599 && LARGE_OFF_T % 2147483647 == 1)
6609 if ac_fn_c_try_compile
"$LINENO"; then :
6610 ac_cv_sys_large_files
=no
; break
6612 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6613 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6614 /* end confdefs.h. */
6615 #define _LARGE_FILES 1
6616 #include <sys/types.h>
6617 /* Check that off_t can represent 2**63 - 1 correctly.
6618 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6619 since some C++ compilers masquerading as C compilers
6620 incorrectly reject 9223372036854775807. */
6621 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6622 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6623 && LARGE_OFF_T % 2147483647 == 1)
6633 if ac_fn_c_try_compile
"$LINENO"; then :
6634 ac_cv_sys_large_files
=1; break
6636 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6637 ac_cv_sys_large_files
=unknown
6641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6642 $as_echo "$ac_cv_sys_large_files" >&6; }
6643 case $ac_cv_sys_large_files in #(
6646 cat >>confdefs.h
<<_ACEOF
6647 #define _LARGE_FILES $ac_cv_sys_large_files
6657 case $ac_cv_prog_cc_stdc in #(
6659 ac_cv_prog_cc_c99
=no
; ac_cv_prog_cc_c89
=no
;; #(
6661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
6662 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
6663 if test "${ac_cv_prog_cc_c99+set}" = set; then :
6664 $as_echo_n "(cached) " >&6
6666 ac_cv_prog_cc_c99
=no
6668 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6669 /* end confdefs.h. */
6671 #include <stdbool.h>
6676 // Check varargs macros. These examples are taken from C99 6.10.3.5.
6677 #define debug(...) fprintf (stderr, __VA_ARGS__)
6678 #define showlist(...) puts (#__VA_ARGS__)
6679 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6681 test_varargs_macros (void)
6686 debug ("X = %d\n", x);
6687 showlist (The first, second, and third items.);
6688 report (x>y, "x is %d but y is %d", x, y);
6691 // Check long long types.
6692 #define BIG64 18446744073709551615ull
6693 #define BIG32 4294967295ul
6694 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6696 your preprocessor is broken;
6700 your preprocessor is broken;
6702 static long long int bignum = -9223372036854775807LL;
6703 static unsigned long long int ubignum = BIG64;
6705 struct incomplete_array
6713 const wchar_t *name;
6717 typedef const char *ccp;
6720 test_restrict (ccp restrict text)
6722 // See if C++-style comments work.
6723 // Iterate through items via the restricted pointer.
6724 // Also check for declarations in for loops.
6725 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6730 // Check varargs and va_copy.
6732 test_varargs (const char *format, ...)
6735 va_start (args, format);
6737 va_copy (args_copy, args);
6748 str = va_arg (args_copy, const char *);
6751 number = va_arg (args_copy, int);
6754 fnumber = va_arg (args_copy, double);
6769 _Bool success = false;
6772 if (test_restrict ("String literal") == 0)
6774 char *restrict newvar = "Another string";
6777 test_varargs ("s, d' f .", "string", 65, 34.234);
6778 test_varargs_macros ();
6780 // Check flexible array members.
6781 struct incomplete_array *ia =
6782 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6784 for (int i = 0; i < ia->datasize; ++i)
6785 ia->data[i] = i * 1.234;
6787 // Check named initializers.
6788 struct named_init ni = {
6790 .name = L"Test wide string",
6791 .average = 543.34343,
6796 int dynamic_array[ni.number];
6797 dynamic_array[ni.number - 1] = 543;
6799 // work around unused variable warnings
6800 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6801 || dynamic_array[ni.number - 1] != 543);
6807 for ac_arg
in '' -std=gnu99
-std=c99
-c99 -AC99 -xc99=all
-qlanglvl=extc99
6809 CC
="$ac_save_CC $ac_arg"
6810 if ac_fn_c_try_compile
"$LINENO"; then :
6811 ac_cv_prog_cc_c99
=$ac_arg
6813 rm -f core conftest.err conftest.
$ac_objext
6814 test "x$ac_cv_prog_cc_c99" != "xno" && break
6816 rm -f conftest.
$ac_ext
6821 case "x$ac_cv_prog_cc_c99" in
6823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6824 $as_echo "none needed" >&6; } ;;
6826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6827 $as_echo "unsupported" >&6; } ;;
6829 CC
="$CC $ac_cv_prog_cc_c99"
6830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
6831 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6833 if test "x$ac_cv_prog_cc_c99" != xno
; then :
6834 ac_cv_prog_cc_stdc
=$ac_cv_prog_cc_c99
6836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6837 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6838 if test "${ac_cv_prog_cc_c89+set}" = set; then :
6839 $as_echo_n "(cached) " >&6
6841 ac_cv_prog_cc_c89
=no
6843 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6844 /* end confdefs.h. */
6847 #include <sys/types.h>
6848 #include <sys/stat.h>
6849 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6850 struct buf { int x; };
6851 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6852 static char *e (p, i)
6858 static char *f (char * (*g) (char **, int), char **p, ...)
6863 s = g (p, va_arg (v,int));
6868 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6869 function prototypes and stuff, but not '\xHH' hex character constants.
6870 These don't provoke an error unfortunately, instead are silently treated
6871 as 'x'. The following induces an error, until -std is added to get
6872 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6873 array size at least. It's necessary to write '\x00'==0 to get something
6874 that's true only with -std. */
6875 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6877 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6878 inside strings and character constants. */
6880 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6882 int test (int i, double x);
6883 struct s1 {int (*f) (int a);};
6884 struct s2 {int (*f) (double a);};
6885 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6891 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6896 for ac_arg
in '' -qlanglvl=extc89
-qlanglvl=ansi
-std \
6897 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6899 CC
="$ac_save_CC $ac_arg"
6900 if ac_fn_c_try_compile
"$LINENO"; then :
6901 ac_cv_prog_cc_c89
=$ac_arg
6903 rm -f core conftest.err conftest.
$ac_objext
6904 test "x$ac_cv_prog_cc_c89" != "xno" && break
6906 rm -f conftest.
$ac_ext
6911 case "x$ac_cv_prog_cc_c89" in
6913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6914 $as_echo "none needed" >&6; } ;;
6916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6917 $as_echo "unsupported" >&6; } ;;
6919 CC
="$CC $ac_cv_prog_cc_c89"
6920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6921 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6923 if test "x$ac_cv_prog_cc_c89" != xno
; then :
6924 ac_cv_prog_cc_stdc
=$ac_cv_prog_cc_c89
6926 ac_cv_prog_cc_stdc
=no
6932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
6933 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
6934 if test "${ac_cv_prog_cc_stdc+set}" = set; then :
6935 $as_echo_n "(cached) " >&6
6938 case $ac_cv_prog_cc_stdc in #(
6940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6941 $as_echo "unsupported" >&6; } ;; #(
6943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6944 $as_echo "none needed" >&6; } ;; #(
6946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
6947 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
6952 # Code from module alloca-opt:
6953 # Code from module allocator:
6954 # Code from module c-ctype:
6955 # Code from module c-strcase:
6956 # Code from module careadlinkat:
6957 # Code from module clock-time:
6958 # Code from module crypto/md5:
6959 # Code from module crypto/sha1:
6960 # Code from module crypto/sha256:
6961 # Code from module crypto/sha512:
6962 # Code from module dosname:
6963 # Code from module dtoastr:
6964 # Code from module dtotimespec:
6965 # Code from module dup2:
6966 # Code from module environ:
6967 # Code from module execinfo:
6968 # Code from module extensions:
6970 # Code from module extern-inline:
6971 # Code from module filemode:
6972 # Code from module getloadavg:
6973 # Code from module getopt-gnu:
6974 # Code from module getopt-posix:
6975 # Code from module gettext-h:
6976 # Code from module gettime:
6977 # Code from module gettimeofday:
6978 # Code from module ignore-value:
6979 # Code from module include_next:
6980 # Code from module intprops:
6981 # Code from module inttypes-incomplete:
6982 # Code from module largefile:
6984 # Code from module lstat:
6985 # Code from module manywarnings:
6986 # Code from module mktime:
6987 # Code from module multiarch:
6988 # Code from module nocrash:
6989 # Code from module pathmax:
6990 # Code from module pselect:
6991 # Code from module pthread_sigmask:
6992 # Code from module readlink:
6993 # Code from module signal-h:
6994 # Code from module snippet/_Noreturn:
6995 # Code from module snippet/arg-nonnull:
6996 # Code from module snippet/c++defs:
6997 # Code from module snippet/warn-on-use:
6998 # Code from module socklen:
6999 # Code from module ssize_t:
7000 # Code from module stat:
7001 # Code from module stat-time:
7002 # Code from module stdalign:
7003 # Code from module stdarg:
7007 # Code from module stdbool:
7008 # Code from module stddef:
7009 # Code from module stdint:
7010 # Code from module stdio:
7011 # Code from module stdlib:
7012 # Code from module strftime:
7013 # Code from module strtoimax:
7014 # Code from module strtoll:
7015 # Code from module strtoull:
7016 # Code from module strtoumax:
7017 # Code from module symlink:
7018 # Code from module sys_select:
7019 # Code from module sys_stat:
7020 # Code from module sys_time:
7021 # Code from module time:
7022 # Code from module time_r:
7023 # Code from module timespec:
7024 # Code from module timespec-add:
7025 # Code from module timespec-sub:
7026 # Code from module u64:
7027 # Code from module unistd:
7028 # Code from module utimens:
7029 # Code from module verify:
7030 # Code from module warnings:
7033 # It's helpful to have C macros available to GDB, so prefer -g3 to -g
7034 # if -g3 works and the user does not specify CFLAGS.
7035 # This test must follow gl_EARLY; otherwise AC_LINK_IFELSE complains.
7036 if test "$ac_test_CFLAGS" != set; then
7039 emacs_g3_CFLAGS
='-g3';;
7041 emacs_g3_CFLAGS
='-g3 -O2';;
7043 emacs_g3_CFLAGS
='';;
7045 if test -n "$emacs_g3_CFLAGS"; then
7046 emacs_save_CFLAGS
=$CFLAGS
7047 CFLAGS
=$emacs_g3_CFLAGS
7048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts $emacs_g3_CFLAGS" >&5
7049 $as_echo_n "checking whether $CC accepts $emacs_g3_CFLAGS... " >&6; }
7050 if test "${emacs_cv_prog_cc_g3+set}" = set; then :
7051 $as_echo_n "(cached) " >&6
7053 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7054 /* end confdefs.h. */
7064 if ac_fn_c_try_link
"$LINENO"; then :
7065 emacs_cv_prog_cc_g3
=yes
7067 emacs_cv_prog_cc_g3
=no
7069 rm -f core conftest.err conftest.
$ac_objext \
7070 conftest
$ac_exeext conftest.
$ac_ext
7072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_prog_cc_g3" >&5
7073 $as_echo "$emacs_cv_prog_cc_g3" >&6; }
7074 if test $emacs_cv_prog_cc_g3 = yes; then
7075 CFLAGS
=$emacs_g3_CFLAGS
7077 CFLAGS
=$emacs_save_CFLAGS
7082 # Check whether --enable-gcc-warnings was given.
7083 if test "${enable_gcc_warnings+set}" = set; then :
7084 enableval
=$enable_gcc_warnings; case $enableval in
7086 *) as_fn_error
"bad value $enableval for gcc-warnings option" "$LINENO" 5 ;;
7088 gl_gcc_warnings
=$enableval
7095 # Check whether --enable-link-time-optimization was given.
7096 if test "${enable_link_time_optimization+set}" = set; then :
7097 enableval
=$enable_link_time_optimization; if test "${enableval}" != "no"; then
7098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether link-time optimization is supported" >&5
7099 $as_echo_n "checking whether link-time optimization is supported... " >&6; }
7101 if test x
$GCC = xyes
; then
7102 CPUS
=`getconf _NPROCESSORS_ONLN 2>/dev/null`
7103 if test x
$CPUS != x
; then
7109 CFLAGS
="$CFLAGS $LTO"
7110 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7111 /* end confdefs.h. */
7121 if ac_fn_c_try_compile
"$LINENO"; then :
7122 ac_lto_supported
=yes
7126 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7127 CFLAGS
="$old_CFLAGS"
7129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_lto_supported" >&5
7130 $as_echo "$ac_lto_supported" >&6; }
7131 if test "$ac_lto_supported" = "yes"; then
7132 CFLAGS
="$CFLAGS $LTO"
7138 # gl_GCC_VERSION_IFELSE([major], [minor], [run-if-found], [run-if-not-found])
7139 # ------------------------------------------------
7140 # If $CPP is gcc-MAJOR.MINOR or newer, then run RUN-IF-FOUND.
7141 # Otherwise, run RUN-IF-NOT-FOUND.
7144 # When compiling with GCC, prefer -isystem to -I when including system
7145 # include files, to avoid generating useless diagnostics for the files.
7146 if test "$gl_gcc_warnings" != yes; then
7151 # This, $nw, is the list of warnings we disable.
7154 case $with_x_toolkit in
7155 lucid | athena | motif
)
7156 # Old toolkits mishandle 'const'.
7157 nw
="$nw -Wwrite-strings"
7160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Werror" >&5
7161 $as_echo_n "checking whether C compiler handles -Werror... " >&6; }
7162 if test "${gl_cv_warn_c__Werror+set}" = set; then :
7163 $as_echo_n "(cached) " >&6
7166 gl_save_compiler_FLAGS
="$CFLAGS"
7167 as_fn_append CFLAGS
" -Werror"
7168 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7169 /* end confdefs.h. */
7179 if ac_fn_c_try_compile
"$LINENO"; then :
7180 gl_cv_warn_c__Werror
=yes
7182 gl_cv_warn_c__Werror
=no
7184 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7185 CFLAGS
="$gl_save_compiler_FLAGS"
7188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Werror" >&5
7189 $as_echo "$gl_cv_warn_c__Werror" >&6; }
7190 if test "x$gl_cv_warn_c__Werror" = x
""yes; then :
7191 as_fn_append WERROR_CFLAGS
" -Werror"
7199 nw
="$nw -Waggregate-return" # anachronistic
7200 nw
="$nw -Wlong-long" # C90 is anachronistic
7201 nw
="$nw -Wc++-compat" # We don't care about C++ compilers
7202 nw
="$nw -Wundef" # Warns on '#if GNULIB_FOO' etc in gnulib
7203 nw
="$nw -Wtraditional" # Warns on #elif which we use often
7204 nw
="$nw -Wcast-qual" # Too many warnings for now
7205 nw
="$nw -Wconversion" # Too many warnings for now
7206 nw
="$nw -Wsystem-headers" # Don't let system headers trigger warnings
7207 nw
="$nw -Wsign-conversion" # Too many warnings for now
7208 nw
="$nw -Woverlength-strings" # Not a problem these days
7209 nw
="$nw -Wtraditional-conversion" # Too many warnings for now
7210 nw
="$nw -Wunreachable-code" # so buggy that it's now silently ignored
7211 nw
="$nw -Wpadded" # Our structs are not padded
7212 nw
="$nw -Wredundant-decls" # we regularly (re)declare functions
7213 nw
="$nw -Wlogical-op" # any use of fwrite provokes this
7214 nw
="$nw -Wformat-nonliteral" # we do this a lot
7215 nw
="$nw -Wvla" # warnings in gettext.h
7216 nw
="$nw -Wnested-externs" # use of XARGMATCH/verify_function__
7217 nw
="$nw -Wswitch-enum" # Too many warnings for now
7218 nw
="$nw -Wswitch-default" # Too many warnings for now
7219 nw
="$nw -Wfloat-equal" # warns about high-quality code
7220 nw
="$nw -Winline" # OK to ignore 'inline'
7221 nw
="$nw -Wjump-misses-init" # We sometimes safely jump over init.
7222 nw
="$nw -Wsync-nand" # irrelevant here, and provokes ObjC warning
7223 nw
="$nw -Wunsafe-loop-optimizations" # OK to suppress unsafe optimizations
7225 # Emacs doesn't care about shadowing; see
7226 # <http://lists.gnu.org/archive/html/emacs-diffs/2011-11/msg00265.html>.
7229 # The following lines should be removable at some point.
7230 nw
="$nw -Wstack-protector"
7231 nw
="$nw -Wstrict-overflow"
7232 nw
="$nw -Wsuggest-attribute=pure"
7236 if test -n "$GCC"; then
7238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is supported" >&5
7239 $as_echo_n "checking whether -Wno-missing-field-initializers is supported... " >&6; }
7240 if test "${gl_cv_cc_nomfi_supported+set}" = set; then :
7241 $as_echo_n "(cached) " >&6
7244 gl_save_CFLAGS
="$CFLAGS"
7245 CFLAGS
="$CFLAGS -W -Werror -Wno-missing-field-initializers"
7246 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7247 /* end confdefs.h. */
7257 if ac_fn_c_try_compile
"$LINENO"; then :
7258 gl_cv_cc_nomfi_supported
=yes
7260 gl_cv_cc_nomfi_supported
=no
7262 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7263 CFLAGS
="$gl_save_CFLAGS"
7266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_supported" >&5
7267 $as_echo "$gl_cv_cc_nomfi_supported" >&6; }
7269 if test "$gl_cv_cc_nomfi_supported" = yes; then
7270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is needed" >&5
7271 $as_echo_n "checking whether -Wno-missing-field-initializers is needed... " >&6; }
7272 if test "${gl_cv_cc_nomfi_needed+set}" = set; then :
7273 $as_echo_n "(cached) " >&6
7276 gl_save_CFLAGS
="$CFLAGS"
7277 CFLAGS
="$CFLAGS -W -Werror"
7278 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7279 /* end confdefs.h. */
7282 typedef struct { int a; int b; } s_t;
7294 if ac_fn_c_try_compile
"$LINENO"; then :
7295 gl_cv_cc_nomfi_needed
=no
7297 gl_cv_cc_nomfi_needed
=yes
7299 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7300 CFLAGS
="$gl_save_CFLAGS"
7304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_needed" >&5
7305 $as_echo "$gl_cv_cc_nomfi_needed" >&6; }
7310 for gl_manywarn_item
in \
7317 -Wbad-function-cast \
7318 -Wbuiltin-macro-redefined \
7324 -Wcoverage-mismatch \
7327 -Wdeprecated-declarations \
7328 -Wdisabled-optimization \
7330 -Wdouble-promotion \
7335 -Wformat-contains-nul \
7336 -Wformat-extra-args \
7337 -Wformat-nonliteral \
7340 -Wformat-zero-length \
7342 -Wfree-nonheap-object \
7343 -Wignored-qualifiers \
7345 -Wimplicit-function-declaration \
7349 -Wint-to-pointer-cast \
7350 -Winvalid-memory-model \
7352 -Wjump-misses-init \
7355 -Wmaybe-uninitialized \
7357 -Wmissing-declarations \
7358 -Wmissing-field-initializers \
7359 -Wmissing-format-attribute \
7360 -Wmissing-include-dirs \
7361 -Wmissing-noreturn \
7362 -Wmissing-parameter-type \
7363 -Wmissing-prototypes \
7370 -Wold-style-declaration \
7371 -Wold-style-definition \
7373 -Woverlength-strings \
7376 -Wpacked-bitfield-compat \
7380 -Wpointer-to-int-cast \
7385 -Wsizeof-pointer-memaccess \
7389 -Wstrict-prototypes \
7390 -Wsuggest-attribute=const \
7391 -Wsuggest-attribute=format \
7392 -Wsuggest-attribute=noreturn \
7393 -Wsuggest-attribute=pure \
7403 -Wunreachable-code \
7404 -Wunsafe-loop-optimizations \
7406 -Wunused-but-set-parameter \
7407 -Wunused-but-set-variable \
7410 -Wunused-local-typedefs \
7412 -Wunused-parameter \
7418 -Wvector-operation-performance \
7420 -Wvolatile-register-var \
7424 gl_manywarn_set
="$gl_manywarn_set $gl_manywarn_item"
7427 # Disable the missing-field-initializers warning if needed
7428 if test "$gl_cv_cc_nomfi_needed" = yes; then
7429 gl_manywarn_set
="$gl_manywarn_set -Wno-missing-field-initializers"
7440 *" $gl_warn_item "*)
7443 gl_warn_set
="$gl_warn_set $gl_warn_item"
7450 as_gl_Warn
=`$as_echo "gl_cv_warn_c_$w" | $as_tr_sh`
7451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles $w" >&5
7452 $as_echo_n "checking whether C compiler handles $w... " >&6; }
7453 if { as_var
=$as_gl_Warn; eval "test \"\${$as_var+set}\" = set"; }; then :
7454 $as_echo_n "(cached) " >&6
7457 gl_save_compiler_FLAGS
="$CFLAGS"
7458 as_fn_append CFLAGS
" $w"
7459 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7460 /* end confdefs.h. */
7470 if ac_fn_c_try_compile
"$LINENO"; then :
7471 eval "$as_gl_Warn=yes"
7473 eval "$as_gl_Warn=no"
7475 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7476 CFLAGS
="$gl_save_compiler_FLAGS"
7479 eval ac_res
=\$
$as_gl_Warn
7480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7481 $as_echo "$ac_res" >&6; }
7482 eval as_val
=\$
$as_gl_Warn
7483 if test "x$as_val" = x
""yes; then :
7484 as_fn_append WARN_CFLAGS
" $w"
7489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-missing-field-initializers" >&5
7490 $as_echo_n "checking whether C compiler handles -Wno-missing-field-initializers... " >&6; }
7491 if test "${gl_cv_warn_c__Wno_missing_field_initializers+set}" = set; then :
7492 $as_echo_n "(cached) " >&6
7495 gl_save_compiler_FLAGS
="$CFLAGS"
7496 as_fn_append CFLAGS
" -Wno-missing-field-initializers"
7497 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7498 /* end confdefs.h. */
7508 if ac_fn_c_try_compile
"$LINENO"; then :
7509 gl_cv_warn_c__Wno_missing_field_initializers
=yes
7511 gl_cv_warn_c__Wno_missing_field_initializers
=no
7513 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7514 CFLAGS
="$gl_save_compiler_FLAGS"
7517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_missing_field_initializers" >&5
7518 $as_echo "$gl_cv_warn_c__Wno_missing_field_initializers" >&6; }
7519 if test "x$gl_cv_warn_c__Wno_missing_field_initializers" = x
""yes; then :
7520 as_fn_append WARN_CFLAGS
" -Wno-missing-field-initializers"
7524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-sign-compare" >&5
7525 $as_echo_n "checking whether C compiler handles -Wno-sign-compare... " >&6; }
7526 if test "${gl_cv_warn_c__Wno_sign_compare+set}" = set; then :
7527 $as_echo_n "(cached) " >&6
7530 gl_save_compiler_FLAGS
="$CFLAGS"
7531 as_fn_append CFLAGS
" -Wno-sign-compare"
7532 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7533 /* end confdefs.h. */
7543 if ac_fn_c_try_compile
"$LINENO"; then :
7544 gl_cv_warn_c__Wno_sign_compare
=yes
7546 gl_cv_warn_c__Wno_sign_compare
=no
7548 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7549 CFLAGS
="$gl_save_compiler_FLAGS"
7552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_sign_compare" >&5
7553 $as_echo "$gl_cv_warn_c__Wno_sign_compare" >&6; }
7554 if test "x$gl_cv_warn_c__Wno_sign_compare" = x
""yes; then :
7555 as_fn_append WARN_CFLAGS
" -Wno-sign-compare"
7558 # Too many warnings for now
7559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-type-limits" >&5
7560 $as_echo_n "checking whether C compiler handles -Wno-type-limits... " >&6; }
7561 if test "${gl_cv_warn_c__Wno_type_limits+set}" = set; then :
7562 $as_echo_n "(cached) " >&6
7565 gl_save_compiler_FLAGS
="$CFLAGS"
7566 as_fn_append CFLAGS
" -Wno-type-limits"
7567 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7568 /* end confdefs.h. */
7578 if ac_fn_c_try_compile
"$LINENO"; then :
7579 gl_cv_warn_c__Wno_type_limits
=yes
7581 gl_cv_warn_c__Wno_type_limits
=no
7583 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7584 CFLAGS
="$gl_save_compiler_FLAGS"
7587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_type_limits" >&5
7588 $as_echo "$gl_cv_warn_c__Wno_type_limits" >&6; }
7589 if test "x$gl_cv_warn_c__Wno_type_limits" = x
""yes; then :
7590 as_fn_append WARN_CFLAGS
" -Wno-type-limits"
7593 # Too many warnings for now
7594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-switch" >&5
7595 $as_echo_n "checking whether C compiler handles -Wno-switch... " >&6; }
7596 if test "${gl_cv_warn_c__Wno_switch+set}" = set; then :
7597 $as_echo_n "(cached) " >&6
7600 gl_save_compiler_FLAGS
="$CFLAGS"
7601 as_fn_append CFLAGS
" -Wno-switch"
7602 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7603 /* end confdefs.h. */
7613 if ac_fn_c_try_compile
"$LINENO"; then :
7614 gl_cv_warn_c__Wno_switch
=yes
7616 gl_cv_warn_c__Wno_switch
=no
7618 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7619 CFLAGS
="$gl_save_compiler_FLAGS"
7622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_switch" >&5
7623 $as_echo "$gl_cv_warn_c__Wno_switch" >&6; }
7624 if test "x$gl_cv_warn_c__Wno_switch" = x
""yes; then :
7625 as_fn_append WARN_CFLAGS
" -Wno-switch"
7628 # Too many warnings for now
7629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-unused-parameter" >&5
7630 $as_echo_n "checking whether C compiler handles -Wno-unused-parameter... " >&6; }
7631 if test "${gl_cv_warn_c__Wno_unused_parameter+set}" = set; then :
7632 $as_echo_n "(cached) " >&6
7635 gl_save_compiler_FLAGS
="$CFLAGS"
7636 as_fn_append CFLAGS
" -Wno-unused-parameter"
7637 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7638 /* end confdefs.h. */
7648 if ac_fn_c_try_compile
"$LINENO"; then :
7649 gl_cv_warn_c__Wno_unused_parameter
=yes
7651 gl_cv_warn_c__Wno_unused_parameter
=no
7653 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7654 CFLAGS
="$gl_save_compiler_FLAGS"
7657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_unused_parameter" >&5
7658 $as_echo "$gl_cv_warn_c__Wno_unused_parameter" >&6; }
7659 if test "x$gl_cv_warn_c__Wno_unused_parameter" = x
""yes; then :
7660 as_fn_append WARN_CFLAGS
" -Wno-unused-parameter"
7663 # Too many warnings for now
7664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-format-nonliteral" >&5
7665 $as_echo_n "checking whether C compiler handles -Wno-format-nonliteral... " >&6; }
7666 if test "${gl_cv_warn_c__Wno_format_nonliteral+set}" = set; then :
7667 $as_echo_n "(cached) " >&6
7670 gl_save_compiler_FLAGS
="$CFLAGS"
7671 as_fn_append CFLAGS
" -Wno-format-nonliteral"
7672 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7673 /* end confdefs.h. */
7683 if ac_fn_c_try_compile
"$LINENO"; then :
7684 gl_cv_warn_c__Wno_format_nonliteral
=yes
7686 gl_cv_warn_c__Wno_format_nonliteral
=no
7688 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7689 CFLAGS
="$gl_save_compiler_FLAGS"
7692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_format_nonliteral" >&5
7693 $as_echo "$gl_cv_warn_c__Wno_format_nonliteral" >&6; }
7694 if test "x$gl_cv_warn_c__Wno_format_nonliteral" = x
""yes; then :
7695 as_fn_append WARN_CFLAGS
" -Wno-format-nonliteral"
7700 # In spite of excluding -Wlogical-op above, it is enabled, as of
7701 # gcc 4.5.0 20090517.
7702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-logical-op" >&5
7703 $as_echo_n "checking whether C compiler handles -Wno-logical-op... " >&6; }
7704 if test "${gl_cv_warn_c__Wno_logical_op+set}" = set; then :
7705 $as_echo_n "(cached) " >&6
7708 gl_save_compiler_FLAGS
="$CFLAGS"
7709 as_fn_append CFLAGS
" -Wno-logical-op"
7710 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7711 /* end confdefs.h. */
7721 if ac_fn_c_try_compile
"$LINENO"; then :
7722 gl_cv_warn_c__Wno_logical_op
=yes
7724 gl_cv_warn_c__Wno_logical_op
=no
7726 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7727 CFLAGS
="$gl_save_compiler_FLAGS"
7730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_logical_op" >&5
7731 $as_echo "$gl_cv_warn_c__Wno_logical_op" >&6; }
7732 if test "x$gl_cv_warn_c__Wno_logical_op" = x
""yes; then :
7733 as_fn_append WARN_CFLAGS
" -Wno-logical-op"
7738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -fdiagnostics-show-option" >&5
7739 $as_echo_n "checking whether C compiler handles -fdiagnostics-show-option... " >&6; }
7740 if test "${gl_cv_warn_c__fdiagnostics_show_option+set}" = set; then :
7741 $as_echo_n "(cached) " >&6
7744 gl_save_compiler_FLAGS
="$CFLAGS"
7745 as_fn_append CFLAGS
" -fdiagnostics-show-option"
7746 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7747 /* end confdefs.h. */
7757 if ac_fn_c_try_compile
"$LINENO"; then :
7758 gl_cv_warn_c__fdiagnostics_show_option
=yes
7760 gl_cv_warn_c__fdiagnostics_show_option
=no
7762 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7763 CFLAGS
="$gl_save_compiler_FLAGS"
7766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__fdiagnostics_show_option" >&5
7767 $as_echo "$gl_cv_warn_c__fdiagnostics_show_option" >&6; }
7768 if test "x$gl_cv_warn_c__fdiagnostics_show_option" = x
""yes; then :
7769 as_fn_append WARN_CFLAGS
" -fdiagnostics-show-option"
7773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -funit-at-a-time" >&5
7774 $as_echo_n "checking whether C compiler handles -funit-at-a-time... " >&6; }
7775 if test "${gl_cv_warn_c__funit_at_a_time+set}" = set; then :
7776 $as_echo_n "(cached) " >&6
7779 gl_save_compiler_FLAGS
="$CFLAGS"
7780 as_fn_append CFLAGS
" -funit-at-a-time"
7781 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7782 /* end confdefs.h. */
7792 if ac_fn_c_try_compile
"$LINENO"; then :
7793 gl_cv_warn_c__funit_at_a_time
=yes
7795 gl_cv_warn_c__funit_at_a_time
=no
7797 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7798 CFLAGS
="$gl_save_compiler_FLAGS"
7801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__funit_at_a_time" >&5
7802 $as_echo "$gl_cv_warn_c__funit_at_a_time" >&6; }
7803 if test "x$gl_cv_warn_c__funit_at_a_time" = x
""yes; then :
7804 as_fn_append WARN_CFLAGS
" -funit-at-a-time"
7810 $as_echo "#define lint 1" >>confdefs.h
7814 $as_echo "#define GNULIB_PORTCHECK 1" >>confdefs.h
7817 # We use a slightly smaller set of warning options for lib/.
7818 # Remove the following and save the result in GNULIB_WARN_CFLAGS.
7820 nw
="$nw -Wunused-macros"
7824 set x
$WARN_CFLAGS; shift
7828 *" $gl_warn_item "*)
7831 gl_warn_set
="$gl_warn_set $gl_warn_item"
7835 GNULIB_WARN_CFLAGS
=$gl_warn_set
7842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7843 $as_echo_n "checking whether ln -s works... " >&6; }
7845 if test "$LN_S" = "ln -s"; then
7846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7847 $as_echo "yes" >&6; }
7849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7850 $as_echo "no, using $LN_S" >&6; }
7854 # Extract the first word of "install-info", so it can be a program name with args.
7855 set dummy install-info
; ac_word
=$2
7856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7857 $as_echo_n "checking for $ac_word... " >&6; }
7858 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
7859 $as_echo_n "(cached) " >&6
7861 case $INSTALL_INFO in
7863 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
7866 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7867 for as_dir
in $PATH$PATH_SEPARATOR/usr
/sbin
$PATH_SEPARATOR/sbin
7870 test -z "$as_dir" && as_dir
=.
7871 for ac_exec_ext
in '' $ac_executable_extensions; do
7872 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7873 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
7874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7881 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
7885 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
7886 if test -n "$INSTALL_INFO"; then
7887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
7888 $as_echo "$INSTALL_INFO" >&6; }
7890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7891 $as_echo "no" >&6; }
7895 # Extract the first word of "gzip", so it can be a program name with args.
7896 set dummy
gzip; ac_word
=$2
7897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7898 $as_echo_n "checking for $ac_word... " >&6; }
7899 if test "${ac_cv_path_GZIP_PROG+set}" = set; then :
7900 $as_echo_n "(cached) " >&6
7904 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
7907 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7911 test -z "$as_dir" && as_dir
=.
7912 for ac_exec_ext
in '' $ac_executable_extensions; do
7913 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7914 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
7915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7925 GZIP_PROG
=$ac_cv_path_GZIP_PROG
7926 if test -n "$GZIP_PROG"; then
7927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
7928 $as_echo "$GZIP_PROG" >&6; }
7930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7931 $as_echo "no" >&6; }
7936 if test $opsys = gnu-linux
; then
7937 # Extract the first word of "paxctl", so it can be a program name with args.
7938 set dummy paxctl
; ac_word
=$2
7939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7940 $as_echo_n "checking for $ac_word... " >&6; }
7941 if test "${ac_cv_path_PAXCTL+set}" = set; then :
7942 $as_echo_n "(cached) " >&6
7946 ac_cv_path_PAXCTL
="$PAXCTL" # Let the user override the test with a path.
7949 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7950 for as_dir
in $PATH$PATH_SEPARATOR/sbin
$PATH_SEPARATOR/usr
/sbin
7953 test -z "$as_dir" && as_dir
=.
7954 for ac_exec_ext
in '' $ac_executable_extensions; do
7955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7956 ac_cv_path_PAXCTL
="$as_dir/$ac_word$ac_exec_ext"
7957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7967 PAXCTL
=$ac_cv_path_PAXCTL
7968 if test -n "$PAXCTL"; then
7969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PAXCTL" >&5
7970 $as_echo "$PAXCTL" >&6; }
7972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7973 $as_echo "no" >&6; }
7977 if test "X$PAXCTL" != X
; then
7978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether binaries have a PT_PAX_FLAGS header" >&5
7979 $as_echo_n "checking whether binaries have a PT_PAX_FLAGS header... " >&6; }
7980 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7981 /* end confdefs.h. */
7991 if ac_fn_c_try_link
"$LINENO"; then :
7992 if $PAXCTL -v conftest
$EXEEXT >/dev
/null
2>&1; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7993 $as_echo "yes" >&6; }
7994 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7995 $as_echo "no" >&6; }; PAXCTL
=""; fi
7997 rm -f core conftest.err conftest.
$ac_objext \
7998 conftest
$ac_exeext conftest.
$ac_ext
8002 ## Need makeinfo >= 4.7 (?) to build the manuals.
8003 # Extract the first word of "makeinfo", so it can be a program name with args.
8004 set dummy makeinfo
; ac_word
=$2
8005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8006 $as_echo_n "checking for $ac_word... " >&6; }
8007 if test "${ac_cv_path_MAKEINFO+set}" = set; then :
8008 $as_echo_n "(cached) " >&6
8012 ac_cv_path_MAKEINFO
="$MAKEINFO" # Let the user override the test with a path.
8015 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8019 test -z "$as_dir" && as_dir
=.
8020 for ac_exec_ext
in '' $ac_executable_extensions; do
8021 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8022 ac_cv_path_MAKEINFO
="$as_dir/$ac_word$ac_exec_ext"
8023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8030 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO
="no"
8034 MAKEINFO
=$ac_cv_path_MAKEINFO
8035 if test -n "$MAKEINFO"; then
8036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8037 $as_echo "$MAKEINFO" >&6; }
8039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8040 $as_echo "no" >&6; }
8044 if test "$MAKEINFO" != "no" && \
8045 test x
"`$MAKEINFO --version 2> /dev/null | $EGREP 'texinfo[^0-9]*([1-4][0-9]+|[5-9]|4\.[7-9]|4\.[1-6][0-9]+)'`" = x
; then
8049 ## Makeinfo is unusual. For a released Emacs, the manuals are
8050 ## pre-built, and not deleted by the normal clean rules. makeinfo is
8051 ## therefore in the category of "special tools" not normally required, which
8052 ## configure does not have to check for (eg autoconf itself).
8053 ## In a Bazaar checkout on the other hand, the manuals are not included.
8054 ## So makeinfo is a requirement to build from Bazaar, and configure
8055 ## should test for it as it does for any other build requirement.
8056 ## We use the presence of $srcdir/info/emacs to distinguish a release,
8057 ## with pre-built manuals, from a Bazaar checkout.
8060 if test "$MAKEINFO" = "no"; then
8062 if test "x${with_makeinfo}" = "xno"; then
8064 elif test ! -e $srcdir/info
/emacs
; then
8065 as_fn_error
"You do not seem to have makeinfo >= 4.7, and your
8066 source tree does not seem to have pre-built manuals in the \`info' directory.
8067 Either install a suitable version of makeinfo, or re-run configure
8068 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
8074 INFO_OPTS
=--no-split
8079 if test x
$GCC = xyes
; then
8080 test "x$GCC_LINK_TEST_OPTIONS" != x
&& \
8081 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
8083 test "x$NON_GCC_LINK_TEST_OPTIONS" != x
&& \
8084 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
8088 late_LDFLAGS
=$LDFLAGS
8089 if test x
$GCC = xyes
; then
8090 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
8092 LDFLAGS
="$LDFLAGS -znocombreloc"
8095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
8096 $as_echo_n "checking for -znocombreloc... " >&6; }
8097 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8098 /* end confdefs.h. */
8108 if ac_fn_c_try_link
"$LINENO"; then :
8109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8110 $as_echo "yes" >&6; }
8112 LDFLAGS
=$late_LDFLAGS
8113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8114 $as_echo "no" >&6; }
8116 rm -f core conftest.err conftest.
$ac_objext \
8117 conftest
$ac_exeext conftest.
$ac_ext
8120 test "x$CANNOT_DUMP" = "x" && CANNOT_DUMP
=no
8122 your-opsys-here
) CANNOT_DUMP
=yes ;;
8125 test "$CANNOT_DUMP" = "yes" && \
8127 $as_echo "#define CANNOT_DUMP 1" >>confdefs.h
8133 UNEXEC_OBJ
=unexelf.o
8135 # MSDOS uses unexcoff.o
8136 # MSWindows uses unexw32.o
8138 UNEXEC_OBJ
=unexaix.o
8144 UNEXEC_OBJ
=unexmacosx.o
8147 UNEXEC_OBJ
=unexhp9k800.o
8150 # Use the Solaris dldump() function, called from unexsol.c, to dump
8151 # emacs, instead of the generic ELF dump code found in unexelf.c.
8152 # The resulting binary has a complete symbol table, and is better
8153 # for debugging and other observability tools (debuggers, pstack, etc).
8155 # If you encounter a problem using dldump(), please consider sending
8156 # a message to the OpenSolaris tools-linking mailing list:
8157 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
8159 # It is likely that dldump() works with older Solaris too, but this has
8160 # not been tested, so for now this change is for Solaris 10 or newer.
8161 UNEXEC_OBJ
=unexsol.o
8168 ## Let `ld' find image libs and similar things in /usr/local/lib.
8169 ## The system compiler, GCC, has apparently been modified to not
8170 ## look there, contrary to what a stock GCC would do.
8171 ### It's not our place to do this. See bug#10313#17.
8172 ### LD_SWITCH_SYSTEM=-L/usr/local/lib
8177 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
8178 case $host_cpu in mips
*) LD_SWITCH_SYSTEM
="-G 0";; esac
8182 ### It's not our place to do this. See bug#10313#17.
8183 ### LD_SWITCH_SYSTEM="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
8188 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
8189 ## otherwise Emacs dumps core on elf systems.
8190 LD_SWITCH_SYSTEM
="-Z"
8195 ac_link
="$ac_link $LD_SWITCH_SYSTEM"
8197 ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_RPATH,
8198 ## which has not been defined yet. When this was handled with cpp,
8199 ## it was expanded to null when configure sourced the s/*.h file.
8200 ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
8201 ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
8202 ## (or somesuch), but because it is supposed to go at the _front_
8203 ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
8204 ## Compare with the gnu-linux case below, which added to the end
8205 ## of LD_SWITCH_SYSTEM, and so can instead go at the front of
8206 ## LD_SWITCH_SYSTEM_TEMACS.
8209 LD_SWITCH_SYSTEM
="\$(LD_SWITCH_X_SITE_RPATH) $LD_SWITCH_SYSTEM" ;;
8216 ac_fn_c_check_decl
"$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
8217 if test "x$ac_cv_have_decl___ELF__" = x
""yes; then :
8221 if test "$ac_cv_have_decl___ELF__" = "yes"; then
8222 ## With ELF, make sure that all common symbols get allocated to in the
8223 ## data section. Otherwise, the dump of temacs may miss variables in
8224 ## the shared library that have been initialized. For example, with
8225 ## GNU libc, __malloc_initialized would normally be resolved to the
8226 ## shared library's .bss section, which is fatal.
8227 if test "x$GCC" = "xyes"; then
8228 C_SWITCH_MACHINE
="-fno-common"
8230 as_fn_error
"What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
8233 UNEXEC_OBJ
=unexalpha.o
8242 ## Some programs in src produce warnings saying certain subprograms
8243 ## are too complex and need a MAXMEM value greater than 2000 for
8244 ## additional optimization. --nils@exp-math.uni-essen.de
8245 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
8246 C_SWITCH_SYSTEM
="-ma -qmaxmem=4000"
8247 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
8248 ## It is redundant in glibc2, since we define _GNU_SOURCE.
8254 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
8255 aix4-2
) LIBS_SYSTEM
="-lrts -lIM -liconv" ;;
8257 freebsd
) LIBS_SYSTEM
="-lutil" ;;
8259 hpux
*) LIBS_SYSTEM
="-l:libdld.sl" ;;
8261 sol2
*) LIBS_SYSTEM
="-lsocket -lnsl" ;;
8263 ## Motif needs -lgen.
8264 unixware
) LIBS_SYSTEM
="-lsocket -lnsl -lelf -lgen" ;;
8269 ### Make sure subsequent tests use flags consistent with the build flags.
8271 if test x
"${OVERRIDE_CPPFLAGS}" != x
; then
8272 CPPFLAGS
="${OVERRIDE_CPPFLAGS}"
8274 CPPFLAGS
="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
8277 # Suppress obsolescent Autoconf test for size_t; Emacs assumes C89 or better.
8279 # Likewise for obsolescent test for uid_t, gid_t; Emacs assumes them.
8286 SYSTEM_TYPE
=`echo $opsys | sed -e 's/[0-9].*//' -e 's|-|/|'`
8291 START_FILES
='pre-crt0.o'
8294 ## Adding -lm confuses the dynamic linker, so omit it.
8296 START_FILES
='pre-crt0.o'
8299 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
8300 START_FILES
='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
8301 SYSTEM_TYPE
=berkeley-unix
8303 gnu-linux | gnu-kfreebsd
)
8304 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
8305 START_FILES
='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
8307 hpux10-20 | hpux11
)
8309 START_FILES
='pre-crt0.o $(CRT_DIR)/crt0.o'
8312 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
8313 START_FILES
='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
8314 SYSTEM_TYPE
=berkeley-unix
8318 SYSTEM_TYPE
=usg-unix-v
8326 cat >>confdefs.h
<<_ACEOF
8327 #define SYSTEM_TYPE "$SYSTEM_TYPE"
8333 for file in x
$LIB_STANDARD $START_FILES; do
8335 *CRT_DIR
*) crt_files
="$crt_files `echo $file | sed -e 's|.*/||'`" ;;
8339 if test "x$crt_files" != x
; then
8341 ## If user specified a crt-dir, use that unconditionally.
8344 if test "X$CRT_DIR" = "X"; then
8346 CRT_DIR
=/usr
/lib
# default
8348 case "$canonical" in
8349 x86_64-
*-linux-gnu* | s390x-
*-linux-gnu*)
8350 ## On x86-64 and s390x GNU/Linux distributions, the standard library
8351 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
8352 ## For anything else (eg /usr/lib32), it is up the user to specify
8353 ## the location (bug#5655).
8354 ## Test for crtn.o, not just the directory, because sometimes the
8355 ## directory exists but does not have the relevant files (bug#1287).
8356 ## FIXME better to test for binary compatibility somehow.
8357 test -e /usr
/lib64
/crtn.o
&& CRT_DIR
=/usr
/lib64
8360 powerpc64-
*-linux-gnu* | sparc64-
*-linux-gnu*) CRT_DIR
=/usr
/lib64
;;
8364 hpux10-20
) CRT_DIR
=/lib
;;
8367 test "x${GCC}" = xyes
&& crt_gcc
=yes
8373 for file in $crt_files; do
8375 ## If we're using gcc, try to determine it automatically by asking
8376 ## gcc. [If this doesn't work, CRT_DIR will remain at the
8377 ## system-dependent default from above.]
8378 if test $crt_gcc = yes && test ! -e $CRT_DIR/$file; then
8380 crt_file
=`$CC --print-file-name=$file 2>/dev/null`
8383 CRT_DIR
=`$as_dirname -- "$crt_file" ||
8384 $as_expr X"$crt_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8385 X"$crt_file" : 'X\(//\)[^/]' \| \
8386 X"$crt_file" : 'X\(//\)$' \| \
8387 X"$crt_file" : 'X\(/\)' \| . 2>/dev/null ||
8388 $as_echo X"$crt_file" |
8389 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8412 test -e $CRT_DIR/$file || crt_missing
="$crt_missing $file"
8415 test "x$crt_missing" = x || \
8416 as_fn_error
"Required file(s) not found:$crt_missing
8417 Try using the --with-crt-dir option." "$LINENO" 5
8419 fi # crt_files != ""
8425 if test -f $CRT_DIR/crti.o
; then
8427 test -f $CRT_DIR/crtn.o || \
8428 as_fn_error
"Required file not found: crtn.o" "$LINENO" 5
8430 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
8431 START_FILES
='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
8437 pre_PKG_CONFIG_CFLAGS
=$CFLAGS
8438 pre_PKG_CONFIG_LIBS
=$LIBS
8440 # Extract the first word of "pkg-config", so it can be a program name with args.
8441 set dummy pkg-config
; ac_word
=$2
8442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8443 $as_echo_n "checking for $ac_word... " >&6; }
8444 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8445 $as_echo_n "(cached) " >&6
8449 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
8452 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8456 test -z "$as_dir" && as_dir
=.
8457 for ac_exec_ext
in '' $ac_executable_extensions; do
8458 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8459 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
8460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8467 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
8471 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
8472 if test -n "$PKG_CONFIG"; then
8473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8474 $as_echo "$PKG_CONFIG" >&6; }
8476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8477 $as_echo "no" >&6; }
8485 if test "${with_sound}" != "no"; then
8486 # Sound support for GNU/Linux and the free BSDs.
8487 for ac_header
in machine
/soundcard.h sys
/soundcard.h soundcard.h
8489 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8490 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8491 eval as_val
=\$
$as_ac_Header
8492 if test "x$as_val" = x
""yes; then :
8493 cat >>confdefs.h
<<_ACEOF
8494 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8496 have_sound_header
=yes
8501 # Emulation library used on NetBSD.
8502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
8503 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
8504 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
8505 $as_echo_n "(cached) " >&6
8507 ac_check_lib_save_LIBS
=$LIBS
8508 LIBS
="-lossaudio $LIBS"
8509 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8510 /* end confdefs.h. */
8512 /* Override any GCC internal prototype to avoid an error.
8513 Use char because int might match the return type of a GCC
8514 builtin and then its argument prototype would still apply. */
8522 return _oss_ioctl ();
8527 if ac_fn_c_try_link
"$LINENO"; then :
8528 ac_cv_lib_ossaudio__oss_ioctl
=yes
8530 ac_cv_lib_ossaudio__oss_ioctl
=no
8532 rm -f core conftest.err conftest.
$ac_objext \
8533 conftest
$ac_exeext conftest.
$ac_ext
8534 LIBS
=$ac_check_lib_save_LIBS
8536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
8537 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
8538 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x
""yes; then :
8547 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
8551 if test "$PKG_CONFIG" = "no" ; then
8554 PKG_CONFIG_MIN_VERSION
=0.9.0
8555 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
8557 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
8559 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5 &&
8560 ALSA_CFLAGS
=`$PKG_CONFIG --cflags "$ALSA_MODULES" 2>&5` &&
8561 ALSA_LIBS
=`$PKG_CONFIG --libs "$ALSA_MODULES" 2>&5`; then
8568 ALSA_CFLAGS
=`$as_echo "$ALSA_CFLAGS" | sed -e "$edit_cflags"`
8569 ALSA_LIBS
=`$as_echo "$ALSA_LIBS" | sed -e 's,///*,/,g'`
8570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$ALSA_CFLAGS' LIBS='$ALSA_LIBS'" >&5
8571 $as_echo "yes CFLAGS='$ALSA_CFLAGS' LIBS='$ALSA_LIBS'" >&6; }
8574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8575 $as_echo "no" >&6; }
8578 ## If we have a custom action on failure, don't print errors, but
8579 ## do set a variable so people can do so.
8580 ALSA_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
8587 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8588 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8592 if test $succeeded = yes; then
8598 if test $HAVE_ALSA = yes; then
8599 SAVE_CFLAGS
="$CFLAGS"
8601 CFLAGS
="$ALSA_CFLAGS $CFLAGS"
8602 LIBS
="$ALSA_LIBS $LIBS"
8603 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8604 /* end confdefs.h. */
8605 #include <asoundlib.h>
8609 snd_lib_error_set_handler (0);
8614 if ac_fn_c_try_compile
"$LINENO"; then :
8615 emacs_alsa_normal
=yes
8617 emacs_alsa_normal
=no
8619 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8620 if test "$emacs_alsa_normal" != yes; then
8621 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8622 /* end confdefs.h. */
8623 #include <alsa/asoundlib.h>
8627 snd_lib_error_set_handler (0);
8632 if ac_fn_c_try_compile
"$LINENO"; then :
8633 emacs_alsa_subdir
=yes
8635 emacs_alsa_subdir
=no
8637 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8638 if test "$emacs_alsa_subdir" != yes; then
8639 as_fn_error
"pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
8641 ALSA_CFLAGS
="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
8644 CFLAGS
="$SAVE_CFLAGS"
8646 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
8647 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
8649 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
8653 if test x
$have_sound_header = xyes ||
test $HAVE_ALSA = yes; then
8655 gnu-linux|freebsd|netbsd
)
8657 $as_echo "#define HAVE_SOUND 1" >>confdefs.h
8669 for ac_header
in $ac_header_list
8671 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8672 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8674 eval as_val
=\$
$as_ac_Header
8675 if test "x$as_val" = x
""yes; then :
8676 cat >>confdefs.h
<<_ACEOF
8677 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
8713 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
8714 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8715 /* end confdefs.h. */
8716 #include <sys/personality.h>
8720 personality (PER_LINUX32)
8725 if ac_fn_c_try_compile
"$LINENO"; then :
8726 emacs_cv_personality_linux32
=yes
8728 emacs_cv_personality_linux32
=no
8730 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
8732 $as_echo "$emacs_cv_personality_linux32" >&6; }
8734 if test $emacs_cv_personality_linux32 = yes; then
8736 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
8740 for ac_header
in term.h
8742 ac_fn_c_check_header_preproc
"$LINENO" "term.h" "ac_cv_header_term_h"
8743 if test "x$ac_cv_header_term_h" = x
""yes; then :
8744 cat >>confdefs.h
<<_ACEOF
8745 #define HAVE_TERM_H 1
8752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8753 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8754 if test "${ac_cv_header_time+set}" = set; then :
8755 $as_echo_n "(cached) " >&6
8757 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8758 /* end confdefs.h. */
8759 #include <sys/types.h>
8760 #include <sys/time.h>
8766 if ((struct tm *) 0)
8772 if ac_fn_c_try_compile
"$LINENO"; then :
8773 ac_cv_header_time
=yes
8775 ac_cv_header_time
=no
8777 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8780 $as_echo "$ac_cv_header_time" >&6; }
8781 if test $ac_cv_header_time = yes; then
8783 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8787 ac_fn_c_check_decl
"$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default"
8788 if test "x$ac_cv_have_decl_sys_siglist" = x
""yes; then :
8794 cat >>confdefs.h
<<_ACEOF
8795 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
8798 if test $ac_cv_have_decl_sys_siglist != yes; then
8799 # For Tru64, at least:
8800 ac_fn_c_check_decl
"$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default"
8801 if test "x$ac_cv_have_decl___sys_siglist" = x
""yes; then :
8807 cat >>confdefs.h
<<_ACEOF
8808 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
8811 if test $ac_cv_have_decl___sys_siglist = yes; then
8813 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
8817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8818 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8819 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8820 $as_echo_n "(cached) " >&6
8822 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8823 /* end confdefs.h. */
8824 #include <sys/types.h>
8825 #include <sys/wait.h>
8827 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8830 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8838 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8843 if ac_fn_c_try_compile
"$LINENO"; then :
8844 ac_cv_header_sys_wait_h
=yes
8846 ac_cv_header_sys_wait_h
=no
8848 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8851 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8852 if test $ac_cv_header_sys_wait_h = yes; then
8854 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
8860 $as_echo_n "checking for speed_t... " >&6; }
8861 if test "${emacs_cv_speed_t+set}" = set; then :
8862 $as_echo_n "(cached) " >&6
8864 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8865 /* end confdefs.h. */
8866 #include <termios.h>
8875 if ac_fn_c_try_compile
"$LINENO"; then :
8876 emacs_cv_speed_t
=yes
8880 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
8883 $as_echo "$emacs_cv_speed_t" >&6; }
8884 if test $emacs_cv_speed_t = yes; then
8886 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
8893 for ac_header
in net
/if.h
8895 ac_fn_c_check_header_compile
"$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
8896 #if HAVE_SYS_SOCKET_H
8897 #include <sys/socket.h>
8900 if test "x$ac_cv_header_net_if_h" = x
""yes; then :
8901 cat >>confdefs.h
<<_ACEOF
8902 #define HAVE_NET_IF_H 1
8909 for ac_header
in ifaddrs.h
8911 ac_fn_c_check_header_compile
"$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default
8912 #if HAVE_SYS_SOCKET_H
8913 #include <sys/socket.h>
8916 if test "x$ac_cv_header_ifaddrs_h" = x
""yes; then :
8917 cat >>confdefs.h
<<_ACEOF
8918 #define HAVE_IFADDRS_H 1
8925 for ac_header
in net
/if_dl.h
8927 ac_fn_c_check_header_compile
"$LINENO" "net/if_dl.h" "ac_cv_header_net_if_dl_h" "$ac_includes_default
8928 #if HAVE_SYS_SOCKET_H
8929 #include <sys/socket.h>
8932 if test "x$ac_cv_header_net_if_dl_h" = x
""yes; then :
8933 cat >>confdefs.h
<<_ACEOF
8934 #define HAVE_NET_IF_DL_H 1
8942 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
8943 #if HAVE_SYS_SOCKET_H
8944 #include <sys/socket.h>
8950 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x
""yes; then :
8952 cat >>confdefs.h
<<_ACEOF
8953 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8958 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
8959 #if HAVE_SYS_SOCKET_H
8960 #include <sys/socket.h>
8966 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x
""yes; then :
8968 cat >>confdefs.h
<<_ACEOF
8969 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8974 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
8975 #if HAVE_SYS_SOCKET_H
8976 #include <sys/socket.h>
8982 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x
""yes; then :
8984 cat >>confdefs.h
<<_ACEOF
8985 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8990 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
8991 #if HAVE_SYS_SOCKET_H
8992 #include <sys/socket.h>
8998 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x
""yes; then :
9000 cat >>confdefs.h
<<_ACEOF
9001 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
9006 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
9007 #if HAVE_SYS_SOCKET_H
9008 #include <sys/socket.h>
9014 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x
""yes; then :
9016 cat >>confdefs.h
<<_ACEOF
9017 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
9022 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_addr.sa_len" "ac_cv_member_struct_ifreq_ifr_addr_sa_len" "$ac_includes_default
9023 #if HAVE_SYS_SOCKET_H
9024 #include <sys/socket.h>
9030 if test "x$ac_cv_member_struct_ifreq_ifr_addr_sa_len" = x
""yes; then :
9032 cat >>confdefs.h
<<_ACEOF
9033 #define HAVE_STRUCT_IFREQ_IFR_ADDR_SA_LEN 1
9045 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
9046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
9047 $as_echo_n "checking whether we are using GNU Make... " >&6; }
9049 testval
=`${MAKE-make} --version 2>/dev/null | grep 'GNU Make'`
9050 if test "x$testval" != x
; then
9053 ac_enable_autodepend
=no
9055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
9056 $as_echo "$HAVE_GNU_MAKE" >&6; }
9057 if test $HAVE_GNU_MAKE = yes; then
9058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
9059 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
9060 SAVE_CFLAGS
="$CFLAGS"
9061 CFLAGS
="$CFLAGS -MMD -MF deps.d -MP"
9062 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9063 /* end confdefs.h. */
9073 if ac_fn_c_try_compile
"$LINENO"; then :
9076 ac_enable_autodepend
=no
9078 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9079 CFLAGS
="$SAVE_CFLAGS"
9080 test -f deps.d || ac_enable_autodepend
=no
9082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
9083 $as_echo "$ac_enable_autodepend" >&6; }
9085 if test $ac_enable_autodepend = yes; then
9086 DEPFLAGS
='-MMD -MF ${DEPDIR}/$*.d -MP'
9087 ## MKDIR_P is documented (see AC_PROG_MKDIR_P) to be parallel-safe.
9088 MKDEPDIR
='${MKDIR_P} ${DEPDIR}'
9089 deps_frag
=autodeps.mk
9092 deps_frag
=$srcdir/src
/$deps_frag
9098 lisp_frag
=$srcdir/src
/lisp.mk
9102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
9103 $as_echo_n "checking for long file names... " >&6; }
9104 if test "${ac_cv_sys_long_file_names+set}" = set; then :
9105 $as_echo_n "(cached) " >&6
9107 ac_cv_sys_long_file_names
=yes
9108 # Test for long file names in all the places we know might matter:
9109 # . the current directory, where building will happen
9110 # $prefix/lib where we will be installing things
9111 # $exec_prefix/lib likewise
9112 # $TMPDIR if set, where it might want to write temporary files
9113 # /tmp where it might want to write temporary files
9116 for ac_dir
in .
"$TMPDIR" /tmp
/var
/tmp
/usr
/tmp
"$prefix/lib" "$exec_prefix/lib"; do
9117 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9118 # in the usual case where exec_prefix is '${prefix}'.
9120 . |
/* | ?
:[\\/]*) ;; #(
9123 test -w "$ac_dir/." ||
continue # It is less confusing to not echo anything here.
9124 ac_xdir
=$ac_dir/cf$$
9125 (umask 077 && mkdir
"$ac_xdir" 2>/dev
/null
) ||
continue
9126 ac_tf1
=$ac_xdir/conftest9012345
9127 ac_tf2
=$ac_xdir/conftest9012346
9128 touch "$ac_tf1" 2>/dev
/null
&& test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9129 ac_cv_sys_long_file_names
=no
9130 rm -f -r "$ac_xdir" 2>/dev
/null
9131 test $ac_cv_sys_long_file_names = no
&& break
9134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
9135 $as_echo "$ac_cv_sys_long_file_names" >&6; }
9136 if test $ac_cv_sys_long_file_names = yes; then
9138 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
9143 #### Choose a window system.
9145 ## We leave window_system equal to none if
9146 ## we end up building without one. Any new window system should
9147 ## set window_system to an appropriate value and add objects to
9148 ## window-system-specific substs.
9151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
9152 $as_echo_n "checking for X... " >&6; }
9155 # Check whether --with-x was given.
9156 if test "${with_x+set}" = set; then :
9160 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9161 if test "x$with_x" = xno
; then
9162 # The user explicitly disabled X.
9165 case $x_includes,$x_libraries in #(
9166 *\'*) as_fn_error
"cannot use X directory names containing '" "$LINENO" 5;; #(
9167 *,NONE | NONE
,*) if test "${ac_cv_have_x+set}" = set; then :
9168 $as_echo_n "(cached) " >&6
9170 # One or both of the vars are not set, and there is no cached value.
9171 ac_x_includes
=no ac_x_libraries
=no
9172 rm -f -r conftest.dir
9173 if mkdir conftest.dir
; then
9175 cat >Imakefile
<<'_ACEOF'
9177 @echo incroot='${INCROOT}'
9179 @echo usrlibdir='${USRLIBDIR}'
9181 @echo libdir='${LIBDIR}'
9183 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
9184 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9185 for ac_var
in incroot usrlibdir libdir
; do
9186 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9188 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9189 for ac_extension
in a so sl dylib la dll
; do
9190 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9191 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9192 ac_im_usrlibdir
=$ac_im_libdir; break
9195 # Screen out bogus values from the imake configuration. They are
9196 # bogus both because they are the default anyway, and because
9197 # using them would break gcc on systems where it needs fixed includes.
9198 case $ac_im_incroot in
9199 /usr
/include
) ac_x_includes
= ;;
9200 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
9202 case $ac_im_usrlibdir in
9203 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
9204 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
9208 rm -f -r conftest.dir
9211 # Standard set of common directories for X headers.
9212 # Check X11 before X11Rn because it is often a symlink to the current release.
9226 /usr/local/X11/include
9227 /usr/local/X11R7/include
9228 /usr/local/X11R6/include
9229 /usr/local/X11R5/include
9230 /usr/local/X11R4/include
9232 /usr/local/include/X11
9233 /usr/local/include/X11R7
9234 /usr/local/include/X11R6
9235 /usr/local/include/X11R5
9236 /usr/local/include/X11R4
9240 /usr/XFree86/include/X11
9244 /usr/unsupported/include
9246 /usr/local/x11r5/include
9247 /usr/lpp/Xamples/include
9249 /usr/openwin/include
9250 /usr/openwin/share/include'
9252 if test "$ac_x_includes" = no
; then
9253 # Guess where to find include files, by looking for Xlib.h.
9254 # First, try using that file with no special directory specified.
9255 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9256 /* end confdefs.h. */
9257 #include <X11/Xlib.h>
9259 if ac_fn_c_try_cpp
"$LINENO"; then :
9260 # We can compile using X headers with no special include directory.
9263 for ac_dir
in $ac_x_header_dirs; do
9264 if test -r "$ac_dir/X11/Xlib.h"; then
9265 ac_x_includes
=$ac_dir
9270 rm -f conftest.err conftest.
$ac_ext
9271 fi # $ac_x_includes = no
9273 if test "$ac_x_libraries" = no
; then
9274 # Check for the libraries.
9275 # See if we find them without any special options.
9276 # Don't add to $LIBS permanently.
9279 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9280 /* end confdefs.h. */
9281 #include <X11/Xlib.h>
9290 if ac_fn_c_try_link
"$LINENO"; then :
9292 # We can link X programs with no special library path.
9296 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9298 # Don't even attempt the hair of trying to link an X program!
9299 for ac_extension
in a so sl dylib la dll
; do
9300 if test -r "$ac_dir/libX11.$ac_extension"; then
9301 ac_x_libraries
=$ac_dir
9307 rm -f core conftest.err conftest.
$ac_objext \
9308 conftest
$ac_exeext conftest.
$ac_ext
9309 fi # $ac_x_libraries = no
9311 case $ac_x_includes,$ac_x_libraries in #(
9313 # Didn't find X, or a directory has "'" in its name.
9314 ac_cv_have_x
="have_x=no";; #(
9316 # Record where we found X for the cache.
9317 ac_cv_have_x
="have_x=yes\
9318 ac_x_includes='$ac_x_includes'\
9319 ac_x_libraries='$ac_x_libraries'"
9325 eval "$ac_cv_have_x"
9328 if test "$have_x" != yes; then
9329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
9330 $as_echo "$have_x" >&6; }
9333 # If each of the values was on the command line, it overrides each guess.
9334 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
9335 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
9336 # Update the cache value to reflect the command line values.
9337 ac_cv_have_x
="have_x=yes\
9338 ac_x_includes='$x_includes'\
9339 ac_x_libraries='$x_libraries'"
9340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
9341 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
9344 if test "$no_x" != yes; then
9348 LD_SWITCH_X_SITE_RPATH
=
9349 if test "${x_libraries}" != NONE
; then
9350 if test -n "${x_libraries}"; then
9351 LD_SWITCH_X_SITE
=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9352 LD_SWITCH_X_SITE_RPATH
=-Wl,-rpath,`echo ${x_libraries} | sed -e "s/:/ -Wl,-rpath,/g"`
9354 x_default_search_path
=""
9355 x_search_path
=${x_libraries}
9356 if test -z "${x_search_path}"; then
9357 x_search_path
=/usr
/lib
9359 for x_library
in `echo ${x_search_path}: | \
9360 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9362 ${x_library}/X11/%L/%T/%N%C%S:\
9363 ${x_library}/X11/%l/%T/%N%C%S:\
9364 ${x_library}/X11/%T/%N%C%S:\
9365 ${x_library}/X11/%L/%T/%N%S:\
9366 ${x_library}/X11/%l/%T/%N%S:\
9367 ${x_library}/X11/%T/%N%S"
9368 if test x
"${x_default_search_path}" = x
; then
9369 x_default_search_path
=${x_search_path}
9371 x_default_search_path
="${x_search_path}:${x_default_search_path}"
9377 if test "${x_includes}" != NONE
&& test -n "${x_includes}"; then
9378 C_SWITCH_X_SITE
="$isystem"`echo ${x_includes} | sed -e "s/:/ $isystem/g"`
9381 if test x
"${x_includes}" = x
; then
9382 bitmapdir
=/usr
/include
/X11
/bitmaps
9384 # accumulate include directories that have X11 bitmap subdirectories
9386 for bmd
in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9387 if test -d "${bmd}/X11/bitmaps"; then
9388 bmd_acc
="${bmd_acc}:${bmd}/X11/bitmaps"
9390 if test -d "${bmd}/bitmaps"; then
9391 bmd_acc
="${bmd_acc}:${bmd}/bitmaps"
9394 if test ${bmd_acc} != "dummyval"; then
9395 bitmapdir
=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9402 tmp_CPPFLAGS
="$CPPFLAGS"
9403 tmp_CFLAGS
="$CFLAGS"
9404 CPPFLAGS
="$CPPFLAGS -x objective-c"
9405 CFLAGS
="$CFLAGS -x objective-c"
9406 TEMACS_LDFLAGS2
="\${LDFLAGS}"
9408 if test "${with_ns}" != no
; then
9409 if test "${opsys}" = darwin
; then
9411 ns_appdir
=`pwd`/nextstep
/Emacs.app
9412 ns_appbindir
=${ns_appdir}/Contents
/MacOS
9413 ns_appresdir
=${ns_appdir}/Contents
/Resources
9414 ns_appsrc
=${srcdir}/nextstep
/Cocoa
/Emacs.base
9415 elif test -f $GNUSTEP_CONFIG_FILE; then
9417 ns_appdir
=`pwd`/nextstep
/Emacs.app
9418 ns_appbindir
=${ns_appdir}
9419 ns_appresdir
=${ns_appdir}/Resources
9420 ns_appsrc
=${srcdir}/nextstep
/GNUstep
/Emacs.base
9421 GNUSTEP_SYSTEM_HEADERS
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9422 GNUSTEP_SYSTEM_LIBRARIES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9423 GNUSTEP_LOCAL_HEADERS
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
9424 GNUSTEP_LOCAL_LIBRARIES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
9425 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
9426 GNUSTEP_LOCAL_HEADERS
="-I${GNUSTEP_LOCAL_HEADERS}"
9427 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
9428 GNUSTEP_LOCAL_LIBRARIES
="-L${GNUSTEP_LOCAL_LIBRARIES}"
9429 CPPFLAGS
="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9430 CFLAGS
="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9431 LDFLAGS
="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
9435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS" >&5
9436 $as_echo_n "checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS... " >&6; }
9437 if test "${emacs_cv_objc_exceptions+set}" = set; then :
9438 $as_echo_n "(cached) " >&6
9440 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9441 /* end confdefs.h. */
9442 #include <GNUstepBase/GSConfig.h>
9446 #if defined BASE_NATIVE_OBJC_EXCEPTIONS && BASE_NATIVE_OBJC_EXCEPTIONS > 0
9455 if ac_fn_c_try_compile
"$LINENO"; then :
9456 emacs_cv_objc_exceptions
=yes
9458 emacs_cv_objc_exceptions
=no
9460 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_objc_exceptions" >&5
9463 $as_echo "$emacs_cv_objc_exceptions" >&6; }
9464 if test $emacs_cv_objc_exceptions = yes; then
9466 $as_echo "#define _NATIVE_OBJC_EXCEPTIONS 1" >>confdefs.h
9468 GNU_OBJC_CFLAGS
="-fobjc-exceptions"
9472 CFLAGS
="$CFLAGS $GNU_OBJC_CFLAGS"
9474 ac_fn_c_check_header_mongrel
"$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
9475 if test "x$ac_cv_header_AppKit_AppKit_h" = x
""yes; then :
9478 as_fn_error
"\`--with-ns' was specified, but the include
9479 files are missing or cannot be compiled." "$LINENO" 5
9483 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9484 /* end confdefs.h. */
9485 #include <Foundation/NSObjCRuntime.h>
9494 if ac_fn_c_try_compile
"$LINENO"; then :
9495 ns_have_nsinteger
=yes
9497 ns_have_nsinteger
=no
9499 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9500 if test $ns_have_nsinteger = yes; then
9502 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
9508 INSTALL_ARCH_INDEP_EXTRA
=install-etc
9509 ns_self_contained
=no
9513 if test "${HAVE_NS}" = yes; then
9514 if test "$with_toolkit_scroll_bars" = "no"; then
9515 as_fn_error
"Non-toolkit scroll bars are not implemented for Nextstep." "$LINENO" 5
9518 window_system
=nextstep
9519 # set up packaging dirs
9520 if test "${EN_NS_SELF_CONTAINED}" = yes; then
9521 ns_self_contained
=yes
9522 prefix
=${ns_appresdir}
9523 exec_prefix
=${ns_appbindir}
9524 libexecdir
="\${ns_appbindir}/libexec"
9525 archlibdir
="\${ns_appbindir}/libexec"
9526 docdir
="\${ns_appresdir}/etc"
9527 etcdir
="\${ns_appresdir}/etc"
9528 infodir
="\${ns_appresdir}/info"
9529 mandir
="\${ns_appresdir}/man"
9530 lispdir
="\${ns_appresdir}/lisp"
9531 leimdir
="\${ns_appresdir}/leim"
9532 INSTALL_ARCH_INDEP_EXTRA
=
9534 ns_frag
=$srcdir/src
/ns.mk
9535 NS_OBJC_OBJ
="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o"
9537 CFLAGS
="$tmp_CFLAGS"
9538 CPPFLAGS
="$tmp_CPPFLAGS"
9546 ## $window_system is now set to the window system we will
9554 case "${window_system}" in
9559 case "${with_x_toolkit}" in
9560 athena | lucid
) USE_X_TOOLKIT
=LUCID
;;
9561 motif
) USE_X_TOOLKIT
=MOTIF
;;
9563 term_header
=gtkutil.h
9564 USE_X_TOOLKIT
=none
;;
9565 gtk3
) with_gtk3
=yes
9566 term_header
=gtkutil.h
9567 USE_X_TOOLKIT
=none
;;
9568 no
) USE_X_TOOLKIT
=none
;;
9569 * ) USE_X_TOOLKIT
=maybe
;;
9573 term_header
=nsterm.h
9577 if test -n "${term_header}"; then
9579 cat >>confdefs.h
<<_ACEOF
9580 #define TERM_HEADER "${term_header}"
9585 if test "$window_system" = none
&& test "X$with_x" != "Xno"; then
9586 # Extract the first word of "X", so it can be a program name with args.
9587 set dummy X
; ac_word
=$2
9588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9589 $as_echo_n "checking for $ac_word... " >&6; }
9590 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then :
9591 $as_echo_n "(cached) " >&6
9593 if test -n "$HAVE_XSERVER"; then
9594 ac_cv_prog_HAVE_XSERVER
="$HAVE_XSERVER" # Let the user override the test.
9596 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9600 test -z "$as_dir" && as_dir
=.
9601 for ac_exec_ext
in '' $ac_executable_extensions; do
9602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9603 ac_cv_prog_HAVE_XSERVER
="true"
9604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9611 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER
="false"
9614 HAVE_XSERVER
=$ac_cv_prog_HAVE_XSERVER
9615 if test -n "$HAVE_XSERVER"; then
9616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
9617 $as_echo "$HAVE_XSERVER" >&6; }
9619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9620 $as_echo "no" >&6; }
9624 if test "$HAVE_XSERVER" = true ||
9625 test -n "$DISPLAY" ||
9626 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
9627 as_fn_error
"You seem to be running X, but no X development libraries
9628 were found. You should install the relevant development files for X
9629 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9630 sure you have development files for image handling, i.e.
9631 tiff, gif, jpeg, png and xpm.
9632 If you are sure you want Emacs compiled without X window support, pass
9634 to configure." "$LINENO" 5
9638 ### If we're using X11, we should use the X menu package.
9641 yes ) HAVE_MENUS
=yes ;;
9644 # Does the opsystem file prohibit the use of the GNU malloc?
9645 # Assume not, until told otherwise.
9648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc is Doug Lea style" >&5
9649 $as_echo_n "checking whether malloc is Doug Lea style... " >&6; }
9650 if test "${emacs_cv_var_doug_lea_malloc+set}" = set; then :
9651 $as_echo_n "(cached) " >&6
9653 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9654 /* end confdefs.h. */
9656 static void hook (void) {}
9660 malloc_set_state (malloc_get_state ());
9661 __after_morecore_hook = hook;
9662 __malloc_initialize_hook = hook;
9667 if ac_fn_c_try_link
"$LINENO"; then :
9668 emacs_cv_var_doug_lea_malloc
=yes
9670 emacs_cv_var_doug_lea_malloc
=no
9672 rm -f core conftest.err conftest.
$ac_objext \
9673 conftest
$ac_exeext conftest.
$ac_ext
9675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var_doug_lea_malloc" >&5
9676 $as_echo "$emacs_cv_var_doug_lea_malloc" >&6; }
9677 doug_lea_malloc
=$emacs_cv_var_doug_lea_malloc
9682 ## darwin ld insists on the use of malloc routines in the System framework.
9683 darwin|sol2-10
) system_malloc
=yes ;;
9686 if test "${system_malloc}" = "yes"; then
9688 $as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
9692 (The GNU allocators don't work with this system configuration.)"
9696 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ
=gmalloc.o
9697 VMLIMIT_OBJ
=vm-limit.o
9702 if test "$doug_lea_malloc" = "yes" ; then
9703 if test "$GNU_MALLOC" = yes ; then
9705 (Using Doug Lea's new malloc from the GNU C Library.)"
9708 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
9711 ## Use mmap directly for allocating larger buffers.
9712 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
9713 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
9714 ## Does the AC_FUNC_MMAP test below make this check unnecessary?
9716 gnu
*) REL_ALLOC
=no
;;
9720 if test x
"${REL_ALLOC}" = x
; then
9721 REL_ALLOC
=${GNU_MALLOC}
9724 use_mmap_for_buffers
=no
9726 cygwin|freebsd|irix6-5
) use_mmap_for_buffers
=yes ;;
9736 for ac_func
in getpagesize
9738 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
9739 if test "x$ac_cv_func_getpagesize" = x
""yes; then :
9740 cat >>confdefs.h
<<_ACEOF
9741 #define HAVE_GETPAGESIZE 1
9747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
9748 $as_echo_n "checking for working mmap... " >&6; }
9749 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
9750 $as_echo_n "(cached) " >&6
9752 if test "$cross_compiling" = yes; then :
9753 ac_cv_func_mmap_fixed_mapped
=no
9755 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9756 /* end confdefs.h. */
9757 $ac_includes_default
9758 /* malloc might have been renamed as rpl_malloc. */
9761 /* Thanks to Mike Haertel and Jim Avera for this test.
9762 Here is a matrix of mmap possibilities:
9763 mmap private not fixed
9764 mmap private fixed at somewhere currently unmapped
9765 mmap private fixed at somewhere already mapped
9766 mmap shared not fixed
9767 mmap shared fixed at somewhere currently unmapped
9768 mmap shared fixed at somewhere already mapped
9769 For private mappings, we should verify that changes cannot be read()
9770 back from the file, nor mmap's back from the file at a different
9771 address. (There have been systems where private was not correctly
9772 implemented like the infamous i386 svr4.0, and systems where the
9773 VM page cache was not coherent with the file system buffer cache
9774 like early versions of FreeBSD and possibly contemporary NetBSD.)
9775 For shared mappings, we should conversely verify that changes get
9776 propagated back to all the places they're supposed to be.
9778 Grep wants private fixed already mapped.
9779 The main things grep needs to know about mmap are:
9780 * does it exist and is it safe to write into the mmap'd area
9781 * how to use it (BSD variants) */
9784 #include <sys/mman.h>
9786 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
9790 /* This mess was copied from the GNU getpagesize.h. */
9791 #ifndef HAVE_GETPAGESIZE
9792 # ifdef _SC_PAGESIZE
9793 # define getpagesize() sysconf(_SC_PAGESIZE)
9794 # else /* no _SC_PAGESIZE */
9795 # ifdef HAVE_SYS_PARAM_H
9796 # include <sys/param.h>
9797 # ifdef EXEC_PAGESIZE
9798 # define getpagesize() EXEC_PAGESIZE
9799 # else /* no EXEC_PAGESIZE */
9801 # define getpagesize() NBPG * CLSIZE
9804 # endif /* no CLSIZE */
9805 # else /* no NBPG */
9807 # define getpagesize() NBPC
9808 # else /* no NBPC */
9810 # define getpagesize() PAGESIZE
9811 # endif /* PAGESIZE */
9812 # endif /* no NBPC */
9813 # endif /* no NBPG */
9814 # endif /* no EXEC_PAGESIZE */
9815 # else /* no HAVE_SYS_PARAM_H */
9816 # define getpagesize() 8192 /* punt totally */
9817 # endif /* no HAVE_SYS_PARAM_H */
9818 # endif /* no _SC_PAGESIZE */
9820 #endif /* no HAVE_GETPAGESIZE */
9825 char *data, *data2, *data3;
9830 pagesize = getpagesize ();
9832 /* First, make a file with some known garbage in it. */
9833 data = (char *) malloc (pagesize);
9836 for (i = 0; i < pagesize; ++i)
9837 *(data + i) = rand ();
9839 fd = creat ("conftest.mmap", 0600);
9842 if (write (fd, data, pagesize) != pagesize)
9846 /* Next, check that the tail of a page is zero-filled. File must have
9847 non-zero length, otherwise we risk SIGBUS for entire page. */
9848 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
9852 if (write (fd2, cdata2, 1) != 1)
9854 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
9855 if (data2 == MAP_FAILED)
9857 for (i = 0; i < pagesize; ++i)
9861 if (munmap (data2, pagesize))
9864 /* Next, try to mmap the file at a fixed address which already has
9865 something else allocated at it. If we can, also make sure that
9866 we see the same garbage. */
9867 fd = open ("conftest.mmap", O_RDWR);
9870 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9871 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9873 for (i = 0; i < pagesize; ++i)
9874 if (*(data + i) != *(data2 + i))
9877 /* Finally, make sure that changes to the mapped area do not
9878 percolate back to the file as seen by read(). (This is a bug on
9879 some variants of i386 svr4.0.) */
9880 for (i = 0; i < pagesize; ++i)
9881 *(data2 + i) = *(data2 + i) + 1;
9882 data3 = (char *) malloc (pagesize);
9885 if (read (fd, data3, pagesize) != pagesize)
9887 for (i = 0; i < pagesize; ++i)
9888 if (*(data + i) != *(data3 + i))
9894 if ac_fn_c_try_run
"$LINENO"; then :
9895 ac_cv_func_mmap_fixed_mapped
=yes
9897 ac_cv_func_mmap_fixed_mapped
=no
9899 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9900 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
9905 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
9906 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9908 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
9911 rm -f conftest.mmap conftest.txt
9913 if test $use_mmap_for_buffers = yes; then
9915 $as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
9920 LIBS
="$LIBS_SYSTEM $LIBS"
9922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
9923 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
9924 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
9925 $as_echo_n "(cached) " >&6
9927 ac_check_lib_save_LIBS
=$LIBS
9929 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9930 /* end confdefs.h. */
9932 /* Override any GCC internal prototype to avoid an error.
9933 Use char because int might match the return type of a GCC
9934 builtin and then its argument prototype would still apply. */
9942 return dnet_ntoa ();
9947 if ac_fn_c_try_link
"$LINENO"; then :
9948 ac_cv_lib_dnet_dnet_ntoa
=yes
9950 ac_cv_lib_dnet_dnet_ntoa
=no
9952 rm -f core conftest.err conftest.
$ac_objext \
9953 conftest
$ac_exeext conftest.
$ac_ext
9954 LIBS
=$ac_check_lib_save_LIBS
9956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9957 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
9958 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x
""yes; then :
9959 cat >>confdefs.h
<<_ACEOF
9960 #define HAVE_LIBDNET 1
9968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
9969 $as_echo_n "checking for main in -lXbsd... " >&6; }
9970 if test "${ac_cv_lib_Xbsd_main+set}" = set; then :
9971 $as_echo_n "(cached) " >&6
9973 ac_check_lib_save_LIBS
=$LIBS
9975 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9976 /* end confdefs.h. */
9987 if ac_fn_c_try_link
"$LINENO"; then :
9988 ac_cv_lib_Xbsd_main
=yes
9990 ac_cv_lib_Xbsd_main
=no
9992 rm -f core conftest.err conftest.
$ac_objext \
9993 conftest
$ac_exeext conftest.
$ac_ext
9994 LIBS
=$ac_check_lib_save_LIBS
9996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
9997 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
9998 if test "x$ac_cv_lib_Xbsd_main" = x
""yes; then :
9999 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -lXbsd"
10007 if test "$ac_cv_header_pthread_h"; then
10008 if test "$GMALLOC_OBJ" = gmalloc.o
; then
10009 emacs_pthread_function
=pthread_atfork
10011 emacs_pthread_function
=pthread_self
10013 as_ac_Lib
=`$as_echo "ac_cv_lib_pthread_$emacs_pthread_function" | $as_tr_sh`
10014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $emacs_pthread_function in -lpthread" >&5
10015 $as_echo_n "checking for $emacs_pthread_function in -lpthread... " >&6; }
10016 if { as_var
=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
10017 $as_echo_n "(cached) " >&6
10019 ac_check_lib_save_LIBS
=$LIBS
10020 LIBS
="-lpthread $LIBS"
10021 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10022 /* end confdefs.h. */
10024 /* Override any GCC internal prototype to avoid an error.
10025 Use char because int might match the return type of a GCC
10026 builtin and then its argument prototype would still apply. */
10030 char $emacs_pthread_function ();
10034 return $emacs_pthread_function ();
10039 if ac_fn_c_try_link
"$LINENO"; then :
10040 eval "$as_ac_Lib=yes"
10042 eval "$as_ac_Lib=no"
10044 rm -f core conftest.err conftest.
$ac_objext \
10045 conftest
$ac_exeext conftest.
$ac_ext
10046 LIBS
=$ac_check_lib_save_LIBS
10048 eval ac_res
=\$
$as_ac_Lib
10049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10050 $as_echo "$ac_res" >&6; }
10051 eval as_val
=\$
$as_ac_Lib
10052 if test "x$as_val" = x
""yes; then :
10057 if test "$HAVE_PTHREAD" = yes; then
10058 case "${canonical}" in
10060 *) LIB_PTHREAD
="-lpthread"
10061 LIBS
="$LIB_PTHREAD $LIBS" ;;
10064 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
10069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
10070 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
10071 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then :
10072 $as_echo_n "(cached) " >&6
10074 ac_check_lib_save_LIBS
=$LIBS
10075 LIBS
="-lpthreads $LIBS"
10076 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10077 /* end confdefs.h. */
10079 /* Override any GCC internal prototype to avoid an error.
10080 Use char because int might match the return type of a GCC
10081 builtin and then its argument prototype would still apply. */
10089 return cma_open ();
10094 if ac_fn_c_try_link
"$LINENO"; then :
10095 ac_cv_lib_pthreads_cma_open
=yes
10097 ac_cv_lib_pthreads_cma_open
=no
10099 rm -f core conftest.err conftest.
$ac_objext \
10100 conftest
$ac_exeext conftest.
$ac_ext
10101 LIBS
=$ac_check_lib_save_LIBS
10103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
10104 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
10105 if test "x$ac_cv_lib_pthreads_cma_open" = x
""yes; then :
10106 cat >>confdefs.h
<<_ACEOF
10107 #define HAVE_LIBPTHREADS 1
10110 LIBS
="-lpthreads $LIBS"
10115 ## Note: when using cpp in s/aix4.2.h, this definition depended on
10116 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
10117 ## the system file was sourced. Hence the value of LIBS_SYSTEM
10118 ## added to LIBS in configure would never contain the pthreads part,
10119 ## but the value used in Makefiles might. FIXME?
10121 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
10122 ## be harmless on older versions of X where it happens to exist.
10123 test "$opsys" = "aix4-2" && \
10124 test $ac_cv_lib_pthreads_cma_open = yes && \
10125 LIBS_SYSTEM
="$LIBS_SYSTEM -lpthreads"
10130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
10131 $as_echo_n "checking for -bbigtoc option... " >&6; }
10132 if test "${gdb_cv_bigtoc+set}" = set; then :
10133 $as_echo_n "(cached) " >&6
10137 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
10138 *) gdb_cv_bigtoc
=-bbigtoc ;;
10141 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
10142 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10143 /* end confdefs.h. */
10153 if ac_fn_c_try_link
"$LINENO"; then :
10158 rm -f core conftest.err conftest.
$ac_objext \
10159 conftest
$ac_exeext conftest.
$ac_ext
10162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
10163 $as_echo "$gdb_cv_bigtoc" >&6; }
10167 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10168 # used for the tests that follow. We set them back to REAL_CFLAGS and
10169 # REAL_CPPFLAGS later on.
10171 REAL_CFLAGS
="$CFLAGS"
10172 REAL_CPPFLAGS
="$CPPFLAGS"
10174 if test "${HAVE_X11}" = "yes"; then
10175 DEFS
="$C_SWITCH_X_SITE $DEFS"
10176 LDFLAGS
="$LDFLAGS $LD_SWITCH_X_SITE"
10178 CFLAGS
="$C_SWITCH_X_SITE $CFLAGS"
10179 CPPFLAGS
="$C_SWITCH_X_SITE $CPPFLAGS"
10181 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10182 # This is handled by LD_SWITCH_X_SITE_RPATH during the real build,
10183 # but it's more convenient here to set LD_RUN_PATH since this
10184 # also works on hosts that don't understand LD_SWITCH_X_SITE_RPATH.
10185 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
10186 LD_RUN_PATH
=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10190 if test "${opsys}" = "gnu-linux"; then
10191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
10192 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
10193 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10194 /* end confdefs.h. */
10199 XOpenDisplay ("foo");
10204 if ac_fn_c_try_link
"$LINENO"; then :
10205 xgnu_linux_first_failure
=no
10207 xgnu_linux_first_failure
=yes
10209 rm -f core conftest.err conftest.
$ac_objext \
10210 conftest
$ac_exeext conftest.
$ac_ext
10211 if test "${xgnu_linux_first_failure}" = "yes"; then
10212 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
10213 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
10214 OLD_CPPFLAGS
="$CPPFLAGS"
10216 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
10217 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
10218 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
10219 LIBS
="$LIBS -b i486-linuxaout"
10220 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10221 /* end confdefs.h. */
10226 XOpenDisplay ("foo");
10231 if ac_fn_c_try_link
"$LINENO"; then :
10232 xgnu_linux_second_failure
=no
10234 xgnu_linux_second_failure
=yes
10236 rm -f core conftest.err conftest.
$ac_objext \
10237 conftest
$ac_exeext conftest.
$ac_ext
10238 if test "${xgnu_linux_second_failure}" = "yes"; then
10239 # If we get the same failure with -b, there is no use adding -b.
10240 # So take it out. This plays safe.
10241 LD_SWITCH_X_SITE
="$OLD_LD_SWITCH_X_SITE"
10242 C_SWITCH_X_SITE
="$OLD_C_SWITCH_X_SITE"
10243 CPPFLAGS
="$OLD_CPPFLAGS"
10245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10246 $as_echo "no" >&6; }
10248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10249 $as_echo "yes" >&6; }
10252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10253 $as_echo "no" >&6; }
10257 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10258 # header files included from there.
10259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
10260 $as_echo_n "checking for Xkb... " >&6; }
10261 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10262 /* end confdefs.h. */
10263 #include <X11/Xlib.h>
10264 #include <X11/XKBlib.h>
10268 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10273 if ac_fn_c_try_link
"$LINENO"; then :
10278 rm -f core conftest.err conftest.
$ac_objext \
10279 conftest
$ac_exeext conftest.
$ac_ext
10280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
10281 $as_echo "$emacs_xkb" >&6; }
10282 if test $emacs_xkb = yes; then
10284 $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
10288 for ac_func
in XrmSetDatabase XScreenResourceString \
10289 XScreenNumberOfScreen
10291 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10292 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10293 eval as_val
=\$
$as_ac_var
10294 if test "x$as_val" = x
""yes; then :
10295 cat >>confdefs.h
<<_ACEOF
10296 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10304 if test "${window_system}" = "x11"; then
10305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
10306 $as_echo_n "checking X11 version 6... " >&6; }
10307 if test "${emacs_cv_x11_version_6+set}" = set; then :
10308 $as_echo_n "(cached) " >&6
10310 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10311 /* end confdefs.h. */
10312 #include <X11/Xlib.h>
10316 #if XlibSpecificationRelease < 6
10324 if ac_fn_c_try_link
"$LINENO"; then :
10325 emacs_cv_x11_version_6
=yes
10327 emacs_cv_x11_version_6
=no
10329 rm -f core conftest.err conftest.
$ac_objext \
10330 conftest
$ac_exeext conftest.
$ac_ext
10333 if test $emacs_cv_x11_version_6 = yes; then
10334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
10335 $as_echo "6 or newer" >&6; }
10337 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
10340 $as_echo "#define HAVE_X_I18N 1" >>confdefs.h
10342 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
10347 $as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
10352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
10353 $as_echo "before 6" >&6; }
10358 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
10360 if test "${HAVE_X11}" = "yes" ||
test "${HAVE_NS}" = "yes"; then
10361 if test "${with_rsvg}" != "no"; then
10362 RSVG_REQUIRED
=2.11.0
10363 RSVG_MODULE
="librsvg-2.0 >= $RSVG_REQUIRED"
10368 if test "$PKG_CONFIG" = "no" ; then
10371 PKG_CONFIG_MIN_VERSION
=0.9.0
10372 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
10374 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
10376 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5 &&
10377 RSVG_CFLAGS
=`$PKG_CONFIG --cflags "$RSVG_MODULE" 2>&5` &&
10378 RSVG_LIBS
=`$PKG_CONFIG --libs "$RSVG_MODULE" 2>&5`; then
10385 RSVG_CFLAGS
=`$as_echo "$RSVG_CFLAGS" | sed -e "$edit_cflags"`
10386 RSVG_LIBS
=`$as_echo "$RSVG_LIBS" | sed -e 's,///*,/,g'`
10387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$RSVG_CFLAGS' LIBS='$RSVG_LIBS'" >&5
10388 $as_echo "yes CFLAGS='$RSVG_CFLAGS' LIBS='$RSVG_LIBS'" >&6; }
10391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10392 $as_echo "no" >&6; }
10395 ## If we have a custom action on failure, don't print errors, but
10396 ## do set a variable so people can do so.
10397 RSVG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
10404 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10405 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10409 if test $succeeded = yes; then
10418 if test $HAVE_RSVG = yes; then
10420 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
10422 CFLAGS
="$CFLAGS $RSVG_CFLAGS"
10423 LIBS
="$RSVG_LIBS $LIBS"
10428 HAVE_IMAGEMAGICK
=no
10429 if test "${HAVE_X11}" = "yes"; then
10430 if test "${with_imagemagick}" != "no"; then
10431 ## 6.2.8 is the earliest version known to work, but earlier versions
10432 ## might work - let us know if you find one.
10433 ## 6.0.7 does not work. See bug#7955.
10434 IMAGEMAGICK_MODULE
="Wand >= 6.2.8"
10438 if test "$PKG_CONFIG" = "no" ; then
10441 PKG_CONFIG_MIN_VERSION
=0.9.0
10442 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
10444 $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
10446 if $PKG_CONFIG --exists "$IMAGEMAGICK_MODULE" 2>&5 &&
10447 IMAGEMAGICK_CFLAGS
=`$PKG_CONFIG --cflags "$IMAGEMAGICK_MODULE" 2>&5` &&
10448 IMAGEMAGICK_LIBS
=`$PKG_CONFIG --libs "$IMAGEMAGICK_MODULE" 2>&5`; then
10455 IMAGEMAGICK_CFLAGS
=`$as_echo "$IMAGEMAGICK_CFLAGS" | sed -e "$edit_cflags"`
10456 IMAGEMAGICK_LIBS
=`$as_echo "$IMAGEMAGICK_LIBS" | sed -e 's,///*,/,g'`
10457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$IMAGEMAGICK_CFLAGS' LIBS='$IMAGEMAGICK_LIBS'" >&5
10458 $as_echo "yes CFLAGS='$IMAGEMAGICK_CFLAGS' LIBS='$IMAGEMAGICK_LIBS'" >&6; }
10461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10462 $as_echo "no" >&6; }
10463 IMAGEMAGICK_CFLAGS
=""
10464 IMAGEMAGICK_LIBS
=""
10465 ## If we have a custom action on failure, don't print errors, but
10466 ## do set a variable so people can do so.
10467 IMAGEMAGICK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$IMAGEMAGICK_MODULE"`
10474 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10475 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10479 if test $succeeded = yes; then
10480 HAVE_IMAGEMAGICK
=yes
10488 if test $HAVE_IMAGEMAGICK = yes; then
10490 $as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
10492 CFLAGS
="$CFLAGS $IMAGEMAGICK_CFLAGS"
10493 LIBS
="$IMAGEMAGICK_LIBS $LIBS"
10494 for ac_func
in MagickExportImagePixels MagickMergeImageLayers
10496 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10497 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10498 eval as_val
=\$
$as_ac_var
10499 if test "x$as_val" = x
""yes; then :
10500 cat >>confdefs.h
<<_ACEOF
10501 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10514 if test "${with_gtk3}" = "yes"; then
10517 GTK_MODULES
="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10522 if test "$PKG_CONFIG" = "no" ; then
10525 PKG_CONFIG_MIN_VERSION
=0.9.0
10526 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
10528 $as_echo_n "checking for $GTK_MODULES... " >&6; }
10530 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5 &&
10531 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES" 2>&5` &&
10532 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES" 2>&5`; then
10539 GTK_CFLAGS
=`$as_echo "$GTK_CFLAGS" | sed -e "$edit_cflags"`
10540 GTK_LIBS
=`$as_echo "$GTK_LIBS" | sed -e 's,///*,/,g'`
10541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&5
10542 $as_echo "yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&6; }
10545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10546 $as_echo "no" >&6; }
10549 ## If we have a custom action on failure, don't print errors, but
10550 ## do set a variable so people can do so.
10551 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10558 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10559 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10563 if test $succeeded = yes; then
10569 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
10570 as_fn_error
"$GTK_PKG_ERRORS" "$LINENO" 5
10573 $as_echo "#define HAVE_GTK3 1" >>confdefs.h
10575 GTK_OBJ
=emacsgtkfixed.o
10576 term_header
=gtkutil.h
10579 if test "$pkg_check_gtk" != "yes"; then
10581 if test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "maybe"; then
10584 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10589 if test "$PKG_CONFIG" = "no" ; then
10592 PKG_CONFIG_MIN_VERSION
=0.9.0
10593 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
10595 $as_echo_n "checking for $GTK_MODULES... " >&6; }
10597 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5 &&
10598 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES" 2>&5` &&
10599 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES" 2>&5`; then
10606 GTK_CFLAGS
=`$as_echo "$GTK_CFLAGS" | sed -e "$edit_cflags"`
10607 GTK_LIBS
=`$as_echo "$GTK_LIBS" | sed -e 's,///*,/,g'`
10608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&5
10609 $as_echo "yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&6; }
10612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10613 $as_echo "no" >&6; }
10616 ## If we have a custom action on failure, don't print errors, but
10617 ## do set a variable so people can do so.
10618 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10625 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10626 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10630 if test $succeeded = yes; then
10636 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
10637 as_fn_error
"$GTK_PKG_ERRORS" "$LINENO" 5
10642 if test x
"$pkg_check_gtk" = xyes
; then
10646 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
10647 CFLAGS
="$CFLAGS $GTK_CFLAGS"
10648 LIBS
="$GTK_LIBS $LIBS"
10650 for ac_func
in gtk_main
10652 ac_fn_c_check_func
"$LINENO" "gtk_main" "ac_cv_func_gtk_main"
10653 if test "x$ac_cv_func_gtk_main" = x
""yes; then :
10654 cat >>confdefs.h
<<_ACEOF
10655 #define HAVE_GTK_MAIN 1
10661 if test "${GTK_COMPILES}" != "yes"; then
10662 if test "$USE_X_TOOLKIT" != "maybe"; then
10663 as_fn_error
"Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
10668 $as_echo "#define USE_GTK 1" >>confdefs.h
10670 GTK_OBJ
="gtkutil.o $GTK_OBJ"
10672 if $PKG_CONFIG --atleast-version=2.10 gtk
+-2.0
; then
10675 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
10676 closing open displays. This is no problem if you just use
10677 one display, but if you use more than one and close one of them
10678 Emacs may crash." >&5
10679 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
10680 closing open displays. This is no problem if you just use
10681 one display, but if you use more than one and close one of them
10682 Emacs may crash." >&2;}
10691 if test "${HAVE_GTK}" = "yes"; then
10693 if test "$with_toolkit_scroll_bars" != no
; then
10694 with_toolkit_scroll_bars
=yes
10697 HAVE_GTK_FILE_SELECTION
=no
10698 ac_fn_c_check_decl
"$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
10699 #include <gtk/gtk.h>
10701 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x
""yes; then :
10702 HAVE_GTK_FILE_SELECTION
=yes
10704 HAVE_GTK_FILE_SELECTION
=no
10707 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
10708 for ac_func
in gtk_file_selection_new
10710 ac_fn_c_check_func
"$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
10711 if test "x$ac_cv_func_gtk_file_selection_new" = x
""yes; then :
10712 cat >>confdefs.h
<<_ACEOF
10713 #define HAVE_GTK_FILE_SELECTION_NEW 1
10722 for ac_func
in gtk_widget_get_window gtk_widget_set_has_window \
10723 gtk_dialog_get_action_area gtk_widget_get_sensitive \
10724 gtk_widget_get_mapped gtk_adjustment_get_page_size \
10725 gtk_orientable_set_orientation \
10726 gtk_window_set_has_resize_grip
10728 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10729 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10730 eval as_val
=\$
$as_ac_var
10731 if test "x$as_val" = x
""yes; then :
10732 cat >>confdefs.h
<<_ACEOF
10733 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10740 term_header
=gtkutil.h
10745 if test "${with_dbus}" = "yes"; then
10749 if test "$PKG_CONFIG" = "no" ; then
10752 PKG_CONFIG_MIN_VERSION
=0.9.0
10753 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
10755 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
10757 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5 &&
10758 DBUS_CFLAGS
=`$PKG_CONFIG --cflags "dbus-1 >= 1.0" 2>&5` &&
10759 DBUS_LIBS
=`$PKG_CONFIG --libs "dbus-1 >= 1.0" 2>&5`; then
10766 DBUS_CFLAGS
=`$as_echo "$DBUS_CFLAGS" | sed -e "$edit_cflags"`
10767 DBUS_LIBS
=`$as_echo "$DBUS_LIBS" | sed -e 's,///*,/,g'`
10768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$DBUS_CFLAGS' LIBS='$DBUS_LIBS'" >&5
10769 $as_echo "yes CFLAGS='$DBUS_CFLAGS' LIBS='$DBUS_LIBS'" >&6; }
10772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10773 $as_echo "no" >&6; }
10776 ## If we have a custom action on failure, don't print errors, but
10777 ## do set a variable so people can do so.
10778 DBUS_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
10785 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10786 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10790 if test $succeeded = yes; then
10796 if test "$HAVE_DBUS" = yes; then
10797 LIBS
="$LIBS $DBUS_LIBS"
10799 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
10801 for ac_func
in dbus_watch_get_unix_fd \
10802 dbus_type_is_valid \
10803 dbus_validate_bus_name \
10804 dbus_validate_path \
10805 dbus_validate_interface \
10806 dbus_validate_member
10808 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10809 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10810 eval as_val
=\$
$as_ac_var
10811 if test "x$as_val" = x
""yes; then :
10812 cat >>confdefs.h
<<_ACEOF
10813 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10819 DBUS_OBJ
=dbusbind.o
10825 if test "${HAVE_X11}" = "yes" && test "${with_gsettings}" = "yes"; then
10829 if test "$PKG_CONFIG" = "no" ; then
10832 PKG_CONFIG_MIN_VERSION
=0.9.0
10833 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gio-2.0 >= 2.26" >&5
10835 $as_echo_n "checking for gio-2.0 >= 2.26... " >&6; }
10837 if $PKG_CONFIG --exists "gio-2.0 >= 2.26" 2>&5 &&
10838 GSETTINGS_CFLAGS
=`$PKG_CONFIG --cflags "gio-2.0 >= 2.26" 2>&5` &&
10839 GSETTINGS_LIBS
=`$PKG_CONFIG --libs "gio-2.0 >= 2.26" 2>&5`; then
10846 GSETTINGS_CFLAGS
=`$as_echo "$GSETTINGS_CFLAGS" | sed -e "$edit_cflags"`
10847 GSETTINGS_LIBS
=`$as_echo "$GSETTINGS_LIBS" | sed -e 's,///*,/,g'`
10848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GSETTINGS_CFLAGS' LIBS='$GSETTINGS_LIBS'" >&5
10849 $as_echo "yes CFLAGS='$GSETTINGS_CFLAGS' LIBS='$GSETTINGS_LIBS'" >&6; }
10852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10853 $as_echo "no" >&6; }
10854 GSETTINGS_CFLAGS
=""
10856 ## If we have a custom action on failure, don't print errors, but
10857 ## do set a variable so people can do so.
10858 GSETTINGS_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "gio-2.0 >= 2.26"`
10865 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10866 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10870 if test $succeeded = yes; then
10876 if test "$HAVE_GSETTINGS" = "yes"; then
10878 $as_echo "#define HAVE_GSETTINGS 1" >>confdefs.h
10880 SETTINGS_CFLAGS
="$GSETTINGS_CFLAGS"
10881 SETTINGS_LIBS
="$GSETTINGS_LIBS"
10886 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
10890 if test "$PKG_CONFIG" = "no" ; then
10893 PKG_CONFIG_MIN_VERSION
=0.9.0
10894 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
10896 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
10898 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5 &&
10899 GCONF_CFLAGS
=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13" 2>&5` &&
10900 GCONF_LIBS
=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13" 2>&5`; then
10907 GCONF_CFLAGS
=`$as_echo "$GCONF_CFLAGS" | sed -e "$edit_cflags"`
10908 GCONF_LIBS
=`$as_echo "$GCONF_LIBS" | sed -e 's,///*,/,g'`
10909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GCONF_CFLAGS' LIBS='$GCONF_LIBS'" >&5
10910 $as_echo "yes CFLAGS='$GCONF_CFLAGS' LIBS='$GCONF_LIBS'" >&6; }
10913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10914 $as_echo "no" >&6; }
10917 ## If we have a custom action on failure, don't print errors, but
10918 ## do set a variable so people can do so.
10919 GCONF_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
10926 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10927 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10931 if test $succeeded = yes; then
10937 if test "$HAVE_GCONF" = yes; then
10939 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
10941 SETTINGS_CFLAGS
="$SETTINGS_CFLAGS $GCONF_CFLAGS"
10942 SETTINGS_LIBS
="$SETTINGS_LIBS $GCONF_LIBS"
10946 if test "$HAVE_GSETTINGS" = "yes" ||
test "$HAVE_GCONF" = "yes"; then
10950 if test "$PKG_CONFIG" = "no" ; then
10953 PKG_CONFIG_MIN_VERSION
=0.9.0
10954 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gobject-2.0 >= 2.0" >&5
10956 $as_echo_n "checking for gobject-2.0 >= 2.0... " >&6; }
10958 if $PKG_CONFIG --exists "gobject-2.0 >= 2.0" 2>&5 &&
10959 GOBJECT_CFLAGS
=`$PKG_CONFIG --cflags "gobject-2.0 >= 2.0" 2>&5` &&
10960 GOBJECT_LIBS
=`$PKG_CONFIG --libs "gobject-2.0 >= 2.0" 2>&5`; then
10967 GOBJECT_CFLAGS
=`$as_echo "$GOBJECT_CFLAGS" | sed -e "$edit_cflags"`
10968 GOBJECT_LIBS
=`$as_echo "$GOBJECT_LIBS" | sed -e 's,///*,/,g'`
10969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GOBJECT_CFLAGS' LIBS='$GOBJECT_LIBS'" >&5
10970 $as_echo "yes CFLAGS='$GOBJECT_CFLAGS' LIBS='$GOBJECT_LIBS'" >&6; }
10973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10974 $as_echo "no" >&6; }
10977 ## If we have a custom action on failure, don't print errors, but
10978 ## do set a variable so people can do so.
10979 GOBJECT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "gobject-2.0 >= 2.0"`
10986 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10987 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10991 if test $succeeded = yes; then
10997 if test "$HAVE_GOBJECT" = "yes"; then
10998 SETTINGS_CFLAGS
="$SETTINGS_CFLAGS $GOBJECT_CFLAGS"
10999 SETTINGS_LIBS
="$SETTINGS_LIBS $GOBJECT_LIBS"
11001 SAVE_CFLAGS
="$CFLAGS"
11003 CFLAGS
="$SETTINGS_CFLAGS $CFLAGS"
11004 LIBS
="$SETTINGS_LIBS $LIBS"
11005 for ac_func
in g_type_init
11007 ac_fn_c_check_func
"$LINENO" "g_type_init" "ac_cv_func_g_type_init"
11008 if test "x$ac_cv_func_g_type_init" = x
""yes; then :
11009 cat >>confdefs.h
<<_ACEOF
11010 #define HAVE_G_TYPE_INIT 1
11016 CFLAGS
="$SAVE_CFLAGS"
11025 if test "${with_selinux}" = "yes"; then
11026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
11027 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
11028 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then :
11029 $as_echo_n "(cached) " >&6
11031 ac_check_lib_save_LIBS
=$LIBS
11032 LIBS
="-lselinux $LIBS"
11033 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11034 /* end confdefs.h. */
11036 /* Override any GCC internal prototype to avoid an error.
11037 Use char because int might match the return type of a GCC
11038 builtin and then its argument prototype would still apply. */
11042 char lgetfilecon ();
11046 return lgetfilecon ();
11051 if ac_fn_c_try_link
"$LINENO"; then :
11052 ac_cv_lib_selinux_lgetfilecon
=yes
11054 ac_cv_lib_selinux_lgetfilecon
=no
11056 rm -f core conftest.err conftest.
$ac_objext \
11057 conftest
$ac_exeext conftest.
$ac_ext
11058 LIBS
=$ac_check_lib_save_LIBS
11060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
11061 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
11062 if test "x$ac_cv_lib_selinux_lgetfilecon" = x
""yes; then :
11063 HAVE_LIBSELINUX
=yes
11068 if test "$HAVE_LIBSELINUX" = yes; then
11070 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
11072 LIBSELINUX_LIBS
=-lselinux
11078 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY
=no
11079 if test "${with_gnutls}" = "yes" ; then
11083 if test "$PKG_CONFIG" = "no" ; then
11086 PKG_CONFIG_MIN_VERSION
=0.9.0
11087 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.6.6" >&5
11089 $as_echo_n "checking for gnutls >= 2.6.6... " >&6; }
11091 if $PKG_CONFIG --exists "gnutls >= 2.6.6" 2>&5 &&
11092 LIBGNUTLS_CFLAGS
=`$PKG_CONFIG --cflags "gnutls >= 2.6.6" 2>&5` &&
11093 LIBGNUTLS_LIBS
=`$PKG_CONFIG --libs "gnutls >= 2.6.6" 2>&5`; then
11100 LIBGNUTLS_CFLAGS
=`$as_echo "$LIBGNUTLS_CFLAGS" | sed -e "$edit_cflags"`
11101 LIBGNUTLS_LIBS
=`$as_echo "$LIBGNUTLS_LIBS" | sed -e 's,///*,/,g'`
11102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBGNUTLS_CFLAGS' LIBS='$LIBGNUTLS_LIBS'" >&5
11103 $as_echo "yes CFLAGS='$LIBGNUTLS_CFLAGS' LIBS='$LIBGNUTLS_LIBS'" >&6; }
11106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11107 $as_echo "no" >&6; }
11108 LIBGNUTLS_CFLAGS
=""
11110 ## If we have a custom action on failure, don't print errors, but
11111 ## do set a variable so people can do so.
11112 LIBGNUTLS_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "gnutls >= 2.6.6"`
11119 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11120 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11124 if test $succeeded = yes; then
11130 if test "${HAVE_GNUTLS}" = "yes"; then
11132 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
11136 CFLAGS
="$CFLAGS $LIBGNUTLS_CFLAGS"
11137 LIBS
="$LIBGNUTLS_LIBS $LIBS"
11138 for ac_func
in gnutls_certificate_set_verify_function
11140 ac_fn_c_check_func
"$LINENO" "gnutls_certificate_set_verify_function" "ac_cv_func_gnutls_certificate_set_verify_function"
11141 if test "x$ac_cv_func_gnutls_certificate_set_verify_function" = x
""yes; then :
11142 cat >>confdefs.h
<<_ACEOF
11143 #define HAVE_GNUTLS_CERTIFICATE_SET_VERIFY_FUNCTION 1
11145 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY
=yes
11150 if test "${HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY}" = "yes"; then
11152 $as_echo "#define HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY 1" >>confdefs.h
11162 if test x
"${USE_X_TOOLKIT}" = xmaybe ||
test x
"${USE_X_TOOLKIT}" = xLUCID
; then
11163 if test "$with_xaw3d" != no
; then
11164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
11165 $as_echo_n "checking for xaw3d... " >&6; }
11166 if test "${emacs_cv_xaw3d+set}" = set; then :
11167 $as_echo_n "(cached) " >&6
11169 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11170 /* end confdefs.h. */
11172 #include <X11/Intrinsic.h>
11173 #include <X11/Xaw3d/Simple.h>
11182 if ac_fn_c_try_link
"$LINENO"; then :
11183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XawScrollbarSetThumb in -lXaw3d" >&5
11184 $as_echo_n "checking for XawScrollbarSetThumb in -lXaw3d... " >&6; }
11185 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then :
11186 $as_echo_n "(cached) " >&6
11188 ac_check_lib_save_LIBS
=$LIBS
11189 LIBS
="-lXaw3d $LIBS"
11190 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11191 /* end confdefs.h. */
11193 /* Override any GCC internal prototype to avoid an error.
11194 Use char because int might match the return type of a GCC
11195 builtin and then its argument prototype would still apply. */
11199 char XawScrollbarSetThumb ();
11203 return XawScrollbarSetThumb ();
11208 if ac_fn_c_try_link
"$LINENO"; then :
11209 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=yes
11211 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=no
11213 rm -f core conftest.err conftest.
$ac_objext \
11214 conftest
$ac_exeext conftest.
$ac_ext
11215 LIBS
=$ac_check_lib_save_LIBS
11217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
11218 $as_echo "$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
11219 if test "x$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" = x
""yes; then :
11228 rm -f core conftest.err conftest.
$ac_objext \
11229 conftest
$ac_exeext conftest.
$ac_ext
11235 if test $emacs_cv_xaw3d = yes; then
11236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
11237 $as_echo "yes; using Lucid toolkit" >&6; }
11238 USE_X_TOOLKIT
=LUCID
11242 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
11245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11246 $as_echo "no" >&6; }
11247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
11248 $as_echo_n "checking for libXaw... " >&6; }
11249 if test "${emacs_cv_xaw+set}" = set; then :
11250 $as_echo_n "(cached) " >&6
11252 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11253 /* end confdefs.h. */
11255 #include <X11/Intrinsic.h>
11256 #include <X11/Xaw/Simple.h>
11265 if ac_fn_c_try_link
"$LINENO"; then :
11270 rm -f core conftest.err conftest.
$ac_objext \
11271 conftest
$ac_exeext conftest.
$ac_ext
11274 if test $emacs_cv_xaw = yes; then
11275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
11276 $as_echo "yes; using Lucid toolkit" >&6; }
11277 USE_X_TOOLKIT
=LUCID
11279 elif test x
"${USE_X_TOOLKIT}" = xLUCID
; then
11280 as_fn_error
"Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
11282 as_fn_error
"No X toolkit could be found.
11283 If you are sure you want Emacs compiled without an X toolkit, pass
11284 --with-x-toolkit=no
11285 to configure. Otherwise, install the development libraries for the toolkit
11286 that you want to use (e.g. Gtk+) and re-run configure." "$LINENO" 5
11291 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
11294 if test "${USE_X_TOOLKIT}" != "none"; then
11295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
11296 $as_echo_n "checking X11 toolkit version... " >&6; }
11297 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then :
11298 $as_echo_n "(cached) " >&6
11300 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11301 /* end confdefs.h. */
11302 #include <X11/Intrinsic.h>
11306 #if XtSpecificationRelease < 6
11314 if ac_fn_c_try_link
"$LINENO"; then :
11315 emacs_cv_x11_toolkit_version_6
=yes
11317 emacs_cv_x11_toolkit_version_6
=no
11319 rm -f core conftest.err conftest.
$ac_objext \
11320 conftest
$ac_exeext conftest.
$ac_ext
11323 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
11324 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
11326 $as_echo "6 or newer" >&6; }
11328 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
11330 LIBXTR6
="-lSM -lICE"
11332 ## Use libw.a along with X11R6 Xt.
11333 unixware
) LIBXTR6
="$LIBXTR6 -lw" ;;
11336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
11337 $as_echo "before 6" >&6; }
11341 if test x
$HAVE_X11XTR6 = xyes
; then
11342 LIBS
="-lXt -lSM -lICE $LIBS"
11346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
11347 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
11348 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then :
11349 $as_echo_n "(cached) " >&6
11351 ac_check_lib_save_LIBS
=$LIBS
11353 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11354 /* end confdefs.h. */
11356 /* Override any GCC internal prototype to avoid an error.
11357 Use char because int might match the return type of a GCC
11358 builtin and then its argument prototype would still apply. */
11362 char XmuConvertStandardSelection ();
11366 return XmuConvertStandardSelection ();
11371 if ac_fn_c_try_link
"$LINENO"; then :
11372 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
11374 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
11376 rm -f core conftest.err conftest.
$ac_objext \
11377 conftest
$ac_exeext conftest.
$ac_ext
11378 LIBS
=$ac_check_lib_save_LIBS
11380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
11381 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
11382 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x
""yes; then :
11383 cat >>confdefs.h
<<_ACEOF
11384 #define HAVE_LIBXMU 1
11391 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
11397 ## These systems don't supply Xmu.
11399 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU
=
11404 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
11405 if test "${HAVE_X11}" = "yes"; then
11406 if test "${USE_X_TOOLKIT}" != "none"; then
11407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
11408 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
11409 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
11410 $as_echo_n "(cached) " >&6
11412 ac_check_lib_save_LIBS
=$LIBS
11413 LIBS
="-lXext $LIBS"
11414 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11415 /* end confdefs.h. */
11417 /* Override any GCC internal prototype to avoid an error.
11418 Use char because int might match the return type of a GCC
11419 builtin and then its argument prototype would still apply. */
11423 char XShapeQueryExtension ();
11427 return XShapeQueryExtension ();
11432 if ac_fn_c_try_link
"$LINENO"; then :
11433 ac_cv_lib_Xext_XShapeQueryExtension
=yes
11435 ac_cv_lib_Xext_XShapeQueryExtension
=no
11437 rm -f core conftest.err conftest.
$ac_objext \
11438 conftest
$ac_exeext conftest.
$ac_ext
11439 LIBS
=$ac_check_lib_save_LIBS
11441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
11442 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
11443 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x
""yes; then :
11444 cat >>confdefs.h
<<_ACEOF
11445 #define HAVE_LIBXEXT 1
11448 LIBS
="-lXext $LIBS"
11456 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11457 # OpenMotif may be installed in such a way on some GNU/Linux systems.
11458 if test -d /usr
/include
/openmotif
; then
11459 CPPFLAGS
="-I/usr/include/openmotif $CPPFLAGS"
11460 emacs_cv_openmotif
=yes
11461 case "$canonical" in
11462 x86_64-
*-linux-gnu* | powerpc64-
*-linux-gnu* | sparc64-
*-linux-gnu*)
11463 test -d /usr
/lib64
/openmotif
&& LDFLAGS
="-L/usr/lib64/openmotif $LDFLAGS"
11466 test -d /usr
/lib
/openmotif
&& LDFLAGS
="-L/usr/lib/openmotif $LDFLAGS"
11469 emacs_cv_openmotif
=no
11471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for (Open)Motif version 2.1" >&5
11472 $as_echo_n "checking for (Open)Motif version 2.1... " >&6; }
11473 if test "${emacs_cv_motif_version_2_1+set}" = set; then :
11474 $as_echo_n "(cached) " >&6
11476 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11477 /* end confdefs.h. */
11482 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
11485 Motif version prior to 2.1.
11491 if ac_fn_c_try_compile
"$LINENO"; then :
11492 emacs_cv_motif_version_2_1
=yes
11494 emacs_cv_motif_version_2_1
=no
11496 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
11499 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
11500 if test $emacs_cv_motif_version_2_1 = yes; then
11501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
11502 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
11503 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then :
11504 $as_echo_n "(cached) " >&6
11506 ac_check_lib_save_LIBS
=$LIBS
11508 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11509 /* end confdefs.h. */
11511 /* Override any GCC internal prototype to avoid an error.
11512 Use char because int might match the return type of a GCC
11513 builtin and then its argument prototype would still apply. */
11517 char XpCreateContext ();
11521 return XpCreateContext ();
11526 if ac_fn_c_try_link
"$LINENO"; then :
11527 ac_cv_lib_Xp_XpCreateContext
=yes
11529 ac_cv_lib_Xp_XpCreateContext
=no
11531 rm -f core conftest.err conftest.
$ac_objext \
11532 conftest
$ac_exeext conftest.
$ac_ext
11533 LIBS
=$ac_check_lib_save_LIBS
11535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
11536 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
11537 if test "x$ac_cv_lib_Xp_XpCreateContext" = x
""yes; then :
11541 if test x
$emacs_cv_openmotif = xyes
; then
11542 REAL_CPPFLAGS
="-I/usr/include/openmotif $REAL_CPPFLAGS"
11545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
11546 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
11547 if test "${emacs_cv_lesstif+set}" = set; then :
11548 $as_echo_n "(cached) " >&6
11550 # We put this in CFLAGS temporarily to precede other -I options
11551 # that might be in CFLAGS temporarily.
11552 # We put this in CPPFLAGS where it precedes the other -I options.
11553 OLD_CPPFLAGS
=$CPPFLAGS
11555 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
11556 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
11557 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11558 /* end confdefs.h. */
11559 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
11568 if ac_fn_c_try_compile
"$LINENO"; then :
11569 emacs_cv_lesstif
=yes
11571 emacs_cv_lesstif
=no
11573 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
11576 $as_echo "$emacs_cv_lesstif" >&6; }
11577 if test $emacs_cv_lesstif = yes; then
11578 # Make sure this -I option remains in CPPFLAGS after it is set
11579 # back to REAL_CPPFLAGS.
11580 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
11581 # have those other -I options anyway. Ultimately, having this
11582 # directory ultimately in CPPFLAGS will be enough.
11583 REAL_CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
11584 LDFLAGS
="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
11587 CPPFLAGS
=$OLD_CPPFLAGS
11590 ac_fn_c_check_header_mongrel
"$LINENO" "Xm/BulletinB.h" "ac_cv_header_Xm_BulletinB_h" "$ac_includes_default"
11591 if test "x$ac_cv_header_Xm_BulletinB_h" = x
""yes; then :
11594 as_fn_error
"Motif toolkit requested but requirements not found." "$LINENO" 5
11601 USE_TOOLKIT_SCROLL_BARS
=no
11602 if test "${with_toolkit_scroll_bars}" != "no"; then
11603 if test "${USE_X_TOOLKIT}" != "none"; then
11604 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11605 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11608 USE_TOOLKIT_SCROLL_BARS
=yes
11609 elif test "${HAVE_XAW3D}" = "yes" ||
test "${USE_X_TOOLKIT}" = "LUCID"; then
11610 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11612 USE_TOOLKIT_SCROLL_BARS
=yes
11614 elif test "${HAVE_GTK}" = "yes"; then
11615 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11617 USE_TOOLKIT_SCROLL_BARS
=yes
11618 elif test "${HAVE_NS}" = "yes"; then
11619 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11621 USE_TOOLKIT_SCROLL_BARS
=yes
11625 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11626 /* end confdefs.h. */
11628 #include <X11/Xlib.h>
11629 #include <X11/Xresource.h>
11638 if ac_fn_c_try_compile
"$LINENO"; then :
11641 $as_echo "#define HAVE_XIM 1" >>confdefs.h
11646 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11649 if test "${with_xim}" != "no"; then
11651 $as_echo "#define USE_XIM 1" >>confdefs.h
11656 if test "${HAVE_XIM}" != "no"; then
11657 late_CFLAGS
=$CFLAGS
11658 if test "$GCC" = yes; then
11659 CFLAGS
="$CFLAGS --pedantic-errors"
11661 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11662 /* end confdefs.h. */
11664 #include <X11/Xlib.h>
11665 #include <X11/Xresource.h>
11674 XPointer *client_data;
11676 /* If we're not using GCC, it's probably not XFree86, and this is
11677 probably right, but we can't use something like --pedantic-errors. */
11678 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
11679 char*, XIMProc, XPointer*);
11681 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
11687 if ac_fn_c_try_compile
"$LINENO"; then :
11688 emacs_cv_arg6_star
=yes
11690 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11691 if test "$emacs_cv_arg6_star" = yes; then
11692 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
11695 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
11698 CFLAGS
=$late_CFLAGS
11701 ### Start of font-backend (under any platform) section.
11702 # (nothing here yet -- this is a placeholder)
11703 ### End of font-backend (under any platform) section.
11705 ### Start of font-backend (under X11) section.
11706 if test "${HAVE_X11}" = "yes"; then
11710 if test "$PKG_CONFIG" = "no" ; then
11713 PKG_CONFIG_MIN_VERSION
=0.9.0
11714 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
11716 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
11718 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5 &&
11719 FONTCONFIG_CFLAGS
=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0" 2>&5` &&
11720 FONTCONFIG_LIBS
=`$PKG_CONFIG --libs "fontconfig >= 2.2.0" 2>&5`; then
11727 FONTCONFIG_CFLAGS
=`$as_echo "$FONTCONFIG_CFLAGS" | sed -e "$edit_cflags"`
11728 FONTCONFIG_LIBS
=`$as_echo "$FONTCONFIG_LIBS" | sed -e 's,///*,/,g'`
11729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$FONTCONFIG_CFLAGS' LIBS='$FONTCONFIG_LIBS'" >&5
11730 $as_echo "yes CFLAGS='$FONTCONFIG_CFLAGS' LIBS='$FONTCONFIG_LIBS'" >&6; }
11733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11734 $as_echo "no" >&6; }
11735 FONTCONFIG_CFLAGS
=""
11737 ## If we have a custom action on failure, don't print errors, but
11738 ## do set a variable so people can do so.
11739 FONTCONFIG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
11746 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11747 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11751 if test $succeeded = yes; then
11758 ## Use -lXft if available, unless `--with-xft=no'.
11760 if test "${HAVE_FC}" = "no" ||
test "x${with_x}" = "xno"; then
11763 if test "x${with_xft}" != "xno"; then
11768 if test "$PKG_CONFIG" = "no" ; then
11771 PKG_CONFIG_MIN_VERSION
=0.9.0
11772 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
11774 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
11776 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5 &&
11777 XFT_CFLAGS
=`$PKG_CONFIG --cflags "xft >= 0.13.0" 2>&5` &&
11778 XFT_LIBS
=`$PKG_CONFIG --libs "xft >= 0.13.0" 2>&5`; then
11785 XFT_CFLAGS
=`$as_echo "$XFT_CFLAGS" | sed -e "$edit_cflags"`
11786 XFT_LIBS
=`$as_echo "$XFT_LIBS" | sed -e 's,///*,/,g'`
11787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$XFT_CFLAGS' LIBS='$XFT_LIBS'" >&5
11788 $as_echo "yes CFLAGS='$XFT_CFLAGS' LIBS='$XFT_LIBS'" >&6; }
11791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11792 $as_echo "no" >&6; }
11795 ## If we have a custom action on failure, don't print errors, but
11796 ## do set a variable so people can do so.
11797 XFT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
11804 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11805 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11809 if test $succeeded = yes; then
11815 ## Because xftfont.c uses XRenderQueryExtension, we also
11816 ## need to link to -lXrender.
11818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
11819 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
11820 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
11821 $as_echo_n "(cached) " >&6
11823 ac_check_lib_save_LIBS
=$LIBS
11824 LIBS
="-lXrender $LIBS"
11825 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11826 /* end confdefs.h. */
11828 /* Override any GCC internal prototype to avoid an error.
11829 Use char because int might match the return type of a GCC
11830 builtin and then its argument prototype would still apply. */
11834 char XRenderQueryExtension ();
11838 return XRenderQueryExtension ();
11843 if ac_fn_c_try_link
"$LINENO"; then :
11844 ac_cv_lib_Xrender_XRenderQueryExtension
=yes
11846 ac_cv_lib_Xrender_XRenderQueryExtension
=no
11848 rm -f core conftest.err conftest.
$ac_objext \
11849 conftest
$ac_exeext conftest.
$ac_ext
11850 LIBS
=$ac_check_lib_save_LIBS
11852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
11853 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
11854 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x
""yes; then :
11858 if test "$HAVE_XFT" != no
&& test "$HAVE_XRENDER" != no
; then
11859 OLD_CPPFLAGS
="$CPPFLAGS"
11860 OLD_CFLAGS
="$CFLAGS"
11862 CPPFLAGS
="$CPPFLAGS $XFT_CFLAGS"
11863 CFLAGS
="$CFLAGS $XFT_CFLAGS"
11864 XFT_LIBS
="-lXrender $XFT_LIBS"
11865 LIBS
="$XFT_LIBS $LIBS"
11866 ac_fn_c_check_header_mongrel
"$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
11867 if test "x$ac_cv_header_X11_Xft_Xft_h" = x
""yes; then :
11868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
11869 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
11870 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then :
11871 $as_echo_n "(cached) " >&6
11873 ac_check_lib_save_LIBS
=$LIBS
11874 LIBS
="-lXft $XFT_LIBS $LIBS"
11875 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11876 /* end confdefs.h. */
11878 /* Override any GCC internal prototype to avoid an error.
11879 Use char because int might match the return type of a GCC
11880 builtin and then its argument prototype would still apply. */
11884 char XftFontOpen ();
11888 return XftFontOpen ();
11893 if ac_fn_c_try_link
"$LINENO"; then :
11894 ac_cv_lib_Xft_XftFontOpen
=yes
11896 ac_cv_lib_Xft_XftFontOpen
=no
11898 rm -f core conftest.err conftest.
$ac_objext \
11899 conftest
$ac_exeext conftest.
$ac_ext
11900 LIBS
=$ac_check_lib_save_LIBS
11902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
11903 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
11904 if test "x$ac_cv_lib_Xft_XftFontOpen" = x
""yes; then :
11912 if test "${HAVE_XFT}" = "yes"; then
11914 $as_echo "#define HAVE_XFT 1" >>confdefs.h
11917 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $XFT_CFLAGS"
11919 CPPFLAGS
="$OLD_CPPFLAGS"
11920 CFLAGS
="$OLD_CFLAGS"
11922 fi # "${HAVE_XFT}" = "yes"
11923 fi # "$HAVE_XFT" != no
11924 fi # "x${with_xft}" != "xno"
11926 ## We used to allow building with FreeType and without Xft.
11927 ## However, the ftx font backend driver is not in good shape.
11928 if test "$HAVE_XFT" != "yes"; then
11935 if test "$PKG_CONFIG" = "no" ; then
11938 PKG_CONFIG_MIN_VERSION
=0.9.0
11939 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype2" >&5
11941 $as_echo_n "checking for freetype2... " >&6; }
11943 if $PKG_CONFIG --exists "freetype2" 2>&5 &&
11944 FREETYPE_CFLAGS
=`$PKG_CONFIG --cflags "freetype2" 2>&5` &&
11945 FREETYPE_LIBS
=`$PKG_CONFIG --libs "freetype2" 2>&5`; then
11952 FREETYPE_CFLAGS
=`$as_echo "$FREETYPE_CFLAGS" | sed -e "$edit_cflags"`
11953 FREETYPE_LIBS
=`$as_echo "$FREETYPE_LIBS" | sed -e 's,///*,/,g'`
11954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$FREETYPE_CFLAGS' LIBS='$FREETYPE_LIBS'" >&5
11955 $as_echo "yes CFLAGS='$FREETYPE_CFLAGS' LIBS='$FREETYPE_LIBS'" >&6; }
11958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11959 $as_echo "no" >&6; }
11962 ## If we have a custom action on failure, don't print errors, but
11963 ## do set a variable so people can do so.
11964 FREETYPE_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
11971 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11972 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11976 if test $succeeded = yes; then
11983 test "$HAVE_FREETYPE" = "no" && as_fn_error
"libxft requires libfreetype" "$LINENO" 5
11987 if test "${HAVE_FREETYPE}" = "yes"; then
11989 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
11991 if test "${with_libotf}" != "no"; then
11995 if test "$PKG_CONFIG" = "no" ; then
11998 PKG_CONFIG_MIN_VERSION
=0.9.0
11999 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
12001 $as_echo_n "checking for libotf... " >&6; }
12003 if $PKG_CONFIG --exists "libotf" 2>&5 &&
12004 LIBOTF_CFLAGS
=`$PKG_CONFIG --cflags "libotf" 2>&5` &&
12005 LIBOTF_LIBS
=`$PKG_CONFIG --libs "libotf" 2>&5`; then
12012 LIBOTF_CFLAGS
=`$as_echo "$LIBOTF_CFLAGS" | sed -e "$edit_cflags"`
12013 LIBOTF_LIBS
=`$as_echo "$LIBOTF_LIBS" | sed -e 's,///*,/,g'`
12014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBOTF_CFLAGS' LIBS='$LIBOTF_LIBS'" >&5
12015 $as_echo "yes CFLAGS='$LIBOTF_CFLAGS' LIBS='$LIBOTF_LIBS'" >&6; }
12018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12019 $as_echo "no" >&6; }
12022 ## If we have a custom action on failure, don't print errors, but
12023 ## do set a variable so people can do so.
12024 LIBOTF_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
12031 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12032 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12036 if test $succeeded = yes; then
12042 if test "$HAVE_LIBOTF" = "yes"; then
12044 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
12046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
12047 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
12048 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then :
12049 $as_echo_n "(cached) " >&6
12051 ac_check_lib_save_LIBS
=$LIBS
12053 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12054 /* end confdefs.h. */
12056 /* Override any GCC internal prototype to avoid an error.
12057 Use char because int might match the return type of a GCC
12058 builtin and then its argument prototype would still apply. */
12062 char OTF_get_variation_glyphs ();
12066 return OTF_get_variation_glyphs ();
12071 if ac_fn_c_try_link
"$LINENO"; then :
12072 ac_cv_lib_otf_OTF_get_variation_glyphs
=yes
12074 ac_cv_lib_otf_OTF_get_variation_glyphs
=no
12076 rm -f core conftest.err conftest.
$ac_objext \
12077 conftest
$ac_exeext conftest.
$ac_ext
12078 LIBS
=$ac_check_lib_save_LIBS
12080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
12081 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
12082 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x
""yes; then :
12083 HAVE_OTF_GET_VARIATION_GLYPHS
=yes
12085 HAVE_OTF_GET_VARIATION_GLYPHS
=no
12088 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
12090 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
12098 if test "${HAVE_LIBOTF}" = yes; then
12099 if test "${with_m17n_flt}" != "no"; then
12103 if test "$PKG_CONFIG" = "no" ; then
12106 PKG_CONFIG_MIN_VERSION
=0.9.0
12107 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
12109 $as_echo_n "checking for m17n-flt... " >&6; }
12111 if $PKG_CONFIG --exists "m17n-flt" 2>&5 &&
12112 M17N_FLT_CFLAGS
=`$PKG_CONFIG --cflags "m17n-flt" 2>&5` &&
12113 M17N_FLT_LIBS
=`$PKG_CONFIG --libs "m17n-flt" 2>&5`; then
12120 M17N_FLT_CFLAGS
=`$as_echo "$M17N_FLT_CFLAGS" | sed -e "$edit_cflags"`
12121 M17N_FLT_LIBS
=`$as_echo "$M17N_FLT_LIBS" | sed -e 's,///*,/,g'`
12122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$M17N_FLT_CFLAGS' LIBS='$M17N_FLT_LIBS'" >&5
12123 $as_echo "yes CFLAGS='$M17N_FLT_CFLAGS' LIBS='$M17N_FLT_LIBS'" >&6; }
12126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12127 $as_echo "no" >&6; }
12130 ## If we have a custom action on failure, don't print errors, but
12131 ## do set a variable so people can do so.
12132 M17N_FLT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
12139 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12140 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12144 if test $succeeded = yes; then
12150 if test "$HAVE_M17N_FLT" = "yes"; then
12152 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
12164 ### End of font-backend (under X11) section.
12175 ### Use -lXpm if available, unless `--with-xpm=no'.
12178 if test "${HAVE_X11}" = "yes"; then
12179 if test "${with_xpm}" != "no"; then
12180 ac_fn_c_check_header_mongrel
"$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
12181 if test "x$ac_cv_header_X11_xpm_h" = x
""yes; then :
12182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
12183 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
12184 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then :
12185 $as_echo_n "(cached) " >&6
12187 ac_check_lib_save_LIBS
=$LIBS
12188 LIBS
="-lXpm -lX11 $LIBS"
12189 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12190 /* end confdefs.h. */
12192 /* Override any GCC internal prototype to avoid an error.
12193 Use char because int might match the return type of a GCC
12194 builtin and then its argument prototype would still apply. */
12198 char XpmReadFileToPixmap ();
12202 return XpmReadFileToPixmap ();
12207 if ac_fn_c_try_link
"$LINENO"; then :
12208 ac_cv_lib_Xpm_XpmReadFileToPixmap
=yes
12210 ac_cv_lib_Xpm_XpmReadFileToPixmap
=no
12212 rm -f core conftest.err conftest.
$ac_objext \
12213 conftest
$ac_exeext conftest.
$ac_ext
12214 LIBS
=$ac_check_lib_save_LIBS
12216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
12217 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
12218 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x
""yes; then :
12225 if test "${HAVE_XPM}" = "yes"; then
12226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
12227 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
12228 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12229 /* end confdefs.h. */
12230 #include "X11/xpm.h"
12231 #ifndef XpmReturnAllocPixels
12232 no_return_alloc_pixels
12236 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12237 $EGREP "no_return_alloc_pixels" >/dev
/null
2>&1; then :
12245 if test "${HAVE_XPM}" = "yes"; then
12246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12247 $as_echo "yes" >&6; }
12249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12250 $as_echo "no" >&6; }
12255 if test "${HAVE_XPM}" = "yes"; then
12257 $as_echo "#define HAVE_XPM 1" >>confdefs.h
12264 ### Use -ljpeg if available, unless `--with-jpeg=no'.
12267 if test "${HAVE_X11}" = "yes"; then
12268 if test "${with_jpeg}" != "no"; then
12269 ac_fn_c_check_header_mongrel
"$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
12270 if test "x$ac_cv_header_jerror_h" = x
""yes; then :
12271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
12272 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
12273 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then :
12274 $as_echo_n "(cached) " >&6
12276 ac_check_lib_save_LIBS
=$LIBS
12277 LIBS
="-ljpeg $LIBS"
12278 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12279 /* end confdefs.h. */
12281 /* Override any GCC internal prototype to avoid an error.
12282 Use char because int might match the return type of a GCC
12283 builtin and then its argument prototype would still apply. */
12287 char jpeg_destroy_compress ();
12291 return jpeg_destroy_compress ();
12296 if ac_fn_c_try_link
"$LINENO"; then :
12297 ac_cv_lib_jpeg_jpeg_destroy_compress
=yes
12299 ac_cv_lib_jpeg_jpeg_destroy_compress
=no
12301 rm -f core conftest.err conftest.
$ac_objext \
12302 conftest
$ac_exeext conftest.
$ac_ext
12303 LIBS
=$ac_check_lib_save_LIBS
12305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
12306 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
12307 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x
""yes; then :
12316 if test "${HAVE_JPEG}" = "yes"; then
12317 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
12319 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12320 /* end confdefs.h. */
12321 #include <jpeglib.h>
12322 version=JPEG_LIB_VERSION
12325 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12326 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev
/null
2>&1; then :
12327 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
12330 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
12331 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
12337 if test "${HAVE_JPEG}" = "yes"; then
12343 ### Use -lpng if available, unless `--with-png=no'.
12346 if test "${HAVE_X11}" = "yes"; then
12347 if test "${with_png}" != "no"; then
12348 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
12349 # in /usr/include/libpng.
12350 for ac_header
in png.h libpng
/png.h
12352 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12353 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12354 eval as_val
=\$
$as_ac_Header
12355 if test "x$as_val" = x
""yes; then :
12356 cat >>confdefs.h
<<_ACEOF
12357 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12364 if test "$ac_cv_header_png_h" = yes ||
test "$ac_cv_header_libpng_png_h" = yes ; then
12365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
12366 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
12367 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then :
12368 $as_echo_n "(cached) " >&6
12370 ac_check_lib_save_LIBS
=$LIBS
12371 LIBS
="-lpng -lz -lm $LIBS"
12372 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12373 /* end confdefs.h. */
12375 /* Override any GCC internal prototype to avoid an error.
12376 Use char because int might match the return type of a GCC
12377 builtin and then its argument prototype would still apply. */
12381 char png_get_channels ();
12385 return png_get_channels ();
12390 if ac_fn_c_try_link
"$LINENO"; then :
12391 ac_cv_lib_png_png_get_channels
=yes
12393 ac_cv_lib_png_png_get_channels
=no
12395 rm -f core conftest.err conftest.
$ac_objext \
12396 conftest
$ac_exeext conftest.
$ac_ext
12397 LIBS
=$ac_check_lib_save_LIBS
12399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
12400 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
12401 if test "x$ac_cv_lib_png_png_get_channels" = x
""yes; then :
12408 if test "${HAVE_PNG}" = "yes"; then
12410 $as_echo "#define HAVE_PNG 1" >>confdefs.h
12412 LIBPNG
="-lpng -lz -lm"
12414 ac_fn_c_check_decl
"$LINENO" "png_longjmp" "ac_cv_have_decl_png_longjmp" "#ifdef HAVE_LIBPNG_PNG_H
12415 # include <libpng/png.h>
12421 if test "x$ac_cv_have_decl_png_longjmp" = x
""yes; then :
12425 $as_echo "#define PNG_DEPSTRUCT /**/" >>confdefs.h
12433 ### Use -ltiff if available, unless `--with-tiff=no'.
12436 if test "${HAVE_X11}" = "yes"; then
12437 if test "${with_tiff}" != "no"; then
12438 ac_fn_c_check_header_mongrel
"$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
12439 if test "x$ac_cv_header_tiffio_h" = x
""yes; then :
12441 # At least one tiff package requires the jpeg library.
12442 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
12443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
12444 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
12445 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then :
12446 $as_echo_n "(cached) " >&6
12448 ac_check_lib_save_LIBS
=$LIBS
12449 LIBS
="-ltiff $tifflibs $LIBS"
12450 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12451 /* end confdefs.h. */
12453 /* Override any GCC internal prototype to avoid an error.
12454 Use char because int might match the return type of a GCC
12455 builtin and then its argument prototype would still apply. */
12459 char TIFFGetVersion ();
12463 return TIFFGetVersion ();
12468 if ac_fn_c_try_link
"$LINENO"; then :
12469 ac_cv_lib_tiff_TIFFGetVersion
=yes
12471 ac_cv_lib_tiff_TIFFGetVersion
=no
12473 rm -f core conftest.err conftest.
$ac_objext \
12474 conftest
$ac_exeext conftest.
$ac_ext
12475 LIBS
=$ac_check_lib_save_LIBS
12477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
12478 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
12479 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x
""yes; then :
12488 if test "${HAVE_TIFF}" = "yes"; then
12490 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
12497 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
12500 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
12501 ac_fn_c_check_header_mongrel
"$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
12502 if test "x$ac_cv_header_gif_lib_h" = x
""yes; then :
12503 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
12504 # Earlier versions can crash Emacs.
12505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
12506 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
12507 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then :
12508 $as_echo_n "(cached) " >&6
12510 ac_check_lib_save_LIBS
=$LIBS
12512 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12513 /* end confdefs.h. */
12515 /* Override any GCC internal prototype to avoid an error.
12516 Use char because int might match the return type of a GCC
12517 builtin and then its argument prototype would still apply. */
12521 char EGifPutExtensionLast ();
12525 return EGifPutExtensionLast ();
12530 if ac_fn_c_try_link
"$LINENO"; then :
12531 ac_cv_lib_gif_EGifPutExtensionLast
=yes
12533 ac_cv_lib_gif_EGifPutExtensionLast
=no
12535 rm -f core conftest.err conftest.
$ac_objext \
12536 conftest
$ac_exeext conftest.
$ac_ext
12537 LIBS
=$ac_check_lib_save_LIBS
12539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
12540 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
12541 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x
""yes; then :
12551 if test "$HAVE_GIF" = yes; then
12553 elif test "$HAVE_GIF" = maybe
; then
12554 # If gif_lib.h but no libgif, try libungif.
12555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
12556 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
12557 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then :
12558 $as_echo_n "(cached) " >&6
12560 ac_check_lib_save_LIBS
=$LIBS
12561 LIBS
="-lungif $LIBS"
12562 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12563 /* end confdefs.h. */
12565 /* Override any GCC internal prototype to avoid an error.
12566 Use char because int might match the return type of a GCC
12567 builtin and then its argument prototype would still apply. */
12571 char EGifPutExtensionLast ();
12575 return EGifPutExtensionLast ();
12580 if ac_fn_c_try_link
"$LINENO"; then :
12581 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
12583 ac_cv_lib_ungif_EGifPutExtensionLast
=no
12585 rm -f core conftest.err conftest.
$ac_objext \
12586 conftest
$ac_exeext conftest.
$ac_ext
12587 LIBS
=$ac_check_lib_save_LIBS
12589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
12590 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
12591 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x
""yes; then :
12597 test "$HAVE_GIF" = yes && LIBGIF
=-lungif
12600 if test "${HAVE_GIF}" = "yes"; then
12602 $as_echo "#define HAVE_GIF 1" >>confdefs.h
12608 if test "${HAVE_X11}" = "yes"; then
12611 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
12612 MISSING
="libXpm" && WITH_NO
="--with-xpm=no"
12613 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
12614 MISSING
="$MISSING libjpeg" && WITH_NO
="$WITH_NO --with-jpeg=no"
12615 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
12616 MISSING
="$MISSING libpng" && WITH_NO
="$WITH_NO --with-png=no"
12617 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
12618 MISSING
="$MISSING libgif/libungif" && WITH_NO
="$WITH_NO --with-gif=no"
12619 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
12620 MISSING
="$MISSING libtiff" && WITH_NO
="$WITH_NO --with-tiff=no"
12622 if test "X${MISSING}" != X
; then
12623 as_fn_error
"The following required libraries were not found:
12625 Maybe some development libraries/packages are missing?
12626 If you don't want to link with them give
12628 as options to configure" "$LINENO" 5
12632 ### Use -lgpm if available, unless `--with-gpm=no'.
12635 if test "${with_gpm}" != "no"; then
12636 ac_fn_c_check_header_mongrel
"$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
12637 if test "x$ac_cv_header_gpm_h" = x
""yes; then :
12638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
12639 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
12640 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then :
12641 $as_echo_n "(cached) " >&6
12643 ac_check_lib_save_LIBS
=$LIBS
12645 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12646 /* end confdefs.h. */
12648 /* Override any GCC internal prototype to avoid an error.
12649 Use char because int might match the return type of a GCC
12650 builtin and then its argument prototype would still apply. */
12658 return Gpm_Open ();
12663 if ac_fn_c_try_link
"$LINENO"; then :
12664 ac_cv_lib_gpm_Gpm_Open
=yes
12666 ac_cv_lib_gpm_Gpm_Open
=no
12668 rm -f core conftest.err conftest.
$ac_objext \
12669 conftest
$ac_exeext conftest.
$ac_ext
12670 LIBS
=$ac_check_lib_save_LIBS
12672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
12673 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
12674 if test "x$ac_cv_lib_gpm_Gpm_Open" = x
""yes; then :
12682 if test "${HAVE_GPM}" = "yes"; then
12684 $as_echo "#define HAVE_GPM 1" >>confdefs.h
12696 ### Use NeXTstep API to implement GUI.
12697 if test "${HAVE_NS}" = "yes"; then
12699 $as_echo "#define HAVE_NS 1" >>confdefs.h
12701 if test "${NS_IMPL_COCOA}" = "yes"; then
12703 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
12706 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
12708 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
12710 # See also .m.o rule in Makefile.in */
12711 # FIXME: are all these flags really needed? Document here why. */
12712 GNUSTEP_CFLAGS
="-D_REENTRANT -fPIC -fno-strict-aliasing -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
12713 ## Extra CFLAGS applied to src/*.m files.
12714 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"
12716 # We also have mouse menus.
12722 ### Use session management (-lSM -lICE) if available
12725 if test "${HAVE_X11}" = "yes"; then
12726 ac_fn_c_check_header_mongrel
"$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
12727 if test "x$ac_cv_header_X11_SM_SMlib_h" = x
""yes; then :
12728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
12729 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
12730 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then :
12731 $as_echo_n "(cached) " >&6
12733 ac_check_lib_save_LIBS
=$LIBS
12734 LIBS
="-lSM -lICE $LIBS"
12735 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12736 /* end confdefs.h. */
12738 /* Override any GCC internal prototype to avoid an error.
12739 Use char because int might match the return type of a GCC
12740 builtin and then its argument prototype would still apply. */
12744 char SmcOpenConnection ();
12748 return SmcOpenConnection ();
12753 if ac_fn_c_try_link
"$LINENO"; then :
12754 ac_cv_lib_SM_SmcOpenConnection
=yes
12756 ac_cv_lib_SM_SmcOpenConnection
=no
12758 rm -f core conftest.err conftest.
$ac_objext \
12759 conftest
$ac_exeext conftest.
$ac_ext
12760 LIBS
=$ac_check_lib_save_LIBS
12762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
12763 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
12764 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x
""yes; then :
12772 if test "${HAVE_X_SM}" = "yes"; then
12774 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
12776 LIBXSM
="-lSM -lICE"
12779 *) LIBS
="$LIBXSM $LIBS" ;;
12785 ### Use libxml (-lxml2) if available
12787 if test "${with_xml2}" != "no"; then
12788 ### I'm not sure what the version number should be, so I just guessed.
12792 if test "$PKG_CONFIG" = "no" ; then
12795 PKG_CONFIG_MIN_VERSION
=0.9.0
12796 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.6.17" >&5
12798 $as_echo_n "checking for libxml-2.0 > 2.6.17... " >&6; }
12800 if $PKG_CONFIG --exists "libxml-2.0 > 2.6.17" 2>&5 &&
12801 LIBXML2_CFLAGS
=`$PKG_CONFIG --cflags "libxml-2.0 > 2.6.17" 2>&5` &&
12802 LIBXML2_LIBS
=`$PKG_CONFIG --libs "libxml-2.0 > 2.6.17" 2>&5`; then
12809 LIBXML2_CFLAGS
=`$as_echo "$LIBXML2_CFLAGS" | sed -e "$edit_cflags"`
12810 LIBXML2_LIBS
=`$as_echo "$LIBXML2_LIBS" | sed -e 's,///*,/,g'`
12811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBXML2_CFLAGS' LIBS='$LIBXML2_LIBS'" >&5
12812 $as_echo "yes CFLAGS='$LIBXML2_CFLAGS' LIBS='$LIBXML2_LIBS'" >&6; }
12815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12816 $as_echo "no" >&6; }
12819 ## If we have a custom action on failure, don't print errors, but
12820 ## do set a variable so people can do so.
12821 LIBXML2_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0 > 2.6.17"`
12828 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12829 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12833 if test $succeeded = yes; then
12839 if test "${HAVE_LIBXML2}" = "yes"; then
12840 LIBS
="$LIBXML2_LIBS $LIBS"
12841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5
12842 $as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; }
12843 if test "${ac_cv_lib_xml2_htmlReadMemory+set}" = set; then :
12844 $as_echo_n "(cached) " >&6
12846 ac_check_lib_save_LIBS
=$LIBS
12847 LIBS
="-lxml2 $LIBS"
12848 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12849 /* end confdefs.h. */
12851 /* Override any GCC internal prototype to avoid an error.
12852 Use char because int might match the return type of a GCC
12853 builtin and then its argument prototype would still apply. */
12857 char htmlReadMemory ();
12861 return htmlReadMemory ();
12866 if ac_fn_c_try_link
"$LINENO"; then :
12867 ac_cv_lib_xml2_htmlReadMemory
=yes
12869 ac_cv_lib_xml2_htmlReadMemory
=no
12871 rm -f core conftest.err conftest.
$ac_objext \
12872 conftest
$ac_exeext conftest.
$ac_ext
12873 LIBS
=$ac_check_lib_save_LIBS
12875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5
12876 $as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; }
12877 if test "x$ac_cv_lib_xml2_htmlReadMemory" = x
""yes; then :
12883 if test "${HAVE_LIBXML2}" = "yes"; then
12885 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
12896 # If netdb.h doesn't declare h_errno, we must declare it by hand.
12897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
12898 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
12899 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then :
12900 $as_echo_n "(cached) " >&6
12902 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12903 /* end confdefs.h. */
12913 if ac_fn_c_try_link
"$LINENO"; then :
12914 emacs_cv_netdb_declares_h_errno
=yes
12916 emacs_cv_netdb_declares_h_errno
=no
12918 rm -f core conftest.err conftest.
$ac_objext \
12919 conftest
$ac_exeext conftest.
$ac_ext
12921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
12922 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
12923 if test $emacs_cv_netdb_declares_h_errno = yes; then
12925 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
12929 # fmod, logb, and frexp are found in -lm on most systems.
12930 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
12931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
12932 $as_echo_n "checking for sqrt in -lm... " >&6; }
12933 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
12934 $as_echo_n "(cached) " >&6
12936 ac_check_lib_save_LIBS
=$LIBS
12938 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12939 /* end confdefs.h. */
12941 /* Override any GCC internal prototype to avoid an error.
12942 Use char because int might match the return type of a GCC
12943 builtin and then its argument prototype would still apply. */
12956 if ac_fn_c_try_link
"$LINENO"; then :
12957 ac_cv_lib_m_sqrt
=yes
12959 ac_cv_lib_m_sqrt
=no
12961 rm -f core conftest.err conftest.
$ac_objext \
12962 conftest
$ac_exeext conftest.
$ac_ext
12963 LIBS
=$ac_check_lib_save_LIBS
12965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
12966 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
12967 if test "x$ac_cv_lib_m_sqrt" = x
""yes; then :
12968 cat >>confdefs.h
<<_ACEOF
12969 #define HAVE_LIBM 1
12977 # Check for mail-locking functions in a "mail" library. Probably this should
12978 # have the same check as for liblockfile below.
12979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
12980 $as_echo_n "checking for maillock in -lmail... " >&6; }
12981 if test "${ac_cv_lib_mail_maillock+set}" = set; then :
12982 $as_echo_n "(cached) " >&6
12984 ac_check_lib_save_LIBS
=$LIBS
12985 LIBS
="-lmail $LIBS"
12986 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12987 /* end confdefs.h. */
12989 /* Override any GCC internal prototype to avoid an error.
12990 Use char because int might match the return type of a GCC
12991 builtin and then its argument prototype would still apply. */
12999 return maillock ();
13004 if ac_fn_c_try_link
"$LINENO"; then :
13005 ac_cv_lib_mail_maillock
=yes
13007 ac_cv_lib_mail_maillock
=no
13009 rm -f core conftest.err conftest.
$ac_objext \
13010 conftest
$ac_exeext conftest.
$ac_ext
13011 LIBS
=$ac_check_lib_save_LIBS
13013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
13014 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
13015 if test "x$ac_cv_lib_mail_maillock" = x
""yes; then :
13021 if test $have_mail = yes; then
13023 LIBS
="$LIBS_MAIL $LIBS"
13025 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
13030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
13031 $as_echo_n "checking for maillock in -llockfile... " >&6; }
13032 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then :
13033 $as_echo_n "(cached) " >&6
13035 ac_check_lib_save_LIBS
=$LIBS
13036 LIBS
="-llockfile $LIBS"
13037 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13038 /* end confdefs.h. */
13040 /* Override any GCC internal prototype to avoid an error.
13041 Use char because int might match the return type of a GCC
13042 builtin and then its argument prototype would still apply. */
13050 return maillock ();
13055 if ac_fn_c_try_link
"$LINENO"; then :
13056 ac_cv_lib_lockfile_maillock
=yes
13058 ac_cv_lib_lockfile_maillock
=no
13060 rm -f core conftest.err conftest.
$ac_objext \
13061 conftest
$ac_exeext conftest.
$ac_ext
13062 LIBS
=$ac_check_lib_save_LIBS
13064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
13065 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
13066 if test "x$ac_cv_lib_lockfile_maillock" = x
""yes; then :
13072 if test $have_lockfile = yes; then
13073 LIBS_MAIL
=-llockfile
13074 LIBS
="$LIBS_MAIL $LIBS"
13076 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
13079 # If we have the shared liblockfile, assume we must use it for mail
13080 # locking (e.g. Debian). If we couldn't link against liblockfile
13081 # (no liblockfile.a installed), ensure that we don't need to.
13082 # Extract the first word of "liblockfile.so", so it can be a program name with args.
13083 set dummy liblockfile.so
; ac_word
=$2
13084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13085 $as_echo_n "checking for $ac_word... " >&6; }
13086 if test "${ac_cv_prog_liblockfile+set}" = set; then :
13087 $as_echo_n "(cached) " >&6
13089 if test -n "$liblockfile"; then
13090 ac_cv_prog_liblockfile
="$liblockfile" # Let the user override the test.
13092 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13093 as_dummy
="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
13094 for as_dir
in $as_dummy
13097 test -z "$as_dir" && as_dir
=.
13098 for ac_exec_ext
in '' $ac_executable_extensions; do
13099 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13100 ac_cv_prog_liblockfile
="yes"
13101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13108 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile
="no"
13111 liblockfile
=$ac_cv_prog_liblockfile
13112 if test -n "$liblockfile"; then
13113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
13114 $as_echo "$liblockfile" >&6; }
13116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13117 $as_echo "no" >&6; }
13121 if test $ac_cv_prog_liblockfile = yes; then
13122 as_fn_error
"Shared liblockfile found but can't link against it.
13123 This probably means that movemail could lose mail.
13124 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
13132 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
13133 ## interlock access to the mail spool. The alternative is a lock file named
13134 ## /usr/spool/mail/$USER.lock.
13137 aix4-2
) mail_lock
="lockf" ;;
13139 gnu|freebsd|netbsd|openbsd|darwin|irix6-5
) mail_lock
="flock" ;;
13141 ## On GNU/Linux systems, both methods are used by various mail programs.
13142 ## I assume most people are using newer mailers that have heard of flock.
13143 ## Change this if you need to.
13144 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
13145 ## configure gets the right answers, and that means *NOT* using flock.
13146 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
13147 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
13148 ## Debian maintainer hasn't provided a clean fix for Emacs.
13149 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
13150 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
13151 ## correct logic. -- fx
13152 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
13153 ## liblockfile is a Free Software replacement for libmail, used on
13154 ## Debian systems and elsewhere. -rfr.
13157 if test $have_mail = yes ||
test $have_lockfile = yes; then
13158 test $ac_cv_header_maillock_h = yes && mail_lock
=no
13164 case "$mail_lock" in
13166 $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
13170 $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
13173 *) BLESSMAIL_TARGET
="need-blessmail" ;;
13178 for ac_func
in gethostname \
13179 closedir getrusage get_current_dir_name \
13180 lrand48 logb cbrt setsid \
13181 fpathconf
select euidaccess getpagesize setlocale \
13182 utimes getrlimit setrlimit setpgid getcwd shutdown getaddrinfo \
13183 __fpending strsignal setitimer \
13184 sendto recvfrom getsockname getpeername getifaddrs freeifaddrs \
13185 gai_strerror mkstemp getline getdelim fsync sync \
13186 difftime posix_memalign \
13187 getpwent endpwent getgrent endgrent \
13189 cfmakeraw cfsetspeed copysign __executable_start
13191 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13192 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13193 eval as_val
=\$
$as_ac_var
13194 if test "x$as_val" = x
""yes; then :
13195 cat >>confdefs.h
<<_ACEOF
13196 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13203 if test $opsys = unixware
; then
13205 $as_echo "#define BROKEN_GETWD 1" >>confdefs.h
13208 for ac_func
in getwd
13210 ac_fn_c_check_func
"$LINENO" "getwd" "ac_cv_func_getwd"
13211 if test "x$ac_cv_func_getwd" = x
""yes; then :
13212 cat >>confdefs.h
<<_ACEOF
13213 #define HAVE_GETWD 1
13221 ## Eric Backus <ericb@lsid.hp.com> says, HP-UX 9.x on HP 700 machines
13222 ## has a broken `rint' in some library versions including math library
13223 ## version number A.09.05.
13224 ## You can fix the math library by installing patch number PHSS_4630.
13225 ## But we can fix it more reliably for Emacs by just not using rint.
13226 ## We also skip HAVE_RANDOM - see comments in src/conf_post.h.
13229 *) for ac_func
in random rint
13231 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13232 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13233 eval as_val
=\$
$as_ac_var
13234 if test "x$as_val" = x
""yes; then :
13235 cat >>confdefs.h
<<_ACEOF
13236 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unwind_init" >&5
13245 $as_echo_n "checking for __builtin_unwind_init... " >&6; }
13246 if test "${emacs_cv_func___builtin_unwind_init+set}" = set; then :
13247 $as_echo_n "(cached) " >&6
13249 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13250 /* end confdefs.h. */
13255 __builtin_unwind_init ();
13260 if ac_fn_c_try_link
"$LINENO"; then :
13261 emacs_cv_func___builtin_unwind_init
=yes
13263 emacs_cv_func___builtin_unwind_init
=no
13265 rm -f core conftest.err conftest.
$ac_objext \
13266 conftest
$ac_exeext conftest.
$ac_ext
13268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func___builtin_unwind_init" >&5
13269 $as_echo "$emacs_cv_func___builtin_unwind_init" >&6; }
13270 if test $emacs_cv_func___builtin_unwind_init = yes; then
13272 $as_echo "#define HAVE___BUILTIN_UNWIND_INIT 1" >>confdefs.h
13280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13281 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
13282 if test "${ac_cv_sys_largefile_source+set}" = set; then :
13283 $as_echo_n "(cached) " >&6
13286 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13287 /* end confdefs.h. */
13288 #include <sys/types.h> /* for off_t */
13293 int (*fp) (FILE *, off_t, int) = fseeko;
13294 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13299 if ac_fn_c_try_link
"$LINENO"; then :
13300 ac_cv_sys_largefile_source
=no
; break
13302 rm -f core conftest.err conftest.
$ac_objext \
13303 conftest
$ac_exeext conftest.
$ac_ext
13304 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13305 /* end confdefs.h. */
13306 #define _LARGEFILE_SOURCE 1
13307 #include <sys/types.h> /* for off_t */
13312 int (*fp) (FILE *, off_t, int) = fseeko;
13313 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13318 if ac_fn_c_try_link
"$LINENO"; then :
13319 ac_cv_sys_largefile_source
=1; break
13321 rm -f core conftest.err conftest.
$ac_objext \
13322 conftest
$ac_exeext conftest.
$ac_ext
13323 ac_cv_sys_largefile_source
=unknown
13327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
13328 $as_echo "$ac_cv_sys_largefile_source" >&6; }
13329 case $ac_cv_sys_largefile_source in #(
13332 cat >>confdefs.h
<<_ACEOF
13333 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13339 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13340 # in glibc 2.1.3, but that breaks too many other things.
13341 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13342 if test $ac_cv_sys_largefile_source != unknown
; then
13344 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
13349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
13350 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
13351 if test "${ac_cv_func_getpgrp_void+set}" = set; then :
13352 $as_echo_n "(cached) " >&6
13354 # Use it with a single arg.
13355 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13356 /* end confdefs.h. */
13357 $ac_includes_default
13366 if ac_fn_c_try_compile
"$LINENO"; then :
13367 ac_cv_func_getpgrp_void
=no
13369 ac_cv_func_getpgrp_void
=yes
13371 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
13375 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
13376 if test $ac_cv_func_getpgrp_void = yes; then
13378 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
13384 for ac_func
in grantpt
13386 ac_fn_c_check_func
"$LINENO" "grantpt" "ac_cv_func_grantpt"
13387 if test "x$ac_cv_func_grantpt" = x
""yes; then :
13388 cat >>confdefs.h
<<_ACEOF
13389 #define HAVE_GRANTPT 1
13396 # PTY-related GNU extensions.
13397 for ac_func
in getpt posix_openpt
13399 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13400 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13401 eval as_val
=\$
$as_ac_var
13402 if test "x$as_val" = x
""yes; then :
13403 cat >>confdefs.h
<<_ACEOF
13404 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13411 # Check this now, so that we will NOT find the above functions in ncurses.
13412 # That is because we have not set up to link ncurses in lib-src.
13413 # It's better to believe a function is not available
13414 # than to expect to find it in ncurses.
13415 # Also we need tputs and friends to be able to build at all.
13416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
13417 $as_echo_n "checking for library containing tputs... " >&6; }
13418 # Run a test program that contains a call to tputs, a call that is
13419 # never executed. This tests whether a pre-'main' dynamic linker
13420 # works with the library. It's too much trouble to actually call
13421 # tputs in the test program, due to portability hassles. When
13422 # cross-compiling, assume the test program will run if it links.
13424 # Maybe curses should be tried earlier?
13425 # See http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9736#35
13426 for tputs_library
in '' tinfo ncurses terminfo termcap curses
; do
13428 if test -z "$tputs_library"; then
13430 msg
='none required'
13432 LIBS_TERMCAP
=-l$tputs_library
13434 LIBS
="$LIBS_TERMCAP $LIBS"
13436 if test "$cross_compiling" = yes; then :
13437 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13438 /* end confdefs.h. */
13440 extern void tputs (const char *, int, int (*)(int));
13441 int main (int argc, char **argv)
13444 tputs (argv[0], 0, 0);
13449 if ac_fn_c_try_link
"$LINENO"; then :
13454 rm -f core conftest.err conftest.
$ac_objext \
13455 conftest
$ac_exeext conftest.
$ac_ext
13457 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13458 /* end confdefs.h. */
13460 extern void tputs (const char *, int, int (*)(int));
13461 int main (int argc, char **argv)
13464 tputs (argv[0], 0, 0);
13469 if ac_fn_c_try_run
"$LINENO"; then :
13474 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13475 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13479 if test "X$msg" != Xno
; then
13483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5
13484 $as_echo "$msg" >&6; }
13485 if test "X$msg" = Xno
; then
13486 as_fn_error
"The required function \`tputs' was not found in any library.
13487 The following libraries were tried (in order):
13488 libtinfo, libncurses, libterminfo, libtermcap, libcurses
13489 Please try installing whichever of these libraries is most appropriate
13490 for your system, together with its header files.
13491 For example, a libncurses-dev(el) or similar package." "$LINENO" 5
13494 ## Use termcap instead of terminfo?
13495 ## Only true for: freebsd < 40000, ms-w32, msdos, netbsd < 599002500.
13497 ## FIXME? In the cases below where we unconditionally set
13498 ## LIBS_TERMCAP="-lncurses", this overrides LIBS_TERMCAP = -ltinfo,
13499 ## if that was found above to have tputs.
13500 ## Should we use the gnu* logic everywhere?
13502 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
13503 ## The ncurses library has been moved out of the System framework in
13504 ## Mac OS X 10.2. So if configure detects it, set the command-line
13505 ## option to use it.
13506 darwin
) LIBS_TERMCAP
="-lncurses" ;;
13508 gnu
*) test -z "$LIBS_TERMCAP" && LIBS_TERMCAP
="-lncurses" ;;
13511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
13512 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
13513 if test "${emacs_cv_freebsd_terminfo+set}" = set; then :
13514 $as_echo_n "(cached) " >&6
13516 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13517 /* end confdefs.h. */
13518 #include <osreldate.h>
13522 #if __FreeBSD_version < 400000
13530 if ac_fn_c_try_link
"$LINENO"; then :
13531 emacs_cv_freebsd_terminfo
=yes
13533 emacs_cv_freebsd_terminfo
=no
13535 rm -f core conftest.err conftest.
$ac_objext \
13536 conftest
$ac_exeext conftest.
$ac_ext
13540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
13541 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
13543 if test $emacs_cv_freebsd_terminfo = yes; then
13544 LIBS_TERMCAP
="-lncurses"
13547 LIBS_TERMCAP
="-ltermcap"
13552 if test "x$LIBS_TERMCAP" != "x-lterminfo"; then
13554 LIBS_TERMCAP
="-ltermcap"
13558 openbsd
) LIBS_TERMCAP
="-lncurses" ;;
13560 ## hpux: Make sure we get select from libc rather than from libcurses
13561 ## because libcurses on HPUX 10.10 has a broken version of select.
13562 ## We used to use -lc -lcurses, but this may be cleaner.
13563 ## FIXME? But TERMINFO = yes on hpux (it used to be explicitly
13564 # set that way, now it uses the default). Isn't this a contradiction?
13565 hpux
*) LIBS_TERMCAP
="-ltermcap" ;;
13569 TERMCAP_OBJ
=tparam.o
13570 if test $TERMINFO = yes; then
13572 $as_echo "#define TERMINFO 1" >>confdefs.h
13574 TERMCAP_OBJ
=terminfo.o
13580 # Do we have res_init, for detecting changes in /etc/resolv.conf?
13581 # On Darwin, res_init appears not to be useful: see bug#562 and
13582 # http://lists.gnu.org/archive/html/emacs-devel/2007-11/msg01467.html
13585 if test $opsys != darwin
; then
13587 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13588 /* end confdefs.h. */
13589 #include <netinet/in.h>
13590 #include <arpa/nameser.h>
13591 #include <resolv.h>
13600 if ac_fn_c_try_link
"$LINENO"; then :
13605 rm -f core conftest.err conftest.
$ac_objext \
13606 conftest
$ac_exeext conftest.
$ac_ext
13607 if test "$have_res_init" = no
; then
13609 LIBS
="$LIBS -lresolv"
13610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
13611 $as_echo_n "checking for res_init with -lresolv... " >&6; }
13612 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13613 /* end confdefs.h. */
13614 #include <netinet/in.h>
13615 #include <arpa/nameser.h>
13616 #include <resolv.h>
13625 if ac_fn_c_try_link
"$LINENO"; then :
13630 rm -f core conftest.err conftest.
$ac_objext \
13631 conftest
$ac_exeext conftest.
$ac_ext
13632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
13633 $as_echo "$have_res_init" >&6; }
13634 if test "$have_res_init" = yes ; then
13640 if test "$have_res_init" = yes; then
13642 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
13646 # Do we need the Hesiod library to provide the support routines?
13648 if test "$with_hesiod" != no
; then
13649 # Don't set $LIBS here -- see comments above. FIXME which comments?
13650 ac_fn_c_check_func
"$LINENO" "res_send" "ac_cv_func_res_send"
13651 if test "x$ac_cv_func_res_send" = x
""yes; then :
13654 ac_fn_c_check_func
"$LINENO" "__res_send" "ac_cv_func___res_send"
13655 if test "x$ac_cv_func___res_send" = x
""yes; then :
13658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
13659 $as_echo_n "checking for res_send in -lresolv... " >&6; }
13660 if test "${ac_cv_lib_resolv_res_send+set}" = set; then :
13661 $as_echo_n "(cached) " >&6
13663 ac_check_lib_save_LIBS
=$LIBS
13664 LIBS
="-lresolv $LIBS"
13665 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13666 /* end confdefs.h. */
13668 /* Override any GCC internal prototype to avoid an error.
13669 Use char because int might match the return type of a GCC
13670 builtin and then its argument prototype would still apply. */
13678 return res_send ();
13683 if ac_fn_c_try_link
"$LINENO"; then :
13684 ac_cv_lib_resolv_res_send
=yes
13686 ac_cv_lib_resolv_res_send
=no
13688 rm -f core conftest.err conftest.
$ac_objext \
13689 conftest
$ac_exeext conftest.
$ac_ext
13690 LIBS
=$ac_check_lib_save_LIBS
13692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
13693 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
13694 if test "x$ac_cv_lib_resolv_res_send" = x
""yes; then :
13697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
13698 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
13699 if test "${ac_cv_lib_resolv___res_send+set}" = set; then :
13700 $as_echo_n "(cached) " >&6
13702 ac_check_lib_save_LIBS
=$LIBS
13703 LIBS
="-lresolv $LIBS"
13704 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13705 /* end confdefs.h. */
13707 /* Override any GCC internal prototype to avoid an error.
13708 Use char because int might match the return type of a GCC
13709 builtin and then its argument prototype would still apply. */
13713 char __res_send ();
13717 return __res_send ();
13722 if ac_fn_c_try_link
"$LINENO"; then :
13723 ac_cv_lib_resolv___res_send
=yes
13725 ac_cv_lib_resolv___res_send
=no
13727 rm -f core conftest.err conftest.
$ac_objext \
13728 conftest
$ac_exeext conftest.
$ac_ext
13729 LIBS
=$ac_check_lib_save_LIBS
13731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
13732 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
13733 if test "x$ac_cv_lib_resolv___res_send" = x
""yes; then :
13743 if test "$resolv" = yes ; then
13748 ac_fn_c_check_func
"$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
13749 if test "x$ac_cv_func_hes_getmailhost" = x
""yes; then :
13752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
13753 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
13754 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then :
13755 $as_echo_n "(cached) " >&6
13757 ac_check_lib_save_LIBS
=$LIBS
13758 LIBS
="-lhesiod $RESOLVLIB $LIBS"
13759 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13760 /* end confdefs.h. */
13762 /* Override any GCC internal prototype to avoid an error.
13763 Use char because int might match the return type of a GCC
13764 builtin and then its argument prototype would still apply. */
13768 char hes_getmailhost ();
13772 return hes_getmailhost ();
13777 if ac_fn_c_try_link
"$LINENO"; then :
13778 ac_cv_lib_hesiod_hes_getmailhost
=yes
13780 ac_cv_lib_hesiod_hes_getmailhost
=no
13782 rm -f core conftest.err conftest.
$ac_objext \
13783 conftest
$ac_exeext conftest.
$ac_ext
13784 LIBS
=$ac_check_lib_save_LIBS
13786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
13787 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
13788 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x
""yes; then :
13797 if test x
"$hesiod" = xyes
; then
13799 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
13806 # Do we need libresolv (due to res_init or Hesiod)?
13807 if test "$resolv" = yes && test $opsys != darwin
; then
13809 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
13817 # These tell us which Kerberos-related libraries to use.
13824 if test "${with_kerberos}" != no
; then
13825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
13826 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
13827 if test "${ac_cv_lib_com_err_com_err+set}" = set; then :
13828 $as_echo_n "(cached) " >&6
13830 ac_check_lib_save_LIBS
=$LIBS
13831 LIBS
="-lcom_err $LIBS"
13832 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13833 /* end confdefs.h. */
13835 /* Override any GCC internal prototype to avoid an error.
13836 Use char because int might match the return type of a GCC
13837 builtin and then its argument prototype would still apply. */
13850 if ac_fn_c_try_link
"$LINENO"; then :
13851 ac_cv_lib_com_err_com_err
=yes
13853 ac_cv_lib_com_err_com_err
=no
13855 rm -f core conftest.err conftest.
$ac_objext \
13856 conftest
$ac_exeext conftest.
$ac_ext
13857 LIBS
=$ac_check_lib_save_LIBS
13859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
13860 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
13861 if test "x$ac_cv_lib_com_err_com_err" = x
""yes; then :
13867 if test $have_com_err = yes; then
13868 COM_ERRLIB
=-lcom_err
13869 LIBS
="$COM_ERRLIB $LIBS"
13871 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
13874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
13875 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
13876 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then :
13877 $as_echo_n "(cached) " >&6
13879 ac_check_lib_save_LIBS
=$LIBS
13880 LIBS
="-lcrypto $LIBS"
13881 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13882 /* end confdefs.h. */
13884 /* Override any GCC internal prototype to avoid an error.
13885 Use char because int might match the return type of a GCC
13886 builtin and then its argument prototype would still apply. */
13890 char mit_des_cbc_encrypt ();
13894 return mit_des_cbc_encrypt ();
13899 if ac_fn_c_try_link
"$LINENO"; then :
13900 ac_cv_lib_crypto_mit_des_cbc_encrypt
=yes
13902 ac_cv_lib_crypto_mit_des_cbc_encrypt
=no
13904 rm -f core conftest.err conftest.
$ac_objext \
13905 conftest
$ac_exeext conftest.
$ac_ext
13906 LIBS
=$ac_check_lib_save_LIBS
13908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
13909 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
13910 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x
""yes; then :
13916 if test $have_crypto = yes; then
13918 LIBS
="$CRYPTOLIB $LIBS"
13920 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
13923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
13924 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
13925 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then :
13926 $as_echo_n "(cached) " >&6
13928 ac_check_lib_save_LIBS
=$LIBS
13929 LIBS
="-lk5crypto $LIBS"
13930 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13931 /* end confdefs.h. */
13933 /* Override any GCC internal prototype to avoid an error.
13934 Use char because int might match the return type of a GCC
13935 builtin and then its argument prototype would still apply. */
13939 char mit_des_cbc_encrypt ();
13943 return mit_des_cbc_encrypt ();
13948 if ac_fn_c_try_link
"$LINENO"; then :
13949 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=yes
13951 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=no
13953 rm -f core conftest.err conftest.
$ac_objext \
13954 conftest
$ac_exeext conftest.
$ac_ext
13955 LIBS
=$ac_check_lib_save_LIBS
13957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
13958 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
13959 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x
""yes; then :
13965 if test $have_k5crypto = yes; then
13966 CRYPTOLIB
=-lk5crypto
13967 LIBS
="$CRYPTOLIB $LIBS"
13969 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
13972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
13973 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
13974 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then :
13975 $as_echo_n "(cached) " >&6
13977 ac_check_lib_save_LIBS
=$LIBS
13978 LIBS
="-lkrb5 $LIBS"
13979 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13980 /* end confdefs.h. */
13982 /* Override any GCC internal prototype to avoid an error.
13983 Use char because int might match the return type of a GCC
13984 builtin and then its argument prototype would still apply. */
13988 char krb5_init_context ();
13992 return krb5_init_context ();
13997 if ac_fn_c_try_link
"$LINENO"; then :
13998 ac_cv_lib_krb5_krb5_init_context
=yes
14000 ac_cv_lib_krb5_krb5_init_context
=no
14002 rm -f core conftest.err conftest.
$ac_objext \
14003 conftest
$ac_exeext conftest.
$ac_ext
14004 LIBS
=$ac_check_lib_save_LIBS
14006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
14007 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
14008 if test "x$ac_cv_lib_krb5_krb5_init_context" = x
""yes; then :
14014 if test $have_krb5=yes; then
14016 LIBS
="$KRB5LIB $LIBS"
14018 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
14021 if test "${with_kerberos5}" = no
; then
14022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
14023 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
14024 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
14025 $as_echo_n "(cached) " >&6
14027 ac_check_lib_save_LIBS
=$LIBS
14028 LIBS
="-ldes425 $LIBS"
14029 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14030 /* end confdefs.h. */
14032 /* Override any GCC internal prototype to avoid an error.
14033 Use char because int might match the return type of a GCC
14034 builtin and then its argument prototype would still apply. */
14038 char des_cbc_encrypt ();
14042 return des_cbc_encrypt ();
14047 if ac_fn_c_try_link
"$LINENO"; then :
14048 ac_cv_lib_des425_des_cbc_encrypt
=yes
14050 ac_cv_lib_des425_des_cbc_encrypt
=no
14052 rm -f core conftest.err conftest.
$ac_objext \
14053 conftest
$ac_exeext conftest.
$ac_ext
14054 LIBS
=$ac_check_lib_save_LIBS
14056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
14057 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
14058 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x
""yes; then :
14064 if test $have_des425 = yes; then
14066 LIBS
="$DESLIB $LIBS"
14068 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
14071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
14072 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
14073 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
14074 $as_echo_n "(cached) " >&6
14076 ac_check_lib_save_LIBS
=$LIBS
14078 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14079 /* end confdefs.h. */
14081 /* Override any GCC internal prototype to avoid an error.
14082 Use char because int might match the return type of a GCC
14083 builtin and then its argument prototype would still apply. */
14087 char des_cbc_encrypt ();
14091 return des_cbc_encrypt ();
14096 if ac_fn_c_try_link
"$LINENO"; then :
14097 ac_cv_lib_des_des_cbc_encrypt
=yes
14099 ac_cv_lib_des_des_cbc_encrypt
=no
14101 rm -f core conftest.err conftest.
$ac_objext \
14102 conftest
$ac_exeext conftest.
$ac_ext
14103 LIBS
=$ac_check_lib_save_LIBS
14105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
14106 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
14107 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x
""yes; then :
14113 if test $have_des = yes; then
14115 LIBS
="$DESLIB $LIBS"
14117 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
14121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
14122 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
14123 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then :
14124 $as_echo_n "(cached) " >&6
14126 ac_check_lib_save_LIBS
=$LIBS
14127 LIBS
="-lkrb4 $LIBS"
14128 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14129 /* end confdefs.h. */
14131 /* Override any GCC internal prototype to avoid an error.
14132 Use char because int might match the return type of a GCC
14133 builtin and then its argument prototype would still apply. */
14137 char krb_get_cred ();
14141 return krb_get_cred ();
14146 if ac_fn_c_try_link
"$LINENO"; then :
14147 ac_cv_lib_krb4_krb_get_cred
=yes
14149 ac_cv_lib_krb4_krb_get_cred
=no
14151 rm -f core conftest.err conftest.
$ac_objext \
14152 conftest
$ac_exeext conftest.
$ac_ext
14153 LIBS
=$ac_check_lib_save_LIBS
14155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
14156 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
14157 if test "x$ac_cv_lib_krb4_krb_get_cred" = x
""yes; then :
14163 if test $have_krb4 = yes; then
14165 LIBS
="$KRB4LIB $LIBS"
14167 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
14170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
14171 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
14172 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then :
14173 $as_echo_n "(cached) " >&6
14175 ac_check_lib_save_LIBS
=$LIBS
14177 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14178 /* end confdefs.h. */
14180 /* Override any GCC internal prototype to avoid an error.
14181 Use char because int might match the return type of a GCC
14182 builtin and then its argument prototype would still apply. */
14186 char krb_get_cred ();
14190 return krb_get_cred ();
14195 if ac_fn_c_try_link
"$LINENO"; then :
14196 ac_cv_lib_krb_krb_get_cred
=yes
14198 ac_cv_lib_krb_krb_get_cred
=no
14200 rm -f core conftest.err conftest.
$ac_objext \
14201 conftest
$ac_exeext conftest.
$ac_ext
14202 LIBS
=$ac_check_lib_save_LIBS
14204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
14205 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
14206 if test "x$ac_cv_lib_krb_krb_get_cred" = x
""yes; then :
14212 if test $have_krb = yes; then
14214 LIBS
="$KRB4LIB $LIBS"
14216 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
14222 if test "${with_kerberos5}" != no
; then
14223 for ac_header
in krb5.h
14225 ac_fn_c_check_header_mongrel
"$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
14226 if test "x$ac_cv_header_krb5_h" = x
""yes; then :
14227 cat >>confdefs.h
<<_ACEOF
14228 #define HAVE_KRB5_H 1
14230 ac_fn_c_check_member
"$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
14232 if test "x$ac_cv_member_krb5_error_text" = x
""yes; then :
14234 cat >>confdefs.h
<<_ACEOF
14235 #define HAVE_KRB5_ERROR_TEXT 1
14240 ac_fn_c_check_member
"$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
14242 if test "x$ac_cv_member_krb5_error_e_text" = x
""yes; then :
14244 cat >>confdefs.h
<<_ACEOF
14245 #define HAVE_KRB5_ERROR_E_TEXT 1
14256 for ac_header
in des.h
14258 ac_fn_c_check_header_mongrel
"$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
14259 if test "x$ac_cv_header_des_h" = x
""yes; then :
14260 cat >>confdefs.h
<<_ACEOF
14261 #define HAVE_DES_H 1
14265 for ac_header
in kerberosIV
/des.h
14267 ac_fn_c_check_header_mongrel
"$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
14268 if test "x$ac_cv_header_kerberosIV_des_h" = x
""yes; then :
14269 cat >>confdefs.h
<<_ACEOF
14270 #define HAVE_KERBEROSIV_DES_H 1
14274 for ac_header
in kerberos
/des.h
14276 ac_fn_c_check_header_mongrel
"$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
14277 if test "x$ac_cv_header_kerberos_des_h" = x
""yes; then :
14278 cat >>confdefs.h
<<_ACEOF
14279 #define HAVE_KERBEROS_DES_H 1
14294 for ac_header
in krb.h
14296 ac_fn_c_check_header_mongrel
"$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
14297 if test "x$ac_cv_header_krb_h" = x
""yes; then :
14298 cat >>confdefs.h
<<_ACEOF
14299 #define HAVE_KRB_H 1
14303 for ac_header
in kerberosIV
/krb.h
14305 ac_fn_c_check_header_mongrel
"$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
14306 if test "x$ac_cv_header_kerberosIV_krb_h" = x
""yes; then :
14307 cat >>confdefs.h
<<_ACEOF
14308 #define HAVE_KERBEROSIV_KRB_H 1
14312 for ac_header
in kerberos
/krb.h
14314 ac_fn_c_check_header_mongrel
"$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
14315 if test "x$ac_cv_header_kerberos_krb_h" = x
""yes; then :
14316 cat >>confdefs.h
<<_ACEOF
14317 #define HAVE_KERBEROS_KRB_H 1
14333 for ac_header
in com_err.h
14335 ac_fn_c_check_header_mongrel
"$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
14336 if test "x$ac_cv_header_com_err_h" = x
""yes; then :
14337 cat >>confdefs.h
<<_ACEOF
14338 #define HAVE_COM_ERR_H 1
14356 for ac_func
in $ac_func_list
14358 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14359 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
14360 eval as_val
=\$
$as_ac_var
14361 if test "x$as_val" = x
""yes; then :
14362 cat >>confdefs.h
<<_ACEOF
14363 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
14373 $as_echo_n "checking whether localtime caches TZ... " >&6; }
14374 if test "${emacs_cv_localtime_cache+set}" = set; then :
14375 $as_echo_n "(cached) " >&6
14377 if test x
$ac_cv_func_tzset = xyes
; then
14378 if test "$cross_compiling" = yes; then :
14379 # If we have tzset, assume the worst when cross-compiling.
14380 emacs_cv_localtime_cache
=yes
14382 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14383 /* end confdefs.h. */
14385 char TZ_GMT0[] = "TZ=GMT0";
14386 char TZ_PST8[] = "TZ=PST8";
14389 time_t now = time ((time_t *) 0);
14390 int hour_GMT0, hour_unset;
14391 if (putenv (TZ_GMT0) != 0)
14393 hour_GMT0 = localtime (&now)->tm_hour;
14395 hour_unset = localtime (&now)->tm_hour;
14396 if (putenv (TZ_PST8) != 0)
14398 if (localtime (&now)->tm_hour == hour_GMT0)
14401 if (localtime (&now)->tm_hour != hour_unset)
14406 if ac_fn_c_try_run
"$LINENO"; then :
14407 emacs_cv_localtime_cache
=no
14409 emacs_cv_localtime_cache
=yes
14411 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14412 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14416 # If we lack tzset, report that localtime does not cache TZ,
14417 # since we can't invalidate the cache if we don't have tzset.
14418 emacs_cv_localtime_cache
=no
14421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
14422 $as_echo "$emacs_cv_localtime_cache" >&6; }
14423 if test $emacs_cv_localtime_cache = yes; then
14425 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
14430 ac_fn_c_check_func
"$LINENO" "socket" "ac_cv_func_socket"
14431 if test "x$ac_cv_func_socket" = x
""yes; then :
14437 if test $ok_so_far = yes; then
14438 ac_fn_c_check_header_mongrel
"$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
14439 if test "x$ac_cv_header_netinet_in_h" = x
""yes; then :
14447 if test $ok_so_far = yes; then
14448 ac_fn_c_check_header_mongrel
"$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
14449 if test "x$ac_cv_header_arpa_inet_h" = x
""yes; then :
14457 if test $ok_so_far = yes; then
14459 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
14463 if test -f /usr
/lpp
/X11
/bin
/smt.exp
; then
14465 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
14469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
14470 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
14471 if test -d /dev
/pts
&& ls -d /dev
/ptmx
> /dev
/null
2>&1 ; then
14472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14473 $as_echo "yes" >&6; }
14475 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
14478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14479 $as_echo "no" >&6; }
14482 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
14483 if test "x$ac_cv_type_pid_t" = x
""yes; then :
14487 cat >>confdefs.h
<<_ACEOF
14493 for ac_header
in vfork.h
14495 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
14496 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
14497 cat >>confdefs.h
<<_ACEOF
14498 #define HAVE_VFORK_H 1
14505 for ac_func
in fork vfork
14507 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14508 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
14509 eval as_val
=\$
$as_ac_var
14510 if test "x$as_val" = x
""yes; then :
14511 cat >>confdefs.h
<<_ACEOF
14512 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14518 if test "x$ac_cv_func_fork" = xyes
; then
14519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
14520 $as_echo_n "checking for working fork... " >&6; }
14521 if test "${ac_cv_func_fork_works+set}" = set; then :
14522 $as_echo_n "(cached) " >&6
14524 if test "$cross_compiling" = yes; then :
14525 ac_cv_func_fork_works
=cross
14527 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14528 /* end confdefs.h. */
14529 $ac_includes_default
14534 /* By Ruediger Kuhlmann. */
14535 return fork () < 0;
14541 if ac_fn_c_try_run
"$LINENO"; then :
14542 ac_cv_func_fork_works
=yes
14544 ac_cv_func_fork_works
=no
14546 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14547 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
14552 $as_echo "$ac_cv_func_fork_works" >&6; }
14555 ac_cv_func_fork_works
=$ac_cv_func_fork
14557 if test "x$ac_cv_func_fork_works" = xcross
; then
14559 *-*-amigaos* |
*-*-msdosdjgpp*)
14560 # Override, as these systems have only a dummy fork() stub
14561 ac_cv_func_fork_works
=no
14564 ac_cv_func_fork_works
=yes
14567 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
14568 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
14570 ac_cv_func_vfork_works
=$ac_cv_func_vfork
14571 if test "x$ac_cv_func_vfork" = xyes
; then
14572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
14573 $as_echo_n "checking for working vfork... " >&6; }
14574 if test "${ac_cv_func_vfork_works+set}" = set; then :
14575 $as_echo_n "(cached) " >&6
14577 if test "$cross_compiling" = yes; then :
14578 ac_cv_func_vfork_works
=cross
14580 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14581 /* end confdefs.h. */
14582 /* Thanks to Paul Eggert for this test. */
14583 $ac_includes_default
14584 #include <sys/wait.h>
14585 #ifdef HAVE_VFORK_H
14586 # include <vfork.h>
14588 /* On some sparc systems, changes by the child to local and incoming
14589 argument registers are propagated back to the parent. The compiler
14590 is told about this with #include <vfork.h>, but some compilers
14591 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
14592 static variable whose address is put into a register that is
14593 clobbered by the vfork. */
14596 sparc_address_test (int arg)
14598 sparc_address_test (arg) int arg;
14601 static pid_t child;
14619 pid_t parent = getpid ();
14622 sparc_address_test (0);
14627 /* Here is another test for sparc vfork register problems. This
14628 test uses lots of local variables, at least as many local
14629 variables as main has allocated so far including compiler
14630 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
14631 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
14632 reuse the register of parent for one of the local variables,
14633 since it will think that parent can't possibly be used any more
14634 in this routine. Assigning to the local variable will thus
14635 munge parent in the parent process. */
14637 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
14638 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
14639 /* Convince the compiler that p..p7 are live; otherwise, it might
14640 use the same hardware register for all 8 local variables. */
14641 if (p != p1 || p != p2 || p != p3 || p != p4
14642 || p != p5 || p != p6 || p != p7)
14645 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
14646 from child file descriptors. If the child closes a descriptor
14647 before it execs or exits, this munges the parent's descriptor
14648 as well. Test for this by closing stdout in the child. */
14649 _exit(close(fileno(stdout)) != 0);
14654 while (wait(&status) != child)
14657 /* Was there some problem with vforking? */
14660 /* Did the child fail? (This shouldn't happen.) */
14663 /* Did the vfork/compiler bug occur? */
14664 || parent != getpid()
14666 /* Did the file descriptor bug occur? */
14667 || fstat(fileno(stdout), &st) != 0
14672 if ac_fn_c_try_run
"$LINENO"; then :
14673 ac_cv_func_vfork_works
=yes
14675 ac_cv_func_vfork_works
=no
14677 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14678 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
14683 $as_echo "$ac_cv_func_vfork_works" >&6; }
14686 if test "x$ac_cv_func_fork_works" = xcross
; then
14687 ac_cv_func_vfork_works
=$ac_cv_func_vfork
14688 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
14689 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
14692 if test "x$ac_cv_func_vfork_works" = xyes
; then
14694 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
14698 $as_echo "#define vfork fork" >>confdefs.h
14701 if test "x$ac_cv_func_fork_works" = xyes
; then
14703 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
14708 for ac_func
in snprintf
14710 ac_fn_c_check_func
"$LINENO" "snprintf" "ac_cv_func_snprintf"
14711 if test "x$ac_cv_func_snprintf" = x
""yes; then :
14712 cat >>confdefs.h
<<_ACEOF
14713 #define HAVE_SNPRINTF 1
14720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
14721 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
14722 if test "${emacs_cv_langinfo_codeset+set}" = set; then :
14723 $as_echo_n "(cached) " >&6
14725 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14726 /* end confdefs.h. */
14727 #include <langinfo.h>
14731 char* cs = nl_langinfo(CODESET);
14736 if ac_fn_c_try_link
"$LINENO"; then :
14737 emacs_cv_langinfo_codeset
=yes
14739 emacs_cv_langinfo_codeset
=no
14741 rm -f core conftest.err conftest.
$ac_objext \
14742 conftest
$ac_exeext conftest.
$ac_ext
14745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
14746 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
14747 if test $emacs_cv_langinfo_codeset = yes; then
14749 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
14753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
14754 $as_echo_n "checking for mbstate_t... " >&6; }
14755 if test "${ac_cv_type_mbstate_t+set}" = set; then :
14756 $as_echo_n "(cached) " >&6
14758 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14759 /* end confdefs.h. */
14760 $ac_includes_default
14761 # include <wchar.h>
14765 mbstate_t x; return sizeof x;
14770 if ac_fn_c_try_compile
"$LINENO"; then :
14771 ac_cv_type_mbstate_t
=yes
14773 ac_cv_type_mbstate_t
=no
14775 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
14778 $as_echo "$ac_cv_type_mbstate_t" >&6; }
14779 if test $ac_cv_type_mbstate_t = yes; then
14781 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
14785 $as_echo "#define mbstate_t int" >>confdefs.h
14789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
14790 $as_echo_n "checking for C restricted array declarations... " >&6; }
14791 if test "${emacs_cv_c_restrict_arr+set}" = set; then :
14792 $as_echo_n "(cached) " >&6
14794 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14795 /* end confdefs.h. */
14796 void fred (int x[__restrict]);
14805 if ac_fn_c_try_compile
"$LINENO"; then :
14806 emacs_cv_c_restrict_arr
=yes
14808 emacs_cv_c_restrict_arr
=no
14810 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
14813 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
14814 if test "$emacs_cv_c_restrict_arr" = yes; then
14816 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
14822 $as_echo "#define AMPERSAND_FULL_NAME 1" >>confdefs.h
14826 $as_echo "#define CLASH_DETECTION 1" >>confdefs.h
14829 ## Note: PTYs are broken on darwin <6. Use at your own risk.
14831 $as_echo "#define HAVE_PTYS 1" >>confdefs.h
14835 $as_echo "#define HAVE_SOCKETS 1" >>confdefs.h
14841 $as_echo "#define NULL_DEVICE \"/dev/null\"" >>confdefs.h
14845 $as_echo "#define SEPCHAR ':'" >>confdefs.h
14849 $as_echo "#define subprocesses 1" >>confdefs.h
14853 $as_echo "#define USER_FULL_NAME pw->pw_gecos" >>confdefs.h
14858 $as_echo "#define DIRECTORY_SEP '/'" >>confdefs.h
14864 $as_echo "#define IS_DEVICE_SEP(_c_) 0" >>confdefs.h
14868 $as_echo "#define IS_DIRECTORY_SEP(_c_) ((_c_) == DIRECTORY_SEP)" >>confdefs.h
14872 $as_echo "#define IS_ANY_SEP(_c_) (IS_DIRECTORY_SEP (_c_))" >>confdefs.h
14880 if test x
$ac_cv_lib_Xmu_XmuConvertStandardSelection != xyes
; then
14881 $as_echo "#define NO_EDITRES 1" >>confdefs.h
14887 $as_echo "#define NO_EDITRES 1" >>confdefs.h
14894 darwin | gnu | hpux
* |
*bsd
)
14896 $as_echo "#define NO_TERMIO 1" >>confdefs.h
14900 irix6-5 | sol2
* | unixware
)
14902 $as_echo "#define NSIG_MINIMUM 32" >>confdefs.h
14909 hpux
* | irix6-5 | openbsd | sol2
* | unixware
)
14911 $as_echo "#define BROKEN_SIGIO 1" >>confdefs.h
14917 $as_echo "#define BROKEN_FIONREAD 1" >>confdefs.h
14920 $as_echo "#define BROKEN_SIGAIO 1" >>confdefs.h
14923 $as_echo "#define BROKEN_SIGPOLL 1" >>confdefs.h
14926 $as_echo "#define BROKEN_SIGPTY 1" >>confdefs.h
14930 $as_echo "#define BROKEN_GET_CURRENT_DIR_NAME 1" >>confdefs.h
14936 $as_echo "#define BROKEN_PTY_READ_AFTER_EAGAIN 1" >>confdefs.h
14944 $as_echo "#define HAVE_PROCFS 1" >>confdefs.h
14950 darwin | freebsd | netbsd | openbsd
)
14952 $as_echo "#define DONT_REOPEN_PTY 1" >>confdefs.h
14958 netbsd | openbsd
) sound_device
="/dev/audio" ;;
14959 *) sound_device
="/dev/dsp" ;;
14963 cat >>confdefs.h
<<_ACEOF
14964 #define DEFAULT_SOUND_DEVICE "$sound_device"
14970 darwin | gnu-linux | gnu-kfreebsd
)
14972 $as_echo "#define INTERRUPT_INPUT 1" >>confdefs.h
14979 cygwin|gnu|gnu-linux|gnu-kfreebsd|irix6-5|freebsd|netbsd|openbsd
)
14981 $as_echo "#define NARROWPROTO 1" >>confdefs.h
14995 $as_echo "#define PTY_ITERATION int c; for (c = 0; !c ; c++)" >>confdefs.h
14997 $as_echo "#define PTY_NAME_SPRINTF strcpy (pty_name, \"/dev/ptc\");" >>confdefs.h
14999 $as_echo "#define PTY_TTY_NAME_SPRINTF strcpy (pty_name, ttyname (fd));" >>confdefs.h
15004 $as_echo "#define PTY_ITERATION int i; for (i = 0; i < 1; i++)" >>confdefs.h
15006 $as_echo "#define PTY_OPEN do { int dummy; sigset_t blocked, procmask; sigemptyset (&blocked); sigaddset (&blocked, SIGCHLD); pthread_sigmask (SIG_BLOCK, &blocked, &procmask); if (-1 == openpty (&fd, &dummy, pty_name, 0, 0)) fd = -1; pthread_sigmask (SIG_SETMASK, &procmask, 0); if (fd >= 0) emacs_close (dummy); } while (0)" >>confdefs.h
15008 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
15010 $as_echo "#define PTY_TTY_NAME_SPRINTF /**/" >>confdefs.h
15015 $as_echo "#define PTY_ITERATION int i; for (i = 0; i < 1; i++)" >>confdefs.h
15017 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
15019 $as_echo "#define PTY_OPEN do { int slave; if (openpty (&fd, &slave, pty_name, NULL, NULL) == -1) fd = -1; else emacs_close (slave); } while (0)" >>confdefs.h
15021 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
15023 $as_echo "#define PTY_TTY_NAME_SPRINTF /**/" >>confdefs.h
15028 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
15032 gnu-linux | gnu-kfreebsd | freebsd | netbsd
)
15033 if test "x$ac_cv_func_grantpt" = xyes
; then
15035 $as_echo "#define UNIX98_PTYS 1" >>confdefs.h
15037 $as_echo "#define PTY_ITERATION int i; for (i = 0; i < 1; i++)" >>confdefs.h
15039 $as_echo "#define PTY_TTY_NAME_SPRINTF { char *ptyname = 0; sigset_t blocked; sigemptyset (&blocked); sigaddset (&blocked, SIGCHLD); pthread_sigmask (SIG_BLOCK, &blocked, 0); if (grantpt (fd) != -1 && unlockpt (fd) != -1) ptyname = ptsname(fd); pthread_sigmask (SIG_UNBLOCK, &blocked, 0); if (!ptyname) { close (fd); return -1; } snprintf (pty_name, sizeof pty_name, \"%s\", ptyname); }" >>confdefs.h
15041 if test "x$ac_cv_func_posix_openpt" = xyes
; then
15042 $as_echo "#define PTY_OPEN fd = posix_openpt (O_RDWR | O_NOCTTY)" >>confdefs.h
15044 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
15046 elif test "x$ac_cv_func_getpt" = xyes
; then
15047 $as_echo "#define PTY_OPEN fd = getpt ()" >>confdefs.h
15049 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
15052 $as_echo "#define PTY_NAME_SPRINTF strcpy (pty_name, \"/dev/ptmx\");" >>confdefs.h
15056 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
15062 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
15064 $as_echo "#define PTY_NAME_SPRINTF sprintf (pty_name, \"/dev/ptym/pty%c%x\", c, i);" >>confdefs.h
15066 $as_echo "#define PTY_TTY_NAME_SPRINTF sprintf (pty_name, \"/dev/pty/tty%c%x\", c, i);" >>confdefs.h
15071 $as_echo "#define PTY_ITERATION /**/" >>confdefs.h
15073 $as_echo "#define FIRST_PTY_LETTER 'q'" >>confdefs.h
15075 $as_echo "#define PTY_OPEN { struct sigaction ocstat, cstat; struct stat stb; char * name; sigemptyset(&cstat.sa_mask); cstat.sa_handler = SIG_DFL; cstat.sa_flags = 0; sigaction(SIGCLD, &cstat, &ocstat); name = _getpty (&fd, O_RDWR | O_NDELAY, 0600, 0); sigaction(SIGCLD, &ocstat, (struct sigaction *)0); if (name == 0) return -1; if (fd < 0) return -1; if (fstat (fd, &stb) < 0) return -1; strcpy (pty_name, name); }" >>confdefs.h
15077 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
15079 $as_echo "#define PTY_TTY_NAME_SPRINTF /**/" >>confdefs.h
15084 $as_echo "#define PTY_TTY_NAME_SPRINTF { char *ptsname (int), *ptyname; int grantpt_result; sigset_t blocked; sigemptyset (&blocked); sigaddset (&blocked, SIGCLD); pthread_sigmask (SIG_BLOCK, &blocked, 0); grantpt_result = grantpt (fd); pthread_sigmask (SIG_UNBLOCK, &blocked, 0); if (grantpt_result == -1 || unlockpt (fd) == -1 || !(ptyname = ptsname (fd))) { emacs_close (fd); return -1; } snprintf (pty_name, sizeof pty_name, \"%s\", ptyname); }" >>confdefs.h
15089 $as_echo "#define PTY_TTY_NAME_SPRINTF { char *ptsname (int), *ptyname; int grantpt_result; sigset_t blocked; sigemptyset (&blocked); sigaddset (&blocked, SIGCLD); pthread_sigmask (SIG_BLOCK, &blocked, 0); grantpt_result = grantpt (fd); pthread_sigmask (SIG_UNBLOCK, &blocked, 0); if (grantpt_result == -1) fatal(\"could not grant slave pty\"); if (unlockpt(fd) == -1) fatal(\"could not unlock slave pty\"); if (!(ptyname = ptsname(fd))) fatal (\"could not enable slave pty\"); snprintf (pty_name, sizeof pty_name, \"%s\", ptyname); }" >>confdefs.h
15097 $as_echo "#define FIRST_PTY_LETTER 'z'" >>confdefs.h
15099 $as_echo "#define PTY_NAME_SPRINTF strcpy (pty_name, \"/dev/ptmx\");" >>confdefs.h
15102 $as_echo "#define SETUP_SLAVE_PTY if (ioctl (xforkin, I_PUSH, \"ptem\") == -1) fatal (\"ioctl I_PUSH ptem\"); if (ioctl (xforkin, I_PUSH, \"ldterm\") == -1) fatal (\"ioctl I_PUSH ldterm\"); if (ioctl (xforkin, I_PUSH, \"ttcompat\") == -1) fatal (\"ioctl I_PUSH ttcompat\");" >>confdefs.h
15111 aix4-2 | cygwin | gnu | irix6-5 | freebsd | netbsd | openbsd
)
15112 $as_echo "#define SIGNALS_VIA_CHARACTERS 1" >>confdefs.h
15116 gnu-linux | gnu-kfreebsd
)
15118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signals via characters" >&5
15119 $as_echo_n "checking for signals via characters... " >&6; }
15120 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15121 /* end confdefs.h. */
15123 #include <linux/version.h>
15124 #if LINUX_VERSION_CODE < 0x20400
15125 # error "Linux version too old"
15136 if ac_fn_c_try_cpp
"$LINENO"; then :
15137 emacs_signals_via_chars
=yes
15139 emacs_signals_via_chars
=no
15141 rm -f conftest.err conftest.
$ac_ext
15143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_signals_via_chars" >&5
15144 $as_echo "$emacs_signals_via_chars" >&6; }
15145 test $emacs_signals_via_chars = yes && $as_echo "#define SIGNALS_VIA_CHARACTERS 1" >>confdefs.h
15153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C library" >&5
15154 $as_echo_n "checking whether we are using the GNU C library... " >&6; }
15155 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15156 /* end confdefs.h. */
15158 #include <features.h>
15159 #ifndef __GNU_LIBRARY__
15160 # error "this is not the GNU C library"
15171 if ac_fn_c_try_cpp
"$LINENO"; then :
15176 rm -f conftest.err conftest.
$ac_ext
15177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_glibc" >&5
15178 $as_echo "$emacs_glibc" >&6; }
15180 if test $emacs_glibc = yes; then
15182 emacs_pending_output
=unknown
15185 gnu | gnu-linux | gnu-kfreebsd
)
15186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of pending output formalism" >&5
15187 $as_echo_n "checking for style of pending output formalism... " >&6; }
15188 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15189 /* end confdefs.h. */
15192 #if !defined (_IO_STDIO_H) && !defined (_STDIO_USES_IOSTREAM)
15193 # error "stdio definitions not found"
15204 if ac_fn_c_try_cpp
"$LINENO"; then :
15205 emacs_pending_output
=new
15207 rm -f conftest.err conftest.
$ac_ext
15209 if test $emacs_pending_output = unknown
; then
15211 gnu-linux | gnu-kfreebsd
)
15212 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15213 /* end confdefs.h. */
15217 # error "not using uclibc"
15228 if ac_fn_c_try_cpp
"$LINENO"; then :
15229 emacs_pending_output
=uclibc
15231 emacs_pending_output
=old
15233 rm -f conftest.err conftest.
$ac_ext
15238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_pending_output" >&5
15239 $as_echo "$emacs_pending_output" >&6; }
15241 case $emacs_pending_output in
15243 $as_echo "#define PENDING_OUTPUT_COUNT(FILE) ((FILE)->_IO_write_ptr - (FILE)->_IO_write_base)" >>confdefs.h
15247 $as_echo "#define PENDING_OUTPUT_COUNT(FILE) ((FILE)->__bufpos - (FILE)->__bufstart)" >>confdefs.h
15251 $as_echo "#define PENDING_OUTPUT_COUNT(FILE) ((FILE)->_pptr - (FILE)->_pbase)" >>confdefs.h
15257 if test $emacs_pending_output = unknown
; then
15258 $as_echo "#define PENDING_OUTPUT_COUNT(FILE) ((FILE)->__bufp - (FILE)->__buffer)" >>confdefs.h
15264 cygwin | darwin | freebsd | netbsd | openbsd
)
15265 $as_echo "#define PENDING_OUTPUT_COUNT(FILE) ((FILE)->_p - (FILE)->_bf._base)" >>confdefs.h
15270 $as_echo "#define PENDING_OUTPUT_COUNT(FILE) ((FILE)->__ptr - (FILE)->__base)" >>confdefs.h
15275 if test x
$ac_cv_header_stdio_ext_h = xyes
&& \
15276 test x
$ac_cv_func___fpending = xyes
; then
15277 $as_echo "#define PENDING_OUTPUT_COUNT(FILE) __fpending (FILE)" >>confdefs.h
15280 $as_echo "#define DISPNEW_NEEDS_STDIO_EXT 1" >>confdefs.h
15283 $as_echo "#define PENDING_OUTPUT_COUNT(FILE) ((FILE)->_ptr - (FILE)->_base)" >>confdefs.h
15295 $as_echo "#define DATA_START ({ extern int data_start; (char *) &data_start; })" >>confdefs.h
15300 $as_echo "#define DATA_START 0x40000000" >>confdefs.h
15302 $as_echo "#define DATA_SEG_BITS 0x40000000" >>confdefs.h
15306 $as_echo "#define DATA_START 0x10000000" >>confdefs.h
15308 $as_echo "#define DATA_SEG_BITS 0x10000000" >>confdefs.h
15318 darwin
) $as_echo "#define TAB3 OXTABS" >>confdefs.h
15321 gnu | freebsd | netbsd | openbsd
)
15323 $as_echo "#define TABDLY OXTABS" >>confdefs.h
15325 $as_echo "#define TAB3 OXTABS" >>confdefs.h
15329 gnu-linux | gnu-kfreebsd
)
15330 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15331 /* end confdefs.h. */
15345 if ac_fn_c_try_cpp
"$LINENO"; then :
15346 $as_echo "#define ULIMIT_BREAK_VALUE (32*1024*1024)" >>confdefs.h
15349 rm -f conftest.err conftest.
$ac_ext
15351 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15352 /* end confdefs.h. */
15366 if ac_fn_c_try_cpp
"$LINENO"; then :
15368 $as_echo "#define GC_MARK_SECONDARY_STACK() do { extern void *__libc_ia64_register_backing_store_base; __builtin_ia64_flushrs (); mark_memory (__libc_ia64_register_backing_store_base, __builtin_ia64_bsp ());} while (0)" >>confdefs.h
15371 rm -f conftest.err conftest.
$ac_ext
15376 $as_echo "#define RUN_TIME_REMAP 1" >>confdefs.h
15381 $as_echo "#define ULIMIT_BREAK_VALUE 0x14000000" >>confdefs.h
15393 aix4-2 | hpux
* | unixware
)
15394 $as_echo "#define GC_MARK_STACK GC_USE_GCPROS_AS_BEFORE" >>confdefs.h
15398 gnu-linux | gnu-kfreebsd
)
15399 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15400 /* end confdefs.h. */
15402 #if defined __i386__ || defined __sparc__ || defined __mc68000__ \
15403 || defined __alpha__ || defined __mips__ || defined __s390__ \
15404 || defined __arm__ || defined __powerpc__ || defined __amd64__ \
15405 || defined __ia64__ || defined __sh__
15408 # error "setjmp not known to work on this arch"
15419 if ac_fn_c_try_cpp
"$LINENO"; then :
15420 $as_echo "#define GC_SETJMP_WORKS 1" >>confdefs.h
15423 $as_echo "#define GC_MARK_STACK GC_USE_GCPROS_AS_BEFORE" >>confdefs.h
15426 rm -f conftest.err conftest.
$ac_ext
15431 if test x
$GCC = xyes
; then
15432 $as_echo "#define GC_SETJMP_WORKS 1" >>confdefs.h
15436 freebsd | netbsd | openbsd | irix6-5 | sol2
* )
15437 $as_echo "#define GC_SETJMP_WORKS 1" >>confdefs.h
15442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _setjmp" >&5
15443 $as_echo_n "checking for _setjmp... " >&6; }
15444 if test "${emacs_cv_func__setjmp+set}" = set; then :
15445 $as_echo_n "(cached) " >&6
15447 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15448 /* end confdefs.h. */
15449 #include <setjmp.h>
15461 if ac_fn_c_try_link
"$LINENO"; then :
15462 emacs_cv_func__setjmp
=yes
15464 emacs_cv_func__setjmp
=no
15466 rm -f core conftest.err conftest.
$ac_objext \
15467 conftest
$ac_exeext conftest.
$ac_ext
15469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func__setjmp" >&5
15470 $as_echo "$emacs_cv_func__setjmp" >&6; }
15471 if test $emacs_cv_func__setjmp = no
; then
15473 $as_echo "#define _setjmp setjmp" >>confdefs.h
15476 $as_echo "#define _longjmp longjmp" >>confdefs.h
15483 $as_echo "#define TIOCSIGSEND TIOCSIGNAL" >>confdefs.h
15492 $as_echo "#define XOS_NEEDS_TIME_H 1" >>confdefs.h
15508 $as_echo "#define USG /**/" >>confdefs.h
15510 $as_echo "#define USG5 /**/" >>confdefs.h
15512 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15513 /* end confdefs.h. */
15516 # error "_AIX not defined"
15527 if ac_fn_c_try_cpp
"$LINENO"; then :
15531 $as_echo "#define _AIX /**/" >>confdefs.h
15534 rm -f conftest.err conftest.
$ac_ext
15539 $as_echo "#define CYGWIN 1" >>confdefs.h
15544 $as_echo "#define BSD4_2 /**/" >>confdefs.h
15546 $as_echo "#define BSD_SYSTEM /**/" >>confdefs.h
15549 $as_echo "#define DARWIN_OS /**/" >>confdefs.h
15554 $as_echo "#define BSD4_2 /**/" >>confdefs.h
15557 $as_echo "#define BSD_SYSTEM_AHB 1" >>confdefs.h
15561 gnu | netbsd | openbsd
)
15562 $as_echo "#define BSD4_2 /**/" >>confdefs.h
15564 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15565 /* end confdefs.h. */
15568 # error "BSD_SYSTEM not defined"
15579 if ac_fn_c_try_cpp
"$LINENO"; then :
15582 $as_echo "#define BSD_SYSTEM 43" >>confdefs.h
15585 rm -f conftest.err conftest.
$ac_ext
15588 gnu-linux | gnu-kfreebsd
)
15589 $as_echo "#define USG /**/" >>confdefs.h
15592 $as_echo "#define GNU_LINUX /**/" >>confdefs.h
15597 $as_echo "#define USG /**/" >>confdefs.h
15599 $as_echo "#define USG5 /**/" >>confdefs.h
15602 $as_echo "#define HPUX /**/" >>confdefs.h
15607 $as_echo "#define USG /**/" >>confdefs.h
15609 $as_echo "#define USG5 /**/" >>confdefs.h
15611 $as_echo "#define USG5_4 /**/" >>confdefs.h
15614 $as_echo "#define IRIX6_5 /**/" >>confdefs.h
15619 $as_echo "#define USG /**/" >>confdefs.h
15621 $as_echo "#define USG5 /**/" >>confdefs.h
15623 $as_echo "#define USG5_4 /**/" >>confdefs.h
15626 $as_echo "#define SOLARIS2 /**/" >>confdefs.h
15631 $as_echo "#define USG /**/" >>confdefs.h
15633 $as_echo "#define USG5 /**/" >>confdefs.h
15635 $as_echo "#define USG5_4 /**/" >>confdefs.h
15644 $as_echo "#define G_SLICE_ALWAYS_MALLOC 1" >>confdefs.h
15650 $as_echo "#define BROKEN_SA_RESTART 1" >>confdefs.h
15653 $as_echo "#define USG_SUBTTY_WORKS 1" >>confdefs.h
15659 $as_echo "#define PREFER_VSUSP 1" >>confdefs.h
15662 $as_echo "#define SETPGRP_RELEASES_CTTY 1" >>confdefs.h
15668 $as_echo "#define _STRUCTURED_PROC 1" >>confdefs.h
15673 # Set up the CFLAGS for real compilation, so we can substitute it.
15674 CFLAGS
="$REAL_CFLAGS"
15675 CPPFLAGS
="$REAL_CPPFLAGS"
15677 ## Hack to detect a buggy GCC version.
15678 if test "x$GCC" = xyes \
15679 && test x
"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
15680 && test x
"`echo $CFLAGS | grep '\-O[23]'`" != x \
15681 && test x
"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x
; then
15682 as_fn_error
"GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
15685 version
=$PACKAGE_VERSION
15687 ### Specify what sort of things we'll be editing into Makefile and config.h.
15688 ### Use configuration here uncanonicalized to avoid exceeding size limits.
15714 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
15715 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
15716 ## end of LIBX_BASE, but nothing ever set it.
15721 ## Used in lwlib/Makefile.in.
15730 if test -n "${term_header}"; then
15732 cat >>confdefs.h
<<_ACEOF
15733 #define TERM_HEADER "${term_header}"
15739 cat >>confdefs.h
<<_ACEOF
15740 #define EMACS_CONFIGURATION "${canonical}"
15744 cat >>confdefs.h
<<_ACEOF
15745 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
15753 if test "${HAVE_X_WINDOWS}" = "yes" ; then
15755 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
15758 XOBJ
="xterm.o xfns.o xselect.o xrdb.o xsmfns.o xsettings.o xgselect.o"
15760 if test "$HAVE_XFT" = "yes"; then
15761 FONT_OBJ
="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
15762 elif test "$HAVE_FREETYPE" = "yes"; then
15763 FONT_OBJ
="$FONT_OBJ ftfont.o ftxfont.o"
15773 if test "${USE_X_TOOLKIT}" != "none" ; then
15774 WIDGET_OBJ
=widget.o
15776 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
15778 if test "${USE_X_TOOLKIT}" = "LUCID"; then
15780 $as_echo "#define USE_LUCID 1" >>confdefs.h
15782 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
15784 $as_echo "#define USE_MOTIF 1" >>confdefs.h
15789 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
15790 MOTIF_LIBW
="$MOTIF_LIBW -lXpm"
15794 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
15795 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
15796 MOTIF_LIBW
="MOTIF_LIBW -lXimp"
15800 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
15801 MOTIF_LIBW
="$MOTIF_LIBW -li18n"
15804 MOTIF_LIBW
="$MOTIF_LIBW $LIBXP"
15810 case "$USE_X_TOOLKIT" in
15811 MOTIF
) TOOLKIT_LIBW
="$MOTIF_LIBW" ;;
15812 LUCID
) TOOLKIT_LIBW
="$LUCID_LIBW" ;;
15813 none
) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW
="$GTK_LIBS" ;;
15817 if test "$USE_X_TOOLKIT" = "none"; then
15818 LIBXT_OTHER
="\$(LIBXSM)"
15819 OLDXMENU_TARGET
="really-oldXMenu"
15821 LIBXT_OTHER
="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
15822 OLDXMENU_TARGET
="really-lwlib"
15826 ## The X Menu stuff is present in the X10 distribution, but missing
15827 ## from X11. If we have X10, just use the installed library;
15828 ## otherwise, use our own copy.
15829 if test "${HAVE_X11}" = "yes" ; then
15831 $as_echo "#define HAVE_X11 1" >>confdefs.h
15834 if test "$USE_X_TOOLKIT" = "none"; then
15835 OLDXMENU
="\${oldXMenudir}/libXMenu11.a"
15837 OLDXMENU
="\${lwlibdir}/liblw.a"
15839 LIBXMENU
="\$(OLDXMENU)"
15840 LIBX_OTHER
="\$(LIBXT) \$(LIBX_EXTRA)"
15841 OLDXMENU_DEPS
="\${OLDXMENU} ../src/\${OLDXMENU}"
15843 ## For a syntactically valid Makefile; not actually used for anything.
15844 ## See comments in src/Makefile.in.
15846 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
15847 if test "${HAVE_X_WINDOWS}" = "yes"; then
15856 if test "$HAVE_GTK" = "yes" ||
test "$HAVE_MENUS" != "yes"; then
15869 if test "${HAVE_MENUS}" = "yes" ; then
15871 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
15875 if test "${GNU_MALLOC}" = "yes" ; then
15877 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
15882 if test "${REL_ALLOC}" = "yes" ; then
15884 $as_echo "#define REL_ALLOC 1" >>confdefs.h
15887 test "$system_malloc" != "yes" && RALLOC_OBJ
=ralloc.o
15891 if test "$opsys" = "cygwin"; then
15892 CYGWIN_OBJ
="sheap.o"
15893 ## Cygwin differs because of its unexec().
15895 POST_ALLOC_OBJ
=lastfile.o
15898 PRE_ALLOC_OBJ
=lastfile.o
15905 # Configure gnulib. Although this does not affect CFLAGS or LIBS permanently.
15906 # it temporarily reverts them to their pre-pkg-config values,
15907 # because gnulib needs to work with both src (which uses the
15908 # pkg-config stuff) and lib-src (which does not). For example, gnulib
15909 # may need to determine whether LIB_CLOCK_GETTIME should contain -lrt,
15910 # and it therefore needs to run in an environment where LIBS does not
15911 # already contain -lrt merely because 'pkg-config --libs' printed '-lrt'
15912 # for some package unrelated to lib-src.
15913 SAVE_CFLAGS
=$CFLAGS
15915 CFLAGS
=$pre_PKG_CONFIG_CFLAGS
15916 LIBS
="$LIB_PTHREAD $pre_PKG_CONFIG_LIBS"
15928 LIBC_FATAL_STDERR_
=1
15929 export LIBC_FATAL_STDERR_
15931 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15932 # for constant arguments. Useless!
15933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
15934 $as_echo_n "checking for working alloca.h... " >&6; }
15935 if test "${ac_cv_working_alloca_h+set}" = set; then :
15936 $as_echo_n "(cached) " >&6
15938 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15939 /* end confdefs.h. */
15940 #include <alloca.h>
15944 char *p = (char *) alloca (2 * sizeof (int));
15950 if ac_fn_c_try_link
"$LINENO"; then :
15951 ac_cv_working_alloca_h
=yes
15953 ac_cv_working_alloca_h
=no
15955 rm -f core conftest.err conftest.
$ac_objext \
15956 conftest
$ac_exeext conftest.
$ac_ext
15958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
15959 $as_echo "$ac_cv_working_alloca_h" >&6; }
15960 if test $ac_cv_working_alloca_h = yes; then
15962 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
15966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
15967 $as_echo_n "checking for alloca... " >&6; }
15968 if test "${ac_cv_func_alloca_works+set}" = set; then :
15969 $as_echo_n "(cached) " >&6
15971 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15972 /* end confdefs.h. */
15974 # define alloca __builtin_alloca
15977 # include <malloc.h>
15978 # define alloca _alloca
15980 # ifdef HAVE_ALLOCA_H
15981 # include <alloca.h>
15986 # ifndef alloca /* predefined by HP cc +Olibcalls */
15997 char *p = (char *) alloca (1);
16003 if ac_fn_c_try_link
"$LINENO"; then :
16004 ac_cv_func_alloca_works
=yes
16006 ac_cv_func_alloca_works
=no
16008 rm -f core conftest.err conftest.
$ac_objext \
16009 conftest
$ac_exeext conftest.
$ac_ext
16011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
16012 $as_echo "$ac_cv_func_alloca_works" >&6; }
16014 if test $ac_cv_func_alloca_works = yes; then
16016 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
16019 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16020 # that cause trouble. Some versions do not even contain alloca or
16021 # contain a buggy version. If you still want to use their alloca,
16022 # use ar to extract alloca.o from them instead of compiling alloca.c.
16028 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
16030 $as_echo "#define C_ALLOCA 1" >>confdefs.h
16033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 'alloca.c' needs Cray hooks" >&5
16034 $as_echo_n "checking whether 'alloca.c' needs Cray hooks... " >&6; }
16035 if test "${ac_cv_os_cray+set}" = set; then :
16036 $as_echo_n "(cached) " >&6
16038 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16039 /* end confdefs.h. */
16040 #if defined CRAY && ! defined CRAY2
16047 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16048 $EGREP "webecray" >/dev
/null
2>&1; then :
16056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
16057 $as_echo "$ac_cv_os_cray" >&6; }
16058 if test $ac_cv_os_cray = yes; then
16059 for ac_func
in _getb67 GETB67 getb67
; do
16060 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16061 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
16062 eval as_val
=\$
$as_ac_var
16063 if test "x$as_val" = x
""yes; then :
16065 cat >>confdefs.h
<<_ACEOF
16066 #define CRAY_STACKSEG_END $ac_func
16075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
16076 $as_echo_n "checking stack direction for C alloca... " >&6; }
16077 if test "${ac_cv_c_stack_direction+set}" = set; then :
16078 $as_echo_n "(cached) " >&6
16080 if test "$cross_compiling" = yes; then :
16081 ac_cv_c_stack_direction
=0
16083 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16084 /* end confdefs.h. */
16085 $ac_includes_default
16087 find_stack_direction (int *addr, int depth)
16089 int dir, dummy = 0;
16092 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
16093 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
16094 return dir + dummy;
16098 main (int argc, char **argv)
16100 return find_stack_direction (0, argc + !argv + 20) < 0;
16103 if ac_fn_c_try_run
"$LINENO"; then :
16104 ac_cv_c_stack_direction
=1
16106 ac_cv_c_stack_direction
=-1
16108 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16109 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
16114 $as_echo "$ac_cv_c_stack_direction" >&6; }
16115 cat >>confdefs.h
<<_ACEOF
16116 #define STACK_DIRECTION $ac_cv_c_stack_direction
16125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
16126 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
16127 if test "${ac_cv_c_bigendian+set}" = set; then :
16128 $as_echo_n "(cached) " >&6
16130 ac_cv_c_bigendian
=unknown
16131 # See if we're dealing with a universal compiler.
16132 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16133 /* end confdefs.h. */
16134 #ifndef __APPLE_CC__
16135 not a universal capable compiler
16140 if ac_fn_c_try_compile
"$LINENO"; then :
16142 # Check for potential -arch flags. It is not universal unless
16143 # there are at least two -arch flags with different values.
16146 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
16147 if test -n "$ac_prev"; then
16149 i?
86 | x86_64 | ppc | ppc64
)
16150 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
16153 ac_cv_c_bigendian
=universal
16159 elif test "x$ac_word" = "x-arch"; then
16164 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16165 if test $ac_cv_c_bigendian = unknown
; then
16166 # See if sys/param.h defines the BYTE_ORDER macro.
16167 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16168 /* end confdefs.h. */
16169 #include <sys/types.h>
16170 #include <sys/param.h>
16175 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
16176 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
16178 bogus endian macros
16185 if ac_fn_c_try_compile
"$LINENO"; then :
16186 # It does; now see whether it defined to BIG_ENDIAN or not.
16187 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16188 /* end confdefs.h. */
16189 #include <sys/types.h>
16190 #include <sys/param.h>
16195 #if BYTE_ORDER != BIG_ENDIAN
16203 if ac_fn_c_try_compile
"$LINENO"; then :
16204 ac_cv_c_bigendian
=yes
16206 ac_cv_c_bigendian
=no
16208 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16210 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16212 if test $ac_cv_c_bigendian = unknown
; then
16213 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
16214 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16215 /* end confdefs.h. */
16216 #include <limits.h>
16221 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
16222 bogus endian macros
16229 if ac_fn_c_try_compile
"$LINENO"; then :
16230 # It does; now see whether it defined to _BIG_ENDIAN or not.
16231 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16232 /* end confdefs.h. */
16233 #include <limits.h>
16238 #ifndef _BIG_ENDIAN
16246 if ac_fn_c_try_compile
"$LINENO"; then :
16247 ac_cv_c_bigendian
=yes
16249 ac_cv_c_bigendian
=no
16251 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16253 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16255 if test $ac_cv_c_bigendian = unknown
; then
16256 # Compile a test program.
16257 if test "$cross_compiling" = yes; then :
16258 # Try to guess by grepping values from an object file.
16259 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16260 /* end confdefs.h. */
16261 short int ascii_mm[] =
16262 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
16263 short int ascii_ii[] =
16264 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
16265 int use_ascii (int i) {
16266 return ascii_mm[i] + ascii_ii[i];
16268 short int ebcdic_ii[] =
16269 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
16270 short int ebcdic_mm[] =
16271 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
16272 int use_ebcdic (int i) {
16273 return ebcdic_mm[i] + ebcdic_ii[i];
16280 return use_ascii (foo) == use_ebcdic (foo);
16285 if ac_fn_c_try_compile
"$LINENO"; then :
16286 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
16287 ac_cv_c_bigendian
=yes
16289 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
16290 if test "$ac_cv_c_bigendian" = unknown
; then
16291 ac_cv_c_bigendian
=no
16293 # finding both strings is unlikely to happen, but who knows?
16294 ac_cv_c_bigendian
=unknown
16298 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16300 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16301 /* end confdefs.h. */
16302 $ac_includes_default
16307 /* Are we little or big endian? From Harbison&Steele. */
16311 char c[sizeof (long int)];
16314 return u.c[sizeof (long int) - 1] == 1;
16320 if ac_fn_c_try_run
"$LINENO"; then :
16321 ac_cv_c_bigendian
=no
16323 ac_cv_c_bigendian
=yes
16325 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16326 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
16332 $as_echo "$ac_cv_c_bigendian" >&6; }
16333 case $ac_cv_c_bigendian in #(
16335 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
16341 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
16345 as_fn_error
"unknown endianness
16346 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
16350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
16351 $as_echo_n "checking for inline... " >&6; }
16352 if test "${ac_cv_c_inline+set}" = set; then :
16353 $as_echo_n "(cached) " >&6
16356 for ac_kw
in inline __inline__ __inline
; do
16357 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16358 /* end confdefs.h. */
16359 #ifndef __cplusplus
16361 static $ac_kw foo_t static_foo () {return 0; }
16362 $ac_kw foo_t foo () {return 0; }
16366 if ac_fn_c_try_compile
"$LINENO"; then :
16367 ac_cv_c_inline
=$ac_kw
16369 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16370 test "$ac_cv_c_inline" != no
&& break
16374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
16375 $as_echo "$ac_cv_c_inline" >&6; }
16377 case $ac_cv_c_inline in
16380 case $ac_cv_c_inline in
16382 *) ac_val
=$ac_cv_c_inline;;
16384 cat >>confdefs.h
<<_ACEOF
16385 #ifndef __cplusplus
16386 #define inline $ac_val
16393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtold conforms to C99" >&5
16394 $as_echo_n "checking whether strtold conforms to C99... " >&6; }
16395 if test "${gl_cv_func_c99_strtold+set}" = set; then :
16396 $as_echo_n "(cached) " >&6
16398 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16399 /* end confdefs.h. */
16400 /* On HP-UX before 11.23, strtold returns a struct instead of
16401 long double. Reject implementations like that, by requiring
16402 compatibility with the C99 prototype. */
16403 #include <stdlib.h>
16404 static long double (*p) (char const *, char **) = strtold;
16406 test (char const *nptr, char **endptr)
16409 r = strtold (nptr, endptr);
16415 return test ("1.0", NULL) != 1 || p ("1.0", NULL) != 1;
16420 if ac_fn_c_try_link
"$LINENO"; then :
16421 gl_cv_func_c99_strtold
=yes
16423 gl_cv_func_c99_strtold
=no
16425 rm -f core conftest.err conftest.
$ac_objext \
16426 conftest
$ac_exeext conftest.
$ac_ext
16428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_c99_strtold" >&5
16429 $as_echo "$gl_cv_func_c99_strtold" >&6; }
16430 if test $gl_cv_func_c99_strtold = yes; then
16432 $as_echo "#define HAVE_C99_STRTOLD 1" >>confdefs.h
16444 GNULIB_EUIDACCESS
=0;
16445 GNULIB_FACCESSAT
=0;
16448 GNULIB_FDATASYNC
=0;
16450 GNULIB_FTRUNCATE
=0;
16452 GNULIB_GETDOMAINNAME
=0;
16453 GNULIB_GETDTABLESIZE
=0;
16454 GNULIB_GETGROUPS
=0;
16455 GNULIB_GETHOSTNAME
=0;
16457 GNULIB_GETLOGIN_R
=0;
16458 GNULIB_GETPAGESIZE
=0;
16459 GNULIB_GETUSERSHELL
=0;
16460 GNULIB_GROUP_MEMBER
=0;
16472 GNULIB_READLINKAT
=0;
16474 GNULIB_SETHOSTNAME
=0;
16477 GNULIB_SYMLINKAT
=0;
16478 GNULIB_TTYNAME_R
=0;
16479 GNULIB_UNISTD_H_NONBLOCKING
=0;
16480 GNULIB_UNISTD_H_SIGPIPE
=0;
16495 HAVE_GETDTABLESIZE
=1;
16497 HAVE_GETHOSTNAME
=1;
16499 HAVE_GETPAGESIZE
=1;
16500 HAVE_GROUP_MEMBER
=1;
16510 HAVE_SETHOSTNAME
=1;
16516 HAVE_DECL_ENVIRON
=1;
16517 HAVE_DECL_FCHDIR
=1;
16518 HAVE_DECL_FDATASYNC
=1;
16519 HAVE_DECL_GETDOMAINNAME
=1;
16520 HAVE_DECL_GETLOGIN_R
=1;
16521 HAVE_DECL_GETPAGESIZE
=1;
16522 HAVE_DECL_GETUSERSHELL
=1;
16523 HAVE_DECL_SETHOSTNAME
=1;
16524 HAVE_DECL_TTYNAME_R
=1;
16526 HAVE_SYS_PARAM_H
=0;
16531 REPLACE_FCHOWNAT
=0;
16532 REPLACE_FTRUNCATE
=0;
16534 REPLACE_GETDOMAINNAME
=0;
16535 REPLACE_GETLOGIN_R
=0;
16536 REPLACE_GETGROUPS
=0;
16537 REPLACE_GETPAGESIZE
=0;
16546 REPLACE_READLINK
=0;
16550 REPLACE_TTYNAME_R
=0;
16552 REPLACE_UNLINKAT
=0;
16555 UNISTD_H_HAVE_WINSOCK2_H
=0;
16556 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
=0;
16566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if environ is properly declared" >&5
16567 $as_echo_n "checking if environ is properly declared... " >&6; }
16568 if test "${gt_cv_var_environ_declaration+set}" = set; then :
16569 $as_echo_n "(cached) " >&6
16572 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16573 /* end confdefs.h. */
16575 #include <unistd.h>
16577 /* mingw, BeOS, Haiku declare environ in <stdlib.h>, not in <unistd.h>. */
16578 #include <stdlib.h>
16580 extern struct { int foo; } environ;
16589 if ac_fn_c_try_compile
"$LINENO"; then :
16590 gt_cv_var_environ_declaration
=no
16592 gt_cv_var_environ_declaration
=yes
16594 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_var_environ_declaration" >&5
16598 $as_echo "$gt_cv_var_environ_declaration" >&6; }
16599 if test $gt_cv_var_environ_declaration = yes; then
16601 $as_echo "#define HAVE_ENVIRON_DECL 1" >>confdefs.h
16606 if test $gt_cv_var_environ_declaration != yes; then
16607 HAVE_DECL_ENVIRON
=0
16616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_dm_mode in struct stat" >&5
16617 $as_echo_n "checking for st_dm_mode in struct stat... " >&6; }
16618 if test "${ac_cv_struct_st_dm_mode+set}" = set; then :
16619 $as_echo_n "(cached) " >&6
16621 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16622 /* end confdefs.h. */
16624 #include <sys/types.h>
16625 #include <sys/stat.h>
16629 struct stat s; s.st_dm_mode;
16634 if ac_fn_c_try_compile
"$LINENO"; then :
16635 ac_cv_struct_st_dm_mode
=yes
16637 ac_cv_struct_st_dm_mode
=no
16639 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_st_dm_mode" >&5
16642 $as_echo "$ac_cv_struct_st_dm_mode" >&6; }
16644 if test $ac_cv_struct_st_dm_mode = yes; then
16646 $as_echo "#define HAVE_ST_DM_MODE 1" >>confdefs.h
16651 ac_fn_c_check_decl
"$LINENO" "strmode" "ac_cv_have_decl_strmode" "$ac_includes_default"
16652 if test "x$ac_cv_have_decl_strmode" = x
""yes; then :
16658 cat >>confdefs.h
<<_ACEOF
16659 #define HAVE_DECL_STRMODE $ac_have_decl
16665 GNULIB_CALLOC_POSIX
=0;
16666 GNULIB_CANONICALIZE_FILE_NAME
=0;
16667 GNULIB_GETLOADAVG
=0;
16668 GNULIB_GETSUBOPT
=0;
16670 GNULIB_MALLOC_POSIX
=0;
16674 GNULIB_MKOSTEMPS
=0;
16677 GNULIB_POSIX_OPENPT
=0;
16679 GNULIB_PTSNAME_R
=0;
16683 GNULIB_REALLOC_POSIX
=0;
16690 GNULIB_SYSTEM_POSIX
=0;
16696 HAVE_CANONICALIZE_FILE_NAME
=1;
16697 HAVE_DECL_GETLOADAVG
=1;
16705 HAVE_POSIX_OPENPT
=1;
16714 HAVE_DECL_SETENV
=1;
16718 HAVE_STRUCT_RANDOM_DATA
=1;
16719 HAVE_SYS_LOADAVG_H
=0;
16721 HAVE_DECL_UNSETENV
=1;
16723 REPLACE_CANONICALIZE_FILE_NAME
=0;
16727 REPLACE_PTSNAME_R
=0;
16729 REPLACE_RANDOM_R
=0;
16731 REPLACE_REALPATH
=0;
16734 REPLACE_UNSETENV
=0;
16739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
16740 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
16741 if test "${gl_cv_have_include_next+set}" = set; then :
16742 $as_echo_n "(cached) " >&6
16744 rm -rf conftestd1a conftestd1b conftestd2
16745 mkdir conftestd1a conftestd1b conftestd2
16746 cat <<EOF > conftestd1a/conftest.h
16747 #define DEFINED_IN_CONFTESTD1
16748 #include_next <conftest.h>
16749 #ifdef DEFINED_IN_CONFTESTD2
16752 #error "include_next doesn't work"
16755 cat <<EOF > conftestd1b/conftest.h
16756 #define DEFINED_IN_CONFTESTD1
16758 #include_next <conftest.h>
16759 #ifdef DEFINED_IN_CONFTESTD2
16762 #error "include_next doesn't work"
16765 cat <<EOF > conftestd2/conftest.h
16766 #ifndef DEFINED_IN_CONFTESTD1
16767 #error "include_next test doesn't work"
16769 #define DEFINED_IN_CONFTESTD2
16771 gl_save_CPPFLAGS
="$CPPFLAGS"
16772 CPPFLAGS
="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
16773 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16774 /* end confdefs.h. */
16775 #include <conftest.h>
16777 if ac_fn_c_try_compile
"$LINENO"; then :
16778 gl_cv_have_include_next
=yes
16780 CPPFLAGS
="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
16781 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16782 /* end confdefs.h. */
16783 #include <conftest.h>
16785 if ac_fn_c_try_compile
"$LINENO"; then :
16786 gl_cv_have_include_next
=buggy
16788 gl_cv_have_include_next
=no
16790 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16793 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16794 CPPFLAGS
="$gl_save_CPPFLAGS"
16795 rm -rf conftestd1a conftestd1b conftestd2
16798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
16799 $as_echo "$gl_cv_have_include_next" >&6; }
16800 PRAGMA_SYSTEM_HEADER
=
16801 if test $gl_cv_have_include_next = yes; then
16802 INCLUDE_NEXT
=include_next
16803 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include_next
16804 if test -n "$GCC"; then
16805 PRAGMA_SYSTEM_HEADER
='#pragma GCC system_header'
16808 if test $gl_cv_have_include_next = buggy
; then
16809 INCLUDE_NEXT
=include
16810 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include_next
16812 INCLUDE_NEXT
=include
16813 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include
16819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
16820 $as_echo_n "checking whether system header files limit the line length... " >&6; }
16821 if test "${gl_cv_pragma_columns+set}" = set; then :
16822 $as_echo_n "(cached) " >&6
16824 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16825 /* end confdefs.h. */
16832 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16833 $EGREP "choke me" >/dev
/null
2>&1; then :
16834 gl_cv_pragma_columns
=yes
16836 gl_cv_pragma_columns
=no
16842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
16843 $as_echo "$gl_cv_pragma_columns" >&6; }
16844 if test $gl_cv_pragma_columns = yes; then
16845 PRAGMA_COLUMNS
="#pragma COLUMNS 10000"
16866 if test $gl_cv_have_include_next = yes; then
16867 gl_cv_next_getopt_h
='<'getopt.h
'>'
16869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
16870 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
16871 if test "${gl_cv_next_getopt_h+set}" = set; then :
16872 $as_echo_n "(cached) " >&6
16875 if test $ac_cv_header_getopt_h = yes; then
16878 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16879 /* end confdefs.h. */
16880 #include <getopt.h>
16884 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
16885 *) gl_absname_cpp
="$ac_cpp" ;;
16890 gl_dirsep_regex
='[/\\]'
16893 gl_dirsep_regex
='\/'
16896 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
16898 gl_header_literal_regex
=`echo 'getopt.h' \
16899 | sed -e "$gl_make_literal_regex_sed"`
16900 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
16901 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
16906 gl_cv_next_getopt_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16907 sed -n "$gl_absolute_header_sed"`'"'
16909 gl_cv_next_getopt_h
='<'getopt.h
'>'
16914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
16915 $as_echo "$gl_cv_next_getopt_h" >&6; }
16917 NEXT_GETOPT_H
=$gl_cv_next_getopt_h
16919 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
16920 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16921 gl_next_as_first_directive
='<'getopt.h
'>'
16923 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16924 gl_next_as_first_directive
=$gl_cv_next_getopt_h
16926 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
=$gl_next_as_first_directive
16931 if test $ac_cv_header_getopt_h = yes; then
16940 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
16941 for ac_header
in getopt.h
16943 ac_fn_c_check_header_mongrel
"$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
16944 if test "x$ac_cv_header_getopt_h" = x
""yes; then :
16945 cat >>confdefs.h
<<_ACEOF
16946 #define HAVE_GETOPT_H 1
16950 gl_replace_getopt
=yes
16957 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
16958 for ac_func
in getopt_long_only
16960 ac_fn_c_check_func
"$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
16961 if test "x$ac_cv_func_getopt_long_only" = x
""yes; then :
16962 cat >>confdefs.h
<<_ACEOF
16963 #define HAVE_GETOPT_LONG_ONLY 1
16967 gl_replace_getopt
=yes
16973 if test -z "$gl_replace_getopt"; then
16974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
16975 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
16976 if test "${gl_cv_func_getopt_posix+set}" = set; then :
16977 $as_echo_n "(cached) " >&6
16980 if test $cross_compiling = no
; then
16981 if test "$cross_compiling" = yes; then :
16982 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16983 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16984 as_fn_error
"cannot run test program while cross compiling
16985 See \`config.log' for more details." "$LINENO" 5; }
16987 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16988 /* end confdefs.h. */
16990 #include <unistd.h>
16991 #include <stdlib.h>
16992 #include <string.h>
16997 static char program[] = "program";
16998 static char a[] = "-a";
16999 static char foo[] = "foo";
17000 static char bar[] = "bar";
17001 char *argv[] = { program, a, foo, bar, NULL };
17004 c = getopt (4, argv, "ab");
17007 c = getopt (4, argv, "ab");
17010 if (!(optind == 2))
17016 if ac_fn_c_try_run
"$LINENO"; then :
17017 gl_cv_func_getopt_posix
=maybe
17019 gl_cv_func_getopt_posix
=no
17021 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17022 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17025 if test $gl_cv_func_getopt_posix = maybe
; then
17026 if test "$cross_compiling" = yes; then :
17027 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17028 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17029 as_fn_error
"cannot run test program while cross compiling
17030 See \`config.log' for more details." "$LINENO" 5; }
17032 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17033 /* end confdefs.h. */
17035 #include <unistd.h>
17036 #include <stdlib.h>
17037 #include <string.h>
17042 static char program[] = "program";
17043 static char donald[] = "donald";
17044 static char p[] = "-p";
17045 static char billy[] = "billy";
17046 static char duck[] = "duck";
17047 static char a[] = "-a";
17048 static char bar[] = "bar";
17049 char *argv[] = { program, donald, p, billy, duck, a, bar, NULL };
17052 c = getopt (7, argv, "+abp:q:");
17055 if (!(strcmp (argv[0], "program") == 0))
17057 if (!(strcmp (argv[1], "donald") == 0))
17059 if (!(strcmp (argv[2], "-p") == 0))
17061 if (!(strcmp (argv[3], "billy") == 0))
17063 if (!(strcmp (argv[4], "duck") == 0))
17065 if (!(strcmp (argv[5], "-a") == 0))
17067 if (!(strcmp (argv[6], "bar") == 0))
17069 if (!(optind == 1))
17075 if ac_fn_c_try_run
"$LINENO"; then :
17076 gl_cv_func_getopt_posix
=maybe
17078 gl_cv_func_getopt_posix
=no
17080 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17081 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17085 if test $gl_cv_func_getopt_posix = maybe
; then
17086 if test "$cross_compiling" = yes; then :
17087 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17088 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17089 as_fn_error
"cannot run test program while cross compiling
17090 See \`config.log' for more details." "$LINENO" 5; }
17092 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17093 /* end confdefs.h. */
17095 #include <unistd.h>
17096 #include <stdlib.h>
17097 #include <string.h>
17102 static char program[] = "program";
17103 static char ab[] = "-ab";
17104 char *argv[3] = { program, ab, NULL };
17105 if (getopt (2, argv, "ab:") != 'a')
17107 if (getopt (2, argv, "ab:") != '?')
17117 if ac_fn_c_try_run
"$LINENO"; then :
17118 gl_cv_func_getopt_posix
=yes
17120 gl_cv_func_getopt_posix
=no
17122 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17123 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17129 darwin
* | aix
* | mingw
*) gl_cv_func_getopt_posix
="guessing no";;
17130 *) gl_cv_func_getopt_posix
="guessing yes";;
17135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
17136 $as_echo "$gl_cv_func_getopt_posix" >&6; }
17137 case "$gl_cv_func_getopt_posix" in
17138 *no
) gl_replace_getopt
=yes ;;
17142 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
17143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
17144 $as_echo_n "checking for working GNU getopt function... " >&6; }
17145 if test "${gl_cv_func_getopt_gnu+set}" = set; then :
17146 $as_echo_n "(cached) " >&6
17148 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
17149 # optstring is necessary for programs like m4 that have POSIX-mandated
17150 # semantics for supporting options interspersed with files.
17151 # Also, since getopt_long is a GNU extension, we require optind=0.
17152 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
17153 # so take care to revert to the correct (non-)export state.
17154 gl_awk_probe
='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
17155 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
17156 xx
) gl_had_POSIXLY_CORRECT
=exported
;;
17157 x
) gl_had_POSIXLY_CORRECT
=yes ;;
17158 *) gl_had_POSIXLY_CORRECT
= ;;
17161 export POSIXLY_CORRECT
17162 if test "$cross_compiling" = yes; then :
17163 gl_cv_func_getopt_gnu
="guessing no"
17166 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17167 /* end confdefs.h. */
17168 #include <getopt.h>
17169 #include <stddef.h>
17170 #include <string.h>
17172 #include <stdlib.h>
17173 #if defined __MACH__ && defined __APPLE__
17174 /* Avoid a crash on Mac OS X. */
17175 #include <mach/mach.h>
17176 #include <mach/mach_error.h>
17177 #include <mach/thread_status.h>
17178 #include <mach/exception.h>
17179 #include <mach/task.h>
17180 #include <pthread.h>
17181 /* The exception port on which our thread listens. */
17182 static mach_port_t our_exception_port;
17183 /* The main function of the thread listening for exceptions of type
17186 mach_exception_thread (void *arg)
17188 /* Buffer for a message to be received. */
17190 mach_msg_header_t head;
17191 mach_msg_body_t msgh_body;
17194 mach_msg_return_t retval;
17195 /* Wait for a message on the exception port. */
17196 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
17197 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
17198 if (retval != MACH_MSG_SUCCESS)
17203 nocrash_init (void)
17205 mach_port_t self = mach_task_self ();
17206 /* Allocate a port on which the thread shall listen for exceptions. */
17207 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
17209 /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
17210 if (mach_port_insert_right (self, our_exception_port, our_exception_port,
17211 MACH_MSG_TYPE_MAKE_SEND)
17213 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
17215 exception_mask_t mask = EXC_MASK_BAD_ACCESS;
17216 /* Create the thread listening on the exception port. */
17217 pthread_attr_t attr;
17219 if (pthread_attr_init (&attr) == 0
17220 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
17221 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
17222 pthread_attr_destroy (&attr);
17223 /* Replace the exception port info for these exceptions with our own.
17224 Note that we replace the exception port for the entire task, not only
17225 for a particular thread. This has the effect that when our exception
17226 port gets the message, the thread specific exception port has already
17227 been asked, and we don't need to bother about it.
17228 See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
17229 task_set_exception_ports (self, mask, our_exception_port,
17230 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
17235 #elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
17236 /* Avoid a crash on native Windows. */
17237 #define WIN32_LEAN_AND_MEAN
17238 #include <windows.h>
17239 #include <winerror.h>
17241 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
17243 switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
17245 case EXCEPTION_ACCESS_VIOLATION:
17246 case EXCEPTION_IN_PAGE_ERROR:
17247 case EXCEPTION_STACK_OVERFLOW:
17248 case EXCEPTION_GUARD_PAGE:
17249 case EXCEPTION_PRIV_INSTRUCTION:
17250 case EXCEPTION_ILLEGAL_INSTRUCTION:
17251 case EXCEPTION_DATATYPE_MISALIGNMENT:
17252 case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
17253 case EXCEPTION_NONCONTINUABLE_EXCEPTION:
17256 return EXCEPTION_CONTINUE_SEARCH;
17259 nocrash_init (void)
17261 SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
17264 /* Avoid a crash on POSIX systems. */
17265 #include <signal.h>
17266 /* A POSIX signal handler. */
17268 exception_handler (int sig)
17273 nocrash_init (void)
17276 signal (SIGSEGV, exception_handler);
17279 signal (SIGBUS, exception_handler);
17293 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
17294 and fails on Mac OS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
17295 OSF/1 5.1, Solaris 10. */
17297 static char conftest[] = "conftest";
17298 static char plus[] = "-+";
17299 char *argv[3] = { conftest, plus, NULL };
17301 if (getopt (2, argv, "+a") != '?')
17304 /* This code succeeds on glibc 2.8, mingw,
17305 and fails on Mac OS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
17306 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
17308 static char program[] = "program";
17309 static char p[] = "-p";
17310 static char foo[] = "foo";
17311 static char bar[] = "bar";
17312 char *argv[] = { program, p, foo, bar, NULL };
17315 if (getopt (4, argv, "p::") != 'p')
17317 else if (optarg != NULL)
17319 else if (getopt (4, argv, "p::") != -1)
17321 else if (optind != 2)
17324 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
17326 static char program[] = "program";
17327 static char foo[] = "foo";
17328 static char p[] = "-p";
17329 char *argv[] = { program, foo, p, NULL };
17331 if (getopt (3, argv, "-p") != 1)
17333 else if (getopt (3, argv, "-p") != 'p')
17336 /* This code fails on glibc 2.11. */
17338 static char program[] = "program";
17339 static char b[] = "-b";
17340 static char a[] = "-a";
17341 char *argv[] = { program, b, a, NULL };
17342 optind = opterr = 0;
17343 if (getopt (3, argv, "+:a:b") != 'b')
17345 else if (getopt (3, argv, "+:a:b") != ':')
17348 /* This code dumps core on glibc 2.14. */
17350 static char program[] = "program";
17351 static char w[] = "-W";
17352 static char dummy[] = "dummy";
17353 char *argv[] = { program, w, dummy, NULL };
17354 optind = opterr = 1;
17355 if (getopt (3, argv, "W;") != 'W')
17364 if ac_fn_c_try_run
"$LINENO"; then :
17365 gl_cv_func_getopt_gnu
=yes
17367 gl_cv_func_getopt_gnu
=no
17369 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17370 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17373 case $gl_had_POSIXLY_CORRECT in
17375 yes) { POSIXLY_CORRECT
=; unset POSIXLY_CORRECT
;}; POSIXLY_CORRECT
=1 ;;
17376 *) { POSIXLY_CORRECT
=; unset POSIXLY_CORRECT
;} ;;
17380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
17381 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
17382 if test "$gl_cv_func_getopt_gnu" != yes; then
17383 gl_replace_getopt
=yes
17385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt_long function" >&5
17386 $as_echo_n "checking for working GNU getopt_long function... " >&6; }
17387 if test "${gl_cv_func_getopt_long_gnu+set}" = set; then :
17388 $as_echo_n "(cached) " >&6
17390 if test "$cross_compiling" = yes; then :
17392 openbsd
*) gl_cv_func_getopt_long_gnu
="guessing no";;
17393 *) gl_cv_func_getopt_long_gnu
="guessing yes";;
17397 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17398 /* end confdefs.h. */
17399 #include <getopt.h>
17400 #include <stddef.h>
17401 #include <string.h>
17406 static const struct option long_options[] =
17408 { "xtremely-",no_argument, NULL, 1003 },
17409 { "xtra", no_argument, NULL, 1001 },
17410 { "xtreme", no_argument, NULL, 1002 },
17411 { "xtremely", no_argument, NULL, 1003 },
17412 { NULL, 0, NULL, 0 }
17414 /* This code fails on OpenBSD 5.0. */
17416 static char program[] = "program";
17417 static char xtremel[] = "--xtremel";
17418 char *argv[] = { program, xtremel, NULL };
17420 optind = 1; opterr = 0;
17421 if (getopt_long (2, argv, "", long_options, &option_index) != 1003)
17430 if ac_fn_c_try_run
"$LINENO"; then :
17431 gl_cv_func_getopt_long_gnu
=yes
17433 gl_cv_func_getopt_long_gnu
=no
17435 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17436 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_long_gnu" >&5
17442 $as_echo "$gl_cv_func_getopt_long_gnu" >&6; }
17443 case "$gl_cv_func_getopt_long_gnu" in
17445 *) gl_replace_getopt
=yes ;;
17456 if test -n "$gl_replace_getopt"; then
17460 if test $REPLACE_GETOPT = 1; then
17464 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
17470 ac_fn_c_check_decl
"$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
17471 if test "x$ac_cv_have_decl_getenv" = x
""yes; then :
17477 cat >>confdefs.h
<<_ACEOF
17478 #define HAVE_DECL_GETENV $ac_have_decl
17486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
17487 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
17488 if test "${ac_cv_c_restrict+set}" = set; then :
17489 $as_echo_n "(cached) " >&6
17491 ac_cv_c_restrict
=no
17492 # The order here caters to the fact that C++ does not require restrict.
17493 for ac_kw
in __restrict __restrict__ _Restrict restrict
; do
17494 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17495 /* end confdefs.h. */
17496 typedef int * int_ptr;
17497 int foo (int_ptr $ac_kw ip) {
17504 int * $ac_kw t = s;
17511 if ac_fn_c_try_compile
"$LINENO"; then :
17512 ac_cv_c_restrict
=$ac_kw
17514 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17515 test "$ac_cv_c_restrict" != no
&& break
17519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
17520 $as_echo "$ac_cv_c_restrict" >&6; }
17522 case $ac_cv_c_restrict in
17524 no
) $as_echo "#define restrict /**/" >>confdefs.h
17526 *) cat >>confdefs.h
<<_ACEOF
17527 #define restrict $ac_cv_c_restrict
17533 GNULIB_GETTIMEOFDAY
=0;
17534 HAVE_GETTIMEOFDAY
=1;
17535 HAVE_STRUCT_TIMEVAL
=1;
17537 REPLACE_GETTIMEOFDAY
=0;
17538 REPLACE_STRUCT_TIMEVAL
=0;
17555 if test $gl_cv_have_include_next = yes; then
17556 gl_cv_next_sys_time_h
='<'sys
/time.h
'>'
17558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/time.h>" >&5
17559 $as_echo_n "checking absolute name of <sys/time.h>... " >&6; }
17560 if test "${gl_cv_next_sys_time_h+set}" = set; then :
17561 $as_echo_n "(cached) " >&6
17564 if test $ac_cv_header_sys_time_h = yes; then
17567 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17568 /* end confdefs.h. */
17569 #include <sys/time.h>
17573 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
17574 *) gl_absname_cpp
="$ac_cpp" ;;
17579 gl_dirsep_regex
='[/\\]'
17582 gl_dirsep_regex
='\/'
17585 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
17587 gl_header_literal_regex
=`echo 'sys/time.h' \
17588 | sed -e "$gl_make_literal_regex_sed"`
17589 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17590 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17595 gl_cv_next_sys_time_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17596 sed -n "$gl_absolute_header_sed"`'"'
17598 gl_cv_next_sys_time_h
='<'sys
/time.h
'>'
17603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_time_h" >&5
17604 $as_echo "$gl_cv_next_sys_time_h" >&6; }
17606 NEXT_SYS_TIME_H
=$gl_cv_next_sys_time_h
17608 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
17609 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17610 gl_next_as_first_directive
='<'sys
/time.h
'>'
17612 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17613 gl_next_as_first_directive
=$gl_cv_next_sys_time_h
17615 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
=$gl_next_as_first_directive
17621 if test $ac_cv_header_sys_time_h != yes; then
17629 if test $ac_cv_header_sys_socket_h != yes; then
17630 for ac_header
in winsock2.h
17632 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
17633 if test "x$ac_cv_header_winsock2_h" = x
""yes; then :
17634 cat >>confdefs.h
<<_ACEOF
17635 #define HAVE_WINSOCK2_H 1
17643 if test "$ac_cv_header_winsock2_h" = yes; then
17645 UNISTD_H_HAVE_WINSOCK2_H
=1
17646 SYS_IOCTL_H_HAVE_WINSOCK2_H
=1
17652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
17653 $as_echo_n "checking for struct timeval... " >&6; }
17654 if test "${gl_cv_sys_struct_timeval+set}" = set; then :
17655 $as_echo_n "(cached) " >&6
17657 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17658 /* end confdefs.h. */
17659 #if HAVE_SYS_TIME_H
17660 #include <sys/time.h>
17663 #if HAVE_WINSOCK2_H
17664 # include <winsock2.h>
17670 static struct timeval x; x.tv_sec = x.tv_usec;
17675 if ac_fn_c_try_compile
"$LINENO"; then :
17676 gl_cv_sys_struct_timeval
=yes
17678 gl_cv_sys_struct_timeval
=no
17680 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval" >&5
17684 $as_echo "$gl_cv_sys_struct_timeval" >&6; }
17685 if test $gl_cv_sys_struct_timeval != yes; then
17686 HAVE_STRUCT_TIMEVAL
=0
17688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wide-enough struct timeval.tv_sec member" >&5
17689 $as_echo_n "checking for wide-enough struct timeval.tv_sec member... " >&6; }
17690 if test "${gl_cv_sys_struct_timeval_tv_sec+set}" = set; then :
17691 $as_echo_n "(cached) " >&6
17693 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17694 /* end confdefs.h. */
17695 #if HAVE_SYS_TIME_H
17696 #include <sys/time.h>
17699 #if HAVE_WINSOCK2_H
17700 # include <winsock2.h>
17706 static struct timeval x;
17707 typedef int verify_tv_sec_type[
17708 sizeof (time_t) <= sizeof x.tv_sec ? 1 : -1
17715 if ac_fn_c_try_compile
"$LINENO"; then :
17716 gl_cv_sys_struct_timeval_tv_sec
=yes
17718 gl_cv_sys_struct_timeval_tv_sec
=no
17720 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval_tv_sec" >&5
17724 $as_echo "$gl_cv_sys_struct_timeval_tv_sec" >&6; }
17725 if test $gl_cv_sys_struct_timeval_tv_sec != yes; then
17726 REPLACE_STRUCT_TIMEVAL
=1
17736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
17737 $as_echo_n "checking for unsigned long long int... " >&6; }
17738 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
17739 $as_echo_n "(cached) " >&6
17741 ac_cv_type_unsigned_long_long_int
=yes
17742 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
17743 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17744 /* end confdefs.h. */
17746 /* For now, do not test the preprocessor; as of 2007 there are too many
17747 implementations with broken preprocessors. Perhaps this can
17748 be revisited in 2012. In the meantime, code should not expect
17749 #if to work with literals wider than 32 bits. */
17750 /* Test literals. */
17751 long long int ll = 9223372036854775807ll;
17752 long long int nll = -9223372036854775807LL;
17753 unsigned long long int ull = 18446744073709551615ULL;
17754 /* Test constant expressions. */
17755 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
17757 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
17763 /* Test availability of runtime routines for shift and division. */
17764 long long int llmax = 9223372036854775807ll;
17765 unsigned long long int ullmax = 18446744073709551615ull;
17766 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
17767 | (llmax / ll) | (llmax % ll)
17768 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
17769 | (ullmax / ull) | (ullmax % ull));
17775 if ac_fn_c_try_link
"$LINENO"; then :
17778 ac_cv_type_unsigned_long_long_int
=no
17780 rm -f core conftest.err conftest.
$ac_objext \
17781 conftest
$ac_exeext conftest.
$ac_ext
17784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
17785 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
17786 if test $ac_cv_type_unsigned_long_long_int = yes; then
17788 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
17794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
17795 $as_echo_n "checking for long long int... " >&6; }
17796 if test "${ac_cv_type_long_long_int+set}" = set; then :
17797 $as_echo_n "(cached) " >&6
17799 ac_cv_type_long_long_int
=yes
17800 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
17801 ac_cv_type_long_long_int
=$ac_cv_type_unsigned_long_long_int
17802 if test $ac_cv_type_long_long_int = yes; then
17803 if test "$cross_compiling" = yes; then :
17806 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17807 /* end confdefs.h. */
17808 #include <limits.h>
17811 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
17812 # define LLONG_MAX (HALF - 1 + HALF)
17817 long long int n = 1;
17821 long long int m = n << i;
17824 if (LLONG_MAX / 2 < m)
17832 if ac_fn_c_try_run
"$LINENO"; then :
17835 ac_cv_type_long_long_int
=no
17837 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17838 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
17845 $as_echo "$ac_cv_type_long_long_int" >&6; }
17846 if test $ac_cv_type_long_long_int = yes; then
17848 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
17857 gl_cv_c_multiarch
=no
17858 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17859 /* end confdefs.h. */
17860 #ifndef __APPLE_CC__
17861 not a universal capable compiler
17866 if ac_fn_c_try_compile
"$LINENO"; then :
17870 for word
in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
17871 if test -n "$prev"; then
17873 i?
86 | x86_64 | ppc | ppc64
)
17874 if test -z "$arch" ||
test "$arch" = "$word"; then
17877 gl_cv_c_multiarch
=yes
17883 if test "x$word" = "x-arch"; then
17890 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17891 if test $gl_cv_c_multiarch = yes; then
17892 APPLE_UNIVERSAL_BUILD
=1
17894 APPLE_UNIVERSAL_BUILD
=0
17901 if test $ac_cv_type_long_long_int = yes; then
17902 HAVE_LONG_LONG_INT
=1
17904 HAVE_LONG_LONG_INT
=0
17908 if test $ac_cv_type_unsigned_long_long_int = yes; then
17909 HAVE_UNSIGNED_LONG_LONG_INT
=1
17911 HAVE_UNSIGNED_LONG_LONG_INT
=0
17916 if test $ac_cv_header_wchar_h = yes; then
17923 if test $ac_cv_header_inttypes_h = yes; then
17930 if test $ac_cv_header_sys_types_h = yes; then
17946 if test $gl_cv_have_include_next = yes; then
17947 gl_cv_next_stdint_h
='<'stdint.h
'>'
17949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
17950 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
17951 if test "${gl_cv_next_stdint_h+set}" = set; then :
17952 $as_echo_n "(cached) " >&6
17955 if test $ac_cv_header_stdint_h = yes; then
17958 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17959 /* end confdefs.h. */
17960 #include <stdint.h>
17964 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
17965 *) gl_absname_cpp
="$ac_cpp" ;;
17970 gl_dirsep_regex
='[/\\]'
17973 gl_dirsep_regex
='\/'
17976 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
17978 gl_header_literal_regex
=`echo 'stdint.h' \
17979 | sed -e "$gl_make_literal_regex_sed"`
17980 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17981 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17986 gl_cv_next_stdint_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17987 sed -n "$gl_absolute_header_sed"`'"'
17989 gl_cv_next_stdint_h
='<'stdint.h
'>'
17994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
17995 $as_echo "$gl_cv_next_stdint_h" >&6; }
17997 NEXT_STDINT_H
=$gl_cv_next_stdint_h
17999 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
18000 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18001 gl_next_as_first_directive
='<'stdint.h
'>'
18003 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18004 gl_next_as_first_directive
=$gl_cv_next_stdint_h
18006 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
=$gl_next_as_first_directive
18011 if test $ac_cv_header_stdint_h = yes; then
18018 if test $ac_cv_header_stdint_h = yes; then
18019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
18020 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
18021 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
18022 $as_echo_n "(cached) " >&6
18024 gl_cv_header_working_stdint_h
=no
18025 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18026 /* end confdefs.h. */
18029 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
18030 #include <stdint.h>
18031 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
18032 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
18033 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
18037 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18038 included before <wchar.h>. */
18039 #include <stddef.h>
18040 #include <signal.h>
18042 # include <stdio.h>
18044 # include <wchar.h>
18049 int8_t a1 = INT8_MAX;
18050 int8_t a1min = INT8_MIN;
18053 int16_t a2 = INT16_MAX;
18054 int16_t a2min = INT16_MIN;
18057 int32_t a3 = INT32_MAX;
18058 int32_t a3min = INT32_MIN;
18061 int64_t a4 = INT64_MAX;
18062 int64_t a4min = INT64_MIN;
18065 uint8_t b1 = UINT8_MAX;
18067 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
18070 uint16_t b2 = UINT16_MAX;
18073 uint32_t b3 = UINT32_MAX;
18076 uint64_t b4 = UINT64_MAX;
18078 int_least8_t c1 = INT8_C (0x7f);
18079 int_least8_t c1max = INT_LEAST8_MAX;
18080 int_least8_t c1min = INT_LEAST8_MIN;
18081 int_least16_t c2 = INT16_C (0x7fff);
18082 int_least16_t c2max = INT_LEAST16_MAX;
18083 int_least16_t c2min = INT_LEAST16_MIN;
18084 int_least32_t c3 = INT32_C (0x7fffffff);
18085 int_least32_t c3max = INT_LEAST32_MAX;
18086 int_least32_t c3min = INT_LEAST32_MIN;
18087 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
18088 int_least64_t c4max = INT_LEAST64_MAX;
18089 int_least64_t c4min = INT_LEAST64_MIN;
18090 uint_least8_t d1 = UINT8_C (0xff);
18091 uint_least8_t d1max = UINT_LEAST8_MAX;
18092 uint_least16_t d2 = UINT16_C (0xffff);
18093 uint_least16_t d2max = UINT_LEAST16_MAX;
18094 uint_least32_t d3 = UINT32_C (0xffffffff);
18095 uint_least32_t d3max = UINT_LEAST32_MAX;
18096 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
18097 uint_least64_t d4max = UINT_LEAST64_MAX;
18098 int_fast8_t e1 = INT_FAST8_MAX;
18099 int_fast8_t e1min = INT_FAST8_MIN;
18100 int_fast16_t e2 = INT_FAST16_MAX;
18101 int_fast16_t e2min = INT_FAST16_MIN;
18102 int_fast32_t e3 = INT_FAST32_MAX;
18103 int_fast32_t e3min = INT_FAST32_MIN;
18104 int_fast64_t e4 = INT_FAST64_MAX;
18105 int_fast64_t e4min = INT_FAST64_MIN;
18106 uint_fast8_t f1 = UINT_FAST8_MAX;
18107 uint_fast16_t f2 = UINT_FAST16_MAX;
18108 uint_fast32_t f3 = UINT_FAST32_MAX;
18109 uint_fast64_t f4 = UINT_FAST64_MAX;
18111 intptr_t g = INTPTR_MAX;
18112 intptr_t gmin = INTPTR_MIN;
18115 uintptr_t h = UINTPTR_MAX;
18117 intmax_t i = INTMAX_MAX;
18118 uintmax_t j = UINTMAX_MAX;
18120 #include <limits.h> /* for CHAR_BIT */
18121 #define TYPE_MINIMUM(t) \
18122 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
18123 #define TYPE_MAXIMUM(t) \
18124 ((t) ((t) 0 < (t) -1 \
18126 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
18129 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
18130 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
18132 /* Detect bug in FreeBSD 6.0 / ia64. */
18133 int check_SIG_ATOMIC:
18134 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
18135 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
18137 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
18139 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
18140 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
18142 /* Detect bug in mingw. */
18144 WINT_MIN == TYPE_MINIMUM (wint_t)
18145 && WINT_MAX == TYPE_MAXIMUM (wint_t)
18148 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
18150 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
18151 int check_UINT16_C:
18152 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
18154 /* Detect bugs in OpenBSD 3.9 stdint.h. */
18156 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
18159 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
18162 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
18165 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
18167 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
18168 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
18169 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
18170 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
18171 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
18172 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
18173 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
18174 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
18175 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
18176 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
18177 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
18188 if ac_fn_c_try_compile
"$LINENO"; then :
18189 if test "$cross_compiling" = yes; then :
18190 gl_cv_header_working_stdint_h
=yes
18193 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18194 /* end confdefs.h. */
18197 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
18198 #include <stdint.h>
18201 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18202 included before <wchar.h>. */
18203 #include <stddef.h>
18204 #include <signal.h>
18206 # include <stdio.h>
18208 # include <wchar.h>
18213 #include <string.h>
18214 #define MVAL(macro) MVAL1(macro)
18215 #define MVAL1(expression) #expression
18216 static const char *macro_values[] =
18250 for (mv = macro_values; *mv != NULL; mv++)
18252 const char *value = *mv;
18253 /* Test whether it looks like a cast expression. */
18254 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
18255 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
18256 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
18257 || strncmp (value, "((int)"/*)*/, 6) == 0
18258 || strncmp (value, "((signed short)"/*)*/, 15) == 0
18259 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
18260 return mv - macro_values + 1;
18268 if ac_fn_c_try_run
"$LINENO"; then :
18269 gl_cv_header_working_stdint_h
=yes
18271 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18272 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18277 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
18281 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
18283 if test "$gl_cv_header_working_stdint_h" = yes; then
18286 for ac_header
in sys
/inttypes.h sys
/bitypes.h
18288 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18289 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18290 eval as_val
=\$
$as_ac_Header
18291 if test "x$as_val" = x
""yes; then :
18292 cat >>confdefs.h
<<_ACEOF
18293 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18300 if test $ac_cv_header_sys_inttypes_h = yes; then
18301 HAVE_SYS_INTTYPES_H
=1
18303 HAVE_SYS_INTTYPES_H
=0
18306 if test $ac_cv_header_sys_bitypes_h = yes; then
18307 HAVE_SYS_BITYPES_H
=1
18309 HAVE_SYS_BITYPES_H
=0
18315 if test $APPLE_UNIVERSAL_BUILD = 0; then
18318 for gltype
in ptrdiff_t size_t
; do
18319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
18320 $as_echo_n "checking for bit size of $gltype... " >&6; }
18321 if { as_var
=gl_cv_bitsizeof_
${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
18322 $as_echo_n "(cached) " >&6
18324 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
18325 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18326 included before <wchar.h>. */
18327 #include <stddef.h>
18328 #include <signal.h>
18330 # include <stdio.h>
18332 # include <wchar.h>
18335 #include <limits.h>"; then :
18341 eval gl_cv_bitsizeof_
${gltype}=\
$result
18344 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
18345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18346 $as_echo "$ac_res" >&6; }
18347 eval result
=\
$gl_cv_bitsizeof_${gltype}
18348 if test $result = unknown
; then
18351 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18352 cat >>confdefs.h
<<_ACEOF
18353 #define BITSIZEOF_${GLTYPE} $result
18356 eval BITSIZEOF_
${GLTYPE}=\
$result
18363 for gltype
in sig_atomic_t wchar_t wint_t
; do
18364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
18365 $as_echo_n "checking for bit size of $gltype... " >&6; }
18366 if { as_var
=gl_cv_bitsizeof_
${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
18367 $as_echo_n "(cached) " >&6
18369 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
18370 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18371 included before <wchar.h>. */
18372 #include <stddef.h>
18373 #include <signal.h>
18375 # include <stdio.h>
18377 # include <wchar.h>
18380 #include <limits.h>"; then :
18386 eval gl_cv_bitsizeof_
${gltype}=\
$result
18389 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
18390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18391 $as_echo "$ac_res" >&6; }
18392 eval result
=\
$gl_cv_bitsizeof_${gltype}
18393 if test $result = unknown
; then
18396 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18397 cat >>confdefs.h
<<_ACEOF
18398 #define BITSIZEOF_${GLTYPE} $result
18401 eval BITSIZEOF_
${GLTYPE}=\
$result
18407 for gltype
in sig_atomic_t wchar_t wint_t
; do
18408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
18409 $as_echo_n "checking whether $gltype is signed... " >&6; }
18410 if { as_var
=gl_cv_type_
${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
18411 $as_echo_n "(cached) " >&6
18413 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18414 /* end confdefs.h. */
18416 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18417 included before <wchar.h>. */
18418 #include <stddef.h>
18419 #include <signal.h>
18421 # include <stdio.h>
18423 # include <wchar.h>
18426 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
18435 if ac_fn_c_try_compile
"$LINENO"; then :
18440 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18441 eval gl_cv_type_
${gltype}_signed
=\
$result
18444 eval ac_res
=\
$gl_cv_type_${gltype}_signed
18445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18446 $as_echo "$ac_res" >&6; }
18447 eval result
=\
$gl_cv_type_${gltype}_signed
18448 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18449 if test "$result" = yes; then
18450 cat >>confdefs.h
<<_ACEOF
18451 #define HAVE_SIGNED_${GLTYPE} 1
18454 eval HAVE_SIGNED_
${GLTYPE}=1
18456 eval HAVE_SIGNED_
${GLTYPE}=0
18461 gl_cv_type_ptrdiff_t_signed
=yes
18462 gl_cv_type_size_t_signed
=no
18463 if test $APPLE_UNIVERSAL_BUILD = 0; then
18466 for gltype
in ptrdiff_t size_t
; do
18467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
18468 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
18469 if { as_var
=gl_cv_type_
${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
18470 $as_echo_n "(cached) " >&6
18472 eval gl_cv_type_
${gltype}_suffix
=no
18473 eval result
=\
$gl_cv_type_${gltype}_signed
18474 if test "$result" = yes; then
18479 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
18481 '') gltype1
='int';;
18482 l
) gltype1
='long int';;
18483 ll
) gltype1
='long long int';;
18484 i64
) gltype1
='__int64';;
18485 u
) gltype1
='unsigned int';;
18486 ul
) gltype1
='unsigned long int';;
18487 ull
) gltype1
='unsigned long long int';;
18488 ui64
)gltype1
='unsigned __int64';;
18490 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18491 /* end confdefs.h. */
18493 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18494 included before <wchar.h>. */
18495 #include <stddef.h>
18496 #include <signal.h>
18498 # include <stdio.h>
18500 # include <wchar.h>
18503 extern $gltype foo;
18504 extern $gltype1 foo;
18513 if ac_fn_c_try_compile
"$LINENO"; then :
18514 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
18516 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18517 eval result
=\
$gl_cv_type_${gltype}_suffix
18518 test "$result" != no
&& break
18521 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
18522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18523 $as_echo "$ac_res" >&6; }
18524 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18525 eval result
=\
$gl_cv_type_${gltype}_suffix
18526 test "$result" = no
&& result
=
18527 eval ${GLTYPE}_SUFFIX
=\
$result
18528 cat >>confdefs.h
<<_ACEOF
18529 #define ${GLTYPE}_SUFFIX $result
18538 for gltype
in sig_atomic_t wchar_t wint_t
; do
18539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
18540 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
18541 if { as_var
=gl_cv_type_
${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
18542 $as_echo_n "(cached) " >&6
18544 eval gl_cv_type_
${gltype}_suffix
=no
18545 eval result
=\
$gl_cv_type_${gltype}_signed
18546 if test "$result" = yes; then
18551 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
18553 '') gltype1
='int';;
18554 l
) gltype1
='long int';;
18555 ll
) gltype1
='long long int';;
18556 i64
) gltype1
='__int64';;
18557 u
) gltype1
='unsigned int';;
18558 ul
) gltype1
='unsigned long int';;
18559 ull
) gltype1
='unsigned long long int';;
18560 ui64
)gltype1
='unsigned __int64';;
18562 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18563 /* end confdefs.h. */
18565 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18566 included before <wchar.h>. */
18567 #include <stddef.h>
18568 #include <signal.h>
18570 # include <stdio.h>
18572 # include <wchar.h>
18575 extern $gltype foo;
18576 extern $gltype1 foo;
18585 if ac_fn_c_try_compile
"$LINENO"; then :
18586 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
18588 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18589 eval result
=\
$gl_cv_type_${gltype}_suffix
18590 test "$result" != no
&& break
18593 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
18594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18595 $as_echo "$ac_res" >&6; }
18596 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18597 eval result
=\
$gl_cv_type_${gltype}_suffix
18598 test "$result" = no
&& result
=
18599 eval ${GLTYPE}_SUFFIX
=\
$result
18600 cat >>confdefs.h
<<_ACEOF
18601 #define ${GLTYPE}_SUFFIX $result
18608 if test $BITSIZEOF_WINT_T -lt 32; then
18609 BITSIZEOF_WINT_T
=32
18615 if test -n "$STDINT_H"; then
18616 GL_GENERATE_STDINT_H_TRUE
=
18617 GL_GENERATE_STDINT_H_FALSE
='#'
18619 GL_GENERATE_STDINT_H_TRUE
='#'
18620 GL_GENERATE_STDINT_H_FALSE
=
18629 GNULIB_STRTOIMAX
=0;
18630 GNULIB_STRTOUMAX
=0;
18631 HAVE_DECL_IMAXABS
=1;
18632 HAVE_DECL_IMAXDIV
=1;
18633 HAVE_DECL_STRTOIMAX
=1;
18634 HAVE_DECL_STRTOUMAX
=1;
18635 REPLACE_STRTOIMAX
=0;
18636 INT32_MAX_LT_INTMAX_MAX
=1;
18637 INT64_MAX_EQ_LONG_MAX
='defined _LP64';
18638 PRI_MACROS_BROKEN
=0;
18639 PRIPTR_PREFIX
=__PRIPTR_PREFIX
;
18640 UINT32_MAX_LT_UINTMAX_MAX
=1;
18641 UINT64_MAX_EQ_ULONG_MAX
='defined _LP64';
18657 if test $gl_cv_have_include_next = yes; then
18658 gl_cv_next_inttypes_h
='<'inttypes.h
'>'
18660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
18661 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
18662 if test "${gl_cv_next_inttypes_h+set}" = set; then :
18663 $as_echo_n "(cached) " >&6
18666 if test $ac_cv_header_inttypes_h = yes; then
18669 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18670 /* end confdefs.h. */
18671 #include <inttypes.h>
18675 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
18676 *) gl_absname_cpp
="$ac_cpp" ;;
18681 gl_dirsep_regex
='[/\\]'
18684 gl_dirsep_regex
='\/'
18687 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
18689 gl_header_literal_regex
=`echo 'inttypes.h' \
18690 | sed -e "$gl_make_literal_regex_sed"`
18691 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18692 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18697 gl_cv_next_inttypes_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18698 sed -n "$gl_absolute_header_sed"`'"'
18700 gl_cv_next_inttypes_h
='<'inttypes.h
'>'
18705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
18706 $as_echo "$gl_cv_next_inttypes_h" >&6; }
18708 NEXT_INTTYPES_H
=$gl_cv_next_inttypes_h
18710 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
18711 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18712 gl_next_as_first_directive
='<'inttypes.h
'>'
18714 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18715 gl_next_as_first_directive
=$gl_cv_next_inttypes_h
18717 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
=$gl_next_as_first_directive
18731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5
18732 $as_echo_n "checking for 64-bit off_t... " >&6; }
18733 if test "${gl_cv_type_off_t_64+set}" = set; then :
18734 $as_echo_n "(cached) " >&6
18736 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18737 /* end confdefs.h. */
18738 #include <sys/types.h>
18739 int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1];
18749 if ac_fn_c_try_compile
"$LINENO"; then :
18750 gl_cv_type_off_t_64
=yes
18752 gl_cv_type_off_t_64
=no
18754 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5
18758 $as_echo "$gl_cv_type_off_t_64" >&6; }
18759 if test $gl_cv_type_off_t_64 = no
; then
18760 WINDOWS_64_BIT_OFF_T
=1
18762 WINDOWS_64_BIT_OFF_T
=0
18764 WINDOWS_64_BIT_ST_SIZE
=1
18767 WINDOWS_64_BIT_OFF_T
=0
18768 WINDOWS_64_BIT_ST_SIZE
=0
18785 GNULIB_UTIMENSAT
=0;
18799 REPLACE_FUTIMENS
=0;
18805 REPLACE_UTIMENSAT
=0;
18810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
18811 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
18812 if test "${gl_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
18813 $as_echo_n "(cached) " >&6
18815 rm -f conftest.sym conftest.
file
18816 echo >conftest.
file
18817 if test "$as_ln_s" = "ln -s" && ln -s conftest.
file conftest.sym
; then
18818 if test "$cross_compiling" = yes; then :
18820 # Guess yes on glibc systems.
18821 *-gnu*) gl_cv_func_lstat_dereferences_slashed_symlink
="guessing yes" ;;
18822 # If we don't know, assume the worst.
18823 *) gl_cv_func_lstat_dereferences_slashed_symlink
="guessing no" ;;
18827 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18828 /* end confdefs.h. */
18829 $ac_includes_default
18834 /* Linux will dereference the symlink and fail, as required by
18835 POSIX. That is better in the sense that it means we will not
18836 have to compile and use the lstat wrapper. */
18837 return lstat ("conftest.sym/", &sbuf) == 0;
18843 if ac_fn_c_try_run
"$LINENO"; then :
18844 gl_cv_func_lstat_dereferences_slashed_symlink
=yes
18846 gl_cv_func_lstat_dereferences_slashed_symlink
=no
18848 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18849 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18853 # If the 'ln -s' command failed, then we probably don't even
18854 # have an lstat function.
18855 gl_cv_func_lstat_dereferences_slashed_symlink
="guessing no"
18857 rm -f conftest.sym conftest.
file
18860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
18861 $as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
18862 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
18865 cat >>confdefs.h
<<_ACEOF
18866 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
18874 GNULIB_NANOSLEEP
=0;
18878 HAVE_DECL_LOCALTIME_R
=1;
18882 REPLACE_LOCALTIME_R
=GNULIB_PORTCHECK
;
18883 REPLACE_MKTIME
=GNULIB_PORTCHECK
;
18884 REPLACE_NANOSLEEP
=GNULIB_PORTCHECK
;
18885 REPLACE_TIMEGM
=GNULIB_PORTCHECK
;
18901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/select.h> is self-contained" >&5
18902 $as_echo_n "checking whether <sys/select.h> is self-contained... " >&6; }
18903 if test "${gl_cv_header_sys_select_h_selfcontained+set}" = set; then :
18904 $as_echo_n "(cached) " >&6
18907 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18908 /* end confdefs.h. */
18909 #include <sys/select.h>
18918 if ac_fn_c_try_compile
"$LINENO"; then :
18919 gl_cv_header_sys_select_h_selfcontained
=yes
18921 gl_cv_header_sys_select_h_selfcontained
=no
18923 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18924 if test $gl_cv_header_sys_select_h_selfcontained = yes; then
18925 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18926 /* end confdefs.h. */
18927 #include <sys/select.h>
18931 int memset; int bzero;
18937 if ac_fn_c_try_compile
"$LINENO"; then :
18938 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18939 /* end confdefs.h. */
18940 #include <sys/select.h>
18946 #define memset nonexistent_memset
18951 void *memset (void *, int, unsigned long);
18953 #define bzero nonexistent_bzero
18958 void bzero (void *, unsigned long);
18967 if ac_fn_c_try_link
"$LINENO"; then :
18970 gl_cv_header_sys_select_h_selfcontained
=no
18972 rm -f core conftest.err conftest.
$ac_objext \
18973 conftest
$ac_exeext conftest.
$ac_ext
18976 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_selfcontained" >&5
18981 $as_echo "$gl_cv_header_sys_select_h_selfcontained" >&6; }
18991 if test $gl_cv_have_include_next = yes; then
18992 gl_cv_next_sys_select_h
='<'sys
/select.h
'>'
18994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/select.h>" >&5
18995 $as_echo_n "checking absolute name of <sys/select.h>... " >&6; }
18996 if test "${gl_cv_next_sys_select_h+set}" = set; then :
18997 $as_echo_n "(cached) " >&6
19000 if test $ac_cv_header_sys_select_h = yes; then
19003 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19004 /* end confdefs.h. */
19005 #include <sys/select.h>
19009 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
19010 *) gl_absname_cpp
="$ac_cpp" ;;
19015 gl_dirsep_regex
='[/\\]'
19018 gl_dirsep_regex
='\/'
19021 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
19023 gl_header_literal_regex
=`echo 'sys/select.h' \
19024 | sed -e "$gl_make_literal_regex_sed"`
19025 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19026 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19031 gl_cv_next_sys_select_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19032 sed -n "$gl_absolute_header_sed"`'"'
19034 gl_cv_next_sys_select_h
='<'sys
/select.h
'>'
19039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_select_h" >&5
19040 $as_echo "$gl_cv_next_sys_select_h" >&6; }
19042 NEXT_SYS_SELECT_H
=$gl_cv_next_sys_select_h
19044 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
19045 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19046 gl_next_as_first_directive
='<'sys
/select.h
'>'
19048 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19049 gl_next_as_first_directive
=$gl_cv_next_sys_select_h
19051 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H
=$gl_next_as_first_directive
19056 if test $ac_cv_header_sys_select_h = yes; then
19057 HAVE_SYS_SELECT_H
=1
19059 HAVE_SYS_SELECT_H
=0
19066 if test $ac_cv_header_sys_socket_h != yes; then
19067 for ac_header
in winsock2.h
19069 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
19070 if test "x$ac_cv_header_winsock2_h" = x
""yes; then :
19071 cat >>confdefs.h
<<_ACEOF
19072 #define HAVE_WINSOCK2_H 1
19080 if test "$ac_cv_header_winsock2_h" = yes; then
19082 UNISTD_H_HAVE_WINSOCK2_H
=1
19083 SYS_IOCTL_H_HAVE_WINSOCK2_H
=1
19095 GNULIB_PTHREAD_SIGMASK
=0;
19097 GNULIB_SIGNAL_H_SIGPIPE
=0;
19098 GNULIB_SIGPROCMASK
=0;
19099 GNULIB_SIGACTION
=0;
19100 HAVE_POSIX_SIGNALBLOCKING
=1;
19101 HAVE_PTHREAD_SIGMASK
=1;
19106 HAVE_STRUCT_SIGACTION_SA_SIGACTION
=1;
19108 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
=1;
19110 HAVE_SIGHANDLER_T
=1;
19111 REPLACE_PTHREAD_SIGMASK
=0;
19119 ac_fn_c_check_type
"$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
19120 #include <signal.h>
19121 /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */
19122 #include <sys/types.h>
19125 if test "x$ac_cv_type_sigset_t" = x
""yes; then :
19127 cat >>confdefs.h
<<_ACEOF
19128 #define HAVE_SIGSET_T 1
19131 gl_cv_type_sigset_t
=yes
19133 gl_cv_type_sigset_t
=no
19136 if test $gl_cv_type_sigset_t != yes; then
19142 if test $ac_cv_header_sys_socket_h = no
; then
19143 for ac_header
in ws2tcpip.h
19145 ac_fn_c_check_header_mongrel
"$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
19146 if test "x$ac_cv_header_ws2tcpip_h" = x
""yes; then :
19147 cat >>confdefs.h
<<_ACEOF
19148 #define HAVE_WS2TCPIP_H 1
19157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
19158 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
19159 if test "${ac_cv_header_stdbool_h+set}" = set; then :
19160 $as_echo_n "(cached) " >&6
19162 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19163 /* end confdefs.h. */
19165 #include <stdbool.h>
19167 "error: bool is not defined"
19170 "error: false is not defined"
19173 "error: false is not 0"
19176 "error: true is not defined"
19179 "error: true is not 1"
19181 #ifndef __bool_true_false_are_defined
19182 "error: __bool_true_false_are_defined is not defined"
19185 struct s { _Bool s: 1; _Bool t; } s;
19187 char a[true == 1 ? 1 : -1];
19188 char b[false == 0 ? 1 : -1];
19189 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
19190 char d[(bool) 0.5 == true ? 1 : -1];
19191 /* See body of main program for 'e'. */
19192 char f[(_Bool) 0.0 == false ? 1 : -1];
19194 char h[sizeof (_Bool)];
19195 char i[sizeof s.t];
19196 enum { j = false, k = true, l = false * true, m = true * 256 };
19197 /* The following fails for
19198 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
19200 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
19201 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
19202 /* Catch a bug in an HP-UX C compiler. See
19203 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
19204 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
19216 /* Refer to every declared value, to avoid compiler optimizations. */
19217 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
19218 + !m + !n + !o + !p + !q + !pq);
19224 if ac_fn_c_try_compile
"$LINENO"; then :
19225 ac_cv_header_stdbool_h
=yes
19227 ac_cv_header_stdbool_h
=no
19229 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
19232 $as_echo "$ac_cv_header_stdbool_h" >&6; }
19233 ac_fn_c_check_type
"$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
19234 if test "x$ac_cv_type__Bool" = x
""yes; then :
19236 cat >>confdefs.h
<<_ACEOF
19237 #define HAVE__BOOL 1
19249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
19250 $as_echo_n "checking for wchar_t... " >&6; }
19251 if test "${gt_cv_c_wchar_t+set}" = set; then :
19252 $as_echo_n "(cached) " >&6
19254 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19255 /* end confdefs.h. */
19256 #include <stddef.h>
19257 wchar_t foo = (wchar_t)'\0';
19266 if ac_fn_c_try_compile
"$LINENO"; then :
19267 gt_cv_c_wchar_t
=yes
19271 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
19274 $as_echo "$gt_cv_c_wchar_t" >&6; }
19275 if test $gt_cv_c_wchar_t = yes; then
19277 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
19290 GNULIB_FPRINTF_POSIX
=0;
19306 GNULIB_OBSTACK_PRINTF
=0;
19307 GNULIB_OBSTACK_PRINTF_POSIX
=0;
19312 GNULIB_PRINTF_POSIX
=0;
19321 GNULIB_SPRINTF_POSIX
=0;
19322 GNULIB_STDIO_H_NONBLOCKING
=0;
19323 GNULIB_STDIO_H_SIGPIPE
=0;
19325 GNULIB_VASPRINTF
=0;
19330 GNULIB_VFPRINTF_POSIX
=0;
19332 GNULIB_VPRINTF_POSIX
=0;
19333 GNULIB_VSNPRINTF
=0;
19334 GNULIB_VSPRINTF_POSIX
=0;
19335 HAVE_DECL_FPURGE
=1;
19336 HAVE_DECL_FSEEKO
=1;
19337 HAVE_DECL_FTELLO
=1;
19338 HAVE_DECL_GETDELIM
=1;
19339 HAVE_DECL_GETLINE
=1;
19340 HAVE_DECL_OBSTACK_PRINTF
=1;
19341 HAVE_DECL_SNPRINTF
=1;
19342 HAVE_DECL_VSNPRINTF
=1;
19363 REPLACE_GETDELIM
=0;
19365 REPLACE_OBSTACK_PRINTF
=0;
19371 REPLACE_RENAMEAT
=0;
19372 REPLACE_SNPRINTF
=0;
19374 REPLACE_STDIO_READ_FUNCS
=0;
19375 REPLACE_STDIO_WRITE_FUNCS
=0;
19377 REPLACE_VASPRINTF
=0;
19378 REPLACE_VDPRINTF
=0;
19379 REPLACE_VFPRINTF
=0;
19381 REPLACE_VSNPRINTF
=0;
19382 REPLACE_VSPRINTF
=0;
19384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
19385 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
19386 if test "${ac_cv_struct_tm+set}" = set; then :
19387 $as_echo_n "(cached) " >&6
19389 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19390 /* end confdefs.h. */
19391 #include <sys/types.h>
19398 int *p = &tm.tm_sec;
19404 if ac_fn_c_try_compile
"$LINENO"; then :
19405 ac_cv_struct_tm
=time.h
19407 ac_cv_struct_tm
=sys
/time.h
19409 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
19412 $as_echo "$ac_cv_struct_tm" >&6; }
19413 if test $ac_cv_struct_tm = sys
/time.h
; then
19415 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
19419 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
19420 #include <$ac_cv_struct_tm>
19423 if test "x$ac_cv_member_struct_tm_tm_zone" = x
""yes; then :
19425 cat >>confdefs.h
<<_ACEOF
19426 #define HAVE_STRUCT_TM_TM_ZONE 1
19432 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
19434 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
19437 ac_fn_c_check_decl
"$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
19439 if test "x$ac_cv_have_decl_tzname" = x
""yes; then :
19445 cat >>confdefs.h
<<_ACEOF
19446 #define HAVE_DECL_TZNAME $ac_have_decl
19449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
19450 $as_echo_n "checking for tzname... " >&6; }
19451 if test "${ac_cv_var_tzname+set}" = set; then :
19452 $as_echo_n "(cached) " >&6
19454 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19455 /* end confdefs.h. */
19457 #if !HAVE_DECL_TZNAME
19458 extern char *tzname[];
19464 return tzname[0][0];
19469 if ac_fn_c_try_link
"$LINENO"; then :
19470 ac_cv_var_tzname
=yes
19472 ac_cv_var_tzname
=no
19474 rm -f core conftest.err conftest.
$ac_objext \
19475 conftest
$ac_exeext conftest.
$ac_ext
19477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
19478 $as_echo "$ac_cv_var_tzname" >&6; }
19479 if test $ac_cv_var_tzname = yes; then
19481 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
19487 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
19489 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x
""yes; then :
19491 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
19498 ac_fn_c_check_decl
"$LINENO" "strtoimax" "ac_cv_have_decl_strtoimax" "$ac_includes_default"
19499 if test "x$ac_cv_have_decl_strtoimax" = x
""yes; then :
19505 cat >>confdefs.h
<<_ACEOF
19506 #define HAVE_DECL_STRTOIMAX $ac_have_decl
19511 ac_fn_c_check_decl
"$LINENO" "strtoumax" "ac_cv_have_decl_strtoumax" "$ac_includes_default"
19512 if test "x$ac_cv_have_decl_strtoumax" = x
""yes; then :
19518 cat >>confdefs.h
<<_ACEOF
19519 #define HAVE_DECL_STRTOUMAX $ac_have_decl
19524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
19525 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
19526 if test "${ac_cv_header_stat_broken+set}" = set; then :
19527 $as_echo_n "(cached) " >&6
19529 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19530 /* end confdefs.h. */
19531 #include <sys/types.h>
19532 #include <sys/stat.h>
19534 #if defined S_ISBLK && defined S_IFDIR
19535 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
19538 #if defined S_ISBLK && defined S_IFCHR
19539 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
19542 #if defined S_ISLNK && defined S_IFREG
19543 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
19546 #if defined S_ISSOCK && defined S_IFREG
19547 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
19551 if ac_fn_c_try_compile
"$LINENO"; then :
19552 ac_cv_header_stat_broken
=no
19554 ac_cv_header_stat_broken
=yes
19556 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
19559 $as_echo "$ac_cv_header_stat_broken" >&6; }
19560 if test $ac_cv_header_stat_broken = yes; then
19562 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
19568 ac_fn_c_check_type
"$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
19569 if test "x$ac_cv_type_mode_t" = x
""yes; then :
19573 cat >>confdefs.h
<<_ACEOF
19581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
19582 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
19583 if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then :
19584 $as_echo_n "(cached) " >&6
19586 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19587 /* end confdefs.h. */
19593 static struct timespec x; x.tv_sec = x.tv_nsec;
19598 if ac_fn_c_try_compile
"$LINENO"; then :
19599 gl_cv_sys_struct_timespec_in_time_h
=yes
19601 gl_cv_sys_struct_timespec_in_time_h
=no
19603 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
19606 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
19608 TIME_H_DEFINES_STRUCT_TIMESPEC
=0
19609 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
=0
19610 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
=0
19611 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
19612 TIME_H_DEFINES_STRUCT_TIMESPEC
=1
19614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
19615 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
19616 if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then :
19617 $as_echo_n "(cached) " >&6
19619 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19620 /* end confdefs.h. */
19621 #include <sys/time.h>
19626 static struct timespec x; x.tv_sec = x.tv_nsec;
19631 if ac_fn_c_try_compile
"$LINENO"; then :
19632 gl_cv_sys_struct_timespec_in_sys_time_h
=yes
19634 gl_cv_sys_struct_timespec_in_sys_time_h
=no
19636 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
19639 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
19640 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
19641 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
=1
19643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
19644 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
19645 if test "${gl_cv_sys_struct_timespec_in_pthread_h+set}" = set; then :
19646 $as_echo_n "(cached) " >&6
19648 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19649 /* end confdefs.h. */
19650 #include <pthread.h>
19655 static struct timespec x; x.tv_sec = x.tv_nsec;
19660 if ac_fn_c_try_compile
"$LINENO"; then :
19661 gl_cv_sys_struct_timespec_in_pthread_h
=yes
19663 gl_cv_sys_struct_timespec_in_pthread_h
=no
19665 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
19668 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
19669 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
19670 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
=1
19689 if test $gl_cv_have_include_next = yes; then
19690 gl_cv_next_time_h
='<'time.h
'>'
19692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
19693 $as_echo_n "checking absolute name of <time.h>... " >&6; }
19694 if test "${gl_cv_next_time_h+set}" = set; then :
19695 $as_echo_n "(cached) " >&6
19698 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19699 /* end confdefs.h. */
19704 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
19705 *) gl_absname_cpp
="$ac_cpp" ;;
19710 gl_dirsep_regex
='[/\\]'
19713 gl_dirsep_regex
='\/'
19716 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
19718 gl_header_literal_regex
=`echo 'time.h' \
19719 | sed -e "$gl_make_literal_regex_sed"`
19720 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19721 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19726 gl_cv_next_time_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19727 sed -n "$gl_absolute_header_sed"`'"'
19731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
19732 $as_echo "$gl_cv_next_time_h" >&6; }
19734 NEXT_TIME_H
=$gl_cv_next_time_h
19736 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
19737 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19738 gl_next_as_first_directive
='<'time.h
'>'
19740 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19741 gl_next_as_first_directive
=$gl_cv_next_time_h
19743 NEXT_AS_FIRST_DIRECTIVE_TIME_H
=$gl_next_as_first_directive
19759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the utimes function works" >&5
19760 $as_echo_n "checking whether the utimes function works... " >&6; }
19761 if test "${gl_cv_func_working_utimes+set}" = set; then :
19762 $as_echo_n "(cached) " >&6
19765 if test "$cross_compiling" = yes; then :
19766 gl_cv_func_working_utimes
=no
19768 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19769 /* end confdefs.h. */
19771 #include <sys/types.h>
19772 #include <sys/stat.h>
19774 #include <sys/time.h>
19776 #include <unistd.h>
19777 #include <stdlib.h>
19782 inorder (time_t a, time_t b, time_t c)
19784 return a <= b && b <= c;
19791 char const *file = "conftest.utimes";
19792 static struct timeval timeval[2] = {{9, 10}, {999999, 999999}};
19794 /* Test whether utimes() essentially works. */
19797 FILE *f = fopen (file, "w");
19800 else if (fclose (f) != 0)
19802 else if (utimes (file, timeval) != 0)
19804 else if (lstat (file, &sbuf) != 0)
19806 else if (!(sbuf.st_atime == timeval[0].tv_sec
19807 && sbuf.st_mtime == timeval[1].tv_sec))
19809 if (unlink (file) != 0)
19813 /* Test whether utimes() with a NULL argument sets the file's timestamp
19814 to the current time. Use 'fstat' as well as 'time' to
19815 determine the "current" time, to accommodate NFS file systems
19816 if there is a time skew between the host and the NFS server. */
19818 int fd = open (file, O_WRONLY|O_CREAT, 0644);
19824 struct stat st0, st1, st2;
19825 if (time (&t0) == (time_t) -1)
19827 else if (fstat (fd, &st0) != 0)
19829 else if (utimes (file, timeval) != 0)
19831 else if (utimes (file, NULL) != 0)
19833 else if (fstat (fd, &st1) != 0)
19835 else if (write (fd, "\n", 1) != 1)
19837 else if (fstat (fd, &st2) != 0)
19839 else if (time (&t2) == (time_t) -1)
19843 int m_ok_POSIX = inorder (t0, st1.st_mtime, t2);
19844 int m_ok_NFS = inorder (st0.st_mtime, st1.st_mtime, st2.st_mtime);
19845 if (! (st1.st_atime == st1.st_mtime))
19847 if (! (m_ok_POSIX || m_ok_NFS))
19850 if (close (fd) != 0)
19853 if (unlink (file) != 0)
19857 /* Test whether utimes() with a NULL argument works on read-only files. */
19859 int fd = open (file, O_WRONLY|O_CREAT, 0444);
19862 else if (close (fd) != 0)
19864 else if (utimes (file, NULL) != 0)
19866 if (unlink (file) != 0)
19874 if ac_fn_c_try_run
"$LINENO"; then :
19875 gl_cv_func_working_utimes
=yes
19877 gl_cv_func_working_utimes
=no
19879 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19880 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_utimes" >&5
19885 $as_echo "$gl_cv_func_working_utimes" >&6; }
19887 if test $gl_cv_func_working_utimes = yes; then
19889 $as_echo "#define HAVE_WORKING_UTIMES 1" >>confdefs.h
19897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
19898 $as_echo_n "checking for struct utimbuf... " >&6; }
19899 if test "${gl_cv_sys_struct_utimbuf+set}" = set; then :
19900 $as_echo_n "(cached) " >&6
19902 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19903 /* end confdefs.h. */
19904 #if HAVE_SYS_TIME_H
19905 #include <sys/time.h>
19908 #ifdef HAVE_UTIME_H
19915 static struct utimbuf x; x.actime = x.modtime;
19920 if ac_fn_c_try_compile
"$LINENO"; then :
19921 gl_cv_sys_struct_utimbuf
=yes
19923 gl_cv_sys_struct_utimbuf
=no
19925 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_utimbuf" >&5
19928 $as_echo "$gl_cv_sys_struct_utimbuf" >&6; }
19930 if test $gl_cv_sys_struct_utimbuf = yes; then
19932 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
19948 GL_COND_LIBTOOL_TRUE
=
19949 GL_COND_LIBTOOL_FALSE
='#'
19951 GL_COND_LIBTOOL_TRUE
='#'
19952 GL_COND_LIBTOOL_FALSE
=
19955 gl_cond_libtool
=false
19968 gl_source_base
='lib'
19971 if test $ac_cv_func_alloca_works = no
; then
19975 # Define an additional variable used in the Makefile substitution.
19976 if test $ac_cv_working_alloca_h = yes; then
19977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
19978 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
19979 if test "${gl_cv_rpl_alloca+set}" = set; then :
19980 $as_echo_n "(cached) " >&6
19983 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19984 /* end confdefs.h. */
19986 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
19991 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19992 $EGREP "Need own alloca" >/dev
/null
2>&1; then :
19993 gl_cv_rpl_alloca
=yes
19995 gl_cv_rpl_alloca
=no
20001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
20002 $as_echo "$gl_cv_rpl_alloca" >&6; }
20003 if test $gl_cv_rpl_alloca = yes; then
20005 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
20015 if test -n "$ALLOCA_H"; then
20016 GL_GENERATE_ALLOCA_H_TRUE
=
20017 GL_GENERATE_ALLOCA_H_FALSE
='#'
20019 GL_GENERATE_ALLOCA_H_TRUE
='#'
20020 GL_GENERATE_ALLOCA_H_FALSE
=
20028 # Solaris 2.5.1 needs -lposix4 to get the clock_gettime function.
20029 # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
20031 # Save and restore LIBS so e.g., -lrt, isn't added to it. Otherwise, *all*
20032 # programs in the package would end up linked with that potentially-shared
20033 # library, inducing unnecessary run-time overhead.
20036 gl_saved_libs
=$LIBS
20037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
20038 $as_echo_n "checking for library containing clock_gettime... " >&6; }
20039 if test "${ac_cv_search_clock_gettime+set}" = set; then :
20040 $as_echo_n "(cached) " >&6
20042 ac_func_search_save_LIBS
=$LIBS
20043 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20044 /* end confdefs.h. */
20046 /* Override any GCC internal prototype to avoid an error.
20047 Use char because int might match the return type of a GCC
20048 builtin and then its argument prototype would still apply. */
20052 char clock_gettime ();
20056 return clock_gettime ();
20061 for ac_lib
in '' rt posix4
; do
20062 if test -z "$ac_lib"; then
20063 ac_res
="none required"
20066 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
20068 if ac_fn_c_try_link
"$LINENO"; then :
20069 ac_cv_search_clock_gettime
=$ac_res
20071 rm -f core conftest.err conftest.
$ac_objext \
20073 if test "${ac_cv_search_clock_gettime+set}" = set; then :
20077 if test "${ac_cv_search_clock_gettime+set}" = set; then :
20080 ac_cv_search_clock_gettime
=no
20082 rm conftest.
$ac_ext
20083 LIBS
=$ac_func_search_save_LIBS
20085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
20086 $as_echo "$ac_cv_search_clock_gettime" >&6; }
20087 ac_res
=$ac_cv_search_clock_gettime
20088 if test "$ac_res" != no
; then :
20089 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
20090 test "$ac_cv_search_clock_gettime" = "none required" ||
20091 LIB_CLOCK_GETTIME
=$ac_cv_search_clock_gettime
20094 for ac_func
in clock_gettime clock_settime
20096 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20097 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
20098 eval as_val
=\$
$as_ac_var
20099 if test "x$as_val" = x
""yes; then :
20100 cat >>confdefs.h
<<_ACEOF
20101 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20107 LIBS
=$gl_saved_libs
20133 $as_echo "#define HAVE_DUP2 1" >>confdefs.h
20136 if test $HAVE_DUP2 = 1; then
20137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5
20138 $as_echo_n "checking whether dup2 works... " >&6; }
20139 if test "${gl_cv_func_dup2_works+set}" = set; then :
20140 $as_echo_n "(cached) " >&6
20142 if test "$cross_compiling" = yes; then :
20144 mingw
*) # on this platform, dup2 always returns 0 for success
20145 gl_cv_func_dup2_works
="guessing no" ;;
20146 cygwin
*) # on cygwin 1.5.x, dup2(1,1) returns 0
20147 gl_cv_func_dup2_works
="guessing no" ;;
20148 linux
*) # On linux between 2008-07-27 and 2009-05-11, dup2 of a
20149 # closed fd may yield -EBADF instead of -1 / errno=EBADF.
20150 gl_cv_func_dup2_works
="guessing no" ;;
20151 freebsd
*) # on FreeBSD 6.1, dup2(1,1000000) gives EMFILE, not EBADF.
20152 gl_cv_func_dup2_works
="guessing no" ;;
20153 haiku
*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC.
20154 gl_cv_func_dup2_works
="guessing no" ;;
20155 *) gl_cv_func_dup2_works
="guessing yes" ;;
20158 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20159 /* end confdefs.h. */
20161 #include <unistd.h>
20169 if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1)
20172 if (dup2 (1, 1) == 0)
20175 if (fcntl (1, F_GETFD) != FD_CLOEXEC)
20179 if (dup2 (0, 0) != -1)
20181 /* Many gnulib modules require POSIX conformance of EBADF. */
20182 if (dup2 (2, 1000000) == -1 && errno != EBADF)
20191 if ac_fn_c_try_run
"$LINENO"; then :
20192 gl_cv_func_dup2_works
=yes
20194 gl_cv_func_dup2_works
=no
20196 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20197 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5
20203 $as_echo "$gl_cv_func_dup2_works" >&6; }
20204 case "$gl_cv_func_dup2_works" in
20213 if test $HAVE_DUP2 = 0 ||
test $REPLACE_DUP2 = 1; then
20222 gl_LIBOBJS
="$gl_LIBOBJS dup2.$ac_objext"
20253 EXECINFO_H
='execinfo.h'
20255 if test $ac_cv_header_execinfo_h = yes; then
20256 gl_saved_libs
=$LIBS
20257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing backtrace_symbols_fd" >&5
20258 $as_echo_n "checking for library containing backtrace_symbols_fd... " >&6; }
20259 if test "${ac_cv_search_backtrace_symbols_fd+set}" = set; then :
20260 $as_echo_n "(cached) " >&6
20262 ac_func_search_save_LIBS
=$LIBS
20263 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20264 /* end confdefs.h. */
20266 /* Override any GCC internal prototype to avoid an error.
20267 Use char because int might match the return type of a GCC
20268 builtin and then its argument prototype would still apply. */
20272 char backtrace_symbols_fd ();
20276 return backtrace_symbols_fd ();
20281 for ac_lib
in '' execinfo
; do
20282 if test -z "$ac_lib"; then
20283 ac_res
="none required"
20286 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
20288 if ac_fn_c_try_link
"$LINENO"; then :
20289 ac_cv_search_backtrace_symbols_fd
=$ac_res
20291 rm -f core conftest.err conftest.
$ac_objext \
20293 if test "${ac_cv_search_backtrace_symbols_fd+set}" = set; then :
20297 if test "${ac_cv_search_backtrace_symbols_fd+set}" = set; then :
20300 ac_cv_search_backtrace_symbols_fd
=no
20302 rm conftest.
$ac_ext
20303 LIBS
=$ac_func_search_save_LIBS
20305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_backtrace_symbols_fd" >&5
20306 $as_echo "$ac_cv_search_backtrace_symbols_fd" >&6; }
20307 ac_res
=$ac_cv_search_backtrace_symbols_fd
20308 if test "$ac_res" != no
; then :
20309 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
20310 test "$ac_cv_search_backtrace_symbols_fd" = "none required" ||
20311 LIB_EXECINFO
=$ac_cv_search_backtrace_symbols_fd
20314 LIBS
=$gl_saved_libs
20315 test "$ac_cv_search_backtrace_symbols_fd" = no || EXECINFO_H
=''
20318 if test -n "$EXECINFO_H"; then
20327 gl_LIBOBJS
="$gl_LIBOBJS execinfo.$ac_objext"
20333 if test -n "$EXECINFO_H"; then
20334 GL_GENERATE_EXECINFO_H_TRUE
=
20335 GL_GENERATE_EXECINFO_H_FALSE
='#'
20337 GL_GENERATE_EXECINFO_H_TRUE
='#'
20338 GL_GENERATE_EXECINFO_H_FALSE
=
20349 # Persuade glibc <stdlib.h> to declare getloadavg().
20354 # getloadvg is present in libc on glibc >= 2.2, Mac OS X, FreeBSD >= 2.0,
20355 # NetBSD >= 0.9, OpenBSD >= 2.0, Solaris >= 7.
20357 ac_fn_c_check_func
"$LINENO" "getloadavg" "ac_cv_func_getloadavg"
20358 if test "x$ac_cv_func_getloadavg" = x
""yes; then :
20361 gl_func_getloadavg_done
=no
20363 # Some systems with -lutil have (and need) -lkvm as well, some do not.
20364 # On Solaris, -lkvm requires nlist from -lelf, so check that first
20365 # to get the right answer into the cache.
20366 # For kstat on solaris, we need to test for libelf and libkvm to force the
20367 # definition of SVR4 below.
20368 if test $gl_func_getloadavg_done = no
; then
20369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
20370 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
20371 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then :
20372 $as_echo_n "(cached) " >&6
20374 ac_check_lib_save_LIBS
=$LIBS
20376 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20377 /* end confdefs.h. */
20379 /* Override any GCC internal prototype to avoid an error.
20380 Use char because int might match the return type of a GCC
20381 builtin and then its argument prototype would still apply. */
20389 return elf_begin ();
20394 if ac_fn_c_try_link
"$LINENO"; then :
20395 ac_cv_lib_elf_elf_begin
=yes
20397 ac_cv_lib_elf_elf_begin
=no
20399 rm -f core conftest.err conftest.
$ac_objext \
20400 conftest
$ac_exeext conftest.
$ac_ext
20401 LIBS
=$ac_check_lib_save_LIBS
20403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
20404 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
20405 if test "x$ac_cv_lib_elf_elf_begin" = x
""yes; then :
20409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
20410 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
20411 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then :
20412 $as_echo_n "(cached) " >&6
20414 ac_check_lib_save_LIBS
=$LIBS
20416 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20417 /* end confdefs.h. */
20419 /* Override any GCC internal prototype to avoid an error.
20420 Use char because int might match the return type of a GCC
20421 builtin and then its argument prototype would still apply. */
20429 return kvm_open ();
20434 if ac_fn_c_try_link
"$LINENO"; then :
20435 ac_cv_lib_kvm_kvm_open
=yes
20437 ac_cv_lib_kvm_kvm_open
=no
20439 rm -f core conftest.err conftest.
$ac_objext \
20440 conftest
$ac_exeext conftest.
$ac_ext
20441 LIBS
=$ac_check_lib_save_LIBS
20443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
20444 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
20445 if test "x$ac_cv_lib_kvm_kvm_open" = x
""yes; then :
20449 # Check for the 4.4BSD definition of getloadavg.
20450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
20451 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
20452 if test "${ac_cv_lib_util_getloadavg+set}" = set; then :
20453 $as_echo_n "(cached) " >&6
20455 ac_check_lib_save_LIBS
=$LIBS
20456 LIBS
="-lutil $LIBS"
20457 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20458 /* end confdefs.h. */
20460 /* Override any GCC internal prototype to avoid an error.
20461 Use char because int might match the return type of a GCC
20462 builtin and then its argument prototype would still apply. */
20466 char getloadavg ();
20470 return getloadavg ();
20475 if ac_fn_c_try_link
"$LINENO"; then :
20476 ac_cv_lib_util_getloadavg
=yes
20478 ac_cv_lib_util_getloadavg
=no
20480 rm -f core conftest.err conftest.
$ac_objext \
20481 conftest
$ac_exeext conftest.
$ac_ext
20482 LIBS
=$ac_check_lib_save_LIBS
20484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
20485 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
20486 if test "x$ac_cv_lib_util_getloadavg" = x
""yes; then :
20487 LIBS
="-lutil $LIBS" gl_func_getloadavg_done
=yes
20492 if test $gl_func_getloadavg_done = no
; then
20493 # There is a commonly available library for RS/6000 AIX.
20494 # Since it is not a standard part of AIX, it might be installed locally.
20495 gl_getloadavg_LIBS
=$LIBS
20496 LIBS
="-L/usr/local/lib $LIBS"
20497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
20498 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
20499 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then :
20500 $as_echo_n "(cached) " >&6
20502 ac_check_lib_save_LIBS
=$LIBS
20503 LIBS
="-lgetloadavg $LIBS"
20504 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20505 /* end confdefs.h. */
20507 /* Override any GCC internal prototype to avoid an error.
20508 Use char because int might match the return type of a GCC
20509 builtin and then its argument prototype would still apply. */
20513 char getloadavg ();
20517 return getloadavg ();
20522 if ac_fn_c_try_link
"$LINENO"; then :
20523 ac_cv_lib_getloadavg_getloadavg
=yes
20525 ac_cv_lib_getloadavg_getloadavg
=no
20527 rm -f core conftest.err conftest.
$ac_objext \
20528 conftest
$ac_exeext conftest.
$ac_ext
20529 LIBS
=$ac_check_lib_save_LIBS
20531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
20532 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
20533 if test "x$ac_cv_lib_getloadavg_getloadavg" = x
""yes; then :
20534 LIBS
="-lgetloadavg $LIBS" gl_func_getloadavg_done
=yes
20536 LIBS
=$gl_getloadavg_LIBS
20541 # Set up the replacement function if necessary.
20542 if test $gl_func_getloadavg_done = no
; then
20545 # Solaris has libkstat which does not require root.
20546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
20547 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
20548 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
20549 $as_echo_n "(cached) " >&6
20551 ac_check_lib_save_LIBS
=$LIBS
20552 LIBS
="-lkstat $LIBS"
20553 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20554 /* end confdefs.h. */
20556 /* Override any GCC internal prototype to avoid an error.
20557 Use char because int might match the return type of a GCC
20558 builtin and then its argument prototype would still apply. */
20562 char kstat_open ();
20566 return kstat_open ();
20571 if ac_fn_c_try_link
"$LINENO"; then :
20572 ac_cv_lib_kstat_kstat_open
=yes
20574 ac_cv_lib_kstat_kstat_open
=no
20576 rm -f core conftest.err conftest.
$ac_objext \
20577 conftest
$ac_exeext conftest.
$ac_ext
20578 LIBS
=$ac_check_lib_save_LIBS
20580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
20581 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
20582 if test "x$ac_cv_lib_kstat_kstat_open" = x
""yes; then :
20583 cat >>confdefs.h
<<_ACEOF
20584 #define HAVE_LIBKSTAT 1
20587 LIBS
="-lkstat $LIBS"
20591 test $ac_cv_lib_kstat_kstat_open = yes && gl_func_getloadavg_done
=yes
20593 # AIX has libperfstat which does not require root
20594 if test $gl_func_getloadavg_done = no
; then
20595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perfstat_cpu_total in -lperfstat" >&5
20596 $as_echo_n "checking for perfstat_cpu_total in -lperfstat... " >&6; }
20597 if test "${ac_cv_lib_perfstat_perfstat_cpu_total+set}" = set; then :
20598 $as_echo_n "(cached) " >&6
20600 ac_check_lib_save_LIBS
=$LIBS
20601 LIBS
="-lperfstat $LIBS"
20602 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20603 /* end confdefs.h. */
20605 /* Override any GCC internal prototype to avoid an error.
20606 Use char because int might match the return type of a GCC
20607 builtin and then its argument prototype would still apply. */
20611 char perfstat_cpu_total ();
20615 return perfstat_cpu_total ();
20620 if ac_fn_c_try_link
"$LINENO"; then :
20621 ac_cv_lib_perfstat_perfstat_cpu_total
=yes
20623 ac_cv_lib_perfstat_perfstat_cpu_total
=no
20625 rm -f core conftest.err conftest.
$ac_objext \
20626 conftest
$ac_exeext conftest.
$ac_ext
20627 LIBS
=$ac_check_lib_save_LIBS
20629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_perfstat_perfstat_cpu_total" >&5
20630 $as_echo "$ac_cv_lib_perfstat_perfstat_cpu_total" >&6; }
20631 if test "x$ac_cv_lib_perfstat_perfstat_cpu_total" = x
""yes; then :
20632 cat >>confdefs.h
<<_ACEOF
20633 #define HAVE_LIBPERFSTAT 1
20636 LIBS
="-lperfstat $LIBS"
20640 test $ac_cv_lib_perfstat_perfstat_cpu_total = yes && gl_func_getloadavg_done
=yes
20643 if test $gl_func_getloadavg_done = no
; then
20644 ac_fn_c_check_header_mongrel
"$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
20645 if test "x$ac_cv_header_sys_dg_sys_info_h" = x
""yes; then :
20646 gl_func_getloadavg_done
=yes
20648 $as_echo "#define DGUX 1" >>confdefs.h
20650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
20651 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
20652 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then :
20653 $as_echo_n "(cached) " >&6
20655 ac_check_lib_save_LIBS
=$LIBS
20657 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20658 /* end confdefs.h. */
20660 /* Override any GCC internal prototype to avoid an error.
20661 Use char because int might match the return type of a GCC
20662 builtin and then its argument prototype would still apply. */
20666 char dg_sys_info ();
20670 return dg_sys_info ();
20675 if ac_fn_c_try_link
"$LINENO"; then :
20676 ac_cv_lib_dgc_dg_sys_info
=yes
20678 ac_cv_lib_dgc_dg_sys_info
=no
20680 rm -f core conftest.err conftest.
$ac_objext \
20681 conftest
$ac_exeext conftest.
$ac_ext
20682 LIBS
=$ac_check_lib_save_LIBS
20684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
20685 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
20686 if test "x$ac_cv_lib_dgc_dg_sys_info" = x
""yes; then :
20687 cat >>confdefs.h
<<_ACEOF
20688 #define HAVE_LIBDGC 1
20703 if test "x$gl_save_LIBS" = x
; then
20704 GETLOADAVG_LIBS
=$LIBS
20706 GETLOADAVG_LIBS
=`echo "$LIBS" | sed "s!$gl_save_LIBS!!"`
20711 # Test whether the system declares getloadavg. Solaris has the function
20712 # but declares it in <sys/loadavg.h>, not <stdlib.h>.
20713 for ac_header
in sys
/loadavg.h
20715 ac_fn_c_check_header_mongrel
"$LINENO" "sys/loadavg.h" "ac_cv_header_sys_loadavg_h" "$ac_includes_default"
20716 if test "x$ac_cv_header_sys_loadavg_h" = x
""yes; then :
20717 cat >>confdefs.h
<<_ACEOF
20718 #define HAVE_SYS_LOADAVG_H 1
20725 if test $ac_cv_header_sys_loadavg_h = yes; then
20726 HAVE_SYS_LOADAVG_H
=1
20728 HAVE_SYS_LOADAVG_H
=0
20730 ac_fn_c_check_decl
"$LINENO" "getloadavg" "ac_cv_have_decl_getloadavg" "#if HAVE_SYS_LOADAVG_H
20731 # include <sys/loadavg.h>
20733 #include <stdlib.h>
20735 if test "x$ac_cv_have_decl_getloadavg" = x
""yes; then :
20738 HAVE_DECL_GETLOADAVG
=0
20742 if test $HAVE_GETLOADAVG = 0; then
20751 gl_LIBOBJS
="$gl_LIBOBJS getloadavg.$ac_objext"
20754 # Figure out what our getloadavg.c needs.
20758 # On HPUX9, an unprivileged user can get load averages this way.
20759 if test $gl_func_getloadavg_done = no
; then
20760 for ac_func
in pstat_getdynamic
20762 ac_fn_c_check_func
"$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
20763 if test "x$ac_cv_func_pstat_getdynamic" = x
""yes; then :
20764 cat >>confdefs.h
<<_ACEOF
20765 #define HAVE_PSTAT_GETDYNAMIC 1
20767 gl_func_getloadavg_done
=yes
20773 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
20774 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
20775 # Irix 4.0.5F has the header but not the library.
20776 if test $gl_func_getloadavg_done = no
&& test "$ac_cv_lib_elf_elf_begin" = yes \
20777 && test "$ac_cv_lib_kvm_kvm_open" = yes; then
20778 gl_func_getloadavg_done
=yes
20780 $as_echo "#define SVR4 1" >>confdefs.h
20784 if test $gl_func_getloadavg_done = no
; then
20785 ac_fn_c_check_header_mongrel
"$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
20786 if test "x$ac_cv_header_inq_stats_cpustats_h" = x
""yes; then :
20787 gl_func_getloadavg_done
=yes
20789 $as_echo "#define UMAX 1" >>confdefs.h
20792 $as_echo "#define UMAX4_3 1" >>confdefs.h
20799 if test $gl_func_getloadavg_done = no
; then
20800 ac_fn_c_check_header_mongrel
"$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
20801 if test "x$ac_cv_header_sys_cpustats_h" = x
""yes; then :
20802 gl_func_getloadavg_done
=yes; $as_echo "#define UMAX 1" >>confdefs.h
20809 if test $gl_func_getloadavg_done = no
; then
20810 for ac_header
in mach
/mach.h
20812 ac_fn_c_check_header_mongrel
"$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
20813 if test "x$ac_cv_header_mach_mach_h" = x
""yes; then :
20814 cat >>confdefs.h
<<_ACEOF
20815 #define HAVE_MACH_MACH_H 1
20824 for ac_header
in nlist.h
20826 ac_fn_c_check_header_mongrel
"$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
20827 if test "x$ac_cv_header_nlist_h" = x
""yes; then :
20828 cat >>confdefs.h
<<_ACEOF
20829 #define HAVE_NLIST_H 1
20831 ac_fn_c_check_member
"$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
20833 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x
""yes; then :
20835 cat >>confdefs.h
<<_ACEOF
20836 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
20842 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20843 /* end confdefs.h. */
20849 #ifdef HAVE_STRUCT_NLIST_N_UN_N_NAME
20850 x.n_un.n_name = "";
20858 if ac_fn_c_try_link
"$LINENO"; then :
20860 $as_echo "#define N_NAME_POINTER 1" >>confdefs.h
20863 rm -f core conftest.err conftest.
$ac_objext \
20864 conftest
$ac_exeext conftest.
$ac_ext
20876 GNULIB_GETLOADAVG
=1
20887 if test $REPLACE_GETOPT = 1; then
20896 gl_LIBOBJS
="$gl_LIBOBJS getopt.$ac_objext"
20906 gl_LIBOBJS
="$gl_LIBOBJS getopt1.$ac_objext"
20911 GNULIB_GL_UNISTD_H_GETOPT
=1
20921 if test -n "$gl_replace_getopt"; then
20925 if test $REPLACE_GETOPT = 1; then
20929 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
20935 if test $REPLACE_GETOPT = 1; then
20944 gl_LIBOBJS
="$gl_LIBOBJS getopt.$ac_objext"
20954 gl_LIBOBJS
="$gl_LIBOBJS getopt1.$ac_objext"
20959 GNULIB_GL_UNISTD_H_GETOPT
=1
20973 gl_gettimeofday_timezone
=void
20974 if test $ac_cv_func_gettimeofday != yes; then
20975 HAVE_GETTIMEOFDAY
=0
20980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday clobbers localtime buffer" >&5
20981 $as_echo_n "checking whether gettimeofday clobbers localtime buffer... " >&6; }
20982 if test "${gl_cv_func_gettimeofday_clobber+set}" = set; then :
20983 $as_echo_n "(cached) " >&6
20985 if test "$cross_compiling" = yes; then :
20986 # When cross-compiling:
20988 # Guess all is fine on glibc systems.
20989 *-gnu*) gl_cv_func_gettimeofday_clobber
="guessing no" ;;
20990 # If we don't know, assume the worst.
20991 *) gl_cv_func_gettimeofday_clobber
="guessing yes" ;;
20995 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20996 /* end confdefs.h. */
20997 #include <string.h>
20998 #include <sys/time.h>
21000 #include <stdlib.h>
21008 struct tm saved_lt;
21010 lt = localtime (&t);
21012 gettimeofday (&tv, NULL);
21013 return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0;
21019 if ac_fn_c_try_run
"$LINENO"; then :
21020 gl_cv_func_gettimeofday_clobber
=no
21022 gl_cv_func_gettimeofday_clobber
=yes
21024 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21025 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_clobber" >&5
21030 $as_echo "$gl_cv_func_gettimeofday_clobber" >&6; }
21032 case "$gl_cv_func_gettimeofday_clobber" in
21034 REPLACE_GETTIMEOFDAY
=1
21037 $as_echo "#define gmtime rpl_gmtime" >>confdefs.h
21040 $as_echo "#define localtime rpl_localtime" >>confdefs.h
21044 $as_echo "#define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1" >>confdefs.h
21049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday with POSIX signature" >&5
21050 $as_echo_n "checking for gettimeofday with POSIX signature... " >&6; }
21051 if test "${gl_cv_func_gettimeofday_posix_signature+set}" = set; then :
21052 $as_echo_n "(cached) " >&6
21054 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21055 /* end confdefs.h. */
21056 #include <sys/time.h>
21058 int gettimeofday (struct timeval *restrict, void *restrict);
21063 /* glibc uses struct timezone * rather than the POSIX void *
21064 if _GNU_SOURCE is defined. However, since the only portable
21065 use of gettimeofday uses NULL as the second parameter, and
21066 since the glibc definition is actually more typesafe, it is
21067 not worth wrapping this to get a compliant signature. */
21068 int (*f) (struct timeval *restrict, void *restrict)
21071 return !(x | c.tv_sec | c.tv_usec);
21077 if ac_fn_c_try_compile
"$LINENO"; then :
21078 gl_cv_func_gettimeofday_posix_signature
=yes
21080 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21081 /* end confdefs.h. */
21082 #include <sys/time.h>
21083 int gettimeofday (struct timeval *restrict, struct timezone *restrict);
21093 if ac_fn_c_try_compile
"$LINENO"; then :
21094 gl_cv_func_gettimeofday_posix_signature
=almost
21096 gl_cv_func_gettimeofday_posix_signature
=no
21098 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21100 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_posix_signature" >&5
21103 $as_echo "$gl_cv_func_gettimeofday_posix_signature" >&6; }
21104 if test $gl_cv_func_gettimeofday_posix_signature = almost
; then
21105 gl_gettimeofday_timezone
='struct timezone'
21106 elif test $gl_cv_func_gettimeofday_posix_signature != yes; then
21107 REPLACE_GETTIMEOFDAY
=1
21109 if test $REPLACE_STRUCT_TIMEVAL = 1; then
21110 REPLACE_GETTIMEOFDAY
=1
21115 cat >>confdefs.h
<<_ACEOF
21116 #define GETTIMEOFDAY_TIMEZONE $gl_gettimeofday_timezone
21120 if test $HAVE_GETTIMEOFDAY = 0 ||
test $REPLACE_GETTIMEOFDAY = 1; then
21129 gl_LIBOBJS
="$gl_LIBOBJS gettimeofday.$ac_objext"
21132 for ac_header
in sys
/timeb.h
21134 ac_fn_c_check_header_mongrel
"$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
21135 if test "x$ac_cv_header_sys_timeb_h" = x
""yes; then :
21136 cat >>confdefs.h
<<_ACEOF
21137 #define HAVE_SYS_TIMEB_H 1
21144 for ac_func
in _ftime
21146 ac_fn_c_check_func
"$LINENO" "_ftime" "ac_cv_func__ftime"
21147 if test "x$ac_cv_func__ftime" = x
""yes; then :
21148 cat >>confdefs.h
<<_ACEOF
21149 #define HAVE__FTIME 1
21162 GNULIB_GETTIMEOFDAY
=1
21173 if test $ac_cv_func_lstat = yes; then
21175 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
21184 if test $REPLACE_LSTAT = 1; then
21193 gl_LIBOBJS
="$gl_LIBOBJS lstat.$ac_objext"
21217 if test $APPLE_UNIVERSAL_BUILD = 1; then
21218 # A universal build on Apple Mac OS X platforms.
21219 # The test result would be 'yes' in 32-bit mode and 'no' in 64-bit mode.
21220 # But we need a configuration result that is valid in both modes.
21221 gl_cv_func_working_mktime
=no
21223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
21224 $as_echo_n "checking for working mktime... " >&6; }
21225 if test "${gl_cv_func_working_mktime+set}" = set; then :
21226 $as_echo_n "(cached) " >&6
21228 if test "$cross_compiling" = yes; then :
21229 gl_cv_func_working_mktime
=no
21231 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21232 /* end confdefs.h. */
21233 /* Test program from Paul Eggert and Tony Leneis. */
21234 #include <limits.h>
21235 #include <stdlib.h>
21238 #ifdef HAVE_UNISTD_H
21239 # include <unistd.h>
21243 # define alarm(X) /* empty */
21246 /* Work around redefinition to rpl_putenv by other config tests. */
21249 static time_t time_t_max;
21250 static time_t time_t_min;
21252 /* Values we'll use to set the TZ environment variable. */
21253 static char *tz_strings[] = {
21254 (char *) 0, "TZ=GMT0", "TZ=JST-9",
21255 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
21257 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
21259 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
21260 Based on a problem report from Andreas Jaeger. */
21262 spring_forward_gap ()
21264 /* glibc (up to about 1998-10-07) failed this test. */
21267 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
21268 instead of "TZ=America/Vancouver" in order to detect the bug even
21269 on systems that don't support the Olson extension, or don't have the
21270 full zoneinfo tables installed. */
21271 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
21280 return mktime (&tm) != (time_t) -1;
21284 mktime_test1 (time_t now)
21287 return ! (lt = localtime (&now)) || mktime (lt) == now;
21291 mktime_test (time_t now)
21293 return (mktime_test1 (now)
21294 && mktime_test1 ((time_t) (time_t_max - now))
21295 && mktime_test1 ((time_t) (time_t_min + now)));
21301 /* Based on code from Ariel Faigon. */
21311 return tm.tm_mon == 2 && tm.tm_mday == 31;
21315 bigtime_test (int j)
21319 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
21320 now = mktime (&tm);
21321 if (now != (time_t) -1)
21323 struct tm *lt = localtime (&now);
21325 && lt->tm_year == tm.tm_year
21326 && lt->tm_mon == tm.tm_mon
21327 && lt->tm_mday == tm.tm_mday
21328 && lt->tm_hour == tm.tm_hour
21329 && lt->tm_min == tm.tm_min
21330 && lt->tm_sec == tm.tm_sec
21331 && lt->tm_yday == tm.tm_yday
21332 && lt->tm_wday == tm.tm_wday
21333 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
21334 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
21343 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
21344 ignoring leap seconds. */
21345 unsigned long int answer = 2527315200UL;
21349 tm.tm_year = 2050 - 1900;
21352 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
21355 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
21356 instead of "TZ=America/Vancouver" in order to detect the bug even
21357 on systems that don't support the Olson extension, or don't have the
21358 full zoneinfo tables installed. */
21359 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
21363 /* Check that the result is either a failure, or close enough
21364 to the correct answer that we can assume the discrepancy is
21365 due to leap seconds. */
21366 return (t == (time_t) -1
21367 || (0 < t && answer - 120 <= t && t <= answer + 120));
21376 int time_t_signed_magnitude = (time_t) ~ (time_t) 0 < (time_t) -1;
21377 int time_t_signed = ! ((time_t) 0 < (time_t) -1);
21379 /* This test makes some buggy mktime implementations loop.
21380 Give up after 60 seconds; a mktime slower than that
21381 isn't worth using anyway. */
21384 time_t_max = (! time_t_signed
21386 : ((((time_t) 1 << (sizeof (time_t) * CHAR_BIT - 2)) - 1)
21388 time_t_min = (! time_t_signed
21390 : time_t_signed_magnitude
21394 delta = time_t_max / 997; /* a suitable prime number */
21395 for (i = 0; i < N_STRINGS; i++)
21398 putenv (tz_strings[i]);
21400 for (t = 0; t <= time_t_max - delta && (result & 1) == 0; t += delta)
21401 if (! mktime_test (t))
21403 if ((result & 2) == 0
21404 && ! (mktime_test ((time_t) 1)
21405 && mktime_test ((time_t) (60 * 60))
21406 && mktime_test ((time_t) (60 * 60 * 24))))
21409 for (j = 1; (result & 4) == 0; j <<= 1)
21411 if (! bigtime_test (j))
21413 if (INT_MAX / 2 < j)
21416 if ((result & 8) == 0 && ! bigtime_test (INT_MAX))
21419 if (! irix_6_4_bug ())
21421 if (! spring_forward_gap ())
21423 if (! year_2050_test ())
21428 if ac_fn_c_try_run
"$LINENO"; then :
21429 gl_cv_func_working_mktime
=yes
21431 gl_cv_func_working_mktime
=no
21433 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21434 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_mktime" >&5
21440 $as_echo "$gl_cv_func_working_mktime" >&6; }
21442 if test $gl_cv_func_working_mktime = no
; then
21448 if test $REPLACE_MKTIME = 1; then
21457 gl_LIBOBJS
="$gl_LIBOBJS mktime.$ac_objext"
21478 if test $ac_cv_func_pselect = yes; then
21479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether signature of pselect conforms to POSIX" >&5
21480 $as_echo_n "checking whether signature of pselect conforms to POSIX... " >&6; }
21481 if test "${gl_cv_sig_pselect+set}" = set; then :
21482 $as_echo_n "(cached) " >&6
21484 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21485 /* end confdefs.h. */
21486 #include <sys/select.h>
21491 int (*p) (int, fd_set *, fd_set *, fd_set *restrict,
21492 struct timespec const *restrict,
21493 sigset_t const *restrict) = pselect;
21499 if ac_fn_c_try_link
"$LINENO"; then :
21500 gl_cv_sig_pselect
=yes
21502 gl_cv_sig_pselect
=no
21504 rm -f core conftest.err conftest.
$ac_objext \
21505 conftest
$ac_exeext conftest.
$ac_ext
21507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sig_pselect" >&5
21508 $as_echo "$gl_cv_sig_pselect" >&6; }
21511 if test $ac_cv_func_pselect = no ||
test $gl_cv_sig_pselect = no
; then
21515 if test $HAVE_PSELECT = 0 ||
test $REPLACE_PSELECT = 1; then
21524 gl_LIBOBJS
="$gl_LIBOBJS pselect.$ac_objext"
21542 LIB_PTHREAD_SIGMASK
=
21545 if test $ac_cv_func_pthread_sigmask = yes; then
21548 HAVE_PTHREAD_SIGMASK
=0
21549 REPLACE_PTHREAD_SIGMASK
=1
21555 if test $HAVE_PTHREAD_SIGMASK = 1; then
21558 if test -z "$LIB_PTHREAD_SIGMASK"; then
21559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask works without -lpthread" >&5
21560 $as_echo_n "checking whether pthread_sigmask works without -lpthread... " >&6; }
21561 if test "${gl_cv_func_pthread_sigmask_in_libc_works+set}" = set; then :
21562 $as_echo_n "(cached) " >&6
21565 if test "$cross_compiling" = yes; then :
21568 freebsd
* | hpux
* | solaris | solaris2.
[2-9]*)
21569 gl_cv_func_pthread_sigmask_in_libc_works
="guessing no";;
21571 gl_cv_func_pthread_sigmask_in_libc_works
="guessing yes";;
21575 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21576 /* end confdefs.h. */
21578 #include <pthread.h>
21579 #include <signal.h>
21580 #include <stddef.h>
21584 sigemptyset (&set);
21585 return pthread_sigmask (1729, &set, NULL) != 0;
21588 if ac_fn_c_try_run
"$LINENO"; then :
21589 gl_cv_func_pthread_sigmask_in_libc_works
=no
21591 gl_cv_func_pthread_sigmask_in_libc_works
=yes
21593 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21594 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_in_libc_works" >&5
21600 $as_echo "$gl_cv_func_pthread_sigmask_in_libc_works" >&6; }
21601 case "$gl_cv_func_pthread_sigmask_in_libc_works" in
21603 REPLACE_PTHREAD_SIGMASK
=1
21605 $as_echo "#define PTHREAD_SIGMASK_INEFFECTIVE 1" >>confdefs.h
21611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask returns error numbers" >&5
21612 $as_echo_n "checking whether pthread_sigmask returns error numbers... " >&6; }
21613 if test "${gl_cv_func_pthread_sigmask_return_works+set}" = set; then :
21614 $as_echo_n "(cached) " >&6
21617 gl_save_LIBS
="$LIBS"
21618 LIBS
="$LIBS $LIB_PTHREAD_SIGMASK"
21619 if test "$cross_compiling" = yes; then :
21622 gl_cv_func_pthread_sigmask_return_works
="guessing no";;
21624 gl_cv_func_pthread_sigmask_return_works
="guessing yes";;
21628 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21629 /* end confdefs.h. */
21631 #include <pthread.h>
21632 #include <signal.h>
21633 #include <stddef.h>
21637 sigemptyset (&set);
21638 if (pthread_sigmask (1729, &set, NULL) == -1)
21643 if ac_fn_c_try_run
"$LINENO"; then :
21644 gl_cv_func_pthread_sigmask_return_works
=yes
21646 gl_cv_func_pthread_sigmask_return_works
=no
21648 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21649 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21652 LIBS
="$gl_save_LIBS"
21655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_return_works" >&5
21656 $as_echo "$gl_cv_func_pthread_sigmask_return_works" >&6; }
21657 case "$gl_cv_func_pthread_sigmask_return_works" in
21659 REPLACE_PTHREAD_SIGMASK
=1
21661 $as_echo "#define PTHREAD_SIGMASK_FAILS_WITH_ERRNO 1" >>confdefs.h
21666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask unblocks signals correctly" >&5
21667 $as_echo_n "checking whether pthread_sigmask unblocks signals correctly... " >&6; }
21668 if test "${gl_cv_func_pthread_sigmask_unblock_works+set}" = set; then :
21669 $as_echo_n "(cached) " >&6
21674 gl_cv_func_pthread_sigmask_unblock_works
="guessing no";;
21676 gl_cv_func_pthread_sigmask_unblock_works
="guessing yes";;
21678 gl_save_LIBS
="$LIBS"
21679 LIBS
="$LIBS $LIBMULTITHREAD"
21680 if test "$cross_compiling" = yes; then :
21683 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21684 /* end confdefs.h. */
21686 #include <pthread.h>
21687 #include <signal.h>
21689 #include <stdlib.h>
21690 #include <unistd.h>
21691 static volatile int sigint_occurred;
21693 sigint_handler (int sig)
21700 int pid = getpid ();
21702 signal (SIGINT, sigint_handler);
21703 sigemptyset (&set);
21704 sigaddset (&set, SIGINT);
21705 if (!(pthread_sigmask (SIG_BLOCK, &set, NULL) == 0))
21707 sprintf (command, "sh -c 'sleep 1; kill -%d %d' &", SIGINT, pid);
21708 if (!(system (command) == 0))
21711 if (!(sigint_occurred == 0))
21713 if (!(pthread_sigmask (SIG_UNBLOCK, &set, NULL) == 0))
21715 if (!(sigint_occurred == 1)) /* This fails on IRIX. */
21720 if ac_fn_c_try_run
"$LINENO"; then :
21723 gl_cv_func_pthread_sigmask_unblock_works
=no
21725 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21726 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21729 LIBS
="$gl_save_LIBS"
21732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_unblock_works" >&5
21733 $as_echo "$gl_cv_func_pthread_sigmask_unblock_works" >&6; }
21734 case "$gl_cv_func_pthread_sigmask_unblock_works" in
21736 REPLACE_PTHREAD_SIGMASK
=1
21738 $as_echo "#define PTHREAD_SIGMASK_UNBLOCK_BUG 1" >>confdefs.h
21744 if test $HAVE_PTHREAD_SIGMASK = 0 ||
test $REPLACE_PTHREAD_SIGMASK = 1; then
21753 gl_LIBOBJS
="$gl_LIBOBJS pthread_sigmask.$ac_objext"
21756 if test $HAVE_PTHREAD_SIGMASK = 1; then
21758 $as_echo "#define HAVE_PTHREAD_SIGMASK 1" >>confdefs.h
21768 GNULIB_PTHREAD_SIGMASK
=1
21777 if test $ac_cv_func_readlink = no
; then
21780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
21781 $as_echo_n "checking whether readlink signature is correct... " >&6; }
21782 if test "${gl_cv_decl_readlink_works+set}" = set; then :
21783 $as_echo_n "(cached) " >&6
21785 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21786 /* end confdefs.h. */
21787 #include <unistd.h>
21788 /* Cause compilation failure if original declaration has wrong type. */
21789 ssize_t readlink (const char *, char *, size_t);
21798 if ac_fn_c_try_compile
"$LINENO"; then :
21799 gl_cv_decl_readlink_works
=yes
21801 gl_cv_decl_readlink_works
=no
21803 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
21806 $as_echo "$gl_cv_decl_readlink_works" >&6; }
21807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
21808 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
21809 if test "${gl_cv_func_readlink_works+set}" = set; then :
21810 $as_echo_n "(cached) " >&6
21812 # We have readlink, so assume ln -s works.
21813 ln -s conftest.no-such conftest.link
21814 ln -s conftest.link conftest.lnk2
21815 if test "$cross_compiling" = yes; then :
21817 # Guess yes on glibc systems.
21818 *-gnu*) gl_cv_func_readlink_works
="guessing yes" ;;
21819 # If we don't know, assume the worst.
21820 *) gl_cv_func_readlink_works
="guessing no" ;;
21824 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21825 /* end confdefs.h. */
21826 #include <unistd.h>
21832 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
21837 if ac_fn_c_try_run
"$LINENO"; then :
21838 gl_cv_func_readlink_works
=yes
21840 gl_cv_func_readlink_works
=no
21842 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21843 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21846 rm -f conftest.link conftest.lnk2
21848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
21849 $as_echo "$gl_cv_func_readlink_works" >&6; }
21850 case "$gl_cv_func_readlink_works" in
21852 if test "$gl_cv_decl_readlink_works" != yes; then
21858 $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
21865 if test $HAVE_READLINK = 0 ||
test $REPLACE_READLINK = 1; then
21874 gl_LIBOBJS
="$gl_LIBOBJS readlink.$ac_objext"
21902 if test $gl_cv_have_include_next = yes; then
21903 gl_cv_next_signal_h
='<'signal.h
'>'
21905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
21906 $as_echo_n "checking absolute name of <signal.h>... " >&6; }
21907 if test "${gl_cv_next_signal_h+set}" = set; then :
21908 $as_echo_n "(cached) " >&6
21911 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21912 /* end confdefs.h. */
21913 #include <signal.h>
21917 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
21918 *) gl_absname_cpp
="$ac_cpp" ;;
21923 gl_dirsep_regex
='[/\\]'
21926 gl_dirsep_regex
='\/'
21929 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
21931 gl_header_literal_regex
=`echo 'signal.h' \
21932 | sed -e "$gl_make_literal_regex_sed"`
21933 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21934 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21939 gl_cv_next_signal_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21940 sed -n "$gl_absolute_header_sed"`'"'
21944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
21945 $as_echo "$gl_cv_next_signal_h" >&6; }
21947 NEXT_SIGNAL_H
=$gl_cv_next_signal_h
21949 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
21950 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21951 gl_next_as_first_directive
='<'signal.h
'>'
21953 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21954 gl_next_as_first_directive
=$gl_cv_next_signal_h
21956 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
=$gl_next_as_first_directive
21962 # AIX declares sig_atomic_t to already include volatile, and C89 compilers
21963 # then choke on 'volatile sig_atomic_t'. C99 requires that it compile.
21964 ac_fn_c_check_type
"$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
21965 #include <signal.h>
21968 if test "x$ac_cv_type_volatile_sig_atomic_t" = x
""yes; then :
21971 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
=0
21980 ac_fn_c_check_type
"$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
21981 #include <signal.h>
21984 if test "x$ac_cv_type_sighandler_t" = x
""yes; then :
21987 HAVE_SIGHANDLER_T
=0
21993 ac_fn_c_check_type
"$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
21994 /* <sys/types.h> is not needed according to POSIX, but the
21995 <sys/socket.h> in i386-unknown-freebsd4.10 and
21996 powerpc-apple-darwin5.5 required it. */
21997 #include <sys/types.h>
21998 #if HAVE_SYS_SOCKET_H
21999 # include <sys/socket.h>
22000 #elif HAVE_WS2TCPIP_H
22001 # include <ws2tcpip.h>
22005 if test "x$ac_cv_type_socklen_t" = x
""yes; then :
22008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
22009 $as_echo_n "checking for socklen_t equivalent... " >&6; }
22010 if test "${gl_cv_socklen_t_equiv+set}" = set; then :
22011 $as_echo_n "(cached) " >&6
22013 # Systems have either "struct sockaddr *" or
22014 # "void *" as the second argument to getpeername
22015 gl_cv_socklen_t_equiv
=
22016 for arg2
in "struct sockaddr" void
; do
22017 for t
in int size_t
"unsigned int" "long int" "unsigned long int"; do
22018 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22019 /* end confdefs.h. */
22020 #include <sys/types.h>
22021 #include <sys/socket.h>
22023 int getpeername (int, $arg2 *, $t *);
22028 getpeername (0, 0, &len);
22033 if ac_fn_c_try_compile
"$LINENO"; then :
22034 gl_cv_socklen_t_equiv
="$t"
22036 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22037 test "$gl_cv_socklen_t_equiv" != "" && break
22039 test "$gl_cv_socklen_t_equiv" != "" && break
22044 if test "$gl_cv_socklen_t_equiv" = ""; then
22045 as_fn_error
"Cannot find a type to use in place of socklen_t" "$LINENO" 5
22047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
22048 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
22050 cat >>confdefs.h
<<_ACEOF
22051 #define socklen_t $gl_cv_socklen_t_equiv
22057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
22058 $as_echo_n "checking for ssize_t... " >&6; }
22059 if test "${gt_cv_ssize_t+set}" = set; then :
22060 $as_echo_n "(cached) " >&6
22062 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22063 /* end confdefs.h. */
22064 #include <sys/types.h>
22068 int x = sizeof (ssize_t *) + sizeof (ssize_t);
22074 if ac_fn_c_try_compile
"$LINENO"; then :
22079 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
22082 $as_echo "$gt_cv_ssize_t" >&6; }
22083 if test $gt_cv_ssize_t = no
; then
22085 $as_echo "#define ssize_t int" >>confdefs.h
22093 ac_fn_c_check_member
"$LINENO" "struct stat" "st_atim.tv_nsec" "ac_cv_member_struct_stat_st_atim_tv_nsec" "#include <sys/types.h>
22094 #include <sys/stat.h>
22096 if test "x$ac_cv_member_struct_stat_st_atim_tv_nsec" = x
""yes; then :
22098 cat >>confdefs.h
<<_ACEOF
22099 #define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1
22102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat.st_atim is of type struct timespec" >&5
22103 $as_echo_n "checking whether struct stat.st_atim is of type struct timespec... " >&6; }
22104 if test "${ac_cv_typeof_struct_stat_st_atim_is_struct_timespec+set}" = set; then :
22105 $as_echo_n "(cached) " >&6
22107 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22108 /* end confdefs.h. */
22110 #include <sys/types.h>
22111 #include <sys/stat.h>
22112 #if HAVE_SYS_TIME_H
22113 # include <sys/time.h>
22116 struct timespec ts;
22129 if ac_fn_c_try_compile
"$LINENO"; then :
22130 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec
=yes
22132 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec
=no
22134 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&5
22137 $as_echo "$ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&6; }
22138 if test $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec = yes; then
22140 $as_echo "#define TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC 1" >>confdefs.h
22144 ac_fn_c_check_member
"$LINENO" "struct stat" "st_atimespec.tv_nsec" "ac_cv_member_struct_stat_st_atimespec_tv_nsec" "#include <sys/types.h>
22145 #include <sys/stat.h>
22147 if test "x$ac_cv_member_struct_stat_st_atimespec_tv_nsec" = x
""yes; then :
22149 cat >>confdefs.h
<<_ACEOF
22150 #define HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC 1
22155 ac_fn_c_check_member
"$LINENO" "struct stat" "st_atimensec" "ac_cv_member_struct_stat_st_atimensec" "#include <sys/types.h>
22156 #include <sys/stat.h>
22158 if test "x$ac_cv_member_struct_stat_st_atimensec" = x
""yes; then :
22160 cat >>confdefs.h
<<_ACEOF
22161 #define HAVE_STRUCT_STAT_ST_ATIMENSEC 1
22166 ac_fn_c_check_member
"$LINENO" "struct stat" "st_atim.st__tim.tv_nsec" "ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" "#include <sys/types.h>
22167 #include <sys/stat.h>
22169 if test "x$ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" = x
""yes; then :
22171 cat >>confdefs.h
<<_ACEOF
22172 #define HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC 1
22188 ac_fn_c_check_member
"$LINENO" "struct stat" "st_birthtimespec.tv_nsec" "ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" "#include <sys/types.h>
22189 #include <sys/stat.h>
22191 if test "x$ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" = x
""yes; then :
22193 cat >>confdefs.h
<<_ACEOF
22194 #define HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC 1
22199 ac_fn_c_check_member
"$LINENO" "struct stat" "st_birthtimensec" "ac_cv_member_struct_stat_st_birthtimensec" "#include <sys/types.h>
22200 #include <sys/stat.h>
22202 if test "x$ac_cv_member_struct_stat_st_birthtimensec" = x
""yes; then :
22204 cat >>confdefs.h
<<_ACEOF
22205 #define HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC 1
22210 ac_fn_c_check_member
"$LINENO" "struct stat" "st_birthtim.tv_nsec" "ac_cv_member_struct_stat_st_birthtim_tv_nsec" "#include <sys/types.h>
22211 #include <sys/stat.h>
22213 if test "x$ac_cv_member_struct_stat_st_birthtim_tv_nsec" = x
""yes; then :
22215 cat >>confdefs.h
<<_ACEOF
22216 #define HAVE_STRUCT_STAT_ST_BIRTHTIM_TV_NSEC 1
22228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdalign.h" >&5
22229 $as_echo_n "checking for working stdalign.h... " >&6; }
22230 if test "${gl_cv_header_working_stdalign_h+set}" = set; then :
22231 $as_echo_n "(cached) " >&6
22233 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22234 /* end confdefs.h. */
22235 #include <stdalign.h>
22236 #include <stddef.h>
22238 /* Test that alignof yields a result consistent with offsetof.
22239 This catches GCC bug 52023
22240 <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023>. */
22242 template <class t> struct alignof_helper { char a; t b; };
22243 # define ao(type) offsetof (alignof_helper<type>, b)
22245 # define ao(type) offsetof (struct { char a; type b; }, b)
22247 char test_double[ao (double) % _Alignof (double) == 0 ? 1 : -1];
22248 char test_long[ao (long int) % _Alignof (long int) == 0 ? 1 : -1];
22249 char test_alignof[alignof (double) == _Alignof (double) ? 1 : -1];
22251 /* Test _Alignas only on platforms where gnulib can help. */
22253 (__GNUC__ || __IBMC__ || __IBMCPP__ \
22254 || 0x5110 <= __SUNPRO_C || 1300 <= _MSC_VER)
22255 int alignas (8) alignas_int = 1;
22256 char test_alignas[_Alignof (alignas_int) == 8 ? 1 : -1];
22267 if ac_fn_c_try_compile
"$LINENO"; then :
22268 gl_cv_header_working_stdalign_h
=yes
22270 gl_cv_header_working_stdalign_h
=no
22272 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdalign_h" >&5
22275 $as_echo "$gl_cv_header_working_stdalign_h" >&6; }
22277 if test $gl_cv_header_working_stdalign_h = yes; then
22280 STDALIGN_H
='stdalign.h'
22284 if test -n "$STDALIGN_H"; then
22285 GL_GENERATE_STDALIGN_H_TRUE
=
22286 GL_GENERATE_STDALIGN_H_FALSE
='#'
22288 GL_GENERATE_STDALIGN_H_TRUE
='#'
22289 GL_GENERATE_STDALIGN_H_FALSE
=
22295 NEXT_STDARG_H
='<stdarg.h>'
22296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
22297 $as_echo_n "checking for va_copy... " >&6; }
22298 if test "${gl_cv_func_va_copy+set}" = set; then :
22299 $as_echo_n "(cached) " >&6
22302 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22303 /* end confdefs.h. */
22304 #include <stdarg.h>
22310 void (*func) (va_list, va_list) = va_copy;
22317 if ac_fn_c_try_compile
"$LINENO"; then :
22318 gl_cv_func_va_copy
=yes
22320 gl_cv_func_va_copy
=no
22322 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_va_copy" >&5
22326 $as_echo "$gl_cv_func_va_copy" >&6; }
22327 if test $gl_cv_func_va_copy = no
; then
22328 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22329 /* end confdefs.h. */
22330 #if defined _AIX && !defined __GNUC__
22335 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22336 $EGREP "vaccine" >/dev
/null
2>&1; then :
22343 if test $gl_aixcc = yes; then
22353 if test $gl_cv_have_include_next = yes; then
22354 gl_cv_next_stdarg_h
='<'stdarg.h
'>'
22356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdarg.h>" >&5
22357 $as_echo_n "checking absolute name of <stdarg.h>... " >&6; }
22358 if test "${gl_cv_next_stdarg_h+set}" = set; then :
22359 $as_echo_n "(cached) " >&6
22362 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22363 /* end confdefs.h. */
22364 #include <stdarg.h>
22368 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
22369 *) gl_absname_cpp
="$ac_cpp" ;;
22374 gl_dirsep_regex
='[/\\]'
22377 gl_dirsep_regex
='\/'
22380 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
22382 gl_header_literal_regex
=`echo 'stdarg.h' \
22383 | sed -e "$gl_make_literal_regex_sed"`
22384 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22385 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22390 gl_cv_next_stdarg_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22391 sed -n "$gl_absolute_header_sed"`'"'
22395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdarg_h" >&5
22396 $as_echo "$gl_cv_next_stdarg_h" >&6; }
22398 NEXT_STDARG_H
=$gl_cv_next_stdarg_h
22400 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
22401 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22402 gl_next_as_first_directive
='<'stdarg.h
'>'
22404 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22405 gl_next_as_first_directive
=$gl_cv_next_stdarg_h
22407 NEXT_AS_FIRST_DIRECTIVE_STDARG_H
=$gl_next_as_first_directive
22412 if test "$gl_cv_next_stdarg_h" = '""'; then
22413 gl_cv_next_stdarg_h
='"///usr/include/stdarg.h"'
22414 NEXT_STDARG_H
="$gl_cv_next_stdarg_h"
22418 saved_as_echo_n
="$as_echo_n"
22420 if test "${gl_cv_func___va_copy+set}" = set; then :
22421 $as_echo_n "(cached) " >&6
22424 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22425 /* end confdefs.h. */
22426 #include <stdarg.h>
22439 if ac_fn_c_try_compile
"$LINENO"; then :
22440 gl_cv_func___va_copy
=yes
22442 gl_cv_func___va_copy
=no
22444 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22447 as_echo_n
="$saved_as_echo_n"
22449 if test $gl_cv_func___va_copy = yes; then
22451 $as_echo "#define va_copy __va_copy" >>confdefs.h
22456 $as_echo "#define va_copy gl_va_copy" >>confdefs.h
22462 if test -n "$STDARG_H"; then
22463 GL_GENERATE_STDARG_H_TRUE
=
22464 GL_GENERATE_STDARG_H_FALSE
='#'
22466 GL_GENERATE_STDARG_H_TRUE
='#'
22467 GL_GENERATE_STDARG_H_FALSE
=
22475 # Define two additional variables used in the Makefile substitution.
22477 if test "$ac_cv_header_stdbool_h" = yes; then
22480 STDBOOL_H
='stdbool.h'
22483 if test -n "$STDBOOL_H"; then
22484 GL_GENERATE_STDBOOL_H_TRUE
=
22485 GL_GENERATE_STDBOOL_H_FALSE
='#'
22487 GL_GENERATE_STDBOOL_H_TRUE
='#'
22488 GL_GENERATE_STDBOOL_H_FALSE
=
22492 if test "$ac_cv_type__Bool" = yes; then
22503 if test $gt_cv_c_wchar_t = no
; then
22507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
22508 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
22509 if test "${gl_cv_decl_null_works+set}" = set; then :
22510 $as_echo_n "(cached) " >&6
22512 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22513 /* end confdefs.h. */
22514 #include <stddef.h>
22515 int test[2 * (sizeof NULL == sizeof (void *)) -1];
22525 if ac_fn_c_try_compile
"$LINENO"; then :
22526 gl_cv_decl_null_works
=yes
22528 gl_cv_decl_null_works
=no
22530 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
22533 $as_echo "$gl_cv_decl_null_works" >&6; }
22534 if test $gl_cv_decl_null_works = no
; then
22539 if test -n "$STDDEF_H"; then
22540 GL_GENERATE_STDDEF_H_TRUE
=
22541 GL_GENERATE_STDDEF_H_FALSE
='#'
22543 GL_GENERATE_STDDEF_H_TRUE
='#'
22544 GL_GENERATE_STDDEF_H_FALSE
=
22547 if test -n "$STDDEF_H"; then
22556 if test $gl_cv_have_include_next = yes; then
22557 gl_cv_next_stddef_h
='<'stddef.h
'>'
22559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
22560 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
22561 if test "${gl_cv_next_stddef_h+set}" = set; then :
22562 $as_echo_n "(cached) " >&6
22565 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22566 /* end confdefs.h. */
22567 #include <stddef.h>
22571 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
22572 *) gl_absname_cpp
="$ac_cpp" ;;
22577 gl_dirsep_regex
='[/\\]'
22580 gl_dirsep_regex
='\/'
22583 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
22585 gl_header_literal_regex
=`echo 'stddef.h' \
22586 | sed -e "$gl_make_literal_regex_sed"`
22587 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22588 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22593 gl_cv_next_stddef_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22594 sed -n "$gl_absolute_header_sed"`'"'
22598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
22599 $as_echo "$gl_cv_next_stddef_h" >&6; }
22601 NEXT_STDDEF_H
=$gl_cv_next_stddef_h
22603 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
22604 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22605 gl_next_as_first_directive
='<'stddef.h
'>'
22607 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22608 gl_next_as_first_directive
=$gl_cv_next_stddef_h
22610 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
=$gl_next_as_first_directive
22629 if test $gl_cv_have_include_next = yes; then
22630 gl_cv_next_stdio_h
='<'stdio.h
'>'
22632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
22633 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
22634 if test "${gl_cv_next_stdio_h+set}" = set; then :
22635 $as_echo_n "(cached) " >&6
22638 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22639 /* end confdefs.h. */
22644 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
22645 *) gl_absname_cpp
="$ac_cpp" ;;
22650 gl_dirsep_regex
='[/\\]'
22653 gl_dirsep_regex
='\/'
22656 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
22658 gl_header_literal_regex
=`echo 'stdio.h' \
22659 | sed -e "$gl_make_literal_regex_sed"`
22660 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22661 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22666 gl_cv_next_stdio_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22667 sed -n "$gl_absolute_header_sed"`'"'
22671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
22672 $as_echo "$gl_cv_next_stdio_h" >&6; }
22674 NEXT_STDIO_H
=$gl_cv_next_stdio_h
22676 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
22677 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22678 gl_next_as_first_directive
='<'stdio.h
'>'
22680 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22681 gl_next_as_first_directive
=$gl_cv_next_stdio_h
22683 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
=$gl_next_as_first_directive
22692 cat >>confdefs.h
<<_ACEOF
22693 #define GNULIB_FSCANF 1
22700 cat >>confdefs.h
<<_ACEOF
22701 #define GNULIB_SCANF 1
22737 if test $gl_cv_have_include_next = yes; then
22738 gl_cv_next_stdlib_h
='<'stdlib.h
'>'
22740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
22741 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
22742 if test "${gl_cv_next_stdlib_h+set}" = set; then :
22743 $as_echo_n "(cached) " >&6
22746 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22747 /* end confdefs.h. */
22748 #include <stdlib.h>
22752 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
22753 *) gl_absname_cpp
="$ac_cpp" ;;
22758 gl_dirsep_regex
='[/\\]'
22761 gl_dirsep_regex
='\/'
22764 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
22766 gl_header_literal_regex
=`echo 'stdlib.h' \
22767 | sed -e "$gl_make_literal_regex_sed"`
22768 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22769 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22774 gl_cv_next_stdlib_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22775 sed -n "$gl_absolute_header_sed"`'"'
22779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
22780 $as_echo "$gl_cv_next_stdlib_h" >&6; }
22782 NEXT_STDLIB_H
=$gl_cv_next_stdlib_h
22784 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
22785 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22786 gl_next_as_first_directive
='<'stdlib.h
'>'
22788 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22789 gl_next_as_first_directive
=$gl_cv_next_stdlib_h
22791 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
=$gl_next_as_first_directive
22801 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
22809 $as_echo "#define my_strftime nstrftime" >>confdefs.h
22818 if test "$ac_cv_have_decl_strtoimax" != yes; then
22819 HAVE_DECL_STRTOIMAX
=0
22822 if test $ac_cv_func_strtoimax = yes; then
22824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtoimax works" >&5
22825 $as_echo_n "checking whether strtoimax works... " >&6; }
22826 if test "${gl_cv_func_strtoimax+set}" = set; then :
22827 $as_echo_n "(cached) " >&6
22829 if test "$cross_compiling" = yes; then :
22831 # Guess no on AIX 5.
22832 aix5
*) gl_cv_func_strtoimax
="guessing no" ;;
22833 # Guess yes otherwise.
22834 *) gl_cv_func_strtoimax
="guessing yes" ;;
22838 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22839 /* end confdefs.h. */
22842 #include <string.h>
22843 #include <inttypes.h>
22846 if (sizeof (intmax_t) > sizeof (int))
22848 const char *s = "4294967295";
22852 res = strtoimax (s, &p, 10);
22853 if (p != s + strlen (s))
22857 if (res != (intmax_t) 65535 * (intmax_t) 65537)
22862 const char *s = "2147483647";
22866 res = strtoimax (s, &p, 10);
22867 if (p != s + strlen (s))
22871 if (res != 2147483647)
22878 if ac_fn_c_try_run
"$LINENO"; then :
22879 gl_cv_func_strtoimax
=yes
22881 gl_cv_func_strtoimax
=no
22883 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22884 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strtoimax" >&5
22890 $as_echo "$gl_cv_func_strtoimax" >&6; }
22891 case "$gl_cv_func_strtoimax" in
22892 *no
) REPLACE_STRTOIMAX
=1 ;;
22898 if test $HAVE_STRTOIMAX = 0 ||
test $REPLACE_STRTOIMAX = 1; then
22907 gl_LIBOBJS
="$gl_LIBOBJS strtoimax.$ac_objext"
22910 ac_fn_c_check_decl
"$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
22911 if test "x$ac_cv_have_decl_strtoll" = x
""yes; then :
22917 cat >>confdefs.h
<<_ACEOF
22918 #define HAVE_DECL_STRTOLL $ac_have_decl
22939 if test "$ac_cv_have_decl_strtoumax" != yes; then
22940 HAVE_DECL_STRTOUMAX
=0
22943 if test $ac_cv_func_strtoumax = no
; then
22952 gl_LIBOBJS
="$gl_LIBOBJS strtoumax.$ac_objext"
22955 ac_fn_c_check_decl
"$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
22956 if test "x$ac_cv_have_decl_strtoull" = x
""yes; then :
22962 cat >>confdefs.h
<<_ACEOF
22963 #define HAVE_DECL_STRTOULL $ac_have_decl
22982 if test $ac_cv_func_symlink = no
; then
22985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symlink handles trailing slash correctly" >&5
22986 $as_echo_n "checking whether symlink handles trailing slash correctly... " >&6; }
22987 if test "${gl_cv_func_symlink_works+set}" = set; then :
22988 $as_echo_n "(cached) " >&6
22990 if test "$cross_compiling" = yes; then :
22992 # Guess yes on glibc systems.
22993 *-gnu*) gl_cv_func_symlink_works
="guessing yes" ;;
22994 # If we don't know, assume the worst.
22995 *) gl_cv_func_symlink_works
="guessing no" ;;
22999 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23000 /* end confdefs.h. */
23001 #include <unistd.h>
23007 if (!symlink ("a", "conftest.link/"))
23009 if (symlink ("conftest.f", "conftest.lnk2"))
23011 else if (!symlink ("a", "conftest.lnk2/"))
23019 if ac_fn_c_try_run
"$LINENO"; then :
23020 gl_cv_func_symlink_works
=yes
23022 gl_cv_func_symlink_works
=no
23024 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23025 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23028 rm -f conftest.f conftest.link conftest.lnk2
23030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_symlink_works" >&5
23031 $as_echo "$gl_cv_func_symlink_works" >&6; }
23032 case "$gl_cv_func_symlink_works" in
23040 if test $HAVE_SYMLINK = 0 ||
test $REPLACE_SYMLINK = 1; then
23049 gl_LIBOBJS
="$gl_LIBOBJS symlink.$ac_objext"
23066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/select.h> is self-contained" >&5
23067 $as_echo_n "checking whether <sys/select.h> is self-contained... " >&6; }
23068 if test "${gl_cv_header_sys_select_h_selfcontained+set}" = set; then :
23069 $as_echo_n "(cached) " >&6
23072 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23073 /* end confdefs.h. */
23074 #include <sys/select.h>
23083 if ac_fn_c_try_compile
"$LINENO"; then :
23084 gl_cv_header_sys_select_h_selfcontained
=yes
23086 gl_cv_header_sys_select_h_selfcontained
=no
23088 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23089 if test $gl_cv_header_sys_select_h_selfcontained = yes; then
23090 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23091 /* end confdefs.h. */
23092 #include <sys/select.h>
23096 int memset; int bzero;
23102 if ac_fn_c_try_compile
"$LINENO"; then :
23103 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23104 /* end confdefs.h. */
23105 #include <sys/select.h>
23111 #define memset nonexistent_memset
23116 void *memset (void *, int, unsigned long);
23118 #define bzero nonexistent_bzero
23123 void bzero (void *, unsigned long);
23132 if ac_fn_c_try_link
"$LINENO"; then :
23135 gl_cv_header_sys_select_h_selfcontained
=no
23137 rm -f core conftest.err conftest.
$ac_objext \
23138 conftest
$ac_exeext conftest.
$ac_ext
23141 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_selfcontained" >&5
23146 $as_echo "$gl_cv_header_sys_select_h_selfcontained" >&6; }
23156 if test $gl_cv_have_include_next = yes; then
23157 gl_cv_next_sys_select_h
='<'sys
/select.h
'>'
23159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/select.h>" >&5
23160 $as_echo_n "checking absolute name of <sys/select.h>... " >&6; }
23161 if test "${gl_cv_next_sys_select_h+set}" = set; then :
23162 $as_echo_n "(cached) " >&6
23165 if test $ac_cv_header_sys_select_h = yes; then
23168 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23169 /* end confdefs.h. */
23170 #include <sys/select.h>
23174 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
23175 *) gl_absname_cpp
="$ac_cpp" ;;
23180 gl_dirsep_regex
='[/\\]'
23183 gl_dirsep_regex
='\/'
23186 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
23188 gl_header_literal_regex
=`echo 'sys/select.h' \
23189 | sed -e "$gl_make_literal_regex_sed"`
23190 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23191 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23196 gl_cv_next_sys_select_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23197 sed -n "$gl_absolute_header_sed"`'"'
23199 gl_cv_next_sys_select_h
='<'sys
/select.h
'>'
23204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_select_h" >&5
23205 $as_echo "$gl_cv_next_sys_select_h" >&6; }
23207 NEXT_SYS_SELECT_H
=$gl_cv_next_sys_select_h
23209 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
23210 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23211 gl_next_as_first_directive
='<'sys
/select.h
'>'
23213 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23214 gl_next_as_first_directive
=$gl_cv_next_sys_select_h
23216 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H
=$gl_next_as_first_directive
23221 if test $ac_cv_header_sys_select_h = yes; then
23222 HAVE_SYS_SELECT_H
=1
23224 HAVE_SYS_SELECT_H
=0
23231 if test $ac_cv_header_sys_socket_h != yes; then
23232 for ac_header
in winsock2.h
23234 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
23235 if test "x$ac_cv_header_winsock2_h" = x
""yes; then :
23236 cat >>confdefs.h
<<_ACEOF
23237 #define HAVE_WINSOCK2_H 1
23245 if test "$ac_cv_header_winsock2_h" = yes; then
23247 UNISTD_H_HAVE_WINSOCK2_H
=1
23248 SYS_IOCTL_H_HAVE_WINSOCK2_H
=1
23274 if test $gl_cv_have_include_next = yes; then
23275 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
23277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
23278 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
23279 if test "${gl_cv_next_sys_stat_h+set}" = set; then :
23280 $as_echo_n "(cached) " >&6
23283 if test $ac_cv_header_sys_stat_h = yes; then
23286 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23287 /* end confdefs.h. */
23288 #include <sys/stat.h>
23292 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
23293 *) gl_absname_cpp
="$ac_cpp" ;;
23298 gl_dirsep_regex
='[/\\]'
23301 gl_dirsep_regex
='\/'
23304 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
23306 gl_header_literal_regex
=`echo 'sys/stat.h' \
23307 | sed -e "$gl_make_literal_regex_sed"`
23308 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23309 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23314 gl_cv_next_sys_stat_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23315 sed -n "$gl_absolute_header_sed"`'"'
23317 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
23322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
23323 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
23325 NEXT_SYS_STAT_H
=$gl_cv_next_sys_stat_h
23327 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
23328 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23329 gl_next_as_first_directive
='<'sys
/stat.h
'>'
23331 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23332 gl_next_as_first_directive
=$gl_cv_next_sys_stat_h
23334 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
=$gl_next_as_first_directive
23346 if test $WINDOWS_64_BIT_ST_SIZE = 1; then
23348 $as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h
23352 ac_fn_c_check_type
"$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
23353 #include <sys/stat.h>
23355 if test "x$ac_cv_type_nlink_t" = x
""yes; then :
23359 $as_echo "#define nlink_t int" >>confdefs.h
23380 ac_fn_c_check_decl
"$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "#include <time.h>
23382 if test "x$ac_cv_have_decl_localtime_r" = x
""yes; then :
23388 cat >>confdefs.h
<<_ACEOF
23389 #define HAVE_DECL_LOCALTIME_R $ac_have_decl
23392 if test $ac_cv_have_decl_localtime_r = no
; then
23393 HAVE_DECL_LOCALTIME_R
=0
23397 if test $ac_cv_func_localtime_r = yes; then
23399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
23400 $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
23401 if test "${gl_cv_time_r_posix+set}" = set; then :
23402 $as_echo_n "(cached) " >&6
23404 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23405 /* end confdefs.h. */
23410 /* We don't need to append 'restrict's to the argument types,
23411 even though the POSIX signature has the 'restrict's,
23412 since C99 says they can't affect type compatibility. */
23413 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
23415 /* Check the return type is a pointer.
23416 On HP-UX 10 it is 'int'. */
23417 *localtime_r (0, 0);
23423 if ac_fn_c_try_compile
"$LINENO"; then :
23424 gl_cv_time_r_posix
=yes
23426 gl_cv_time_r_posix
=no
23428 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
23432 $as_echo "$gl_cv_time_r_posix" >&6; }
23433 if test $gl_cv_time_r_posix = yes; then
23434 REPLACE_LOCALTIME_R
=0
23436 REPLACE_LOCALTIME_R
=1
23442 if test $HAVE_LOCALTIME_R = 0 ||
test $REPLACE_LOCALTIME_R = 1; then
23451 gl_LIBOBJS
="$gl_LIBOBJS time_r.$ac_objext"
23482 if test $gl_cv_have_include_next = yes; then
23483 gl_cv_next_unistd_h
='<'unistd.h
'>'
23485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
23486 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
23487 if test "${gl_cv_next_unistd_h+set}" = set; then :
23488 $as_echo_n "(cached) " >&6
23491 if test $ac_cv_header_unistd_h = yes; then
23494 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23495 /* end confdefs.h. */
23496 #include <unistd.h>
23500 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
23501 *) gl_absname_cpp
="$ac_cpp" ;;
23506 gl_dirsep_regex
='[/\\]'
23509 gl_dirsep_regex
='\/'
23512 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
23514 gl_header_literal_regex
=`echo 'unistd.h' \
23515 | sed -e "$gl_make_literal_regex_sed"`
23516 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23517 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23522 gl_cv_next_unistd_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23523 sed -n "$gl_absolute_header_sed"`'"'
23525 gl_cv_next_unistd_h
='<'unistd.h
'>'
23530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
23531 $as_echo "$gl_cv_next_unistd_h" >&6; }
23533 NEXT_UNISTD_H
=$gl_cv_next_unistd_h
23535 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
23536 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23537 gl_next_as_first_directive
='<'unistd.h
'>'
23539 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23540 gl_next_as_first_directive
=$gl_cv_next_unistd_h
23542 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
=$gl_next_as_first_directive
23547 if test $ac_cv_header_unistd_h = yes; then
23566 if test $ac_cv_func_futimens = no
&& test $ac_cv_func_futimesat = yes; then
23567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether futimesat handles NULL file" >&5
23568 $as_echo_n "checking whether futimesat handles NULL file... " >&6; }
23569 if test "${gl_cv_func_futimesat_works+set}" = set; then :
23570 $as_echo_n "(cached) " >&6
23572 touch conftest.
file
23573 if test "$cross_compiling" = yes; then :
23575 # Guess yes on glibc systems.
23576 *-gnu*) gl_cv_func_futimesat_works
="guessing yes" ;;
23577 # If we don't know, assume the worst.
23578 *) gl_cv_func_futimesat_works
="guessing no" ;;
23582 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23583 /* end confdefs.h. */
23585 #include <stddef.h>
23586 #include <sys/times.h>
23592 int fd = open ("conftest.file", O_RDWR);
23593 if (fd < 0) return 1;
23594 if (futimesat (fd, NULL, NULL)) return 2;
23600 if ac_fn_c_try_run
"$LINENO"; then :
23601 gl_cv_func_futimesat_works
=yes
23603 gl_cv_func_futimesat_works
=no
23605 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23606 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23609 rm -f conftest.
file
23611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_futimesat_works" >&5
23612 $as_echo "$gl_cv_func_futimesat_works" >&6; }
23613 case "$gl_cv_func_futimesat_works" in
23617 $as_echo "#define FUTIMESAT_NULL_BUG 1" >>confdefs.h
23623 gl_gnulib_enabled_dosname
=false
23624 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36
=false
23625 gl_gnulib_enabled_pathmax
=false
23626 gl_gnulib_enabled_stat
=false
23627 gl_gnulib_enabled_strtoll
=false
23628 gl_gnulib_enabled_strtoull
=false
23629 gl_gnulib_enabled_verify
=false
23630 func_gl_gnulib_m4code_dosname
()
23632 if ! $gl_gnulib_enabled_dosname; then
23633 gl_gnulib_enabled_dosname
=true
23636 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36
()
23638 if ! $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
23641 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36
=true
23644 func_gl_gnulib_m4code_pathmax
()
23646 if ! $gl_gnulib_enabled_pathmax; then
23650 gl_gnulib_enabled_pathmax
=true
23653 func_gl_gnulib_m4code_stat
()
23655 if ! $gl_gnulib_enabled_stat; then
23659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
23660 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
23661 if test "${gl_cv_func_stat_dir_slash+set}" = set; then :
23662 $as_echo_n "(cached) " >&6
23664 if test "$cross_compiling" = yes; then :
23666 mingw
*) gl_cv_func_stat_dir_slash
="guessing no";;
23667 *) gl_cv_func_stat_dir_slash
="guessing yes";;
23670 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23671 /* end confdefs.h. */
23672 #include <sys/stat.h>
23677 struct stat st; return stat (".", &st) != stat ("./", &st);
23682 if ac_fn_c_try_run
"$LINENO"; then :
23683 gl_cv_func_stat_dir_slash
=yes
23685 gl_cv_func_stat_dir_slash
=no
23687 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23688 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
23693 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
23694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
23695 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
23696 if test "${gl_cv_func_stat_file_slash+set}" = set; then :
23697 $as_echo_n "(cached) " >&6
23700 # Assume that if we have lstat, we can also check symlinks.
23701 if test $ac_cv_func_lstat = yes; then
23702 ln -s conftest.tmp conftest.lnk
23704 if test "$cross_compiling" = yes; then :
23706 # Guess yes on glibc systems.
23707 *-gnu*) gl_cv_func_stat_file_slash
="guessing yes" ;;
23708 # If we don't know, assume the worst.
23709 *) gl_cv_func_stat_file_slash
="guessing no" ;;
23713 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23714 /* end confdefs.h. */
23715 #include <sys/stat.h>
23722 if (!stat ("conftest.tmp/", &st))
23725 if (!stat ("conftest.lnk/", &st))
23734 if ac_fn_c_try_run
"$LINENO"; then :
23735 gl_cv_func_stat_file_slash
=yes
23737 gl_cv_func_stat_file_slash
=no
23739 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23740 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23743 rm -f conftest.tmp conftest.lnk
23745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
23746 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
23747 case $gl_cv_func_stat_dir_slash in
23748 *no
) REPLACE_STAT
=1
23750 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
23753 case $gl_cv_func_stat_file_slash in
23754 *no
) REPLACE_STAT
=1
23756 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
23760 if test $REPLACE_STAT = 1; then
23769 gl_LIBOBJS
="$gl_LIBOBJS stat.$ac_objext"
23787 gl_gnulib_enabled_stat
=true
23788 if test $REPLACE_STAT = 1; then
23789 func_gl_gnulib_m4code_dosname
23791 if test $REPLACE_STAT = 1; then
23792 func_gl_gnulib_m4code_pathmax
23794 if test $REPLACE_STAT = 1; then
23795 func_gl_gnulib_m4code_verify
23799 func_gl_gnulib_m4code_strtoll
()
23801 if ! $gl_gnulib_enabled_strtoll; then
23805 if test "$ac_cv_type_long_long_int" = yes; then
23806 for ac_func
in strtoll
23808 ac_fn_c_check_func
"$LINENO" "strtoll" "ac_cv_func_strtoll"
23809 if test "x$ac_cv_func_strtoll" = x
""yes; then :
23810 cat >>confdefs.h
<<_ACEOF
23811 #define HAVE_STRTOLL 1
23817 if test $ac_cv_func_strtoll = no
; then
23822 if test $HAVE_STRTOLL = 0; then
23831 gl_LIBOBJS
="$gl_LIBOBJS strtoll.$ac_objext"
23848 gl_gnulib_enabled_strtoll
=true
23851 func_gl_gnulib_m4code_strtoull
()
23853 if ! $gl_gnulib_enabled_strtoull; then
23857 if test "$ac_cv_type_unsigned_long_long_int" = yes; then
23858 for ac_func
in strtoull
23860 ac_fn_c_check_func
"$LINENO" "strtoull" "ac_cv_func_strtoull"
23861 if test "x$ac_cv_func_strtoull" = x
""yes; then :
23862 cat >>confdefs.h
<<_ACEOF
23863 #define HAVE_STRTOULL 1
23869 if test $ac_cv_func_strtoull = no
; then
23874 if test $HAVE_STRTOULL = 0; then
23883 gl_LIBOBJS
="$gl_LIBOBJS strtoull.$ac_objext"
23900 gl_gnulib_enabled_strtoull
=true
23903 func_gl_gnulib_m4code_verify
()
23905 if ! $gl_gnulib_enabled_verify; then
23906 gl_gnulib_enabled_verify
=true
23909 if test $REPLACE_GETOPT = 1; then
23910 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36
23912 if test $REPLACE_LSTAT = 1; then
23913 func_gl_gnulib_m4code_dosname
23915 if test $REPLACE_LSTAT = 1; then
23916 func_gl_gnulib_m4code_stat
23918 if test $HAVE_READLINK = 0 ||
test $REPLACE_READLINK = 1; then
23919 func_gl_gnulib_m4code_stat
23921 if { test $HAVE_STRTOIMAX = 0 ||
test $REPLACE_STRTOIMAX = 1; } && test $ac_cv_type_long_long_int = yes; then
23922 func_gl_gnulib_m4code_strtoll
23924 if test $HAVE_STRTOIMAX = 0 ||
test $REPLACE_STRTOIMAX = 1; then
23925 func_gl_gnulib_m4code_verify
23927 if test $ac_cv_func_strtoumax = no
&& test $ac_cv_type_unsigned_long_long_int = yes; then
23928 func_gl_gnulib_m4code_strtoull
23930 if test $ac_cv_func_strtoumax = no
; then
23931 func_gl_gnulib_m4code_verify
23934 if $gl_gnulib_enabled_dosname; then
23935 gl_GNULIB_ENABLED_dosname_TRUE
=
23936 gl_GNULIB_ENABLED_dosname_FALSE
='#'
23938 gl_GNULIB_ENABLED_dosname_TRUE
='#'
23939 gl_GNULIB_ENABLED_dosname_FALSE
=
23942 if $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
23943 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE
=
23944 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE
='#'
23946 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE
='#'
23947 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE
=
23950 if $gl_gnulib_enabled_pathmax; then
23951 gl_GNULIB_ENABLED_pathmax_TRUE
=
23952 gl_GNULIB_ENABLED_pathmax_FALSE
='#'
23954 gl_GNULIB_ENABLED_pathmax_TRUE
='#'
23955 gl_GNULIB_ENABLED_pathmax_FALSE
=
23958 if $gl_gnulib_enabled_stat; then
23959 gl_GNULIB_ENABLED_stat_TRUE
=
23960 gl_GNULIB_ENABLED_stat_FALSE
='#'
23962 gl_GNULIB_ENABLED_stat_TRUE
='#'
23963 gl_GNULIB_ENABLED_stat_FALSE
=
23966 if $gl_gnulib_enabled_strtoll; then
23967 gl_GNULIB_ENABLED_strtoll_TRUE
=
23968 gl_GNULIB_ENABLED_strtoll_FALSE
='#'
23970 gl_GNULIB_ENABLED_strtoll_TRUE
='#'
23971 gl_GNULIB_ENABLED_strtoll_FALSE
=
23974 if $gl_gnulib_enabled_strtoull; then
23975 gl_GNULIB_ENABLED_strtoull_TRUE
=
23976 gl_GNULIB_ENABLED_strtoull_FALSE
='#'
23978 gl_GNULIB_ENABLED_strtoull_TRUE
='#'
23979 gl_GNULIB_ENABLED_strtoull_FALSE
=
23982 if $gl_gnulib_enabled_verify; then
23983 gl_GNULIB_ENABLED_verify_TRUE
=
23984 gl_GNULIB_ENABLED_verify_FALSE
='#'
23986 gl_GNULIB_ENABLED_verify_TRUE
='#'
23987 gl_GNULIB_ENABLED_verify_FALSE
=
23990 # End of code from modules
24011 gl_source_base
='tests'
24012 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
24014 gl_module_indicator_condition
=$gltests_WITNESS
24025 LIBGNU_LIBDEPS
="$gl_libdeps"
24027 LIBGNU_LTLIBDEPS
="$gl_ltlibdeps"
24030 CFLAGS
=$SAVE_CFLAGS
24034 aix4-2
) LD_SWITCH_SYSTEM_TEMACS
="-Wl,-bnodelcsect" ;;
24037 ## The -headerpad option tells ld (see man page) to leave room at the
24038 ## end of the header for adding load commands. Needed for dumping.
24039 ## 0x690 is the total size of 30 segment load commands (at 56
24040 ## each); under Cocoa 31 commands are required.
24041 if test "$HAVE_NS" = "yes"; then
24042 libs_nsgui
="-framework AppKit"
24043 headerpad_extra
=6C8
24046 headerpad_extra
=690
24048 LD_SWITCH_SYSTEM_TEMACS
="-fno-pie -prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
24050 ## This is here because src/Makefile.in did some extra fiddling around
24051 ## with LD_SWITCH_SYSTEM. The cpp logic was:
24052 ## #ifndef LD_SWITCH_SYSTEM
24053 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
24054 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
24055 ## not using gcc, darwin.
24056 ## Because this was done in src/Makefile.in, the resulting part of
24057 ## LD_SWITCH_SYSTEM was not used in configure (ie, in ac_link).
24058 ## It therefore seems cleaner to put this in LD_SWITCH_SYSTEM_TEMACS,
24059 ## rather than LD_SWITCH_SYSTEM.
24060 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
24061 LD_SWITCH_SYSTEM_TEMACS
="-X $LD_SWITCH_SYSTEM_TEMACS"
24064 ## LD_SWITCH_X_SITE_RPATH is a -rpath option saying where to
24065 ## find X at run-time.
24066 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at the
24067 ## point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_RPATH
24068 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
24069 ## had different values in configure (in ac_link) and src/Makefile.in.
24070 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
24071 gnu
*) LD_SWITCH_SYSTEM_TEMACS
="\$(LD_SWITCH_X_SITE_RPATH)" ;;
24073 *) LD_SWITCH_SYSTEM_TEMACS
= ;;
24076 if test "$NS_IMPL_GNUSTEP" = "yes"; then
24077 LD_SWITCH_SYSTEM_TEMACS
="${LD_SWITCH_SYSTEM_TEMACS} -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES} -lgnustep-gui -lgnustep-base -lobjc -lpthread"
24086 ## gnu: GNU needs its own crt0.
24087 aix4-2|cygwin|darwin|gnu|hpux
*|irix6-5|sol2
*|unixware
) ORDINARY_LINK
=yes ;;
24089 ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the
24090 ## library search parth, i.e. it won't search /usr/lib for libc and
24091 ## friends. Using -nostartfiles instead avoids this problem, and
24092 ## will also work on earlier NetBSD releases.
24093 netbsd|openbsd
) LD_FIRSTFLAG
="-nostartfiles" ;;
24095 ## powerpc*: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says
24096 ## MkLinux/LinuxPPC needs this.
24097 ## s390x-* only supports opsys = gnu-linux so it can be added here.
24099 case "$canonical" in
24100 powerpc
*|s390x-
*) LD_FIRSTFLAG
="-nostdlib" ;;
24106 if test "x$ORDINARY_LINK" = "xyes"; then
24110 $as_echo "#define ORDINARY_LINK 1" >>confdefs.h
24113 ## The system files defining neither ORDINARY_LINK nor LD_FIRSTFLAG are:
24114 ## freebsd, gnu-* not on powerpc*|s390x*.
24115 elif test "x$GCC" = "xyes" && test "x$LD_FIRSTFLAG" = "x"; then
24117 ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
24118 ## places that are difficult to figure out at make time. Fortunately,
24119 ## these same versions allow you to pass arbitrary flags on to the
24120 ## linker, so there is no reason not to use it as a linker.
24122 ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from
24123 ## searching for libraries in its internal directories, so we have to
24124 ## ask GCC explicitly where to find libgcc.a (LIB_GCC below).
24125 LD_FIRSTFLAG
="-nostdlib"
24128 ## FIXME? What setting of EDIT_LDFLAGS should this have?
24129 test "$NS_IMPL_GNUSTEP" = "yes" && LD_FIRSTFLAG
="-rdynamic"
24134 ## FIXME? The logic here is not precisely the same as that above.
24135 ## There is no check here for a pre-defined LD_FIRSTFLAG.
24136 ## Should we only be setting LIB_GCC if LD ~ -nostdlib?
24138 if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then
24141 freebsd|netbsd|openbsd
) LIB_GCC
= ;;
24144 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
24145 ## build on ARM EABI under GNU/Linux. (Bug#5518)
24151 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
24152 ## immediately undefine it again and redefine it to empty.
24153 ## Was the C_SWITCH_X_SITE part really necessary?
24154 ## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
24160 ## Ask GCC where to find libgcc.a.
24161 *) LIB_GCC
=`$CC -print-libgcc-file-name 2> /dev/null` ;;
24165 ## Common for all window systems
24166 if test "$window_system" != "none"; then
24168 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
24171 $as_echo "#define HAVE_MOUSE 1" >>confdefs.h
24173 WINDOW_SYSTEM_OBJ
="fontset.o fringe.o image.o"
24180 #### Report on what we decided to do.
24181 #### Report GTK as a toolkit, even if it doesn't use Xt.
24182 #### It makes printing result more understandable as using GTK sets
24183 #### toolkit_scroll_bars to yes by default.
24184 if test "${HAVE_GTK}" = "yes"; then
24185 if test "${with_gtk3}" = "yes"; then
24193 Configured for \`${canonical}'.
24195 Where should the build process find the source code? ${srcdir}
24196 What compiler should emacs be built with? ${CC} ${CFLAGS}
24197 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
24198 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
24199 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
24200 What window system should Emacs use? ${window_system}
24201 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
24203 if test -n "${x_includes}"; then
24204 echo " Where do we find X Windows header files? ${x_includes}"
24206 echo " Where do we find X Windows header files? Standard dirs"
24208 if test -n "${x_libraries}"; then
24209 echo " Where do we find X Windows libraries? ${x_libraries}"
24211 echo " Where do we find X Windows libraries? Standard dirs"
24214 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
24215 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
24216 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
24217 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
24218 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
24219 echo " Does Emacs use -lpng? ${HAVE_PNG}"
24220 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
24221 echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
24223 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
24224 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
24225 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
24226 echo " Does Emacs use GSettings? ${HAVE_GSETTINGS}"
24227 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
24228 echo " Does Emacs use -lgnutls? ${HAVE_GNUTLS}"
24229 echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}"
24231 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
24232 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
24233 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
24234 echo " Does Emacs use -lxft? ${HAVE_XFT}"
24236 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
24239 if test -n "${EMACSDATA}"; then
24240 echo " Environment variable EMACSDATA set to: $EMACSDATA"
24242 if test -n "${EMACSDOC}"; then
24243 echo " Environment variable EMACSDOC set to: $EMACSDOC"
24248 if test "$HAVE_NS" = "yes"; then
24250 echo "You must run \"${MAKE-make} install\" in order to test the built application.
24251 The installed application will go to nextstep/Emacs.app and can be
24252 run or moved from there."
24253 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
24254 echo "The application will be fully self-contained."
24256 echo "The lisp resources for the application will be installed under ${prefix}.
24257 You may need to run \"${MAKE-make} install\" with sudo. The application will fail
24258 to run if these resources are not installed."
24263 if test "${opsys}" = "cygwin"; then
24265 1.5.
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: building Emacs on Cygwin 1.5 is not supported." >&5
24266 $as_echo "$as_me: WARNING: building Emacs on Cygwin 1.5 is not supported." >&2;}
24272 # Remove any trailing slashes in these variables.
24273 test "${prefix}" != NONE
&&
24274 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
24275 test "${exec_prefix}" != NONE
&&
24276 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
24278 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"
24280 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"
24283 opt_makefile
=test
/automated
/Makefile
24285 if test -f $srcdir/${opt_makefile}.
in; then
24286 SUBDIR_MAKEFILES
="$SUBDIR_MAKEFILES $opt_makefile"
24287 ac_config_files
="$ac_config_files test/automated/Makefile"
24292 opt_makefile
=admin
/unidata
/Makefile
24294 if test -f $srcdir/${opt_makefile}.
in; then
24295 SUBDIR_MAKEFILES
="$SUBDIR_MAKEFILES $opt_makefile"
24296 ac_config_files
="$ac_config_files admin/unidata/Makefile"
24301 SUBDIR_MAKEFILES_IN
=`echo " ${SUBDIR_MAKEFILES}" | sed -e 's| | $(srcdir)/|g' -e 's|Makefile|Makefile.in|g'`
24305 ac_config_commands
="$ac_config_commands mkdirs"
24308 ac_config_commands
="$ac_config_commands epaths"
24311 ac_config_commands
="$ac_config_commands gdbinit"
24314 cat >confcache
<<\_ACEOF
24315 # This file is a shell script that caches the results of configure
24316 # tests run on this system so they can be shared between configure
24317 # scripts and configure runs, see configure's option --config-cache.
24318 # It is not useful on other systems. If it contains results you don't
24319 # want to keep, you may remove or edit it.
24321 # config.status only pays attention to the cache file if you give it
24322 # the --recheck option to rerun configure.
24324 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24325 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24326 # following values.
24330 # The following way of writing the cache mishandles newlines in values,
24331 # but we know of no workaround that is simple, portable, and efficient.
24332 # So, we kill variables containing newlines.
24333 # Ultrix sh set writes to stderr and can't be redirected directly,
24334 # and sets the high bit in the cache file unless we assign to the vars.
24336 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24337 eval ac_val
=\$
$ac_var
24341 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
24342 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
24345 _ | IFS | as_nl
) ;; #(
24346 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
24347 *) { eval $ac_var=; unset $ac_var;} ;;
24353 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24354 *${as_nl}ac_space
=\
*)
24355 # `set' does not quote correctly, so add quotes: double-quote
24356 # substitution turns \\\\ into \\, and sed turns \\ into \.
24359 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24362 # `set' quotes correctly as required by POSIX, so do not add quotes.
24363 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24372 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24374 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24376 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
24377 if test -w "$cache_file"; then
24378 test "x$cache_file" != "x/dev/null" &&
24379 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
24380 $as_echo "$as_me: updating cache $cache_file" >&6;}
24381 cat confcache
>$cache_file
24383 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
24384 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24389 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
24390 # Let make expand exec_prefix.
24391 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
24393 DEFS
=-DHAVE_CONFIG_H
24397 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
24398 # 1. Remove the extension, and $U if already installed.
24399 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
24400 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
24401 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24402 # will be set to the directory where LIBOBJS objects are built.
24403 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24404 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
24406 LIBOBJS
=$ac_libobjs
24408 LTLIBOBJS
=$ac_ltlibobjs
24411 if test -n "$EXEEXT"; then
24413 am__EXEEXT_FALSE
='#'
24415 am__EXEEXT_TRUE
='#'
24419 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
24420 as_fn_error
"conditional \"AMDEP\" was never defined.
24421 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24423 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
24424 as_fn_error
"conditional \"am__fastdepCC\" was never defined.
24425 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24427 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
24428 as_fn_error
"conditional \"GL_COND_LIBTOOL\" was never defined.
24429 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24431 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
24432 as_fn_error
"conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
24433 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24436 if test -z "${GL_GENERATE_EXECINFO_H_TRUE}" && test -z "${GL_GENERATE_EXECINFO_H_FALSE}"; then
24437 as_fn_error
"conditional \"GL_GENERATE_EXECINFO_H\" was never defined.
24438 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24440 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
24441 as_fn_error
"conditional \"GL_GENERATE_STDINT_H\" was never defined.
24442 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24444 if test -z "${GL_GENERATE_STDALIGN_H_TRUE}" && test -z "${GL_GENERATE_STDALIGN_H_FALSE}"; then
24445 as_fn_error
"conditional \"GL_GENERATE_STDALIGN_H\" was never defined.
24446 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24448 if test -z "${GL_GENERATE_STDARG_H_TRUE}" && test -z "${GL_GENERATE_STDARG_H_FALSE}"; then
24449 as_fn_error
"conditional \"GL_GENERATE_STDARG_H\" was never defined.
24450 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24452 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
24453 as_fn_error
"conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
24454 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24456 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
24457 as_fn_error
"conditional \"GL_GENERATE_STDDEF_H\" was never defined.
24458 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24460 if test -z "${gl_GNULIB_ENABLED_dosname_TRUE}" && test -z "${gl_GNULIB_ENABLED_dosname_FALSE}"; then
24461 as_fn_error
"conditional \"gl_GNULIB_ENABLED_dosname\" was never defined.
24462 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24464 if test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE}" && test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE}"; then
24465 as_fn_error
"conditional \"gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36\" was never defined.
24466 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24468 if test -z "${gl_GNULIB_ENABLED_pathmax_TRUE}" && test -z "${gl_GNULIB_ENABLED_pathmax_FALSE}"; then
24469 as_fn_error
"conditional \"gl_GNULIB_ENABLED_pathmax\" was never defined.
24470 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24472 if test -z "${gl_GNULIB_ENABLED_stat_TRUE}" && test -z "${gl_GNULIB_ENABLED_stat_FALSE}"; then
24473 as_fn_error
"conditional \"gl_GNULIB_ENABLED_stat\" was never defined.
24474 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24476 if test -z "${gl_GNULIB_ENABLED_strtoll_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoll_FALSE}"; then
24477 as_fn_error
"conditional \"gl_GNULIB_ENABLED_strtoll\" was never defined.
24478 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24480 if test -z "${gl_GNULIB_ENABLED_strtoull_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoull_FALSE}"; then
24481 as_fn_error
"conditional \"gl_GNULIB_ENABLED_strtoull\" was never defined.
24482 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24484 if test -z "${gl_GNULIB_ENABLED_verify_TRUE}" && test -z "${gl_GNULIB_ENABLED_verify_FALSE}"; then
24485 as_fn_error
"conditional \"gl_GNULIB_ENABLED_verify\" was never defined.
24486 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24491 if test -n "$gl_LIBOBJS"; then
24492 # Remove the extension.
24493 sed_drop_objext
='s/\.o$//;s/\.obj$//'
24494 for i
in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
24495 gl_libobjs
="$gl_libobjs $i.$ac_objext"
24496 gl_ltlibobjs
="$gl_ltlibobjs $i.lo"
24499 gl_LIBOBJS
=$gl_libobjs
24501 gl_LTLIBOBJS
=$gl_ltlibobjs
24507 if test -n "$gltests_LIBOBJS"; then
24508 # Remove the extension.
24509 sed_drop_objext
='s/\.o$//;s/\.obj$//'
24510 for i
in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
24511 gltests_libobjs
="$gltests_libobjs $i.$ac_objext"
24512 gltests_ltlibobjs
="$gltests_ltlibobjs $i.lo"
24515 gltests_LIBOBJS
=$gltests_libobjs
24517 gltests_LTLIBOBJS
=$gltests_ltlibobjs
24521 : ${CONFIG_STATUS=./config.status}
24523 ac_clean_files_save
=$ac_clean_files
24524 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
24525 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
24526 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
24528 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
24530 # Generated by $as_me.
24531 # Run this file to recreate the current configuration.
24532 # Compiler output produced by configure, useful for debugging
24533 # configure, is in config.log if it exists.
24536 ac_cs_recheck=false
24539 SHELL=\${CONFIG_SHELL-$SHELL}
24542 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
24543 ## -------------------- ##
24544 ## M4sh Initialization. ##
24545 ## -------------------- ##
24547 # Be more Bourne compatible
24548 DUALCASE
=1; export DUALCASE
# for MKS sh
24549 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
24552 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24553 # is contrary to our usage. Disable this feature.
24554 alias -g '${1+"$@"}'='"$@"'
24555 setopt NO_GLOB_SUBST
24557 case `(set -o) 2>/dev/null` in #(
24569 # Printing a long string crashes Solaris 7 /usr/bin/printf.
24570 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
24571 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
24572 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
24573 # Prefer a ksh shell builtin over an external printf program on Solaris,
24574 # but without wasting forks for bash or zsh.
24575 if test -z "$BASH_VERSION$ZSH_VERSION" \
24576 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
24577 as_echo='print
-r --'
24578 as_echo_n='print
-rn --'
24579 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
24580 as_echo='printf %s
\n'
24581 as_echo_n='printf %s
'
24583 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
24584 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
24585 as_echo_n='/usr
/ucb
/echo -n'
24587 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
24588 as_echo_n_body='eval
24592 expr "X$arg" : "X\\(.*\\)$as_nl";
24593 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
24595 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
24597 export as_echo_n_body
24598 as_echo_n='sh
-c $as_echo_n_body as_echo
'
24600 export as_echo_body
24601 as_echo='sh
-c $as_echo_body as_echo
'
24604 # The user is always right.
24605 if test "${PATH_SEPARATOR+set}" != set; then
24607 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
24608 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
24615 # We need space, tab and new line, in precisely that order. Quoting is
24616 # there to prevent editors from complaining about space-tab.
24617 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24618 # splitting by setting IFS to empty value.)
24621 # Find who we are. Look in the path if we contain no directory separator.
24623 *[\\/]* ) as_myself=$0 ;;
24624 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24625 for as_dir in $PATH
24628 test -z "$as_dir" && as_dir=.
24629 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24635 # We did not find ourselves, most probably we were run as `sh COMMAND'
24636 # in which case we are not to be found in the path.
24637 if test "x$as_myself" = x
; then
24640 if test ! -f "$as_myself"; then
24641 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24645 # Unset variables that we do not need and which cause bugs (e.g. in
24646 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
24647 # suppresses any "Segmentation fault" message there. '((' could
24648 # trigger a bug in pdksh 5.2.14.
24649 for as_var
in BASH_ENV ENV MAIL MAILPATH
24650 do eval test x\
${$as_var+set} = xset \
24651 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
24664 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
24667 # as_fn_error ERROR [LINENO LOG_FD]
24668 # ---------------------------------
24669 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
24670 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
24671 # script with status $?, using 1 if that was 0.
24674 as_status
=$?
; test $as_status -eq 0 && as_status
=1
24676 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
24677 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
24679 $as_echo "$as_me: error: $1" >&2
24680 as_fn_exit
$as_status
24684 # as_fn_set_status STATUS
24685 # -----------------------
24686 # Set $? to STATUS, without forking.
24687 as_fn_set_status
()
24690 } # as_fn_set_status
24692 # as_fn_exit STATUS
24693 # -----------------
24694 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
24698 as_fn_set_status
$1
24704 # Portably unset VAR.
24707 { eval $1=; unset $1;}
24709 as_unset
=as_fn_unset
24710 # as_fn_append VAR VALUE
24711 # ----------------------
24712 # Append the text in VALUE to the end of the definition contained in VAR. Take
24713 # advantage of any shell optimizations that allow amortized linear growth over
24714 # repeated appends, instead of the typical quadratic growth present in naive
24716 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
24717 eval 'as_fn_append ()
24728 # as_fn_arith ARG...
24729 # ------------------
24730 # Perform arithmetic evaluation on the ARGs, and store the result in the
24731 # global $as_val. Take advantage of shells that can avoid forks. The arguments
24732 # must be portable across $(()) and expr.
24733 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
24734 eval 'as_fn_arith ()
24741 as_val
=`expr "$@" || test $? -eq 1`
24746 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
24747 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
24753 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24754 as_basename
=basename
24759 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
24765 as_me
=`$as_basename -- "$0" ||
24766 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24767 X"$0" : 'X\(//\)$' \| \
24768 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24770 sed '/^.*\/\([^/][^/]*\)\/*$/{
24784 # Avoid depending upon Character Ranges.
24785 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
24786 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24787 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
24788 as_cr_digits
='0123456789'
24789 as_cr_alnum
=$as_cr_Letters$as_cr_digits
24791 ECHO_C
= ECHO_N
= ECHO_T
=
24792 case `echo -n x` in #(((((
24794 case `echo 'xy\c'` in
24795 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
24797 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
24804 rm -f conf$$ conf$$.exe conf$$.
file
24805 if test -d conf$$.dir
; then
24806 rm -f conf$$.dir
/conf$$.
file
24809 mkdir conf$$.dir
2>/dev
/null
24811 if (echo >conf$$.
file) 2>/dev
/null
; then
24812 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
24814 # ... but there are two gotchas:
24815 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24816 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24817 # In both cases, we have to default to `cp -p'.
24818 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
24820 elif ln conf$$.
file conf$$
2>/dev
/null
; then
24828 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
24829 rmdir conf$$.dir
2>/dev
/null
24834 # Create "$as_dir" as a directory, including parents if necessary.
24839 -*) as_dir
=.
/$as_dir;;
24841 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
24845 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
24846 *) as_qdir
=$as_dir;;
24848 as_dirs
="'$as_qdir' $as_dirs"
24849 as_dir
=`$as_dirname -- "$as_dir" ||
24850 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24851 X"$as_dir" : 'X\(//\)[^/]' \| \
24852 X"$as_dir" : 'X\(//\)$' \| \
24853 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24854 $as_echo X"$as_dir" |
24855 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24859 /^X\(\/\/\)[^/].*/{
24872 test -d "$as_dir" && break
24874 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
24875 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
24879 if mkdir
-p .
2>/dev
/null
; then
24880 as_mkdir_p
='mkdir -p "$as_dir"'
24882 test -d .
/-p && rmdir .
/-p
24886 if test -x / >/dev
/null
2>&1; then
24887 as_test_x
='test -x'
24889 if ls -dL / >/dev
/null
2>&1; then
24896 if test -d "$1"; then
24902 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
24903 ???[sx]*):;;*)false;;esac;fi
24907 as_executable_p
=$as_test_x
24909 # Sed expression to map a string onto a valid CPP name.
24910 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24912 # Sed expression to map a string onto a valid variable name.
24913 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24917 ## ----------------------------------- ##
24918 ## Main body of $CONFIG_STATUS script. ##
24919 ## ----------------------------------- ##
24921 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
24923 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
24924 # Save the log message, to keep $0 and so on meaningful, and to
24925 # report actual input values of CONFIG_FILES etc. instead of their
24926 # values after options handling.
24928 This file was extended by emacs $as_me 24.2.50, which was
24929 generated by GNU Autoconf 2.65. Invocation command line was
24931 CONFIG_FILES = $CONFIG_FILES
24932 CONFIG_HEADERS = $CONFIG_HEADERS
24933 CONFIG_LINKS = $CONFIG_LINKS
24934 CONFIG_COMMANDS = $CONFIG_COMMANDS
24937 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24942 case $ac_config_files in *"
24943 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
24946 case $ac_config_headers in *"
24947 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
24951 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24952 # Files that config.status was made for.
24953 config_files="$ac_config_files"
24954 config_headers="$ac_config_headers"
24955 config_commands="$ac_config_commands"
24959 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
24961 \`$as_me' instantiates files and other configuration actions
24962 from templates according to the current configuration. Unless the files
24963 and actions are specified as TAGs, all are instantiated by default.
24965 Usage: $0 [OPTION]... [TAG]...
24967 -h, --help print this help, then exit
24968 -V, --version print version number and configuration settings, then exit
24969 --config print configuration, then exit
24970 -q, --quiet, --silent
24971 do not print progress messages
24972 -d, --debug don't remove temporary files
24973 --recheck update $as_me by reconfiguring in the same conditions
24974 --file=FILE[:TEMPLATE]
24975 instantiate the configuration file FILE
24976 --header=FILE[:TEMPLATE]
24977 instantiate the configuration header FILE
24979 Configuration files:
24982 Configuration headers:
24985 Configuration commands:
24988 Report bugs to the package provider."
24991 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24992 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
24994 emacs config.status 24.2.50
24995 configured by $0, generated by GNU Autoconf 2.65,
24996 with options \\"\$ac_cs_config\\"
24998 Copyright (C) 2009 Free Software Foundation, Inc.
24999 This config.status script is free software; the Free Software Foundation
25000 gives unlimited permission to copy, distribute and modify it."
25007 test -n "\$AWK" || AWK=awk
25010 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
25011 # The default lists apply if the user does not specify any file.
25017 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
25018 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
25029 # Handling of the options.
25030 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
25032 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
25033 $as_echo "$ac_cs_version"; exit ;;
25034 --config |
--confi |
--conf |
--con |
--co |
--c )
25035 $as_echo "$ac_cs_config"; exit ;;
25036 --debug |
--debu |
--deb |
--de |
--d |
-d )
25038 --file |
--fil |
--fi |
--f )
25041 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25043 as_fn_append CONFIG_FILES
" '$ac_optarg'"
25044 ac_need_defaults
=false
;;
25045 --header |
--heade |
--head |
--hea )
25048 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25050 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
25051 ac_need_defaults
=false
;;
25053 # Conflict between --help and --header
25054 as_fn_error
"ambiguous option: \`$1'
25055 Try \`$0 --help' for more information.";;
25056 --help |
--hel |
-h )
25057 $as_echo "$ac_cs_usage"; exit ;;
25058 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
25059 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
25062 # This is an error.
25063 -*) as_fn_error
"unrecognized option: \`$1'
25064 Try \`$0 --help' for more information." ;;
25066 *) as_fn_append ac_config_targets
" $1"
25067 ac_need_defaults
=false
;;
25073 ac_configure_extra_args
=
25075 if $ac_cs_silent; then
25077 ac_configure_extra_args
="$ac_configure_extra_args --silent"
25081 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25082 if \$ac_cs_recheck; then
25083 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25085 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
25086 CONFIG_SHELL='$SHELL'
25087 export CONFIG_SHELL
25092 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
25096 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25097 ## Running $as_me. ##
25103 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25107 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
25108 GCC="$GCC" CPPFLAGS="$CPPFLAGS"
25112 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
25114 # Handling of arguments.
25115 for ac_config_target
in $ac_config_targets
25117 case $ac_config_target in
25118 "src/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
25119 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
25120 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
25121 "lib/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/Makefile" ;;
25122 "lib-src/Makefile") CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile" ;;
25123 "oldXMenu/Makefile") CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
25124 "doc/emacs/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/emacs/Makefile" ;;
25125 "doc/misc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/misc/Makefile" ;;
25126 "doc/lispintro/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispintro/Makefile" ;;
25127 "doc/lispref/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispref/Makefile" ;;
25128 "src/Makefile") CONFIG_FILES
="$CONFIG_FILES src/Makefile" ;;
25129 "lwlib/Makefile") CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
25130 "lisp/Makefile") CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
25131 "leim/Makefile") CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
25132 "test/automated/Makefile") CONFIG_FILES
="$CONFIG_FILES test/automated/Makefile" ;;
25133 "admin/unidata/Makefile") CONFIG_FILES
="$CONFIG_FILES admin/unidata/Makefile" ;;
25134 "mkdirs") CONFIG_COMMANDS
="$CONFIG_COMMANDS mkdirs" ;;
25135 "epaths") CONFIG_COMMANDS
="$CONFIG_COMMANDS epaths" ;;
25136 "gdbinit") CONFIG_COMMANDS
="$CONFIG_COMMANDS gdbinit" ;;
25138 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
25143 # If the user did not use the arguments to specify the items to instantiate,
25144 # then the envvar interface is used. Set only those that are not.
25145 # We use the long form for the default assignment because of an extremely
25146 # bizarre bug on SunOS 4.1.3.
25147 if $ac_need_defaults; then
25148 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
25149 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
25150 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
25153 # Have a temporary directory for convenience. Make it in the build tree
25154 # simply because there is no reason against having it here, and in addition,
25155 # creating and moving files from /tmp can sometimes cause problems.
25156 # Hook for its removal unless debugging.
25157 # Note that there is a small window in which the directory will not be cleaned:
25158 # after its creation but before its name has been assigned to `$tmp'.
25162 trap 'exit_status=$?
25163 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
25165 trap 'as_fn_exit 1' 1 2 13 15
25167 # Create a (secure) tmp directory for tmp files.
25170 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25171 test -n "$tmp" && test -d "$tmp"
25174 tmp
=.
/conf$$
-$RANDOM
25175 (umask 077 && mkdir
"$tmp")
25176 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
25178 # Set up the scripts for CONFIG_FILES section.
25179 # No need to generate them if there are no CONFIG_FILES.
25180 # This happens for instance with `./config.status config.h'.
25181 if test -n "$CONFIG_FILES"; then
25183 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
25184 ac_cs_awk_getline
=:
25185 ac_cs_awk_pipe_init
=
25186 ac_cs_awk_read_file
='
25187 while ((getline aline < (F[key])) > 0)
25190 ac_cs_awk_pipe_fini
=
25192 ac_cs_awk_getline
=false
25193 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
25194 ac_cs_awk_read_file
='
25196 print "cat " F[key] " &&"
25197 '$ac_cs_awk_pipe_init
25198 # The final `:' finishes the AND list.
25199 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
25201 ac_cr
=`echo X | tr X '\015'`
25202 # On cygwin, bash can eat \r inside `` if the user requested igncr.
25203 # But we know of no other shell where ac_cr would be empty at this
25204 # point, so we can use a bashism as a fallback.
25205 if test "x$ac_cr" = x
; then
25206 eval ac_cr
=\$
\'\\r
\'
25208 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
25209 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
25212 ac_cs_awk_cr
=$ac_cr
25215 echo 'BEGIN {' >"$tmp/subs1.awk" &&
25218 # Create commands to substitute file output variables.
25220 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
25221 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
25222 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
25225 } >conf$
$files.sh
&&
25226 . .
/conf$
$files.sh ||
25227 as_fn_error
"could not make $CONFIG_STATUS" "$LINENO" 5
25228 rm -f conf$
$files.sh
25231 echo "cat >conf$$subs.awk <<_ACEOF" &&
25232 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
25234 } >conf$$subs.sh ||
25235 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
25236 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
25238 for ac_last_try in false false false false false :; do
25239 . ./conf$$subs.sh ||
25240 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
25242 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
25243 if test $ac_delim_n = $ac_delim_num; then
25245 elif $ac_last_try; then
25246 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
25248 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
25251 rm -f conf$$subs.sh
25253 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25254 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
25258 s/^/S["/; s
/!.
*/"]=/
25268 s/\(.\{148\}\)..*/\1/
25270 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
25275 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
25282 s/\(.\{148\}\)..*/\1/
25284 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
25288 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
25293 ' <conf$$subs.awk | sed '
25298 ' >>$CONFIG_STATUS || ac_write_fail=1
25299 rm -f conf$$subs.awk
25300 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25302 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
25303 for (key in S) S_is_set[key] = 1
25305 \$ac_cs_awk_pipe_init
25309 nfields = split(line, field, "@
")
25311 len = length(field[1])
25312 for (i = 2; i < nfields; i++) {
25314 keylen = length(key)
25315 if (S_is_set[key]) {
25317 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
25318 len += length(value) + length(field[++i])
25323 if (nfields == 3 && !substed) {
25325 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
25326 \$ac_cs_awk_read_file
25332 \$ac_cs_awk_pipe_fini
25335 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25336 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
25337 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
25340 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
25341 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
25344 # VPATH may cause trouble with some makes, so we remove $(srcdir),
25345 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
25346 # trailing colons and then remove the whole line if VPATH becomes empty
25347 # (actually we leave an empty line to preserve line numbers).
25348 if test "x
$srcdir" = x.; then
25349 ac_vpsub='/^[ ]*VPATH[ ]*=/{
25350 s/:*\$(srcdir):*/:/
25351 s/:*\${srcdir}:*/:/
25353 s/^\([^=]*=[ ]*\):*/\1/
25359 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25360 fi # test -n "$CONFIG_FILES"
25362 # Set up the scripts for CONFIG_HEADERS section.
25363 # No need to generate them if there are no CONFIG_HEADERS.
25364 # This happens for instance with `./config.status Makefile'.
25365 if test -n "$CONFIG_HEADERS"; then
25366 cat >"$tmp/defines.
awk" <<\_ACAWK ||
25370 # Transform confdefs.h into an awk script `defines.awk', embedded as
25371 # here-document in config.status, that substitutes the proper values into
25372 # config.h.in to produce config.h.
25374 # Create a delimiter string that does not exist in confdefs.h, to ease
25375 # handling of long lines.
25377 for ac_last_try in false false :; do
25378 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
25379 if test -z "$ac_t"; then
25381 elif $ac_last_try; then
25382 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
25384 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
25388 # For the awk script, D is an array of macro values keyed by name,
25389 # likewise P contains macro parameters if any. Preserve backslash
25390 # newline sequences.
25392 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25394 s/.\{148\}/&'"$ac_delim"'/g
25397 s/^[ ]*#[ ]*define[ ][ ]*/ /
25404 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
25406 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
25410 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
25411 D["\
1"]=" \
3\\\\\\n
"\\/p
25413 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
25418 s/.\{148\}/&'"$ac_delim"'/g
25423 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
25426 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
25428 ' <confdefs.h | sed '
25429 s/'"$ac_delim"'/"\\\
25430 "/g' >>$CONFIG_STATUS || ac_write_fail=1
25432 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25433 for (key in D) D_is_set[key] = 1
25436 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
25438 split(line, arg, " ")
25439 if (arg[1] == "#") {
25443 defundef
= substr
(arg
[1], 2)
25446 split(mac1
, mac2
, "(") #)
25448 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
25449 if (D_is_set
[macro
]) {
25450 # Preserve the white space surrounding the "#".
25451 print prefix
"define", macro P
[macro
] D
[macro
]
25454 # Replace #undef with comments. This is necessary, for example,
25455 # in the case of _POSIX_SOURCE, which is predefined and required
25456 # on some systems where configure will not decide to define it.
25457 if (defundef
== "undef") {
25458 print
"/*", prefix defundef
, macro
, "*/"
25466 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
25467 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
25468 fi # test -n "$CONFIG_HEADERS"
25471 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
25476 :[FHLC
]) ac_mode
=$ac_tag; continue;;
25478 case $ac_mode$ac_tag in
25480 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
25481 :[FH
]-) ac_tag
=-:-;;
25482 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
25499 -) ac_f
="$tmp/stdin";;
25500 *) # Look for the file first in the build tree, then in the source tree
25501 # (if the path is not absolute). The absolute path cannot be DOS-style,
25502 # because $ac_f cannot contain `:'.
25506 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
25508 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
25510 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
25511 as_fn_append ac_file_inputs
" '$ac_f'"
25514 # Let's still pretend it is `configure' which instantiates (i.e., don't
25515 # use $as_me), people would be surprised to read:
25516 # /* config.h. Generated by config.status. */
25517 configure_input
='Generated from '`
25518 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
25520 if test x
"$ac_file" != x-
; then
25521 configure_input
="$ac_file. $configure_input"
25522 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
25523 $as_echo "$as_me: creating $ac_file" >&6;}
25525 # Neutralize special characters interpreted by sed in replacement strings.
25526 case $configure_input in #(
25527 *\
&* |
*\|
* |
*\\* )
25528 ac_sed_conf_input
=`$as_echo "$configure_input" |
25529 sed 's/[\\\\&|]/\\\\&/g'`;; #(
25530 *) ac_sed_conf_input
=$configure_input;;
25534 *:-:* |
*:-) cat >"$tmp/stdin" \
25535 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
25540 ac_dir
=`$as_dirname -- "$ac_file" ||
25541 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25542 X"$ac_file" : 'X\(//\)[^/]' \| \
25543 X"$ac_file" : 'X\(//\)$' \| \
25544 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25545 $as_echo X"$ac_file" |
25546 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25550 /^X\(\/\/\)[^/].*/{
25563 as_dir
="$ac_dir"; as_fn_mkdir_p
25567 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
25569 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
25570 # A ".." for each directory in $ac_dir_suffix.
25571 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
25572 case $ac_top_builddir_sub in
25573 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
25574 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
25577 ac_abs_top_builddir
=$ac_pwd
25578 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
25579 # for backward compatibility:
25580 ac_top_builddir
=$ac_top_build_prefix
25583 .
) # We are building in place.
25585 ac_top_srcdir
=$ac_top_builddir_sub
25586 ac_abs_top_srcdir
=$ac_pwd ;;
25587 [\\/]* | ?
:[\\/]* ) # Absolute name.
25588 ac_srcdir
=$srcdir$ac_dir_suffix;
25589 ac_top_srcdir
=$srcdir
25590 ac_abs_top_srcdir
=$srcdir ;;
25591 *) # Relative name.
25592 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
25593 ac_top_srcdir
=$ac_top_build_prefix$srcdir
25594 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
25596 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
25606 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
25607 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
25609 ac_MKDIR_P
=$MKDIR_P
25611 [\\/$
]* | ?
:[\\/]* ) ;;
25612 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
25616 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
25617 # If the template does not know about datarootdir, expand it.
25618 # FIXME: This hack should be removed a few years after 2.60.
25619 ac_datarootdir_hack
=; ac_datarootdir_seen
=
25630 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
25631 *datarootdir
*) ac_datarootdir_seen
=yes;;
25632 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
25633 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25634 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25636 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25637 ac_datarootdir_hack='
25638 s&@datadir@&$datadir&g
25639 s&@docdir@&$docdir&g
25640 s&@infodir@&$infodir&g
25641 s&@localedir@&$localedir&g
25642 s&@mandir@&$mandir&g
25643 s&\\\${datarootdir}&$datarootdir&g' ;;
25647 # Neutralize VPATH when `$srcdir' = `.'.
25648 # Shell code in configure.ac might set extrasub.
25649 # FIXME: do we really want to maintain this feature?
25650 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25651 ac_sed_extra="$ac_vpsub
25654 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
25656 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
25657 s|@configure_input@|
$ac_sed_conf_input|
;t t
25658 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
25659 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
25660 s
&@srcdir@
&$ac_srcdir&;t t
25661 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
25662 s
&@top_srcdir@
&$ac_top_srcdir&;t t
25663 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
25664 s
&@builddir@
&$ac_builddir&;t t
25665 s
&@abs_builddir@
&$ac_abs_builddir&;t t
25666 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
25667 s
&@INSTALL@
&$ac_INSTALL&;t t
25668 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
25669 $ac_datarootdir_hack
25671 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
25672 if $ac_cs_awk_getline; then
25673 $AWK -f "$tmp/subs.
awk"
25675 $AWK -f "$tmp/subs.
awk" | $SHELL
25677 || as_fn_error "could not create
$ac_file" "$LINENO" 5
25679 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25680 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
25681 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
25682 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
25683 which seems to be undefined. Please make sure it is defined." >&5
25684 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
25685 which seems to be undefined. Please make sure it is defined." >&2;}
25689 -) cat "$tmp/out" && rm -f "$tmp/out";;
25690 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
25692 || as_fn_error "could not create $ac_file" "$LINENO" 5
25698 if test x"$ac_file" != x-; then
25700 $as_echo "/* $configure_input */" \
25701 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
25702 } >"$tmp/config.h" \
25703 || as_fn_error "could not create $ac_file" "$LINENO" 5
25704 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
25705 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
25706 $as_echo "$as_me: $ac_file is unchanged" >&6;}
25709 mv "$tmp/config.h" "$ac_file" \
25710 || as_fn_error "could not create $ac_file" "$LINENO" 5
25713 $as_echo "/* $configure_input */" \
25714 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
25715 || as_fn_error "could not create -" "$LINENO" 5
25717 # Compute "$ac_file"'s index
in $config_headers.
25720 for _am_header
in $config_headers :; do
25721 case $_am_header in
25722 $_am_arg |
$_am_arg:* )
25725 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
25728 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
25729 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25730 X"$_am_arg" : 'X\(//\)[^/]' \| \
25731 X"$_am_arg" : 'X\(//\)$' \| \
25732 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
25733 $as_echo X"$_am_arg" |
25734 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25738 /^X\(\/\/\)[^/].*/{
25750 s/.*/./; q'`/stamp-h
$_am_stamp_count
25753 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
25754 $as_echo "$as_me: executing $ac_file commands" >&6;}
25759 case $ac_file$ac_mode in
25760 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
25761 # Autoconf 2.62 quotes --file arguments for eval, but not when files
25762 # are listed without --file. Let's play safe and only enable the eval
25763 # if we detect the quoting.
25764 case $CONFIG_FILES in
25765 *\'*) eval set x
"$CONFIG_FILES" ;;
25766 *) set x
$CONFIG_FILES ;;
25771 # Strip MF so we end up with the name of the file.
25772 mf
=`echo "$mf" | sed -e 's/:.*$//'`
25773 # Check whether this is an Automake generated Makefile or not.
25774 # We used to match only the files named `Makefile.in', but
25775 # some people rename them; so instead we look at the file content.
25776 # Grep'ing the first line is not enough: some people post-process
25777 # each Makefile.in and add a new line on top of each file to say so.
25778 # Grep'ing the whole file is not good either: AIX grep has a line
25779 # limit of 2048, but all sed's we know have understand at least 4000.
25780 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
25781 dirpart
=`$as_dirname -- "$mf" ||
25782 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25783 X"$mf" : 'X\(//\)[^/]' \| \
25784 X"$mf" : 'X\(//\)$' \| \
25785 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
25787 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25791 /^X\(\/\/\)[^/].*/{
25807 # Extract the definition of DEPDIR, am__include, and am__quote
25808 # from the Makefile without running `make'.
25809 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
25810 test -z "$DEPDIR" && continue
25811 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
25812 test -z "am__include" && continue
25813 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
25814 # When using ansi2knr, U may be empty or an underscore; expand it
25815 U
=`sed -n 's/^U = //p' < "$mf"`
25816 # Find all dependency output files, they are included files with
25817 # $(DEPDIR) in their names. We invoke sed twice because it is the
25818 # simplest approach to changing $(DEPDIR) to its actual value in the
25820 for file in `sed -n "
25821 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
25822 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
25823 # Make sure the directory exists.
25824 test -f "$dirpart/$file" && continue
25825 fdir
=`$as_dirname -- "$file" ||
25826 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25827 X"$file" : 'X\(//\)[^/]' \| \
25828 X"$file" : 'X\(//\)$' \| \
25829 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
25830 $as_echo X"$file" |
25831 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25835 /^X\(\/\/\)[^/].*/{
25848 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
25849 # echo "creating $dirpart/$file"
25850 echo '# dummy' > "$dirpart/$file"
25856 for dir
in etc lisp
; do
25857 test -d ${dir} || mkdir
${dir}
25861 echo creating src
/epaths.h
25862 ${MAKE-make} MAKEFILE_NAME
=do-not-make-Makefile epaths-force
25865 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
25866 echo creating src
/.gdbinit
25867 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
25877 ac_clean_files
=$ac_clean_files_save
25879 test $ac_write_fail = 0 ||
25880 as_fn_error
"write failure creating $CONFIG_STATUS" "$LINENO" 5
25883 # configure is writing to config.log, and then calls config.status.
25884 # config.status does its own redirection, appending to config.log.
25885 # Unfortunately, on DOS this fails, as config.log is still kept open
25886 # by configure, so config.status won't be able to write to it; its
25887 # output is simply discarded. So we exec the FD to /dev/null,
25888 # effectively closing config.log, so it can be properly (re)opened and
25889 # appended to by config.status. When coming back to configure, we
25890 # need to make the FD available again.
25891 if test "$no_create" != yes; then
25893 ac_config_status_args
=
25894 test "$silent" = yes &&
25895 ac_config_status_args
="$ac_config_status_args --quiet"
25897 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
25899 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25900 # would make configure fail if this is the last instruction.
25901 $ac_cs_success || as_fn_exit $?
25903 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
25904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
25905 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}