2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for emacs 24.2.91.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE
=1; export DUALCASE
# for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print
-rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
55 as_echo_n='/usr
/ucb
/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
68 as_echo_n='sh
-c $as_echo_n_body as_echo
'
71 as_echo='sh
-c $as_echo_body as_echo
'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x
; then
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var
in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\
${$as_var+set} = xset \
121 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
134 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
136 if test "x$CONFIG_SHELL" = x
; then
137 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
145 case \`(set -o) 2>/dev/null\` in #(
153 as_required
="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167 exitcode=1; echo positional parameters were not saved.
169 test x\$exitcode = x0 || exit 1"
170 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev
/null
; then :
180 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
183 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
185 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
188 test -z "$as_dir" && as_dir
=.
192 for as_base
in sh bash ksh sh5
; do
193 # Try only shells that exist, to save several forks.
194 as_shell
=$as_dir/$as_base
195 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
197 CONFIG_SHELL
=$as_shell as_have_required
=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
206 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
208 CONFIG_SHELL
=$SHELL as_have_required
=yes
213 if test "x$CONFIG_SHELL" != x
; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
219 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224 if test x
$as_have_required = xno
; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x
${ZSH_VERSION+set} = xset
; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
231 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232 $0: including any error possibly output before this
233 $0: message. Then install a modern shell, or manually run
234 $0: the script under such a shell if you do have one."
240 SHELL
=${CONFIG_SHELL-/bin/sh}
242 # Unset more variables known to interfere with behavior of common tools.
243 CLICOLOR_FORCE
= GREP_OPTIONS
=
244 unset CLICOLOR_FORCE GREP_OPTIONS
246 ## --------------------- ##
247 ## M4sh Shell Functions. ##
248 ## --------------------- ##
251 # Portably unset VAR.
254 { eval $1=; unset $1;}
258 # as_fn_set_status STATUS
259 # -----------------------
260 # Set $? to STATUS, without forking.
268 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
278 # Create "$as_dir" as a directory, including parents if necessary.
283 -*) as_dir
=.
/$as_dir;;
285 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
289 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
292 as_dirs
="'$as_qdir' $as_dirs"
293 as_dir
=`$as_dirname -- "$as_dir" ||
294 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295 X"$as_dir" : 'X\(//\)[^/]' \| \
296 X"$as_dir" : 'X\(//\)$' \| \
297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298 $as_echo X"$as_dir" |
299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
316 test -d "$as_dir" && break
318 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
319 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
323 # as_fn_append VAR VALUE
324 # ----------------------
325 # Append the text in VALUE to the end of the definition contained in VAR. Take
326 # advantage of any shell optimizations that allow amortized linear growth over
327 # repeated appends, instead of the typical quadratic growth present in naive
329 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
330 eval 'as_fn_append ()
343 # Perform arithmetic evaluation on the ARGs, and store the result in the
344 # global $as_val. Take advantage of shells that can avoid forks. The arguments
345 # must be portable across $(()) and expr.
346 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
354 as_val
=`expr "$@" || test $? -eq 1`
359 # as_fn_error ERROR [LINENO LOG_FD]
360 # ---------------------------------
361 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363 # script with status $?, using 1 if that was 0.
366 as_status
=$?
; test $as_status -eq 0 && as_status
=1
368 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
371 $as_echo "$as_me: error: $1" >&2
372 as_fn_exit
$as_status
375 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
376 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
382 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
388 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
394 as_me
=`$as_basename -- "$0" ||
395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396 X"$0" : 'X\(//\)$' \| \
397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
399 sed '/^.*\/\([^/][^/]*\)\/*$/{
413 # Avoid depending upon Character Ranges.
414 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
415 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
417 as_cr_digits
='0123456789'
418 as_cr_alnum
=$as_cr_Letters$as_cr_digits
421 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
422 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
441 chmod +x
"$as_me.lineno" ||
442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
444 # Don't try to exec as it changes $[0], causing all sort of problems
445 # (the dirname of $[0] is not the place where we might find the
446 # original and so on. Autoconf is especially sensitive to this).
448 # Exit status is that of the last command.
452 ECHO_C
= ECHO_N
= ECHO_T
=
453 case `echo -n x` in #(((((
455 case `echo 'xy\c'` in
456 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
458 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
465 rm -f conf$$ conf$$.exe conf$$.
file
466 if test -d conf$$.dir
; then
467 rm -f conf$$.dir
/conf$$.
file
470 mkdir conf$$.dir
2>/dev
/null
472 if (echo >conf$$.
file) 2>/dev
/null
; then
473 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
475 # ... but there are two gotchas:
476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478 # In both cases, we have to default to `cp -p'.
479 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
481 elif ln conf$$.
file conf$$
2>/dev
/null
; then
489 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
490 rmdir conf$$.dir
2>/dev
/null
492 if mkdir
-p .
2>/dev
/null
; then
493 as_mkdir_p
='mkdir -p "$as_dir"'
495 test -d .
/-p && rmdir .
/-p
499 if test -x / >/dev
/null
2>&1; then
502 if ls -dL / >/dev
/null
2>&1; then
509 if test -d "$1"; then
515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516 ???[sx]*):;;*)false;;esac;fi
520 as_executable_p
=$as_test_x
522 # Sed expression to map a string onto a valid CPP name.
523 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
525 # Sed expression to map a string onto a valid variable name.
526 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
529 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
533 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
534 # so uname gets run too.
535 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
540 ac_default_prefix
=/usr
/local
542 ac_config_libobj_dir
=.
549 # Identity of this package.
551 PACKAGE_TARNAME
='emacs'
552 PACKAGE_VERSION
='24.2.91'
553 PACKAGE_STRING
='emacs 24.2.91'
557 ac_unique_file
="src/lisp.h"
558 # Factoring default headers for most tests.
559 ac_includes_default
="\
561 #ifdef HAVE_SYS_TYPES_H
562 # include <sys/types.h>
564 #ifdef HAVE_SYS_STAT_H
565 # include <sys/stat.h>
571 # ifdef HAVE_STDLIB_H
576 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
581 #ifdef HAVE_STRINGS_H
582 # include <strings.h>
584 #ifdef HAVE_INTTYPES_H
585 # include <inttypes.h>
596 gl_getopt_required
=POSIX
597 gl_getopt_required
=POSIX
598 ac_subst_vars
='gltests_LTLIBOBJS
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
635 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
636 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
637 TIME_H_DEFINES_STRUCT_TIMESPEC
638 NEXT_AS_FIRST_DIRECTIVE_TIME_H
640 WINDOWS_64_BIT_ST_SIZE
641 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
643 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
645 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
654 REPLACE_STDIO_WRITE_FUNCS
655 REPLACE_STDIO_READ_FUNCS
664 REPLACE_OBSTACK_PRINTF
689 HAVE_DECL_OBSTACK_PRINTF
695 GNULIB_VSPRINTF_POSIX
699 GNULIB_VFPRINTF_POSIX
706 GNULIB_STDIO_H_SIGPIPE
707 GNULIB_STDIO_H_NONBLOCKING
722 GNULIB_OBSTACK_PRINTF_POSIX
723 GNULIB_OBSTACK_PRINTF
748 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
750 GL_GENERATE_STDDEF_H_FALSE
751 GL_GENERATE_STDDEF_H_TRUE
756 GL_GENERATE_STDBOOL_H_FALSE
757 GL_GENERATE_STDBOOL_H_TRUE
759 GL_GENERATE_STDARG_H_FALSE
760 GL_GENERATE_STDARG_H_TRUE
762 NEXT_AS_FIRST_DIRECTIVE_STDARG_H
764 GL_GENERATE_STDALIGN_H_FALSE
765 GL_GENERATE_STDALIGN_H_TRUE
767 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
771 REPLACE_PTHREAD_SIGMASK
773 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
774 HAVE_STRUCT_SIGACTION_SA_SIGACTION
780 HAVE_POSIX_SIGNALBLOCKING
783 GNULIB_SIGNAL_H_SIGPIPE
785 GNULIB_PTHREAD_SIGMASK
787 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H
801 HAVE_DECL_LOCALTIME_R
840 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
842 UINT64_MAX_EQ_ULONG_MAX
843 UINT32_MAX_LT_UINTMAX_MAX
846 INT64_MAX_EQ_LONG_MAX
847 INT32_MAX_LT_INTMAX_MAX
857 GL_GENERATE_STDINT_H_FALSE
858 GL_GENERATE_STDINT_H_TRUE
867 HAVE_SIGNED_SIG_ATOMIC_T
870 BITSIZEOF_SIG_ATOMIC_T
873 APPLE_UNIVERSAL_BUILD
877 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
882 HAVE_UNSIGNED_LONG_LONG_INT
885 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
887 REPLACE_STRUCT_TIMEVAL
893 GNULIB_GL_UNISTD_H_GETOPT
896 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
900 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
916 REPLACE_CANONICALIZE_FILE_NAME
921 HAVE_STRUCT_RANDOM_DATA
943 HAVE_CANONICALIZE_FILE_NAME
973 GNULIB_CANONICALIZE_FILE_NAME
977 GL_GENERATE_EXECINFO_H_FALSE
978 GL_GENERATE_EXECINFO_H_TRUE
981 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
982 UNISTD_H_HAVE_WINSOCK2_H
1003 REPLACE_GETDOMAINNAME
1014 HAVE_DECL_SETHOSTNAME
1015 HAVE_DECL_GETUSERSHELL
1016 HAVE_DECL_GETPAGESIZE
1017 HAVE_DECL_GETLOGIN_R
1018 HAVE_DECL_GETDOMAINNAME
1057 GNULIB_UNISTD_H_SIGPIPE
1058 GNULIB_UNISTD_H_NONBLOCKING
1084 GNULIB_GETDTABLESIZE
1085 GNULIB_GETDOMAINNAME
1102 GL_GENERATE_ALLOCA_H_FALSE
1103 GL_GENERATE_ALLOCA_H_TRUE
1106 GL_COND_LIBTOOL_FALSE
1107 GL_COND_LIBTOOL_TRUE
1138 x_default_search_path
1213 INSTALL_ARCH_INDEP_EXTRA
1215 LD_SWITCH_X_SITE_RPATH
1284 INSTALL_STRIP_PROGRAM
1326 program_transform_name
1337 ac_subst_files
='deps_frag
1340 enable_option_checking
1363 with_toolkit_scroll_bars
1376 with_pkg_config_prog
1380 enable_ns_self_contained
1381 enable_locallisppath
1383 enable_check_lisp_object_type
1386 enable_dependency_tracking
1389 enable_link_time_optimization
1392 ac_precious_vars
='build_alias
1404 # Initialize some variables set by options.
1406 ac_init_version
=false
1407 ac_unrecognized_opts
=
1408 ac_unrecognized_sep
=
1409 # The variables have the same names as the options, with
1410 # dashes changed to underlines.
1411 cache_file
=/dev
/null
1418 program_transform_name
=s
,x
,x
,
1426 # Installation directory options.
1427 # These are left unexpanded so users can "make install exec_prefix=/foo"
1428 # and all the variables that are supposed to be based on exec_prefix
1429 # by default will actually change.
1430 # Use braces instead of parens because sh, perl, etc. also accept them.
1431 # (The list follows the same order as the GNU Coding Standards.)
1432 bindir
='${exec_prefix}/bin'
1433 sbindir
='${exec_prefix}/sbin'
1434 libexecdir
='${exec_prefix}/libexec'
1435 datarootdir
='${prefix}/share'
1436 datadir
='${datarootdir}'
1437 sysconfdir
='${prefix}/etc'
1438 sharedstatedir
='${prefix}/com'
1439 localstatedir
='${prefix}/var'
1440 includedir
='${prefix}/include'
1441 oldincludedir
='/usr/include'
1442 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
1443 infodir
='${datarootdir}/info'
1448 libdir
='${exec_prefix}/lib'
1449 localedir
='${datarootdir}/locale'
1450 mandir
='${datarootdir}/man'
1456 # If the previous option needs an argument, assign it.
1457 if test -n "$ac_prev"; then
1458 eval $ac_prev=\
$ac_option
1464 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1468 # Accept the important Cygnus configure options, so we can diagnose typos.
1470 case $ac_dashdash$ac_option in
1474 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1476 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1477 bindir
=$ac_optarg ;;
1479 -build |
--build |
--buil |
--bui |
--bu)
1480 ac_prev
=build_alias
;;
1481 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1482 build_alias
=$ac_optarg ;;
1484 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1485 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1486 ac_prev
=cache_file
;;
1487 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1488 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1489 cache_file
=$ac_optarg ;;
1491 --config-cache |
-C)
1492 cache_file
=config.cache
;;
1494 -datadir |
--datadir |
--datadi |
--datad)
1496 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1497 datadir
=$ac_optarg ;;
1499 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1500 |
--dataroo |
--dataro |
--datar)
1501 ac_prev
=datarootdir
;;
1502 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1503 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1504 datarootdir
=$ac_optarg ;;
1506 -disable-* |
--disable-*)
1507 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1508 # Reject names that are not valid shell variable names.
1509 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1510 as_fn_error
"invalid feature name: $ac_useropt"
1511 ac_useropt_orig
=$ac_useropt
1512 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1513 case $ac_user_opts in
1515 "enable_
$ac_useropt"
1517 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1518 ac_unrecognized_sep
=', ';;
1520 eval enable_
$ac_useropt=no
;;
1522 -docdir |
--docdir |
--docdi |
--doc |
--do)
1524 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1525 docdir
=$ac_optarg ;;
1527 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1529 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1530 dvidir
=$ac_optarg ;;
1532 -enable-* |
--enable-*)
1533 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1534 # Reject names that are not valid shell variable names.
1535 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1536 as_fn_error
"invalid feature name: $ac_useropt"
1537 ac_useropt_orig
=$ac_useropt
1538 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1539 case $ac_user_opts in
1541 "enable_
$ac_useropt"
1543 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1544 ac_unrecognized_sep
=', ';;
1546 eval enable_
$ac_useropt=\
$ac_optarg ;;
1548 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1549 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1550 |
--exec |
--exe |
--ex)
1551 ac_prev
=exec_prefix
;;
1552 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1553 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1554 |
--exec=* |
--exe=* |
--ex=*)
1555 exec_prefix
=$ac_optarg ;;
1557 -gas |
--gas |
--ga |
--g)
1558 # Obsolete; use --with-gas.
1561 -help |
--help |
--hel |
--he |
-h)
1562 ac_init_help
=long
;;
1563 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1564 ac_init_help
=recursive
;;
1565 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1566 ac_init_help
=short
;;
1568 -host |
--host |
--hos |
--ho)
1569 ac_prev
=host_alias
;;
1570 -host=* |
--host=* |
--hos=* |
--ho=*)
1571 host_alias
=$ac_optarg ;;
1573 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1575 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1577 htmldir
=$ac_optarg ;;
1579 -includedir |
--includedir |
--includedi |
--included |
--include \
1580 |
--includ |
--inclu |
--incl |
--inc)
1581 ac_prev
=includedir
;;
1582 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1583 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1584 includedir
=$ac_optarg ;;
1586 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1588 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1589 infodir
=$ac_optarg ;;
1591 -libdir |
--libdir |
--libdi |
--libd)
1593 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1594 libdir
=$ac_optarg ;;
1596 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1597 |
--libexe |
--libex |
--libe)
1598 ac_prev
=libexecdir
;;
1599 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1600 |
--libexe=* |
--libex=* |
--libe=*)
1601 libexecdir
=$ac_optarg ;;
1603 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1604 ac_prev
=localedir
;;
1605 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1606 localedir
=$ac_optarg ;;
1608 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1609 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1610 ac_prev
=localstatedir
;;
1611 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1612 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1613 localstatedir
=$ac_optarg ;;
1615 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1617 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1618 mandir
=$ac_optarg ;;
1620 -nfp |
--nfp |
--nf)
1621 # Obsolete; use --without-fp.
1624 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1625 |
--no-cr |
--no-c |
-n)
1628 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1629 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1632 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1633 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1634 |
--oldin |
--oldi |
--old |
--ol |
--o)
1635 ac_prev
=oldincludedir
;;
1636 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1637 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1638 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1639 oldincludedir
=$ac_optarg ;;
1641 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1643 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1644 prefix
=$ac_optarg ;;
1646 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1647 |
--program-pre |
--program-pr |
--program-p)
1648 ac_prev
=program_prefix
;;
1649 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1650 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1651 program_prefix
=$ac_optarg ;;
1653 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1654 |
--program-suf |
--program-su |
--program-s)
1655 ac_prev
=program_suffix
;;
1656 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1657 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1658 program_suffix
=$ac_optarg ;;
1660 -program-transform-name |
--program-transform-name \
1661 |
--program-transform-nam |
--program-transform-na \
1662 |
--program-transform-n |
--program-transform- \
1663 |
--program-transform |
--program-transfor \
1664 |
--program-transfo |
--program-transf \
1665 |
--program-trans |
--program-tran \
1666 |
--progr-tra |
--program-tr |
--program-t)
1667 ac_prev
=program_transform_name
;;
1668 -program-transform-name=* |
--program-transform-name=* \
1669 |
--program-transform-nam=* |
--program-transform-na=* \
1670 |
--program-transform-n=* |
--program-transform-=* \
1671 |
--program-transform=* |
--program-transfor=* \
1672 |
--program-transfo=* |
--program-transf=* \
1673 |
--program-trans=* |
--program-tran=* \
1674 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1675 program_transform_name
=$ac_optarg ;;
1677 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1679 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1680 pdfdir
=$ac_optarg ;;
1682 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1684 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1687 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1688 |
-silent |
--silent |
--silen |
--sile |
--sil)
1691 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1693 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1695 sbindir
=$ac_optarg ;;
1697 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1698 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1699 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1701 ac_prev
=sharedstatedir
;;
1702 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1703 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1704 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1706 sharedstatedir
=$ac_optarg ;;
1708 -site |
--site |
--sit)
1710 -site=* |
--site=* |
--sit=*)
1713 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1715 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1716 srcdir
=$ac_optarg ;;
1718 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1719 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1720 ac_prev
=sysconfdir
;;
1721 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1722 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1723 sysconfdir
=$ac_optarg ;;
1725 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1726 ac_prev
=target_alias
;;
1727 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1728 target_alias
=$ac_optarg ;;
1730 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1733 -version |
--version |
--versio |
--versi |
--vers |
-V)
1734 ac_init_version
=: ;;
1737 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1738 # Reject names that are not valid shell variable names.
1739 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1740 as_fn_error
"invalid package name: $ac_useropt"
1741 ac_useropt_orig
=$ac_useropt
1742 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1743 case $ac_user_opts in
1747 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1748 ac_unrecognized_sep
=', ';;
1750 eval with_
$ac_useropt=\
$ac_optarg ;;
1752 -without-* |
--without-*)
1753 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1754 # Reject names that are not valid shell variable names.
1755 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1756 as_fn_error
"invalid package name: $ac_useropt"
1757 ac_useropt_orig
=$ac_useropt
1758 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1759 case $ac_user_opts in
1763 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1764 ac_unrecognized_sep
=', ';;
1766 eval with_
$ac_useropt=no
;;
1769 # Obsolete; use --with-x.
1772 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1773 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1774 ac_prev
=x_includes
;;
1775 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1776 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1777 x_includes
=$ac_optarg ;;
1779 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1780 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1781 ac_prev
=x_libraries
;;
1782 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1783 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1784 x_libraries
=$ac_optarg ;;
1786 -*) as_fn_error
"unrecognized option: \`$ac_option'
1787 Try \`$0 --help' for more information."
1791 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1792 # Reject names that are not valid shell variable names.
1793 case $ac_envvar in #(
1794 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1795 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1797 eval $ac_envvar=\
$ac_optarg
1798 export $ac_envvar ;;
1801 # FIXME: should be removed in autoconf 3.0.
1802 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1803 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1804 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1805 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1811 if test -n "$ac_prev"; then
1812 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1813 as_fn_error
"missing argument to $ac_option"
1816 if test -n "$ac_unrecognized_opts"; then
1817 case $enable_option_checking in
1819 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1820 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1824 # Check all directory arguments for consistency.
1825 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1826 datadir sysconfdir sharedstatedir localstatedir includedir \
1827 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1828 libdir localedir mandir
1830 eval ac_val
=\$
$ac_var
1831 # Remove trailing slashes.
1834 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1835 eval $ac_var=\
$ac_val;;
1837 # Be sure to have absolute directory names.
1839 [\\/$
]* | ?
:[\\/]* ) continue;;
1840 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1842 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1845 # There might be people who depend on the old broken behavior: `$host'
1846 # used to hold the argument of --host etc.
1847 # FIXME: To remove some day.
1850 target
=$target_alias
1852 # FIXME: To remove some day.
1853 if test "x$host_alias" != x
; then
1854 if test "x$build_alias" = x
; then
1855 cross_compiling
=maybe
1856 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1857 If a cross compiler is detected then cross compile mode will be used." >&2
1858 elif test "x$build_alias" != "x$host_alias"; then
1864 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1866 test "$silent" = yes && exec 6>/dev
/null
1869 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1870 ac_ls_di
=`ls -di .` &&
1871 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1872 as_fn_error
"working directory cannot be determined"
1873 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1874 as_fn_error
"pwd does not report name of working directory"
1877 # Find the source files, if location was not specified.
1878 if test -z "$srcdir"; then
1879 ac_srcdir_defaulted
=yes
1880 # Try the directory containing this script, then the parent directory.
1881 ac_confdir
=`$as_dirname -- "$as_myself" ||
1882 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1883 X"$as_myself" : 'X\(//\)[^/]' \| \
1884 X"$as_myself" : 'X\(//\)$' \| \
1885 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1886 $as_echo X"$as_myself" |
1887 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1905 if test ! -r "$srcdir/$ac_unique_file"; then
1909 ac_srcdir_defaulted
=no
1911 if test ! -r "$srcdir/$ac_unique_file"; then
1912 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1913 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1915 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1917 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1919 # When building in place, set srcdir=.
1920 if test "$ac_abs_confdir" = "$ac_pwd"; then
1923 # Remove unnecessary trailing slashes from srcdir.
1924 # Double slashes in file names in object file debugging info
1925 # mess up M-x gdb in Emacs.
1927 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1929 for ac_var
in $ac_precious_vars; do
1930 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1931 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1932 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1933 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1937 # Report the --help message.
1939 if test "$ac_init_help" = "long"; then
1940 # Omit some internal or obsolete options to make the list less imposing.
1941 # This message is too long to be a string in the A/UX 3.1 sh.
1943 \`configure' configures emacs 24.2.91 to adapt to many kinds of systems.
1945 Usage: $0 [OPTION]... [VAR=VALUE]...
1947 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1948 VAR=VALUE. See below for descriptions of some of the useful variables.
1950 Defaults for the options are specified in brackets.
1953 -h, --help display this help and exit
1954 --help=short display options specific to this package
1955 --help=recursive display the short help of all the included packages
1956 -V, --version display version information and exit
1957 -q, --quiet, --silent do not print \`checking...' messages
1958 --cache-file=FILE cache test results in FILE [disabled]
1959 -C, --config-cache alias for \`--cache-file=config.cache'
1960 -n, --no-create do not create output files
1961 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1963 Installation directories:
1964 --prefix=PREFIX install architecture-independent files in PREFIX
1965 [$ac_default_prefix]
1966 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1969 By default, \`make install' will install all the files in
1970 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1971 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1972 for instance \`--prefix=\$HOME'.
1974 For better control, use the options below.
1976 Fine tuning of the installation directories:
1977 --bindir=DIR user executables [EPREFIX/bin]
1978 --sbindir=DIR system admin executables [EPREFIX/sbin]
1979 --libexecdir=DIR program executables [EPREFIX/libexec]
1980 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1981 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1982 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1983 --libdir=DIR object code libraries [EPREFIX/lib]
1984 --includedir=DIR C header files [PREFIX/include]
1985 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1986 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1987 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1988 --infodir=DIR info documentation [DATAROOTDIR/info]
1989 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1990 --mandir=DIR man documentation [DATAROOTDIR/man]
1991 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1992 --htmldir=DIR html documentation [DOCDIR]
1993 --dvidir=DIR dvi documentation [DOCDIR]
1994 --pdfdir=DIR pdf documentation [DOCDIR]
1995 --psdir=DIR ps documentation [DOCDIR]
2001 --program-prefix=PREFIX prepend PREFIX to installed program names
2002 --program-suffix=SUFFIX append SUFFIX to installed program names
2003 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
2006 --x-includes=DIR X include files are
in DIR
2007 --x-libraries=DIR X library files are
in DIR
2010 --build=BUILD configure
for building on BUILD
[guessed
]
2011 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
2015 if test -n "$ac_init_help"; then
2016 case $ac_init_help in
2017 short | recursive
) echo "Configuration of emacs 24.2.91:";;
2022 --disable-option-checking ignore unrecognized
--enable/--with options
2023 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
2024 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
2025 --disable-ns-self-contained
2026 disable self contained build under NeXTstep
2027 --enable-locallisppath=PATH
2028 directories Emacs should search
for lisp files
2029 specific to this site
2030 --enable-checking[=LIST
]
2031 enable expensive run-time checks. With LIST
, enable
2032 only specific categories of checks. Categories are
:
2033 all
,yes,no. Flags are
: stringbytes
, stringoverrun
,
2034 stringfreelist
, xmallocoverrun
, conslist
, glyphs
2035 --enable-check-lisp-object-type
2036 enable compile
time checks
for the Lisp_Object data
2037 type. This is useful
for development
for catching
2038 certain types of bugs.
2039 --enable-profiling build emacs with low-level
, gprof profiling support.
2040 Mainly useful
for debugging Emacs itself. May not
2041 work on all platforms. Stops profiler.el working.
2042 --enable-autodepend automatically generate dependencies to .h-files.
2043 Requires GNU Make and Gcc. Enabled
if GNU Make and
2045 --disable-dependency-tracking speeds up one-time build
2046 --enable-dependency-tracking do not reject slow dependency extractors
2047 --disable-largefile omit support
for large files
2048 --enable-gcc-warnings turn on lots of GCC warnings. This is intended
for
2049 developers
, and may generate false alarms when used
2050 with older or non-GNU development tools.
2051 --enable-link-time-optimization
2052 build emacs with link-time optimization. This is
2053 supported only
for GCC since
4.5.0.
2056 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
2057 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
2058 --without-all omit almost all features and build small executable
2059 with minimal dependencies
2060 --without-pop don
't support POP mail retrieval with movemail
2061 --with-kerberos support Kerberos-authenticated POP
2062 --with-kerberos5 support Kerberos version 5 authenticated POP
2063 --with-hesiod support Hesiod to get the POP server host
2064 --with-mmdf support MMDF mailboxes
2065 --with-mail-unlink unlink, rather than empty, mail spool after reading
2066 --with-mailhost=HOSTNAME
2067 string giving default POP mail host
2068 --without-sound don't compile with sound support
2069 --with-x-toolkit=KIT use an X toolkit
(KIT one of
: yes or gtk
, gtk2
,
2070 gtk3
, lucid or athena
, motif
, no
)
2071 --with-wide-int prefer wide Emacs integers
(typically
62-bit)
2072 --without-xpm don
't compile with XPM image support
2073 --without-jpeg don't compile with JPEG image support
2074 --without-tiff don
't compile with TIFF image support
2075 --without-gif don't compile with GIF image support
2076 --without-png don
't compile with PNG image support
2077 --without-rsvg don't compile with SVG image support
2078 --without-xml2 don
't compile with XML parsing support
2079 --without-imagemagick don't compile with ImageMagick image support
2080 --without-xft don
't use XFT for anti aliased fonts
2081 --without-libotf don't use libotf
for OpenType font support
2082 --without-m17n-flt don
't use m17n-flt for text shaping
2083 --without-toolkit-scroll-bars
2084 don't use Motif or Xaw3d scroll bars
2085 --without-xaw3d don
't use Xaw3d
2086 --without-xim don't use X11 XIM
2087 --with-ns use NeXTstep
(Cocoa or GNUstep
) windowing system
2088 --with-w32 use native MS Windows GUI
2089 --without-gpm don
't use -lgpm for mouse support on a GNU/Linux
2091 --without-dbus don't compile with D-Bus support
2092 --without-gconf don
't compile with GConf support
2093 --without-gsettings don't compile with GSettings support
2094 --without-selinux don
't compile with SELinux support
2095 --without-gnutls don't use
-lgnutls for SSL
/TLS support
2096 --without-makeinfo don
't require makeinfo for building manuals
2097 --without-compress-info don't
compress the installed Info pages
2098 --with-pkg-config-prog=PATH
2099 path to pkg-config
for finding GTK and librsvg
2100 --with-crt-dir=DIR directory containing crtn.o etc. The default is
2101 /usr
/lib
, or
/usr
/lib64 on some platforms.
2102 --with-gameuser=USER user
for shared game score files
2103 --with-gnustep-conf=PATH
2104 path to GNUstep.conf
; default
$GNUSTEP_CONFIG_FILE,
2105 or
/etc
/GNUstep
/GNUstep.conf
2106 --with-x use the X Window System
2108 Some influential environment variables
:
2109 CC C compiler
command
2110 CFLAGS C compiler flags
2111 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
2112 nonstandard directory
<lib dir
>
2113 LIBS libraries to pass to the linker
, e.g.
-l<library
>
2114 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
2115 you have headers
in a nonstandard directory
<include dir
>
2117 XMKMF Path to xmkmf
, Makefile generator
for X Window System
2119 Use these variables to override the choices made by
`configure' or to help
2120 it to find libraries and programs with nonstandard names/locations.
2122 Report bugs to the package provider.
2127 if test "$ac_init_help" = "recursive"; then
2128 # If there are subdirs, report their specific --help.
2129 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2130 test -d "$ac_dir" ||
2131 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2136 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2138 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
2139 # A ".." for each directory in $ac_dir_suffix.
2140 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
2141 case $ac_top_builddir_sub in
2142 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2143 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2146 ac_abs_top_builddir=$ac_pwd
2147 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2148 # for backward compatibility:
2149 ac_top_builddir=$ac_top_build_prefix
2152 .) # We are building in place.
2154 ac_top_srcdir=$ac_top_builddir_sub
2155 ac_abs_top_srcdir=$ac_pwd ;;
2156 [\\/]* | ?:[\\/]* ) # Absolute name.
2157 ac_srcdir=$srcdir$ac_dir_suffix;
2158 ac_top_srcdir=$srcdir
2159 ac_abs_top_srcdir=$srcdir ;;
2161 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2162 ac_top_srcdir=$ac_top_build_prefix$srcdir
2163 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2165 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2167 cd "$ac_dir" || { ac_status=$?; continue; }
2168 # Check for guested configure.
2169 if test -f "$ac_srcdir/configure.gnu"; then
2171 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2172 elif test -f "$ac_srcdir/configure"; then
2174 $SHELL "$ac_srcdir/configure" --help=recursive
2176 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2178 cd "$ac_pwd" || { ac_status=$?; break; }
2182 test -n "$ac_init_help" && exit $ac_status
2183 if $ac_init_version; then
2185 emacs configure 24.2.91
2186 generated by GNU Autoconf 2.65
2188 Copyright (C) 2009 Free Software Foundation, Inc.
2189 This configure script is free software; the Free Software Foundation
2190 gives unlimited permission to copy, distribute and modify it.
2195 ## ------------------------ ##
2196 ## Autoconf initialization. ##
2197 ## ------------------------ ##
2199 # ac_fn_c_try_compile LINENO
2200 # --------------------------
2201 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2202 ac_fn_c_try_compile ()
2204 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2205 rm -f conftest.$ac_objext
2206 if { { ac_try="$ac_compile"
2208 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2209 *) ac_try_echo
=$ac_try;;
2211 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2212 $as_echo "$ac_try_echo"; } >&5
2213 (eval "$ac_compile") 2>conftest.err
2215 if test -s conftest.err
; then
2216 grep -v '^ *+' conftest.err
>conftest.er1
2217 cat conftest.er1
>&5
2218 mv -f conftest.er1 conftest.err
2220 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2221 test $ac_status = 0; } && {
2222 test -z "$ac_c_werror_flag" ||
2223 test ! -s conftest.err
2224 } && test -s conftest.
$ac_objext; then :
2227 $as_echo "$as_me: failed program was:" >&5
2228 sed 's/^/| /' conftest.
$ac_ext >&5
2232 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2233 as_fn_set_status
$ac_retval
2235 } # ac_fn_c_try_compile
2237 # ac_fn_c_try_cpp LINENO
2238 # ----------------------
2239 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2242 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2243 if { { ac_try
="$ac_cpp conftest.$ac_ext"
2245 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2246 *) ac_try_echo=$ac_try;;
2248 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2249 $as_echo "$ac_try_echo"; } >&5
2250 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2252 if test -s conftest.err; then
2253 grep -v '^ *+' conftest.err >conftest.er1
2254 cat conftest.er1 >&5
2255 mv -f conftest.er1 conftest.err
2257 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2258 test $ac_status = 0; } >/dev/null && {
2259 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2260 test ! -s conftest.err
2264 $as_echo "$as_me: failed program was:" >&5
2265 sed 's/^/| /' conftest.$ac_ext >&5
2269 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2270 as_fn_set_status $ac_retval
2274 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2275 # -------------------------------------------------------
2276 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2277 # the include files in INCLUDES and setting the cache variable VAR
2279 ac_fn_c_check_header_mongrel ()
2281 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2282 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2284 $as_echo_n "checking for $2... " >&6; }
2285 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2286 $as_echo_n "(cached) " >&6
2289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2290 $as_echo "$ac_res" >&6; }
2292 # Is the header compilable?
2293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2294 $as_echo_n "checking $2 usability... " >&6; }
2295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2296 /* end confdefs.h. */
2300 if ac_fn_c_try_compile "$LINENO"; then :
2301 ac_header_compiler=yes
2303 ac_header_compiler=no
2305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2307 $as_echo "$ac_header_compiler" >&6; }
2309 # Is the header present?
2310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2311 $as_echo_n "checking $2 presence... " >&6; }
2312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2313 /* end confdefs.h. */
2316 if ac_fn_c_try_cpp "$LINENO"; then :
2317 ac_header_preproc=yes
2319 ac_header_preproc=no
2321 rm -f conftest.err conftest.$ac_ext
2322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2323 $as_echo "$ac_header_preproc" >&6; }
2325 # So? What about this header?
2326 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2328 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2329 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2330 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2331 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2334 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2335 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2336 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2337 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2338 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2339 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2340 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2341 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2342 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2343 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2347 $as_echo_n "checking for $2... " >&6; }
2348 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2349 $as_echo_n "(cached) " >&6
2351 eval "$3=\$ac_header_compiler"
2354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2355 $as_echo "$ac_res" >&6; }
2357 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2359 } # ac_fn_c_check_header_mongrel
2361 # ac_fn_c_try_run LINENO
2362 # ----------------------
2363 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2364 # that executables *can* be run.
2367 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2368 if { { ac_try="$ac_link"
2370 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2371 *) ac_try_echo
=$ac_try;;
2373 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2374 $as_echo "$ac_try_echo"; } >&5
2375 (eval "$ac_link") 2>&5
2377 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2378 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
2379 { { case "(($ac_try" in
2380 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2381 *) ac_try_echo=$ac_try;;
2383 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2384 $as_echo "$ac_try_echo"; } >&5
2385 (eval "$ac_try") 2>&5
2387 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2388 test $ac_status = 0; }; }; then :
2391 $as_echo "$as_me: program exited with status $ac_status" >&5
2392 $as_echo "$as_me: failed program was:" >&5
2393 sed 's/^/| /' conftest.$ac_ext >&5
2395 ac_retval=$ac_status
2397 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2398 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2399 as_fn_set_status $ac_retval
2403 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2404 # -------------------------------------------------------
2405 # Tests whether HEADER exists and can be compiled using the include files in
2406 # INCLUDES, setting the cache variable VAR accordingly.
2407 ac_fn_c_check_header_compile ()
2409 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2411 $as_echo_n "checking for $2... " >&6; }
2412 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2413 $as_echo_n "(cached) " >&6
2415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2416 /* end confdefs.h. */
2420 if ac_fn_c_try_compile "$LINENO"; then :
2425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2429 $as_echo "$ac_res" >&6; }
2430 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2432 } # ac_fn_c_check_header_compile
2434 # ac_fn_c_try_link LINENO
2435 # -----------------------
2436 # Try to link conftest.$ac_ext, and return whether this succeeded.
2439 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2440 rm -f conftest.$ac_objext conftest$ac_exeext
2441 if { { ac_try="$ac_link"
2443 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2444 *) ac_try_echo
=$ac_try;;
2446 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2447 $as_echo "$ac_try_echo"; } >&5
2448 (eval "$ac_link") 2>conftest.err
2450 if test -s conftest.err
; then
2451 grep -v '^ *+' conftest.err
>conftest.er1
2452 cat conftest.er1
>&5
2453 mv -f conftest.er1 conftest.err
2455 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2456 test $ac_status = 0; } && {
2457 test -z "$ac_c_werror_flag" ||
2458 test ! -s conftest.err
2459 } && test -s conftest
$ac_exeext && {
2460 test "$cross_compiling" = yes ||
2461 $as_test_x conftest
$ac_exeext
2465 $as_echo "$as_me: failed program was:" >&5
2466 sed 's/^/| /' conftest.
$ac_ext >&5
2470 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2471 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2472 # interfere with the next link command; also delete a directory that is
2473 # left behind by Apple's compiler. We do this before executing the actions.
2474 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2475 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2476 as_fn_set_status
$ac_retval
2478 } # ac_fn_c_try_link
2480 # ac_fn_c_check_decl LINENO SYMBOL VAR
2481 # ------------------------------------
2482 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2483 ac_fn_c_check_decl
()
2485 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2487 $as_echo_n "checking whether $2 is declared... " >&6; }
2488 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2489 $as_echo_n "(cached) " >&6
2491 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2492 /* end confdefs.h. */
2505 if ac_fn_c_try_compile
"$LINENO"; then :
2510 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2514 $as_echo "$ac_res" >&6; }
2515 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2517 } # ac_fn_c_check_decl
2519 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2520 # ----------------------------------------------
2521 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2522 ac_fn_c_check_header_preproc
()
2524 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2526 $as_echo_n "checking for $2... " >&6; }
2527 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2528 $as_echo_n "(cached) " >&6
2530 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2531 /* end confdefs.h. */
2534 if ac_fn_c_try_cpp
"$LINENO"; then :
2539 rm -f conftest.err conftest.
$ac_ext
2542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2543 $as_echo "$ac_res" >&6; }
2544 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2546 } # ac_fn_c_check_header_preproc
2548 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2549 # ----------------------------------------------------
2550 # Tries to find if the field MEMBER exists in type AGGR, after including
2551 # INCLUDES, setting cache variable VAR accordingly.
2552 ac_fn_c_check_member
()
2554 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2556 $as_echo_n "checking for $2.$3... " >&6; }
2557 if { as_var
=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2558 $as_echo_n "(cached) " >&6
2560 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2561 /* end confdefs.h. */
2573 if ac_fn_c_try_compile
"$LINENO"; then :
2576 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2577 /* end confdefs.h. */
2583 if (sizeof ac_aggr.$3)
2589 if ac_fn_c_try_compile
"$LINENO"; then :
2594 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2596 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2600 $as_echo "$ac_res" >&6; }
2601 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2603 } # ac_fn_c_check_member
2605 # ac_fn_c_check_func LINENO FUNC VAR
2606 # ----------------------------------
2607 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2608 ac_fn_c_check_func
()
2610 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2612 $as_echo_n "checking for $2... " >&6; }
2613 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2614 $as_echo_n "(cached) " >&6
2616 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2617 /* end confdefs.h. */
2618 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2619 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2620 #define $2 innocuous_$2
2622 /* System header to define __stub macros and hopefully few prototypes,
2623 which can conflict with char $2 (); below.
2624 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2625 <limits.h> exists even on freestanding compilers. */
2628 # include <limits.h>
2630 # include <assert.h>
2635 /* Override any GCC internal prototype to avoid an error.
2636 Use char because int might match the return type of a GCC
2637 builtin and then its argument prototype would still apply. */
2642 /* The GNU C library defines this for functions which it implements
2643 to always fail with ENOSYS. Some functions are actually named
2644 something starting with __ and the normal name is an alias. */
2645 #if defined __stub_$2 || defined __stub___$2
2657 if ac_fn_c_try_link
"$LINENO"; then :
2662 rm -f core conftest.err conftest.
$ac_objext \
2663 conftest
$ac_exeext conftest.
$ac_ext
2666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2667 $as_echo "$ac_res" >&6; }
2668 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2670 } # ac_fn_c_check_func
2672 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2673 # -------------------------------------------
2674 # Tests whether TYPE exists after having included INCLUDES, setting cache
2675 # variable VAR accordingly.
2676 ac_fn_c_check_type
()
2678 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2680 $as_echo_n "checking for $2... " >&6; }
2681 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2682 $as_echo_n "(cached) " >&6
2685 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2686 /* end confdefs.h. */
2697 if ac_fn_c_try_compile
"$LINENO"; then :
2698 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2699 /* end confdefs.h. */
2710 if ac_fn_c_try_compile
"$LINENO"; then :
2715 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2717 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2721 $as_echo "$ac_res" >&6; }
2722 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2724 } # ac_fn_c_check_type
2726 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2727 # --------------------------------------------
2728 # Tries to find the compile-time value of EXPR in a program that includes
2729 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2731 ac_fn_c_compute_int
()
2733 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2734 if test "$cross_compiling" = yes; then
2735 # Depending upon the size, compute the lo and hi bounds.
2736 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2737 /* end confdefs.h. */
2742 static int test_array [1 - 2 * !(($2) >= 0)];
2749 if ac_fn_c_try_compile
"$LINENO"; then :
2752 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2753 /* end confdefs.h. */
2758 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2765 if ac_fn_c_try_compile
"$LINENO"; then :
2766 ac_hi
=$ac_mid; break
2768 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2769 if test $ac_lo -le $ac_mid; then
2773 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2775 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2778 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2779 /* end confdefs.h. */
2784 static int test_array [1 - 2 * !(($2) < 0)];
2791 if ac_fn_c_try_compile
"$LINENO"; then :
2794 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2795 /* end confdefs.h. */
2800 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2807 if ac_fn_c_try_compile
"$LINENO"; then :
2808 ac_lo
=$ac_mid; break
2810 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2811 if test $ac_mid -le $ac_hi; then
2815 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2817 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2822 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2824 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2825 # Binary search between lo and hi bounds.
2826 while test "x$ac_lo" != "x$ac_hi"; do
2827 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2828 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2829 /* end confdefs.h. */
2834 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2841 if ac_fn_c_try_compile
"$LINENO"; then :
2844 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2846 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2849 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2853 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2854 /* end confdefs.h. */
2856 static long int longval () { return $2; }
2857 static unsigned long int ulongval () { return $2; }
2864 FILE *f = fopen ("conftest.val", "w");
2869 long int i = longval ();
2872 fprintf (f, "%ld", i);
2876 unsigned long int i = ulongval ();
2879 fprintf (f, "%lu", i);
2881 /* Do not output a trailing newline, as this causes \r\n confusion
2882 on some platforms. */
2883 return ferror (f) || fclose (f) != 0;
2889 if ac_fn_c_try_run
"$LINENO"; then :
2890 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2894 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2895 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2899 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2900 as_fn_set_status
$ac_retval
2902 } # ac_fn_c_compute_int
2903 cat >config.log
<<_ACEOF
2904 This file contains any messages produced by compilers while
2905 running configure, to aid debugging if configure makes a mistake.
2907 It was created by emacs $as_me 24.2.91, which was
2908 generated by GNU Autoconf 2.65. Invocation command line was
2920 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2921 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2922 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2923 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2924 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2926 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2927 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2929 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2930 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2931 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2932 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2933 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2934 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2935 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2939 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2943 test -z "$as_dir" && as_dir
=.
2944 $as_echo "PATH: $as_dir"
2960 # Keep a trace of the command line.
2961 # Strip out --no-create and --no-recursion so they do not pile up.
2962 # Strip out --silent because we don't want to record it for future runs.
2963 # Also quote any args containing shell meta-characters.
2964 # Make two passes to allow for proper duplicate-argument suppression.
2968 ac_must_keep_next
=false
2974 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2975 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2976 |
-silent |
--silent |
--silen |
--sile |
--sil)
2979 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2982 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2984 as_fn_append ac_configure_args1
" '$ac_arg'"
2985 if test $ac_must_keep_next = true
; then
2986 ac_must_keep_next
=false
# Got value, back to normal.
2989 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2990 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2991 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2992 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2993 case "$ac_configure_args0 " in
2994 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2997 -* ) ac_must_keep_next
=true
;;
3000 as_fn_append ac_configure_args
" '$ac_arg'"
3005 { ac_configure_args0
=; unset ac_configure_args0
;}
3006 { ac_configure_args1
=; unset ac_configure_args1
;}
3008 # When interrupted or exit'd, cleanup temporary files, and complete
3009 # config.log. We remove comments because anyway the quotes in there
3010 # would cause problems or look ugly.
3011 # WARNING: Use '\'' to represent an apostrophe within the trap.
3012 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3013 trap 'exit_status=$?
3014 # Save into config.log some information that might help in debugging.
3019 ## ---------------- ##
3020 ## Cache variables. ##
3021 ## ---------------- ##
3024 # The following way of writing the cache mishandles newlines in values,
3026 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3027 eval ac_val=\$$ac_var
3031 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3032 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3035 _ | IFS | as_nl) ;; #(
3036 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3037 *) { eval $ac_var=; unset $ac_var;} ;;
3042 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3043 *${as_nl}ac_space=\ *)
3045 "s/'\''/'\''\\\\'\'''\''/g;
3046 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3049 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3057 ## ----------------- ##
3058 ## Output variables. ##
3059 ## ----------------- ##
3062 for ac_var in $ac_subst_vars
3064 eval ac_val=\$$ac_var
3066 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3068 $as_echo "$ac_var='\''$ac_val'\''"
3072 if test -n "$ac_subst_files"; then
3074 ## ------------------- ##
3075 ## File substitutions. ##
3076 ## ------------------- ##
3079 for ac_var
in $ac_subst_files
3081 eval ac_val
=\$
$ac_var
3083 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3085 $as_echo "$ac_var='\''$ac_val'\''"
3090 if test -s confdefs.h; then
3100 test "$ac_signal" != 0 &&
3101 $as_echo "$as_me: caught signal $ac_signal"
3102 $as_echo "$as_me: exit $exit_status"
3104 rm -f core *.core core.conftest.* &&
3105 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3108 for ac_signal
in 1 2 13 15; do
3109 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3113 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3114 rm -f -r conftest
* confdefs.h
3116 $as_echo "/* confdefs.h */" > confdefs.h
3118 # Predefined preprocessor variables.
3120 cat >>confdefs.h
<<_ACEOF
3121 #define PACKAGE_NAME "$PACKAGE_NAME"
3124 cat >>confdefs.h
<<_ACEOF
3125 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3128 cat >>confdefs.h
<<_ACEOF
3129 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3132 cat >>confdefs.h
<<_ACEOF
3133 #define PACKAGE_STRING "$PACKAGE_STRING"
3136 cat >>confdefs.h
<<_ACEOF
3137 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3140 cat >>confdefs.h
<<_ACEOF
3141 #define PACKAGE_URL "$PACKAGE_URL"
3145 # Let the site file select an alternate cache file if it wants to.
3146 # Prefer an explicitly selected file to automatically selected ones.
3149 if test -n "$CONFIG_SITE"; then
3150 ac_site_file1
=$CONFIG_SITE
3151 elif test "x$prefix" != xNONE
; then
3152 ac_site_file1
=$prefix/share
/config.site
3153 ac_site_file2
=$prefix/etc
/config.site
3155 ac_site_file1
=$ac_default_prefix/share
/config.site
3156 ac_site_file2
=$ac_default_prefix/etc
/config.site
3158 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
3160 test "x$ac_site_file" = xNONE
&& continue
3161 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
3162 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3163 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3164 sed 's/^/| /' "$ac_site_file" >&5
3169 if test -r "$cache_file"; then
3170 # Some versions of bash will fail to source /dev/null (special files
3171 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3172 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
3173 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3174 $as_echo "$as_me: loading cache $cache_file" >&6;}
3176 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
3177 *) .
"./$cache_file";;
3181 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3182 $as_echo "$as_me: creating cache $cache_file" >&6;}
3186 as_fn_append ac_header_list
" linux/version.h"
3187 as_fn_append ac_header_list
" sys/systeminfo.h"
3188 as_fn_append ac_header_list
" stdio_ext.h"
3189 as_fn_append ac_header_list
" fcntl.h"
3190 as_fn_append ac_header_list
" coff.h"
3191 as_fn_append ac_header_list
" pty.h"
3192 as_fn_append ac_header_list
" sys/vlimit.h"
3193 as_fn_append ac_header_list
" sys/resource.h"
3194 as_fn_append ac_header_list
" sys/utsname.h"
3195 as_fn_append ac_header_list
" pwd.h"
3196 as_fn_append ac_header_list
" utmp.h"
3197 as_fn_append ac_header_list
" dirent.h"
3198 as_fn_append ac_header_list
" util.h"
3199 as_fn_append ac_header_list
" sys/socket.h"
3200 as_fn_append ac_header_list
" stdlib.h"
3201 as_fn_append ac_header_list
" unistd.h"
3202 as_fn_append ac_header_list
" sys/param.h"
3203 as_fn_append ac_header_list
" pthread.h"
3204 as_fn_append ac_header_list
" malloc/malloc.h"
3205 as_fn_append ac_header_list
" maillock.h"
3206 as_fn_append ac_header_list
" sys/un.h"
3207 as_fn_append ac_func_list
" tzset"
3208 as_fn_append ac_func_list
" readlinkat"
3209 as_fn_append ac_header_list
" execinfo.h"
3210 gl_getopt_required
=GNU
3211 as_fn_append ac_header_list
" getopt.h"
3212 as_fn_append ac_func_list
" gettimeofday"
3213 as_fn_append ac_func_list
" nanotime"
3214 as_fn_append ac_header_list
" sys/time.h"
3215 as_fn_append ac_header_list
" wchar.h"
3216 as_fn_append ac_header_list
" stdint.h"
3217 as_fn_append ac_header_list
" inttypes.h"
3218 as_fn_append ac_func_list
" lstat"
3219 as_fn_append ac_func_list
" alarm"
3220 as_fn_append ac_header_list
" sys/select.h"
3221 as_fn_append ac_func_list
" pselect"
3222 as_fn_append ac_func_list
" pthread_sigmask"
3223 as_fn_append ac_func_list
" readlink"
3224 as_fn_append ac_func_list
" strtoimax"
3225 as_fn_append ac_func_list
" strtoumax"
3226 as_fn_append ac_func_list
" symlink"
3227 as_fn_append ac_header_list
" sys/stat.h"
3228 as_fn_append ac_func_list
" localtime_r"
3229 as_fn_append ac_header_list
" utime.h"
3230 as_fn_append ac_func_list
" futimes"
3231 as_fn_append ac_func_list
" futimesat"
3232 as_fn_append ac_func_list
" futimens"
3233 as_fn_append ac_func_list
" utimensat"
3234 as_fn_append ac_func_list
" lutimes"
3235 # Check that the precious variables saved in the cache have kept the same
3237 ac_cache_corrupted
=false
3238 for ac_var
in $ac_precious_vars; do
3239 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
3240 eval ac_new_set
=\
$ac_env_${ac_var}_set
3241 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
3242 eval ac_new_val
=\
$ac_env_${ac_var}_value
3243 case $ac_old_set,$ac_new_set in
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3246 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3247 ac_cache_corrupted
=: ;;
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3250 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3251 ac_cache_corrupted
=: ;;
3254 if test "x$ac_old_val" != "x$ac_new_val"; then
3255 # differences in whitespace do not lead to failure.
3256 ac_old_val_w
=`echo x $ac_old_val`
3257 ac_new_val_w
=`echo x $ac_new_val`
3258 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3259 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3260 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3261 ac_cache_corrupted
=:
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3264 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3265 eval $ac_var=\
$ac_old_val
3267 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3268 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3269 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3270 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3273 # Pass precious variables to config.status.
3274 if test "$ac_new_set" = set; then
3276 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3277 *) ac_arg
=$ac_var=$ac_new_val ;;
3279 case " $ac_configure_args " in
3280 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3281 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
3285 if $ac_cache_corrupted; then
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3287 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3288 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3289 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3290 as_fn_error
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3292 ## -------------------- ##
3293 ## Main body of script. ##
3294 ## -------------------- ##
3297 ac_cpp
='$CPP $CPPFLAGS'
3298 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3299 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3300 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3303 ac_config_headers
="$ac_config_headers src/config.h:src/config.in"
3307 for ac_dir
in build-aux
"$srcdir"/build-aux
; do
3308 for ac_t
in install-sh
install.sh shtool
; do
3309 if test -f "$ac_dir/$ac_t"; then
3311 ac_install_sh
="$ac_aux_dir/$ac_t -c"
3316 if test -z "$ac_aux_dir"; then
3317 as_fn_error
"cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
3320 # These three variables are undocumented and unsupported,
3321 # and are intended to be withdrawn in a future Autoconf release.
3322 # They can cause serious problems if a builder's source tree is in a directory
3323 # whose full name contains unusual characters.
3324 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3325 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3326 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3329 am__api_version
='1.11'
3331 # Find a good install program. We prefer a C program (faster),
3332 # so one script is as good as another. But avoid the broken or
3333 # incompatible versions:
3334 # SysV /etc/install, /usr/sbin/install
3335 # SunOS /usr/etc/install
3336 # IRIX /sbin/install
3338 # AmigaOS /C/install, which installs bootblocks on floppy discs
3339 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3340 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3341 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3342 # OS/2's system install, which has a completely different semantic
3343 # ./install, which can be erroneously created by make from ./install.sh.
3344 # Reject install programs that cannot install multiple files.
3345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3346 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3347 if test -z "$INSTALL"; then
3348 if test "${ac_cv_path_install+set}" = set; then :
3349 $as_echo_n "(cached) " >&6
3351 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3355 test -z "$as_dir" && as_dir
=.
3356 # Account for people who put trailing slashes in PATH elements.
3357 case $as_dir/ in #((
3358 .
/ | .
// |
/[cC
]/* | \
3359 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
3360 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
3363 # OSF1 and SCO ODT 3.0 have their own names for install.
3364 # Don't use installbsd from OSF since it installs stuff as root
3366 for ac_prog
in ginstall scoinst
install; do
3367 for ac_exec_ext
in '' $ac_executable_extensions; do
3368 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3369 if test $ac_prog = install &&
3370 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3371 # AIX install. It has an incompatible calling convention.
3373 elif test $ac_prog = install &&
3374 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3375 # program-specific install script used by HP pwplus--don't use.
3378 rm -rf conftest.one conftest.two conftest.dir
3379 echo one
> conftest.one
3380 echo two
> conftest.two
3382 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
3383 test -s conftest.one
&& test -s conftest.two
&&
3384 test -s conftest.dir
/conftest.one
&&
3385 test -s conftest.dir
/conftest.two
3387 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
3400 rm -rf conftest.one conftest.two conftest.dir
3403 if test "${ac_cv_path_install+set}" = set; then
3404 INSTALL
=$ac_cv_path_install
3406 # As a last resort, use the slow shell script. Don't cache a
3407 # value for INSTALL within a source directory, because that will
3408 # break other packages using the cache if that directory is
3409 # removed, or if the value is a relative name.
3410 INSTALL
=$ac_install_sh
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3414 $as_echo "$INSTALL" >&6; }
3416 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3417 # It thinks the first close brace ends the variable substitution.
3418 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3420 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3422 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3425 $as_echo_n "checking whether build environment is sane... " >&6; }
3428 echo timestamp
> conftest.
file
3429 # Reject unsafe characters in $srcdir or the absolute working directory
3430 # name. Accept space and tab only in the latter.
3434 *[\\\"\
#\$\&\'\`$am_lf]*)
3435 as_fn_error
"unsafe absolute working directory name" "$LINENO" 5;;
3438 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
3439 as_fn_error
"unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3442 # Do `set' in a subshell so we don't clobber the current shell's
3443 # arguments. Must try -L first in case configure is actually a
3444 # symlink; some systems play weird games with the mod time of symlinks
3445 # (eg FreeBSD returns the mod time of the symlink's containing
3448 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3449 if test "$*" = "X"; then
3451 set X
`ls -t "$srcdir/configure" conftest.file`
3454 if test "$*" != "X $srcdir/configure conftest.file" \
3455 && test "$*" != "X conftest.file $srcdir/configure"; then
3457 # If neither matched, then we have a broken ls. This can happen
3458 # if, for instance, CONFIG_SHELL is bash and it inherits a
3459 # broken ls alias from the environment. This has actually
3460 # happened. Such a system could not be considered "sane".
3461 as_fn_error
"ls -t appears to fail. Make sure there is not a broken
3462 alias in your environment" "$LINENO" 5
3465 test "$2" = conftest.
file
3471 as_fn_error
"newly created file is older than distributed files!
3472 Check your system clock" "$LINENO" 5
3474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3475 $as_echo "yes" >&6; }
3476 test "$program_prefix" != NONE
&&
3477 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
3478 # Use a double $ so make ignores it.
3479 test "$program_suffix" != NONE
&&
3480 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
3481 # Double any \ or $.
3482 # By default was `s,x,x', remove it if useless.
3483 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
3484 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
3486 # expand $ac_aux_dir to an absolute path
3487 am_aux_dir
=`cd $ac_aux_dir && pwd`
3489 if test x
"${MISSING+set}" != xset
; then
3492 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
3494 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
3497 # Use eval to expand $SHELL
3498 if eval "$MISSING --run true"; then
3499 am_missing_run
="$MISSING --run "
3502 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3503 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3506 if test x
"${install_sh}" != xset
; then
3509 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
3511 install_sh
="\${SHELL} $am_aux_dir/install-sh"
3515 # Installed binaries are usually stripped using `strip' when the user
3516 # run `make install-strip'. However `strip' might not be the right
3517 # tool to use in cross-compilation environments, therefore Automake
3518 # will honor the `STRIP' environment variable to overrule this program.
3519 if test "$cross_compiling" != no
; then
3520 if test -n "$ac_tool_prefix"; then
3521 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3522 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
3523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3524 $as_echo_n "checking for $ac_word... " >&6; }
3525 if test "${ac_cv_prog_STRIP+set}" = set; then :
3526 $as_echo_n "(cached) " >&6
3528 if test -n "$STRIP"; then
3529 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
3531 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3535 test -z "$as_dir" && as_dir
=.
3536 for ac_exec_ext
in '' $ac_executable_extensions; do
3537 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3538 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
3539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3548 STRIP
=$ac_cv_prog_STRIP
3549 if test -n "$STRIP"; then
3550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3551 $as_echo "$STRIP" >&6; }
3553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3554 $as_echo "no" >&6; }
3559 if test -z "$ac_cv_prog_STRIP"; then
3561 # Extract the first word of "strip", so it can be a program name with args.
3562 set dummy strip
; ac_word
=$2
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3564 $as_echo_n "checking for $ac_word... " >&6; }
3565 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3566 $as_echo_n "(cached) " >&6
3568 if test -n "$ac_ct_STRIP"; then
3569 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
3571 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3575 test -z "$as_dir" && as_dir
=.
3576 for ac_exec_ext
in '' $ac_executable_extensions; do
3577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3578 ac_cv_prog_ac_ct_STRIP
="strip"
3579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3588 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
3589 if test -n "$ac_ct_STRIP"; then
3590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3591 $as_echo "$ac_ct_STRIP" >&6; }
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3594 $as_echo "no" >&6; }
3597 if test "x$ac_ct_STRIP" = x
; then
3600 case $cross_compiling:$ac_tool_warned in
3602 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3603 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3604 ac_tool_warned
=yes ;;
3609 STRIP
="$ac_cv_prog_STRIP"
3613 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
3615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3616 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3617 if test -z "$MKDIR_P"; then
3618 if test "${ac_cv_path_mkdir+set}" = set; then :
3619 $as_echo_n "(cached) " >&6
3621 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3622 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
3625 test -z "$as_dir" && as_dir
=.
3626 for ac_prog
in mkdir gmkdir
; do
3627 for ac_exec_ext
in '' $ac_executable_extensions; do
3628 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } ||
continue
3629 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3630 'mkdir (GNU coreutils) '* | \
3631 'mkdir (coreutils) '* | \
3632 'mkdir (fileutils) '4.1*)
3633 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
3643 test -d .
/--version && rmdir .
/--version
3644 if test "${ac_cv_path_mkdir+set}" = set; then
3645 MKDIR_P
="$ac_cv_path_mkdir -p"
3647 # As a last resort, use the slow shell script. Don't cache a
3648 # value for MKDIR_P within a source directory, because that will
3649 # break other packages using the cache if that directory is
3650 # removed, or if the value is a relative name.
3651 MKDIR_P
="$ac_install_sh -d"
3654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3655 $as_echo "$MKDIR_P" >&6; }
3660 [\\/$
]* | ?
:[\\/]*) ;;
3661 */*) mkdir_p
="\$(top_builddir)/$mkdir_p" ;;
3664 for ac_prog
in gawk mawk nawk
awk
3666 # Extract the first word of "$ac_prog", so it can be a program name with args.
3667 set dummy
$ac_prog; ac_word
=$2
3668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3669 $as_echo_n "checking for $ac_word... " >&6; }
3670 if test "${ac_cv_prog_AWK+set}" = set; then :
3671 $as_echo_n "(cached) " >&6
3673 if test -n "$AWK"; then
3674 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
3676 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3680 test -z "$as_dir" && as_dir
=.
3681 for ac_exec_ext
in '' $ac_executable_extensions; do
3682 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3683 ac_cv_prog_AWK
="$ac_prog"
3684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3694 if test -n "$AWK"; then
3695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3696 $as_echo "$AWK" >&6; }
3698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3699 $as_echo "no" >&6; }
3703 test -n "$AWK" && break
3706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3707 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3709 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3710 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3711 $as_echo_n "(cached) " >&6
3713 cat >conftest.
make <<\_ACEOF
3716 @
echo '@@@%%%=$(MAKE)=@@@%%%'
3718 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3719 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3721 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
3723 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
3727 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
3728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3729 $as_echo "yes" >&6; }
3732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3733 $as_echo "no" >&6; }
3734 SET_MAKE
="MAKE=${MAKE-make}"
3737 rm -rf .tst
2>/dev
/null
3738 mkdir .tst
2>/dev
/null
3739 if test -d .tst
; then
3744 rmdir .tst
2>/dev
/null
3746 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3747 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3748 # is not polluted with repeated "-I."
3749 am__isrc
=' -I$(srcdir)'
3750 # test to see if srcdir already configured
3751 if test -f $srcdir/config.status
; then
3752 as_fn_error
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3756 # test whether we have cygpath
3757 if test -z "$CYGPATH_W"; then
3758 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
3759 CYGPATH_W
='cygpath -w'
3766 # Define the identity of the package.
3771 cat >>confdefs.h
<<_ACEOF
3772 #define PACKAGE "$PACKAGE"
3776 cat >>confdefs.h
<<_ACEOF
3777 #define VERSION "$VERSION"
3780 # Some tools Automake needs.
3782 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3785 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
3788 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3791 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
3794 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
3796 # We need awk for the "check" target. The system "awk" is bad on
3798 # Always define AMTAR for backward compatibility.
3800 AMTAR
=${AMTAR-"${am_missing_run}tar"}
3802 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
3811 lispdir
='${datadir}/emacs/${version}/lisp'
3812 leimdir
='${datadir}/emacs/${version}/leim'
3813 standardlisppath
='${lispdir}:${leimdir}'
3814 locallisppath
='${datadir}/emacs/${version}/site-lisp:'\
3815 '${datadir}/emacs/site-lisp'
3816 lisppath
='${locallisppath}:${standardlisppath}'
3817 etcdir
='${datadir}/emacs/${version}/etc'
3818 archlibdir
='${libexecdir}/emacs/${version}/${configuration}'
3819 docdir
='${datadir}/emacs/${version}/etc'
3820 gamedir
='${localstatedir}/games/emacs'
3823 # Check whether --with-all was given.
3824 if test "${with_all+set}" = set; then :
3825 withval
=$with_all; with_features
=$withval
3834 # Check whether --with-pop was given.
3835 if test "${with_pop+set}" = set; then :
3838 with_pop
=$with_features
3841 if test "$with_pop" = yes; then
3842 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
3847 # Check whether --with-kerberos was given.
3848 if test "${with_kerberos+set}" = set; then :
3849 withval
=$with_kerberos;
3854 if test "$with_kerberos" != no
; then
3855 $as_echo "#define KERBEROS 1" >>confdefs.h
3860 # Check whether --with-kerberos5 was given.
3861 if test "${with_kerberos5+set}" = set; then :
3862 withval
=$with_kerberos5;
3867 if test "${with_kerberos5}" != no
; then
3868 if test "${with_kerberos}" = no
; then
3870 $as_echo "#define KERBEROS 1" >>confdefs.h
3874 $as_echo "#define KERBEROS5 1" >>confdefs.h
3879 # Check whether --with-hesiod was given.
3880 if test "${with_hesiod+set}" = set; then :
3881 withval
=$with_hesiod;
3886 if test "$with_hesiod" != no
; then
3888 $as_echo "#define HESIOD 1" >>confdefs.h
3893 # Check whether --with-mmdf was given.
3894 if test "${with_mmdf+set}" = set; then :
3900 if test "$with_mmdf" != no
; then
3902 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
3907 # Check whether --with-mail-unlink was given.
3908 if test "${with_mail_unlink+set}" = set; then :
3909 withval
=$with_mail_unlink;
3914 if test "$with_mail_unlink" != no
; then
3916 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
3921 # Check whether --with-mailhost was given.
3922 if test "${with_mailhost+set}" = set; then :
3923 withval
=$with_mailhost;
3924 cat >>confdefs.h
<<_ACEOF
3925 #define MAILHOST "$withval"
3932 # Check whether --with-sound was given.
3933 if test "${with_sound+set}" = set; then :
3934 withval
=$with_sound;
3936 with_sound
=$with_features
3941 # Check whether --with-x-toolkit was given.
3942 if test "${with_x_toolkit+set}" = set; then :
3943 withval
=$with_x_toolkit; case "${withval}" in
3944 y | ye |
yes ) val
=gtk
;;
3946 l | lu | luc | luci | lucid
) val
=lucid
;;
3947 a |
at | ath | athe | athen | athena
) val
=athena
;;
3948 m | mo | mot | moti | motif
) val
=motif
;;
3949 g | gt | gtk
) val
=gtk
;;
3953 as_fn_error
"\`--with-x-toolkit=$withval' is invalid;
3954 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk',
3955 \`gtk2' or \`gtk3'. \`yes' and \`gtk' are synonyms.
3956 \`athena' and \`lucid' are synonyms." "$LINENO" 5
3965 # Check whether --with-wide-int was given.
3966 if test "${with_wide_int+set}" = set; then :
3967 withval
=$with_wide_int;
3972 if test "$with_wide_int" = yes; then
3974 $as_echo "#define WIDE_EMACS_INT 1" >>confdefs.h
3979 # Check whether --with-xpm was given.
3980 if test "${with_xpm+set}" = set; then :
3983 with_xpm
=$with_features
3987 # Check whether --with-jpeg was given.
3988 if test "${with_jpeg+set}" = set; then :
3991 with_jpeg
=$with_features
3995 # Check whether --with-tiff was given.
3996 if test "${with_tiff+set}" = set; then :
3999 with_tiff
=$with_features
4003 # Check whether --with-gif was given.
4004 if test "${with_gif+set}" = set; then :
4007 with_gif
=$with_features
4011 # Check whether --with-png was given.
4012 if test "${with_png+set}" = set; then :
4015 with_png
=$with_features
4019 # Check whether --with-rsvg was given.
4020 if test "${with_rsvg+set}" = set; then :
4023 with_rsvg
=$with_features
4027 # Check whether --with-xml2 was given.
4028 if test "${with_xml2+set}" = set; then :
4031 with_xml2
=$with_features
4035 # Check whether --with-imagemagick was given.
4036 if test "${with_imagemagick+set}" = set; then :
4037 withval
=$with_imagemagick;
4039 with_imagemagick
=$with_features
4044 # Check whether --with-xft was given.
4045 if test "${with_xft+set}" = set; then :
4048 with_xft
=$with_features
4052 # Check whether --with-libotf was given.
4053 if test "${with_libotf+set}" = set; then :
4054 withval
=$with_libotf;
4056 with_libotf
=$with_features
4060 # Check whether --with-m17n-flt was given.
4061 if test "${with_m17n_flt+set}" = set; then :
4062 withval
=$with_m17n_flt;
4064 with_m17n_flt
=$with_features
4069 # Check whether --with-toolkit-scroll-bars was given.
4070 if test "${with_toolkit_scroll_bars+set}" = set; then :
4071 withval
=$with_toolkit_scroll_bars;
4073 with_toolkit_scroll_bars
=$with_features
4077 # Check whether --with-xaw3d was given.
4078 if test "${with_xaw3d+set}" = set; then :
4079 withval
=$with_xaw3d;
4081 with_xaw3d
=$with_features
4085 # Check whether --with-xim was given.
4086 if test "${with_xim+set}" = set; then :
4089 with_xim
=$with_features
4093 # Check whether --with-ns was given.
4094 if test "${with_ns+set}" = set; then :
4101 # Check whether --with-w32 was given.
4102 if test "${with_w32+set}" = set; then :
4110 # Check whether --with-gpm was given.
4111 if test "${with_gpm+set}" = set; then :
4114 with_gpm
=$with_features
4118 # Check whether --with-dbus was given.
4119 if test "${with_dbus+set}" = set; then :
4122 with_dbus
=$with_features
4126 # Check whether --with-gconf was given.
4127 if test "${with_gconf+set}" = set; then :
4128 withval
=$with_gconf;
4130 with_gconf
=$with_features
4134 # Check whether --with-gsettings was given.
4135 if test "${with_gsettings+set}" = set; then :
4136 withval
=$with_gsettings;
4138 with_gsettings
=$with_features
4142 # Check whether --with-selinux was given.
4143 if test "${with_selinux+set}" = set; then :
4144 withval
=$with_selinux;
4146 with_selinux
=$with_features
4150 # Check whether --with-gnutls was given.
4151 if test "${with_gnutls+set}" = set; then :
4152 withval
=$with_gnutls;
4154 with_gnutls
=$with_features
4158 ## For the times when you want to build Emacs but don't have
4159 ## a suitable makeinfo, and can live without the manuals.
4161 # Check whether --with-makeinfo was given.
4162 if test "${with_makeinfo+set}" = set; then :
4163 withval
=$with_makeinfo;
4165 with_makeinfo
=$with_features
4169 ## Makefile.in needs the cache file name.
4172 ## This is an option because I do not know if all info/man support
4173 ## compressed files, nor how to test if they do so.
4175 # Check whether --with-compress-info was given.
4176 if test "${with_compress_info+set}" = set; then :
4177 withval
=$with_compress_info;
4179 with_compress_info
=$with_features
4182 if test $with_compress_info = yes; then
4190 # Check whether --with-pkg-config-prog was given.
4191 if test "${with_pkg_config_prog+set}" = set; then :
4192 withval
=$with_pkg_config_prog;
4195 if test "X${with_pkg_config_prog}" != X
; then
4196 if test "${with_pkg_config_prog}" != yes; then
4197 PKG_CONFIG
="${with_pkg_config_prog}"
4203 # Check whether --with-crt-dir was given.
4204 if test "${with_crt_dir+set}" = set; then :
4205 withval
=$with_crt_dir;
4208 CRT_DIR
="${with_crt_dir}"
4211 # Check whether --with-gameuser was given.
4212 if test "${with_gameuser+set}" = set; then :
4213 withval
=$with_gameuser;
4216 test "X${with_gameuser}" != X
&& test "${with_gameuser}" != yes \
4217 && gameuser
="${with_gameuser}"
4218 test "X$gameuser" = X
&& gameuser
=games
4221 # Check whether --with-gnustep-conf was given.
4222 if test "${with_gnustep_conf+set}" = set; then :
4223 withval
=$with_gnustep_conf;
4226 test "X${with_gnustep_conf}" != X
&& test "${with_gnustep_conf}" != yes && \
4227 GNUSTEP_CONFIG_FILE
="${with_gnustep_conf}"
4228 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
4229 GNUSTEP_CONFIG_FILE
=/etc
/GNUstep
/GNUstep.conf
4231 # Check whether --enable-ns-self-contained was given.
4232 if test "${enable_ns_self_contained+set}" = set; then :
4233 enableval
=$enable_ns_self_contained; EN_NS_SELF_CONTAINED
=$enableval
4235 EN_NS_SELF_CONTAINED
=yes
4239 # Check whether --enable-locallisppath was given.
4240 if test "${enable_locallisppath+set}" = set; then :
4241 enableval
=$enable_locallisppath; if test "${enableval}" = "no"; then
4243 elif test "${enableval}" != "yes"; then
4244 locallisppath
=${enableval}
4249 # Check whether --enable-checking was given.
4250 if test "${enable_checking+set}" = set; then :
4251 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
4254 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
4255 for check
in $ac_checking_flags
4258 # these set all the flags to specific states
4259 yes) ac_enable_checking
=1 ;;
4260 no
) ac_enable_checking
= ;
4261 ac_gc_check_stringbytes
= ;
4262 ac_gc_check_string_overrun
= ;
4263 ac_gc_check_string_free_list
= ;
4264 ac_xmalloc_overrun
= ;
4265 ac_gc_check_cons_list
= ;
4267 all
) ac_enable_checking
=1 ;
4268 ac_gc_check_stringbytes
=1 ;
4269 ac_gc_check_string_overrun
=1 ;
4270 ac_gc_check_string_free_list
=1 ;
4271 ac_xmalloc_overrun
=1 ;
4272 ac_gc_check_cons_list
=1 ;
4273 ac_glyphs_debug
=1 ;;
4274 # these enable particular checks
4275 stringbytes
) ac_gc_check_stringbytes
=1 ;;
4276 stringoverrun
) ac_gc_check_string_overrun
=1 ;;
4277 stringfreelist
) ac_gc_check_string_free_list
=1 ;;
4278 xmallocoverrun
) ac_xmalloc_overrun
=1 ;;
4279 conslist
) ac_gc_check_cons_list
=1 ;;
4280 glyphs
) ac_glyphs_debug
=1 ;;
4281 *) as_fn_error
"unknown check category $check" "$LINENO" 5 ;;
4286 if test x
$ac_enable_checking != x
; then
4288 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
4291 if test x
$ac_gc_check_stringbytes != x
; then
4293 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
4296 if test x
$ac_gc_check_string_overrun != x
; then
4298 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
4301 if test x
$ac_gc_check_string_free_list != x
; then
4303 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
4306 if test x
$ac_xmalloc_overrun != x
; then
4308 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
4311 if test x
$ac_gc_check_cons_list != x
; then
4313 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
4316 if test x
$ac_glyphs_debug != x
; then
4318 $as_echo "#define GLYPH_DEBUG 1" >>confdefs.h
4322 # Check whether --enable-check-lisp-object-type was given.
4323 if test "${enable_check_lisp_object_type+set}" = set; then :
4324 enableval
=$enable_check_lisp_object_type; if test "${enableval}" != "no"; then
4326 $as_echo "#define CHECK_LISP_OBJECT_TYPE 1" >>confdefs.h
4333 # Check whether --enable-profiling was given.
4334 if test "${enable_profiling+set}" = set; then :
4335 enableval
=$enable_profiling; ac_enable_profiling
="${enableval}"
4338 if test x
$ac_enable_profiling != x
; then
4339 PROFILING_CFLAGS
="-DPROFILING=1 -pg"
4345 # Check whether --enable-autodepend was given.
4346 if test "${enable_autodepend+set}" = set; then :
4347 enableval
=$enable_autodepend; ac_enable_autodepend
="${enableval}"
4349 ac_enable_autodepend
=yes
4353 #### Make srcdir absolute, if it isn't already. It's important to
4354 #### avoid running the path through pwd unnecessarily, since pwd can
4355 #### give you automounter prefixes, which can go away. We do all this
4356 #### so Emacs can find its files when run uninstalled.
4357 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
4362 ## We may be able to use the $PWD environment variable to make this
4363 ## absolute. But sometimes PWD is inaccurate.
4364 ## Note: we used to use ${PWD} at the end instead of `pwd`,
4365 ## but that tested only for a well-formed and valid PWD,
4366 ## it did not object when PWD was well-formed and valid but just wrong.
4367 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
4371 srcdir
="`(cd ${srcdir}; pwd)`"
4374 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
4377 ### Canonicalize the configuration name.
4379 # Make sure we can run config.sub.
4380 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
4381 as_fn_error
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4384 $as_echo_n "checking build system type... " >&6; }
4385 if test "${ac_cv_build+set}" = set; then :
4386 $as_echo_n "(cached) " >&6
4388 ac_build_alias
=$build_alias
4389 test "x$ac_build_alias" = x
&&
4390 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
4391 test "x$ac_build_alias" = x
&&
4392 as_fn_error
"cannot guess build type; you must specify one" "$LINENO" 5
4393 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4394 as_fn_error
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4398 $as_echo "$ac_cv_build" >&6; }
4399 case $ac_cv_build in
4401 *) as_fn_error
"invalid value of canonical build" "$LINENO" 5;;
4404 ac_save_IFS
=$IFS; IFS
='-'
4410 # Remember, the first character of IFS is used to create $*,
4411 # except with old shells:
4414 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
4417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4418 $as_echo_n "checking host system type... " >&6; }
4419 if test "${ac_cv_host+set}" = set; then :
4420 $as_echo_n "(cached) " >&6
4422 if test "x$host_alias" = x
; then
4423 ac_cv_host
=$ac_cv_build
4425 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4426 as_fn_error
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4431 $as_echo "$ac_cv_host" >&6; }
4434 *) as_fn_error
"invalid value of canonical host" "$LINENO" 5;;
4437 ac_save_IFS
=$IFS; IFS
='-'
4443 # Remember, the first character of IFS is used to create $*,
4444 # except with old shells:
4447 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
4451 configuration
=${host_alias-${build_alias-$host}}
4455 ### If you add support for a new configuration, add code to this
4456 ### switch statement to recognize your configuration name and select
4457 ### the appropriate operating system file.
4459 ### You would hope that you could choose an s/*.h
4460 ### file based on the operating system portion. However, it turns out
4461 ### that each s/*.h file is pretty manufacturer-specific.
4462 ### So we basically have to have a special case for each
4463 ### configuration name.
4465 ### As far as handling version numbers on operating systems is
4466 ### concerned, make sure things will fail in a fixable way. If
4467 ### /etc/MACHINES doesn't say anything about version numbers, be
4468 ### prepared to handle anything reasonably. If version numbers
4469 ### matter, be sure /etc/MACHINES says something about it.
4471 opsys
='' unported
=no
4472 case "${canonical}" in
4474 ## GNU/Linux and similar ports
4484 ## FreeBSD kernel + glibc based userland
4499 ## Apple Darwin / Mac OS X
4501 case "${canonical}" in
4508 ## Use fink packages if available.
4509 ## FIXME find a better way to do this: http://debbugs.gnu.org/11507
4510 ## if test -d /sw/include && test -d /sw/lib; then
4511 ## GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
4512 ## NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
4516 ## HP 9000 series 700 and 800, running HP/UX
4517 hppa
*-hp-hpux10.2
* )
4520 hppa
*-hp-hpux1[1-9]* )
4522 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
4526 rs6000-ibm-aix4.
[23]* )
4529 powerpc-ibm-aix4.
[23]* )
4532 rs6000-ibm-aix
[56]* )
4535 powerpc-ibm-aix
[56]* )
4539 ## Silicon Graphics machines
4543 # Without defining _LANGUAGE_C, things get masked out in the headers
4544 # so that, for instance, grepping for `free' in stdlib.h fails and
4545 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
4546 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
4551 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* \
4552 | x86_64-
*-solaris2* | x86_64-
*-sunos5*)
4553 case "${canonical}" in
4555 amd64-
*-*|x86_64-
*-*) ;;
4559 case "${canonical}" in
4560 *-sunos5.6
* |
*-solaris2.6
* )
4564 *-sunos5.
[7-9]* |
*-solaris2.
[7-9]* )
4566 emacs_check_sunpro_c
=yes
4568 *-sunos5* |
*-solaris* )
4570 emacs_check_sunpro_c
=yes
4573 ## Watch out for a compiler that we know will not work.
4574 case "${canonical}" in
4575 *-solaris* |
*-sunos5* )
4576 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
4577 ## /usr/ucb/cc doesn't work;
4578 ## we should find some other compiler that does work.
4586 ## Intel 386 machines where we don't care about the manufacturer.
4588 case "${canonical}" in
4589 *-cygwin ) opsys
=cygwin
;;
4590 *-darwin* ) opsys
=darwin
;;
4591 *-sysv4.2uw
* ) opsys
=unixware
;;
4592 *-sysv5uw* ) opsys
=unixware
;;
4593 *-sysv5OpenUNIX* ) opsys
=unixware
;;
4594 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
4603 ### If the code above didn't choose an operating system, just choose
4604 ### an operating system based on the configuration name. You really
4605 ### only want to use this when you have no idea what the right
4606 ### operating system is; if you know what operating systems a machine
4607 ### runs, it's cleaner to make it explicit in the case statement
4609 if test x
"${opsys}" = x
; then
4610 case "${canonical}" in
4611 *-gnu* ) opsys
=gnu
;;
4620 if test $unported = yes; then
4621 as_fn_error
"Emacs hasn't been ported to \`${canonical}' systems.
4622 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
4626 #### Choose a compiler.
4629 ac_cpp
='$CPP $CPPFLAGS'
4630 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4631 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4632 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4633 if test -n "$ac_tool_prefix"; then
4634 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4635 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
4636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4637 $as_echo_n "checking for $ac_word... " >&6; }
4638 if test "${ac_cv_prog_CC+set}" = set; then :
4639 $as_echo_n "(cached) " >&6
4641 if test -n "$CC"; then
4642 ac_cv_prog_CC
="$CC" # Let the user override the test.
4644 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4648 test -z "$as_dir" && as_dir
=.
4649 for ac_exec_ext
in '' $ac_executable_extensions; do
4650 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4651 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
4652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4662 if test -n "$CC"; then
4663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4664 $as_echo "$CC" >&6; }
4666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4667 $as_echo "no" >&6; }
4672 if test -z "$ac_cv_prog_CC"; then
4674 # Extract the first word of "gcc", so it can be a program name with args.
4675 set dummy gcc
; ac_word
=$2
4676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4677 $as_echo_n "checking for $ac_word... " >&6; }
4678 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4679 $as_echo_n "(cached) " >&6
4681 if test -n "$ac_ct_CC"; then
4682 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4684 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4688 test -z "$as_dir" && as_dir
=.
4689 for ac_exec_ext
in '' $ac_executable_extensions; do
4690 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4691 ac_cv_prog_ac_ct_CC
="gcc"
4692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4701 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4702 if test -n "$ac_ct_CC"; then
4703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4704 $as_echo "$ac_ct_CC" >&6; }
4706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4707 $as_echo "no" >&6; }
4710 if test "x$ac_ct_CC" = x
; then
4713 case $cross_compiling:$ac_tool_warned in
4715 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4716 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4717 ac_tool_warned
=yes ;;
4725 if test -z "$CC"; then
4726 if test -n "$ac_tool_prefix"; then
4727 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4728 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
4729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4730 $as_echo_n "checking for $ac_word... " >&6; }
4731 if test "${ac_cv_prog_CC+set}" = set; then :
4732 $as_echo_n "(cached) " >&6
4734 if test -n "$CC"; then
4735 ac_cv_prog_CC
="$CC" # Let the user override the test.
4737 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4741 test -z "$as_dir" && as_dir
=.
4742 for ac_exec_ext
in '' $ac_executable_extensions; do
4743 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4744 ac_cv_prog_CC
="${ac_tool_prefix}cc"
4745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4755 if test -n "$CC"; then
4756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4757 $as_echo "$CC" >&6; }
4759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4760 $as_echo "no" >&6; }
4766 if test -z "$CC"; then
4767 # Extract the first word of "cc", so it can be a program name with args.
4768 set dummy cc
; ac_word
=$2
4769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4770 $as_echo_n "checking for $ac_word... " >&6; }
4771 if test "${ac_cv_prog_CC+set}" = set; then :
4772 $as_echo_n "(cached) " >&6
4774 if test -n "$CC"; then
4775 ac_cv_prog_CC
="$CC" # Let the user override the test.
4778 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4782 test -z "$as_dir" && as_dir
=.
4783 for ac_exec_ext
in '' $ac_executable_extensions; do
4784 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4785 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4786 ac_prog_rejected
=yes
4790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4797 if test $ac_prog_rejected = yes; then
4798 # We found a bogon in the path, so make sure we never use it.
4799 set dummy
$ac_cv_prog_CC
4801 if test $# != 0; then
4802 # We chose a different compiler from the bogus one.
4803 # However, it has the same basename, so the bogon will be chosen
4804 # first if we set CC to just the basename; use the full file name.
4806 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
4812 if test -n "$CC"; then
4813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4814 $as_echo "$CC" >&6; }
4816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4817 $as_echo "no" >&6; }
4822 if test -z "$CC"; then
4823 if test -n "$ac_tool_prefix"; then
4824 for ac_prog
in cl.exe
4826 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4827 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4829 $as_echo_n "checking for $ac_word... " >&6; }
4830 if test "${ac_cv_prog_CC+set}" = set; then :
4831 $as_echo_n "(cached) " >&6
4833 if test -n "$CC"; then
4834 ac_cv_prog_CC
="$CC" # Let the user override the test.
4836 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4840 test -z "$as_dir" && as_dir
=.
4841 for ac_exec_ext
in '' $ac_executable_extensions; do
4842 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4843 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
4844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4854 if test -n "$CC"; then
4855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4856 $as_echo "$CC" >&6; }
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4859 $as_echo "no" >&6; }
4863 test -n "$CC" && break
4866 if test -z "$CC"; then
4868 for ac_prog
in cl.exe
4870 # Extract the first word of "$ac_prog", so it can be a program name with args.
4871 set dummy
$ac_prog; ac_word
=$2
4872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4873 $as_echo_n "checking for $ac_word... " >&6; }
4874 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4875 $as_echo_n "(cached) " >&6
4877 if test -n "$ac_ct_CC"; then
4878 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4880 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4884 test -z "$as_dir" && as_dir
=.
4885 for ac_exec_ext
in '' $ac_executable_extensions; do
4886 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4887 ac_cv_prog_ac_ct_CC
="$ac_prog"
4888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4897 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4898 if test -n "$ac_ct_CC"; then
4899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4900 $as_echo "$ac_ct_CC" >&6; }
4902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4903 $as_echo "no" >&6; }
4907 test -n "$ac_ct_CC" && break
4910 if test "x$ac_ct_CC" = x
; then
4913 case $cross_compiling:$ac_tool_warned in
4915 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4916 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4917 ac_tool_warned
=yes ;;
4926 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4927 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4928 as_fn_error
"no acceptable C compiler found in \$PATH
4929 See \`config.log' for more details." "$LINENO" 5; }
4931 # Provide some information about the compiler.
4932 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4935 for ac_option
in --version -v -V -qversion; do
4936 { { ac_try
="$ac_compiler $ac_option >&5"
4938 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4939 *) ac_try_echo=$ac_try;;
4941 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4942 $as_echo "$ac_try_echo"; } >&5
4943 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4945 if test -s conftest.err; then
4947 ... rest of stderr output deleted ...
4948 10q' conftest.err >conftest.er1
4949 cat conftest.er1 >&5
4951 rm -f conftest.er1 conftest.err
4952 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4953 test $ac_status = 0; }
4956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4957 /* end confdefs.h. */
4967 ac_clean_files_save=$ac_clean_files
4968 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4969 # Try to create an executable without -o first, disregard a.out.
4970 # It will help us diagnose broken compilers, and finding out an intuition
4972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4973 $as_echo_n "checking whether the C compiler works... " >&6; }
4974 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
4976 # The possible output files:
4977 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4980 for ac_file in $ac_files
4983 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4984 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4989 if { { ac_try="$ac_link_default"
4991 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4992 *) ac_try_echo
=$ac_try;;
4994 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4995 $as_echo "$ac_try_echo"; } >&5
4996 (eval "$ac_link_default") 2>&5
4998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4999 test $ac_status = 0; }; then :
5000 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
5001 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
5002 # in a Makefile. We should not override ac_cv_exeext if it was cached,
5003 # so that the user can short-circuit this test for compilers unknown to
5005 for ac_file
in $ac_files ''
5007 test -f "$ac_file" ||
continue
5009 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
5012 # We found the default executable, but exeext='' is most
5016 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
5018 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
5020 # We set ac_cv_exeext here because the later test for it is not
5021 # safe: cross compilers may not add the suffix if given an `-o'
5022 # argument, so we may need to know it at that point already.
5023 # Even if this section looks crufty: it has the advantage of
5030 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
5035 if test -z "$ac_file"; then :
5036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5037 $as_echo "no" >&6; }
5038 $as_echo "$as_me: failed program was:" >&5
5039 sed 's/^/| /' conftest.
$ac_ext >&5
5041 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5042 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5043 { as_fn_set_status
77
5044 as_fn_error
"C compiler cannot create executables
5045 See \`config.log' for more details." "$LINENO" 5; }; }
5047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5048 $as_echo "yes" >&6; }
5050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5051 $as_echo_n "checking for C compiler default output file name... " >&6; }
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5053 $as_echo "$ac_file" >&6; }
5054 ac_exeext
=$ac_cv_exeext
5056 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
5057 ac_clean_files
=$ac_clean_files_save
5058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5059 $as_echo_n "checking for suffix of executables... " >&6; }
5060 if { { ac_try
="$ac_link"
5062 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5063 *) ac_try_echo=$ac_try;;
5065 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5066 $as_echo "$ac_try_echo"; } >&5
5067 (eval "$ac_link") 2>&5
5069 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5070 test $ac_status = 0; }; then :
5071 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
5072 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
5073 # work properly (i.e., refer to `conftest.exe'), while it won't with
5075 for ac_file
in conftest.exe conftest conftest.
*; do
5076 test -f "$ac_file" ||
continue
5078 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
5079 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
5085 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5086 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5087 as_fn_error
"cannot compute suffix of executables: cannot compile and link
5088 See \`config.log' for more details." "$LINENO" 5; }
5090 rm -f conftest conftest
$ac_cv_exeext
5091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5092 $as_echo "$ac_cv_exeext" >&6; }
5094 rm -f conftest.
$ac_ext
5095 EXEEXT
=$ac_cv_exeext
5097 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5098 /* end confdefs.h. */
5103 FILE *f = fopen ("conftest.out", "w");
5104 return ferror (f) || fclose (f) != 0;
5110 ac_clean_files
="$ac_clean_files conftest.out"
5111 # Check that the compiler produces executables we can run. If not, either
5112 # the compiler is broken, or we cross compile.
5113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5114 $as_echo_n "checking whether we are cross compiling... " >&6; }
5115 if test "$cross_compiling" != yes; then
5116 { { ac_try
="$ac_link"
5118 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5119 *) ac_try_echo=$ac_try;;
5121 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5122 $as_echo "$ac_try_echo"; } >&5
5123 (eval "$ac_link") 2>&5
5125 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5126 test $ac_status = 0; }
5127 if { ac_try='./conftest$ac_cv_exeext'
5128 { { case "(($ac_try" in
5129 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5130 *) ac_try_echo
=$ac_try;;
5132 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5133 $as_echo "$ac_try_echo"; } >&5
5134 (eval "$ac_try") 2>&5
5136 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5137 test $ac_status = 0; }; }; then
5140 if test "$cross_compiling" = maybe
; then
5143 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5144 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5145 as_fn_error
"cannot run C compiled programs.
5146 If you meant to cross compile, use \`--host'.
5147 See \`config.log' for more details." "$LINENO" 5; }
5151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5152 $as_echo "$cross_compiling" >&6; }
5154 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
5155 ac_clean_files
=$ac_clean_files_save
5156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5157 $as_echo_n "checking for suffix of object files... " >&6; }
5158 if test "${ac_cv_objext+set}" = set; then :
5159 $as_echo_n "(cached) " >&6
5161 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5162 /* end confdefs.h. */
5172 rm -f conftest.o conftest.obj
5173 if { { ac_try
="$ac_compile"
5175 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5176 *) ac_try_echo=$ac_try;;
5178 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5179 $as_echo "$ac_try_echo"; } >&5
5180 (eval "$ac_compile") 2>&5
5182 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5183 test $ac_status = 0; }; then :
5184 for ac_file in conftest.o conftest.obj conftest.*; do
5185 test -f "$ac_file" || continue;
5187 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5188 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5193 $as_echo "$as_me: failed program was:" >&5
5194 sed 's/^/| /' conftest.$ac_ext >&5
5196 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5197 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5198 as_fn_error "cannot compute suffix of object files
: cannot compile
5199 See \
`config.log' for more details." "$LINENO" 5; }
5201 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5204 $as_echo "$ac_cv_objext" >&6; }
5205 OBJEXT=$ac_cv_objext
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5208 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5209 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5210 $as_echo_n "(cached) " >&6
5212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5213 /* end confdefs.h. */
5226 if ac_fn_c_try_compile "$LINENO"; then :
5231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5232 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5236 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5237 if test $ac_compiler_gnu = yes; then
5242 ac_test_CFLAGS=${CFLAGS+set}
5243 ac_save_CFLAGS=$CFLAGS
5244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5245 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5246 if test "${ac_cv_prog_cc_g+set}" = set; then :
5247 $as_echo_n "(cached) " >&6
5249 ac_save_c_werror_flag=$ac_c_werror_flag
5250 ac_c_werror_flag=yes
5253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5254 /* end confdefs.h. */
5264 if ac_fn_c_try_compile "$LINENO"; then :
5268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5269 /* end confdefs.h. */
5279 if ac_fn_c_try_compile "$LINENO"; then :
5282 ac_c_werror_flag=$ac_save_c_werror_flag
5284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5285 /* end confdefs.h. */
5295 if ac_fn_c_try_compile "$LINENO"; then :
5298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5303 ac_c_werror_flag=$ac_save_c_werror_flag
5305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5306 $as_echo "$ac_cv_prog_cc_g" >&6; }
5307 if test "$ac_test_CFLAGS" = set; then
5308 CFLAGS=$ac_save_CFLAGS
5309 elif test $ac_cv_prog_cc_g = yes; then
5310 if test "$GCC" = yes; then
5316 if test "$GCC" = yes; then
5322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5323 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5324 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5325 $as_echo_n "(cached) " >&6
5327 ac_cv_prog_cc_c89=no
5329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5330 /* end confdefs.h. */
5333 #include <sys/types.h>
5334 #include <sys/stat.h>
5335 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5336 struct buf { int x; };
5337 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5338 static char *e (p, i)
5344 static char *f (char * (*g) (char **, int), char **p, ...)
5349 s = g (p, va_arg (v,int));
5354 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5355 function prototypes and stuff, but not '\xHH' hex character constants.
5356 These don't provoke an error unfortunately, instead are silently treated
5357 as 'x'. The following induces an error, until -std is added to get
5358 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5359 array size at least. It's necessary to write '\x00'==0 to get something
5360 that's true only with -std. */
5361 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5363 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5364 inside strings and character constants. */
5366 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5368 int test (int i, double x);
5369 struct s1 {int (*f) (int a);};
5370 struct s2 {int (*f) (double a);};
5371 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5377 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5382 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5383 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5385 CC="$ac_save_CC $ac_arg"
5386 if ac_fn_c_try_compile "$LINENO"; then :
5387 ac_cv_prog_cc_c89=$ac_arg
5389 rm -f core conftest.err conftest.$ac_objext
5390 test "x$ac_cv_prog_cc_c89" != "xno" && break
5392 rm -f conftest.$ac_ext
5397 case "x$ac_cv_prog_cc_c89" in
5399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5400 $as_echo "none needed" >&6; } ;;
5402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5403 $as_echo "unsupported" >&6; } ;;
5405 CC="$CC $ac_cv_prog_cc_c89"
5406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5407 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5409 if test "x$ac_cv_prog_cc_c89" != xno; then :
5414 ac_cpp='$CPP $CPPFLAGS'
5415 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5416 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5417 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5418 DEPDIR="${am__leading_dot}deps"
5420 ac_config_commands="$ac_config_commands depfiles"
5423 am_make=${MAKE-make}
5424 cat > confinc << 'END'
5426 @echo this is the am__doit target
5429 # If we don't find an include directive, just comment out the code.
5430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5431 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5435 # First try GNU make style include.
5436 echo "include confinc" > confmf
5437 # Ignore all kinds of additional output from `make'.
5438 case `$am_make -s -f confmf 2> /dev/null` in #(
5439 *the\ am__doit\ target*)
5445 # Now try BSD make style include.
5446 if test "$am__include" = "#"; then
5447 echo '.include
"confinc"' > confmf
5448 case `$am_make -s -f confmf 2> /dev/null` in #(
5449 *the\ am__doit\ target*)
5450 am__include=.include
5458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5459 $as_echo "$_am_result" >&6; }
5460 rm -f confinc confmf
5462 # Check whether --enable-dependency-tracking was given.
5463 if test "${enable_dependency_tracking+set}" = set; then :
5464 enableval=$enable_dependency_tracking;
5467 if test "x$enable_dependency_tracking" != xno; then
5468 am_depcomp="$ac_aux_dir/depcomp"
5471 if test "x$enable_dependency_tracking" != xno
; then
5481 depcc
="$CC" am_compiler_list
=
5483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5484 $as_echo_n "checking dependency style of $depcc... " >&6; }
5485 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5486 $as_echo_n "(cached) " >&6
5488 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5489 # We make a subdir and do the tests there. Otherwise we can end up
5490 # making bogus files that we don't know about and never remove. For
5491 # instance it was reported that on HP-UX the gcc test will end up
5492 # making a dummy file named `D' -- because `-MD' means `put the output
5495 # Copy depcomp to subdir because otherwise we won't find it if we're
5496 # using a relative directory.
5497 cp "$am_depcomp" conftest.dir
5499 # We will build objects and dependencies in a subdirectory because
5500 # it helps to detect inapplicable dependency modes. For instance
5501 # both Tru64's cc and ICC support -MD to output dependencies as a
5502 # side effect of compilation, but ICC will put the dependencies in
5503 # the current directory while Tru64 will put them in the object
5507 am_cv_CC_dependencies_compiler_type
=none
5508 if test "$am_compiler_list" = ""; then
5509 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5512 case " $depcc " in #(
5513 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
5516 for depmode
in $am_compiler_list; do
5517 # Setup a source with many dependencies, because some compilers
5518 # like to wrap large dependency lists on column 80 (with \), and
5519 # we should not choose a depcomp mode which is confused by this.
5521 # We need to recreate these files for each test, as the compiler may
5522 # overwrite some of them when testing with obscure command lines.
5523 # This happens at least with the AIX C compiler.
5525 for i
in 1 2 3 4 5 6; do
5526 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
5527 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5528 # Solaris 8's {/usr,}/bin/sh.
5529 touch sub
/conftst
$i.h
5531 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5533 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5534 # mode. It turns out that the SunPro C++ compiler does not properly
5535 # handle `-M -o', and we need to detect this. Also, some Intel
5536 # versions had trouble with output in subdirs
5537 am__obj
=sub
/conftest.
${OBJEXT-o}
5538 am__minus_obj
="-o $am__obj"
5541 # This depmode causes a compiler race in universal mode.
5542 test "$am__universal" = false ||
continue
5545 # after this tag, mechanisms are not by side-effect, so they'll
5546 # only be used when explicitly requested
5547 if test "x$enable_dependency_tracking" = xyes
; then
5553 msvisualcpp | msvcmsys
)
5554 # This compiler won't grok `-c -o', but also, the minuso test has
5555 # not run yet. These depmodes are late enough in the game, and
5556 # so weak that their functioning should not be impacted.
5557 am__obj
=conftest.
${OBJEXT-o}
5562 if depmode
=$depmode \
5563 source=sub
/conftest.c object
=$am__obj \
5564 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
5565 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
5566 >/dev
/null
2>conftest.err
&&
5567 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
5568 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
5569 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
5570 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
5571 # icc doesn't choke on unknown options, it will just issue warnings
5572 # or remarks (even with -Werror). So we grep stderr for any message
5573 # that says an option was ignored or not supported.
5574 # When given -MP, icc 7.0 and 7.1 complain thusly:
5575 # icc: Command line warning: ignoring option '-M'; no argument required
5576 # The diagnosis changed in icc 8.0:
5577 # icc: Command line remark: option '-MP' not supported
5578 if (grep 'ignoring option' conftest.err ||
5579 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
5580 am_cv_CC_dependencies_compiler_type
=$depmode
5589 am_cv_CC_dependencies_compiler_type
=none
5593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5594 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5595 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
5598 test "x$enable_dependency_tracking" != xno \
5599 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
5601 am__fastdepCC_FALSE
='#'
5603 am__fastdepCC_TRUE
='#'
5604 am__fastdepCC_FALSE
=
5608 if test "x$CC" != xcc
; then
5609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5610 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5613 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5615 set dummy
$CC; ac_cc
=`$as_echo "$2" |
5616 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5617 if { as_var
=ac_cv_prog_cc_
${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
5618 $as_echo_n "(cached) " >&6
5620 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5621 /* end confdefs.h. */
5631 # Make sure it works both with $CC and with simple cc.
5632 # We do the test twice because some compilers refuse to overwrite an
5633 # existing .o file with -o, though they will create one.
5634 ac_try
='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5636 if { { case "(($ac_try" in
5637 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5638 *) ac_try_echo=$ac_try;;
5640 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5641 $as_echo "$ac_try_echo"; } >&5
5642 (eval "$ac_try") 2>&5
5644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5645 test $ac_status = 0; } &&
5646 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5647 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5648 *) ac_try_echo
=$ac_try;;
5650 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5651 $as_echo "$ac_try_echo"; } >&5
5652 (eval "$ac_try") 2>&5
5654 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5655 test $ac_status = 0; };
5657 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
5658 if test "x$CC" != xcc
; then
5659 # Test first that cc exists at all.
5660 if { ac_try
='cc -c conftest.$ac_ext >&5'
5661 { { case "(($ac_try" in
5662 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5663 *) ac_try_echo=$ac_try;;
5665 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5666 $as_echo "$ac_try_echo"; } >&5
5667 (eval "$ac_try") 2>&5
5669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5670 test $ac_status = 0; }; }; then
5671 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5673 if { { case "(($ac_try" in
5674 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5675 *) ac_try_echo
=$ac_try;;
5677 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5678 $as_echo "$ac_try_echo"; } >&5
5679 (eval "$ac_try") 2>&5
5681 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5682 test $ac_status = 0; } &&
5683 test -f conftest2.
$ac_objext && { { case "(($ac_try" in
5684 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5685 *) ac_try_echo=$ac_try;;
5687 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5688 $as_echo "$ac_try_echo"; } >&5
5689 (eval "$ac_try") 2>&5
5691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5692 test $ac_status = 0; };
5697 # cc exists but doesn't like -o.
5698 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5703 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5705 rm -f core conftest*
5708 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5710 $as_echo "yes" >&6; }
5712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5713 $as_echo "no" >&6; }
5715 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5719 # FIXME: we rely on the cache variable name because
5720 # there is no other way.
5722 am_cc=`echo $2 |
sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5723 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5724 if test "$am_t" != yes; then
5725 # Losing compiler, so override with the script.
5726 # FIXME: It is wrong to rewrite CC.
5727 # But if we don't then we get into trouble of one sort or another.
5728 # A longer-term fix would be to have automake use am__CC in this case,
5729 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5730 CC="$am_aux_dir/compile $CC"
5735 if test x$GCC = xyes; then
5736 test "x$GCC_TEST_OPTIONS" != x && CC="$CC $GCC_TEST_OPTIONS"
5738 test "x$NON_GCC_TEST_OPTIONS" != x && CC="$CC $NON_GCC_TEST_OPTIONS"
5741 # Avoid gnulib's threadlib module, as we do threads our own way.
5744 # Initialize gnulib right after choosing the compiler.
5747 ac_cpp='$CPP $CPPFLAGS'
5748 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5749 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5750 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5752 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5753 # On Suns, sometimes $CPP names a directory.
5754 if test -n "$CPP" && test -d "$CPP"; then
5757 if test -z "$CPP"; then
5758 if test "${ac_cv_prog_CPP+set}" = set; then :
5759 $as_echo_n "(cached) " >&6
5761 # Double quotes because CPP needs to be expanded
5762 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5765 for ac_c_preproc_warn_flag in '' yes
5767 # Use a header file that comes with gcc, so configuring glibc
5768 # with a fresh cross-compiler works.
5769 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5770 # <limits.h> exists even on freestanding compilers.
5771 # On the NeXT, cc -E runs the code through the compiler's parser,
5772 # not just through cpp. "Syntax error" is here to catch this case.
5773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5774 /* end confdefs.h. */
5776 # include <limits.h>
5778 # include <assert.h>
5782 if ac_fn_c_try_cpp "$LINENO"; then :
5785 # Broken: fails on valid input.
5788 rm -f conftest.err conftest.$ac_ext
5790 # OK, works on sane cases. Now check whether nonexistent headers
5791 # can be detected and how.
5792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5793 /* end confdefs.h. */
5794 #include <ac_nonexistent.h>
5796 if ac_fn_c_try_cpp "$LINENO"; then :
5797 # Broken: success on invalid input.
5800 # Passes both tests.
5804 rm -f conftest.err conftest.$ac_ext
5807 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5808 rm -f conftest.err conftest.
$ac_ext
5809 if $ac_preproc_ok; then :
5821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5822 $as_echo "$CPP" >&6; }
5824 for ac_c_preproc_warn_flag
in '' yes
5826 # Use a header file that comes with gcc, so configuring glibc
5827 # with a fresh cross-compiler works.
5828 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5829 # <limits.h> exists even on freestanding compilers.
5830 # On the NeXT, cc -E runs the code through the compiler's parser,
5831 # not just through cpp. "Syntax error" is here to catch this case.
5832 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5833 /* end confdefs.h. */
5835 # include <limits.h>
5837 # include <assert.h>
5841 if ac_fn_c_try_cpp
"$LINENO"; then :
5844 # Broken: fails on valid input.
5847 rm -f conftest.err conftest.
$ac_ext
5849 # OK, works on sane cases. Now check whether nonexistent headers
5850 # can be detected and how.
5851 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5852 /* end confdefs.h. */
5853 #include <ac_nonexistent.h>
5855 if ac_fn_c_try_cpp
"$LINENO"; then :
5856 # Broken: success on invalid input.
5859 # Passes both tests.
5863 rm -f conftest.err conftest.
$ac_ext
5866 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5867 rm -f conftest.err conftest.
$ac_ext
5868 if $ac_preproc_ok; then :
5871 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5872 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5873 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
5874 See \`config.log' for more details." "$LINENO" 5; }
5878 ac_cpp
='$CPP $CPPFLAGS'
5879 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5880 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5881 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5885 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5886 if test "${ac_cv_path_GREP+set}" = set; then :
5887 $as_echo_n "(cached) " >&6
5889 if test -z "$GREP"; then
5890 ac_path_GREP_found
=false
5891 # Loop through the user's path and test for each of PROGNAME-LIST
5892 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5893 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5896 test -z "$as_dir" && as_dir
=.
5897 for ac_prog
in grep ggrep
; do
5898 for ac_exec_ext
in '' $ac_executable_extensions; do
5899 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5900 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
5901 # Check for GNU ac_path_GREP and select it if it is found.
5902 # Check for GNU $ac_path_GREP
5903 case `"$ac_path_GREP" --version 2>&1` in
5905 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5908 $as_echo_n 0123456789 >"conftest.in"
5911 cat "conftest.in" "conftest.in" >"conftest.tmp"
5912 mv "conftest.tmp" "conftest.in"
5913 cp "conftest.in" "conftest.nl"
5914 $as_echo 'GREP' >> "conftest.nl"
5915 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5916 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5917 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5918 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5919 # Best one so far, save it but keep looking for a better one
5920 ac_cv_path_GREP
="$ac_path_GREP"
5921 ac_path_GREP_max
=$ac_count
5923 # 10*(2^10) chars as input seems more than enough
5924 test $ac_count -gt 10 && break
5926 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5929 $ac_path_GREP_found && break 3
5934 if test -z "$ac_cv_path_GREP"; then
5935 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5938 ac_cv_path_GREP
=$GREP
5942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5943 $as_echo "$ac_cv_path_GREP" >&6; }
5944 GREP
="$ac_cv_path_GREP"
5947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5948 $as_echo_n "checking for egrep... " >&6; }
5949 if test "${ac_cv_path_EGREP+set}" = set; then :
5950 $as_echo_n "(cached) " >&6
5952 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5953 then ac_cv_path_EGREP
="$GREP -E"
5955 if test -z "$EGREP"; then
5956 ac_path_EGREP_found
=false
5957 # Loop through the user's path and test for each of PROGNAME-LIST
5958 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5959 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5962 test -z "$as_dir" && as_dir
=.
5963 for ac_prog
in egrep; do
5964 for ac_exec_ext
in '' $ac_executable_extensions; do
5965 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5966 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
5967 # Check for GNU ac_path_EGREP and select it if it is found.
5968 # Check for GNU $ac_path_EGREP
5969 case `"$ac_path_EGREP" --version 2>&1` in
5971 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5974 $as_echo_n 0123456789 >"conftest.in"
5977 cat "conftest.in" "conftest.in" >"conftest.tmp"
5978 mv "conftest.tmp" "conftest.in"
5979 cp "conftest.in" "conftest.nl"
5980 $as_echo 'EGREP' >> "conftest.nl"
5981 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5982 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5983 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5984 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5985 # Best one so far, save it but keep looking for a better one
5986 ac_cv_path_EGREP
="$ac_path_EGREP"
5987 ac_path_EGREP_max
=$ac_count
5989 # 10*(2^10) chars as input seems more than enough
5990 test $ac_count -gt 10 && break
5992 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5995 $ac_path_EGREP_found && break 3
6000 if test -z "$ac_cv_path_EGREP"; then
6001 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6004 ac_cv_path_EGREP
=$EGREP
6009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6010 $as_echo "$ac_cv_path_EGREP" >&6; }
6011 EGREP
="$ac_cv_path_EGREP"
6016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
6017 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
6018 if test "${gl_cv_c_amsterdam_compiler+set}" = set; then :
6019 $as_echo_n "(cached) " >&6
6022 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6023 /* end confdefs.h. */
6030 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6031 $EGREP "Amsterdam" >/dev
/null
2>&1; then :
6032 gl_cv_c_amsterdam_compiler
=yes
6034 gl_cv_c_amsterdam_compiler
=no
6040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
6041 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
6042 if test -z "$AR"; then
6043 if test $gl_cv_c_amsterdam_compiler = yes; then
6045 if test -z "$ARFLAGS"; then
6049 if test -n "$ac_tool_prefix"; then
6050 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6051 set dummy
${ac_tool_prefix}ar; ac_word
=$2
6052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6053 $as_echo_n "checking for $ac_word... " >&6; }
6054 if test "${ac_cv_prog_AR+set}" = set; then :
6055 $as_echo_n "(cached) " >&6
6057 if test -n "$AR"; then
6058 ac_cv_prog_AR
="$AR" # Let the user override the test.
6060 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6064 test -z "$as_dir" && as_dir
=.
6065 for ac_exec_ext
in '' $ac_executable_extensions; do
6066 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6067 ac_cv_prog_AR
="${ac_tool_prefix}ar"
6068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6078 if test -n "$AR"; then
6079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6080 $as_echo "$AR" >&6; }
6082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6083 $as_echo "no" >&6; }
6088 if test -z "$ac_cv_prog_AR"; then
6090 # Extract the first word of "ar", so it can be a program name with args.
6091 set dummy
ar; ac_word
=$2
6092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6093 $as_echo_n "checking for $ac_word... " >&6; }
6094 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6095 $as_echo_n "(cached) " >&6
6097 if test -n "$ac_ct_AR"; then
6098 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
6100 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6104 test -z "$as_dir" && as_dir
=.
6105 for ac_exec_ext
in '' $ac_executable_extensions; do
6106 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6107 ac_cv_prog_ac_ct_AR
="ar"
6108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6117 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
6118 if test -n "$ac_ct_AR"; then
6119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6120 $as_echo "$ac_ct_AR" >&6; }
6122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6123 $as_echo "no" >&6; }
6126 if test "x$ac_ct_AR" = x
; then
6129 case $cross_compiling:$ac_tool_warned in
6131 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6132 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6133 ac_tool_warned
=yes ;;
6141 if test -z "$ARFLAGS"; then
6146 if test -z "$ARFLAGS"; then
6152 if test -z "$RANLIB"; then
6153 if test $gl_cv_c_amsterdam_compiler = yes; then
6156 if test -n "$ac_tool_prefix"; then
6157 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6158 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
6159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6160 $as_echo_n "checking for $ac_word... " >&6; }
6161 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6162 $as_echo_n "(cached) " >&6
6164 if test -n "$RANLIB"; then
6165 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
6167 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6171 test -z "$as_dir" && as_dir
=.
6172 for ac_exec_ext
in '' $ac_executable_extensions; do
6173 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6174 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
6175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6184 RANLIB
=$ac_cv_prog_RANLIB
6185 if test -n "$RANLIB"; then
6186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6187 $as_echo "$RANLIB" >&6; }
6189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6190 $as_echo "no" >&6; }
6195 if test -z "$ac_cv_prog_RANLIB"; then
6196 ac_ct_RANLIB
=$RANLIB
6197 # Extract the first word of "ranlib", so it can be a program name with args.
6198 set dummy ranlib
; ac_word
=$2
6199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6200 $as_echo_n "checking for $ac_word... " >&6; }
6201 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6202 $as_echo_n "(cached) " >&6
6204 if test -n "$ac_ct_RANLIB"; then
6205 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
6207 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6211 test -z "$as_dir" && as_dir
=.
6212 for ac_exec_ext
in '' $ac_executable_extensions; do
6213 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6214 ac_cv_prog_ac_ct_RANLIB
="ranlib"
6215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6224 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
6225 if test -n "$ac_ct_RANLIB"; then
6226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6227 $as_echo "$ac_ct_RANLIB" >&6; }
6229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6230 $as_echo "no" >&6; }
6233 if test "x$ac_ct_RANLIB" = x
; then
6236 case $cross_compiling:$ac_tool_warned in
6238 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6239 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6240 ac_tool_warned
=yes ;;
6242 RANLIB
=$ac_ct_RANLIB
6245 RANLIB
="$ac_cv_prog_RANLIB"
6252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6253 $as_echo_n "checking for ANSI C header files... " >&6; }
6254 if test "${ac_cv_header_stdc+set}" = set; then :
6255 $as_echo_n "(cached) " >&6
6257 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6258 /* end confdefs.h. */
6272 if ac_fn_c_try_compile
"$LINENO"; then :
6273 ac_cv_header_stdc
=yes
6275 ac_cv_header_stdc
=no
6277 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6279 if test $ac_cv_header_stdc = yes; then
6280 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6281 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6282 /* end confdefs.h. */
6286 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6287 $EGREP "memchr" >/dev
/null
2>&1; then :
6290 ac_cv_header_stdc
=no
6296 if test $ac_cv_header_stdc = yes; then
6297 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6298 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6299 /* end confdefs.h. */
6303 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6304 $EGREP "free" >/dev
/null
2>&1; then :
6307 ac_cv_header_stdc
=no
6313 if test $ac_cv_header_stdc = yes; then
6314 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6315 if test "$cross_compiling" = yes; then :
6318 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6319 /* end confdefs.h. */
6322 #if ((' ' & 0x0FF) == 0x020)
6323 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6324 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6326 # define ISLOWER(c) \
6327 (('a' <= (c) && (c) <= 'i') \
6328 || ('j' <= (c) && (c) <= 'r') \
6329 || ('s' <= (c) && (c) <= 'z'))
6330 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6333 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6338 for (i = 0; i < 256; i++)
6339 if (XOR (islower (i), ISLOWER (i))
6340 || toupper (i) != TOUPPER (i))
6345 if ac_fn_c_try_run
"$LINENO"; then :
6348 ac_cv_header_stdc
=no
6350 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6351 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6357 $as_echo "$ac_cv_header_stdc" >&6; }
6358 if test $ac_cv_header_stdc = yes; then
6360 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6364 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6365 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
6366 inttypes.h stdint.h unistd.h
6368 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6369 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6371 eval as_val
=\$
$as_ac_Header
6372 if test "x$as_val" = x
""yes; then :
6373 cat >>confdefs.h
<<_ACEOF
6374 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6385 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
6386 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
6393 if test "$MINIX" = yes; then
6395 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6398 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6401 $as_echo "#define _MINIX 1" >>confdefs.h
6408 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
6414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6415 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6416 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
6417 $as_echo_n "(cached) " >&6
6419 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6420 /* end confdefs.h. */
6422 # define __EXTENSIONS__ 1
6423 $ac_includes_default
6432 if ac_fn_c_try_compile
"$LINENO"; then :
6433 ac_cv_safe_to_define___extensions__
=yes
6435 ac_cv_safe_to_define___extensions__
=no
6437 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6440 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6441 test $ac_cv_safe_to_define___extensions__ = yes &&
6442 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6444 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6446 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
6448 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6450 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6452 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6461 # Check whether --enable-largefile was given.
6462 if test "${enable_largefile+set}" = set; then :
6463 enableval
=$enable_largefile;
6466 if test "$enable_largefile" != no
; then
6468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6469 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6470 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
6471 $as_echo_n "(cached) " >&6
6473 ac_cv_sys_largefile_CC
=no
6474 if test "$GCC" != yes; then
6477 # IRIX 6.2 and later do not support large files by default,
6478 # so use the C compiler's -n32 option if that helps.
6479 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6480 /* end confdefs.h. */
6481 #include <sys/types.h>
6482 /* Check that off_t can represent 2**63 - 1 correctly.
6483 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6484 since some C++ compilers masquerading as C compilers
6485 incorrectly reject 9223372036854775807. */
6486 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6487 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6488 && LARGE_OFF_T % 2147483647 == 1)
6498 if ac_fn_c_try_compile
"$LINENO"; then :
6501 rm -f core conftest.err conftest.
$ac_objext
6503 if ac_fn_c_try_compile
"$LINENO"; then :
6504 ac_cv_sys_largefile_CC
=' -n32'; break
6506 rm -f core conftest.err conftest.
$ac_objext
6510 rm -f conftest.
$ac_ext
6513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6514 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6515 if test "$ac_cv_sys_largefile_CC" != no
; then
6516 CC
=$CC$ac_cv_sys_largefile_CC
6519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6520 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6521 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
6522 $as_echo_n "(cached) " >&6
6525 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6526 /* end confdefs.h. */
6527 #include <sys/types.h>
6528 /* Check that off_t can represent 2**63 - 1 correctly.
6529 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6530 since some C++ compilers masquerading as C compilers
6531 incorrectly reject 9223372036854775807. */
6532 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6533 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6534 && LARGE_OFF_T % 2147483647 == 1)
6544 if ac_fn_c_try_compile
"$LINENO"; then :
6545 ac_cv_sys_file_offset_bits
=no
; break
6547 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6548 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6549 /* end confdefs.h. */
6550 #define _FILE_OFFSET_BITS 64
6551 #include <sys/types.h>
6552 /* Check that off_t can represent 2**63 - 1 correctly.
6553 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6554 since some C++ compilers masquerading as C compilers
6555 incorrectly reject 9223372036854775807. */
6556 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6557 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6558 && LARGE_OFF_T % 2147483647 == 1)
6568 if ac_fn_c_try_compile
"$LINENO"; then :
6569 ac_cv_sys_file_offset_bits
=64; break
6571 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6572 ac_cv_sys_file_offset_bits
=unknown
6576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6577 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6578 case $ac_cv_sys_file_offset_bits in #(
6581 cat >>confdefs.h
<<_ACEOF
6582 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6587 if test $ac_cv_sys_file_offset_bits = unknown
; then
6588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6589 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6590 if test "${ac_cv_sys_large_files+set}" = set; then :
6591 $as_echo_n "(cached) " >&6
6594 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6595 /* end confdefs.h. */
6596 #include <sys/types.h>
6597 /* Check that off_t can represent 2**63 - 1 correctly.
6598 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6599 since some C++ compilers masquerading as C compilers
6600 incorrectly reject 9223372036854775807. */
6601 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6602 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6603 && LARGE_OFF_T % 2147483647 == 1)
6613 if ac_fn_c_try_compile
"$LINENO"; then :
6614 ac_cv_sys_large_files
=no
; break
6616 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6617 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6618 /* end confdefs.h. */
6619 #define _LARGE_FILES 1
6620 #include <sys/types.h>
6621 /* Check that off_t can represent 2**63 - 1 correctly.
6622 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6623 since some C++ compilers masquerading as C compilers
6624 incorrectly reject 9223372036854775807. */
6625 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6626 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6627 && LARGE_OFF_T % 2147483647 == 1)
6637 if ac_fn_c_try_compile
"$LINENO"; then :
6638 ac_cv_sys_large_files
=1; break
6640 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6641 ac_cv_sys_large_files
=unknown
6645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6646 $as_echo "$ac_cv_sys_large_files" >&6; }
6647 case $ac_cv_sys_large_files in #(
6650 cat >>confdefs.h
<<_ACEOF
6651 #define _LARGE_FILES $ac_cv_sys_large_files
6661 case $ac_cv_prog_cc_stdc in #(
6663 ac_cv_prog_cc_c99
=no
; ac_cv_prog_cc_c89
=no
;; #(
6665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
6666 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
6667 if test "${ac_cv_prog_cc_c99+set}" = set; then :
6668 $as_echo_n "(cached) " >&6
6670 ac_cv_prog_cc_c99
=no
6672 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6673 /* end confdefs.h. */
6675 #include <stdbool.h>
6680 // Check varargs macros. These examples are taken from C99 6.10.3.5.
6681 #define debug(...) fprintf (stderr, __VA_ARGS__)
6682 #define showlist(...) puts (#__VA_ARGS__)
6683 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6685 test_varargs_macros (void)
6690 debug ("X = %d\n", x);
6691 showlist (The first, second, and third items.);
6692 report (x>y, "x is %d but y is %d", x, y);
6695 // Check long long types.
6696 #define BIG64 18446744073709551615ull
6697 #define BIG32 4294967295ul
6698 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6700 your preprocessor is broken;
6704 your preprocessor is broken;
6706 static long long int bignum = -9223372036854775807LL;
6707 static unsigned long long int ubignum = BIG64;
6709 struct incomplete_array
6717 const wchar_t *name;
6721 typedef const char *ccp;
6724 test_restrict (ccp restrict text)
6726 // See if C++-style comments work.
6727 // Iterate through items via the restricted pointer.
6728 // Also check for declarations in for loops.
6729 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6734 // Check varargs and va_copy.
6736 test_varargs (const char *format, ...)
6739 va_start (args, format);
6741 va_copy (args_copy, args);
6752 str = va_arg (args_copy, const char *);
6755 number = va_arg (args_copy, int);
6758 fnumber = va_arg (args_copy, double);
6773 _Bool success = false;
6776 if (test_restrict ("String literal") == 0)
6778 char *restrict newvar = "Another string";
6781 test_varargs ("s, d' f .", "string", 65, 34.234);
6782 test_varargs_macros ();
6784 // Check flexible array members.
6785 struct incomplete_array *ia =
6786 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6788 for (int i = 0; i < ia->datasize; ++i)
6789 ia->data[i] = i * 1.234;
6791 // Check named initializers.
6792 struct named_init ni = {
6794 .name = L"Test wide string",
6795 .average = 543.34343,
6800 int dynamic_array[ni.number];
6801 dynamic_array[ni.number - 1] = 543;
6803 // work around unused variable warnings
6804 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6805 || dynamic_array[ni.number - 1] != 543);
6811 for ac_arg
in '' -std=gnu99
-std=c99
-c99 -AC99 -xc99=all
-qlanglvl=extc99
6813 CC
="$ac_save_CC $ac_arg"
6814 if ac_fn_c_try_compile
"$LINENO"; then :
6815 ac_cv_prog_cc_c99
=$ac_arg
6817 rm -f core conftest.err conftest.
$ac_objext
6818 test "x$ac_cv_prog_cc_c99" != "xno" && break
6820 rm -f conftest.
$ac_ext
6825 case "x$ac_cv_prog_cc_c99" in
6827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6828 $as_echo "none needed" >&6; } ;;
6830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6831 $as_echo "unsupported" >&6; } ;;
6833 CC
="$CC $ac_cv_prog_cc_c99"
6834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
6835 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6837 if test "x$ac_cv_prog_cc_c99" != xno
; then :
6838 ac_cv_prog_cc_stdc
=$ac_cv_prog_cc_c99
6840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6841 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6842 if test "${ac_cv_prog_cc_c89+set}" = set; then :
6843 $as_echo_n "(cached) " >&6
6845 ac_cv_prog_cc_c89
=no
6847 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6848 /* end confdefs.h. */
6851 #include <sys/types.h>
6852 #include <sys/stat.h>
6853 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6854 struct buf { int x; };
6855 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6856 static char *e (p, i)
6862 static char *f (char * (*g) (char **, int), char **p, ...)
6867 s = g (p, va_arg (v,int));
6872 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6873 function prototypes and stuff, but not '\xHH' hex character constants.
6874 These don't provoke an error unfortunately, instead are silently treated
6875 as 'x'. The following induces an error, until -std is added to get
6876 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6877 array size at least. It's necessary to write '\x00'==0 to get something
6878 that's true only with -std. */
6879 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6881 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6882 inside strings and character constants. */
6884 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6886 int test (int i, double x);
6887 struct s1 {int (*f) (int a);};
6888 struct s2 {int (*f) (double a);};
6889 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6895 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6900 for ac_arg
in '' -qlanglvl=extc89
-qlanglvl=ansi
-std \
6901 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6903 CC
="$ac_save_CC $ac_arg"
6904 if ac_fn_c_try_compile
"$LINENO"; then :
6905 ac_cv_prog_cc_c89
=$ac_arg
6907 rm -f core conftest.err conftest.
$ac_objext
6908 test "x$ac_cv_prog_cc_c89" != "xno" && break
6910 rm -f conftest.
$ac_ext
6915 case "x$ac_cv_prog_cc_c89" in
6917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6918 $as_echo "none needed" >&6; } ;;
6920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6921 $as_echo "unsupported" >&6; } ;;
6923 CC
="$CC $ac_cv_prog_cc_c89"
6924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6925 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6927 if test "x$ac_cv_prog_cc_c89" != xno
; then :
6928 ac_cv_prog_cc_stdc
=$ac_cv_prog_cc_c89
6930 ac_cv_prog_cc_stdc
=no
6936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
6937 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
6938 if test "${ac_cv_prog_cc_stdc+set}" = set; then :
6939 $as_echo_n "(cached) " >&6
6942 case $ac_cv_prog_cc_stdc in #(
6944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6945 $as_echo "unsupported" >&6; } ;; #(
6947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6948 $as_echo "none needed" >&6; } ;; #(
6950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
6951 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
6956 # Code from module alloca-opt:
6957 # Code from module allocator:
6958 # Code from module c-ctype:
6959 # Code from module c-strcase:
6960 # Code from module careadlinkat:
6961 # Code from module clock-time:
6962 # Code from module crypto/md5:
6963 # Code from module crypto/sha1:
6964 # Code from module crypto/sha256:
6965 # Code from module crypto/sha512:
6966 # Code from module dosname:
6967 # Code from module dtoastr:
6968 # Code from module dtotimespec:
6969 # Code from module dup2:
6970 # Code from module environ:
6971 # Code from module execinfo:
6972 # Code from module extensions:
6974 # Code from module extern-inline:
6975 # Code from module filemode:
6976 # Code from module getloadavg:
6977 # Code from module getopt-gnu:
6978 # Code from module getopt-posix:
6979 # Code from module gettext-h:
6980 # Code from module gettime:
6981 # Code from module gettimeofday:
6982 # Code from module ignore-value:
6983 # Code from module include_next:
6984 # Code from module intprops:
6985 # Code from module inttypes-incomplete:
6986 # Code from module largefile:
6988 # Code from module lstat:
6989 # Code from module manywarnings:
6990 # Code from module mktime:
6991 # Code from module multiarch:
6992 # Code from module nocrash:
6993 # Code from module pathmax:
6994 # Code from module pselect:
6995 # Code from module pthread_sigmask:
6996 # Code from module readlink:
6997 # Code from module signal-h:
6998 # Code from module snippet/_Noreturn:
6999 # Code from module snippet/arg-nonnull:
7000 # Code from module snippet/c++defs:
7001 # Code from module snippet/warn-on-use:
7002 # Code from module socklen:
7003 # Code from module ssize_t:
7004 # Code from module stat:
7005 # Code from module stat-time:
7006 # Code from module stdalign:
7007 # Code from module stdarg:
7011 # Code from module stdbool:
7012 # Code from module stddef:
7013 # Code from module stdint:
7014 # Code from module stdio:
7015 # Code from module stdlib:
7016 # Code from module strftime:
7017 # Code from module strtoimax:
7018 # Code from module strtoll:
7019 # Code from module strtoull:
7020 # Code from module strtoumax:
7021 # Code from module symlink:
7022 # Code from module sys_select:
7023 # Code from module sys_stat:
7024 # Code from module sys_time:
7025 # Code from module time:
7026 # Code from module time_r:
7027 # Code from module timer-time:
7028 # Code from module timespec:
7029 # Code from module timespec-add:
7030 # Code from module timespec-sub:
7031 # Code from module u64:
7032 # Code from module unistd:
7033 # Code from module utimens:
7034 # Code from module verify:
7035 # Code from module warnings:
7038 # It's helpful to have C macros available to GDB, so prefer -g3 to -g
7039 # if -g3 works and the user does not specify CFLAGS.
7040 # This test must follow gl_EARLY; otherwise AC_LINK_IFELSE complains.
7041 if test "$ac_test_CFLAGS" != set; then
7044 emacs_g3_CFLAGS
='-g3';;
7046 emacs_g3_CFLAGS
='-g3 -O2';;
7048 emacs_g3_CFLAGS
='';;
7050 if test -n "$emacs_g3_CFLAGS"; then
7051 emacs_save_CFLAGS
=$CFLAGS
7052 CFLAGS
=$emacs_g3_CFLAGS
7053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts $emacs_g3_CFLAGS" >&5
7054 $as_echo_n "checking whether $CC accepts $emacs_g3_CFLAGS... " >&6; }
7055 if test "${emacs_cv_prog_cc_g3+set}" = set; then :
7056 $as_echo_n "(cached) " >&6
7058 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7059 /* end confdefs.h. */
7069 if ac_fn_c_try_link
"$LINENO"; then :
7070 emacs_cv_prog_cc_g3
=yes
7072 emacs_cv_prog_cc_g3
=no
7074 rm -f core conftest.err conftest.
$ac_objext \
7075 conftest
$ac_exeext conftest.
$ac_ext
7077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_prog_cc_g3" >&5
7078 $as_echo "$emacs_cv_prog_cc_g3" >&6; }
7079 if test $emacs_cv_prog_cc_g3 = yes; then
7080 CFLAGS
=$emacs_g3_CFLAGS
7082 CFLAGS
=$emacs_save_CFLAGS
7087 # Check whether --enable-gcc-warnings was given.
7088 if test "${enable_gcc_warnings+set}" = set; then :
7089 enableval
=$enable_gcc_warnings; case $enableval in
7091 *) as_fn_error
"bad value $enableval for gcc-warnings option" "$LINENO" 5 ;;
7093 gl_gcc_warnings
=$enableval
7100 # Check whether --enable-link-time-optimization was given.
7101 if test "${enable_link_time_optimization+set}" = set; then :
7102 enableval
=$enable_link_time_optimization; if test "${enableval}" != "no"; then
7103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether link-time optimization is supported" >&5
7104 $as_echo_n "checking whether link-time optimization is supported... " >&6; }
7106 if test x
$GCC = xyes
; then
7107 CPUS
=`getconf _NPROCESSORS_ONLN 2>/dev/null`
7108 if test x
$CPUS != x
; then
7114 CFLAGS
="$CFLAGS $LTO"
7115 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7116 /* end confdefs.h. */
7126 if ac_fn_c_try_compile
"$LINENO"; then :
7127 ac_lto_supported
=yes
7131 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7132 CFLAGS
="$old_CFLAGS"
7134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_lto_supported" >&5
7135 $as_echo "$ac_lto_supported" >&6; }
7136 if test "$ac_lto_supported" = "yes"; then
7137 CFLAGS
="$CFLAGS $LTO"
7143 # gl_GCC_VERSION_IFELSE([major], [minor], [run-if-found], [run-if-not-found])
7144 # ------------------------------------------------
7145 # If $CPP is gcc-MAJOR.MINOR or newer, then run RUN-IF-FOUND.
7146 # Otherwise, run RUN-IF-NOT-FOUND.
7149 # When compiling with GCC, prefer -isystem to -I when including system
7150 # include files, to avoid generating useless diagnostics for the files.
7151 if test "$gl_gcc_warnings" != yes; then
7156 # This, $nw, is the list of warnings we disable.
7159 case $with_x_toolkit in
7160 lucid | athena | motif
)
7161 # Old toolkits mishandle 'const'.
7162 nw
="$nw -Wwrite-strings"
7165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Werror" >&5
7166 $as_echo_n "checking whether C compiler handles -Werror... " >&6; }
7167 if test "${gl_cv_warn_c__Werror+set}" = set; then :
7168 $as_echo_n "(cached) " >&6
7171 gl_save_compiler_FLAGS
="$CFLAGS"
7172 as_fn_append CFLAGS
" -Werror"
7173 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7174 /* end confdefs.h. */
7184 if ac_fn_c_try_compile
"$LINENO"; then :
7185 gl_cv_warn_c__Werror
=yes
7187 gl_cv_warn_c__Werror
=no
7189 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7190 CFLAGS
="$gl_save_compiler_FLAGS"
7193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Werror" >&5
7194 $as_echo "$gl_cv_warn_c__Werror" >&6; }
7195 if test "x$gl_cv_warn_c__Werror" = x
""yes; then :
7196 as_fn_append WERROR_CFLAGS
" -Werror"
7204 nw
="$nw -Waggregate-return" # anachronistic
7205 nw
="$nw -Wlong-long" # C90 is anachronistic
7206 nw
="$nw -Wc++-compat" # We don't care about C++ compilers
7207 nw
="$nw -Wundef" # Warns on '#if GNULIB_FOO' etc in gnulib
7208 nw
="$nw -Wtraditional" # Warns on #elif which we use often
7209 nw
="$nw -Wcast-qual" # Too many warnings for now
7210 nw
="$nw -Wconversion" # Too many warnings for now
7211 nw
="$nw -Wsystem-headers" # Don't let system headers trigger warnings
7212 nw
="$nw -Wsign-conversion" # Too many warnings for now
7213 nw
="$nw -Woverlength-strings" # Not a problem these days
7214 nw
="$nw -Wtraditional-conversion" # Too many warnings for now
7215 nw
="$nw -Wunreachable-code" # so buggy that it's now silently ignored
7216 nw
="$nw -Wpadded" # Our structs are not padded
7217 nw
="$nw -Wredundant-decls" # we regularly (re)declare functions
7218 nw
="$nw -Wlogical-op" # any use of fwrite provokes this
7219 nw
="$nw -Wformat-nonliteral" # we do this a lot
7220 nw
="$nw -Wvla" # warnings in gettext.h
7221 nw
="$nw -Wnested-externs" # use of XARGMATCH/verify_function__
7222 nw
="$nw -Wswitch-enum" # Too many warnings for now
7223 nw
="$nw -Wswitch-default" # Too many warnings for now
7224 nw
="$nw -Wfloat-equal" # warns about high-quality code
7225 nw
="$nw -Winline" # OK to ignore 'inline'
7226 nw
="$nw -Wjump-misses-init" # We sometimes safely jump over init.
7227 nw
="$nw -Wsync-nand" # irrelevant here, and provokes ObjC warning
7228 nw
="$nw -Wunsafe-loop-optimizations" # OK to suppress unsafe optimizations
7230 # Emacs doesn't care about shadowing; see
7231 # <http://lists.gnu.org/archive/html/emacs-diffs/2011-11/msg00265.html>.
7234 # The following lines should be removable at some point.
7235 nw
="$nw -Wstack-protector"
7236 nw
="$nw -Wstrict-overflow"
7237 nw
="$nw -Wsuggest-attribute=pure"
7241 if test -n "$GCC"; then
7243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is supported" >&5
7244 $as_echo_n "checking whether -Wno-missing-field-initializers is supported... " >&6; }
7245 if test "${gl_cv_cc_nomfi_supported+set}" = set; then :
7246 $as_echo_n "(cached) " >&6
7249 gl_save_CFLAGS
="$CFLAGS"
7250 CFLAGS
="$CFLAGS -W -Werror -Wno-missing-field-initializers"
7251 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7252 /* end confdefs.h. */
7262 if ac_fn_c_try_compile
"$LINENO"; then :
7263 gl_cv_cc_nomfi_supported
=yes
7265 gl_cv_cc_nomfi_supported
=no
7267 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7268 CFLAGS
="$gl_save_CFLAGS"
7271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_supported" >&5
7272 $as_echo "$gl_cv_cc_nomfi_supported" >&6; }
7274 if test "$gl_cv_cc_nomfi_supported" = yes; then
7275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is needed" >&5
7276 $as_echo_n "checking whether -Wno-missing-field-initializers is needed... " >&6; }
7277 if test "${gl_cv_cc_nomfi_needed+set}" = set; then :
7278 $as_echo_n "(cached) " >&6
7281 gl_save_CFLAGS
="$CFLAGS"
7282 CFLAGS
="$CFLAGS -W -Werror"
7283 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7284 /* end confdefs.h. */
7287 typedef struct { int a; int b; } s_t;
7299 if ac_fn_c_try_compile
"$LINENO"; then :
7300 gl_cv_cc_nomfi_needed
=no
7302 gl_cv_cc_nomfi_needed
=yes
7304 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7305 CFLAGS
="$gl_save_CFLAGS"
7309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_needed" >&5
7310 $as_echo "$gl_cv_cc_nomfi_needed" >&6; }
7313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wuninitialized is supported" >&5
7314 $as_echo_n "checking whether -Wuninitialized is supported... " >&6; }
7315 if test "${gl_cv_cc_uninitialized_supported+set}" = set; then :
7316 $as_echo_n "(cached) " >&6
7319 gl_save_CFLAGS
="$CFLAGS"
7320 CFLAGS
="$CFLAGS -Werror -Wuninitialized"
7321 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7322 /* end confdefs.h. */
7332 if ac_fn_c_try_compile
"$LINENO"; then :
7333 gl_cv_cc_uninitialized_supported
=yes
7335 gl_cv_cc_uninitialized_supported
=no
7337 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7338 CFLAGS
="$gl_save_CFLAGS"
7341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_uninitialized_supported" >&5
7342 $as_echo "$gl_cv_cc_uninitialized_supported" >&6; }
7346 # List all gcc warning categories.
7348 for gl_manywarn_item
in \
7355 -Wbad-function-cast \
7356 -Wbuiltin-macro-redefined \
7362 -Wcoverage-mismatch \
7365 -Wdeprecated-declarations \
7366 -Wdisabled-optimization \
7368 -Wdouble-promotion \
7373 -Wformat-contains-nul \
7374 -Wformat-extra-args \
7375 -Wformat-nonliteral \
7378 -Wformat-zero-length \
7380 -Wfree-nonheap-object \
7381 -Wignored-qualifiers \
7383 -Wimplicit-function-declaration \
7387 -Wint-to-pointer-cast \
7388 -Winvalid-memory-model \
7390 -Wjump-misses-init \
7393 -Wmaybe-uninitialized \
7395 -Wmissing-declarations \
7396 -Wmissing-field-initializers \
7397 -Wmissing-format-attribute \
7398 -Wmissing-include-dirs \
7399 -Wmissing-noreturn \
7400 -Wmissing-parameter-type \
7401 -Wmissing-prototypes \
7408 -Wold-style-declaration \
7409 -Wold-style-definition \
7411 -Woverlength-strings \
7414 -Wpacked-bitfield-compat \
7418 -Wpointer-to-int-cast \
7423 -Wsizeof-pointer-memaccess \
7427 -Wstrict-prototypes \
7428 -Wsuggest-attribute=const \
7429 -Wsuggest-attribute=format \
7430 -Wsuggest-attribute=noreturn \
7431 -Wsuggest-attribute=pure \
7441 -Wunreachable-code \
7442 -Wunsafe-loop-optimizations \
7444 -Wunused-but-set-parameter \
7445 -Wunused-but-set-variable \
7448 -Wunused-local-typedefs \
7450 -Wunused-parameter \
7456 -Wvector-operation-performance \
7458 -Wvolatile-register-var \
7462 gl_manywarn_set
="$gl_manywarn_set $gl_manywarn_item"
7465 # Disable specific options as needed.
7466 if test "$gl_cv_cc_nomfi_needed" = yes; then
7467 gl_manywarn_set
="$gl_manywarn_set -Wno-missing-field-initializers"
7470 if test "$gl_cv_cc_uninitialized_supported" = no
; then
7471 gl_manywarn_set
="$gl_manywarn_set -Wno-uninitialized"
7482 *" $gl_warn_item "*)
7485 gl_warn_set
="$gl_warn_set $gl_warn_item"
7492 as_gl_Warn
=`$as_echo "gl_cv_warn_c_$w" | $as_tr_sh`
7493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles $w" >&5
7494 $as_echo_n "checking whether C compiler handles $w... " >&6; }
7495 if { as_var
=$as_gl_Warn; eval "test \"\${$as_var+set}\" = set"; }; then :
7496 $as_echo_n "(cached) " >&6
7499 gl_save_compiler_FLAGS
="$CFLAGS"
7500 as_fn_append CFLAGS
" $w"
7501 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7502 /* end confdefs.h. */
7512 if ac_fn_c_try_compile
"$LINENO"; then :
7513 eval "$as_gl_Warn=yes"
7515 eval "$as_gl_Warn=no"
7517 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7518 CFLAGS
="$gl_save_compiler_FLAGS"
7521 eval ac_res
=\$
$as_gl_Warn
7522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7523 $as_echo "$ac_res" >&6; }
7524 eval as_val
=\$
$as_gl_Warn
7525 if test "x$as_val" = x
""yes; then :
7526 as_fn_append WARN_CFLAGS
" $w"
7531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-missing-field-initializers" >&5
7532 $as_echo_n "checking whether C compiler handles -Wno-missing-field-initializers... " >&6; }
7533 if test "${gl_cv_warn_c__Wno_missing_field_initializers+set}" = set; then :
7534 $as_echo_n "(cached) " >&6
7537 gl_save_compiler_FLAGS
="$CFLAGS"
7538 as_fn_append CFLAGS
" -Wno-missing-field-initializers"
7539 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7540 /* end confdefs.h. */
7550 if ac_fn_c_try_compile
"$LINENO"; then :
7551 gl_cv_warn_c__Wno_missing_field_initializers
=yes
7553 gl_cv_warn_c__Wno_missing_field_initializers
=no
7555 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7556 CFLAGS
="$gl_save_compiler_FLAGS"
7559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_missing_field_initializers" >&5
7560 $as_echo "$gl_cv_warn_c__Wno_missing_field_initializers" >&6; }
7561 if test "x$gl_cv_warn_c__Wno_missing_field_initializers" = x
""yes; then :
7562 as_fn_append WARN_CFLAGS
" -Wno-missing-field-initializers"
7566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-sign-compare" >&5
7567 $as_echo_n "checking whether C compiler handles -Wno-sign-compare... " >&6; }
7568 if test "${gl_cv_warn_c__Wno_sign_compare+set}" = set; then :
7569 $as_echo_n "(cached) " >&6
7572 gl_save_compiler_FLAGS
="$CFLAGS"
7573 as_fn_append CFLAGS
" -Wno-sign-compare"
7574 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7575 /* end confdefs.h. */
7585 if ac_fn_c_try_compile
"$LINENO"; then :
7586 gl_cv_warn_c__Wno_sign_compare
=yes
7588 gl_cv_warn_c__Wno_sign_compare
=no
7590 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7591 CFLAGS
="$gl_save_compiler_FLAGS"
7594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_sign_compare" >&5
7595 $as_echo "$gl_cv_warn_c__Wno_sign_compare" >&6; }
7596 if test "x$gl_cv_warn_c__Wno_sign_compare" = x
""yes; then :
7597 as_fn_append WARN_CFLAGS
" -Wno-sign-compare"
7600 # Too many warnings for now
7601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-type-limits" >&5
7602 $as_echo_n "checking whether C compiler handles -Wno-type-limits... " >&6; }
7603 if test "${gl_cv_warn_c__Wno_type_limits+set}" = set; then :
7604 $as_echo_n "(cached) " >&6
7607 gl_save_compiler_FLAGS
="$CFLAGS"
7608 as_fn_append CFLAGS
" -Wno-type-limits"
7609 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7610 /* end confdefs.h. */
7620 if ac_fn_c_try_compile
"$LINENO"; then :
7621 gl_cv_warn_c__Wno_type_limits
=yes
7623 gl_cv_warn_c__Wno_type_limits
=no
7625 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7626 CFLAGS
="$gl_save_compiler_FLAGS"
7629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_type_limits" >&5
7630 $as_echo "$gl_cv_warn_c__Wno_type_limits" >&6; }
7631 if test "x$gl_cv_warn_c__Wno_type_limits" = x
""yes; then :
7632 as_fn_append WARN_CFLAGS
" -Wno-type-limits"
7635 # Too many warnings for now
7636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-switch" >&5
7637 $as_echo_n "checking whether C compiler handles -Wno-switch... " >&6; }
7638 if test "${gl_cv_warn_c__Wno_switch+set}" = set; then :
7639 $as_echo_n "(cached) " >&6
7642 gl_save_compiler_FLAGS
="$CFLAGS"
7643 as_fn_append CFLAGS
" -Wno-switch"
7644 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7645 /* end confdefs.h. */
7655 if ac_fn_c_try_compile
"$LINENO"; then :
7656 gl_cv_warn_c__Wno_switch
=yes
7658 gl_cv_warn_c__Wno_switch
=no
7660 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7661 CFLAGS
="$gl_save_compiler_FLAGS"
7664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_switch" >&5
7665 $as_echo "$gl_cv_warn_c__Wno_switch" >&6; }
7666 if test "x$gl_cv_warn_c__Wno_switch" = x
""yes; then :
7667 as_fn_append WARN_CFLAGS
" -Wno-switch"
7670 # Too many warnings for now
7671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-unused-parameter" >&5
7672 $as_echo_n "checking whether C compiler handles -Wno-unused-parameter... " >&6; }
7673 if test "${gl_cv_warn_c__Wno_unused_parameter+set}" = set; then :
7674 $as_echo_n "(cached) " >&6
7677 gl_save_compiler_FLAGS
="$CFLAGS"
7678 as_fn_append CFLAGS
" -Wno-unused-parameter"
7679 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7680 /* end confdefs.h. */
7690 if ac_fn_c_try_compile
"$LINENO"; then :
7691 gl_cv_warn_c__Wno_unused_parameter
=yes
7693 gl_cv_warn_c__Wno_unused_parameter
=no
7695 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7696 CFLAGS
="$gl_save_compiler_FLAGS"
7699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_unused_parameter" >&5
7700 $as_echo "$gl_cv_warn_c__Wno_unused_parameter" >&6; }
7701 if test "x$gl_cv_warn_c__Wno_unused_parameter" = x
""yes; then :
7702 as_fn_append WARN_CFLAGS
" -Wno-unused-parameter"
7705 # Too many warnings for now
7706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-format-nonliteral" >&5
7707 $as_echo_n "checking whether C compiler handles -Wno-format-nonliteral... " >&6; }
7708 if test "${gl_cv_warn_c__Wno_format_nonliteral+set}" = set; then :
7709 $as_echo_n "(cached) " >&6
7712 gl_save_compiler_FLAGS
="$CFLAGS"
7713 as_fn_append CFLAGS
" -Wno-format-nonliteral"
7714 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7715 /* end confdefs.h. */
7725 if ac_fn_c_try_compile
"$LINENO"; then :
7726 gl_cv_warn_c__Wno_format_nonliteral
=yes
7728 gl_cv_warn_c__Wno_format_nonliteral
=no
7730 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7731 CFLAGS
="$gl_save_compiler_FLAGS"
7734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_format_nonliteral" >&5
7735 $as_echo "$gl_cv_warn_c__Wno_format_nonliteral" >&6; }
7736 if test "x$gl_cv_warn_c__Wno_format_nonliteral" = x
""yes; then :
7737 as_fn_append WARN_CFLAGS
" -Wno-format-nonliteral"
7742 # In spite of excluding -Wlogical-op above, it is enabled, as of
7743 # gcc 4.5.0 20090517.
7744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-logical-op" >&5
7745 $as_echo_n "checking whether C compiler handles -Wno-logical-op... " >&6; }
7746 if test "${gl_cv_warn_c__Wno_logical_op+set}" = set; then :
7747 $as_echo_n "(cached) " >&6
7750 gl_save_compiler_FLAGS
="$CFLAGS"
7751 as_fn_append CFLAGS
" -Wno-logical-op"
7752 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7753 /* end confdefs.h. */
7763 if ac_fn_c_try_compile
"$LINENO"; then :
7764 gl_cv_warn_c__Wno_logical_op
=yes
7766 gl_cv_warn_c__Wno_logical_op
=no
7768 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7769 CFLAGS
="$gl_save_compiler_FLAGS"
7772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_logical_op" >&5
7773 $as_echo "$gl_cv_warn_c__Wno_logical_op" >&6; }
7774 if test "x$gl_cv_warn_c__Wno_logical_op" = x
""yes; then :
7775 as_fn_append WARN_CFLAGS
" -Wno-logical-op"
7780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -fdiagnostics-show-option" >&5
7781 $as_echo_n "checking whether C compiler handles -fdiagnostics-show-option... " >&6; }
7782 if test "${gl_cv_warn_c__fdiagnostics_show_option+set}" = set; then :
7783 $as_echo_n "(cached) " >&6
7786 gl_save_compiler_FLAGS
="$CFLAGS"
7787 as_fn_append CFLAGS
" -fdiagnostics-show-option"
7788 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7789 /* end confdefs.h. */
7799 if ac_fn_c_try_compile
"$LINENO"; then :
7800 gl_cv_warn_c__fdiagnostics_show_option
=yes
7802 gl_cv_warn_c__fdiagnostics_show_option
=no
7804 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7805 CFLAGS
="$gl_save_compiler_FLAGS"
7808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__fdiagnostics_show_option" >&5
7809 $as_echo "$gl_cv_warn_c__fdiagnostics_show_option" >&6; }
7810 if test "x$gl_cv_warn_c__fdiagnostics_show_option" = x
""yes; then :
7811 as_fn_append WARN_CFLAGS
" -fdiagnostics-show-option"
7815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -funit-at-a-time" >&5
7816 $as_echo_n "checking whether C compiler handles -funit-at-a-time... " >&6; }
7817 if test "${gl_cv_warn_c__funit_at_a_time+set}" = set; then :
7818 $as_echo_n "(cached) " >&6
7821 gl_save_compiler_FLAGS
="$CFLAGS"
7822 as_fn_append CFLAGS
" -funit-at-a-time"
7823 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7824 /* end confdefs.h. */
7834 if ac_fn_c_try_compile
"$LINENO"; then :
7835 gl_cv_warn_c__funit_at_a_time
=yes
7837 gl_cv_warn_c__funit_at_a_time
=no
7839 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7840 CFLAGS
="$gl_save_compiler_FLAGS"
7843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__funit_at_a_time" >&5
7844 $as_echo "$gl_cv_warn_c__funit_at_a_time" >&6; }
7845 if test "x$gl_cv_warn_c__funit_at_a_time" = x
""yes; then :
7846 as_fn_append WARN_CFLAGS
" -funit-at-a-time"
7852 $as_echo "#define lint 1" >>confdefs.h
7856 $as_echo "#define GNULIB_PORTCHECK 1" >>confdefs.h
7859 # We use a slightly smaller set of warning options for lib/.
7860 # Remove the following and save the result in GNULIB_WARN_CFLAGS.
7862 nw
="$nw -Wunused-macros"
7866 set x
$WARN_CFLAGS; shift
7870 *" $gl_warn_item "*)
7873 gl_warn_set
="$gl_warn_set $gl_warn_item"
7877 GNULIB_WARN_CFLAGS
=$gl_warn_set
7884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7885 $as_echo_n "checking whether ln -s works... " >&6; }
7887 if test "$LN_S" = "ln -s"; then
7888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7889 $as_echo "yes" >&6; }
7891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7892 $as_echo "no, using $LN_S" >&6; }
7896 # Extract the first word of "install-info", so it can be a program name with args.
7897 set dummy install-info
; ac_word
=$2
7898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7899 $as_echo_n "checking for $ac_word... " >&6; }
7900 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
7901 $as_echo_n "(cached) " >&6
7903 case $INSTALL_INFO in
7905 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
7908 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7909 for as_dir
in $PATH$PATH_SEPARATOR/usr
/sbin
$PATH_SEPARATOR/sbin
7912 test -z "$as_dir" && as_dir
=.
7913 for ac_exec_ext
in '' $ac_executable_extensions; do
7914 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7915 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
7916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7923 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
7927 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
7928 if test -n "$INSTALL_INFO"; then
7929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
7930 $as_echo "$INSTALL_INFO" >&6; }
7932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7933 $as_echo "no" >&6; }
7937 # Extract the first word of "gzip", so it can be a program name with args.
7938 set dummy
gzip; 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_GZIP_PROG+set}" = set; then :
7942 $as_echo_n "(cached) " >&6
7946 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
7949 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
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_GZIP_PROG
="$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 GZIP_PROG
=$ac_cv_path_GZIP_PROG
7968 if test -n "$GZIP_PROG"; then
7969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
7970 $as_echo "$GZIP_PROG" >&6; }
7972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7973 $as_echo "no" >&6; }
7978 if test $opsys = gnu-linux
; then
7979 # Extract the first word of "paxctl", so it can be a program name with args.
7980 set dummy paxctl
; ac_word
=$2
7981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7982 $as_echo_n "checking for $ac_word... " >&6; }
7983 if test "${ac_cv_path_PAXCTL+set}" = set; then :
7984 $as_echo_n "(cached) " >&6
7988 ac_cv_path_PAXCTL
="$PAXCTL" # Let the user override the test with a path.
7991 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7992 for as_dir
in $PATH$PATH_SEPARATOR/sbin
$PATH_SEPARATOR/usr
/sbin
7995 test -z "$as_dir" && as_dir
=.
7996 for ac_exec_ext
in '' $ac_executable_extensions; do
7997 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7998 ac_cv_path_PAXCTL
="$as_dir/$ac_word$ac_exec_ext"
7999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8009 PAXCTL
=$ac_cv_path_PAXCTL
8010 if test -n "$PAXCTL"; then
8011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PAXCTL" >&5
8012 $as_echo "$PAXCTL" >&6; }
8014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8015 $as_echo "no" >&6; }
8019 if test "X$PAXCTL" != X
; then
8020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether binaries have a PT_PAX_FLAGS header" >&5
8021 $as_echo_n "checking whether binaries have a PT_PAX_FLAGS header... " >&6; }
8022 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8023 /* end confdefs.h. */
8033 if ac_fn_c_try_link
"$LINENO"; then :
8034 if $PAXCTL -v conftest
$EXEEXT >/dev
/null
2>&1; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8035 $as_echo "yes" >&6; }
8036 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8037 $as_echo "no" >&6; }; PAXCTL
=""; fi
8039 rm -f core conftest.err conftest.
$ac_objext \
8040 conftest
$ac_exeext conftest.
$ac_ext
8044 ## Need makeinfo >= 4.7 (?) to build the manuals.
8045 # Extract the first word of "makeinfo", so it can be a program name with args.
8046 set dummy makeinfo
; ac_word
=$2
8047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8048 $as_echo_n "checking for $ac_word... " >&6; }
8049 if test "${ac_cv_path_MAKEINFO+set}" = set; then :
8050 $as_echo_n "(cached) " >&6
8054 ac_cv_path_MAKEINFO
="$MAKEINFO" # Let the user override the test with a path.
8057 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8061 test -z "$as_dir" && as_dir
=.
8062 for ac_exec_ext
in '' $ac_executable_extensions; do
8063 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8064 ac_cv_path_MAKEINFO
="$as_dir/$ac_word$ac_exec_ext"
8065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8072 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO
="no"
8076 MAKEINFO
=$ac_cv_path_MAKEINFO
8077 if test -n "$MAKEINFO"; then
8078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8079 $as_echo "$MAKEINFO" >&6; }
8081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8082 $as_echo "no" >&6; }
8086 if test "$MAKEINFO" != "no" && \
8087 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
8091 ## Makeinfo is unusual. For a released Emacs, the manuals are
8092 ## pre-built, and not deleted by the normal clean rules. makeinfo is
8093 ## therefore in the category of "special tools" not normally required, which
8094 ## configure does not have to check for (eg autoconf itself).
8095 ## In a Bazaar checkout on the other hand, the manuals are not included.
8096 ## So makeinfo is a requirement to build from Bazaar, and configure
8097 ## should test for it as it does for any other build requirement.
8098 ## We use the presence of $srcdir/info/emacs to distinguish a release,
8099 ## with pre-built manuals, from a Bazaar checkout.
8102 if test "$MAKEINFO" = "no"; then
8104 if test "x${with_makeinfo}" = "xno"; then
8106 elif test ! -e $srcdir/info
/emacs
&& test ! -e $srcdir/info
/emacs.info
; then
8107 as_fn_error
"You do not seem to have makeinfo >= 4.7, and your
8108 source tree does not seem to have pre-built manuals in the \`info' directory.
8109 Either install a suitable version of makeinfo, or re-run configure
8110 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
8116 INFO_OPTS
=--no-split
8121 if test x
$GCC = xyes
; then
8122 test "x$GCC_LINK_TEST_OPTIONS" != x
&& \
8123 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
8125 test "x$NON_GCC_LINK_TEST_OPTIONS" != x
&& \
8126 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
8130 late_LDFLAGS
=$LDFLAGS
8131 if test x
$GCC = xyes
; then
8132 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
8134 LDFLAGS
="$LDFLAGS -znocombreloc"
8137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
8138 $as_echo_n "checking for -znocombreloc... " >&6; }
8139 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8140 /* end confdefs.h. */
8150 if ac_fn_c_try_link
"$LINENO"; then :
8151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8152 $as_echo "yes" >&6; }
8154 LDFLAGS
=$late_LDFLAGS
8155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8156 $as_echo "no" >&6; }
8158 rm -f core conftest.err conftest.
$ac_objext \
8159 conftest
$ac_exeext conftest.
$ac_ext
8162 test "x$CANNOT_DUMP" = "x" && CANNOT_DUMP
=no
8164 your-opsys-here
) CANNOT_DUMP
=yes ;;
8167 test "$CANNOT_DUMP" = "yes" && \
8169 $as_echo "#define CANNOT_DUMP 1" >>confdefs.h
8175 UNEXEC_OBJ
=unexelf.o
8177 # MSDOS uses unexcoff.o
8178 # MSWindows uses unexw32.o
8180 UNEXEC_OBJ
=unexaix.o
8186 UNEXEC_OBJ
=unexmacosx.o
8189 UNEXEC_OBJ
=unexhp9k800.o
8192 # Use the Solaris dldump() function, called from unexsol.c, to dump
8193 # emacs, instead of the generic ELF dump code found in unexelf.c.
8194 # The resulting binary has a complete symbol table, and is better
8195 # for debugging and other observability tools (debuggers, pstack, etc).
8197 # If you encounter a problem using dldump(), please consider sending
8198 # a message to the OpenSolaris tools-linking mailing list:
8199 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
8201 # It is likely that dldump() works with older Solaris too, but this has
8202 # not been tested, so for now this change is for Solaris 10 or newer.
8203 UNEXEC_OBJ
=unexsol.o
8210 ## Let `ld' find image libs and similar things in /usr/local/lib.
8211 ## The system compiler, GCC, has apparently been modified to not
8212 ## look there, contrary to what a stock GCC would do.
8213 ### It's not our place to do this. See bug#10313#17.
8214 ### LD_SWITCH_SYSTEM=-L/usr/local/lib
8219 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
8220 case $host_cpu in mips
*) LD_SWITCH_SYSTEM
="-G 0";; esac
8224 ### It's not our place to do this. See bug#10313#17.
8225 ### LD_SWITCH_SYSTEM="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
8230 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
8231 ## otherwise Emacs dumps core on elf systems.
8232 LD_SWITCH_SYSTEM
="-Z"
8237 ac_link
="$ac_link $LD_SWITCH_SYSTEM"
8239 ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_RPATH,
8240 ## which has not been defined yet. When this was handled with cpp,
8241 ## it was expanded to null when configure sourced the s/*.h file.
8242 ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
8243 ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
8244 ## (or somesuch), but because it is supposed to go at the _front_
8245 ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
8246 ## Compare with the gnu-linux case below, which added to the end
8247 ## of LD_SWITCH_SYSTEM, and so can instead go at the front of
8248 ## LD_SWITCH_SYSTEM_TEMACS.
8251 LD_SWITCH_SYSTEM
="\$(LD_SWITCH_X_SITE_RPATH) $LD_SWITCH_SYSTEM" ;;
8258 ac_fn_c_check_decl
"$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
8259 if test "x$ac_cv_have_decl___ELF__" = x
""yes; then :
8263 if test "$ac_cv_have_decl___ELF__" = "yes"; then
8264 ## With ELF, make sure that all common symbols get allocated to in the
8265 ## data section. Otherwise, the dump of temacs may miss variables in
8266 ## the shared library that have been initialized. For example, with
8267 ## GNU libc, __malloc_initialized would normally be resolved to the
8268 ## shared library's .bss section, which is fatal.
8269 if test "x$GCC" = "xyes"; then
8270 C_SWITCH_MACHINE
="-fno-common"
8272 as_fn_error
"What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
8275 UNEXEC_OBJ
=unexalpha.o
8284 ## Some programs in src produce warnings saying certain subprograms
8285 ## are too complex and need a MAXMEM value greater than 2000 for
8286 ## additional optimization. --nils@exp-math.uni-essen.de
8287 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
8288 C_SWITCH_SYSTEM
="-ma -qmaxmem=4000"
8289 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
8290 ## It is redundant in glibc2, since we define _GNU_SOURCE.
8296 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
8297 aix4-2
) LIBS_SYSTEM
="-lrts -lIM -liconv" ;;
8299 freebsd
) LIBS_SYSTEM
="-lutil" ;;
8301 hpux
*) LIBS_SYSTEM
="-l:libdld.sl" ;;
8303 sol2
*) LIBS_SYSTEM
="-lsocket -lnsl" ;;
8305 ## Motif needs -lgen.
8306 unixware
) LIBS_SYSTEM
="-lsocket -lnsl -lelf -lgen" ;;
8311 ### Make sure subsequent tests use flags consistent with the build flags.
8313 if test x
"${OVERRIDE_CPPFLAGS}" != x
; then
8314 CPPFLAGS
="${OVERRIDE_CPPFLAGS}"
8316 CPPFLAGS
="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
8319 # Suppress obsolescent Autoconf test for size_t; Emacs assumes C89 or better.
8321 # Likewise for obsolescent test for uid_t, gid_t; Emacs assumes them.
8328 SYSTEM_TYPE
=`echo $opsys | sed -e 's/[0-9].*//' -e 's|-|/|'`
8333 START_FILES
='pre-crt0.o'
8336 ## Adding -lm confuses the dynamic linker, so omit it.
8338 START_FILES
='pre-crt0.o'
8341 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
8342 START_FILES
='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
8343 SYSTEM_TYPE
=berkeley-unix
8345 gnu-linux | gnu-kfreebsd
)
8346 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
8347 START_FILES
='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
8349 hpux10-20 | hpux11
)
8351 START_FILES
='pre-crt0.o $(CRT_DIR)/crt0.o'
8354 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
8355 START_FILES
='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
8356 SYSTEM_TYPE
=berkeley-unix
8360 SYSTEM_TYPE
=usg-unix-v
8368 cat >>confdefs.h
<<_ACEOF
8369 #define SYSTEM_TYPE "$SYSTEM_TYPE"
8375 for file in x
$LIB_STANDARD $START_FILES; do
8377 *CRT_DIR
*) crt_files
="$crt_files `echo $file | sed -e 's|.*/||'`" ;;
8381 if test "x$crt_files" != x
; then
8383 ## If user specified a crt-dir, use that unconditionally.
8386 if test "X$CRT_DIR" = "X"; then
8388 CRT_DIR
=/usr
/lib
# default
8390 case "$canonical" in
8391 x86_64-
*-linux-gnu* | s390x-
*-linux-gnu*)
8392 ## On x86-64 and s390x GNU/Linux distributions, the standard library
8393 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
8394 ## For anything else (eg /usr/lib32), it is up the user to specify
8395 ## the location (bug#5655).
8396 ## Test for crtn.o, not just the directory, because sometimes the
8397 ## directory exists but does not have the relevant files (bug#1287).
8398 ## FIXME better to test for binary compatibility somehow.
8399 test -e /usr
/lib64
/crtn.o
&& CRT_DIR
=/usr
/lib64
8402 powerpc64-
*-linux-gnu* | sparc64-
*-linux-gnu*) CRT_DIR
=/usr
/lib64
;;
8406 hpux10-20
) CRT_DIR
=/lib
;;
8409 test "x${GCC}" = xyes
&& crt_gcc
=yes
8415 for file in $crt_files; do
8417 ## If we're using gcc, try to determine it automatically by asking
8418 ## gcc. [If this doesn't work, CRT_DIR will remain at the
8419 ## system-dependent default from above.]
8420 if test $crt_gcc = yes && test ! -e $CRT_DIR/$file; then
8422 crt_file
=`$CC --print-file-name=$file 2>/dev/null`
8425 CRT_DIR
=`$as_dirname -- "$crt_file" ||
8426 $as_expr X"$crt_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8427 X"$crt_file" : 'X\(//\)[^/]' \| \
8428 X"$crt_file" : 'X\(//\)$' \| \
8429 X"$crt_file" : 'X\(/\)' \| . 2>/dev/null ||
8430 $as_echo X"$crt_file" |
8431 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8454 test -e $CRT_DIR/$file || crt_missing
="$crt_missing $file"
8457 test "x$crt_missing" = x || \
8458 as_fn_error
"Required file(s) not found:$crt_missing
8459 Try using the --with-crt-dir option." "$LINENO" 5
8461 fi # crt_files != ""
8467 if test -f $CRT_DIR/crti.o
; then
8469 test -f $CRT_DIR/crtn.o || \
8470 as_fn_error
"Required file not found: crtn.o" "$LINENO" 5
8472 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
8473 START_FILES
='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
8479 pre_PKG_CONFIG_CFLAGS
=$CFLAGS
8480 pre_PKG_CONFIG_LIBS
=$LIBS
8482 # Extract the first word of "pkg-config", so it can be a program name with args.
8483 set dummy pkg-config
; ac_word
=$2
8484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8485 $as_echo_n "checking for $ac_word... " >&6; }
8486 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8487 $as_echo_n "(cached) " >&6
8491 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
8494 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8498 test -z "$as_dir" && as_dir
=.
8499 for ac_exec_ext
in '' $ac_executable_extensions; do
8500 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8501 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
8502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8509 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
8513 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
8514 if test -n "$PKG_CONFIG"; then
8515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8516 $as_echo "$PKG_CONFIG" >&6; }
8518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8519 $as_echo "no" >&6; }
8527 if test "${with_sound}" != "no"; then
8528 # Sound support for GNU/Linux and the free BSDs.
8529 for ac_header
in machine
/soundcard.h sys
/soundcard.h soundcard.h
8531 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8532 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8533 eval as_val
=\$
$as_ac_Header
8534 if test "x$as_val" = x
""yes; then :
8535 cat >>confdefs.h
<<_ACEOF
8536 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8538 have_sound_header
=yes
8543 # Emulation library used on NetBSD.
8544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
8545 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
8546 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
8547 $as_echo_n "(cached) " >&6
8549 ac_check_lib_save_LIBS
=$LIBS
8550 LIBS
="-lossaudio $LIBS"
8551 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8552 /* end confdefs.h. */
8554 /* Override any GCC internal prototype to avoid an error.
8555 Use char because int might match the return type of a GCC
8556 builtin and then its argument prototype would still apply. */
8564 return _oss_ioctl ();
8569 if ac_fn_c_try_link
"$LINENO"; then :
8570 ac_cv_lib_ossaudio__oss_ioctl
=yes
8572 ac_cv_lib_ossaudio__oss_ioctl
=no
8574 rm -f core conftest.err conftest.
$ac_objext \
8575 conftest
$ac_exeext conftest.
$ac_ext
8576 LIBS
=$ac_check_lib_save_LIBS
8578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
8579 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
8580 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x
""yes; then :
8589 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
8593 if test "$PKG_CONFIG" = "no" ; then
8596 PKG_CONFIG_MIN_VERSION
=0.9.0
8597 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
8599 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
8601 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5 &&
8602 ALSA_CFLAGS
=`$PKG_CONFIG --cflags "$ALSA_MODULES" 2>&5` &&
8603 ALSA_LIBS
=`$PKG_CONFIG --libs "$ALSA_MODULES" 2>&5`; then
8610 ALSA_CFLAGS
=`$as_echo "$ALSA_CFLAGS" | sed -e "$edit_cflags"`
8611 ALSA_LIBS
=`$as_echo "$ALSA_LIBS" | sed -e 's,///*,/,g'`
8612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$ALSA_CFLAGS' LIBS='$ALSA_LIBS'" >&5
8613 $as_echo "yes CFLAGS='$ALSA_CFLAGS' LIBS='$ALSA_LIBS'" >&6; }
8616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8617 $as_echo "no" >&6; }
8620 ## If we have a custom action on failure, don't print errors, but
8621 ## do set a variable so people can do so. Do it in a subshell
8622 ## to capture any diagnostics in invoking pkg-config.
8623 ALSA_PKG_ERRORS
=`($PKG_CONFIG --print-errors "$ALSA_MODULES") 2>&1`
8630 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8631 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8635 if test $succeeded = yes; then
8641 if test $HAVE_ALSA = yes; then
8642 SAVE_CFLAGS
="$CFLAGS"
8644 CFLAGS
="$ALSA_CFLAGS $CFLAGS"
8645 LIBS
="$ALSA_LIBS $LIBS"
8646 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8647 /* end confdefs.h. */
8648 #include <asoundlib.h>
8652 snd_lib_error_set_handler (0);
8657 if ac_fn_c_try_compile
"$LINENO"; then :
8658 emacs_alsa_normal
=yes
8660 emacs_alsa_normal
=no
8662 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8663 if test "$emacs_alsa_normal" != yes; then
8664 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8665 /* end confdefs.h. */
8666 #include <alsa/asoundlib.h>
8670 snd_lib_error_set_handler (0);
8675 if ac_fn_c_try_compile
"$LINENO"; then :
8676 emacs_alsa_subdir
=yes
8678 emacs_alsa_subdir
=no
8680 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8681 if test "$emacs_alsa_subdir" != yes; then
8682 as_fn_error
"pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
8684 ALSA_CFLAGS
="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
8687 CFLAGS
="$SAVE_CFLAGS"
8689 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
8690 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
8692 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
8696 if test x
$have_sound_header = xyes ||
test $HAVE_ALSA = yes; then
8698 gnu-linux|freebsd|netbsd
)
8700 $as_echo "#define HAVE_SOUND 1" >>confdefs.h
8712 for ac_header
in $ac_header_list
8714 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8715 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8717 eval as_val
=\$
$as_ac_Header
8718 if test "x$as_val" = x
""yes; then :
8719 cat >>confdefs.h
<<_ACEOF
8720 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
8756 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
8757 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8758 /* end confdefs.h. */
8759 #include <sys/personality.h>
8763 personality (PER_LINUX32)
8768 if ac_fn_c_try_compile
"$LINENO"; then :
8769 emacs_cv_personality_linux32
=yes
8771 emacs_cv_personality_linux32
=no
8773 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
8775 $as_echo "$emacs_cv_personality_linux32" >&6; }
8777 if test $emacs_cv_personality_linux32 = yes; then
8779 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
8783 for ac_header
in term.h
8785 ac_fn_c_check_header_preproc
"$LINENO" "term.h" "ac_cv_header_term_h"
8786 if test "x$ac_cv_header_term_h" = x
""yes; then :
8787 cat >>confdefs.h
<<_ACEOF
8788 #define HAVE_TERM_H 1
8795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8796 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8797 if test "${ac_cv_header_time+set}" = set; then :
8798 $as_echo_n "(cached) " >&6
8800 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8801 /* end confdefs.h. */
8802 #include <sys/types.h>
8803 #include <sys/time.h>
8809 if ((struct tm *) 0)
8815 if ac_fn_c_try_compile
"$LINENO"; then :
8816 ac_cv_header_time
=yes
8818 ac_cv_header_time
=no
8820 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8823 $as_echo "$ac_cv_header_time" >&6; }
8824 if test $ac_cv_header_time = yes; then
8826 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8830 ac_fn_c_check_decl
"$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "#include <signal.h>
8833 if test "x$ac_cv_have_decl_sys_siglist" = x
""yes; then :
8839 cat >>confdefs.h
<<_ACEOF
8840 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
8843 if test $ac_cv_have_decl_sys_siglist != yes; then
8844 # For Tru64, at least:
8845 ac_fn_c_check_decl
"$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "#include <signal.h>
8848 if test "x$ac_cv_have_decl___sys_siglist" = x
""yes; then :
8854 cat >>confdefs.h
<<_ACEOF
8855 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
8858 if test $ac_cv_have_decl___sys_siglist = yes; then
8860 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
8864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8865 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8866 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8867 $as_echo_n "(cached) " >&6
8869 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8870 /* end confdefs.h. */
8871 #include <sys/types.h>
8872 #include <sys/wait.h>
8874 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8877 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8885 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8890 if ac_fn_c_try_compile
"$LINENO"; then :
8891 ac_cv_header_sys_wait_h
=yes
8893 ac_cv_header_sys_wait_h
=no
8895 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8898 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8899 if test $ac_cv_header_sys_wait_h = yes; then
8901 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
8907 $as_echo_n "checking for speed_t... " >&6; }
8908 if test "${emacs_cv_speed_t+set}" = set; then :
8909 $as_echo_n "(cached) " >&6
8911 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8912 /* end confdefs.h. */
8913 #include <termios.h>
8922 if ac_fn_c_try_compile
"$LINENO"; then :
8923 emacs_cv_speed_t
=yes
8927 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
8930 $as_echo "$emacs_cv_speed_t" >&6; }
8931 if test $emacs_cv_speed_t = yes; then
8933 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
8940 for ac_header
in net
/if.h
8942 ac_fn_c_check_header_compile
"$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
8943 #if HAVE_SYS_SOCKET_H
8944 #include <sys/socket.h>
8947 if test "x$ac_cv_header_net_if_h" = x
""yes; then :
8948 cat >>confdefs.h
<<_ACEOF
8949 #define HAVE_NET_IF_H 1
8956 for ac_header
in ifaddrs.h
8958 ac_fn_c_check_header_compile
"$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default
8959 #if HAVE_SYS_SOCKET_H
8960 #include <sys/socket.h>
8963 if test "x$ac_cv_header_ifaddrs_h" = x
""yes; then :
8964 cat >>confdefs.h
<<_ACEOF
8965 #define HAVE_IFADDRS_H 1
8972 for ac_header
in net
/if_dl.h
8974 ac_fn_c_check_header_compile
"$LINENO" "net/if_dl.h" "ac_cv_header_net_if_dl_h" "$ac_includes_default
8975 #if HAVE_SYS_SOCKET_H
8976 #include <sys/socket.h>
8979 if test "x$ac_cv_header_net_if_dl_h" = x
""yes; then :
8980 cat >>confdefs.h
<<_ACEOF
8981 #define HAVE_NET_IF_DL_H 1
8989 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
8990 #if HAVE_SYS_SOCKET_H
8991 #include <sys/socket.h>
8997 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x
""yes; then :
8999 cat >>confdefs.h
<<_ACEOF
9000 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
9005 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
9006 #if HAVE_SYS_SOCKET_H
9007 #include <sys/socket.h>
9013 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x
""yes; then :
9015 cat >>confdefs.h
<<_ACEOF
9016 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
9021 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
9022 #if HAVE_SYS_SOCKET_H
9023 #include <sys/socket.h>
9029 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x
""yes; then :
9031 cat >>confdefs.h
<<_ACEOF
9032 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
9037 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
9038 #if HAVE_SYS_SOCKET_H
9039 #include <sys/socket.h>
9045 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x
""yes; then :
9047 cat >>confdefs.h
<<_ACEOF
9048 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
9053 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
9054 #if HAVE_SYS_SOCKET_H
9055 #include <sys/socket.h>
9061 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x
""yes; then :
9063 cat >>confdefs.h
<<_ACEOF
9064 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
9069 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_addr.sa_len" "ac_cv_member_struct_ifreq_ifr_addr_sa_len" "$ac_includes_default
9070 #if HAVE_SYS_SOCKET_H
9071 #include <sys/socket.h>
9077 if test "x$ac_cv_member_struct_ifreq_ifr_addr_sa_len" = x
""yes; then :
9079 cat >>confdefs.h
<<_ACEOF
9080 #define HAVE_STRUCT_IFREQ_IFR_ADDR_SA_LEN 1
9092 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
9093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
9094 $as_echo_n "checking whether we are using GNU Make... " >&6; }
9096 testval
=`${MAKE-make} --version 2>/dev/null | grep 'GNU Make'`
9097 if test "x$testval" != x
; then
9100 ac_enable_autodepend
=no
9102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
9103 $as_echo "$HAVE_GNU_MAKE" >&6; }
9104 if test $HAVE_GNU_MAKE = yes; then
9105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
9106 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
9107 SAVE_CFLAGS
="$CFLAGS"
9108 CFLAGS
="$CFLAGS -MMD -MF deps.d -MP"
9109 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9110 /* end confdefs.h. */
9120 if ac_fn_c_try_compile
"$LINENO"; then :
9123 ac_enable_autodepend
=no
9125 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9126 CFLAGS
="$SAVE_CFLAGS"
9127 test -f deps.d || ac_enable_autodepend
=no
9129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
9130 $as_echo "$ac_enable_autodepend" >&6; }
9132 if test $ac_enable_autodepend = yes; then
9133 DEPFLAGS
='-MMD -MF ${DEPDIR}/$*.d -MP'
9134 ## MKDIR_P is documented (see AC_PROG_MKDIR_P) to be parallel-safe.
9135 MKDEPDIR
='${MKDIR_P} ${DEPDIR}'
9136 deps_frag
=autodeps.mk
9139 deps_frag
=$srcdir/src
/$deps_frag
9145 lisp_frag
=$srcdir/src
/lisp.mk
9149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
9150 $as_echo_n "checking for long file names... " >&6; }
9151 if test "${ac_cv_sys_long_file_names+set}" = set; then :
9152 $as_echo_n "(cached) " >&6
9154 ac_cv_sys_long_file_names
=yes
9155 # Test for long file names in all the places we know might matter:
9156 # . the current directory, where building will happen
9157 # $prefix/lib where we will be installing things
9158 # $exec_prefix/lib likewise
9159 # $TMPDIR if set, where it might want to write temporary files
9160 # /tmp where it might want to write temporary files
9163 for ac_dir
in .
"$TMPDIR" /tmp
/var
/tmp
/usr
/tmp
"$prefix/lib" "$exec_prefix/lib"; do
9164 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9165 # in the usual case where exec_prefix is '${prefix}'.
9167 . |
/* | ?
:[\\/]*) ;; #(
9170 test -w "$ac_dir/." ||
continue # It is less confusing to not echo anything here.
9171 ac_xdir
=$ac_dir/cf$$
9172 (umask 077 && mkdir
"$ac_xdir" 2>/dev
/null
) ||
continue
9173 ac_tf1
=$ac_xdir/conftest9012345
9174 ac_tf2
=$ac_xdir/conftest9012346
9175 touch "$ac_tf1" 2>/dev
/null
&& test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9176 ac_cv_sys_long_file_names
=no
9177 rm -f -r "$ac_xdir" 2>/dev
/null
9178 test $ac_cv_sys_long_file_names = no
&& break
9181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
9182 $as_echo "$ac_cv_sys_long_file_names" >&6; }
9183 if test $ac_cv_sys_long_file_names = yes; then
9185 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
9190 #### Choose a window system.
9192 ## We leave window_system equal to none if
9193 ## we end up building without one. Any new window system should
9194 ## set window_system to an appropriate value and add objects to
9195 ## window-system-specific substs.
9198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
9199 $as_echo_n "checking for X... " >&6; }
9202 # Check whether --with-x was given.
9203 if test "${with_x+set}" = set; then :
9207 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9208 if test "x$with_x" = xno
; then
9209 # The user explicitly disabled X.
9212 case $x_includes,$x_libraries in #(
9213 *\'*) as_fn_error
"cannot use X directory names containing '" "$LINENO" 5;; #(
9214 *,NONE | NONE
,*) if test "${ac_cv_have_x+set}" = set; then :
9215 $as_echo_n "(cached) " >&6
9217 # One or both of the vars are not set, and there is no cached value.
9218 ac_x_includes
=no ac_x_libraries
=no
9219 rm -f -r conftest.dir
9220 if mkdir conftest.dir
; then
9222 cat >Imakefile
<<'_ACEOF'
9224 @echo incroot='${INCROOT}'
9226 @echo usrlibdir='${USRLIBDIR}'
9228 @echo libdir='${LIBDIR}'
9230 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
9231 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9232 for ac_var
in incroot usrlibdir libdir
; do
9233 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9235 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9236 for ac_extension
in a so sl dylib la dll
; do
9237 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9238 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9239 ac_im_usrlibdir
=$ac_im_libdir; break
9242 # Screen out bogus values from the imake configuration. They are
9243 # bogus both because they are the default anyway, and because
9244 # using them would break gcc on systems where it needs fixed includes.
9245 case $ac_im_incroot in
9246 /usr
/include
) ac_x_includes
= ;;
9247 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
9249 case $ac_im_usrlibdir in
9250 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
9251 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
9255 rm -f -r conftest.dir
9258 # Standard set of common directories for X headers.
9259 # Check X11 before X11Rn because it is often a symlink to the current release.
9273 /usr/local/X11/include
9274 /usr/local/X11R7/include
9275 /usr/local/X11R6/include
9276 /usr/local/X11R5/include
9277 /usr/local/X11R4/include
9279 /usr/local/include/X11
9280 /usr/local/include/X11R7
9281 /usr/local/include/X11R6
9282 /usr/local/include/X11R5
9283 /usr/local/include/X11R4
9287 /usr/XFree86/include/X11
9291 /usr/unsupported/include
9293 /usr/local/x11r5/include
9294 /usr/lpp/Xamples/include
9296 /usr/openwin/include
9297 /usr/openwin/share/include'
9299 if test "$ac_x_includes" = no
; then
9300 # Guess where to find include files, by looking for Xlib.h.
9301 # First, try using that file with no special directory specified.
9302 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9303 /* end confdefs.h. */
9304 #include <X11/Xlib.h>
9306 if ac_fn_c_try_cpp
"$LINENO"; then :
9307 # We can compile using X headers with no special include directory.
9310 for ac_dir
in $ac_x_header_dirs; do
9311 if test -r "$ac_dir/X11/Xlib.h"; then
9312 ac_x_includes
=$ac_dir
9317 rm -f conftest.err conftest.
$ac_ext
9318 fi # $ac_x_includes = no
9320 if test "$ac_x_libraries" = no
; then
9321 # Check for the libraries.
9322 # See if we find them without any special options.
9323 # Don't add to $LIBS permanently.
9326 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9327 /* end confdefs.h. */
9328 #include <X11/Xlib.h>
9337 if ac_fn_c_try_link
"$LINENO"; then :
9339 # We can link X programs with no special library path.
9343 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9345 # Don't even attempt the hair of trying to link an X program!
9346 for ac_extension
in a so sl dylib la dll
; do
9347 if test -r "$ac_dir/libX11.$ac_extension"; then
9348 ac_x_libraries
=$ac_dir
9354 rm -f core conftest.err conftest.
$ac_objext \
9355 conftest
$ac_exeext conftest.
$ac_ext
9356 fi # $ac_x_libraries = no
9358 case $ac_x_includes,$ac_x_libraries in #(
9360 # Didn't find X, or a directory has "'" in its name.
9361 ac_cv_have_x
="have_x=no";; #(
9363 # Record where we found X for the cache.
9364 ac_cv_have_x
="have_x=yes\
9365 ac_x_includes='$ac_x_includes'\
9366 ac_x_libraries='$ac_x_libraries'"
9372 eval "$ac_cv_have_x"
9375 if test "$have_x" != yes; then
9376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
9377 $as_echo "$have_x" >&6; }
9380 # If each of the values was on the command line, it overrides each guess.
9381 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
9382 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
9383 # Update the cache value to reflect the command line values.
9384 ac_cv_have_x
="have_x=yes\
9385 ac_x_includes='$x_includes'\
9386 ac_x_libraries='$x_libraries'"
9387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
9388 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
9391 if test "$no_x" != yes; then
9395 LD_SWITCH_X_SITE_RPATH
=
9396 if test "${x_libraries}" != NONE
; then
9397 if test -n "${x_libraries}"; then
9398 LD_SWITCH_X_SITE
=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9399 LD_SWITCH_X_SITE_RPATH
=-Wl,-rpath,`echo ${x_libraries} | sed -e "s/:/ -Wl,-rpath,/g"`
9401 x_default_search_path
=""
9402 x_search_path
=${x_libraries}
9403 if test -z "${x_search_path}"; then
9404 x_search_path
=/usr
/lib
9406 for x_library
in `echo ${x_search_path}: | \
9407 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9409 ${x_library}/X11/%L/%T/%N%C%S:\
9410 ${x_library}/X11/%l/%T/%N%C%S:\
9411 ${x_library}/X11/%T/%N%C%S:\
9412 ${x_library}/X11/%L/%T/%N%S:\
9413 ${x_library}/X11/%l/%T/%N%S:\
9414 ${x_library}/X11/%T/%N%S"
9415 if test x
"${x_default_search_path}" = x
; then
9416 x_default_search_path
=${x_search_path}
9418 x_default_search_path
="${x_search_path}:${x_default_search_path}"
9424 if test "${x_includes}" != NONE
&& test -n "${x_includes}"; then
9425 C_SWITCH_X_SITE
="$isystem"`echo ${x_includes} | sed -e "s/:/ $isystem/g"`
9428 if test x
"${x_includes}" = x
; then
9429 bitmapdir
=/usr
/include
/X11
/bitmaps
9431 # accumulate include directories that have X11 bitmap subdirectories
9433 for bmd
in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9434 if test -d "${bmd}/X11/bitmaps"; then
9435 bmd_acc
="${bmd_acc}:${bmd}/X11/bitmaps"
9437 if test -d "${bmd}/bitmaps"; then
9438 bmd_acc
="${bmd_acc}:${bmd}/bitmaps"
9441 if test ${bmd_acc} != "dummyval"; then
9442 bitmapdir
=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9449 tmp_CPPFLAGS
="$CPPFLAGS"
9450 tmp_CFLAGS
="$CFLAGS"
9451 CPPFLAGS
="$CPPFLAGS -x objective-c"
9452 CFLAGS
="$CFLAGS -x objective-c"
9455 if test "${with_ns}" != no
; then
9456 if test "${opsys}" = darwin
; then
9458 ns_appdir
=`pwd`/nextstep
/Emacs.app
9459 ns_appbindir
=${ns_appdir}/Contents
/MacOS
9460 ns_appresdir
=${ns_appdir}/Contents
/Resources
9461 ns_appsrc
=Cocoa
/Emacs.base
9462 elif test -f $GNUSTEP_CONFIG_FILE; then
9464 ns_appdir
=`pwd`/nextstep
/Emacs.app
9465 ns_appbindir
=${ns_appdir}
9466 ns_appresdir
=${ns_appdir}/Resources
9467 ns_appsrc
=GNUstep
/Emacs.base
9468 GNUSTEP_SYSTEM_HEADERS
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9469 GNUSTEP_SYSTEM_LIBRARIES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9470 GNUSTEP_LOCAL_HEADERS
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
9471 GNUSTEP_LOCAL_LIBRARIES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
9472 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
9473 GNUSTEP_LOCAL_HEADERS
="-I${GNUSTEP_LOCAL_HEADERS}"
9474 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
9475 GNUSTEP_LOCAL_LIBRARIES
="-L${GNUSTEP_LOCAL_LIBRARIES}"
9476 CPPFLAGS
="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9477 CFLAGS
="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9478 LDFLAGS
="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
9479 LIBS_GNUSTEP
="-lgnustep-gui -lgnustep-base -lobjc -lpthread"
9482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS" >&5
9483 $as_echo_n "checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS... " >&6; }
9484 if test "${emacs_cv_objc_exceptions+set}" = set; then :
9485 $as_echo_n "(cached) " >&6
9487 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9488 /* end confdefs.h. */
9489 #include <GNUstepBase/GSConfig.h>
9493 #if defined BASE_NATIVE_OBJC_EXCEPTIONS && BASE_NATIVE_OBJC_EXCEPTIONS > 0
9502 if ac_fn_c_try_compile
"$LINENO"; then :
9503 emacs_cv_objc_exceptions
=yes
9505 emacs_cv_objc_exceptions
=no
9507 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_objc_exceptions" >&5
9510 $as_echo "$emacs_cv_objc_exceptions" >&6; }
9511 if test $emacs_cv_objc_exceptions = yes; then
9513 $as_echo "#define _NATIVE_OBJC_EXCEPTIONS 1" >>confdefs.h
9515 GNU_OBJC_CFLAGS
="-fobjc-exceptions"
9519 CFLAGS
="$CFLAGS $GNU_OBJC_CFLAGS"
9521 ac_fn_c_check_header_mongrel
"$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
9522 if test "x$ac_cv_header_AppKit_AppKit_h" = x
""yes; then :
9525 as_fn_error
"\`--with-ns' was specified, but the include
9526 files are missing or cannot be compiled." "$LINENO" 5
9531 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9532 /* end confdefs.h. */
9533 #include <AppKit/AppKit.h>
9538 #ifdef MAC_OS_X_VERSION_MAX_ALLOWED
9539 #if MAC_OS_X_VERSION_MAX_ALLOWED >= 1040
9542 #error "OSX 10.4 or newer required"
9550 if ac_fn_c_try_compile
"$LINENO"; then :
9555 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9556 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9557 /* end confdefs.h. */
9558 #include <Foundation/NSObjCRuntime.h>
9567 if ac_fn_c_try_compile
"$LINENO"; then :
9568 ns_have_nsinteger
=yes
9570 ns_have_nsinteger
=no
9572 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9573 if test $ns_osx_have_104 = no
; then
9574 as_fn_error
"\`OSX 10.4 or newer is required'" "$LINENO" 5;
9576 if test $ns_have_nsinteger = yes; then
9578 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
9585 INSTALL_ARCH_INDEP_EXTRA
=install-etc
9586 ns_self_contained
=no
9589 if test "${HAVE_NS}" = yes; then
9590 if test "$with_toolkit_scroll_bars" = "no"; then
9591 as_fn_error
"Non-toolkit scroll bars are not implemented for Nextstep." "$LINENO" 5
9594 window_system
=nextstep
9595 # set up packaging dirs
9596 if test "${EN_NS_SELF_CONTAINED}" = yes; then
9597 ns_self_contained
=yes
9598 prefix
=${ns_appresdir}
9599 exec_prefix
=${ns_appbindir}
9600 libexecdir
="\${ns_appbindir}/libexec"
9601 archlibdir
="\${ns_appbindir}/libexec"
9602 docdir
="\${ns_appresdir}/etc"
9603 etcdir
="\${ns_appresdir}/etc"
9604 infodir
="\${ns_appresdir}/info"
9605 mandir
="\${ns_appresdir}/man"
9606 lispdir
="\${ns_appresdir}/lisp"
9607 leimdir
="\${ns_appresdir}/leim"
9608 INSTALL_ARCH_INDEP_EXTRA
=
9610 NS_OBJC_OBJ
="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o"
9612 CFLAGS
="$tmp_CFLAGS"
9613 CPPFLAGS
="$tmp_CPPFLAGS"
9623 if test "${with_w32}" != no
; then
9624 if test "${opsys}" != "cygwin"; then
9625 as_fn_error
"Using w32 with an autotools build is only supported for Cygwin." "$LINENO" 5
9627 ac_fn_c_check_header_mongrel
"$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
9628 if test "x$ac_cv_header_windows_h" = x
""yes; then :
9631 as_fn_error
"\`--with-w32' was specified, but windows.h
9632 cannot be found." "$LINENO" 5
9637 $as_echo "#define HAVE_NTGUI 1" >>confdefs.h
9639 W32_OBJ
="w32fns.o w32menu.o w32reg.o w32font.o w32term.o"
9640 W32_OBJ
="$W32_OBJ w32xfns.o w32select.o w32uniscribe.o"
9641 W32_LIBS
="$W32_LIBS -lkernel32 -luser32 -lgdi32 -lole32 -lcomdlg32"
9642 W32_LIBS
="$W32_LIBS -lusp10 -lcomctl32 -lwinspool"
9647 if test "${HAVE_W32}" = "yes"; then
9652 ## $window_system is now set to the window system we will
9660 case "${window_system}" in
9665 case "${with_x_toolkit}" in
9666 athena | lucid
) USE_X_TOOLKIT
=LUCID
;;
9667 motif
) USE_X_TOOLKIT
=MOTIF
;;
9669 term_header
=gtkutil.h
9670 USE_X_TOOLKIT
=none
;;
9671 gtk2
) with_gtk2
=yes
9672 term_header
=gtkutil.h
9673 USE_X_TOOLKIT
=none
;;
9674 gtk3
) with_gtk3
=yes
9675 term_header
=gtkutil.h
9676 USE_X_TOOLKIT
=none
;;
9677 no
) USE_X_TOOLKIT
=none
;;
9678 * ) USE_X_TOOLKIT
=maybe
;;
9682 term_header
=nsterm.h
9685 term_header
=w32term.h
9689 if test -n "${term_header}"; then
9691 cat >>confdefs.h
<<_ACEOF
9692 #define TERM_HEADER "${term_header}"
9697 if test "$window_system" = none
&& test "X$with_x" != "Xno"; then
9698 # Extract the first word of "X", so it can be a program name with args.
9699 set dummy X
; ac_word
=$2
9700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9701 $as_echo_n "checking for $ac_word... " >&6; }
9702 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then :
9703 $as_echo_n "(cached) " >&6
9705 if test -n "$HAVE_XSERVER"; then
9706 ac_cv_prog_HAVE_XSERVER
="$HAVE_XSERVER" # Let the user override the test.
9708 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9712 test -z "$as_dir" && as_dir
=.
9713 for ac_exec_ext
in '' $ac_executable_extensions; do
9714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9715 ac_cv_prog_HAVE_XSERVER
="true"
9716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9723 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER
="false"
9726 HAVE_XSERVER
=$ac_cv_prog_HAVE_XSERVER
9727 if test -n "$HAVE_XSERVER"; then
9728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
9729 $as_echo "$HAVE_XSERVER" >&6; }
9731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9732 $as_echo "no" >&6; }
9736 if test "$HAVE_XSERVER" = true ||
9737 test -n "$DISPLAY" ||
9738 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
9739 as_fn_error
"You seem to be running X, but no X development libraries
9740 were found. You should install the relevant development files for X
9741 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9742 sure you have development files for image handling, i.e.
9743 tiff, gif, jpeg, png and xpm.
9744 If you are sure you want Emacs compiled without X window support, pass
9746 to configure." "$LINENO" 5
9750 ### If we're using X11, we should use the X menu package.
9753 yes ) HAVE_MENUS
=yes ;;
9756 # Does the opsystem file prohibit the use of the GNU malloc?
9757 # Assume not, until told otherwise.
9760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc is Doug Lea style" >&5
9761 $as_echo_n "checking whether malloc is Doug Lea style... " >&6; }
9762 if test "${emacs_cv_var_doug_lea_malloc+set}" = set; then :
9763 $as_echo_n "(cached) " >&6
9765 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9766 /* end confdefs.h. */
9768 static void hook (void) {}
9772 malloc_set_state (malloc_get_state ());
9773 __after_morecore_hook = hook;
9774 __malloc_initialize_hook = hook;
9779 if ac_fn_c_try_link
"$LINENO"; then :
9780 emacs_cv_var_doug_lea_malloc
=yes
9782 emacs_cv_var_doug_lea_malloc
=no
9784 rm -f core conftest.err conftest.
$ac_objext \
9785 conftest
$ac_exeext conftest.
$ac_ext
9787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var_doug_lea_malloc" >&5
9788 $as_echo "$emacs_cv_var_doug_lea_malloc" >&6; }
9789 doug_lea_malloc
=$emacs_cv_var_doug_lea_malloc
9794 ## darwin ld insists on the use of malloc routines in the System framework.
9795 darwin|sol2-10
) system_malloc
=yes ;;
9798 if test "${system_malloc}" = "yes"; then
9800 $as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
9804 (The GNU allocators don't work with this system configuration.)"
9808 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ
=gmalloc.o
9809 VMLIMIT_OBJ
=vm-limit.o
9814 if test "$doug_lea_malloc" = "yes" ; then
9815 if test "$GNU_MALLOC" = yes ; then
9817 (Using Doug Lea's new malloc from the GNU C Library.)"
9820 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
9823 ## Use mmap directly for allocating larger buffers.
9824 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
9825 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
9826 ## Does the AC_FUNC_MMAP test below make this check unnecessary?
9828 gnu
*) REL_ALLOC
=no
;;
9832 if test x
"${REL_ALLOC}" = x
; then
9833 REL_ALLOC
=${GNU_MALLOC}
9836 use_mmap_for_buffers
=no
9838 cygwin|freebsd|irix6-5
) use_mmap_for_buffers
=yes ;;
9848 for ac_func
in getpagesize
9850 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
9851 if test "x$ac_cv_func_getpagesize" = x
""yes; then :
9852 cat >>confdefs.h
<<_ACEOF
9853 #define HAVE_GETPAGESIZE 1
9859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
9860 $as_echo_n "checking for working mmap... " >&6; }
9861 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
9862 $as_echo_n "(cached) " >&6
9864 if test "$cross_compiling" = yes; then :
9865 ac_cv_func_mmap_fixed_mapped
=no
9867 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9868 /* end confdefs.h. */
9869 $ac_includes_default
9870 /* malloc might have been renamed as rpl_malloc. */
9873 /* Thanks to Mike Haertel and Jim Avera for this test.
9874 Here is a matrix of mmap possibilities:
9875 mmap private not fixed
9876 mmap private fixed at somewhere currently unmapped
9877 mmap private fixed at somewhere already mapped
9878 mmap shared not fixed
9879 mmap shared fixed at somewhere currently unmapped
9880 mmap shared fixed at somewhere already mapped
9881 For private mappings, we should verify that changes cannot be read()
9882 back from the file, nor mmap's back from the file at a different
9883 address. (There have been systems where private was not correctly
9884 implemented like the infamous i386 svr4.0, and systems where the
9885 VM page cache was not coherent with the file system buffer cache
9886 like early versions of FreeBSD and possibly contemporary NetBSD.)
9887 For shared mappings, we should conversely verify that changes get
9888 propagated back to all the places they're supposed to be.
9890 Grep wants private fixed already mapped.
9891 The main things grep needs to know about mmap are:
9892 * does it exist and is it safe to write into the mmap'd area
9893 * how to use it (BSD variants) */
9896 #include <sys/mman.h>
9898 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
9902 /* This mess was copied from the GNU getpagesize.h. */
9903 #ifndef HAVE_GETPAGESIZE
9904 # ifdef _SC_PAGESIZE
9905 # define getpagesize() sysconf(_SC_PAGESIZE)
9906 # else /* no _SC_PAGESIZE */
9907 # ifdef HAVE_SYS_PARAM_H
9908 # include <sys/param.h>
9909 # ifdef EXEC_PAGESIZE
9910 # define getpagesize() EXEC_PAGESIZE
9911 # else /* no EXEC_PAGESIZE */
9913 # define getpagesize() NBPG * CLSIZE
9916 # endif /* no CLSIZE */
9917 # else /* no NBPG */
9919 # define getpagesize() NBPC
9920 # else /* no NBPC */
9922 # define getpagesize() PAGESIZE
9923 # endif /* PAGESIZE */
9924 # endif /* no NBPC */
9925 # endif /* no NBPG */
9926 # endif /* no EXEC_PAGESIZE */
9927 # else /* no HAVE_SYS_PARAM_H */
9928 # define getpagesize() 8192 /* punt totally */
9929 # endif /* no HAVE_SYS_PARAM_H */
9930 # endif /* no _SC_PAGESIZE */
9932 #endif /* no HAVE_GETPAGESIZE */
9937 char *data, *data2, *data3;
9942 pagesize = getpagesize ();
9944 /* First, make a file with some known garbage in it. */
9945 data = (char *) malloc (pagesize);
9948 for (i = 0; i < pagesize; ++i)
9949 *(data + i) = rand ();
9951 fd = creat ("conftest.mmap", 0600);
9954 if (write (fd, data, pagesize) != pagesize)
9958 /* Next, check that the tail of a page is zero-filled. File must have
9959 non-zero length, otherwise we risk SIGBUS for entire page. */
9960 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
9964 if (write (fd2, cdata2, 1) != 1)
9966 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
9967 if (data2 == MAP_FAILED)
9969 for (i = 0; i < pagesize; ++i)
9973 if (munmap (data2, pagesize))
9976 /* Next, try to mmap the file at a fixed address which already has
9977 something else allocated at it. If we can, also make sure that
9978 we see the same garbage. */
9979 fd = open ("conftest.mmap", O_RDWR);
9982 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9983 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9985 for (i = 0; i < pagesize; ++i)
9986 if (*(data + i) != *(data2 + i))
9989 /* Finally, make sure that changes to the mapped area do not
9990 percolate back to the file as seen by read(). (This is a bug on
9991 some variants of i386 svr4.0.) */
9992 for (i = 0; i < pagesize; ++i)
9993 *(data2 + i) = *(data2 + i) + 1;
9994 data3 = (char *) malloc (pagesize);
9997 if (read (fd, data3, pagesize) != pagesize)
9999 for (i = 0; i < pagesize; ++i)
10000 if (*(data + i) != *(data3 + i))
10006 if ac_fn_c_try_run
"$LINENO"; then :
10007 ac_cv_func_mmap_fixed_mapped
=yes
10009 ac_cv_func_mmap_fixed_mapped
=no
10011 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10012 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
10017 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
10018 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10020 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
10023 rm -f conftest.mmap conftest.txt
10025 if test $use_mmap_for_buffers = yes; then
10027 $as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
10032 LIBS
="$LIBS_SYSTEM $LIBS"
10034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
10035 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
10036 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
10037 $as_echo_n "(cached) " >&6
10039 ac_check_lib_save_LIBS
=$LIBS
10040 LIBS
="-ldnet $LIBS"
10041 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10042 /* end confdefs.h. */
10044 /* Override any GCC internal prototype to avoid an error.
10045 Use char because int might match the return type of a GCC
10046 builtin and then its argument prototype would still apply. */
10054 return dnet_ntoa ();
10059 if ac_fn_c_try_link
"$LINENO"; then :
10060 ac_cv_lib_dnet_dnet_ntoa
=yes
10062 ac_cv_lib_dnet_dnet_ntoa
=no
10064 rm -f core conftest.err conftest.
$ac_objext \
10065 conftest
$ac_exeext conftest.
$ac_ext
10066 LIBS
=$ac_check_lib_save_LIBS
10068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10069 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10070 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x
""yes; then :
10071 cat >>confdefs.h
<<_ACEOF
10072 #define HAVE_LIBDNET 1
10075 LIBS
="-ldnet $LIBS"
10080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
10081 $as_echo_n "checking for main in -lXbsd... " >&6; }
10082 if test "${ac_cv_lib_Xbsd_main+set}" = set; then :
10083 $as_echo_n "(cached) " >&6
10085 ac_check_lib_save_LIBS
=$LIBS
10086 LIBS
="-lXbsd $LIBS"
10087 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10088 /* end confdefs.h. */
10099 if ac_fn_c_try_link
"$LINENO"; then :
10100 ac_cv_lib_Xbsd_main
=yes
10102 ac_cv_lib_Xbsd_main
=no
10104 rm -f core conftest.err conftest.
$ac_objext \
10105 conftest
$ac_exeext conftest.
$ac_ext
10106 LIBS
=$ac_check_lib_save_LIBS
10108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
10109 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
10110 if test "x$ac_cv_lib_Xbsd_main" = x
""yes; then :
10111 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -lXbsd"
10119 if test "$ac_cv_header_pthread_h"; then
10120 if test "$GMALLOC_OBJ" = gmalloc.o
; then
10121 emacs_pthread_function
=pthread_atfork
10123 emacs_pthread_function
=pthread_self
10125 as_ac_Lib
=`$as_echo "ac_cv_lib_pthread_$emacs_pthread_function" | $as_tr_sh`
10126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $emacs_pthread_function in -lpthread" >&5
10127 $as_echo_n "checking for $emacs_pthread_function in -lpthread... " >&6; }
10128 if { as_var
=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
10129 $as_echo_n "(cached) " >&6
10131 ac_check_lib_save_LIBS
=$LIBS
10132 LIBS
="-lpthread $LIBS"
10133 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10134 /* end confdefs.h. */
10136 /* Override any GCC internal prototype to avoid an error.
10137 Use char because int might match the return type of a GCC
10138 builtin and then its argument prototype would still apply. */
10142 char $emacs_pthread_function ();
10146 return $emacs_pthread_function ();
10151 if ac_fn_c_try_link
"$LINENO"; then :
10152 eval "$as_ac_Lib=yes"
10154 eval "$as_ac_Lib=no"
10156 rm -f core conftest.err conftest.
$ac_objext \
10157 conftest
$ac_exeext conftest.
$ac_ext
10158 LIBS
=$ac_check_lib_save_LIBS
10160 eval ac_res
=\$
$as_ac_Lib
10161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10162 $as_echo "$ac_res" >&6; }
10163 eval as_val
=\$
$as_ac_Lib
10164 if test "x$as_val" = x
""yes; then :
10169 if test "$HAVE_PTHREAD" = yes; then
10170 case "${canonical}" in
10172 *) LIB_PTHREAD
="-lpthread"
10173 LIBS
="$LIB_PTHREAD $LIBS" ;;
10176 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
10181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
10182 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
10183 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then :
10184 $as_echo_n "(cached) " >&6
10186 ac_check_lib_save_LIBS
=$LIBS
10187 LIBS
="-lpthreads $LIBS"
10188 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10189 /* end confdefs.h. */
10191 /* Override any GCC internal prototype to avoid an error.
10192 Use char because int might match the return type of a GCC
10193 builtin and then its argument prototype would still apply. */
10201 return cma_open ();
10206 if ac_fn_c_try_link
"$LINENO"; then :
10207 ac_cv_lib_pthreads_cma_open
=yes
10209 ac_cv_lib_pthreads_cma_open
=no
10211 rm -f core conftest.err conftest.
$ac_objext \
10212 conftest
$ac_exeext conftest.
$ac_ext
10213 LIBS
=$ac_check_lib_save_LIBS
10215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
10216 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
10217 if test "x$ac_cv_lib_pthreads_cma_open" = x
""yes; then :
10218 cat >>confdefs.h
<<_ACEOF
10219 #define HAVE_LIBPTHREADS 1
10222 LIBS
="-lpthreads $LIBS"
10227 ## Note: when using cpp in s/aix4.2.h, this definition depended on
10228 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
10229 ## the system file was sourced. Hence the value of LIBS_SYSTEM
10230 ## added to LIBS in configure would never contain the pthreads part,
10231 ## but the value used in Makefiles might. FIXME?
10233 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
10234 ## be harmless on older versions of X where it happens to exist.
10235 test "$opsys" = "aix4-2" && \
10236 test $ac_cv_lib_pthreads_cma_open = yes && \
10237 LIBS_SYSTEM
="$LIBS_SYSTEM -lpthreads"
10242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
10243 $as_echo_n "checking for -bbigtoc option... " >&6; }
10244 if test "${gdb_cv_bigtoc+set}" = set; then :
10245 $as_echo_n "(cached) " >&6
10249 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
10250 *) gdb_cv_bigtoc
=-bbigtoc ;;
10253 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
10254 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10255 /* end confdefs.h. */
10265 if ac_fn_c_try_link
"$LINENO"; then :
10270 rm -f core conftest.err conftest.
$ac_objext \
10271 conftest
$ac_exeext conftest.
$ac_ext
10274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
10275 $as_echo "$gdb_cv_bigtoc" >&6; }
10279 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10280 # used for the tests that follow. We set them back to REAL_CFLAGS and
10281 # REAL_CPPFLAGS later on.
10283 REAL_CFLAGS
="$CFLAGS"
10284 REAL_CPPFLAGS
="$CPPFLAGS"
10286 if test "${HAVE_X11}" = "yes"; then
10287 DEFS
="$C_SWITCH_X_SITE $DEFS"
10288 LDFLAGS
="$LDFLAGS $LD_SWITCH_X_SITE"
10290 CFLAGS
="$C_SWITCH_X_SITE $CFLAGS"
10291 CPPFLAGS
="$C_SWITCH_X_SITE $CPPFLAGS"
10293 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10294 # This is handled by LD_SWITCH_X_SITE_RPATH during the real build,
10295 # but it's more convenient here to set LD_RUN_PATH since this
10296 # also works on hosts that don't understand LD_SWITCH_X_SITE_RPATH.
10297 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
10298 LD_RUN_PATH
=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10302 if test "${opsys}" = "gnu-linux"; then
10303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
10304 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
10305 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10306 /* end confdefs.h. */
10311 XOpenDisplay ("foo");
10316 if ac_fn_c_try_link
"$LINENO"; then :
10317 xgnu_linux_first_failure
=no
10319 xgnu_linux_first_failure
=yes
10321 rm -f core conftest.err conftest.
$ac_objext \
10322 conftest
$ac_exeext conftest.
$ac_ext
10323 if test "${xgnu_linux_first_failure}" = "yes"; then
10324 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
10325 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
10326 OLD_CPPFLAGS
="$CPPFLAGS"
10328 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
10329 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
10330 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
10331 LIBS
="$LIBS -b i486-linuxaout"
10332 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10333 /* end confdefs.h. */
10338 XOpenDisplay ("foo");
10343 if ac_fn_c_try_link
"$LINENO"; then :
10344 xgnu_linux_second_failure
=no
10346 xgnu_linux_second_failure
=yes
10348 rm -f core conftest.err conftest.
$ac_objext \
10349 conftest
$ac_exeext conftest.
$ac_ext
10350 if test "${xgnu_linux_second_failure}" = "yes"; then
10351 # If we get the same failure with -b, there is no use adding -b.
10352 # So take it out. This plays safe.
10353 LD_SWITCH_X_SITE
="$OLD_LD_SWITCH_X_SITE"
10354 C_SWITCH_X_SITE
="$OLD_C_SWITCH_X_SITE"
10355 CPPFLAGS
="$OLD_CPPFLAGS"
10357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10358 $as_echo "no" >&6; }
10360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10361 $as_echo "yes" >&6; }
10364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10365 $as_echo "no" >&6; }
10369 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10370 # header files included from there.
10371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
10372 $as_echo_n "checking for Xkb... " >&6; }
10373 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10374 /* end confdefs.h. */
10375 #include <X11/Xlib.h>
10376 #include <X11/XKBlib.h>
10380 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10385 if ac_fn_c_try_link
"$LINENO"; then :
10390 rm -f core conftest.err conftest.
$ac_objext \
10391 conftest
$ac_exeext conftest.
$ac_ext
10392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
10393 $as_echo "$emacs_xkb" >&6; }
10394 if test $emacs_xkb = yes; then
10396 $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
10400 for ac_func
in XrmSetDatabase XScreenResourceString \
10401 XScreenNumberOfScreen
10403 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10404 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10405 eval as_val
=\$
$as_ac_var
10406 if test "x$as_val" = x
""yes; then :
10407 cat >>confdefs.h
<<_ACEOF
10408 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10416 if test "${window_system}" = "x11"; then
10417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
10418 $as_echo_n "checking X11 version 6... " >&6; }
10419 if test "${emacs_cv_x11_version_6+set}" = set; then :
10420 $as_echo_n "(cached) " >&6
10422 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10423 /* end confdefs.h. */
10424 #include <X11/Xlib.h>
10428 #if XlibSpecificationRelease < 6
10436 if ac_fn_c_try_link
"$LINENO"; then :
10437 emacs_cv_x11_version_6
=yes
10439 emacs_cv_x11_version_6
=no
10441 rm -f core conftest.err conftest.
$ac_objext \
10442 conftest
$ac_exeext conftest.
$ac_ext
10445 if test $emacs_cv_x11_version_6 = yes; then
10446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
10447 $as_echo "6 or newer" >&6; }
10449 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
10452 $as_echo "#define HAVE_X_I18N 1" >>confdefs.h
10454 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
10459 $as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
10464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
10465 $as_echo "before 6" >&6; }
10470 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
10472 if test "${HAVE_X11}" = "yes" ||
test "${HAVE_NS}" = "yes"; then
10473 if test "${with_rsvg}" != "no"; then
10474 RSVG_REQUIRED
=2.11.0
10475 RSVG_MODULE
="librsvg-2.0 >= $RSVG_REQUIRED"
10480 if test "$PKG_CONFIG" = "no" ; then
10483 PKG_CONFIG_MIN_VERSION
=0.9.0
10484 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
10486 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
10488 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5 &&
10489 RSVG_CFLAGS
=`$PKG_CONFIG --cflags "$RSVG_MODULE" 2>&5` &&
10490 RSVG_LIBS
=`$PKG_CONFIG --libs "$RSVG_MODULE" 2>&5`; then
10497 RSVG_CFLAGS
=`$as_echo "$RSVG_CFLAGS" | sed -e "$edit_cflags"`
10498 RSVG_LIBS
=`$as_echo "$RSVG_LIBS" | sed -e 's,///*,/,g'`
10499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$RSVG_CFLAGS' LIBS='$RSVG_LIBS'" >&5
10500 $as_echo "yes CFLAGS='$RSVG_CFLAGS' LIBS='$RSVG_LIBS'" >&6; }
10503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10504 $as_echo "no" >&6; }
10507 ## If we have a custom action on failure, don't print errors, but
10508 ## do set a variable so people can do so. Do it in a subshell
10509 ## to capture any diagnostics in invoking pkg-config.
10510 RSVG_PKG_ERRORS
=`($PKG_CONFIG --print-errors "$RSVG_MODULE") 2>&1`
10517 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10518 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10522 if test $succeeded = yes; then
10531 if test $HAVE_RSVG = yes; then
10533 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
10535 CFLAGS
="$CFLAGS $RSVG_CFLAGS"
10536 LIBS
="$RSVG_LIBS $LIBS"
10541 HAVE_IMAGEMAGICK
=no
10542 if test "${HAVE_X11}" = "yes"; then
10543 if test "${with_imagemagick}" != "no"; then
10544 ## 6.2.8 is the earliest version known to work, but earlier versions
10545 ## might work - let us know if you find one.
10546 ## 6.0.7 does not work. See bug#7955.
10547 IMAGEMAGICK_MODULE
="Wand >= 6.2.8"
10551 if test "$PKG_CONFIG" = "no" ; then
10554 PKG_CONFIG_MIN_VERSION
=0.9.0
10555 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
10557 $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
10559 if $PKG_CONFIG --exists "$IMAGEMAGICK_MODULE" 2>&5 &&
10560 IMAGEMAGICK_CFLAGS
=`$PKG_CONFIG --cflags "$IMAGEMAGICK_MODULE" 2>&5` &&
10561 IMAGEMAGICK_LIBS
=`$PKG_CONFIG --libs "$IMAGEMAGICK_MODULE" 2>&5`; then
10568 IMAGEMAGICK_CFLAGS
=`$as_echo "$IMAGEMAGICK_CFLAGS" | sed -e "$edit_cflags"`
10569 IMAGEMAGICK_LIBS
=`$as_echo "$IMAGEMAGICK_LIBS" | sed -e 's,///*,/,g'`
10570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$IMAGEMAGICK_CFLAGS' LIBS='$IMAGEMAGICK_LIBS'" >&5
10571 $as_echo "yes CFLAGS='$IMAGEMAGICK_CFLAGS' LIBS='$IMAGEMAGICK_LIBS'" >&6; }
10574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10575 $as_echo "no" >&6; }
10576 IMAGEMAGICK_CFLAGS
=""
10577 IMAGEMAGICK_LIBS
=""
10578 ## If we have a custom action on failure, don't print errors, but
10579 ## do set a variable so people can do so. Do it in a subshell
10580 ## to capture any diagnostics in invoking pkg-config.
10581 IMAGEMAGICK_PKG_ERRORS
=`($PKG_CONFIG --print-errors "$IMAGEMAGICK_MODULE") 2>&1`
10588 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10589 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10593 if test $succeeded = yes; then
10594 HAVE_IMAGEMAGICK
=yes
10602 if test $HAVE_IMAGEMAGICK = yes; then
10604 $as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
10606 CFLAGS
="$CFLAGS $IMAGEMAGICK_CFLAGS"
10607 LIBS
="$IMAGEMAGICK_LIBS $LIBS"
10608 for ac_func
in MagickExportImagePixels MagickMergeImageLayers
10610 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10611 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10612 eval as_val
=\$
$as_ac_var
10613 if test "x$as_val" = x
""yes; then :
10614 cat >>confdefs.h
<<_ACEOF
10615 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10630 if test "${with_gtk3}" = "yes" ||
test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "maybe"; then
10633 GTK_MODULES
="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10638 if test "$PKG_CONFIG" = "no" ; then
10641 PKG_CONFIG_MIN_VERSION
=0.9.0
10642 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
10644 $as_echo_n "checking for $GTK_MODULES... " >&6; }
10646 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5 &&
10647 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES" 2>&5` &&
10648 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES" 2>&5`; then
10655 GTK_CFLAGS
=`$as_echo "$GTK_CFLAGS" | sed -e "$edit_cflags"`
10656 GTK_LIBS
=`$as_echo "$GTK_LIBS" | sed -e 's,///*,/,g'`
10657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&5
10658 $as_echo "yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&6; }
10661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10662 $as_echo "no" >&6; }
10665 ## If we have a custom action on failure, don't print errors, but
10666 ## do set a variable so people can do so. Do it in a subshell
10667 ## to capture any diagnostics in invoking pkg-config.
10668 GTK_PKG_ERRORS
=`($PKG_CONFIG --print-errors "$GTK_MODULES") 2>&1`
10675 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10676 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10680 if test $succeeded = yes; then
10686 if test "$pkg_check_gtk" = "no" && test "$with_gtk3" = "yes"; then
10687 as_fn_error
"$GTK_PKG_ERRORS" "$LINENO" 5
10689 if test "$pkg_check_gtk" = "yes"; then
10691 $as_echo "#define HAVE_GTK3 1" >>confdefs.h
10693 GTK_OBJ
=emacsgtkfixed.o
10694 term_header
=gtkutil.h
10695 USE_GTK_TOOLKIT
="GTK3"
10698 gtk3_pkg_errors
="$GTK_PKG_ERRORS "
10702 if test "${with_gtk2}" = "yes" ||
test "$check_gtk2" = "yes"; then
10705 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10710 if test "$PKG_CONFIG" = "no" ; then
10713 PKG_CONFIG_MIN_VERSION
=0.9.0
10714 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
10716 $as_echo_n "checking for $GTK_MODULES... " >&6; }
10718 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5 &&
10719 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES" 2>&5` &&
10720 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES" 2>&5`; then
10727 GTK_CFLAGS
=`$as_echo "$GTK_CFLAGS" | sed -e "$edit_cflags"`
10728 GTK_LIBS
=`$as_echo "$GTK_LIBS" | sed -e 's,///*,/,g'`
10729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&5
10730 $as_echo "yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&6; }
10733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10734 $as_echo "no" >&6; }
10737 ## If we have a custom action on failure, don't print errors, but
10738 ## do set a variable so people can do so. Do it in a subshell
10739 ## to capture any diagnostics in invoking pkg-config.
10740 GTK_PKG_ERRORS
=`($PKG_CONFIG --print-errors "$GTK_MODULES") 2>&1`
10747 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10748 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10752 if test $succeeded = yes; then
10758 if test "$pkg_check_gtk" = "no" &&
10759 { test "$with_gtk" = yes ||
test "$with_gtk2" = "yes"; }
10761 as_fn_error
"$gtk3_pkg_errors$GTK_PKG_ERRORS" "$LINENO" 5
10763 test "$pkg_check_gtk" = "yes" && USE_GTK_TOOLKIT
="GTK2"
10766 if test x
"$pkg_check_gtk" = xyes
; then
10770 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
10771 CFLAGS
="$CFLAGS $GTK_CFLAGS"
10772 LIBS
="$GTK_LIBS $LIBS"
10774 for ac_func
in gtk_main
10776 ac_fn_c_check_func
"$LINENO" "gtk_main" "ac_cv_func_gtk_main"
10777 if test "x$ac_cv_func_gtk_main" = x
""yes; then :
10778 cat >>confdefs.h
<<_ACEOF
10779 #define HAVE_GTK_MAIN 1
10785 if test "${GTK_COMPILES}" != "yes"; then
10786 if test "$USE_X_TOOLKIT" != "maybe"; then
10787 as_fn_error
"Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
10792 $as_echo "#define USE_GTK 1" >>confdefs.h
10794 GTK_OBJ
="gtkutil.o $GTK_OBJ"
10796 if $PKG_CONFIG --atleast-version=2.10 gtk
+-2.0
; then
10799 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
10800 closing open displays. This is no problem if you just use
10801 one display, but if you use more than one and close one of them
10802 Emacs may crash." >&5
10803 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
10804 closing open displays. This is no problem if you just use
10805 one display, but if you use more than one and close one of them
10806 Emacs may crash." >&2;}
10815 if test "${HAVE_GTK}" = "yes"; then
10817 if test "$with_toolkit_scroll_bars" != no
; then
10818 with_toolkit_scroll_bars
=yes
10821 HAVE_GTK_FILE_SELECTION
=no
10822 ac_fn_c_check_decl
"$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
10823 #include <gtk/gtk.h>
10825 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x
""yes; then :
10826 HAVE_GTK_FILE_SELECTION
=yes
10828 HAVE_GTK_FILE_SELECTION
=no
10831 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
10832 for ac_func
in gtk_file_selection_new
10834 ac_fn_c_check_func
"$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
10835 if test "x$ac_cv_func_gtk_file_selection_new" = x
""yes; then :
10836 cat >>confdefs.h
<<_ACEOF
10837 #define HAVE_GTK_FILE_SELECTION_NEW 1
10846 for ac_func
in gtk_widget_get_window gtk_widget_set_has_window \
10847 gtk_dialog_get_action_area gtk_widget_get_sensitive \
10848 gtk_widget_get_mapped gtk_adjustment_get_page_size \
10849 gtk_orientable_set_orientation \
10850 gtk_window_set_has_resize_grip
10852 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10853 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10854 eval as_val
=\$
$as_ac_var
10855 if test "x$as_val" = x
""yes; then :
10856 cat >>confdefs.h
<<_ACEOF
10857 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10864 term_header
=gtkutil.h
10869 if test "${with_dbus}" = "yes"; then
10873 if test "$PKG_CONFIG" = "no" ; then
10876 PKG_CONFIG_MIN_VERSION
=0.9.0
10877 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
10879 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
10881 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5 &&
10882 DBUS_CFLAGS
=`$PKG_CONFIG --cflags "dbus-1 >= 1.0" 2>&5` &&
10883 DBUS_LIBS
=`$PKG_CONFIG --libs "dbus-1 >= 1.0" 2>&5`; then
10890 DBUS_CFLAGS
=`$as_echo "$DBUS_CFLAGS" | sed -e "$edit_cflags"`
10891 DBUS_LIBS
=`$as_echo "$DBUS_LIBS" | sed -e 's,///*,/,g'`
10892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$DBUS_CFLAGS' LIBS='$DBUS_LIBS'" >&5
10893 $as_echo "yes CFLAGS='$DBUS_CFLAGS' LIBS='$DBUS_LIBS'" >&6; }
10896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10897 $as_echo "no" >&6; }
10900 ## If we have a custom action on failure, don't print errors, but
10901 ## do set a variable so people can do so. Do it in a subshell
10902 ## to capture any diagnostics in invoking pkg-config.
10903 DBUS_PKG_ERRORS
=`($PKG_CONFIG --print-errors "dbus-1 >= 1.0") 2>&1`
10910 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10911 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10915 if test $succeeded = yes; then
10921 if test "$HAVE_DBUS" = yes; then
10922 LIBS
="$LIBS $DBUS_LIBS"
10924 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
10926 for ac_func
in dbus_watch_get_unix_fd \
10927 dbus_type_is_valid \
10928 dbus_validate_bus_name \
10929 dbus_validate_path \
10930 dbus_validate_interface \
10931 dbus_validate_member
10933 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10934 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10935 eval as_val
=\$
$as_ac_var
10936 if test "x$as_val" = x
""yes; then :
10937 cat >>confdefs.h
<<_ACEOF
10938 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10944 DBUS_OBJ
=dbusbind.o
10950 if test "${HAVE_X11}" = "yes" && test "${with_gsettings}" = "yes"; then
10954 if test "$PKG_CONFIG" = "no" ; then
10957 PKG_CONFIG_MIN_VERSION
=0.9.0
10958 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gio-2.0 >= 2.26" >&5
10960 $as_echo_n "checking for gio-2.0 >= 2.26... " >&6; }
10962 if $PKG_CONFIG --exists "gio-2.0 >= 2.26" 2>&5 &&
10963 GSETTINGS_CFLAGS
=`$PKG_CONFIG --cflags "gio-2.0 >= 2.26" 2>&5` &&
10964 GSETTINGS_LIBS
=`$PKG_CONFIG --libs "gio-2.0 >= 2.26" 2>&5`; then
10971 GSETTINGS_CFLAGS
=`$as_echo "$GSETTINGS_CFLAGS" | sed -e "$edit_cflags"`
10972 GSETTINGS_LIBS
=`$as_echo "$GSETTINGS_LIBS" | sed -e 's,///*,/,g'`
10973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GSETTINGS_CFLAGS' LIBS='$GSETTINGS_LIBS'" >&5
10974 $as_echo "yes CFLAGS='$GSETTINGS_CFLAGS' LIBS='$GSETTINGS_LIBS'" >&6; }
10977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10978 $as_echo "no" >&6; }
10979 GSETTINGS_CFLAGS
=""
10981 ## If we have a custom action on failure, don't print errors, but
10982 ## do set a variable so people can do so. Do it in a subshell
10983 ## to capture any diagnostics in invoking pkg-config.
10984 GSETTINGS_PKG_ERRORS
=`($PKG_CONFIG --print-errors "gio-2.0 >= 2.26") 2>&1`
10991 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10992 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10996 if test $succeeded = yes; then
11002 if test "$HAVE_GSETTINGS" = "yes"; then
11004 $as_echo "#define HAVE_GSETTINGS 1" >>confdefs.h
11006 SETTINGS_CFLAGS
="$GSETTINGS_CFLAGS"
11007 SETTINGS_LIBS
="$GSETTINGS_LIBS"
11012 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
11016 if test "$PKG_CONFIG" = "no" ; then
11019 PKG_CONFIG_MIN_VERSION
=0.9.0
11020 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
11022 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
11024 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5 &&
11025 GCONF_CFLAGS
=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13" 2>&5` &&
11026 GCONF_LIBS
=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13" 2>&5`; then
11033 GCONF_CFLAGS
=`$as_echo "$GCONF_CFLAGS" | sed -e "$edit_cflags"`
11034 GCONF_LIBS
=`$as_echo "$GCONF_LIBS" | sed -e 's,///*,/,g'`
11035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GCONF_CFLAGS' LIBS='$GCONF_LIBS'" >&5
11036 $as_echo "yes CFLAGS='$GCONF_CFLAGS' LIBS='$GCONF_LIBS'" >&6; }
11039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11040 $as_echo "no" >&6; }
11043 ## If we have a custom action on failure, don't print errors, but
11044 ## do set a variable so people can do so. Do it in a subshell
11045 ## to capture any diagnostics in invoking pkg-config.
11046 GCONF_PKG_ERRORS
=`($PKG_CONFIG --print-errors "gconf-2.0 >= 2.13") 2>&1`
11053 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11054 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11058 if test $succeeded = yes; then
11064 if test "$HAVE_GCONF" = yes; then
11066 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
11068 SETTINGS_CFLAGS
="$SETTINGS_CFLAGS $GCONF_CFLAGS"
11069 SETTINGS_LIBS
="$SETTINGS_LIBS $GCONF_LIBS"
11073 if test "$HAVE_GSETTINGS" = "yes" ||
test "$HAVE_GCONF" = "yes"; then
11077 if test "$PKG_CONFIG" = "no" ; then
11080 PKG_CONFIG_MIN_VERSION
=0.9.0
11081 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gobject-2.0 >= 2.0" >&5
11083 $as_echo_n "checking for gobject-2.0 >= 2.0... " >&6; }
11085 if $PKG_CONFIG --exists "gobject-2.0 >= 2.0" 2>&5 &&
11086 GOBJECT_CFLAGS
=`$PKG_CONFIG --cflags "gobject-2.0 >= 2.0" 2>&5` &&
11087 GOBJECT_LIBS
=`$PKG_CONFIG --libs "gobject-2.0 >= 2.0" 2>&5`; then
11094 GOBJECT_CFLAGS
=`$as_echo "$GOBJECT_CFLAGS" | sed -e "$edit_cflags"`
11095 GOBJECT_LIBS
=`$as_echo "$GOBJECT_LIBS" | sed -e 's,///*,/,g'`
11096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GOBJECT_CFLAGS' LIBS='$GOBJECT_LIBS'" >&5
11097 $as_echo "yes CFLAGS='$GOBJECT_CFLAGS' LIBS='$GOBJECT_LIBS'" >&6; }
11100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11101 $as_echo "no" >&6; }
11104 ## If we have a custom action on failure, don't print errors, but
11105 ## do set a variable so people can do so. Do it in a subshell
11106 ## to capture any diagnostics in invoking pkg-config.
11107 GOBJECT_PKG_ERRORS
=`($PKG_CONFIG --print-errors "gobject-2.0 >= 2.0") 2>&1`
11114 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11115 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11119 if test $succeeded = yes; then
11125 if test "$HAVE_GOBJECT" = "yes"; then
11126 SETTINGS_CFLAGS
="$SETTINGS_CFLAGS $GOBJECT_CFLAGS"
11127 SETTINGS_LIBS
="$SETTINGS_LIBS $GOBJECT_LIBS"
11129 SAVE_CFLAGS
="$CFLAGS"
11131 CFLAGS
="$SETTINGS_CFLAGS $CFLAGS"
11132 LIBS
="$SETTINGS_LIBS $LIBS"
11133 for ac_func
in g_type_init
11135 ac_fn_c_check_func
"$LINENO" "g_type_init" "ac_cv_func_g_type_init"
11136 if test "x$ac_cv_func_g_type_init" = x
""yes; then :
11137 cat >>confdefs.h
<<_ACEOF
11138 #define HAVE_G_TYPE_INIT 1
11144 CFLAGS
="$SAVE_CFLAGS"
11153 if test "${with_selinux}" = "yes"; then
11154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
11155 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
11156 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then :
11157 $as_echo_n "(cached) " >&6
11159 ac_check_lib_save_LIBS
=$LIBS
11160 LIBS
="-lselinux $LIBS"
11161 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11162 /* end confdefs.h. */
11164 /* Override any GCC internal prototype to avoid an error.
11165 Use char because int might match the return type of a GCC
11166 builtin and then its argument prototype would still apply. */
11170 char lgetfilecon ();
11174 return lgetfilecon ();
11179 if ac_fn_c_try_link
"$LINENO"; then :
11180 ac_cv_lib_selinux_lgetfilecon
=yes
11182 ac_cv_lib_selinux_lgetfilecon
=no
11184 rm -f core conftest.err conftest.
$ac_objext \
11185 conftest
$ac_exeext conftest.
$ac_ext
11186 LIBS
=$ac_check_lib_save_LIBS
11188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
11189 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
11190 if test "x$ac_cv_lib_selinux_lgetfilecon" = x
""yes; then :
11191 HAVE_LIBSELINUX
=yes
11196 if test "$HAVE_LIBSELINUX" = yes; then
11198 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
11200 LIBSELINUX_LIBS
=-lselinux
11206 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY
=no
11207 if test "${with_gnutls}" = "yes" ; then
11211 if test "$PKG_CONFIG" = "no" ; then
11214 PKG_CONFIG_MIN_VERSION
=0.9.0
11215 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.6.6" >&5
11217 $as_echo_n "checking for gnutls >= 2.6.6... " >&6; }
11219 if $PKG_CONFIG --exists "gnutls >= 2.6.6" 2>&5 &&
11220 LIBGNUTLS_CFLAGS
=`$PKG_CONFIG --cflags "gnutls >= 2.6.6" 2>&5` &&
11221 LIBGNUTLS_LIBS
=`$PKG_CONFIG --libs "gnutls >= 2.6.6" 2>&5`; then
11228 LIBGNUTLS_CFLAGS
=`$as_echo "$LIBGNUTLS_CFLAGS" | sed -e "$edit_cflags"`
11229 LIBGNUTLS_LIBS
=`$as_echo "$LIBGNUTLS_LIBS" | sed -e 's,///*,/,g'`
11230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBGNUTLS_CFLAGS' LIBS='$LIBGNUTLS_LIBS'" >&5
11231 $as_echo "yes CFLAGS='$LIBGNUTLS_CFLAGS' LIBS='$LIBGNUTLS_LIBS'" >&6; }
11234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11235 $as_echo "no" >&6; }
11236 LIBGNUTLS_CFLAGS
=""
11238 ## If we have a custom action on failure, don't print errors, but
11239 ## do set a variable so people can do so. Do it in a subshell
11240 ## to capture any diagnostics in invoking pkg-config.
11241 LIBGNUTLS_PKG_ERRORS
=`($PKG_CONFIG --print-errors "gnutls >= 2.6.6") 2>&1`
11248 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11249 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11253 if test $succeeded = yes; then
11259 if test "${HAVE_GNUTLS}" = "yes"; then
11261 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
11265 CFLAGS
="$CFLAGS $LIBGNUTLS_CFLAGS"
11266 LIBS
="$LIBGNUTLS_LIBS $LIBS"
11267 for ac_func
in gnutls_certificate_set_verify_function
11269 ac_fn_c_check_func
"$LINENO" "gnutls_certificate_set_verify_function" "ac_cv_func_gnutls_certificate_set_verify_function"
11270 if test "x$ac_cv_func_gnutls_certificate_set_verify_function" = x
""yes; then :
11271 cat >>confdefs.h
<<_ACEOF
11272 #define HAVE_GNUTLS_CERTIFICATE_SET_VERIFY_FUNCTION 1
11274 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY
=yes
11279 if test "${HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY}" = "yes"; then
11281 $as_echo "#define HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY 1" >>confdefs.h
11291 if test x
"${USE_X_TOOLKIT}" = xmaybe ||
test x
"${USE_X_TOOLKIT}" = xLUCID
; then
11292 if test "$with_xaw3d" != no
; then
11293 if test "${emacs_cv_xaw3d+set}" = set; then :
11294 $as_echo_n "(cached) " >&6
11296 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11297 /* end confdefs.h. */
11299 #include <X11/Intrinsic.h>
11300 #include <X11/Xaw3d/Simple.h>
11309 if ac_fn_c_try_link
"$LINENO"; then :
11310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XawScrollbarSetThumb in -lXaw3d" >&5
11311 $as_echo_n "checking for XawScrollbarSetThumb in -lXaw3d... " >&6; }
11312 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then :
11313 $as_echo_n "(cached) " >&6
11315 ac_check_lib_save_LIBS
=$LIBS
11316 LIBS
="-lXaw3d $LIBS"
11317 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11318 /* end confdefs.h. */
11320 /* Override any GCC internal prototype to avoid an error.
11321 Use char because int might match the return type of a GCC
11322 builtin and then its argument prototype would still apply. */
11326 char XawScrollbarSetThumb ();
11330 return XawScrollbarSetThumb ();
11335 if ac_fn_c_try_link
"$LINENO"; then :
11336 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=yes
11338 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=no
11340 rm -f core conftest.err conftest.
$ac_objext \
11341 conftest
$ac_exeext conftest.
$ac_ext
11342 LIBS
=$ac_check_lib_save_LIBS
11344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
11345 $as_echo "$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
11346 if test "x$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" = x
""yes; then :
11355 rm -f core conftest.err conftest.
$ac_objext \
11356 conftest
$ac_exeext conftest.
$ac_ext
11362 if test $emacs_cv_xaw3d = yes; then
11363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
11364 $as_echo_n "checking for xaw3d... " >&6; }
11365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
11366 $as_echo "yes; using Lucid toolkit" >&6; }
11367 USE_X_TOOLKIT
=LUCID
11371 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
11374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
11375 $as_echo_n "checking for xaw3d... " >&6; }
11376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11377 $as_echo "no" >&6; }
11378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
11379 $as_echo_n "checking for libXaw... " >&6; }
11380 if test "${emacs_cv_xaw+set}" = set; then :
11381 $as_echo_n "(cached) " >&6
11383 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11384 /* end confdefs.h. */
11386 #include <X11/Intrinsic.h>
11387 #include <X11/Xaw/Simple.h>
11396 if ac_fn_c_try_link
"$LINENO"; then :
11401 rm -f core conftest.err conftest.
$ac_objext \
11402 conftest
$ac_exeext conftest.
$ac_ext
11405 if test $emacs_cv_xaw = yes; then
11406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
11407 $as_echo "yes; using Lucid toolkit" >&6; }
11408 USE_X_TOOLKIT
=LUCID
11410 elif test x
"${USE_X_TOOLKIT}" = xLUCID
; then
11411 as_fn_error
"Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
11413 as_fn_error
"No X toolkit could be found.
11414 If you are sure you want Emacs compiled without an X toolkit, pass
11415 --with-x-toolkit=no
11416 to configure. Otherwise, install the development libraries for the toolkit
11417 that you want to use (e.g. Gtk+) and re-run configure." "$LINENO" 5
11422 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
11425 if test "${USE_X_TOOLKIT}" != "none"; then
11426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
11427 $as_echo_n "checking X11 toolkit version... " >&6; }
11428 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then :
11429 $as_echo_n "(cached) " >&6
11431 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11432 /* end confdefs.h. */
11433 #include <X11/Intrinsic.h>
11437 #if XtSpecificationRelease < 6
11445 if ac_fn_c_try_link
"$LINENO"; then :
11446 emacs_cv_x11_toolkit_version_6
=yes
11448 emacs_cv_x11_toolkit_version_6
=no
11450 rm -f core conftest.err conftest.
$ac_objext \
11451 conftest
$ac_exeext conftest.
$ac_ext
11454 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
11455 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
11457 $as_echo "6 or newer" >&6; }
11459 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
11461 LIBXTR6
="-lSM -lICE"
11463 ## Use libw.a along with X11R6 Xt.
11464 unixware
) LIBXTR6
="$LIBXTR6 -lw" ;;
11467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
11468 $as_echo "before 6" >&6; }
11472 if test x
$HAVE_X11XTR6 = xyes
; then
11473 LIBS
="-lXt -lSM -lICE $LIBS"
11477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
11478 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
11479 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then :
11480 $as_echo_n "(cached) " >&6
11482 ac_check_lib_save_LIBS
=$LIBS
11484 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11485 /* end confdefs.h. */
11487 /* Override any GCC internal prototype to avoid an error.
11488 Use char because int might match the return type of a GCC
11489 builtin and then its argument prototype would still apply. */
11493 char XmuConvertStandardSelection ();
11497 return XmuConvertStandardSelection ();
11502 if ac_fn_c_try_link
"$LINENO"; then :
11503 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
11505 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
11507 rm -f core conftest.err conftest.
$ac_objext \
11508 conftest
$ac_exeext conftest.
$ac_ext
11509 LIBS
=$ac_check_lib_save_LIBS
11511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
11512 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
11513 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x
""yes; then :
11514 cat >>confdefs.h
<<_ACEOF
11515 #define HAVE_LIBXMU 1
11522 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
11528 ## These systems don't supply Xmu.
11530 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU
=
11535 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
11536 if test "${HAVE_X11}" = "yes"; then
11537 if test "${USE_X_TOOLKIT}" != "none"; then
11538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
11539 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
11540 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
11541 $as_echo_n "(cached) " >&6
11543 ac_check_lib_save_LIBS
=$LIBS
11544 LIBS
="-lXext $LIBS"
11545 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11546 /* end confdefs.h. */
11548 /* Override any GCC internal prototype to avoid an error.
11549 Use char because int might match the return type of a GCC
11550 builtin and then its argument prototype would still apply. */
11554 char XShapeQueryExtension ();
11558 return XShapeQueryExtension ();
11563 if ac_fn_c_try_link
"$LINENO"; then :
11564 ac_cv_lib_Xext_XShapeQueryExtension
=yes
11566 ac_cv_lib_Xext_XShapeQueryExtension
=no
11568 rm -f core conftest.err conftest.
$ac_objext \
11569 conftest
$ac_exeext conftest.
$ac_ext
11570 LIBS
=$ac_check_lib_save_LIBS
11572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
11573 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
11574 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x
""yes; then :
11575 cat >>confdefs.h
<<_ACEOF
11576 #define HAVE_LIBXEXT 1
11579 LIBS
="-lXext $LIBS"
11587 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11588 # OpenMotif may be installed in such a way on some GNU/Linux systems.
11589 if test -d /usr
/include
/openmotif
; then
11590 CPPFLAGS
="-I/usr/include/openmotif $CPPFLAGS"
11591 emacs_cv_openmotif
=yes
11592 case "$canonical" in
11593 x86_64-
*-linux-gnu* | powerpc64-
*-linux-gnu* | sparc64-
*-linux-gnu*)
11594 test -d /usr
/lib64
/openmotif
&& LDFLAGS
="-L/usr/lib64/openmotif $LDFLAGS"
11597 test -d /usr
/lib
/openmotif
&& LDFLAGS
="-L/usr/lib/openmotif $LDFLAGS"
11600 emacs_cv_openmotif
=no
11602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for (Open)Motif version 2.1" >&5
11603 $as_echo_n "checking for (Open)Motif version 2.1... " >&6; }
11604 if test "${emacs_cv_motif_version_2_1+set}" = set; then :
11605 $as_echo_n "(cached) " >&6
11607 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11608 /* end confdefs.h. */
11613 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
11616 Motif version prior to 2.1.
11622 if ac_fn_c_try_compile
"$LINENO"; then :
11623 emacs_cv_motif_version_2_1
=yes
11625 emacs_cv_motif_version_2_1
=no
11627 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
11630 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
11631 if test $emacs_cv_motif_version_2_1 = yes; then
11632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
11633 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
11634 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then :
11635 $as_echo_n "(cached) " >&6
11637 ac_check_lib_save_LIBS
=$LIBS
11639 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11640 /* end confdefs.h. */
11642 /* Override any GCC internal prototype to avoid an error.
11643 Use char because int might match the return type of a GCC
11644 builtin and then its argument prototype would still apply. */
11648 char XpCreateContext ();
11652 return XpCreateContext ();
11657 if ac_fn_c_try_link
"$LINENO"; then :
11658 ac_cv_lib_Xp_XpCreateContext
=yes
11660 ac_cv_lib_Xp_XpCreateContext
=no
11662 rm -f core conftest.err conftest.
$ac_objext \
11663 conftest
$ac_exeext conftest.
$ac_ext
11664 LIBS
=$ac_check_lib_save_LIBS
11666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
11667 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
11668 if test "x$ac_cv_lib_Xp_XpCreateContext" = x
""yes; then :
11672 if test x
$emacs_cv_openmotif = xyes
; then
11673 REAL_CPPFLAGS
="-I/usr/include/openmotif $REAL_CPPFLAGS"
11676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
11677 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
11678 if test "${emacs_cv_lesstif+set}" = set; then :
11679 $as_echo_n "(cached) " >&6
11681 # We put this in CFLAGS temporarily to precede other -I options
11682 # that might be in CFLAGS temporarily.
11683 # We put this in CPPFLAGS where it precedes the other -I options.
11684 OLD_CPPFLAGS
=$CPPFLAGS
11686 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
11687 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
11688 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11689 /* end confdefs.h. */
11690 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
11699 if ac_fn_c_try_compile
"$LINENO"; then :
11700 emacs_cv_lesstif
=yes
11702 emacs_cv_lesstif
=no
11704 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
11707 $as_echo "$emacs_cv_lesstif" >&6; }
11708 if test $emacs_cv_lesstif = yes; then
11709 # Make sure this -I option remains in CPPFLAGS after it is set
11710 # back to REAL_CPPFLAGS.
11711 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
11712 # have those other -I options anyway. Ultimately, having this
11713 # directory ultimately in CPPFLAGS will be enough.
11714 REAL_CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
11715 LDFLAGS
="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
11718 CPPFLAGS
=$OLD_CPPFLAGS
11721 ac_fn_c_check_header_mongrel
"$LINENO" "Xm/BulletinB.h" "ac_cv_header_Xm_BulletinB_h" "$ac_includes_default"
11722 if test "x$ac_cv_header_Xm_BulletinB_h" = x
""yes; then :
11725 as_fn_error
"Motif toolkit requested but requirements not found." "$LINENO" 5
11732 USE_TOOLKIT_SCROLL_BARS
=no
11733 if test "${with_toolkit_scroll_bars}" != "no"; then
11734 if test "${USE_X_TOOLKIT}" != "none"; then
11735 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11736 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11739 USE_TOOLKIT_SCROLL_BARS
=yes
11740 elif test "${HAVE_XAW3D}" = "yes" ||
test "${USE_X_TOOLKIT}" = "LUCID"; then
11741 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11743 USE_TOOLKIT_SCROLL_BARS
=yes
11745 elif test "${HAVE_GTK}" = "yes"; then
11746 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11748 USE_TOOLKIT_SCROLL_BARS
=yes
11749 elif test "${HAVE_NS}" = "yes"; then
11750 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11752 USE_TOOLKIT_SCROLL_BARS
=yes
11753 elif test "${HAVE_W32}" = "yes"; then
11754 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11756 USE_TOOLKIT_SCROLL_BARS
=yes
11760 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11761 /* end confdefs.h. */
11763 #include <X11/Xlib.h>
11764 #include <X11/Xresource.h>
11773 if ac_fn_c_try_compile
"$LINENO"; then :
11776 $as_echo "#define HAVE_XIM 1" >>confdefs.h
11781 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11784 if test "${with_xim}" != "no"; then
11786 $as_echo "#define USE_XIM 1" >>confdefs.h
11791 if test "${HAVE_XIM}" != "no"; then
11792 late_CFLAGS
=$CFLAGS
11793 if test "$GCC" = yes; then
11794 CFLAGS
="$CFLAGS --pedantic-errors"
11796 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11797 /* end confdefs.h. */
11799 #include <X11/Xlib.h>
11800 #include <X11/Xresource.h>
11809 XPointer *client_data;
11811 /* If we're not using GCC, it's probably not XFree86, and this is
11812 probably right, but we can't use something like --pedantic-errors. */
11813 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
11814 char*, XIMProc, XPointer*);
11816 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
11822 if ac_fn_c_try_compile
"$LINENO"; then :
11823 emacs_cv_arg6_star
=yes
11825 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11826 if test "$emacs_cv_arg6_star" = yes; then
11827 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
11830 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
11833 CFLAGS
=$late_CFLAGS
11836 ### Start of font-backend (under any platform) section.
11837 # (nothing here yet -- this is a placeholder)
11838 ### End of font-backend (under any platform) section.
11840 ### Start of font-backend (under X11) section.
11841 if test "${HAVE_X11}" = "yes"; then
11845 if test "$PKG_CONFIG" = "no" ; then
11848 PKG_CONFIG_MIN_VERSION
=0.9.0
11849 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
11851 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
11853 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5 &&
11854 FONTCONFIG_CFLAGS
=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0" 2>&5` &&
11855 FONTCONFIG_LIBS
=`$PKG_CONFIG --libs "fontconfig >= 2.2.0" 2>&5`; then
11862 FONTCONFIG_CFLAGS
=`$as_echo "$FONTCONFIG_CFLAGS" | sed -e "$edit_cflags"`
11863 FONTCONFIG_LIBS
=`$as_echo "$FONTCONFIG_LIBS" | sed -e 's,///*,/,g'`
11864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$FONTCONFIG_CFLAGS' LIBS='$FONTCONFIG_LIBS'" >&5
11865 $as_echo "yes CFLAGS='$FONTCONFIG_CFLAGS' LIBS='$FONTCONFIG_LIBS'" >&6; }
11868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11869 $as_echo "no" >&6; }
11870 FONTCONFIG_CFLAGS
=""
11872 ## If we have a custom action on failure, don't print errors, but
11873 ## do set a variable so people can do so. Do it in a subshell
11874 ## to capture any diagnostics in invoking pkg-config.
11875 FONTCONFIG_PKG_ERRORS
=`($PKG_CONFIG --print-errors "fontconfig >= 2.2.0") 2>&1`
11882 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11883 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11887 if test $succeeded = yes; then
11894 ## Use -lXft if available, unless `--with-xft=no'.
11896 if test "${HAVE_FC}" = "no" ||
test "x${with_x}" = "xno"; then
11899 if test "x${with_xft}" != "xno"; then
11904 if test "$PKG_CONFIG" = "no" ; then
11907 PKG_CONFIG_MIN_VERSION
=0.9.0
11908 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
11910 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
11912 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5 &&
11913 XFT_CFLAGS
=`$PKG_CONFIG --cflags "xft >= 0.13.0" 2>&5` &&
11914 XFT_LIBS
=`$PKG_CONFIG --libs "xft >= 0.13.0" 2>&5`; then
11921 XFT_CFLAGS
=`$as_echo "$XFT_CFLAGS" | sed -e "$edit_cflags"`
11922 XFT_LIBS
=`$as_echo "$XFT_LIBS" | sed -e 's,///*,/,g'`
11923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$XFT_CFLAGS' LIBS='$XFT_LIBS'" >&5
11924 $as_echo "yes CFLAGS='$XFT_CFLAGS' LIBS='$XFT_LIBS'" >&6; }
11927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11928 $as_echo "no" >&6; }
11931 ## If we have a custom action on failure, don't print errors, but
11932 ## do set a variable so people can do so. Do it in a subshell
11933 ## to capture any diagnostics in invoking pkg-config.
11934 XFT_PKG_ERRORS
=`($PKG_CONFIG --print-errors "xft >= 0.13.0") 2>&1`
11941 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11942 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11946 if test $succeeded = yes; then
11952 ## Because xftfont.c uses XRenderQueryExtension, we also
11953 ## need to link to -lXrender.
11955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
11956 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
11957 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
11958 $as_echo_n "(cached) " >&6
11960 ac_check_lib_save_LIBS
=$LIBS
11961 LIBS
="-lXrender $LIBS"
11962 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11963 /* end confdefs.h. */
11965 /* Override any GCC internal prototype to avoid an error.
11966 Use char because int might match the return type of a GCC
11967 builtin and then its argument prototype would still apply. */
11971 char XRenderQueryExtension ();
11975 return XRenderQueryExtension ();
11980 if ac_fn_c_try_link
"$LINENO"; then :
11981 ac_cv_lib_Xrender_XRenderQueryExtension
=yes
11983 ac_cv_lib_Xrender_XRenderQueryExtension
=no
11985 rm -f core conftest.err conftest.
$ac_objext \
11986 conftest
$ac_exeext conftest.
$ac_ext
11987 LIBS
=$ac_check_lib_save_LIBS
11989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
11990 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
11991 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x
""yes; then :
11995 if test "$HAVE_XFT" != no
&& test "$HAVE_XRENDER" != no
; then
11996 OLD_CPPFLAGS
="$CPPFLAGS"
11997 OLD_CFLAGS
="$CFLAGS"
11999 CPPFLAGS
="$CPPFLAGS $XFT_CFLAGS"
12000 CFLAGS
="$CFLAGS $XFT_CFLAGS"
12001 XFT_LIBS
="-lXrender $XFT_LIBS"
12002 LIBS
="$XFT_LIBS $LIBS"
12003 ac_fn_c_check_header_mongrel
"$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
12004 if test "x$ac_cv_header_X11_Xft_Xft_h" = x
""yes; then :
12005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
12006 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
12007 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then :
12008 $as_echo_n "(cached) " >&6
12010 ac_check_lib_save_LIBS
=$LIBS
12011 LIBS
="-lXft $XFT_LIBS $LIBS"
12012 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12013 /* end confdefs.h. */
12015 /* Override any GCC internal prototype to avoid an error.
12016 Use char because int might match the return type of a GCC
12017 builtin and then its argument prototype would still apply. */
12021 char XftFontOpen ();
12025 return XftFontOpen ();
12030 if ac_fn_c_try_link
"$LINENO"; then :
12031 ac_cv_lib_Xft_XftFontOpen
=yes
12033 ac_cv_lib_Xft_XftFontOpen
=no
12035 rm -f core conftest.err conftest.
$ac_objext \
12036 conftest
$ac_exeext conftest.
$ac_ext
12037 LIBS
=$ac_check_lib_save_LIBS
12039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
12040 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
12041 if test "x$ac_cv_lib_Xft_XftFontOpen" = x
""yes; then :
12049 if test "${HAVE_XFT}" = "yes"; then
12051 $as_echo "#define HAVE_XFT 1" >>confdefs.h
12054 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $XFT_CFLAGS"
12056 CPPFLAGS
="$OLD_CPPFLAGS"
12057 CFLAGS
="$OLD_CFLAGS"
12059 fi # "${HAVE_XFT}" = "yes"
12060 fi # "$HAVE_XFT" != no
12061 fi # "x${with_xft}" != "xno"
12063 ## We used to allow building with FreeType and without Xft.
12064 ## However, the ftx font backend driver is not in good shape.
12065 if test "$HAVE_XFT" != "yes"; then
12072 if test "$PKG_CONFIG" = "no" ; then
12075 PKG_CONFIG_MIN_VERSION
=0.9.0
12076 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype2" >&5
12078 $as_echo_n "checking for freetype2... " >&6; }
12080 if $PKG_CONFIG --exists "freetype2" 2>&5 &&
12081 FREETYPE_CFLAGS
=`$PKG_CONFIG --cflags "freetype2" 2>&5` &&
12082 FREETYPE_LIBS
=`$PKG_CONFIG --libs "freetype2" 2>&5`; then
12089 FREETYPE_CFLAGS
=`$as_echo "$FREETYPE_CFLAGS" | sed -e "$edit_cflags"`
12090 FREETYPE_LIBS
=`$as_echo "$FREETYPE_LIBS" | sed -e 's,///*,/,g'`
12091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$FREETYPE_CFLAGS' LIBS='$FREETYPE_LIBS'" >&5
12092 $as_echo "yes CFLAGS='$FREETYPE_CFLAGS' LIBS='$FREETYPE_LIBS'" >&6; }
12095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12096 $as_echo "no" >&6; }
12099 ## If we have a custom action on failure, don't print errors, but
12100 ## do set a variable so people can do so. Do it in a subshell
12101 ## to capture any diagnostics in invoking pkg-config.
12102 FREETYPE_PKG_ERRORS
=`($PKG_CONFIG --print-errors "freetype2") 2>&1`
12109 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12110 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12114 if test $succeeded = yes; then
12121 test "$HAVE_FREETYPE" = "no" && as_fn_error
"libxft requires libfreetype" "$LINENO" 5
12125 if test "${HAVE_FREETYPE}" = "yes"; then
12127 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
12129 if test "${with_libotf}" != "no"; then
12133 if test "$PKG_CONFIG" = "no" ; then
12136 PKG_CONFIG_MIN_VERSION
=0.9.0
12137 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
12139 $as_echo_n "checking for libotf... " >&6; }
12141 if $PKG_CONFIG --exists "libotf" 2>&5 &&
12142 LIBOTF_CFLAGS
=`$PKG_CONFIG --cflags "libotf" 2>&5` &&
12143 LIBOTF_LIBS
=`$PKG_CONFIG --libs "libotf" 2>&5`; then
12150 LIBOTF_CFLAGS
=`$as_echo "$LIBOTF_CFLAGS" | sed -e "$edit_cflags"`
12151 LIBOTF_LIBS
=`$as_echo "$LIBOTF_LIBS" | sed -e 's,///*,/,g'`
12152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBOTF_CFLAGS' LIBS='$LIBOTF_LIBS'" >&5
12153 $as_echo "yes CFLAGS='$LIBOTF_CFLAGS' LIBS='$LIBOTF_LIBS'" >&6; }
12156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12157 $as_echo "no" >&6; }
12160 ## If we have a custom action on failure, don't print errors, but
12161 ## do set a variable so people can do so. Do it in a subshell
12162 ## to capture any diagnostics in invoking pkg-config.
12163 LIBOTF_PKG_ERRORS
=`($PKG_CONFIG --print-errors "libotf") 2>&1`
12170 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12171 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12175 if test $succeeded = yes; then
12181 if test "$HAVE_LIBOTF" = "yes"; then
12183 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
12185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
12186 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
12187 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then :
12188 $as_echo_n "(cached) " >&6
12190 ac_check_lib_save_LIBS
=$LIBS
12192 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12193 /* end confdefs.h. */
12195 /* Override any GCC internal prototype to avoid an error.
12196 Use char because int might match the return type of a GCC
12197 builtin and then its argument prototype would still apply. */
12201 char OTF_get_variation_glyphs ();
12205 return OTF_get_variation_glyphs ();
12210 if ac_fn_c_try_link
"$LINENO"; then :
12211 ac_cv_lib_otf_OTF_get_variation_glyphs
=yes
12213 ac_cv_lib_otf_OTF_get_variation_glyphs
=no
12215 rm -f core conftest.err conftest.
$ac_objext \
12216 conftest
$ac_exeext conftest.
$ac_ext
12217 LIBS
=$ac_check_lib_save_LIBS
12219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
12220 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
12221 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x
""yes; then :
12222 HAVE_OTF_GET_VARIATION_GLYPHS
=yes
12224 HAVE_OTF_GET_VARIATION_GLYPHS
=no
12227 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
12229 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
12237 if test "${HAVE_LIBOTF}" = yes; then
12238 if test "${with_m17n_flt}" != "no"; then
12242 if test "$PKG_CONFIG" = "no" ; then
12245 PKG_CONFIG_MIN_VERSION
=0.9.0
12246 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
12248 $as_echo_n "checking for m17n-flt... " >&6; }
12250 if $PKG_CONFIG --exists "m17n-flt" 2>&5 &&
12251 M17N_FLT_CFLAGS
=`$PKG_CONFIG --cflags "m17n-flt" 2>&5` &&
12252 M17N_FLT_LIBS
=`$PKG_CONFIG --libs "m17n-flt" 2>&5`; then
12259 M17N_FLT_CFLAGS
=`$as_echo "$M17N_FLT_CFLAGS" | sed -e "$edit_cflags"`
12260 M17N_FLT_LIBS
=`$as_echo "$M17N_FLT_LIBS" | sed -e 's,///*,/,g'`
12261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$M17N_FLT_CFLAGS' LIBS='$M17N_FLT_LIBS'" >&5
12262 $as_echo "yes CFLAGS='$M17N_FLT_CFLAGS' LIBS='$M17N_FLT_LIBS'" >&6; }
12265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12266 $as_echo "no" >&6; }
12269 ## If we have a custom action on failure, don't print errors, but
12270 ## do set a variable so people can do so. Do it in a subshell
12271 ## to capture any diagnostics in invoking pkg-config.
12272 M17N_FLT_PKG_ERRORS
=`($PKG_CONFIG --print-errors "m17n-flt") 2>&1`
12279 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12280 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12284 if test $succeeded = yes; then
12290 if test "$HAVE_M17N_FLT" = "yes"; then
12292 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
12304 ### End of font-backend (under X11) section.
12315 ### Use -lXpm if available, unless `--with-xpm=no'.
12319 if test "${HAVE_W32}" = "yes"; then
12320 if test "${with_xpm}" != "no"; then
12321 SAVE_CPPFLAGS
="$CPPFLAGS"
12322 SAVE_LDFLAGS
="$LDFLAGS"
12323 CPPFLAGS
="$CPPFLAGS -I/usr/include/noX"
12324 LDFLAGS
="$LDFLAGS -L/usr/lib/noX"
12325 ac_fn_c_check_header_mongrel
"$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
12326 if test "x$ac_cv_header_X11_xpm_h" = x
""yes; then :
12327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToImage in -lXpm" >&5
12328 $as_echo_n "checking for XpmReadFileToImage in -lXpm... " >&6; }
12329 if test "${ac_cv_lib_Xpm_XpmReadFileToImage+set}" = set; then :
12330 $as_echo_n "(cached) " >&6
12332 ac_check_lib_save_LIBS
=$LIBS
12334 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12335 /* end confdefs.h. */
12337 /* Override any GCC internal prototype to avoid an error.
12338 Use char because int might match the return type of a GCC
12339 builtin and then its argument prototype would still apply. */
12343 char XpmReadFileToImage ();
12347 return XpmReadFileToImage ();
12352 if ac_fn_c_try_link
"$LINENO"; then :
12353 ac_cv_lib_Xpm_XpmReadFileToImage
=yes
12355 ac_cv_lib_Xpm_XpmReadFileToImage
=no
12357 rm -f core conftest.err conftest.
$ac_objext \
12358 conftest
$ac_exeext conftest.
$ac_ext
12359 LIBS
=$ac_check_lib_save_LIBS
12361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToImage" >&5
12362 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToImage" >&6; }
12363 if test "x$ac_cv_lib_Xpm_XpmReadFileToImage" = x
""yes; then :
12370 if test "${HAVE_XPM}" = "yes"; then
12371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
12372 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
12373 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12374 /* end confdefs.h. */
12375 #include "X11/xpm.h"
12376 #ifndef XpmReturnAllocPixels
12377 no_return_alloc_pixels
12381 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12382 $EGREP "no_return_alloc_pixels" >/dev
/null
2>&1; then :
12390 if test "${HAVE_XPM}" = "yes"; then
12391 REAL_CPPFLAGS
="$REAL_CPPFLAGS -I/usr/include/noX"
12392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12393 $as_echo "yes" >&6; }
12395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12396 $as_echo "no" >&6; }
12397 CPPFLAGS
="$SAVE_CPPFLAGS"
12398 LDFLAGS
="$SAVE_LDFLAGS"
12403 if test "${HAVE_XPM}" = "yes"; then
12405 $as_echo "#define HAVE_XPM 1" >>confdefs.h
12411 if test "${HAVE_X11}" = "yes"; then
12412 if test "${with_xpm}" != "no"; then
12413 ac_fn_c_check_header_mongrel
"$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
12414 if test "x$ac_cv_header_X11_xpm_h" = x
""yes; then :
12415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
12416 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
12417 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then :
12418 $as_echo_n "(cached) " >&6
12420 ac_check_lib_save_LIBS
=$LIBS
12421 LIBS
="-lXpm -lX11 $LIBS"
12422 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12423 /* end confdefs.h. */
12425 /* Override any GCC internal prototype to avoid an error.
12426 Use char because int might match the return type of a GCC
12427 builtin and then its argument prototype would still apply. */
12431 char XpmReadFileToPixmap ();
12435 return XpmReadFileToPixmap ();
12440 if ac_fn_c_try_link
"$LINENO"; then :
12441 ac_cv_lib_Xpm_XpmReadFileToPixmap
=yes
12443 ac_cv_lib_Xpm_XpmReadFileToPixmap
=no
12445 rm -f core conftest.err conftest.
$ac_objext \
12446 conftest
$ac_exeext conftest.
$ac_ext
12447 LIBS
=$ac_check_lib_save_LIBS
12449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
12450 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
12451 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x
""yes; then :
12458 if test "${HAVE_XPM}" = "yes"; then
12459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
12460 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
12461 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12462 /* end confdefs.h. */
12463 #include "X11/xpm.h"
12464 #ifndef XpmReturnAllocPixels
12465 no_return_alloc_pixels
12469 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12470 $EGREP "no_return_alloc_pixels" >/dev
/null
2>&1; then :
12478 if test "${HAVE_XPM}" = "yes"; then
12479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12480 $as_echo "yes" >&6; }
12482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12483 $as_echo "no" >&6; }
12488 if test "${HAVE_XPM}" = "yes"; then
12490 $as_echo "#define HAVE_XPM 1" >>confdefs.h
12498 ### Use -ljpeg if available, unless `--with-jpeg=no'.
12501 if test "${HAVE_X11}" = "yes" ||
test "${HAVE_W32}" = "yes"; then
12502 if test "${with_jpeg}" != "no"; then
12503 ac_fn_c_check_header_mongrel
"$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
12504 if test "x$ac_cv_header_jerror_h" = x
""yes; then :
12505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
12506 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
12507 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then :
12508 $as_echo_n "(cached) " >&6
12510 ac_check_lib_save_LIBS
=$LIBS
12511 LIBS
="-ljpeg $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 jpeg_destroy_compress ();
12525 return jpeg_destroy_compress ();
12530 if ac_fn_c_try_link
"$LINENO"; then :
12531 ac_cv_lib_jpeg_jpeg_destroy_compress
=yes
12533 ac_cv_lib_jpeg_jpeg_destroy_compress
=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_jpeg_jpeg_destroy_compress" >&5
12540 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
12541 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x
""yes; then :
12550 if test "${HAVE_JPEG}" = "yes"; then
12551 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
12553 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12554 /* end confdefs.h. */
12555 #include <jpeglib.h>
12556 version=JPEG_LIB_VERSION
12559 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12560 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev
/null
2>&1; then :
12561 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
12564 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
12565 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
12571 if test "${HAVE_JPEG}" = "yes"; then
12577 ### Use -lpng if available, unless `--with-png=no'.
12580 if test "${HAVE_X11}" = "yes" ||
test "${HAVE_W32}" = "yes"; then
12581 if test "${with_png}" != "no"; then
12582 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
12583 # in /usr/include/libpng.
12584 for ac_header
in png.h libpng
/png.h
12586 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12587 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12588 eval as_val
=\$
$as_ac_Header
12589 if test "x$as_val" = x
""yes; then :
12590 cat >>confdefs.h
<<_ACEOF
12591 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12598 if test "$ac_cv_header_png_h" = yes ||
test "$ac_cv_header_libpng_png_h" = yes ; then
12599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
12600 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
12601 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then :
12602 $as_echo_n "(cached) " >&6
12604 ac_check_lib_save_LIBS
=$LIBS
12605 LIBS
="-lpng -lz -lm $LIBS"
12606 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12607 /* end confdefs.h. */
12609 /* Override any GCC internal prototype to avoid an error.
12610 Use char because int might match the return type of a GCC
12611 builtin and then its argument prototype would still apply. */
12615 char png_get_channels ();
12619 return png_get_channels ();
12624 if ac_fn_c_try_link
"$LINENO"; then :
12625 ac_cv_lib_png_png_get_channels
=yes
12627 ac_cv_lib_png_png_get_channels
=no
12629 rm -f core conftest.err conftest.
$ac_objext \
12630 conftest
$ac_exeext conftest.
$ac_ext
12631 LIBS
=$ac_check_lib_save_LIBS
12633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
12634 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
12635 if test "x$ac_cv_lib_png_png_get_channels" = x
""yes; then :
12642 if test "${HAVE_PNG}" = "yes"; then
12644 $as_echo "#define HAVE_PNG 1" >>confdefs.h
12646 LIBPNG
="-lpng -lz -lm"
12648 ac_fn_c_check_decl
"$LINENO" "png_longjmp" "ac_cv_have_decl_png_longjmp" "#ifdef HAVE_LIBPNG_PNG_H
12649 # include <libpng/png.h>
12655 if test "x$ac_cv_have_decl_png_longjmp" = x
""yes; then :
12659 $as_echo "#define PNG_DEPSTRUCT /**/" >>confdefs.h
12667 ### Use -ltiff if available, unless `--with-tiff=no'.
12670 if test "${HAVE_X11}" = "yes" ||
test "${HAVE_W32}" = "yes"; then
12671 if test "${with_tiff}" != "no"; then
12672 ac_fn_c_check_header_mongrel
"$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
12673 if test "x$ac_cv_header_tiffio_h" = x
""yes; then :
12675 # At least one tiff package requires the jpeg library.
12676 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
12677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
12678 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
12679 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then :
12680 $as_echo_n "(cached) " >&6
12682 ac_check_lib_save_LIBS
=$LIBS
12683 LIBS
="-ltiff $tifflibs $LIBS"
12684 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12685 /* end confdefs.h. */
12687 /* Override any GCC internal prototype to avoid an error.
12688 Use char because int might match the return type of a GCC
12689 builtin and then its argument prototype would still apply. */
12693 char TIFFGetVersion ();
12697 return TIFFGetVersion ();
12702 if ac_fn_c_try_link
"$LINENO"; then :
12703 ac_cv_lib_tiff_TIFFGetVersion
=yes
12705 ac_cv_lib_tiff_TIFFGetVersion
=no
12707 rm -f core conftest.err conftest.
$ac_objext \
12708 conftest
$ac_exeext conftest.
$ac_ext
12709 LIBS
=$ac_check_lib_save_LIBS
12711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
12712 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
12713 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x
""yes; then :
12722 if test "${HAVE_TIFF}" = "yes"; then
12724 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
12731 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
12734 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no" \
12735 ||
test "${HAVE_W32}" = "yes"; then
12736 ac_fn_c_check_header_mongrel
"$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
12737 if test "x$ac_cv_header_gif_lib_h" = x
""yes; then :
12738 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
12739 # Earlier versions can crash Emacs.
12740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
12741 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
12742 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then :
12743 $as_echo_n "(cached) " >&6
12745 ac_check_lib_save_LIBS
=$LIBS
12747 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12748 /* end confdefs.h. */
12750 /* Override any GCC internal prototype to avoid an error.
12751 Use char because int might match the return type of a GCC
12752 builtin and then its argument prototype would still apply. */
12756 char EGifPutExtensionLast ();
12760 return EGifPutExtensionLast ();
12765 if ac_fn_c_try_link
"$LINENO"; then :
12766 ac_cv_lib_gif_EGifPutExtensionLast
=yes
12768 ac_cv_lib_gif_EGifPutExtensionLast
=no
12770 rm -f core conftest.err conftest.
$ac_objext \
12771 conftest
$ac_exeext conftest.
$ac_ext
12772 LIBS
=$ac_check_lib_save_LIBS
12774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
12775 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
12776 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x
""yes; then :
12786 if test "$HAVE_GIF" = yes; then
12788 elif test "$HAVE_GIF" = maybe
; then
12789 # If gif_lib.h but no libgif, try libungif.
12790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
12791 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
12792 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then :
12793 $as_echo_n "(cached) " >&6
12795 ac_check_lib_save_LIBS
=$LIBS
12796 LIBS
="-lungif $LIBS"
12797 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12798 /* end confdefs.h. */
12800 /* Override any GCC internal prototype to avoid an error.
12801 Use char because int might match the return type of a GCC
12802 builtin and then its argument prototype would still apply. */
12806 char EGifPutExtensionLast ();
12810 return EGifPutExtensionLast ();
12815 if ac_fn_c_try_link
"$LINENO"; then :
12816 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
12818 ac_cv_lib_ungif_EGifPutExtensionLast
=no
12820 rm -f core conftest.err conftest.
$ac_objext \
12821 conftest
$ac_exeext conftest.
$ac_ext
12822 LIBS
=$ac_check_lib_save_LIBS
12824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
12825 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
12826 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x
""yes; then :
12832 test "$HAVE_GIF" = yes && LIBGIF
=-lungif
12835 if test "${HAVE_GIF}" = "yes"; then
12837 $as_echo "#define HAVE_GIF 1" >>confdefs.h
12843 if test "${HAVE_X11}" = "yes"; then
12846 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
12847 MISSING
="libXpm" && WITH_NO
="--with-xpm=no"
12848 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
12849 MISSING
="$MISSING libjpeg" && WITH_NO
="$WITH_NO --with-jpeg=no"
12850 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
12851 MISSING
="$MISSING libpng" && WITH_NO
="$WITH_NO --with-png=no"
12852 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
12853 MISSING
="$MISSING libgif/libungif" && WITH_NO
="$WITH_NO --with-gif=no"
12854 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
12855 MISSING
="$MISSING libtiff" && WITH_NO
="$WITH_NO --with-tiff=no"
12857 if test "X${MISSING}" != X
; then
12858 as_fn_error
"The following required libraries were not found:
12860 Maybe some development libraries/packages are missing?
12861 If you don't want to link with them give
12863 as options to configure" "$LINENO" 5
12867 ### Use -lgpm if available, unless `--with-gpm=no'.
12870 if test "${with_gpm}" != "no"; then
12871 ac_fn_c_check_header_mongrel
"$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
12872 if test "x$ac_cv_header_gpm_h" = x
""yes; then :
12873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
12874 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
12875 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then :
12876 $as_echo_n "(cached) " >&6
12878 ac_check_lib_save_LIBS
=$LIBS
12880 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12881 /* end confdefs.h. */
12883 /* Override any GCC internal prototype to avoid an error.
12884 Use char because int might match the return type of a GCC
12885 builtin and then its argument prototype would still apply. */
12893 return Gpm_Open ();
12898 if ac_fn_c_try_link
"$LINENO"; then :
12899 ac_cv_lib_gpm_Gpm_Open
=yes
12901 ac_cv_lib_gpm_Gpm_Open
=no
12903 rm -f core conftest.err conftest.
$ac_objext \
12904 conftest
$ac_exeext conftest.
$ac_ext
12905 LIBS
=$ac_check_lib_save_LIBS
12907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
12908 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
12909 if test "x$ac_cv_lib_gpm_Gpm_Open" = x
""yes; then :
12917 if test "${HAVE_GPM}" = "yes"; then
12919 $as_echo "#define HAVE_GPM 1" >>confdefs.h
12931 ### Use NeXTstep API to implement GUI.
12932 if test "${HAVE_NS}" = "yes"; then
12934 $as_echo "#define HAVE_NS 1" >>confdefs.h
12936 if test "${NS_IMPL_COCOA}" = "yes"; then
12938 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
12941 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
12943 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
12945 # See also .m.o rule in Makefile.in */
12946 # FIXME: are all these flags really needed? Document here why. */
12947 GNUSTEP_CFLAGS
="-D_REENTRANT -fPIC -fno-strict-aliasing -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
12948 ## Extra CFLAGS applied to src/*.m files.
12949 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"
12951 # We also have mouse menus.
12956 if test "${HAVE_W32}" = "yes"; then
12960 ### Use session management (-lSM -lICE) if available
12963 if test "${HAVE_X11}" = "yes"; then
12964 ac_fn_c_check_header_mongrel
"$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
12965 if test "x$ac_cv_header_X11_SM_SMlib_h" = x
""yes; then :
12966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
12967 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
12968 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then :
12969 $as_echo_n "(cached) " >&6
12971 ac_check_lib_save_LIBS
=$LIBS
12972 LIBS
="-lSM -lICE $LIBS"
12973 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12974 /* end confdefs.h. */
12976 /* Override any GCC internal prototype to avoid an error.
12977 Use char because int might match the return type of a GCC
12978 builtin and then its argument prototype would still apply. */
12982 char SmcOpenConnection ();
12986 return SmcOpenConnection ();
12991 if ac_fn_c_try_link
"$LINENO"; then :
12992 ac_cv_lib_SM_SmcOpenConnection
=yes
12994 ac_cv_lib_SM_SmcOpenConnection
=no
12996 rm -f core conftest.err conftest.
$ac_objext \
12997 conftest
$ac_exeext conftest.
$ac_ext
12998 LIBS
=$ac_check_lib_save_LIBS
13000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
13001 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
13002 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x
""yes; then :
13010 if test "${HAVE_X_SM}" = "yes"; then
13012 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
13014 LIBXSM
="-lSM -lICE"
13017 *) LIBS
="$LIBXSM $LIBS" ;;
13023 ### Use libxml (-lxml2) if available
13025 if test "${with_xml2}" != "no"; then
13026 ### I'm not sure what the version number should be, so I just guessed.
13030 if test "$PKG_CONFIG" = "no" ; then
13033 PKG_CONFIG_MIN_VERSION
=0.9.0
13034 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.6.17" >&5
13036 $as_echo_n "checking for libxml-2.0 > 2.6.17... " >&6; }
13038 if $PKG_CONFIG --exists "libxml-2.0 > 2.6.17" 2>&5 &&
13039 LIBXML2_CFLAGS
=`$PKG_CONFIG --cflags "libxml-2.0 > 2.6.17" 2>&5` &&
13040 LIBXML2_LIBS
=`$PKG_CONFIG --libs "libxml-2.0 > 2.6.17" 2>&5`; then
13047 LIBXML2_CFLAGS
=`$as_echo "$LIBXML2_CFLAGS" | sed -e "$edit_cflags"`
13048 LIBXML2_LIBS
=`$as_echo "$LIBXML2_LIBS" | sed -e 's,///*,/,g'`
13049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBXML2_CFLAGS' LIBS='$LIBXML2_LIBS'" >&5
13050 $as_echo "yes CFLAGS='$LIBXML2_CFLAGS' LIBS='$LIBXML2_LIBS'" >&6; }
13053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13054 $as_echo "no" >&6; }
13057 ## If we have a custom action on failure, don't print errors, but
13058 ## do set a variable so people can do so. Do it in a subshell
13059 ## to capture any diagnostics in invoking pkg-config.
13060 LIBXML2_PKG_ERRORS
=`($PKG_CONFIG --print-errors "libxml-2.0 > 2.6.17") 2>&1`
13067 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13068 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13072 if test $succeeded = yes; then
13078 if test "${HAVE_LIBXML2}" = "yes"; then
13079 LIBS
="$LIBXML2_LIBS $LIBS"
13080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5
13081 $as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; }
13082 if test "${ac_cv_lib_xml2_htmlReadMemory+set}" = set; then :
13083 $as_echo_n "(cached) " >&6
13085 ac_check_lib_save_LIBS
=$LIBS
13086 LIBS
="-lxml2 $LIBS"
13087 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13088 /* end confdefs.h. */
13090 /* Override any GCC internal prototype to avoid an error.
13091 Use char because int might match the return type of a GCC
13092 builtin and then its argument prototype would still apply. */
13096 char htmlReadMemory ();
13100 return htmlReadMemory ();
13105 if ac_fn_c_try_link
"$LINENO"; then :
13106 ac_cv_lib_xml2_htmlReadMemory
=yes
13108 ac_cv_lib_xml2_htmlReadMemory
=no
13110 rm -f core conftest.err conftest.
$ac_objext \
13111 conftest
$ac_exeext conftest.
$ac_ext
13112 LIBS
=$ac_check_lib_save_LIBS
13114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5
13115 $as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; }
13116 if test "x$ac_cv_lib_xml2_htmlReadMemory" = x
""yes; then :
13122 if test "${HAVE_LIBXML2}" = "yes"; then
13124 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
13135 # If netdb.h doesn't declare h_errno, we must declare it by hand.
13136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
13137 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
13138 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then :
13139 $as_echo_n "(cached) " >&6
13141 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13142 /* end confdefs.h. */
13152 if ac_fn_c_try_link
"$LINENO"; then :
13153 emacs_cv_netdb_declares_h_errno
=yes
13155 emacs_cv_netdb_declares_h_errno
=no
13157 rm -f core conftest.err conftest.
$ac_objext \
13158 conftest
$ac_exeext conftest.
$ac_ext
13160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
13161 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
13162 if test $emacs_cv_netdb_declares_h_errno = yes; then
13164 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
13168 # sqrt and other floating-point functions such as fmod and frexp
13169 # are found in -lm on most systems.
13170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
13171 $as_echo_n "checking for sqrt in -lm... " >&6; }
13172 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
13173 $as_echo_n "(cached) " >&6
13175 ac_check_lib_save_LIBS
=$LIBS
13177 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13178 /* end confdefs.h. */
13180 /* Override any GCC internal prototype to avoid an error.
13181 Use char because int might match the return type of a GCC
13182 builtin and then its argument prototype would still apply. */
13195 if ac_fn_c_try_link
"$LINENO"; then :
13196 ac_cv_lib_m_sqrt
=yes
13198 ac_cv_lib_m_sqrt
=no
13200 rm -f core conftest.err conftest.
$ac_objext \
13201 conftest
$ac_exeext conftest.
$ac_ext
13202 LIBS
=$ac_check_lib_save_LIBS
13204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
13205 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
13206 if test "x$ac_cv_lib_m_sqrt" = x
""yes; then :
13207 cat >>confdefs.h
<<_ACEOF
13208 #define HAVE_LIBM 1
13216 # Check for mail-locking functions in a "mail" library. Probably this should
13217 # have the same check as for liblockfile below.
13218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
13219 $as_echo_n "checking for maillock in -lmail... " >&6; }
13220 if test "${ac_cv_lib_mail_maillock+set}" = set; then :
13221 $as_echo_n "(cached) " >&6
13223 ac_check_lib_save_LIBS
=$LIBS
13224 LIBS
="-lmail $LIBS"
13225 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13226 /* end confdefs.h. */
13228 /* Override any GCC internal prototype to avoid an error.
13229 Use char because int might match the return type of a GCC
13230 builtin and then its argument prototype would still apply. */
13238 return maillock ();
13243 if ac_fn_c_try_link
"$LINENO"; then :
13244 ac_cv_lib_mail_maillock
=yes
13246 ac_cv_lib_mail_maillock
=no
13248 rm -f core conftest.err conftest.
$ac_objext \
13249 conftest
$ac_exeext conftest.
$ac_ext
13250 LIBS
=$ac_check_lib_save_LIBS
13252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
13253 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
13254 if test "x$ac_cv_lib_mail_maillock" = x
""yes; then :
13260 if test $have_mail = yes; then
13262 LIBS
="$LIBS_MAIL $LIBS"
13264 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
13269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
13270 $as_echo_n "checking for maillock in -llockfile... " >&6; }
13271 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then :
13272 $as_echo_n "(cached) " >&6
13274 ac_check_lib_save_LIBS
=$LIBS
13275 LIBS
="-llockfile $LIBS"
13276 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13277 /* end confdefs.h. */
13279 /* Override any GCC internal prototype to avoid an error.
13280 Use char because int might match the return type of a GCC
13281 builtin and then its argument prototype would still apply. */
13289 return maillock ();
13294 if ac_fn_c_try_link
"$LINENO"; then :
13295 ac_cv_lib_lockfile_maillock
=yes
13297 ac_cv_lib_lockfile_maillock
=no
13299 rm -f core conftest.err conftest.
$ac_objext \
13300 conftest
$ac_exeext conftest.
$ac_ext
13301 LIBS
=$ac_check_lib_save_LIBS
13303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
13304 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
13305 if test "x$ac_cv_lib_lockfile_maillock" = x
""yes; then :
13311 if test $have_lockfile = yes; then
13312 LIBS_MAIL
=-llockfile
13313 LIBS
="$LIBS_MAIL $LIBS"
13315 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
13318 # If we have the shared liblockfile, assume we must use it for mail
13319 # locking (e.g. Debian). If we couldn't link against liblockfile
13320 # (no liblockfile.a installed), ensure that we don't need to.
13321 # Extract the first word of "liblockfile.so", so it can be a program name with args.
13322 set dummy liblockfile.so
; ac_word
=$2
13323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13324 $as_echo_n "checking for $ac_word... " >&6; }
13325 if test "${ac_cv_prog_liblockfile+set}" = set; then :
13326 $as_echo_n "(cached) " >&6
13328 if test -n "$liblockfile"; then
13329 ac_cv_prog_liblockfile
="$liblockfile" # Let the user override the test.
13331 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13332 as_dummy
="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
13333 for as_dir
in $as_dummy
13336 test -z "$as_dir" && as_dir
=.
13337 for ac_exec_ext
in '' $ac_executable_extensions; do
13338 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13339 ac_cv_prog_liblockfile
="yes"
13340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13347 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile
="no"
13350 liblockfile
=$ac_cv_prog_liblockfile
13351 if test -n "$liblockfile"; then
13352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
13353 $as_echo "$liblockfile" >&6; }
13355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13356 $as_echo "no" >&6; }
13360 if test $ac_cv_prog_liblockfile = yes; then
13361 as_fn_error
"Shared liblockfile found but can't link against it.
13362 This probably means that movemail could lose mail.
13363 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
13371 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
13372 ## interlock access to the mail spool. The alternative is a lock file named
13373 ## /usr/spool/mail/$USER.lock.
13376 aix4-2
) mail_lock
="lockf" ;;
13378 gnu|freebsd|netbsd|openbsd|darwin|irix6-5
) mail_lock
="flock" ;;
13380 ## On GNU/Linux systems, both methods are used by various mail programs.
13381 ## I assume most people are using newer mailers that have heard of flock.
13382 ## Change this if you need to.
13383 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
13384 ## configure gets the right answers, and that means *NOT* using flock.
13385 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
13386 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
13387 ## Debian maintainer hasn't provided a clean fix for Emacs.
13388 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
13389 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
13390 ## correct logic. -- fx
13391 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
13392 ## liblockfile is a Free Software replacement for libmail, used on
13393 ## Debian systems and elsewhere. -rfr.
13396 if test $have_mail = yes ||
test $have_lockfile = yes; then
13397 test $ac_cv_header_maillock_h = yes && mail_lock
=no
13403 case "$mail_lock" in
13405 $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
13409 $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
13412 *) BLESSMAIL_TARGET
="need-blessmail" ;;
13417 for ac_func
in gethostname \
13418 closedir getrusage get_current_dir_name \
13420 fpathconf
select euidaccess getpagesize setlocale \
13421 utimes getrlimit setrlimit setpgid getcwd shutdown getaddrinfo \
13422 __fpending strsignal setitimer \
13423 sendto recvfrom getsockname getpeername getifaddrs freeifaddrs \
13424 gai_strerror mkstemp getline getdelim fsync sync \
13425 difftime posix_memalign \
13426 getpwent endpwent getgrent endgrent \
13428 cfmakeraw cfsetspeed copysign __executable_start
13430 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13431 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13432 eval as_val
=\$
$as_ac_var
13433 if test "x$as_val" = x
""yes; then :
13434 cat >>confdefs.h
<<_ACEOF
13435 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13442 if test $opsys = unixware
; then
13444 $as_echo "#define BROKEN_GETWD 1" >>confdefs.h
13447 for ac_func
in getwd
13449 ac_fn_c_check_func
"$LINENO" "getwd" "ac_cv_func_getwd"
13450 if test "x$ac_cv_func_getwd" = x
""yes; then :
13451 cat >>confdefs.h
<<_ACEOF
13452 #define HAVE_GETWD 1
13460 ## Eric Backus <ericb@lsid.hp.com> says, HP-UX 9.x on HP 700 machines
13461 ## has a broken `rint' in some library versions including math library
13462 ## version number A.09.05.
13463 ## You can fix the math library by installing patch number PHSS_4630.
13464 ## But we can fix it more reliably for Emacs by just not using rint.
13465 ## We also skip HAVE_RANDOM - see comments in src/conf_post.h.
13468 *) for ac_func
in random rint
13470 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13471 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13472 eval as_val
=\$
$as_ac_var
13473 if test "x$as_val" = x
""yes; then :
13474 cat >>confdefs.h
<<_ACEOF
13475 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unwind_init" >&5
13484 $as_echo_n "checking for __builtin_unwind_init... " >&6; }
13485 if test "${emacs_cv_func___builtin_unwind_init+set}" = set; then :
13486 $as_echo_n "(cached) " >&6
13488 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13489 /* end confdefs.h. */
13494 __builtin_unwind_init ();
13499 if ac_fn_c_try_link
"$LINENO"; then :
13500 emacs_cv_func___builtin_unwind_init
=yes
13502 emacs_cv_func___builtin_unwind_init
=no
13504 rm -f core conftest.err conftest.
$ac_objext \
13505 conftest
$ac_exeext conftest.
$ac_ext
13507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func___builtin_unwind_init" >&5
13508 $as_echo "$emacs_cv_func___builtin_unwind_init" >&6; }
13509 if test $emacs_cv_func___builtin_unwind_init = yes; then
13511 $as_echo "#define HAVE___BUILTIN_UNWIND_INIT 1" >>confdefs.h
13519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13520 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
13521 if test "${ac_cv_sys_largefile_source+set}" = set; then :
13522 $as_echo_n "(cached) " >&6
13525 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13526 /* end confdefs.h. */
13527 #include <sys/types.h> /* for off_t */
13532 int (*fp) (FILE *, off_t, int) = fseeko;
13533 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13538 if ac_fn_c_try_link
"$LINENO"; then :
13539 ac_cv_sys_largefile_source
=no
; break
13541 rm -f core conftest.err conftest.
$ac_objext \
13542 conftest
$ac_exeext conftest.
$ac_ext
13543 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13544 /* end confdefs.h. */
13545 #define _LARGEFILE_SOURCE 1
13546 #include <sys/types.h> /* for off_t */
13551 int (*fp) (FILE *, off_t, int) = fseeko;
13552 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13557 if ac_fn_c_try_link
"$LINENO"; then :
13558 ac_cv_sys_largefile_source
=1; break
13560 rm -f core conftest.err conftest.
$ac_objext \
13561 conftest
$ac_exeext conftest.
$ac_ext
13562 ac_cv_sys_largefile_source
=unknown
13566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
13567 $as_echo "$ac_cv_sys_largefile_source" >&6; }
13568 case $ac_cv_sys_largefile_source in #(
13571 cat >>confdefs.h
<<_ACEOF
13572 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13578 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13579 # in glibc 2.1.3, but that breaks too many other things.
13580 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13581 if test $ac_cv_sys_largefile_source != unknown
; then
13583 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
13588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
13589 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
13590 if test "${ac_cv_func_getpgrp_void+set}" = set; then :
13591 $as_echo_n "(cached) " >&6
13593 # Use it with a single arg.
13594 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13595 /* end confdefs.h. */
13596 $ac_includes_default
13605 if ac_fn_c_try_compile
"$LINENO"; then :
13606 ac_cv_func_getpgrp_void
=no
13608 ac_cv_func_getpgrp_void
=yes
13610 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
13614 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
13615 if test $ac_cv_func_getpgrp_void = yes; then
13617 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
13623 for ac_func
in grantpt
13625 ac_fn_c_check_func
"$LINENO" "grantpt" "ac_cv_func_grantpt"
13626 if test "x$ac_cv_func_grantpt" = x
""yes; then :
13627 cat >>confdefs.h
<<_ACEOF
13628 #define HAVE_GRANTPT 1
13635 # PTY-related GNU extensions.
13636 for ac_func
in getpt posix_openpt
13638 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13639 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13640 eval as_val
=\$
$as_ac_var
13641 if test "x$as_val" = x
""yes; then :
13642 cat >>confdefs.h
<<_ACEOF
13643 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13650 # Check this now, so that we will NOT find the above functions in ncurses.
13651 # That is because we have not set up to link ncurses in lib-src.
13652 # It's better to believe a function is not available
13653 # than to expect to find it in ncurses.
13654 # Also we need tputs and friends to be able to build at all.
13655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
13656 $as_echo_n "checking for library containing tputs... " >&6; }
13657 # Run a test program that contains a call to tputs, a call that is
13658 # never executed. This tests whether a pre-'main' dynamic linker
13659 # works with the library. It's too much trouble to actually call
13660 # tputs in the test program, due to portability hassles. When
13661 # cross-compiling, assume the test program will run if it links.
13663 # Maybe curses should be tried earlier?
13664 # See http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9736#35
13665 for tputs_library
in '' tinfo ncurses terminfo termcap curses
; do
13667 if test -z "$tputs_library"; then
13669 msg
='none required'
13671 LIBS_TERMCAP
=-l$tputs_library
13673 LIBS
="$LIBS_TERMCAP $LIBS"
13675 if test "$cross_compiling" = yes; then :
13676 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13677 /* end confdefs.h. */
13679 extern void tputs (const char *, int, int (*)(int));
13680 int main (int argc, char **argv)
13683 tputs (argv[0], 0, 0);
13688 if ac_fn_c_try_link
"$LINENO"; then :
13693 rm -f core conftest.err conftest.
$ac_objext \
13694 conftest
$ac_exeext conftest.
$ac_ext
13696 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13697 /* end confdefs.h. */
13699 extern void tputs (const char *, int, int (*)(int));
13700 int main (int argc, char **argv)
13703 tputs (argv[0], 0, 0);
13708 if ac_fn_c_try_run
"$LINENO"; then :
13713 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13714 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13718 if test "X$msg" != Xno
; then
13722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5
13723 $as_echo "$msg" >&6; }
13724 if test "X$msg" = Xno
; then
13725 as_fn_error
"The required function \`tputs' was not found in any library.
13726 The following libraries were tried (in order):
13727 libtinfo, libncurses, libterminfo, libtermcap, libcurses
13728 Please try installing whichever of these libraries is most appropriate
13729 for your system, together with its header files.
13730 For example, a libncurses-dev(el) or similar package." "$LINENO" 5
13733 ## Use termcap instead of terminfo?
13734 ## Only true for: freebsd < 40000, ms-w32, msdos, netbsd < 599002500.
13736 ## FIXME? In the cases below where we unconditionally set
13737 ## LIBS_TERMCAP="-lncurses", this overrides LIBS_TERMCAP = -ltinfo,
13738 ## if that was found above to have tputs.
13739 ## Should we use the gnu* logic everywhere?
13741 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
13742 ## The ncurses library has been moved out of the System framework in
13743 ## Mac OS X 10.2. So if configure detects it, set the command-line
13744 ## option to use it.
13745 darwin
) LIBS_TERMCAP
="-lncurses" ;;
13747 gnu
*) test -z "$LIBS_TERMCAP" && LIBS_TERMCAP
="-lncurses" ;;
13750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
13751 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
13752 if test "${emacs_cv_freebsd_terminfo+set}" = set; then :
13753 $as_echo_n "(cached) " >&6
13755 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13756 /* end confdefs.h. */
13757 #include <osreldate.h>
13761 #if __FreeBSD_version < 400000
13769 if ac_fn_c_try_link
"$LINENO"; then :
13770 emacs_cv_freebsd_terminfo
=yes
13772 emacs_cv_freebsd_terminfo
=no
13774 rm -f core conftest.err conftest.
$ac_objext \
13775 conftest
$ac_exeext conftest.
$ac_ext
13779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
13780 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
13782 if test $emacs_cv_freebsd_terminfo = yes; then
13783 LIBS_TERMCAP
="-lncurses"
13786 LIBS_TERMCAP
="-ltermcap"
13791 if test "x$LIBS_TERMCAP" != "x-lterminfo"; then
13793 LIBS_TERMCAP
="-ltermcap"
13797 openbsd
) LIBS_TERMCAP
="-lncurses" ;;
13799 ## hpux: Make sure we get select from libc rather than from libcurses
13800 ## because libcurses on HPUX 10.10 has a broken version of select.
13801 ## We used to use -lc -lcurses, but this may be cleaner.
13802 ## FIXME? But TERMINFO = yes on hpux (it used to be explicitly
13803 # set that way, now it uses the default). Isn't this a contradiction?
13804 hpux
*) LIBS_TERMCAP
="-ltermcap" ;;
13808 TERMCAP_OBJ
=tparam.o
13809 if test $TERMINFO = yes; then
13811 $as_echo "#define TERMINFO 1" >>confdefs.h
13813 TERMCAP_OBJ
=terminfo.o
13819 # Do we have res_init, for detecting changes in /etc/resolv.conf?
13820 # On Darwin, res_init appears not to be useful: see bug#562 and
13821 # http://lists.gnu.org/archive/html/emacs-devel/2007-11/msg01467.html
13824 if test $opsys != darwin
; then
13826 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13827 /* end confdefs.h. */
13828 #include <netinet/in.h>
13829 #include <arpa/nameser.h>
13830 #include <resolv.h>
13839 if ac_fn_c_try_link
"$LINENO"; then :
13844 rm -f core conftest.err conftest.
$ac_objext \
13845 conftest
$ac_exeext conftest.
$ac_ext
13846 if test "$have_res_init" = no
; then
13848 LIBS
="$LIBS -lresolv"
13849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
13850 $as_echo_n "checking for res_init with -lresolv... " >&6; }
13851 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13852 /* end confdefs.h. */
13853 #include <netinet/in.h>
13854 #include <arpa/nameser.h>
13855 #include <resolv.h>
13864 if ac_fn_c_try_link
"$LINENO"; then :
13869 rm -f core conftest.err conftest.
$ac_objext \
13870 conftest
$ac_exeext conftest.
$ac_ext
13871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
13872 $as_echo "$have_res_init" >&6; }
13873 if test "$have_res_init" = yes ; then
13879 if test "$have_res_init" = yes; then
13881 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
13885 # Do we need the Hesiod library to provide the support routines?
13887 if test "$with_hesiod" != no
; then
13888 # Don't set $LIBS here -- see comments above. FIXME which comments?
13889 ac_fn_c_check_func
"$LINENO" "res_send" "ac_cv_func_res_send"
13890 if test "x$ac_cv_func_res_send" = x
""yes; then :
13893 ac_fn_c_check_func
"$LINENO" "__res_send" "ac_cv_func___res_send"
13894 if test "x$ac_cv_func___res_send" = x
""yes; then :
13897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
13898 $as_echo_n "checking for res_send in -lresolv... " >&6; }
13899 if test "${ac_cv_lib_resolv_res_send+set}" = set; then :
13900 $as_echo_n "(cached) " >&6
13902 ac_check_lib_save_LIBS
=$LIBS
13903 LIBS
="-lresolv $LIBS"
13904 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13905 /* end confdefs.h. */
13907 /* Override any GCC internal prototype to avoid an error.
13908 Use char because int might match the return type of a GCC
13909 builtin and then its argument prototype would still apply. */
13917 return res_send ();
13922 if ac_fn_c_try_link
"$LINENO"; then :
13923 ac_cv_lib_resolv_res_send
=yes
13925 ac_cv_lib_resolv_res_send
=no
13927 rm -f core conftest.err conftest.
$ac_objext \
13928 conftest
$ac_exeext conftest.
$ac_ext
13929 LIBS
=$ac_check_lib_save_LIBS
13931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
13932 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
13933 if test "x$ac_cv_lib_resolv_res_send" = x
""yes; then :
13936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
13937 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
13938 if test "${ac_cv_lib_resolv___res_send+set}" = set; then :
13939 $as_echo_n "(cached) " >&6
13941 ac_check_lib_save_LIBS
=$LIBS
13942 LIBS
="-lresolv $LIBS"
13943 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13944 /* end confdefs.h. */
13946 /* Override any GCC internal prototype to avoid an error.
13947 Use char because int might match the return type of a GCC
13948 builtin and then its argument prototype would still apply. */
13952 char __res_send ();
13956 return __res_send ();
13961 if ac_fn_c_try_link
"$LINENO"; then :
13962 ac_cv_lib_resolv___res_send
=yes
13964 ac_cv_lib_resolv___res_send
=no
13966 rm -f core conftest.err conftest.
$ac_objext \
13967 conftest
$ac_exeext conftest.
$ac_ext
13968 LIBS
=$ac_check_lib_save_LIBS
13970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
13971 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
13972 if test "x$ac_cv_lib_resolv___res_send" = x
""yes; then :
13982 if test "$resolv" = yes ; then
13987 ac_fn_c_check_func
"$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
13988 if test "x$ac_cv_func_hes_getmailhost" = x
""yes; then :
13991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
13992 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
13993 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then :
13994 $as_echo_n "(cached) " >&6
13996 ac_check_lib_save_LIBS
=$LIBS
13997 LIBS
="-lhesiod $RESOLVLIB $LIBS"
13998 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13999 /* end confdefs.h. */
14001 /* Override any GCC internal prototype to avoid an error.
14002 Use char because int might match the return type of a GCC
14003 builtin and then its argument prototype would still apply. */
14007 char hes_getmailhost ();
14011 return hes_getmailhost ();
14016 if ac_fn_c_try_link
"$LINENO"; then :
14017 ac_cv_lib_hesiod_hes_getmailhost
=yes
14019 ac_cv_lib_hesiod_hes_getmailhost
=no
14021 rm -f core conftest.err conftest.
$ac_objext \
14022 conftest
$ac_exeext conftest.
$ac_ext
14023 LIBS
=$ac_check_lib_save_LIBS
14025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
14026 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
14027 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x
""yes; then :
14036 if test x
"$hesiod" = xyes
; then
14038 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
14045 # Do we need libresolv (due to res_init or Hesiod)?
14046 if test "$resolv" = yes && test $opsys != darwin
; then
14048 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
14056 # These tell us which Kerberos-related libraries to use.
14063 if test "${with_kerberos}" != no
; then
14064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
14065 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
14066 if test "${ac_cv_lib_com_err_com_err+set}" = set; then :
14067 $as_echo_n "(cached) " >&6
14069 ac_check_lib_save_LIBS
=$LIBS
14070 LIBS
="-lcom_err $LIBS"
14071 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14072 /* end confdefs.h. */
14074 /* Override any GCC internal prototype to avoid an error.
14075 Use char because int might match the return type of a GCC
14076 builtin and then its argument prototype would still apply. */
14089 if ac_fn_c_try_link
"$LINENO"; then :
14090 ac_cv_lib_com_err_com_err
=yes
14092 ac_cv_lib_com_err_com_err
=no
14094 rm -f core conftest.err conftest.
$ac_objext \
14095 conftest
$ac_exeext conftest.
$ac_ext
14096 LIBS
=$ac_check_lib_save_LIBS
14098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
14099 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
14100 if test "x$ac_cv_lib_com_err_com_err" = x
""yes; then :
14106 if test $have_com_err = yes; then
14107 COM_ERRLIB
=-lcom_err
14108 LIBS
="$COM_ERRLIB $LIBS"
14110 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
14113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
14114 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
14115 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then :
14116 $as_echo_n "(cached) " >&6
14118 ac_check_lib_save_LIBS
=$LIBS
14119 LIBS
="-lcrypto $LIBS"
14120 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14121 /* end confdefs.h. */
14123 /* Override any GCC internal prototype to avoid an error.
14124 Use char because int might match the return type of a GCC
14125 builtin and then its argument prototype would still apply. */
14129 char mit_des_cbc_encrypt ();
14133 return mit_des_cbc_encrypt ();
14138 if ac_fn_c_try_link
"$LINENO"; then :
14139 ac_cv_lib_crypto_mit_des_cbc_encrypt
=yes
14141 ac_cv_lib_crypto_mit_des_cbc_encrypt
=no
14143 rm -f core conftest.err conftest.
$ac_objext \
14144 conftest
$ac_exeext conftest.
$ac_ext
14145 LIBS
=$ac_check_lib_save_LIBS
14147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
14148 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
14149 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x
""yes; then :
14155 if test $have_crypto = yes; then
14157 LIBS
="$CRYPTOLIB $LIBS"
14159 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
14162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
14163 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
14164 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then :
14165 $as_echo_n "(cached) " >&6
14167 ac_check_lib_save_LIBS
=$LIBS
14168 LIBS
="-lk5crypto $LIBS"
14169 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14170 /* end confdefs.h. */
14172 /* Override any GCC internal prototype to avoid an error.
14173 Use char because int might match the return type of a GCC
14174 builtin and then its argument prototype would still apply. */
14178 char mit_des_cbc_encrypt ();
14182 return mit_des_cbc_encrypt ();
14187 if ac_fn_c_try_link
"$LINENO"; then :
14188 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=yes
14190 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=no
14192 rm -f core conftest.err conftest.
$ac_objext \
14193 conftest
$ac_exeext conftest.
$ac_ext
14194 LIBS
=$ac_check_lib_save_LIBS
14196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
14197 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
14198 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x
""yes; then :
14204 if test $have_k5crypto = yes; then
14205 CRYPTOLIB
=-lk5crypto
14206 LIBS
="$CRYPTOLIB $LIBS"
14208 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
14211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
14212 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
14213 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then :
14214 $as_echo_n "(cached) " >&6
14216 ac_check_lib_save_LIBS
=$LIBS
14217 LIBS
="-lkrb5 $LIBS"
14218 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14219 /* end confdefs.h. */
14221 /* Override any GCC internal prototype to avoid an error.
14222 Use char because int might match the return type of a GCC
14223 builtin and then its argument prototype would still apply. */
14227 char krb5_init_context ();
14231 return krb5_init_context ();
14236 if ac_fn_c_try_link
"$LINENO"; then :
14237 ac_cv_lib_krb5_krb5_init_context
=yes
14239 ac_cv_lib_krb5_krb5_init_context
=no
14241 rm -f core conftest.err conftest.
$ac_objext \
14242 conftest
$ac_exeext conftest.
$ac_ext
14243 LIBS
=$ac_check_lib_save_LIBS
14245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
14246 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
14247 if test "x$ac_cv_lib_krb5_krb5_init_context" = x
""yes; then :
14253 if test $have_krb5=yes; then
14255 LIBS
="$KRB5LIB $LIBS"
14257 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
14260 if test "${with_kerberos5}" = no
; then
14261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
14262 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
14263 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
14264 $as_echo_n "(cached) " >&6
14266 ac_check_lib_save_LIBS
=$LIBS
14267 LIBS
="-ldes425 $LIBS"
14268 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14269 /* end confdefs.h. */
14271 /* Override any GCC internal prototype to avoid an error.
14272 Use char because int might match the return type of a GCC
14273 builtin and then its argument prototype would still apply. */
14277 char des_cbc_encrypt ();
14281 return des_cbc_encrypt ();
14286 if ac_fn_c_try_link
"$LINENO"; then :
14287 ac_cv_lib_des425_des_cbc_encrypt
=yes
14289 ac_cv_lib_des425_des_cbc_encrypt
=no
14291 rm -f core conftest.err conftest.
$ac_objext \
14292 conftest
$ac_exeext conftest.
$ac_ext
14293 LIBS
=$ac_check_lib_save_LIBS
14295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
14296 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
14297 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x
""yes; then :
14303 if test $have_des425 = yes; then
14305 LIBS
="$DESLIB $LIBS"
14307 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
14310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
14311 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
14312 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
14313 $as_echo_n "(cached) " >&6
14315 ac_check_lib_save_LIBS
=$LIBS
14317 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14318 /* end confdefs.h. */
14320 /* Override any GCC internal prototype to avoid an error.
14321 Use char because int might match the return type of a GCC
14322 builtin and then its argument prototype would still apply. */
14326 char des_cbc_encrypt ();
14330 return des_cbc_encrypt ();
14335 if ac_fn_c_try_link
"$LINENO"; then :
14336 ac_cv_lib_des_des_cbc_encrypt
=yes
14338 ac_cv_lib_des_des_cbc_encrypt
=no
14340 rm -f core conftest.err conftest.
$ac_objext \
14341 conftest
$ac_exeext conftest.
$ac_ext
14342 LIBS
=$ac_check_lib_save_LIBS
14344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
14345 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
14346 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x
""yes; then :
14352 if test $have_des = yes; then
14354 LIBS
="$DESLIB $LIBS"
14356 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
14360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
14361 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
14362 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then :
14363 $as_echo_n "(cached) " >&6
14365 ac_check_lib_save_LIBS
=$LIBS
14366 LIBS
="-lkrb4 $LIBS"
14367 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14368 /* end confdefs.h. */
14370 /* Override any GCC internal prototype to avoid an error.
14371 Use char because int might match the return type of a GCC
14372 builtin and then its argument prototype would still apply. */
14376 char krb_get_cred ();
14380 return krb_get_cred ();
14385 if ac_fn_c_try_link
"$LINENO"; then :
14386 ac_cv_lib_krb4_krb_get_cred
=yes
14388 ac_cv_lib_krb4_krb_get_cred
=no
14390 rm -f core conftest.err conftest.
$ac_objext \
14391 conftest
$ac_exeext conftest.
$ac_ext
14392 LIBS
=$ac_check_lib_save_LIBS
14394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
14395 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
14396 if test "x$ac_cv_lib_krb4_krb_get_cred" = x
""yes; then :
14402 if test $have_krb4 = yes; then
14404 LIBS
="$KRB4LIB $LIBS"
14406 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
14409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
14410 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
14411 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then :
14412 $as_echo_n "(cached) " >&6
14414 ac_check_lib_save_LIBS
=$LIBS
14416 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14417 /* end confdefs.h. */
14419 /* Override any GCC internal prototype to avoid an error.
14420 Use char because int might match the return type of a GCC
14421 builtin and then its argument prototype would still apply. */
14425 char krb_get_cred ();
14429 return krb_get_cred ();
14434 if ac_fn_c_try_link
"$LINENO"; then :
14435 ac_cv_lib_krb_krb_get_cred
=yes
14437 ac_cv_lib_krb_krb_get_cred
=no
14439 rm -f core conftest.err conftest.
$ac_objext \
14440 conftest
$ac_exeext conftest.
$ac_ext
14441 LIBS
=$ac_check_lib_save_LIBS
14443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
14444 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
14445 if test "x$ac_cv_lib_krb_krb_get_cred" = x
""yes; then :
14451 if test $have_krb = yes; then
14453 LIBS
="$KRB4LIB $LIBS"
14455 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
14461 if test "${with_kerberos5}" != no
; then
14462 for ac_header
in krb5.h
14464 ac_fn_c_check_header_mongrel
"$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
14465 if test "x$ac_cv_header_krb5_h" = x
""yes; then :
14466 cat >>confdefs.h
<<_ACEOF
14467 #define HAVE_KRB5_H 1
14469 ac_fn_c_check_member
"$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
14471 if test "x$ac_cv_member_krb5_error_text" = x
""yes; then :
14473 cat >>confdefs.h
<<_ACEOF
14474 #define HAVE_KRB5_ERROR_TEXT 1
14479 ac_fn_c_check_member
"$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
14481 if test "x$ac_cv_member_krb5_error_e_text" = x
""yes; then :
14483 cat >>confdefs.h
<<_ACEOF
14484 #define HAVE_KRB5_ERROR_E_TEXT 1
14495 for ac_header
in des.h
14497 ac_fn_c_check_header_mongrel
"$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
14498 if test "x$ac_cv_header_des_h" = x
""yes; then :
14499 cat >>confdefs.h
<<_ACEOF
14500 #define HAVE_DES_H 1
14504 for ac_header
in kerberosIV
/des.h
14506 ac_fn_c_check_header_mongrel
"$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
14507 if test "x$ac_cv_header_kerberosIV_des_h" = x
""yes; then :
14508 cat >>confdefs.h
<<_ACEOF
14509 #define HAVE_KERBEROSIV_DES_H 1
14513 for ac_header
in kerberos
/des.h
14515 ac_fn_c_check_header_mongrel
"$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
14516 if test "x$ac_cv_header_kerberos_des_h" = x
""yes; then :
14517 cat >>confdefs.h
<<_ACEOF
14518 #define HAVE_KERBEROS_DES_H 1
14533 for ac_header
in krb.h
14535 ac_fn_c_check_header_mongrel
"$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
14536 if test "x$ac_cv_header_krb_h" = x
""yes; then :
14537 cat >>confdefs.h
<<_ACEOF
14538 #define HAVE_KRB_H 1
14542 for ac_header
in kerberosIV
/krb.h
14544 ac_fn_c_check_header_mongrel
"$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
14545 if test "x$ac_cv_header_kerberosIV_krb_h" = x
""yes; then :
14546 cat >>confdefs.h
<<_ACEOF
14547 #define HAVE_KERBEROSIV_KRB_H 1
14551 for ac_header
in kerberos
/krb.h
14553 ac_fn_c_check_header_mongrel
"$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
14554 if test "x$ac_cv_header_kerberos_krb_h" = x
""yes; then :
14555 cat >>confdefs.h
<<_ACEOF
14556 #define HAVE_KERBEROS_KRB_H 1
14572 for ac_header
in com_err.h
14574 ac_fn_c_check_header_mongrel
"$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
14575 if test "x$ac_cv_header_com_err_h" = x
""yes; then :
14576 cat >>confdefs.h
<<_ACEOF
14577 #define HAVE_COM_ERR_H 1
14595 for ac_func
in $ac_func_list
14597 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14598 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
14599 eval as_val
=\$
$as_ac_var
14600 if test "x$as_val" = x
""yes; then :
14601 cat >>confdefs.h
<<_ACEOF
14602 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
14612 $as_echo_n "checking whether localtime caches TZ... " >&6; }
14613 if test "${emacs_cv_localtime_cache+set}" = set; then :
14614 $as_echo_n "(cached) " >&6
14616 if test x
$ac_cv_func_tzset = xyes
; then
14617 if test "$cross_compiling" = yes; then :
14618 # If we have tzset, assume the worst when cross-compiling.
14619 emacs_cv_localtime_cache
=yes
14621 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14622 /* end confdefs.h. */
14624 char TZ_GMT0[] = "TZ=GMT0";
14625 char TZ_PST8[] = "TZ=PST8";
14628 time_t now = time ((time_t *) 0);
14629 int hour_GMT0, hour_unset;
14630 if (putenv (TZ_GMT0) != 0)
14632 hour_GMT0 = localtime (&now)->tm_hour;
14634 hour_unset = localtime (&now)->tm_hour;
14635 if (putenv (TZ_PST8) != 0)
14637 if (localtime (&now)->tm_hour == hour_GMT0)
14640 if (localtime (&now)->tm_hour != hour_unset)
14645 if ac_fn_c_try_run
"$LINENO"; then :
14646 emacs_cv_localtime_cache
=no
14648 emacs_cv_localtime_cache
=yes
14650 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14651 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14655 # If we lack tzset, report that localtime does not cache TZ,
14656 # since we can't invalidate the cache if we don't have tzset.
14657 emacs_cv_localtime_cache
=no
14660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
14661 $as_echo "$emacs_cv_localtime_cache" >&6; }
14662 if test $emacs_cv_localtime_cache = yes; then
14664 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
14669 ac_fn_c_check_func
"$LINENO" "socket" "ac_cv_func_socket"
14670 if test "x$ac_cv_func_socket" = x
""yes; then :
14676 if test $ok_so_far = yes; then
14677 ac_fn_c_check_header_mongrel
"$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
14678 if test "x$ac_cv_header_netinet_in_h" = x
""yes; then :
14686 if test $ok_so_far = yes; then
14687 ac_fn_c_check_header_mongrel
"$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
14688 if test "x$ac_cv_header_arpa_inet_h" = x
""yes; then :
14696 if test $ok_so_far = yes; then
14698 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
14702 if test -f /usr
/lpp
/X11
/bin
/smt.exp
; then
14704 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
14708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
14709 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
14710 if test -d /dev
/pts
&& ls -d /dev
/ptmx
> /dev
/null
2>&1 ; then
14711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14712 $as_echo "yes" >&6; }
14714 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
14717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14718 $as_echo "no" >&6; }
14722 *-solaris2.4 |
*-solaris2.4.
*)
14723 : ${ac_cv_func_vfork_works=no};;
14726 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
14727 if test "x$ac_cv_type_pid_t" = x
""yes; then :
14731 cat >>confdefs.h
<<_ACEOF
14737 for ac_header
in vfork.h
14739 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
14740 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
14741 cat >>confdefs.h
<<_ACEOF
14742 #define HAVE_VFORK_H 1
14749 for ac_func
in fork vfork
14751 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14752 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
14753 eval as_val
=\$
$as_ac_var
14754 if test "x$as_val" = x
""yes; then :
14755 cat >>confdefs.h
<<_ACEOF
14756 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14762 if test "x$ac_cv_func_fork" = xyes
; then
14763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
14764 $as_echo_n "checking for working fork... " >&6; }
14765 if test "${ac_cv_func_fork_works+set}" = set; then :
14766 $as_echo_n "(cached) " >&6
14768 if test "$cross_compiling" = yes; then :
14769 ac_cv_func_fork_works
=cross
14771 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14772 /* end confdefs.h. */
14773 $ac_includes_default
14778 /* By Ruediger Kuhlmann. */
14779 return fork () < 0;
14785 if ac_fn_c_try_run
"$LINENO"; then :
14786 ac_cv_func_fork_works
=yes
14788 ac_cv_func_fork_works
=no
14790 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14791 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
14796 $as_echo "$ac_cv_func_fork_works" >&6; }
14799 ac_cv_func_fork_works
=$ac_cv_func_fork
14801 if test "x$ac_cv_func_fork_works" = xcross
; then
14803 *-*-amigaos* |
*-*-msdosdjgpp*)
14804 # Override, as these systems have only a dummy fork() stub
14805 ac_cv_func_fork_works
=no
14808 ac_cv_func_fork_works
=yes
14811 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
14812 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
14814 ac_cv_func_vfork_works
=$ac_cv_func_vfork
14815 if test "x$ac_cv_func_vfork" = xyes
; then
14816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
14817 $as_echo_n "checking for working vfork... " >&6; }
14818 if test "${ac_cv_func_vfork_works+set}" = set; then :
14819 $as_echo_n "(cached) " >&6
14821 if test "$cross_compiling" = yes; then :
14822 ac_cv_func_vfork_works
=cross
14824 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14825 /* end confdefs.h. */
14826 /* Thanks to Paul Eggert for this test. */
14827 $ac_includes_default
14828 #include <sys/wait.h>
14829 #ifdef HAVE_VFORK_H
14830 # include <vfork.h>
14832 /* On some sparc systems, changes by the child to local and incoming
14833 argument registers are propagated back to the parent. The compiler
14834 is told about this with #include <vfork.h>, but some compilers
14835 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
14836 static variable whose address is put into a register that is
14837 clobbered by the vfork. */
14840 sparc_address_test (int arg)
14842 sparc_address_test (arg) int arg;
14845 static pid_t child;
14863 pid_t parent = getpid ();
14866 sparc_address_test (0);
14871 /* Here is another test for sparc vfork register problems. This
14872 test uses lots of local variables, at least as many local
14873 variables as main has allocated so far including compiler
14874 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
14875 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
14876 reuse the register of parent for one of the local variables,
14877 since it will think that parent can't possibly be used any more
14878 in this routine. Assigning to the local variable will thus
14879 munge parent in the parent process. */
14881 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
14882 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
14883 /* Convince the compiler that p..p7 are live; otherwise, it might
14884 use the same hardware register for all 8 local variables. */
14885 if (p != p1 || p != p2 || p != p3 || p != p4
14886 || p != p5 || p != p6 || p != p7)
14889 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
14890 from child file descriptors. If the child closes a descriptor
14891 before it execs or exits, this munges the parent's descriptor
14892 as well. Test for this by closing stdout in the child. */
14893 _exit(close(fileno(stdout)) != 0);
14898 while (wait(&status) != child)
14901 /* Was there some problem with vforking? */
14904 /* Did the child fail? (This shouldn't happen.) */
14907 /* Did the vfork/compiler bug occur? */
14908 || parent != getpid()
14910 /* Did the file descriptor bug occur? */
14911 || fstat(fileno(stdout), &st) != 0
14916 if ac_fn_c_try_run
"$LINENO"; then :
14917 ac_cv_func_vfork_works
=yes
14919 ac_cv_func_vfork_works
=no
14921 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14922 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
14927 $as_echo "$ac_cv_func_vfork_works" >&6; }
14930 if test "x$ac_cv_func_fork_works" = xcross
; then
14931 ac_cv_func_vfork_works
=$ac_cv_func_vfork
14932 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
14933 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
14936 if test "x$ac_cv_func_vfork_works" = xyes
; then
14938 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
14942 $as_echo "#define vfork fork" >>confdefs.h
14945 if test "x$ac_cv_func_fork_works" = xyes
; then
14947 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
14952 for ac_func
in snprintf
14954 ac_fn_c_check_func
"$LINENO" "snprintf" "ac_cv_func_snprintf"
14955 if test "x$ac_cv_func_snprintf" = x
""yes; then :
14956 cat >>confdefs.h
<<_ACEOF
14957 #define HAVE_SNPRINTF 1
14964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
14965 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
14966 if test "${emacs_cv_langinfo_codeset+set}" = set; then :
14967 $as_echo_n "(cached) " >&6
14969 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14970 /* end confdefs.h. */
14971 #include <langinfo.h>
14975 char* cs = nl_langinfo(CODESET);
14980 if ac_fn_c_try_link
"$LINENO"; then :
14981 emacs_cv_langinfo_codeset
=yes
14983 emacs_cv_langinfo_codeset
=no
14985 rm -f core conftest.err conftest.
$ac_objext \
14986 conftest
$ac_exeext conftest.
$ac_ext
14989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
14990 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
14991 if test $emacs_cv_langinfo_codeset = yes; then
14993 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
14997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
14998 $as_echo_n "checking for mbstate_t... " >&6; }
14999 if test "${ac_cv_type_mbstate_t+set}" = set; then :
15000 $as_echo_n "(cached) " >&6
15002 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15003 /* end confdefs.h. */
15004 $ac_includes_default
15005 # include <wchar.h>
15009 mbstate_t x; return sizeof x;
15014 if ac_fn_c_try_compile
"$LINENO"; then :
15015 ac_cv_type_mbstate_t
=yes
15017 ac_cv_type_mbstate_t
=no
15019 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
15022 $as_echo "$ac_cv_type_mbstate_t" >&6; }
15023 if test $ac_cv_type_mbstate_t = yes; then
15025 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
15029 $as_echo "#define mbstate_t int" >>confdefs.h
15033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
15034 $as_echo_n "checking for C restricted array declarations... " >&6; }
15035 if test "${emacs_cv_c_restrict_arr+set}" = set; then :
15036 $as_echo_n "(cached) " >&6
15038 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15039 /* end confdefs.h. */
15040 void fred (int x[__restrict]);
15049 if ac_fn_c_try_compile
"$LINENO"; then :
15050 emacs_cv_c_restrict_arr
=yes
15052 emacs_cv_c_restrict_arr
=no
15054 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
15057 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
15058 if test "$emacs_cv_c_restrict_arr" = yes; then
15060 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
15066 $as_echo "#define AMPERSAND_FULL_NAME 1" >>confdefs.h
15070 $as_echo "#define CLASH_DETECTION 1" >>confdefs.h
15073 ## Note: PTYs are broken on darwin <6. Use at your own risk.
15075 $as_echo "#define HAVE_PTYS 1" >>confdefs.h
15079 $as_echo "#define HAVE_SOCKETS 1" >>confdefs.h
15085 $as_echo "#define NULL_DEVICE \"/dev/null\"" >>confdefs.h
15089 $as_echo "#define SEPCHAR ':'" >>confdefs.h
15093 $as_echo "#define subprocesses 1" >>confdefs.h
15097 $as_echo "#define USER_FULL_NAME pw->pw_gecos" >>confdefs.h
15102 $as_echo "#define DIRECTORY_SEP '/'" >>confdefs.h
15108 $as_echo "#define IS_DEVICE_SEP(_c_) 0" >>confdefs.h
15112 $as_echo "#define IS_DIRECTORY_SEP(_c_) ((_c_) == DIRECTORY_SEP)" >>confdefs.h
15116 $as_echo "#define IS_ANY_SEP(_c_) (IS_DIRECTORY_SEP (_c_))" >>confdefs.h
15124 if test x
$ac_cv_lib_Xmu_XmuConvertStandardSelection != xyes
; then
15125 $as_echo "#define NO_EDITRES 1" >>confdefs.h
15131 $as_echo "#define NO_EDITRES 1" >>confdefs.h
15138 irix6-5 | sol2
* | unixware
)
15140 $as_echo "#define NSIG_MINIMUM 32" >>confdefs.h
15145 emacs_broken_SIGIO
=no
15148 hpux
* | irix6-5 | openbsd | sol2
* | unixware
)
15149 emacs_broken_SIGIO
=yes
15154 $as_echo "#define BROKEN_GET_CURRENT_DIR_NAME 1" >>confdefs.h
15160 $as_echo "#define BROKEN_PTY_READ_AFTER_EAGAIN 1" >>confdefs.h
15168 $as_echo "#define HAVE_PROCFS 1" >>confdefs.h
15174 darwin | freebsd | netbsd | openbsd
)
15176 $as_echo "#define DONT_REOPEN_PTY 1" >>confdefs.h
15182 netbsd | openbsd
) sound_device
="/dev/audio" ;;
15183 *) sound_device
="/dev/dsp" ;;
15187 cat >>confdefs.h
<<_ACEOF
15188 #define DEFAULT_SOUND_DEVICE "$sound_device"
15194 darwin | gnu-linux | gnu-kfreebsd
)
15196 $as_echo "#define INTERRUPT_INPUT 1" >>confdefs.h
15203 cygwin|gnu|gnu-linux|gnu-kfreebsd|irix6-5|freebsd|netbsd|openbsd
)
15205 $as_echo "#define NARROWPROTO 1" >>confdefs.h
15219 $as_echo "#define PTY_ITERATION int c; for (c = 0; !c ; c++)" >>confdefs.h
15221 $as_echo "#define PTY_NAME_SPRINTF strcpy (pty_name, \"/dev/ptc\");" >>confdefs.h
15223 $as_echo "#define PTY_TTY_NAME_SPRINTF strcpy (pty_name, ttyname (fd));" >>confdefs.h
15228 $as_echo "#define PTY_ITERATION int i; for (i = 0; i < 1; i++)" >>confdefs.h
15230 $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
15232 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
15234 $as_echo "#define PTY_TTY_NAME_SPRINTF /**/" >>confdefs.h
15239 $as_echo "#define PTY_ITERATION int i; for (i = 0; i < 1; i++)" >>confdefs.h
15241 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
15243 $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
15245 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
15247 $as_echo "#define PTY_TTY_NAME_SPRINTF /**/" >>confdefs.h
15252 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
15256 gnu-linux | gnu-kfreebsd | freebsd | netbsd
)
15257 if test "x$ac_cv_func_grantpt" = xyes
; then
15259 $as_echo "#define UNIX98_PTYS 1" >>confdefs.h
15261 $as_echo "#define PTY_ITERATION int i; for (i = 0; i < 1; i++)" >>confdefs.h
15263 $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
15265 if test "x$ac_cv_func_posix_openpt" = xyes
; then
15266 $as_echo "#define PTY_OPEN fd = posix_openpt (O_RDWR | O_NOCTTY)" >>confdefs.h
15268 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
15270 elif test "x$ac_cv_func_getpt" = xyes
; then
15271 $as_echo "#define PTY_OPEN fd = getpt ()" >>confdefs.h
15273 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
15276 $as_echo "#define PTY_NAME_SPRINTF strcpy (pty_name, \"/dev/ptmx\");" >>confdefs.h
15280 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
15286 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
15288 $as_echo "#define PTY_NAME_SPRINTF sprintf (pty_name, \"/dev/ptym/pty%c%x\", c, i);" >>confdefs.h
15290 $as_echo "#define PTY_TTY_NAME_SPRINTF sprintf (pty_name, \"/dev/pty/tty%c%x\", c, i);" >>confdefs.h
15295 $as_echo "#define PTY_ITERATION /**/" >>confdefs.h
15297 $as_echo "#define FIRST_PTY_LETTER 'q'" >>confdefs.h
15299 $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
15301 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
15303 $as_echo "#define PTY_TTY_NAME_SPRINTF /**/" >>confdefs.h
15308 $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
15313 $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
15321 $as_echo "#define FIRST_PTY_LETTER 'z'" >>confdefs.h
15323 $as_echo "#define PTY_NAME_SPRINTF strcpy (pty_name, \"/dev/ptmx\");" >>confdefs.h
15326 $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
15335 aix4-2 | cygwin | gnu | irix6-5 | freebsd | netbsd | openbsd | darwin
)
15336 $as_echo "#define SIGNALS_VIA_CHARACTERS 1" >>confdefs.h
15340 gnu-linux | gnu-kfreebsd
)
15342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signals via characters" >&5
15343 $as_echo_n "checking for signals via characters... " >&6; }
15344 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15345 /* end confdefs.h. */
15347 #include <linux/version.h>
15348 #if LINUX_VERSION_CODE < 0x20400
15349 # error "Linux version too old"
15360 if ac_fn_c_try_cpp
"$LINENO"; then :
15361 emacs_signals_via_chars
=yes
15363 emacs_signals_via_chars
=no
15365 rm -f conftest.err conftest.
$ac_ext
15367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_signals_via_chars" >&5
15368 $as_echo "$emacs_signals_via_chars" >&6; }
15369 test $emacs_signals_via_chars = yes && $as_echo "#define SIGNALS_VIA_CHARACTERS 1" >>confdefs.h
15377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C library" >&5
15378 $as_echo_n "checking whether we are using the GNU C library... " >&6; }
15379 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15380 /* end confdefs.h. */
15382 #include <features.h>
15383 #ifndef __GNU_LIBRARY__
15384 # error "this is not the GNU C library"
15395 if ac_fn_c_try_cpp
"$LINENO"; then :
15400 rm -f conftest.err conftest.
$ac_ext
15401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_glibc" >&5
15402 $as_echo "$emacs_glibc" >&6; }
15404 if test $emacs_glibc = yes; then
15406 emacs_pending_output
=unknown
15409 gnu | gnu-linux | gnu-kfreebsd
)
15410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of pending output formalism" >&5
15411 $as_echo_n "checking for style of pending output formalism... " >&6; }
15412 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15413 /* end confdefs.h. */
15416 #if !defined (_IO_STDIO_H) && !defined (_STDIO_USES_IOSTREAM)
15417 # error "stdio definitions not found"
15428 if ac_fn_c_try_cpp
"$LINENO"; then :
15429 emacs_pending_output
=new
15431 rm -f conftest.err conftest.
$ac_ext
15433 if test $emacs_pending_output = unknown
; then
15435 gnu-linux | gnu-kfreebsd
)
15436 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15437 /* end confdefs.h. */
15441 # error "not using uclibc"
15452 if ac_fn_c_try_cpp
"$LINENO"; then :
15453 emacs_pending_output
=uclibc
15455 emacs_pending_output
=old
15457 rm -f conftest.err conftest.
$ac_ext
15462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_pending_output" >&5
15463 $as_echo "$emacs_pending_output" >&6; }
15465 case $emacs_pending_output in
15467 $as_echo "#define PENDING_OUTPUT_COUNT(FILE) ((FILE)->_IO_write_ptr - (FILE)->_IO_write_base)" >>confdefs.h
15471 $as_echo "#define PENDING_OUTPUT_COUNT(FILE) ((FILE)->__bufpos - (FILE)->__bufstart)" >>confdefs.h
15475 $as_echo "#define PENDING_OUTPUT_COUNT(FILE) ((FILE)->_pptr - (FILE)->_pbase)" >>confdefs.h
15481 if test $emacs_pending_output = unknown
; then
15482 $as_echo "#define PENDING_OUTPUT_COUNT(FILE) ((FILE)->__bufp - (FILE)->__buffer)" >>confdefs.h
15488 cygwin | darwin | freebsd | netbsd | openbsd
)
15489 $as_echo "#define PENDING_OUTPUT_COUNT(FILE) ((FILE)->_p - (FILE)->_bf._base)" >>confdefs.h
15494 $as_echo "#define PENDING_OUTPUT_COUNT(FILE) ((FILE)->__ptr - (FILE)->__base)" >>confdefs.h
15499 if test x
$ac_cv_header_stdio_ext_h = xyes
&& \
15500 test x
$ac_cv_func___fpending = xyes
; then
15501 $as_echo "#define PENDING_OUTPUT_COUNT(FILE) __fpending (FILE)" >>confdefs.h
15504 $as_echo "#define DISPNEW_NEEDS_STDIO_EXT 1" >>confdefs.h
15507 $as_echo "#define PENDING_OUTPUT_COUNT(FILE) ((FILE)->_ptr - (FILE)->_base)" >>confdefs.h
15519 $as_echo "#define DATA_START ({ extern int data_start; (char *) &data_start; })" >>confdefs.h
15524 $as_echo "#define DATA_START 0x40000000" >>confdefs.h
15526 $as_echo "#define DATA_SEG_BITS 0x40000000" >>confdefs.h
15530 $as_echo "#define DATA_START 0x10000000" >>confdefs.h
15532 $as_echo "#define DATA_SEG_BITS 0x10000000" >>confdefs.h
15542 darwin
) $as_echo "#define TAB3 OXTABS" >>confdefs.h
15545 gnu | freebsd | netbsd | openbsd
)
15547 $as_echo "#define TABDLY OXTABS" >>confdefs.h
15549 $as_echo "#define TAB3 OXTABS" >>confdefs.h
15553 gnu-linux | gnu-kfreebsd
)
15554 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15555 /* end confdefs.h. */
15569 if ac_fn_c_try_cpp
"$LINENO"; then :
15570 $as_echo "#define ULIMIT_BREAK_VALUE (32*1024*1024)" >>confdefs.h
15573 rm -f conftest.err conftest.
$ac_ext
15575 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15576 /* end confdefs.h. */
15590 if ac_fn_c_try_cpp
"$LINENO"; then :
15592 $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
15595 rm -f conftest.err conftest.
$ac_ext
15600 $as_echo "#define RUN_TIME_REMAP 1" >>confdefs.h
15605 $as_echo "#define ULIMIT_BREAK_VALUE 0x14000000" >>confdefs.h
15617 aix4-2 | hpux
* | unixware
)
15618 $as_echo "#define GC_MARK_STACK GC_USE_GCPROS_AS_BEFORE" >>confdefs.h
15622 gnu-linux | gnu-kfreebsd
)
15623 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15624 /* end confdefs.h. */
15626 #if defined __i386__ || defined __sparc__ || defined __mc68000__ \
15627 || defined __alpha__ || defined __mips__ || defined __s390__ \
15628 || defined __arm__ || defined __powerpc__ || defined __amd64__ \
15629 || defined __ia64__ || defined __sh__
15632 # error "setjmp not known to work on this arch"
15643 if ac_fn_c_try_cpp
"$LINENO"; then :
15644 $as_echo "#define GC_SETJMP_WORKS 1" >>confdefs.h
15647 $as_echo "#define GC_MARK_STACK GC_USE_GCPROS_AS_BEFORE" >>confdefs.h
15650 rm -f conftest.err conftest.
$ac_ext
15655 if test x
$GCC = xyes
; then
15656 $as_echo "#define GC_SETJMP_WORKS 1" >>confdefs.h
15660 freebsd | netbsd | openbsd | irix6-5 | sol2
* )
15661 $as_echo "#define GC_SETJMP_WORKS 1" >>confdefs.h
15666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _setjmp" >&5
15667 $as_echo_n "checking for _setjmp... " >&6; }
15668 if test "${emacs_cv_func__setjmp+set}" = set; then :
15669 $as_echo_n "(cached) " >&6
15671 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15672 /* end confdefs.h. */
15673 #include <setjmp.h>
15685 if ac_fn_c_try_link
"$LINENO"; then :
15686 emacs_cv_func__setjmp
=yes
15688 emacs_cv_func__setjmp
=no
15690 rm -f core conftest.err conftest.
$ac_objext \
15691 conftest
$ac_exeext conftest.
$ac_ext
15693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func__setjmp" >&5
15694 $as_echo "$emacs_cv_func__setjmp" >&6; }
15695 if test $emacs_cv_func__setjmp = yes; then
15697 $as_echo "#define HAVE__SETJMP 1" >>confdefs.h
15700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
15701 $as_echo_n "checking for sigsetjmp... " >&6; }
15702 if test "${emacs_cv_func_sigsetjmp+set}" = set; then :
15703 $as_echo_n "(cached) " >&6
15705 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15706 /* end confdefs.h. */
15707 #include <setjmp.h>
15713 if (! sigsetjmp (j, 1))
15719 if ac_fn_c_try_link
"$LINENO"; then :
15720 emacs_cv_func_sigsetjmp
=yes
15722 emacs_cv_func_sigsetjmp
=no
15724 rm -f core conftest.err conftest.
$ac_objext \
15725 conftest
$ac_exeext conftest.
$ac_ext
15727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func_sigsetjmp" >&5
15728 $as_echo "$emacs_cv_func_sigsetjmp" >&6; }
15729 if test $emacs_cv_func_sigsetjmp = yes; then
15731 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
15739 $as_echo "#define TIOCSIGSEND TIOCSIGNAL" >>confdefs.h
15748 $as_echo "#define XOS_NEEDS_TIME_H 1" >>confdefs.h
15764 $as_echo "#define USG /**/" >>confdefs.h
15766 $as_echo "#define USG5 /**/" >>confdefs.h
15768 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15769 /* end confdefs.h. */
15772 # error "_AIX not defined"
15783 if ac_fn_c_try_cpp
"$LINENO"; then :
15787 $as_echo "#define _AIX /**/" >>confdefs.h
15790 rm -f conftest.err conftest.
$ac_ext
15795 $as_echo "#define CYGWIN 1" >>confdefs.h
15800 $as_echo "#define BSD4_2 /**/" >>confdefs.h
15802 $as_echo "#define BSD_SYSTEM /**/" >>confdefs.h
15805 $as_echo "#define DARWIN_OS /**/" >>confdefs.h
15810 $as_echo "#define BSD4_2 /**/" >>confdefs.h
15813 $as_echo "#define BSD_SYSTEM_AHB 1" >>confdefs.h
15817 gnu | netbsd | openbsd
)
15818 $as_echo "#define BSD4_2 /**/" >>confdefs.h
15820 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15821 /* end confdefs.h. */
15824 # error "BSD_SYSTEM not defined"
15835 if ac_fn_c_try_cpp
"$LINENO"; then :
15838 $as_echo "#define BSD_SYSTEM 43" >>confdefs.h
15841 rm -f conftest.err conftest.
$ac_ext
15844 gnu-linux | gnu-kfreebsd
)
15845 $as_echo "#define USG /**/" >>confdefs.h
15848 $as_echo "#define GNU_LINUX /**/" >>confdefs.h
15853 $as_echo "#define USG /**/" >>confdefs.h
15855 $as_echo "#define USG5 /**/" >>confdefs.h
15858 $as_echo "#define HPUX /**/" >>confdefs.h
15863 $as_echo "#define USG /**/" >>confdefs.h
15865 $as_echo "#define USG5 /**/" >>confdefs.h
15867 $as_echo "#define USG5_4 /**/" >>confdefs.h
15870 $as_echo "#define IRIX6_5 /**/" >>confdefs.h
15875 $as_echo "#define USG /**/" >>confdefs.h
15877 $as_echo "#define USG5 /**/" >>confdefs.h
15879 $as_echo "#define USG5_4 /**/" >>confdefs.h
15882 $as_echo "#define SOLARIS2 /**/" >>confdefs.h
15887 $as_echo "#define USG /**/" >>confdefs.h
15889 $as_echo "#define USG5 /**/" >>confdefs.h
15891 $as_echo "#define USG5_4 /**/" >>confdefs.h
15896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable FIONREAD" >&5
15897 $as_echo_n "checking for usable FIONREAD... " >&6; }
15898 if test "${emacs_cv_usable_FIONREAD+set}" = set; then :
15899 $as_echo_n "(cached) " >&6
15903 emacs_cv_usable_FIONREAD
=no
15907 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15908 /* end confdefs.h. */
15909 #include <sys/types.h>
15910 #include <sys/ioctl.h>
15912 # include <sys/filio.h>
15918 int foo = ioctl (0, FIONREAD, &foo);
15923 if ac_fn_c_try_compile
"$LINENO"; then :
15924 emacs_cv_usable_FIONREAD
=yes
15926 emacs_cv_usable_FIONREAD
=no
15928 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_usable_FIONREAD" >&5
15933 $as_echo "$emacs_cv_usable_FIONREAD" >&6; }
15934 if test $emacs_cv_usable_FIONREAD = yes; then
15936 $as_echo "#define USABLE_FIONREAD 1" >>confdefs.h
15939 if test $emacs_broken_SIGIO = no
; then
15940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable SIGIO" >&5
15941 $as_echo_n "checking for usable SIGIO... " >&6; }
15942 if test "${emacs_cv_usable_SIGIO+set}" = set; then :
15943 $as_echo_n "(cached) " >&6
15945 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15946 /* end confdefs.h. */
15948 #include <signal.h>
15953 int foo = SIGIO | F_SETFL | FASYNC;
15958 if ac_fn_c_try_compile
"$LINENO"; then :
15959 emacs_cv_usable_SIGIO
=yes
15961 emacs_cv_usable_SIGIO
=no
15963 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_usable_SIGIO" >&5
15966 $as_echo "$emacs_cv_usable_SIGIO" >&6; }
15967 if test $emacs_cv_usable_SIGIO = yes; then
15969 $as_echo "#define USABLE_SIGIO 1" >>confdefs.h
15979 $as_echo "#define G_SLICE_ALWAYS_MALLOC 1" >>confdefs.h
15985 $as_echo "#define USG_SUBTTY_WORKS 1" >>confdefs.h
15991 $as_echo "#define PREFER_VSUSP 1" >>confdefs.h
15994 $as_echo "#define SETPGRP_RELEASES_CTTY 1" >>confdefs.h
16000 $as_echo "#define _STRUCTURED_PROC 1" >>confdefs.h
16005 # Set up the CFLAGS for real compilation, so we can substitute it.
16006 CFLAGS
="$REAL_CFLAGS"
16007 CPPFLAGS
="$REAL_CPPFLAGS"
16009 ## Hack to detect a buggy GCC version.
16010 if test "x$GCC" = xyes \
16011 && test x
"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
16012 && test x
"`echo $CFLAGS | grep '\-O[23]'`" != x \
16013 && test x
"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x
; then
16014 as_fn_error
"GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
16017 version
=$PACKAGE_VERSION
16019 copyright
="Copyright (C) 2013 Free Software Foundation, Inc."
16021 cat >>confdefs.h
<<_ACEOF
16022 #define COPYRIGHT "$copyright"
16027 ### Specify what sort of things we'll be editing into Makefile and config.h.
16028 ### Use configuration here uncanonicalized to avoid exceeding size limits.
16054 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
16055 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
16056 ## end of LIBX_BASE, but nothing ever set it.
16061 ## Used in lwlib/Makefile.in.
16070 if test -n "${term_header}"; then
16072 cat >>confdefs.h
<<_ACEOF
16073 #define TERM_HEADER "${term_header}"
16079 cat >>confdefs.h
<<_ACEOF
16080 #define EMACS_CONFIGURATION "${canonical}"
16084 cat >>confdefs.h
<<_ACEOF
16085 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
16093 if test "${HAVE_X_WINDOWS}" = "yes" ; then
16095 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
16098 XOBJ
="xterm.o xfns.o xselect.o xrdb.o xsmfns.o xsettings.o xgselect.o"
16100 if test "$HAVE_XFT" = "yes"; then
16101 FONT_OBJ
="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
16102 elif test "$HAVE_FREETYPE" = "yes"; then
16103 FONT_OBJ
="$FONT_OBJ ftfont.o ftxfont.o"
16113 if test "${USE_X_TOOLKIT}" != "none" ; then
16114 WIDGET_OBJ
=widget.o
16116 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
16118 if test "${USE_X_TOOLKIT}" = "LUCID"; then
16120 $as_echo "#define USE_LUCID 1" >>confdefs.h
16122 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
16124 $as_echo "#define USE_MOTIF 1" >>confdefs.h
16129 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
16130 MOTIF_LIBW
="$MOTIF_LIBW -lXpm"
16134 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
16135 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
16136 MOTIF_LIBW
="MOTIF_LIBW -lXimp"
16140 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
16141 MOTIF_LIBW
="$MOTIF_LIBW -li18n"
16144 MOTIF_LIBW
="$MOTIF_LIBW $LIBXP"
16150 case "$USE_X_TOOLKIT" in
16151 MOTIF
) TOOLKIT_LIBW
="$MOTIF_LIBW" ;;
16152 LUCID
) TOOLKIT_LIBW
="$LUCID_LIBW" ;;
16153 none
) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW
="$GTK_LIBS" ;;
16157 if test "$USE_X_TOOLKIT" = "none"; then
16158 LIBXT_OTHER
="\$(LIBXSM)"
16159 OLDXMENU_TARGET
="really-oldXMenu"
16161 LIBXT_OTHER
="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
16162 OLDXMENU_TARGET
="really-lwlib"
16166 ## The X Menu stuff is present in the X10 distribution, but missing
16167 ## from X11. If we have X10, just use the installed library;
16168 ## otherwise, use our own copy.
16169 if test "${HAVE_X11}" = "yes" ; then
16171 $as_echo "#define HAVE_X11 1" >>confdefs.h
16174 if test "$USE_X_TOOLKIT" = "none"; then
16175 OLDXMENU
="\${oldXMenudir}/libXMenu11.a"
16177 OLDXMENU
="\${lwlibdir}/liblw.a"
16179 LIBXMENU
="\$(OLDXMENU)"
16180 LIBX_OTHER
="\$(LIBXT) \$(LIBX_EXTRA)"
16181 OLDXMENU_DEPS
="\${OLDXMENU} ../src/\${OLDXMENU}"
16183 ## For a syntactically valid Makefile; not actually used for anything.
16184 ## See comments in src/Makefile.in.
16186 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
16187 if test "${HAVE_X_WINDOWS}" = "yes"; then
16196 if test "$HAVE_GTK" = "yes" ||
test "$HAVE_MENUS" != "yes"; then
16209 if test "${HAVE_MENUS}" = "yes" ; then
16211 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
16215 if test "${GNU_MALLOC}" = "yes" ; then
16217 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
16222 if test "${REL_ALLOC}" = "yes" ; then
16224 $as_echo "#define REL_ALLOC 1" >>confdefs.h
16227 test "$system_malloc" != "yes" && RALLOC_OBJ
=ralloc.o
16231 if test "$opsys" = "cygwin"; then
16232 CYGWIN_OBJ
="sheap.o cygw32.o"
16233 ## Cygwin differs because of its unexec().
16235 POST_ALLOC_OBJ
=lastfile.o
16238 PRE_ALLOC_OBJ
=lastfile.o
16245 # Configure gnulib. Although this does not affect CFLAGS or LIBS permanently.
16246 # it temporarily reverts them to their pre-pkg-config values,
16247 # because gnulib needs to work with both src (which uses the
16248 # pkg-config stuff) and lib-src (which does not). For example, gnulib
16249 # may need to determine whether LIB_CLOCK_GETTIME should contain -lrt,
16250 # and it therefore needs to run in an environment where LIBS does not
16251 # already contain -lrt merely because 'pkg-config --libs' printed '-lrt'
16252 # for some package unrelated to lib-src.
16253 SAVE_CFLAGS
=$CFLAGS
16255 CFLAGS
=$pre_PKG_CONFIG_CFLAGS
16256 LIBS
="$LIB_PTHREAD $pre_PKG_CONFIG_LIBS"
16268 LIBC_FATAL_STDERR_
=1
16269 export LIBC_FATAL_STDERR_
16271 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16272 # for constant arguments. Useless!
16273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
16274 $as_echo_n "checking for working alloca.h... " >&6; }
16275 if test "${ac_cv_working_alloca_h+set}" = set; then :
16276 $as_echo_n "(cached) " >&6
16278 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16279 /* end confdefs.h. */
16280 #include <alloca.h>
16284 char *p = (char *) alloca (2 * sizeof (int));
16290 if ac_fn_c_try_link
"$LINENO"; then :
16291 ac_cv_working_alloca_h
=yes
16293 ac_cv_working_alloca_h
=no
16295 rm -f core conftest.err conftest.
$ac_objext \
16296 conftest
$ac_exeext conftest.
$ac_ext
16298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
16299 $as_echo "$ac_cv_working_alloca_h" >&6; }
16300 if test $ac_cv_working_alloca_h = yes; then
16302 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
16306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
16307 $as_echo_n "checking for alloca... " >&6; }
16308 if test "${ac_cv_func_alloca_works+set}" = set; then :
16309 $as_echo_n "(cached) " >&6
16311 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16312 /* end confdefs.h. */
16314 # define alloca __builtin_alloca
16317 # include <malloc.h>
16318 # define alloca _alloca
16320 # ifdef HAVE_ALLOCA_H
16321 # include <alloca.h>
16326 # ifndef alloca /* predefined by HP cc +Olibcalls */
16337 char *p = (char *) alloca (1);
16343 if ac_fn_c_try_link
"$LINENO"; then :
16344 ac_cv_func_alloca_works
=yes
16346 ac_cv_func_alloca_works
=no
16348 rm -f core conftest.err conftest.
$ac_objext \
16349 conftest
$ac_exeext conftest.
$ac_ext
16351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
16352 $as_echo "$ac_cv_func_alloca_works" >&6; }
16354 if test $ac_cv_func_alloca_works = yes; then
16356 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
16359 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16360 # that cause trouble. Some versions do not even contain alloca or
16361 # contain a buggy version. If you still want to use their alloca,
16362 # use ar to extract alloca.o from them instead of compiling alloca.c.
16368 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
16370 $as_echo "#define C_ALLOCA 1" >>confdefs.h
16373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 'alloca.c' needs Cray hooks" >&5
16374 $as_echo_n "checking whether 'alloca.c' needs Cray hooks... " >&6; }
16375 if test "${ac_cv_os_cray+set}" = set; then :
16376 $as_echo_n "(cached) " >&6
16378 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16379 /* end confdefs.h. */
16380 #if defined CRAY && ! defined CRAY2
16387 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16388 $EGREP "webecray" >/dev
/null
2>&1; then :
16396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
16397 $as_echo "$ac_cv_os_cray" >&6; }
16398 if test $ac_cv_os_cray = yes; then
16399 for ac_func
in _getb67 GETB67 getb67
; do
16400 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16401 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
16402 eval as_val
=\$
$as_ac_var
16403 if test "x$as_val" = x
""yes; then :
16405 cat >>confdefs.h
<<_ACEOF
16406 #define CRAY_STACKSEG_END $ac_func
16415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
16416 $as_echo_n "checking stack direction for C alloca... " >&6; }
16417 if test "${ac_cv_c_stack_direction+set}" = set; then :
16418 $as_echo_n "(cached) " >&6
16420 if test "$cross_compiling" = yes; then :
16421 ac_cv_c_stack_direction
=0
16423 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16424 /* end confdefs.h. */
16425 $ac_includes_default
16427 find_stack_direction (int *addr, int depth)
16429 int dir, dummy = 0;
16432 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
16433 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
16434 return dir + dummy;
16438 main (int argc, char **argv)
16440 return find_stack_direction (0, argc + !argv + 20) < 0;
16443 if ac_fn_c_try_run
"$LINENO"; then :
16444 ac_cv_c_stack_direction
=1
16446 ac_cv_c_stack_direction
=-1
16448 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16449 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
16454 $as_echo "$ac_cv_c_stack_direction" >&6; }
16455 cat >>confdefs.h
<<_ACEOF
16456 #define STACK_DIRECTION $ac_cv_c_stack_direction
16465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
16466 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
16467 if test "${ac_cv_c_bigendian+set}" = set; then :
16468 $as_echo_n "(cached) " >&6
16470 ac_cv_c_bigendian
=unknown
16471 # See if we're dealing with a universal compiler.
16472 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16473 /* end confdefs.h. */
16474 #ifndef __APPLE_CC__
16475 not a universal capable compiler
16480 if ac_fn_c_try_compile
"$LINENO"; then :
16482 # Check for potential -arch flags. It is not universal unless
16483 # there are at least two -arch flags with different values.
16486 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
16487 if test -n "$ac_prev"; then
16489 i?
86 | x86_64 | ppc | ppc64
)
16490 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
16493 ac_cv_c_bigendian
=universal
16499 elif test "x$ac_word" = "x-arch"; then
16504 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16505 if test $ac_cv_c_bigendian = unknown
; then
16506 # See if sys/param.h defines the BYTE_ORDER macro.
16507 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16508 /* end confdefs.h. */
16509 #include <sys/types.h>
16510 #include <sys/param.h>
16515 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
16516 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
16518 bogus endian macros
16525 if ac_fn_c_try_compile
"$LINENO"; then :
16526 # It does; now see whether it defined to BIG_ENDIAN or not.
16527 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16528 /* end confdefs.h. */
16529 #include <sys/types.h>
16530 #include <sys/param.h>
16535 #if BYTE_ORDER != BIG_ENDIAN
16543 if ac_fn_c_try_compile
"$LINENO"; then :
16544 ac_cv_c_bigendian
=yes
16546 ac_cv_c_bigendian
=no
16548 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16550 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16552 if test $ac_cv_c_bigendian = unknown
; then
16553 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
16554 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16555 /* end confdefs.h. */
16556 #include <limits.h>
16561 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
16562 bogus endian macros
16569 if ac_fn_c_try_compile
"$LINENO"; then :
16570 # It does; now see whether it defined to _BIG_ENDIAN or not.
16571 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16572 /* end confdefs.h. */
16573 #include <limits.h>
16578 #ifndef _BIG_ENDIAN
16586 if ac_fn_c_try_compile
"$LINENO"; then :
16587 ac_cv_c_bigendian
=yes
16589 ac_cv_c_bigendian
=no
16591 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16593 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16595 if test $ac_cv_c_bigendian = unknown
; then
16596 # Compile a test program.
16597 if test "$cross_compiling" = yes; then :
16598 # Try to guess by grepping values from an object file.
16599 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16600 /* end confdefs.h. */
16601 short int ascii_mm[] =
16602 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
16603 short int ascii_ii[] =
16604 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
16605 int use_ascii (int i) {
16606 return ascii_mm[i] + ascii_ii[i];
16608 short int ebcdic_ii[] =
16609 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
16610 short int ebcdic_mm[] =
16611 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
16612 int use_ebcdic (int i) {
16613 return ebcdic_mm[i] + ebcdic_ii[i];
16620 return use_ascii (foo) == use_ebcdic (foo);
16625 if ac_fn_c_try_compile
"$LINENO"; then :
16626 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
16627 ac_cv_c_bigendian
=yes
16629 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
16630 if test "$ac_cv_c_bigendian" = unknown
; then
16631 ac_cv_c_bigendian
=no
16633 # finding both strings is unlikely to happen, but who knows?
16634 ac_cv_c_bigendian
=unknown
16638 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16640 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16641 /* end confdefs.h. */
16642 $ac_includes_default
16647 /* Are we little or big endian? From Harbison&Steele. */
16651 char c[sizeof (long int)];
16654 return u.c[sizeof (long int) - 1] == 1;
16660 if ac_fn_c_try_run
"$LINENO"; then :
16661 ac_cv_c_bigendian
=no
16663 ac_cv_c_bigendian
=yes
16665 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16666 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
16672 $as_echo "$ac_cv_c_bigendian" >&6; }
16673 case $ac_cv_c_bigendian in #(
16675 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
16681 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
16685 as_fn_error
"unknown endianness
16686 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
16690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
16691 $as_echo_n "checking for inline... " >&6; }
16692 if test "${ac_cv_c_inline+set}" = set; then :
16693 $as_echo_n "(cached) " >&6
16696 for ac_kw
in inline __inline__ __inline
; do
16697 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16698 /* end confdefs.h. */
16699 #ifndef __cplusplus
16701 static $ac_kw foo_t static_foo () {return 0; }
16702 $ac_kw foo_t foo () {return 0; }
16706 if ac_fn_c_try_compile
"$LINENO"; then :
16707 ac_cv_c_inline
=$ac_kw
16709 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16710 test "$ac_cv_c_inline" != no
&& break
16714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
16715 $as_echo "$ac_cv_c_inline" >&6; }
16717 case $ac_cv_c_inline in
16720 case $ac_cv_c_inline in
16722 *) ac_val
=$ac_cv_c_inline;;
16724 cat >>confdefs.h
<<_ACEOF
16725 #ifndef __cplusplus
16726 #define inline $ac_val
16733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtold conforms to C99" >&5
16734 $as_echo_n "checking whether strtold conforms to C99... " >&6; }
16735 if test "${gl_cv_func_c99_strtold+set}" = set; then :
16736 $as_echo_n "(cached) " >&6
16738 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16739 /* end confdefs.h. */
16740 /* On HP-UX before 11.23, strtold returns a struct instead of
16741 long double. Reject implementations like that, by requiring
16742 compatibility with the C99 prototype. */
16743 #include <stdlib.h>
16744 static long double (*p) (char const *, char **) = strtold;
16746 test (char const *nptr, char **endptr)
16749 r = strtold (nptr, endptr);
16755 return test ("1.0", NULL) != 1 || p ("1.0", NULL) != 1;
16760 if ac_fn_c_try_link
"$LINENO"; then :
16761 gl_cv_func_c99_strtold
=yes
16763 gl_cv_func_c99_strtold
=no
16765 rm -f core conftest.err conftest.
$ac_objext \
16766 conftest
$ac_exeext conftest.
$ac_ext
16768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_c99_strtold" >&5
16769 $as_echo "$gl_cv_func_c99_strtold" >&6; }
16770 if test $gl_cv_func_c99_strtold = yes; then
16772 $as_echo "#define HAVE_C99_STRTOLD 1" >>confdefs.h
16784 GNULIB_EUIDACCESS
=0;
16785 GNULIB_FACCESSAT
=0;
16788 GNULIB_FDATASYNC
=0;
16790 GNULIB_FTRUNCATE
=0;
16792 GNULIB_GETDOMAINNAME
=0;
16793 GNULIB_GETDTABLESIZE
=0;
16794 GNULIB_GETGROUPS
=0;
16795 GNULIB_GETHOSTNAME
=0;
16797 GNULIB_GETLOGIN_R
=0;
16798 GNULIB_GETPAGESIZE
=0;
16799 GNULIB_GETUSERSHELL
=0;
16800 GNULIB_GROUP_MEMBER
=0;
16812 GNULIB_READLINKAT
=0;
16814 GNULIB_SETHOSTNAME
=0;
16817 GNULIB_SYMLINKAT
=0;
16818 GNULIB_TTYNAME_R
=0;
16819 GNULIB_UNISTD_H_NONBLOCKING
=0;
16820 GNULIB_UNISTD_H_SIGPIPE
=0;
16835 HAVE_GETDTABLESIZE
=1;
16837 HAVE_GETHOSTNAME
=1;
16839 HAVE_GETPAGESIZE
=1;
16840 HAVE_GROUP_MEMBER
=1;
16850 HAVE_SETHOSTNAME
=1;
16856 HAVE_DECL_ENVIRON
=1;
16857 HAVE_DECL_FCHDIR
=1;
16858 HAVE_DECL_FDATASYNC
=1;
16859 HAVE_DECL_GETDOMAINNAME
=1;
16860 HAVE_DECL_GETLOGIN_R
=1;
16861 HAVE_DECL_GETPAGESIZE
=1;
16862 HAVE_DECL_GETUSERSHELL
=1;
16863 HAVE_DECL_SETHOSTNAME
=1;
16864 HAVE_DECL_TTYNAME_R
=1;
16866 HAVE_SYS_PARAM_H
=0;
16871 REPLACE_FCHOWNAT
=0;
16872 REPLACE_FTRUNCATE
=0;
16874 REPLACE_GETDOMAINNAME
=0;
16875 REPLACE_GETLOGIN_R
=0;
16876 REPLACE_GETGROUPS
=0;
16877 REPLACE_GETPAGESIZE
=0;
16886 REPLACE_READLINK
=0;
16890 REPLACE_TTYNAME_R
=0;
16892 REPLACE_UNLINKAT
=0;
16895 UNISTD_H_HAVE_WINSOCK2_H
=0;
16896 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
=0;
16906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if environ is properly declared" >&5
16907 $as_echo_n "checking if environ is properly declared... " >&6; }
16908 if test "${gt_cv_var_environ_declaration+set}" = set; then :
16909 $as_echo_n "(cached) " >&6
16912 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16913 /* end confdefs.h. */
16915 #include <unistd.h>
16917 /* mingw, BeOS, Haiku declare environ in <stdlib.h>, not in <unistd.h>. */
16918 #include <stdlib.h>
16920 extern struct { int foo; } environ;
16929 if ac_fn_c_try_compile
"$LINENO"; then :
16930 gt_cv_var_environ_declaration
=no
16932 gt_cv_var_environ_declaration
=yes
16934 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_var_environ_declaration" >&5
16938 $as_echo "$gt_cv_var_environ_declaration" >&6; }
16939 if test $gt_cv_var_environ_declaration = yes; then
16941 $as_echo "#define HAVE_ENVIRON_DECL 1" >>confdefs.h
16946 if test $gt_cv_var_environ_declaration != yes; then
16947 HAVE_DECL_ENVIRON
=0
16956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_dm_mode in struct stat" >&5
16957 $as_echo_n "checking for st_dm_mode in struct stat... " >&6; }
16958 if test "${ac_cv_struct_st_dm_mode+set}" = set; then :
16959 $as_echo_n "(cached) " >&6
16961 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16962 /* end confdefs.h. */
16964 #include <sys/types.h>
16965 #include <sys/stat.h>
16969 struct stat s; s.st_dm_mode;
16974 if ac_fn_c_try_compile
"$LINENO"; then :
16975 ac_cv_struct_st_dm_mode
=yes
16977 ac_cv_struct_st_dm_mode
=no
16979 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_st_dm_mode" >&5
16982 $as_echo "$ac_cv_struct_st_dm_mode" >&6; }
16984 if test $ac_cv_struct_st_dm_mode = yes; then
16986 $as_echo "#define HAVE_ST_DM_MODE 1" >>confdefs.h
16991 ac_fn_c_check_decl
"$LINENO" "strmode" "ac_cv_have_decl_strmode" "$ac_includes_default"
16992 if test "x$ac_cv_have_decl_strmode" = x
""yes; then :
16998 cat >>confdefs.h
<<_ACEOF
16999 #define HAVE_DECL_STRMODE $ac_have_decl
17005 GNULIB_CALLOC_POSIX
=0;
17006 GNULIB_CANONICALIZE_FILE_NAME
=0;
17007 GNULIB_GETLOADAVG
=0;
17008 GNULIB_GETSUBOPT
=0;
17010 GNULIB_MALLOC_POSIX
=0;
17014 GNULIB_MKOSTEMPS
=0;
17017 GNULIB_POSIX_OPENPT
=0;
17019 GNULIB_PTSNAME_R
=0;
17023 GNULIB_REALLOC_POSIX
=0;
17030 GNULIB_SYSTEM_POSIX
=0;
17036 HAVE_CANONICALIZE_FILE_NAME
=1;
17037 HAVE_DECL_GETLOADAVG
=1;
17045 HAVE_POSIX_OPENPT
=1;
17054 HAVE_DECL_SETENV
=1;
17058 HAVE_STRUCT_RANDOM_DATA
=1;
17059 HAVE_SYS_LOADAVG_H
=0;
17061 HAVE_DECL_UNSETENV
=1;
17063 REPLACE_CANONICALIZE_FILE_NAME
=0;
17068 REPLACE_PTSNAME_R
=0;
17070 REPLACE_RANDOM_R
=0;
17072 REPLACE_REALPATH
=0;
17075 REPLACE_UNSETENV
=0;
17080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
17081 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
17082 if test "${gl_cv_have_include_next+set}" = set; then :
17083 $as_echo_n "(cached) " >&6
17085 rm -rf conftestd1a conftestd1b conftestd2
17086 mkdir conftestd1a conftestd1b conftestd2
17087 cat <<EOF > conftestd1a/conftest.h
17088 #define DEFINED_IN_CONFTESTD1
17089 #include_next <conftest.h>
17090 #ifdef DEFINED_IN_CONFTESTD2
17093 #error "include_next doesn't work"
17096 cat <<EOF > conftestd1b/conftest.h
17097 #define DEFINED_IN_CONFTESTD1
17099 #include_next <conftest.h>
17100 #ifdef DEFINED_IN_CONFTESTD2
17103 #error "include_next doesn't work"
17106 cat <<EOF > conftestd2/conftest.h
17107 #ifndef DEFINED_IN_CONFTESTD1
17108 #error "include_next test doesn't work"
17110 #define DEFINED_IN_CONFTESTD2
17112 gl_save_CPPFLAGS
="$CPPFLAGS"
17113 CPPFLAGS
="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
17114 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17115 /* end confdefs.h. */
17116 #include <conftest.h>
17118 if ac_fn_c_try_compile
"$LINENO"; then :
17119 gl_cv_have_include_next
=yes
17121 CPPFLAGS
="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
17122 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17123 /* end confdefs.h. */
17124 #include <conftest.h>
17126 if ac_fn_c_try_compile
"$LINENO"; then :
17127 gl_cv_have_include_next
=buggy
17129 gl_cv_have_include_next
=no
17131 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17134 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17135 CPPFLAGS
="$gl_save_CPPFLAGS"
17136 rm -rf conftestd1a conftestd1b conftestd2
17139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
17140 $as_echo "$gl_cv_have_include_next" >&6; }
17141 PRAGMA_SYSTEM_HEADER
=
17142 if test $gl_cv_have_include_next = yes; then
17143 INCLUDE_NEXT
=include_next
17144 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include_next
17145 if test -n "$GCC"; then
17146 PRAGMA_SYSTEM_HEADER
='#pragma GCC system_header'
17149 if test $gl_cv_have_include_next = buggy
; then
17150 INCLUDE_NEXT
=include
17151 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include_next
17153 INCLUDE_NEXT
=include
17154 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include
17160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
17161 $as_echo_n "checking whether system header files limit the line length... " >&6; }
17162 if test "${gl_cv_pragma_columns+set}" = set; then :
17163 $as_echo_n "(cached) " >&6
17165 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17166 /* end confdefs.h. */
17173 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17174 $EGREP "choke me" >/dev
/null
2>&1; then :
17175 gl_cv_pragma_columns
=yes
17177 gl_cv_pragma_columns
=no
17183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
17184 $as_echo "$gl_cv_pragma_columns" >&6; }
17185 if test $gl_cv_pragma_columns = yes; then
17186 PRAGMA_COLUMNS
="#pragma COLUMNS 10000"
17207 if test $gl_cv_have_include_next = yes; then
17208 gl_cv_next_getopt_h
='<'getopt.h
'>'
17210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
17211 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
17212 if test "${gl_cv_next_getopt_h+set}" = set; then :
17213 $as_echo_n "(cached) " >&6
17216 if test $ac_cv_header_getopt_h = yes; then
17219 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17220 /* end confdefs.h. */
17221 #include <getopt.h>
17225 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
17226 *) gl_absname_cpp
="$ac_cpp" ;;
17231 gl_dirsep_regex
='[/\\]'
17234 gl_dirsep_regex
='\/'
17237 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
17239 gl_header_literal_regex
=`echo 'getopt.h' \
17240 | sed -e "$gl_make_literal_regex_sed"`
17241 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17242 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17247 gl_cv_next_getopt_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17248 sed -n "$gl_absolute_header_sed"`'"'
17250 gl_cv_next_getopt_h
='<'getopt.h
'>'
17255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
17256 $as_echo "$gl_cv_next_getopt_h" >&6; }
17258 NEXT_GETOPT_H
=$gl_cv_next_getopt_h
17260 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
17261 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17262 gl_next_as_first_directive
='<'getopt.h
'>'
17264 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17265 gl_next_as_first_directive
=$gl_cv_next_getopt_h
17267 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
=$gl_next_as_first_directive
17272 if test $ac_cv_header_getopt_h = yes; then
17281 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
17282 for ac_header
in getopt.h
17284 ac_fn_c_check_header_mongrel
"$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
17285 if test "x$ac_cv_header_getopt_h" = x
""yes; then :
17286 cat >>confdefs.h
<<_ACEOF
17287 #define HAVE_GETOPT_H 1
17291 gl_replace_getopt
=yes
17298 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
17299 for ac_func
in getopt_long_only
17301 ac_fn_c_check_func
"$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
17302 if test "x$ac_cv_func_getopt_long_only" = x
""yes; then :
17303 cat >>confdefs.h
<<_ACEOF
17304 #define HAVE_GETOPT_LONG_ONLY 1
17308 gl_replace_getopt
=yes
17314 if test -z "$gl_replace_getopt"; then
17315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
17316 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
17317 if test "${gl_cv_func_getopt_posix+set}" = set; then :
17318 $as_echo_n "(cached) " >&6
17321 if test $cross_compiling = no
; then
17322 if test "$cross_compiling" = yes; then :
17323 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17324 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17325 as_fn_error
"cannot run test program while cross compiling
17326 See \`config.log' for more details." "$LINENO" 5; }
17328 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17329 /* end confdefs.h. */
17331 #include <unistd.h>
17332 #include <stdlib.h>
17333 #include <string.h>
17338 static char program[] = "program";
17339 static char a[] = "-a";
17340 static char foo[] = "foo";
17341 static char bar[] = "bar";
17342 char *argv[] = { program, a, foo, bar, NULL };
17345 c = getopt (4, argv, "ab");
17348 c = getopt (4, argv, "ab");
17351 if (!(optind == 2))
17357 if ac_fn_c_try_run
"$LINENO"; then :
17358 gl_cv_func_getopt_posix
=maybe
17360 gl_cv_func_getopt_posix
=no
17362 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17363 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17366 if test $gl_cv_func_getopt_posix = maybe
; then
17367 if test "$cross_compiling" = yes; then :
17368 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17369 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17370 as_fn_error
"cannot run test program while cross compiling
17371 See \`config.log' for more details." "$LINENO" 5; }
17373 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17374 /* end confdefs.h. */
17376 #include <unistd.h>
17377 #include <stdlib.h>
17378 #include <string.h>
17383 static char program[] = "program";
17384 static char donald[] = "donald";
17385 static char p[] = "-p";
17386 static char billy[] = "billy";
17387 static char duck[] = "duck";
17388 static char a[] = "-a";
17389 static char bar[] = "bar";
17390 char *argv[] = { program, donald, p, billy, duck, a, bar, NULL };
17393 c = getopt (7, argv, "+abp:q:");
17396 if (!(strcmp (argv[0], "program") == 0))
17398 if (!(strcmp (argv[1], "donald") == 0))
17400 if (!(strcmp (argv[2], "-p") == 0))
17402 if (!(strcmp (argv[3], "billy") == 0))
17404 if (!(strcmp (argv[4], "duck") == 0))
17406 if (!(strcmp (argv[5], "-a") == 0))
17408 if (!(strcmp (argv[6], "bar") == 0))
17410 if (!(optind == 1))
17416 if ac_fn_c_try_run
"$LINENO"; then :
17417 gl_cv_func_getopt_posix
=maybe
17419 gl_cv_func_getopt_posix
=no
17421 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17422 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17426 if test $gl_cv_func_getopt_posix = maybe
; then
17427 if test "$cross_compiling" = yes; then :
17428 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17429 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17430 as_fn_error
"cannot run test program while cross compiling
17431 See \`config.log' for more details." "$LINENO" 5; }
17433 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17434 /* end confdefs.h. */
17436 #include <unistd.h>
17437 #include <stdlib.h>
17438 #include <string.h>
17443 static char program[] = "program";
17444 static char ab[] = "-ab";
17445 char *argv[3] = { program, ab, NULL };
17446 if (getopt (2, argv, "ab:") != 'a')
17448 if (getopt (2, argv, "ab:") != '?')
17458 if ac_fn_c_try_run
"$LINENO"; then :
17459 gl_cv_func_getopt_posix
=yes
17461 gl_cv_func_getopt_posix
=no
17463 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17464 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17470 darwin
* | aix
* | mingw
*) gl_cv_func_getopt_posix
="guessing no";;
17471 *) gl_cv_func_getopt_posix
="guessing yes";;
17476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
17477 $as_echo "$gl_cv_func_getopt_posix" >&6; }
17478 case "$gl_cv_func_getopt_posix" in
17479 *no
) gl_replace_getopt
=yes ;;
17483 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
17484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
17485 $as_echo_n "checking for working GNU getopt function... " >&6; }
17486 if test "${gl_cv_func_getopt_gnu+set}" = set; then :
17487 $as_echo_n "(cached) " >&6
17489 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
17490 # optstring is necessary for programs like m4 that have POSIX-mandated
17491 # semantics for supporting options interspersed with files.
17492 # Also, since getopt_long is a GNU extension, we require optind=0.
17493 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
17494 # so take care to revert to the correct (non-)export state.
17495 gl_awk_probe
='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
17496 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
17497 xx
) gl_had_POSIXLY_CORRECT
=exported
;;
17498 x
) gl_had_POSIXLY_CORRECT
=yes ;;
17499 *) gl_had_POSIXLY_CORRECT
= ;;
17502 export POSIXLY_CORRECT
17503 if test "$cross_compiling" = yes; then :
17504 gl_cv_func_getopt_gnu
="guessing no"
17507 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17508 /* end confdefs.h. */
17509 #include <getopt.h>
17510 #include <stddef.h>
17511 #include <string.h>
17513 #include <stdlib.h>
17514 #if defined __MACH__ && defined __APPLE__
17515 /* Avoid a crash on Mac OS X. */
17516 #include <mach/mach.h>
17517 #include <mach/mach_error.h>
17518 #include <mach/thread_status.h>
17519 #include <mach/exception.h>
17520 #include <mach/task.h>
17521 #include <pthread.h>
17522 /* The exception port on which our thread listens. */
17523 static mach_port_t our_exception_port;
17524 /* The main function of the thread listening for exceptions of type
17527 mach_exception_thread (void *arg)
17529 /* Buffer for a message to be received. */
17531 mach_msg_header_t head;
17532 mach_msg_body_t msgh_body;
17535 mach_msg_return_t retval;
17536 /* Wait for a message on the exception port. */
17537 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
17538 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
17539 if (retval != MACH_MSG_SUCCESS)
17544 nocrash_init (void)
17546 mach_port_t self = mach_task_self ();
17547 /* Allocate a port on which the thread shall listen for exceptions. */
17548 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
17550 /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
17551 if (mach_port_insert_right (self, our_exception_port, our_exception_port,
17552 MACH_MSG_TYPE_MAKE_SEND)
17554 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
17556 exception_mask_t mask = EXC_MASK_BAD_ACCESS;
17557 /* Create the thread listening on the exception port. */
17558 pthread_attr_t attr;
17560 if (pthread_attr_init (&attr) == 0
17561 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
17562 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
17563 pthread_attr_destroy (&attr);
17564 /* Replace the exception port info for these exceptions with our own.
17565 Note that we replace the exception port for the entire task, not only
17566 for a particular thread. This has the effect that when our exception
17567 port gets the message, the thread specific exception port has already
17568 been asked, and we don't need to bother about it.
17569 See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
17570 task_set_exception_ports (self, mask, our_exception_port,
17571 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
17576 #elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
17577 /* Avoid a crash on native Windows. */
17578 #define WIN32_LEAN_AND_MEAN
17579 #include <windows.h>
17580 #include <winerror.h>
17582 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
17584 switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
17586 case EXCEPTION_ACCESS_VIOLATION:
17587 case EXCEPTION_IN_PAGE_ERROR:
17588 case EXCEPTION_STACK_OVERFLOW:
17589 case EXCEPTION_GUARD_PAGE:
17590 case EXCEPTION_PRIV_INSTRUCTION:
17591 case EXCEPTION_ILLEGAL_INSTRUCTION:
17592 case EXCEPTION_DATATYPE_MISALIGNMENT:
17593 case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
17594 case EXCEPTION_NONCONTINUABLE_EXCEPTION:
17597 return EXCEPTION_CONTINUE_SEARCH;
17600 nocrash_init (void)
17602 SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
17605 /* Avoid a crash on POSIX systems. */
17606 #include <signal.h>
17607 /* A POSIX signal handler. */
17609 exception_handler (int sig)
17614 nocrash_init (void)
17617 signal (SIGSEGV, exception_handler);
17620 signal (SIGBUS, exception_handler);
17634 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
17635 and fails on Mac OS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
17636 OSF/1 5.1, Solaris 10. */
17638 static char conftest[] = "conftest";
17639 static char plus[] = "-+";
17640 char *argv[3] = { conftest, plus, NULL };
17642 if (getopt (2, argv, "+a") != '?')
17645 /* This code succeeds on glibc 2.8, mingw,
17646 and fails on Mac OS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
17647 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
17649 static char program[] = "program";
17650 static char p[] = "-p";
17651 static char foo[] = "foo";
17652 static char bar[] = "bar";
17653 char *argv[] = { program, p, foo, bar, NULL };
17656 if (getopt (4, argv, "p::") != 'p')
17658 else if (optarg != NULL)
17660 else if (getopt (4, argv, "p::") != -1)
17662 else if (optind != 2)
17665 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
17667 static char program[] = "program";
17668 static char foo[] = "foo";
17669 static char p[] = "-p";
17670 char *argv[] = { program, foo, p, NULL };
17672 if (getopt (3, argv, "-p") != 1)
17674 else if (getopt (3, argv, "-p") != 'p')
17677 /* This code fails on glibc 2.11. */
17679 static char program[] = "program";
17680 static char b[] = "-b";
17681 static char a[] = "-a";
17682 char *argv[] = { program, b, a, NULL };
17683 optind = opterr = 0;
17684 if (getopt (3, argv, "+:a:b") != 'b')
17686 else if (getopt (3, argv, "+:a:b") != ':')
17689 /* This code dumps core on glibc 2.14. */
17691 static char program[] = "program";
17692 static char w[] = "-W";
17693 static char dummy[] = "dummy";
17694 char *argv[] = { program, w, dummy, NULL };
17695 optind = opterr = 1;
17696 if (getopt (3, argv, "W;") != 'W')
17705 if ac_fn_c_try_run
"$LINENO"; then :
17706 gl_cv_func_getopt_gnu
=yes
17708 gl_cv_func_getopt_gnu
=no
17710 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17711 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17714 case $gl_had_POSIXLY_CORRECT in
17716 yes) { POSIXLY_CORRECT
=; unset POSIXLY_CORRECT
;}; POSIXLY_CORRECT
=1 ;;
17717 *) { POSIXLY_CORRECT
=; unset POSIXLY_CORRECT
;} ;;
17721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
17722 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
17723 if test "$gl_cv_func_getopt_gnu" != yes; then
17724 gl_replace_getopt
=yes
17726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt_long function" >&5
17727 $as_echo_n "checking for working GNU getopt_long function... " >&6; }
17728 if test "${gl_cv_func_getopt_long_gnu+set}" = set; then :
17729 $as_echo_n "(cached) " >&6
17731 if test "$cross_compiling" = yes; then :
17733 openbsd
*) gl_cv_func_getopt_long_gnu
="guessing no";;
17734 *) gl_cv_func_getopt_long_gnu
="guessing yes";;
17738 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17739 /* end confdefs.h. */
17740 #include <getopt.h>
17741 #include <stddef.h>
17742 #include <string.h>
17747 static const struct option long_options[] =
17749 { "xtremely-",no_argument, NULL, 1003 },
17750 { "xtra", no_argument, NULL, 1001 },
17751 { "xtreme", no_argument, NULL, 1002 },
17752 { "xtremely", no_argument, NULL, 1003 },
17753 { NULL, 0, NULL, 0 }
17755 /* This code fails on OpenBSD 5.0. */
17757 static char program[] = "program";
17758 static char xtremel[] = "--xtremel";
17759 char *argv[] = { program, xtremel, NULL };
17761 optind = 1; opterr = 0;
17762 if (getopt_long (2, argv, "", long_options, &option_index) != 1003)
17771 if ac_fn_c_try_run
"$LINENO"; then :
17772 gl_cv_func_getopt_long_gnu
=yes
17774 gl_cv_func_getopt_long_gnu
=no
17776 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17777 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_long_gnu" >&5
17783 $as_echo "$gl_cv_func_getopt_long_gnu" >&6; }
17784 case "$gl_cv_func_getopt_long_gnu" in
17786 *) gl_replace_getopt
=yes ;;
17797 if test -n "$gl_replace_getopt"; then
17801 if test $REPLACE_GETOPT = 1; then
17805 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
17811 ac_fn_c_check_decl
"$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
17812 if test "x$ac_cv_have_decl_getenv" = x
""yes; then :
17818 cat >>confdefs.h
<<_ACEOF
17819 #define HAVE_DECL_GETENV $ac_have_decl
17827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
17828 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
17829 if test "${ac_cv_c_restrict+set}" = set; then :
17830 $as_echo_n "(cached) " >&6
17832 ac_cv_c_restrict
=no
17833 # The order here caters to the fact that C++ does not require restrict.
17834 for ac_kw
in __restrict __restrict__ _Restrict restrict
; do
17835 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17836 /* end confdefs.h. */
17837 typedef int * int_ptr;
17838 int foo (int_ptr $ac_kw ip) {
17845 int * $ac_kw t = s;
17852 if ac_fn_c_try_compile
"$LINENO"; then :
17853 ac_cv_c_restrict
=$ac_kw
17855 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17856 test "$ac_cv_c_restrict" != no
&& break
17860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
17861 $as_echo "$ac_cv_c_restrict" >&6; }
17863 case $ac_cv_c_restrict in
17865 no
) $as_echo "#define restrict /**/" >>confdefs.h
17867 *) cat >>confdefs.h
<<_ACEOF
17868 #define restrict $ac_cv_c_restrict
17874 GNULIB_GETTIMEOFDAY
=0;
17875 HAVE_GETTIMEOFDAY
=1;
17876 HAVE_STRUCT_TIMEVAL
=1;
17878 REPLACE_GETTIMEOFDAY
=0;
17879 REPLACE_STRUCT_TIMEVAL
=0;
17896 if test $gl_cv_have_include_next = yes; then
17897 gl_cv_next_sys_time_h
='<'sys
/time.h
'>'
17899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/time.h>" >&5
17900 $as_echo_n "checking absolute name of <sys/time.h>... " >&6; }
17901 if test "${gl_cv_next_sys_time_h+set}" = set; then :
17902 $as_echo_n "(cached) " >&6
17905 if test $ac_cv_header_sys_time_h = yes; then
17908 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17909 /* end confdefs.h. */
17910 #include <sys/time.h>
17914 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
17915 *) gl_absname_cpp
="$ac_cpp" ;;
17920 gl_dirsep_regex
='[/\\]'
17923 gl_dirsep_regex
='\/'
17926 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
17928 gl_header_literal_regex
=`echo 'sys/time.h' \
17929 | sed -e "$gl_make_literal_regex_sed"`
17930 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17931 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17936 gl_cv_next_sys_time_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17937 sed -n "$gl_absolute_header_sed"`'"'
17939 gl_cv_next_sys_time_h
='<'sys
/time.h
'>'
17944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_time_h" >&5
17945 $as_echo "$gl_cv_next_sys_time_h" >&6; }
17947 NEXT_SYS_TIME_H
=$gl_cv_next_sys_time_h
17949 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
17950 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17951 gl_next_as_first_directive
='<'sys
/time.h
'>'
17953 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17954 gl_next_as_first_directive
=$gl_cv_next_sys_time_h
17956 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
=$gl_next_as_first_directive
17962 if test $ac_cv_header_sys_time_h != yes; then
17970 if test $ac_cv_header_sys_socket_h != yes; then
17971 for ac_header
in winsock2.h
17973 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
17974 if test "x$ac_cv_header_winsock2_h" = x
""yes; then :
17975 cat >>confdefs.h
<<_ACEOF
17976 #define HAVE_WINSOCK2_H 1
17984 if test "$ac_cv_header_winsock2_h" = yes; then
17986 UNISTD_H_HAVE_WINSOCK2_H
=1
17987 SYS_IOCTL_H_HAVE_WINSOCK2_H
=1
17993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
17994 $as_echo_n "checking for struct timeval... " >&6; }
17995 if test "${gl_cv_sys_struct_timeval+set}" = set; then :
17996 $as_echo_n "(cached) " >&6
17998 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17999 /* end confdefs.h. */
18000 #if HAVE_SYS_TIME_H
18001 #include <sys/time.h>
18004 #if HAVE_WINSOCK2_H
18005 # include <winsock2.h>
18011 static struct timeval x; x.tv_sec = x.tv_usec;
18016 if ac_fn_c_try_compile
"$LINENO"; then :
18017 gl_cv_sys_struct_timeval
=yes
18019 gl_cv_sys_struct_timeval
=no
18021 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval" >&5
18025 $as_echo "$gl_cv_sys_struct_timeval" >&6; }
18026 if test $gl_cv_sys_struct_timeval != yes; then
18027 HAVE_STRUCT_TIMEVAL
=0
18029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wide-enough struct timeval.tv_sec member" >&5
18030 $as_echo_n "checking for wide-enough struct timeval.tv_sec member... " >&6; }
18031 if test "${gl_cv_sys_struct_timeval_tv_sec+set}" = set; then :
18032 $as_echo_n "(cached) " >&6
18034 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18035 /* end confdefs.h. */
18036 #if HAVE_SYS_TIME_H
18037 #include <sys/time.h>
18040 #if HAVE_WINSOCK2_H
18041 # include <winsock2.h>
18047 static struct timeval x;
18048 typedef int verify_tv_sec_type[
18049 sizeof (time_t) <= sizeof x.tv_sec ? 1 : -1
18056 if ac_fn_c_try_compile
"$LINENO"; then :
18057 gl_cv_sys_struct_timeval_tv_sec
=yes
18059 gl_cv_sys_struct_timeval_tv_sec
=no
18061 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval_tv_sec" >&5
18065 $as_echo "$gl_cv_sys_struct_timeval_tv_sec" >&6; }
18066 if test $gl_cv_sys_struct_timeval_tv_sec != yes; then
18067 REPLACE_STRUCT_TIMEVAL
=1
18077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
18078 $as_echo_n "checking for unsigned long long int... " >&6; }
18079 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
18080 $as_echo_n "(cached) " >&6
18082 ac_cv_type_unsigned_long_long_int
=yes
18083 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
18084 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18085 /* end confdefs.h. */
18087 /* For now, do not test the preprocessor; as of 2007 there are too many
18088 implementations with broken preprocessors. Perhaps this can
18089 be revisited in 2012. In the meantime, code should not expect
18090 #if to work with literals wider than 32 bits. */
18091 /* Test literals. */
18092 long long int ll = 9223372036854775807ll;
18093 long long int nll = -9223372036854775807LL;
18094 unsigned long long int ull = 18446744073709551615ULL;
18095 /* Test constant expressions. */
18096 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
18098 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
18104 /* Test availability of runtime routines for shift and division. */
18105 long long int llmax = 9223372036854775807ll;
18106 unsigned long long int ullmax = 18446744073709551615ull;
18107 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
18108 | (llmax / ll) | (llmax % ll)
18109 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
18110 | (ullmax / ull) | (ullmax % ull));
18116 if ac_fn_c_try_link
"$LINENO"; then :
18119 ac_cv_type_unsigned_long_long_int
=no
18121 rm -f core conftest.err conftest.
$ac_objext \
18122 conftest
$ac_exeext conftest.
$ac_ext
18125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
18126 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
18127 if test $ac_cv_type_unsigned_long_long_int = yes; then
18129 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
18135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
18136 $as_echo_n "checking for long long int... " >&6; }
18137 if test "${ac_cv_type_long_long_int+set}" = set; then :
18138 $as_echo_n "(cached) " >&6
18140 ac_cv_type_long_long_int
=yes
18141 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
18142 ac_cv_type_long_long_int
=$ac_cv_type_unsigned_long_long_int
18143 if test $ac_cv_type_long_long_int = yes; then
18144 if test "$cross_compiling" = yes; then :
18147 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18148 /* end confdefs.h. */
18149 #include <limits.h>
18152 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
18153 # define LLONG_MAX (HALF - 1 + HALF)
18158 long long int n = 1;
18162 long long int m = n << i;
18165 if (LLONG_MAX / 2 < m)
18173 if ac_fn_c_try_run
"$LINENO"; then :
18176 ac_cv_type_long_long_int
=no
18178 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18179 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
18186 $as_echo "$ac_cv_type_long_long_int" >&6; }
18187 if test $ac_cv_type_long_long_int = yes; then
18189 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
18198 gl_cv_c_multiarch
=no
18199 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18200 /* end confdefs.h. */
18201 #ifndef __APPLE_CC__
18202 not a universal capable compiler
18207 if ac_fn_c_try_compile
"$LINENO"; then :
18211 for word
in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
18212 if test -n "$prev"; then
18214 i?
86 | x86_64 | ppc | ppc64
)
18215 if test -z "$arch" ||
test "$arch" = "$word"; then
18218 gl_cv_c_multiarch
=yes
18224 if test "x$word" = "x-arch"; then
18231 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18232 if test $gl_cv_c_multiarch = yes; then
18233 APPLE_UNIVERSAL_BUILD
=1
18235 APPLE_UNIVERSAL_BUILD
=0
18242 if test $ac_cv_type_long_long_int = yes; then
18243 HAVE_LONG_LONG_INT
=1
18245 HAVE_LONG_LONG_INT
=0
18249 if test $ac_cv_type_unsigned_long_long_int = yes; then
18250 HAVE_UNSIGNED_LONG_LONG_INT
=1
18252 HAVE_UNSIGNED_LONG_LONG_INT
=0
18257 if test $ac_cv_header_wchar_h = yes; then
18264 if test $ac_cv_header_inttypes_h = yes; then
18271 if test $ac_cv_header_sys_types_h = yes; then
18287 if test $gl_cv_have_include_next = yes; then
18288 gl_cv_next_stdint_h
='<'stdint.h
'>'
18290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
18291 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
18292 if test "${gl_cv_next_stdint_h+set}" = set; then :
18293 $as_echo_n "(cached) " >&6
18296 if test $ac_cv_header_stdint_h = yes; then
18299 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18300 /* end confdefs.h. */
18301 #include <stdint.h>
18305 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
18306 *) gl_absname_cpp
="$ac_cpp" ;;
18311 gl_dirsep_regex
='[/\\]'
18314 gl_dirsep_regex
='\/'
18317 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
18319 gl_header_literal_regex
=`echo 'stdint.h' \
18320 | sed -e "$gl_make_literal_regex_sed"`
18321 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18322 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18327 gl_cv_next_stdint_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18328 sed -n "$gl_absolute_header_sed"`'"'
18330 gl_cv_next_stdint_h
='<'stdint.h
'>'
18335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
18336 $as_echo "$gl_cv_next_stdint_h" >&6; }
18338 NEXT_STDINT_H
=$gl_cv_next_stdint_h
18340 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
18341 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18342 gl_next_as_first_directive
='<'stdint.h
'>'
18344 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18345 gl_next_as_first_directive
=$gl_cv_next_stdint_h
18347 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
=$gl_next_as_first_directive
18352 if test $ac_cv_header_stdint_h = yes; then
18359 if test $ac_cv_header_stdint_h = yes; then
18360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
18361 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
18362 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
18363 $as_echo_n "(cached) " >&6
18365 gl_cv_header_working_stdint_h
=no
18366 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18367 /* end confdefs.h. */
18370 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
18371 #include <stdint.h>
18372 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
18373 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
18374 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
18378 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18379 included before <wchar.h>. */
18380 #include <stddef.h>
18381 #include <signal.h>
18383 # include <stdio.h>
18385 # include <wchar.h>
18390 int8_t a1 = INT8_MAX;
18391 int8_t a1min = INT8_MIN;
18394 int16_t a2 = INT16_MAX;
18395 int16_t a2min = INT16_MIN;
18398 int32_t a3 = INT32_MAX;
18399 int32_t a3min = INT32_MIN;
18402 int64_t a4 = INT64_MAX;
18403 int64_t a4min = INT64_MIN;
18406 uint8_t b1 = UINT8_MAX;
18408 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
18411 uint16_t b2 = UINT16_MAX;
18414 uint32_t b3 = UINT32_MAX;
18417 uint64_t b4 = UINT64_MAX;
18419 int_least8_t c1 = INT8_C (0x7f);
18420 int_least8_t c1max = INT_LEAST8_MAX;
18421 int_least8_t c1min = INT_LEAST8_MIN;
18422 int_least16_t c2 = INT16_C (0x7fff);
18423 int_least16_t c2max = INT_LEAST16_MAX;
18424 int_least16_t c2min = INT_LEAST16_MIN;
18425 int_least32_t c3 = INT32_C (0x7fffffff);
18426 int_least32_t c3max = INT_LEAST32_MAX;
18427 int_least32_t c3min = INT_LEAST32_MIN;
18428 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
18429 int_least64_t c4max = INT_LEAST64_MAX;
18430 int_least64_t c4min = INT_LEAST64_MIN;
18431 uint_least8_t d1 = UINT8_C (0xff);
18432 uint_least8_t d1max = UINT_LEAST8_MAX;
18433 uint_least16_t d2 = UINT16_C (0xffff);
18434 uint_least16_t d2max = UINT_LEAST16_MAX;
18435 uint_least32_t d3 = UINT32_C (0xffffffff);
18436 uint_least32_t d3max = UINT_LEAST32_MAX;
18437 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
18438 uint_least64_t d4max = UINT_LEAST64_MAX;
18439 int_fast8_t e1 = INT_FAST8_MAX;
18440 int_fast8_t e1min = INT_FAST8_MIN;
18441 int_fast16_t e2 = INT_FAST16_MAX;
18442 int_fast16_t e2min = INT_FAST16_MIN;
18443 int_fast32_t e3 = INT_FAST32_MAX;
18444 int_fast32_t e3min = INT_FAST32_MIN;
18445 int_fast64_t e4 = INT_FAST64_MAX;
18446 int_fast64_t e4min = INT_FAST64_MIN;
18447 uint_fast8_t f1 = UINT_FAST8_MAX;
18448 uint_fast16_t f2 = UINT_FAST16_MAX;
18449 uint_fast32_t f3 = UINT_FAST32_MAX;
18450 uint_fast64_t f4 = UINT_FAST64_MAX;
18452 intptr_t g = INTPTR_MAX;
18453 intptr_t gmin = INTPTR_MIN;
18456 uintptr_t h = UINTPTR_MAX;
18458 intmax_t i = INTMAX_MAX;
18459 uintmax_t j = UINTMAX_MAX;
18461 #include <limits.h> /* for CHAR_BIT */
18462 #define TYPE_MINIMUM(t) \
18463 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
18464 #define TYPE_MAXIMUM(t) \
18465 ((t) ((t) 0 < (t) -1 \
18467 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
18470 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
18471 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
18473 /* Detect bug in FreeBSD 6.0 / ia64. */
18474 int check_SIG_ATOMIC:
18475 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
18476 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
18478 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
18480 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
18481 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
18483 /* Detect bug in mingw. */
18485 WINT_MIN == TYPE_MINIMUM (wint_t)
18486 && WINT_MAX == TYPE_MAXIMUM (wint_t)
18489 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
18491 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
18492 int check_UINT16_C:
18493 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
18495 /* Detect bugs in OpenBSD 3.9 stdint.h. */
18497 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
18500 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
18503 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
18506 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
18508 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
18509 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
18510 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
18511 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
18512 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
18513 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
18514 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
18515 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
18516 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
18517 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
18518 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
18529 if ac_fn_c_try_compile
"$LINENO"; then :
18530 if test "$cross_compiling" = yes; then :
18531 gl_cv_header_working_stdint_h
=yes
18534 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18535 /* end confdefs.h. */
18538 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
18539 #include <stdint.h>
18542 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18543 included before <wchar.h>. */
18544 #include <stddef.h>
18545 #include <signal.h>
18547 # include <stdio.h>
18549 # include <wchar.h>
18554 #include <string.h>
18555 #define MVAL(macro) MVAL1(macro)
18556 #define MVAL1(expression) #expression
18557 static const char *macro_values[] =
18591 for (mv = macro_values; *mv != NULL; mv++)
18593 const char *value = *mv;
18594 /* Test whether it looks like a cast expression. */
18595 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
18596 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
18597 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
18598 || strncmp (value, "((int)"/*)*/, 6) == 0
18599 || strncmp (value, "((signed short)"/*)*/, 15) == 0
18600 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
18601 return mv - macro_values + 1;
18609 if ac_fn_c_try_run
"$LINENO"; then :
18610 gl_cv_header_working_stdint_h
=yes
18612 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18613 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18618 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
18622 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
18624 if test "$gl_cv_header_working_stdint_h" = yes; then
18627 for ac_header
in sys
/inttypes.h sys
/bitypes.h
18629 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18630 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18631 eval as_val
=\$
$as_ac_Header
18632 if test "x$as_val" = x
""yes; then :
18633 cat >>confdefs.h
<<_ACEOF
18634 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18641 if test $ac_cv_header_sys_inttypes_h = yes; then
18642 HAVE_SYS_INTTYPES_H
=1
18644 HAVE_SYS_INTTYPES_H
=0
18647 if test $ac_cv_header_sys_bitypes_h = yes; then
18648 HAVE_SYS_BITYPES_H
=1
18650 HAVE_SYS_BITYPES_H
=0
18656 if test $APPLE_UNIVERSAL_BUILD = 0; then
18659 for gltype
in ptrdiff_t size_t
; do
18660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
18661 $as_echo_n "checking for bit size of $gltype... " >&6; }
18662 if { as_var
=gl_cv_bitsizeof_
${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
18663 $as_echo_n "(cached) " >&6
18665 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
18666 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18667 included before <wchar.h>. */
18668 #include <stddef.h>
18669 #include <signal.h>
18671 # include <stdio.h>
18673 # include <wchar.h>
18676 #include <limits.h>"; then :
18682 eval gl_cv_bitsizeof_
${gltype}=\
$result
18685 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
18686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18687 $as_echo "$ac_res" >&6; }
18688 eval result
=\
$gl_cv_bitsizeof_${gltype}
18689 if test $result = unknown
; then
18692 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18693 cat >>confdefs.h
<<_ACEOF
18694 #define BITSIZEOF_${GLTYPE} $result
18697 eval BITSIZEOF_
${GLTYPE}=\
$result
18704 for gltype
in sig_atomic_t wchar_t wint_t
; do
18705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
18706 $as_echo_n "checking for bit size of $gltype... " >&6; }
18707 if { as_var
=gl_cv_bitsizeof_
${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
18708 $as_echo_n "(cached) " >&6
18710 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
18711 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18712 included before <wchar.h>. */
18713 #include <stddef.h>
18714 #include <signal.h>
18716 # include <stdio.h>
18718 # include <wchar.h>
18721 #include <limits.h>"; then :
18727 eval gl_cv_bitsizeof_
${gltype}=\
$result
18730 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
18731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18732 $as_echo "$ac_res" >&6; }
18733 eval result
=\
$gl_cv_bitsizeof_${gltype}
18734 if test $result = unknown
; then
18737 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18738 cat >>confdefs.h
<<_ACEOF
18739 #define BITSIZEOF_${GLTYPE} $result
18742 eval BITSIZEOF_
${GLTYPE}=\
$result
18748 for gltype
in sig_atomic_t wchar_t wint_t
; do
18749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
18750 $as_echo_n "checking whether $gltype is signed... " >&6; }
18751 if { as_var
=gl_cv_type_
${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
18752 $as_echo_n "(cached) " >&6
18754 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18755 /* end confdefs.h. */
18757 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18758 included before <wchar.h>. */
18759 #include <stddef.h>
18760 #include <signal.h>
18762 # include <stdio.h>
18764 # include <wchar.h>
18767 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
18776 if ac_fn_c_try_compile
"$LINENO"; then :
18781 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18782 eval gl_cv_type_
${gltype}_signed
=\
$result
18785 eval ac_res
=\
$gl_cv_type_${gltype}_signed
18786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18787 $as_echo "$ac_res" >&6; }
18788 eval result
=\
$gl_cv_type_${gltype}_signed
18789 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18790 if test "$result" = yes; then
18791 cat >>confdefs.h
<<_ACEOF
18792 #define HAVE_SIGNED_${GLTYPE} 1
18795 eval HAVE_SIGNED_
${GLTYPE}=1
18797 eval HAVE_SIGNED_
${GLTYPE}=0
18802 gl_cv_type_ptrdiff_t_signed
=yes
18803 gl_cv_type_size_t_signed
=no
18804 if test $APPLE_UNIVERSAL_BUILD = 0; then
18807 for gltype
in ptrdiff_t size_t
; do
18808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
18809 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
18810 if { as_var
=gl_cv_type_
${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
18811 $as_echo_n "(cached) " >&6
18813 eval gl_cv_type_
${gltype}_suffix
=no
18814 eval result
=\
$gl_cv_type_${gltype}_signed
18815 if test "$result" = yes; then
18820 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
18822 '') gltype1
='int';;
18823 l
) gltype1
='long int';;
18824 ll
) gltype1
='long long int';;
18825 i64
) gltype1
='__int64';;
18826 u
) gltype1
='unsigned int';;
18827 ul
) gltype1
='unsigned long int';;
18828 ull
) gltype1
='unsigned long long int';;
18829 ui64
)gltype1
='unsigned __int64';;
18831 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18832 /* end confdefs.h. */
18834 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18835 included before <wchar.h>. */
18836 #include <stddef.h>
18837 #include <signal.h>
18839 # include <stdio.h>
18841 # include <wchar.h>
18844 extern $gltype foo;
18845 extern $gltype1 foo;
18854 if ac_fn_c_try_compile
"$LINENO"; then :
18855 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
18857 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18858 eval result
=\
$gl_cv_type_${gltype}_suffix
18859 test "$result" != no
&& break
18862 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
18863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18864 $as_echo "$ac_res" >&6; }
18865 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18866 eval result
=\
$gl_cv_type_${gltype}_suffix
18867 test "$result" = no
&& result
=
18868 eval ${GLTYPE}_SUFFIX
=\
$result
18869 cat >>confdefs.h
<<_ACEOF
18870 #define ${GLTYPE}_SUFFIX $result
18879 for gltype
in sig_atomic_t wchar_t wint_t
; do
18880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
18881 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
18882 if { as_var
=gl_cv_type_
${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
18883 $as_echo_n "(cached) " >&6
18885 eval gl_cv_type_
${gltype}_suffix
=no
18886 eval result
=\
$gl_cv_type_${gltype}_signed
18887 if test "$result" = yes; then
18892 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
18894 '') gltype1
='int';;
18895 l
) gltype1
='long int';;
18896 ll
) gltype1
='long long int';;
18897 i64
) gltype1
='__int64';;
18898 u
) gltype1
='unsigned int';;
18899 ul
) gltype1
='unsigned long int';;
18900 ull
) gltype1
='unsigned long long int';;
18901 ui64
)gltype1
='unsigned __int64';;
18903 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18904 /* end confdefs.h. */
18906 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18907 included before <wchar.h>. */
18908 #include <stddef.h>
18909 #include <signal.h>
18911 # include <stdio.h>
18913 # include <wchar.h>
18916 extern $gltype foo;
18917 extern $gltype1 foo;
18926 if ac_fn_c_try_compile
"$LINENO"; then :
18927 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
18929 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18930 eval result
=\
$gl_cv_type_${gltype}_suffix
18931 test "$result" != no
&& break
18934 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
18935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18936 $as_echo "$ac_res" >&6; }
18937 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18938 eval result
=\
$gl_cv_type_${gltype}_suffix
18939 test "$result" = no
&& result
=
18940 eval ${GLTYPE}_SUFFIX
=\
$result
18941 cat >>confdefs.h
<<_ACEOF
18942 #define ${GLTYPE}_SUFFIX $result
18949 if test $BITSIZEOF_WINT_T -lt 32; then
18950 BITSIZEOF_WINT_T
=32
18956 if test -n "$STDINT_H"; then
18957 GL_GENERATE_STDINT_H_TRUE
=
18958 GL_GENERATE_STDINT_H_FALSE
='#'
18960 GL_GENERATE_STDINT_H_TRUE
='#'
18961 GL_GENERATE_STDINT_H_FALSE
=
18970 GNULIB_STRTOIMAX
=0;
18971 GNULIB_STRTOUMAX
=0;
18972 HAVE_DECL_IMAXABS
=1;
18973 HAVE_DECL_IMAXDIV
=1;
18974 HAVE_DECL_STRTOIMAX
=1;
18975 HAVE_DECL_STRTOUMAX
=1;
18976 REPLACE_STRTOIMAX
=0;
18977 INT32_MAX_LT_INTMAX_MAX
=1;
18978 INT64_MAX_EQ_LONG_MAX
='defined _LP64';
18979 PRI_MACROS_BROKEN
=0;
18980 PRIPTR_PREFIX
=__PRIPTR_PREFIX
;
18981 UINT32_MAX_LT_UINTMAX_MAX
=1;
18982 UINT64_MAX_EQ_ULONG_MAX
='defined _LP64';
18998 if test $gl_cv_have_include_next = yes; then
18999 gl_cv_next_inttypes_h
='<'inttypes.h
'>'
19001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
19002 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
19003 if test "${gl_cv_next_inttypes_h+set}" = set; then :
19004 $as_echo_n "(cached) " >&6
19007 if test $ac_cv_header_inttypes_h = yes; then
19010 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19011 /* end confdefs.h. */
19012 #include <inttypes.h>
19016 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
19017 *) gl_absname_cpp
="$ac_cpp" ;;
19022 gl_dirsep_regex
='[/\\]'
19025 gl_dirsep_regex
='\/'
19028 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
19030 gl_header_literal_regex
=`echo 'inttypes.h' \
19031 | sed -e "$gl_make_literal_regex_sed"`
19032 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19033 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19038 gl_cv_next_inttypes_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19039 sed -n "$gl_absolute_header_sed"`'"'
19041 gl_cv_next_inttypes_h
='<'inttypes.h
'>'
19046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
19047 $as_echo "$gl_cv_next_inttypes_h" >&6; }
19049 NEXT_INTTYPES_H
=$gl_cv_next_inttypes_h
19051 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
19052 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19053 gl_next_as_first_directive
='<'inttypes.h
'>'
19055 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19056 gl_next_as_first_directive
=$gl_cv_next_inttypes_h
19058 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
=$gl_next_as_first_directive
19072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5
19073 $as_echo_n "checking for 64-bit off_t... " >&6; }
19074 if test "${gl_cv_type_off_t_64+set}" = set; then :
19075 $as_echo_n "(cached) " >&6
19077 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19078 /* end confdefs.h. */
19079 #include <sys/types.h>
19080 int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1];
19090 if ac_fn_c_try_compile
"$LINENO"; then :
19091 gl_cv_type_off_t_64
=yes
19093 gl_cv_type_off_t_64
=no
19095 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5
19099 $as_echo "$gl_cv_type_off_t_64" >&6; }
19100 if test $gl_cv_type_off_t_64 = no
; then
19101 WINDOWS_64_BIT_OFF_T
=1
19103 WINDOWS_64_BIT_OFF_T
=0
19105 WINDOWS_64_BIT_ST_SIZE
=1
19108 WINDOWS_64_BIT_OFF_T
=0
19109 WINDOWS_64_BIT_ST_SIZE
=0
19126 GNULIB_UTIMENSAT
=0;
19140 REPLACE_FUTIMENS
=0;
19146 REPLACE_UTIMENSAT
=0;
19151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
19152 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
19153 if test "${gl_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
19154 $as_echo_n "(cached) " >&6
19156 rm -f conftest.sym conftest.
file
19157 echo >conftest.
file
19158 if test "$as_ln_s" = "ln -s" && ln -s conftest.
file conftest.sym
; then
19159 if test "$cross_compiling" = yes; then :
19161 # Guess yes on glibc systems.
19162 *-gnu*) gl_cv_func_lstat_dereferences_slashed_symlink
="guessing yes" ;;
19163 # If we don't know, assume the worst.
19164 *) gl_cv_func_lstat_dereferences_slashed_symlink
="guessing no" ;;
19168 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19169 /* end confdefs.h. */
19170 $ac_includes_default
19175 /* Linux will dereference the symlink and fail, as required by
19176 POSIX. That is better in the sense that it means we will not
19177 have to compile and use the lstat wrapper. */
19178 return lstat ("conftest.sym/", &sbuf) == 0;
19184 if ac_fn_c_try_run
"$LINENO"; then :
19185 gl_cv_func_lstat_dereferences_slashed_symlink
=yes
19187 gl_cv_func_lstat_dereferences_slashed_symlink
=no
19189 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19190 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19194 # If the 'ln -s' command failed, then we probably don't even
19195 # have an lstat function.
19196 gl_cv_func_lstat_dereferences_slashed_symlink
="guessing no"
19198 rm -f conftest.sym conftest.
file
19201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
19202 $as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
19203 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
19206 cat >>confdefs.h
<<_ACEOF
19207 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
19215 GNULIB_NANOSLEEP
=0;
19219 HAVE_DECL_LOCALTIME_R
=1;
19223 REPLACE_LOCALTIME_R
=GNULIB_PORTCHECK
;
19224 REPLACE_MKTIME
=GNULIB_PORTCHECK
;
19225 REPLACE_NANOSLEEP
=GNULIB_PORTCHECK
;
19226 REPLACE_TIMEGM
=GNULIB_PORTCHECK
;
19242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/select.h> is self-contained" >&5
19243 $as_echo_n "checking whether <sys/select.h> is self-contained... " >&6; }
19244 if test "${gl_cv_header_sys_select_h_selfcontained+set}" = set; then :
19245 $as_echo_n "(cached) " >&6
19248 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19249 /* end confdefs.h. */
19250 #include <sys/select.h>
19259 if ac_fn_c_try_compile
"$LINENO"; then :
19260 gl_cv_header_sys_select_h_selfcontained
=yes
19262 gl_cv_header_sys_select_h_selfcontained
=no
19264 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19265 if test $gl_cv_header_sys_select_h_selfcontained = yes; then
19266 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19267 /* end confdefs.h. */
19268 #include <sys/select.h>
19272 int memset; int bzero;
19278 if ac_fn_c_try_compile
"$LINENO"; then :
19279 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19280 /* end confdefs.h. */
19281 #include <sys/select.h>
19287 #define memset nonexistent_memset
19292 void *memset (void *, int, unsigned long);
19294 #define bzero nonexistent_bzero
19299 void bzero (void *, unsigned long);
19308 if ac_fn_c_try_link
"$LINENO"; then :
19311 gl_cv_header_sys_select_h_selfcontained
=no
19313 rm -f core conftest.err conftest.
$ac_objext \
19314 conftest
$ac_exeext conftest.
$ac_ext
19317 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_selfcontained" >&5
19322 $as_echo "$gl_cv_header_sys_select_h_selfcontained" >&6; }
19332 if test $gl_cv_have_include_next = yes; then
19333 gl_cv_next_sys_select_h
='<'sys
/select.h
'>'
19335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/select.h>" >&5
19336 $as_echo_n "checking absolute name of <sys/select.h>... " >&6; }
19337 if test "${gl_cv_next_sys_select_h+set}" = set; then :
19338 $as_echo_n "(cached) " >&6
19341 if test $ac_cv_header_sys_select_h = yes; then
19344 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19345 /* end confdefs.h. */
19346 #include <sys/select.h>
19350 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
19351 *) gl_absname_cpp
="$ac_cpp" ;;
19356 gl_dirsep_regex
='[/\\]'
19359 gl_dirsep_regex
='\/'
19362 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
19364 gl_header_literal_regex
=`echo 'sys/select.h' \
19365 | sed -e "$gl_make_literal_regex_sed"`
19366 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19367 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19372 gl_cv_next_sys_select_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19373 sed -n "$gl_absolute_header_sed"`'"'
19375 gl_cv_next_sys_select_h
='<'sys
/select.h
'>'
19380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_select_h" >&5
19381 $as_echo "$gl_cv_next_sys_select_h" >&6; }
19383 NEXT_SYS_SELECT_H
=$gl_cv_next_sys_select_h
19385 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
19386 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19387 gl_next_as_first_directive
='<'sys
/select.h
'>'
19389 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19390 gl_next_as_first_directive
=$gl_cv_next_sys_select_h
19392 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H
=$gl_next_as_first_directive
19397 if test $ac_cv_header_sys_select_h = yes; then
19398 HAVE_SYS_SELECT_H
=1
19400 HAVE_SYS_SELECT_H
=0
19407 if test $ac_cv_header_sys_socket_h != yes; then
19408 for ac_header
in winsock2.h
19410 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
19411 if test "x$ac_cv_header_winsock2_h" = x
""yes; then :
19412 cat >>confdefs.h
<<_ACEOF
19413 #define HAVE_WINSOCK2_H 1
19421 if test "$ac_cv_header_winsock2_h" = yes; then
19423 UNISTD_H_HAVE_WINSOCK2_H
=1
19424 SYS_IOCTL_H_HAVE_WINSOCK2_H
=1
19436 GNULIB_PTHREAD_SIGMASK
=0;
19438 GNULIB_SIGNAL_H_SIGPIPE
=0;
19439 GNULIB_SIGPROCMASK
=0;
19440 GNULIB_SIGACTION
=0;
19441 HAVE_POSIX_SIGNALBLOCKING
=1;
19442 HAVE_PTHREAD_SIGMASK
=1;
19447 HAVE_STRUCT_SIGACTION_SA_SIGACTION
=1;
19449 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
=1;
19451 HAVE_SIGHANDLER_T
=1;
19452 REPLACE_PTHREAD_SIGMASK
=0;
19461 ac_fn_c_check_type
"$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
19462 #include <signal.h>
19463 /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */
19464 #include <sys/types.h>
19467 if test "x$ac_cv_type_sigset_t" = x
""yes; then :
19469 cat >>confdefs.h
<<_ACEOF
19470 #define HAVE_SIGSET_T 1
19473 gl_cv_type_sigset_t
=yes
19475 gl_cv_type_sigset_t
=no
19478 if test $gl_cv_type_sigset_t != yes; then
19484 if test $ac_cv_header_sys_socket_h = no
; then
19485 for ac_header
in ws2tcpip.h
19487 ac_fn_c_check_header_mongrel
"$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
19488 if test "x$ac_cv_header_ws2tcpip_h" = x
""yes; then :
19489 cat >>confdefs.h
<<_ACEOF
19490 #define HAVE_WS2TCPIP_H 1
19499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
19500 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
19501 if test "${ac_cv_header_stdbool_h+set}" = set; then :
19502 $as_echo_n "(cached) " >&6
19504 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19505 /* end confdefs.h. */
19507 #include <stdbool.h>
19509 "error: bool is not defined"
19512 "error: false is not defined"
19515 "error: false is not 0"
19518 "error: true is not defined"
19521 "error: true is not 1"
19523 #ifndef __bool_true_false_are_defined
19524 "error: __bool_true_false_are_defined is not defined"
19527 struct s { _Bool s: 1; _Bool t; } s;
19529 char a[true == 1 ? 1 : -1];
19530 char b[false == 0 ? 1 : -1];
19531 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
19532 char d[(bool) 0.5 == true ? 1 : -1];
19533 /* See body of main program for 'e'. */
19534 char f[(_Bool) 0.0 == false ? 1 : -1];
19536 char h[sizeof (_Bool)];
19537 char i[sizeof s.t];
19538 enum { j = false, k = true, l = false * true, m = true * 256 };
19539 /* The following fails for
19540 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
19542 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
19543 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
19544 /* Catch a bug in an HP-UX C compiler. See
19545 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
19546 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
19558 /* Refer to every declared value, to avoid compiler optimizations. */
19559 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
19560 + !m + !n + !o + !p + !q + !pq);
19566 if ac_fn_c_try_compile
"$LINENO"; then :
19567 ac_cv_header_stdbool_h
=yes
19569 ac_cv_header_stdbool_h
=no
19571 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
19574 $as_echo "$ac_cv_header_stdbool_h" >&6; }
19575 ac_fn_c_check_type
"$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
19576 if test "x$ac_cv_type__Bool" = x
""yes; then :
19578 cat >>confdefs.h
<<_ACEOF
19579 #define HAVE__BOOL 1
19591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
19592 $as_echo_n "checking for wchar_t... " >&6; }
19593 if test "${gt_cv_c_wchar_t+set}" = set; then :
19594 $as_echo_n "(cached) " >&6
19596 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19597 /* end confdefs.h. */
19598 #include <stddef.h>
19599 wchar_t foo = (wchar_t)'\0';
19608 if ac_fn_c_try_compile
"$LINENO"; then :
19609 gt_cv_c_wchar_t
=yes
19613 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
19616 $as_echo "$gt_cv_c_wchar_t" >&6; }
19617 if test $gt_cv_c_wchar_t = yes; then
19619 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
19632 GNULIB_FPRINTF_POSIX
=0;
19648 GNULIB_OBSTACK_PRINTF
=0;
19649 GNULIB_OBSTACK_PRINTF_POSIX
=0;
19654 GNULIB_PRINTF_POSIX
=0;
19663 GNULIB_SPRINTF_POSIX
=0;
19664 GNULIB_STDIO_H_NONBLOCKING
=0;
19665 GNULIB_STDIO_H_SIGPIPE
=0;
19667 GNULIB_VASPRINTF
=0;
19672 GNULIB_VFPRINTF_POSIX
=0;
19674 GNULIB_VPRINTF_POSIX
=0;
19675 GNULIB_VSNPRINTF
=0;
19676 GNULIB_VSPRINTF_POSIX
=0;
19677 HAVE_DECL_FPURGE
=1;
19678 HAVE_DECL_FSEEKO
=1;
19679 HAVE_DECL_FTELLO
=1;
19680 HAVE_DECL_GETDELIM
=1;
19681 HAVE_DECL_GETLINE
=1;
19682 HAVE_DECL_OBSTACK_PRINTF
=1;
19683 HAVE_DECL_SNPRINTF
=1;
19684 HAVE_DECL_VSNPRINTF
=1;
19705 REPLACE_GETDELIM
=0;
19707 REPLACE_OBSTACK_PRINTF
=0;
19713 REPLACE_RENAMEAT
=0;
19714 REPLACE_SNPRINTF
=0;
19716 REPLACE_STDIO_READ_FUNCS
=0;
19717 REPLACE_STDIO_WRITE_FUNCS
=0;
19719 REPLACE_VASPRINTF
=0;
19720 REPLACE_VDPRINTF
=0;
19721 REPLACE_VFPRINTF
=0;
19723 REPLACE_VSNPRINTF
=0;
19724 REPLACE_VSPRINTF
=0;
19726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
19727 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
19728 if test "${ac_cv_struct_tm+set}" = set; then :
19729 $as_echo_n "(cached) " >&6
19731 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19732 /* end confdefs.h. */
19733 #include <sys/types.h>
19740 int *p = &tm.tm_sec;
19746 if ac_fn_c_try_compile
"$LINENO"; then :
19747 ac_cv_struct_tm
=time.h
19749 ac_cv_struct_tm
=sys
/time.h
19751 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
19754 $as_echo "$ac_cv_struct_tm" >&6; }
19755 if test $ac_cv_struct_tm = sys
/time.h
; then
19757 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
19761 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
19762 #include <$ac_cv_struct_tm>
19765 if test "x$ac_cv_member_struct_tm_tm_zone" = x
""yes; then :
19767 cat >>confdefs.h
<<_ACEOF
19768 #define HAVE_STRUCT_TM_TM_ZONE 1
19774 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
19776 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
19779 ac_fn_c_check_decl
"$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
19781 if test "x$ac_cv_have_decl_tzname" = x
""yes; then :
19787 cat >>confdefs.h
<<_ACEOF
19788 #define HAVE_DECL_TZNAME $ac_have_decl
19791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
19792 $as_echo_n "checking for tzname... " >&6; }
19793 if test "${ac_cv_var_tzname+set}" = set; then :
19794 $as_echo_n "(cached) " >&6
19796 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19797 /* end confdefs.h. */
19799 #if !HAVE_DECL_TZNAME
19800 extern char *tzname[];
19806 return tzname[0][0];
19811 if ac_fn_c_try_link
"$LINENO"; then :
19812 ac_cv_var_tzname
=yes
19814 ac_cv_var_tzname
=no
19816 rm -f core conftest.err conftest.
$ac_objext \
19817 conftest
$ac_exeext conftest.
$ac_ext
19819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
19820 $as_echo "$ac_cv_var_tzname" >&6; }
19821 if test $ac_cv_var_tzname = yes; then
19823 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
19829 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
19831 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x
""yes; then :
19833 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
19840 ac_fn_c_check_decl
"$LINENO" "strtoimax" "ac_cv_have_decl_strtoimax" "$ac_includes_default"
19841 if test "x$ac_cv_have_decl_strtoimax" = x
""yes; then :
19847 cat >>confdefs.h
<<_ACEOF
19848 #define HAVE_DECL_STRTOIMAX $ac_have_decl
19853 ac_fn_c_check_decl
"$LINENO" "strtoumax" "ac_cv_have_decl_strtoumax" "$ac_includes_default"
19854 if test "x$ac_cv_have_decl_strtoumax" = x
""yes; then :
19860 cat >>confdefs.h
<<_ACEOF
19861 #define HAVE_DECL_STRTOUMAX $ac_have_decl
19866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
19867 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
19868 if test "${ac_cv_header_stat_broken+set}" = set; then :
19869 $as_echo_n "(cached) " >&6
19871 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19872 /* end confdefs.h. */
19873 #include <sys/types.h>
19874 #include <sys/stat.h>
19876 #if defined S_ISBLK && defined S_IFDIR
19877 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
19880 #if defined S_ISBLK && defined S_IFCHR
19881 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
19884 #if defined S_ISLNK && defined S_IFREG
19885 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
19888 #if defined S_ISSOCK && defined S_IFREG
19889 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
19893 if ac_fn_c_try_compile
"$LINENO"; then :
19894 ac_cv_header_stat_broken
=no
19896 ac_cv_header_stat_broken
=yes
19898 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
19901 $as_echo "$ac_cv_header_stat_broken" >&6; }
19902 if test $ac_cv_header_stat_broken = yes; then
19904 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
19910 ac_fn_c_check_type
"$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
19911 if test "x$ac_cv_type_mode_t" = x
""yes; then :
19915 cat >>confdefs.h
<<_ACEOF
19923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
19924 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
19925 if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then :
19926 $as_echo_n "(cached) " >&6
19928 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19929 /* end confdefs.h. */
19935 static struct timespec x; x.tv_sec = x.tv_nsec;
19940 if ac_fn_c_try_compile
"$LINENO"; then :
19941 gl_cv_sys_struct_timespec_in_time_h
=yes
19943 gl_cv_sys_struct_timespec_in_time_h
=no
19945 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
19948 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
19950 TIME_H_DEFINES_STRUCT_TIMESPEC
=0
19951 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
=0
19952 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
=0
19953 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
19954 TIME_H_DEFINES_STRUCT_TIMESPEC
=1
19956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
19957 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
19958 if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then :
19959 $as_echo_n "(cached) " >&6
19961 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19962 /* end confdefs.h. */
19963 #include <sys/time.h>
19968 static struct timespec x; x.tv_sec = x.tv_nsec;
19973 if ac_fn_c_try_compile
"$LINENO"; then :
19974 gl_cv_sys_struct_timespec_in_sys_time_h
=yes
19976 gl_cv_sys_struct_timespec_in_sys_time_h
=no
19978 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
19981 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
19982 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
19983 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
=1
19985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
19986 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
19987 if test "${gl_cv_sys_struct_timespec_in_pthread_h+set}" = set; then :
19988 $as_echo_n "(cached) " >&6
19990 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19991 /* end confdefs.h. */
19992 #include <pthread.h>
19997 static struct timespec x; x.tv_sec = x.tv_nsec;
20002 if ac_fn_c_try_compile
"$LINENO"; then :
20003 gl_cv_sys_struct_timespec_in_pthread_h
=yes
20005 gl_cv_sys_struct_timespec_in_pthread_h
=no
20007 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
20010 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
20011 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
20012 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
=1
20031 if test $gl_cv_have_include_next = yes; then
20032 gl_cv_next_time_h
='<'time.h
'>'
20034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
20035 $as_echo_n "checking absolute name of <time.h>... " >&6; }
20036 if test "${gl_cv_next_time_h+set}" = set; then :
20037 $as_echo_n "(cached) " >&6
20040 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20041 /* end confdefs.h. */
20046 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
20047 *) gl_absname_cpp
="$ac_cpp" ;;
20052 gl_dirsep_regex
='[/\\]'
20055 gl_dirsep_regex
='\/'
20058 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
20060 gl_header_literal_regex
=`echo 'time.h' \
20061 | sed -e "$gl_make_literal_regex_sed"`
20062 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
20063 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
20068 gl_cv_next_time_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20069 sed -n "$gl_absolute_header_sed"`'"'
20073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
20074 $as_echo "$gl_cv_next_time_h" >&6; }
20076 NEXT_TIME_H
=$gl_cv_next_time_h
20078 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
20079 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20080 gl_next_as_first_directive
='<'time.h
'>'
20082 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20083 gl_next_as_first_directive
=$gl_cv_next_time_h
20085 NEXT_AS_FIRST_DIRECTIVE_TIME_H
=$gl_next_as_first_directive
20101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the utimes function works" >&5
20102 $as_echo_n "checking whether the utimes function works... " >&6; }
20103 if test "${gl_cv_func_working_utimes+set}" = set; then :
20104 $as_echo_n "(cached) " >&6
20107 if test "$cross_compiling" = yes; then :
20108 gl_cv_func_working_utimes
=no
20110 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20111 /* end confdefs.h. */
20113 #include <sys/types.h>
20114 #include <sys/stat.h>
20116 #include <sys/time.h>
20118 #include <unistd.h>
20119 #include <stdlib.h>
20124 inorder (time_t a, time_t b, time_t c)
20126 return a <= b && b <= c;
20133 char const *file = "conftest.utimes";
20134 static struct timeval timeval[2] = {{9, 10}, {999999, 999999}};
20136 /* Test whether utimes() essentially works. */
20139 FILE *f = fopen (file, "w");
20142 else if (fclose (f) != 0)
20144 else if (utimes (file, timeval) != 0)
20146 else if (lstat (file, &sbuf) != 0)
20148 else if (!(sbuf.st_atime == timeval[0].tv_sec
20149 && sbuf.st_mtime == timeval[1].tv_sec))
20151 if (unlink (file) != 0)
20155 /* Test whether utimes() with a NULL argument sets the file's timestamp
20156 to the current time. Use 'fstat' as well as 'time' to
20157 determine the "current" time, to accommodate NFS file systems
20158 if there is a time skew between the host and the NFS server. */
20160 int fd = open (file, O_WRONLY|O_CREAT, 0644);
20166 struct stat st0, st1, st2;
20167 if (time (&t0) == (time_t) -1)
20169 else if (fstat (fd, &st0) != 0)
20171 else if (utimes (file, timeval) != 0)
20173 else if (utimes (file, NULL) != 0)
20175 else if (fstat (fd, &st1) != 0)
20177 else if (write (fd, "\n", 1) != 1)
20179 else if (fstat (fd, &st2) != 0)
20181 else if (time (&t2) == (time_t) -1)
20185 int m_ok_POSIX = inorder (t0, st1.st_mtime, t2);
20186 int m_ok_NFS = inorder (st0.st_mtime, st1.st_mtime, st2.st_mtime);
20187 if (! (st1.st_atime == st1.st_mtime))
20189 if (! (m_ok_POSIX || m_ok_NFS))
20192 if (close (fd) != 0)
20195 if (unlink (file) != 0)
20199 /* Test whether utimes() with a NULL argument works on read-only files. */
20201 int fd = open (file, O_WRONLY|O_CREAT, 0444);
20204 else if (close (fd) != 0)
20206 else if (utimes (file, NULL) != 0)
20208 if (unlink (file) != 0)
20216 if ac_fn_c_try_run
"$LINENO"; then :
20217 gl_cv_func_working_utimes
=yes
20219 gl_cv_func_working_utimes
=no
20221 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20222 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_utimes" >&5
20227 $as_echo "$gl_cv_func_working_utimes" >&6; }
20229 if test $gl_cv_func_working_utimes = yes; then
20231 $as_echo "#define HAVE_WORKING_UTIMES 1" >>confdefs.h
20239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
20240 $as_echo_n "checking for struct utimbuf... " >&6; }
20241 if test "${gl_cv_sys_struct_utimbuf+set}" = set; then :
20242 $as_echo_n "(cached) " >&6
20244 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20245 /* end confdefs.h. */
20246 #if HAVE_SYS_TIME_H
20247 #include <sys/time.h>
20250 #ifdef HAVE_UTIME_H
20257 static struct utimbuf x; x.actime = x.modtime;
20262 if ac_fn_c_try_compile
"$LINENO"; then :
20263 gl_cv_sys_struct_utimbuf
=yes
20265 gl_cv_sys_struct_utimbuf
=no
20267 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_utimbuf" >&5
20270 $as_echo "$gl_cv_sys_struct_utimbuf" >&6; }
20272 if test $gl_cv_sys_struct_utimbuf = yes; then
20274 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
20290 GL_COND_LIBTOOL_TRUE
=
20291 GL_COND_LIBTOOL_FALSE
='#'
20293 GL_COND_LIBTOOL_TRUE
='#'
20294 GL_COND_LIBTOOL_FALSE
=
20297 gl_cond_libtool
=false
20310 gl_source_base
='lib'
20313 if test $ac_cv_func_alloca_works = no
; then
20317 # Define an additional variable used in the Makefile substitution.
20318 if test $ac_cv_working_alloca_h = yes; then
20319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
20320 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
20321 if test "${gl_cv_rpl_alloca+set}" = set; then :
20322 $as_echo_n "(cached) " >&6
20325 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20326 /* end confdefs.h. */
20328 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
20333 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20334 $EGREP "Need own alloca" >/dev
/null
2>&1; then :
20335 gl_cv_rpl_alloca
=yes
20337 gl_cv_rpl_alloca
=no
20343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
20344 $as_echo "$gl_cv_rpl_alloca" >&6; }
20345 if test $gl_cv_rpl_alloca = yes; then
20347 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
20357 if test -n "$ALLOCA_H"; then
20358 GL_GENERATE_ALLOCA_H_TRUE
=
20359 GL_GENERATE_ALLOCA_H_FALSE
='#'
20361 GL_GENERATE_ALLOCA_H_TRUE
='#'
20362 GL_GENERATE_ALLOCA_H_FALSE
=
20370 # Solaris 2.5.1 needs -lposix4 to get the clock_gettime function.
20371 # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
20373 # Save and restore LIBS so e.g., -lrt, isn't added to it. Otherwise, *all*
20374 # programs in the package would end up linked with that potentially-shared
20375 # library, inducing unnecessary run-time overhead.
20378 gl_saved_libs
=$LIBS
20379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
20380 $as_echo_n "checking for library containing clock_gettime... " >&6; }
20381 if test "${ac_cv_search_clock_gettime+set}" = set; then :
20382 $as_echo_n "(cached) " >&6
20384 ac_func_search_save_LIBS
=$LIBS
20385 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20386 /* end confdefs.h. */
20388 /* Override any GCC internal prototype to avoid an error.
20389 Use char because int might match the return type of a GCC
20390 builtin and then its argument prototype would still apply. */
20394 char clock_gettime ();
20398 return clock_gettime ();
20403 for ac_lib
in '' rt posix4
; do
20404 if test -z "$ac_lib"; then
20405 ac_res
="none required"
20408 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
20410 if ac_fn_c_try_link
"$LINENO"; then :
20411 ac_cv_search_clock_gettime
=$ac_res
20413 rm -f core conftest.err conftest.
$ac_objext \
20415 if test "${ac_cv_search_clock_gettime+set}" = set; then :
20419 if test "${ac_cv_search_clock_gettime+set}" = set; then :
20422 ac_cv_search_clock_gettime
=no
20424 rm conftest.
$ac_ext
20425 LIBS
=$ac_func_search_save_LIBS
20427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
20428 $as_echo "$ac_cv_search_clock_gettime" >&6; }
20429 ac_res
=$ac_cv_search_clock_gettime
20430 if test "$ac_res" != no
; then :
20431 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
20432 test "$ac_cv_search_clock_gettime" = "none required" ||
20433 LIB_CLOCK_GETTIME
=$ac_cv_search_clock_gettime
20436 for ac_func
in clock_gettime clock_settime
20438 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20439 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
20440 eval as_val
=\$
$as_ac_var
20441 if test "x$as_val" = x
""yes; then :
20442 cat >>confdefs.h
<<_ACEOF
20443 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20449 LIBS
=$gl_saved_libs
20475 $as_echo "#define HAVE_DUP2 1" >>confdefs.h
20478 if test $HAVE_DUP2 = 1; then
20479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5
20480 $as_echo_n "checking whether dup2 works... " >&6; }
20481 if test "${gl_cv_func_dup2_works+set}" = set; then :
20482 $as_echo_n "(cached) " >&6
20484 if test "$cross_compiling" = yes; then :
20486 mingw
*) # on this platform, dup2 always returns 0 for success
20487 gl_cv_func_dup2_works
="guessing no" ;;
20488 cygwin
*) # on cygwin 1.5.x, dup2(1,1) returns 0
20489 gl_cv_func_dup2_works
="guessing no" ;;
20490 linux
*) # On linux between 2008-07-27 and 2009-05-11, dup2 of a
20491 # closed fd may yield -EBADF instead of -1 / errno=EBADF.
20492 gl_cv_func_dup2_works
="guessing no" ;;
20493 freebsd
*) # on FreeBSD 6.1, dup2(1,1000000) gives EMFILE, not EBADF.
20494 gl_cv_func_dup2_works
="guessing no" ;;
20495 haiku
*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC.
20496 gl_cv_func_dup2_works
="guessing no" ;;
20497 *) gl_cv_func_dup2_works
="guessing yes" ;;
20500 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20501 /* end confdefs.h. */
20503 #include <unistd.h>
20511 if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1)
20514 if (dup2 (1, 1) == 0)
20517 if (fcntl (1, F_GETFD) != FD_CLOEXEC)
20521 if (dup2 (0, 0) != -1)
20523 /* Many gnulib modules require POSIX conformance of EBADF. */
20524 if (dup2 (2, 1000000) == -1 && errno != EBADF)
20533 if ac_fn_c_try_run
"$LINENO"; then :
20534 gl_cv_func_dup2_works
=yes
20536 gl_cv_func_dup2_works
=no
20538 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20539 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5
20545 $as_echo "$gl_cv_func_dup2_works" >&6; }
20546 case "$gl_cv_func_dup2_works" in
20555 if test $HAVE_DUP2 = 0 ||
test $REPLACE_DUP2 = 1; then
20564 gl_LIBOBJS
="$gl_LIBOBJS dup2.$ac_objext"
20595 EXECINFO_H
='execinfo.h'
20597 if test $ac_cv_header_execinfo_h = yes; then
20598 gl_saved_libs
=$LIBS
20599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing backtrace_symbols_fd" >&5
20600 $as_echo_n "checking for library containing backtrace_symbols_fd... " >&6; }
20601 if test "${ac_cv_search_backtrace_symbols_fd+set}" = set; then :
20602 $as_echo_n "(cached) " >&6
20604 ac_func_search_save_LIBS
=$LIBS
20605 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20606 /* end confdefs.h. */
20608 /* Override any GCC internal prototype to avoid an error.
20609 Use char because int might match the return type of a GCC
20610 builtin and then its argument prototype would still apply. */
20614 char backtrace_symbols_fd ();
20618 return backtrace_symbols_fd ();
20623 for ac_lib
in '' execinfo
; do
20624 if test -z "$ac_lib"; then
20625 ac_res
="none required"
20628 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
20630 if ac_fn_c_try_link
"$LINENO"; then :
20631 ac_cv_search_backtrace_symbols_fd
=$ac_res
20633 rm -f core conftest.err conftest.
$ac_objext \
20635 if test "${ac_cv_search_backtrace_symbols_fd+set}" = set; then :
20639 if test "${ac_cv_search_backtrace_symbols_fd+set}" = set; then :
20642 ac_cv_search_backtrace_symbols_fd
=no
20644 rm conftest.
$ac_ext
20645 LIBS
=$ac_func_search_save_LIBS
20647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_backtrace_symbols_fd" >&5
20648 $as_echo "$ac_cv_search_backtrace_symbols_fd" >&6; }
20649 ac_res
=$ac_cv_search_backtrace_symbols_fd
20650 if test "$ac_res" != no
; then :
20651 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
20652 test "$ac_cv_search_backtrace_symbols_fd" = "none required" ||
20653 LIB_EXECINFO
=$ac_cv_search_backtrace_symbols_fd
20656 LIBS
=$gl_saved_libs
20657 test "$ac_cv_search_backtrace_symbols_fd" = no || EXECINFO_H
=''
20660 if test -n "$EXECINFO_H"; then
20669 gl_LIBOBJS
="$gl_LIBOBJS execinfo.$ac_objext"
20675 if test -n "$EXECINFO_H"; then
20676 GL_GENERATE_EXECINFO_H_TRUE
=
20677 GL_GENERATE_EXECINFO_H_FALSE
='#'
20679 GL_GENERATE_EXECINFO_H_TRUE
='#'
20680 GL_GENERATE_EXECINFO_H_FALSE
=
20691 # Persuade glibc <stdlib.h> to declare getloadavg().
20696 # getloadvg is present in libc on glibc >= 2.2, Mac OS X, FreeBSD >= 2.0,
20697 # NetBSD >= 0.9, OpenBSD >= 2.0, Solaris >= 7.
20699 ac_fn_c_check_func
"$LINENO" "getloadavg" "ac_cv_func_getloadavg"
20700 if test "x$ac_cv_func_getloadavg" = x
""yes; then :
20703 gl_func_getloadavg_done
=no
20705 # Some systems with -lutil have (and need) -lkvm as well, some do not.
20706 # On Solaris, -lkvm requires nlist from -lelf, so check that first
20707 # to get the right answer into the cache.
20708 # For kstat on solaris, we need to test for libelf and libkvm to force the
20709 # definition of SVR4 below.
20710 if test $gl_func_getloadavg_done = no
; then
20711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
20712 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
20713 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then :
20714 $as_echo_n "(cached) " >&6
20716 ac_check_lib_save_LIBS
=$LIBS
20718 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20719 /* end confdefs.h. */
20721 /* Override any GCC internal prototype to avoid an error.
20722 Use char because int might match the return type of a GCC
20723 builtin and then its argument prototype would still apply. */
20731 return elf_begin ();
20736 if ac_fn_c_try_link
"$LINENO"; then :
20737 ac_cv_lib_elf_elf_begin
=yes
20739 ac_cv_lib_elf_elf_begin
=no
20741 rm -f core conftest.err conftest.
$ac_objext \
20742 conftest
$ac_exeext conftest.
$ac_ext
20743 LIBS
=$ac_check_lib_save_LIBS
20745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
20746 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
20747 if test "x$ac_cv_lib_elf_elf_begin" = x
""yes; then :
20751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
20752 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
20753 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then :
20754 $as_echo_n "(cached) " >&6
20756 ac_check_lib_save_LIBS
=$LIBS
20758 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20759 /* end confdefs.h. */
20761 /* Override any GCC internal prototype to avoid an error.
20762 Use char because int might match the return type of a GCC
20763 builtin and then its argument prototype would still apply. */
20771 return kvm_open ();
20776 if ac_fn_c_try_link
"$LINENO"; then :
20777 ac_cv_lib_kvm_kvm_open
=yes
20779 ac_cv_lib_kvm_kvm_open
=no
20781 rm -f core conftest.err conftest.
$ac_objext \
20782 conftest
$ac_exeext conftest.
$ac_ext
20783 LIBS
=$ac_check_lib_save_LIBS
20785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
20786 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
20787 if test "x$ac_cv_lib_kvm_kvm_open" = x
""yes; then :
20791 # Check for the 4.4BSD definition of getloadavg.
20792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
20793 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
20794 if test "${ac_cv_lib_util_getloadavg+set}" = set; then :
20795 $as_echo_n "(cached) " >&6
20797 ac_check_lib_save_LIBS
=$LIBS
20798 LIBS
="-lutil $LIBS"
20799 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20800 /* end confdefs.h. */
20802 /* Override any GCC internal prototype to avoid an error.
20803 Use char because int might match the return type of a GCC
20804 builtin and then its argument prototype would still apply. */
20808 char getloadavg ();
20812 return getloadavg ();
20817 if ac_fn_c_try_link
"$LINENO"; then :
20818 ac_cv_lib_util_getloadavg
=yes
20820 ac_cv_lib_util_getloadavg
=no
20822 rm -f core conftest.err conftest.
$ac_objext \
20823 conftest
$ac_exeext conftest.
$ac_ext
20824 LIBS
=$ac_check_lib_save_LIBS
20826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
20827 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
20828 if test "x$ac_cv_lib_util_getloadavg" = x
""yes; then :
20829 LIBS
="-lutil $LIBS" gl_func_getloadavg_done
=yes
20834 if test $gl_func_getloadavg_done = no
; then
20835 # There is a commonly available library for RS/6000 AIX.
20836 # Since it is not a standard part of AIX, it might be installed locally.
20837 gl_getloadavg_LIBS
=$LIBS
20838 LIBS
="-L/usr/local/lib $LIBS"
20839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
20840 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
20841 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then :
20842 $as_echo_n "(cached) " >&6
20844 ac_check_lib_save_LIBS
=$LIBS
20845 LIBS
="-lgetloadavg $LIBS"
20846 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20847 /* end confdefs.h. */
20849 /* Override any GCC internal prototype to avoid an error.
20850 Use char because int might match the return type of a GCC
20851 builtin and then its argument prototype would still apply. */
20855 char getloadavg ();
20859 return getloadavg ();
20864 if ac_fn_c_try_link
"$LINENO"; then :
20865 ac_cv_lib_getloadavg_getloadavg
=yes
20867 ac_cv_lib_getloadavg_getloadavg
=no
20869 rm -f core conftest.err conftest.
$ac_objext \
20870 conftest
$ac_exeext conftest.
$ac_ext
20871 LIBS
=$ac_check_lib_save_LIBS
20873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
20874 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
20875 if test "x$ac_cv_lib_getloadavg_getloadavg" = x
""yes; then :
20876 LIBS
="-lgetloadavg $LIBS" gl_func_getloadavg_done
=yes
20878 LIBS
=$gl_getloadavg_LIBS
20883 # Set up the replacement function if necessary.
20884 if test $gl_func_getloadavg_done = no
; then
20887 # Solaris has libkstat which does not require root.
20888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
20889 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
20890 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
20891 $as_echo_n "(cached) " >&6
20893 ac_check_lib_save_LIBS
=$LIBS
20894 LIBS
="-lkstat $LIBS"
20895 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20896 /* end confdefs.h. */
20898 /* Override any GCC internal prototype to avoid an error.
20899 Use char because int might match the return type of a GCC
20900 builtin and then its argument prototype would still apply. */
20904 char kstat_open ();
20908 return kstat_open ();
20913 if ac_fn_c_try_link
"$LINENO"; then :
20914 ac_cv_lib_kstat_kstat_open
=yes
20916 ac_cv_lib_kstat_kstat_open
=no
20918 rm -f core conftest.err conftest.
$ac_objext \
20919 conftest
$ac_exeext conftest.
$ac_ext
20920 LIBS
=$ac_check_lib_save_LIBS
20922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
20923 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
20924 if test "x$ac_cv_lib_kstat_kstat_open" = x
""yes; then :
20925 cat >>confdefs.h
<<_ACEOF
20926 #define HAVE_LIBKSTAT 1
20929 LIBS
="-lkstat $LIBS"
20933 test $ac_cv_lib_kstat_kstat_open = yes && gl_func_getloadavg_done
=yes
20935 # AIX has libperfstat which does not require root
20936 if test $gl_func_getloadavg_done = no
; then
20937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perfstat_cpu_total in -lperfstat" >&5
20938 $as_echo_n "checking for perfstat_cpu_total in -lperfstat... " >&6; }
20939 if test "${ac_cv_lib_perfstat_perfstat_cpu_total+set}" = set; then :
20940 $as_echo_n "(cached) " >&6
20942 ac_check_lib_save_LIBS
=$LIBS
20943 LIBS
="-lperfstat $LIBS"
20944 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20945 /* end confdefs.h. */
20947 /* Override any GCC internal prototype to avoid an error.
20948 Use char because int might match the return type of a GCC
20949 builtin and then its argument prototype would still apply. */
20953 char perfstat_cpu_total ();
20957 return perfstat_cpu_total ();
20962 if ac_fn_c_try_link
"$LINENO"; then :
20963 ac_cv_lib_perfstat_perfstat_cpu_total
=yes
20965 ac_cv_lib_perfstat_perfstat_cpu_total
=no
20967 rm -f core conftest.err conftest.
$ac_objext \
20968 conftest
$ac_exeext conftest.
$ac_ext
20969 LIBS
=$ac_check_lib_save_LIBS
20971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_perfstat_perfstat_cpu_total" >&5
20972 $as_echo "$ac_cv_lib_perfstat_perfstat_cpu_total" >&6; }
20973 if test "x$ac_cv_lib_perfstat_perfstat_cpu_total" = x
""yes; then :
20974 cat >>confdefs.h
<<_ACEOF
20975 #define HAVE_LIBPERFSTAT 1
20978 LIBS
="-lperfstat $LIBS"
20982 test $ac_cv_lib_perfstat_perfstat_cpu_total = yes && gl_func_getloadavg_done
=yes
20985 if test $gl_func_getloadavg_done = no
; then
20986 ac_fn_c_check_header_mongrel
"$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
20987 if test "x$ac_cv_header_sys_dg_sys_info_h" = x
""yes; then :
20988 gl_func_getloadavg_done
=yes
20990 $as_echo "#define DGUX 1" >>confdefs.h
20992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
20993 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
20994 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then :
20995 $as_echo_n "(cached) " >&6
20997 ac_check_lib_save_LIBS
=$LIBS
20999 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21000 /* end confdefs.h. */
21002 /* Override any GCC internal prototype to avoid an error.
21003 Use char because int might match the return type of a GCC
21004 builtin and then its argument prototype would still apply. */
21008 char dg_sys_info ();
21012 return dg_sys_info ();
21017 if ac_fn_c_try_link
"$LINENO"; then :
21018 ac_cv_lib_dgc_dg_sys_info
=yes
21020 ac_cv_lib_dgc_dg_sys_info
=no
21022 rm -f core conftest.err conftest.
$ac_objext \
21023 conftest
$ac_exeext conftest.
$ac_ext
21024 LIBS
=$ac_check_lib_save_LIBS
21026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
21027 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
21028 if test "x$ac_cv_lib_dgc_dg_sys_info" = x
""yes; then :
21029 cat >>confdefs.h
<<_ACEOF
21030 #define HAVE_LIBDGC 1
21045 if test "x$gl_save_LIBS" = x
; then
21046 GETLOADAVG_LIBS
=$LIBS
21048 GETLOADAVG_LIBS
=`echo "$LIBS" | sed "s!$gl_save_LIBS!!"`
21053 # Test whether the system declares getloadavg. Solaris has the function
21054 # but declares it in <sys/loadavg.h>, not <stdlib.h>.
21055 for ac_header
in sys
/loadavg.h
21057 ac_fn_c_check_header_mongrel
"$LINENO" "sys/loadavg.h" "ac_cv_header_sys_loadavg_h" "$ac_includes_default"
21058 if test "x$ac_cv_header_sys_loadavg_h" = x
""yes; then :
21059 cat >>confdefs.h
<<_ACEOF
21060 #define HAVE_SYS_LOADAVG_H 1
21067 if test $ac_cv_header_sys_loadavg_h = yes; then
21068 HAVE_SYS_LOADAVG_H
=1
21070 HAVE_SYS_LOADAVG_H
=0
21072 ac_fn_c_check_decl
"$LINENO" "getloadavg" "ac_cv_have_decl_getloadavg" "#if HAVE_SYS_LOADAVG_H
21073 # include <sys/loadavg.h>
21075 #include <stdlib.h>
21077 if test "x$ac_cv_have_decl_getloadavg" = x
""yes; then :
21080 HAVE_DECL_GETLOADAVG
=0
21084 if test $HAVE_GETLOADAVG = 0; then
21093 gl_LIBOBJS
="$gl_LIBOBJS getloadavg.$ac_objext"
21096 # Figure out what our getloadavg.c needs.
21100 # On HPUX9, an unprivileged user can get load averages this way.
21101 if test $gl_func_getloadavg_done = no
; then
21102 for ac_func
in pstat_getdynamic
21104 ac_fn_c_check_func
"$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
21105 if test "x$ac_cv_func_pstat_getdynamic" = x
""yes; then :
21106 cat >>confdefs.h
<<_ACEOF
21107 #define HAVE_PSTAT_GETDYNAMIC 1
21109 gl_func_getloadavg_done
=yes
21115 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
21116 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
21117 # Irix 4.0.5F has the header but not the library.
21118 if test $gl_func_getloadavg_done = no
&& test "$ac_cv_lib_elf_elf_begin" = yes \
21119 && test "$ac_cv_lib_kvm_kvm_open" = yes; then
21120 gl_func_getloadavg_done
=yes
21122 $as_echo "#define SVR4 1" >>confdefs.h
21126 if test $gl_func_getloadavg_done = no
; then
21127 ac_fn_c_check_header_mongrel
"$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
21128 if test "x$ac_cv_header_inq_stats_cpustats_h" = x
""yes; then :
21129 gl_func_getloadavg_done
=yes
21131 $as_echo "#define UMAX 1" >>confdefs.h
21134 $as_echo "#define UMAX4_3 1" >>confdefs.h
21141 if test $gl_func_getloadavg_done = no
; then
21142 ac_fn_c_check_header_mongrel
"$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
21143 if test "x$ac_cv_header_sys_cpustats_h" = x
""yes; then :
21144 gl_func_getloadavg_done
=yes; $as_echo "#define UMAX 1" >>confdefs.h
21151 if test $gl_func_getloadavg_done = no
; then
21152 for ac_header
in mach
/mach.h
21154 ac_fn_c_check_header_mongrel
"$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
21155 if test "x$ac_cv_header_mach_mach_h" = x
""yes; then :
21156 cat >>confdefs.h
<<_ACEOF
21157 #define HAVE_MACH_MACH_H 1
21166 for ac_header
in nlist.h
21168 ac_fn_c_check_header_mongrel
"$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
21169 if test "x$ac_cv_header_nlist_h" = x
""yes; then :
21170 cat >>confdefs.h
<<_ACEOF
21171 #define HAVE_NLIST_H 1
21173 ac_fn_c_check_member
"$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
21175 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x
""yes; then :
21177 cat >>confdefs.h
<<_ACEOF
21178 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
21184 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21185 /* end confdefs.h. */
21191 #ifdef HAVE_STRUCT_NLIST_N_UN_N_NAME
21192 x.n_un.n_name = "";
21200 if ac_fn_c_try_link
"$LINENO"; then :
21202 $as_echo "#define N_NAME_POINTER 1" >>confdefs.h
21205 rm -f core conftest.err conftest.
$ac_objext \
21206 conftest
$ac_exeext conftest.
$ac_ext
21218 GNULIB_GETLOADAVG
=1
21229 if test $REPLACE_GETOPT = 1; then
21238 gl_LIBOBJS
="$gl_LIBOBJS getopt.$ac_objext"
21248 gl_LIBOBJS
="$gl_LIBOBJS getopt1.$ac_objext"
21253 GNULIB_GL_UNISTD_H_GETOPT
=1
21263 if test -n "$gl_replace_getopt"; then
21267 if test $REPLACE_GETOPT = 1; then
21271 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
21277 if test $REPLACE_GETOPT = 1; then
21286 gl_LIBOBJS
="$gl_LIBOBJS getopt.$ac_objext"
21296 gl_LIBOBJS
="$gl_LIBOBJS getopt1.$ac_objext"
21301 GNULIB_GL_UNISTD_H_GETOPT
=1
21315 gl_gettimeofday_timezone
=void
21316 if test $ac_cv_func_gettimeofday != yes; then
21317 HAVE_GETTIMEOFDAY
=0
21322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday clobbers localtime buffer" >&5
21323 $as_echo_n "checking whether gettimeofday clobbers localtime buffer... " >&6; }
21324 if test "${gl_cv_func_gettimeofday_clobber+set}" = set; then :
21325 $as_echo_n "(cached) " >&6
21327 if test "$cross_compiling" = yes; then :
21328 # When cross-compiling:
21330 # Guess all is fine on glibc systems.
21331 *-gnu*) gl_cv_func_gettimeofday_clobber
="guessing no" ;;
21332 # If we don't know, assume the worst.
21333 *) gl_cv_func_gettimeofday_clobber
="guessing yes" ;;
21337 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21338 /* end confdefs.h. */
21339 #include <string.h>
21340 #include <sys/time.h>
21342 #include <stdlib.h>
21350 struct tm saved_lt;
21352 lt = localtime (&t);
21354 gettimeofday (&tv, NULL);
21355 return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0;
21361 if ac_fn_c_try_run
"$LINENO"; then :
21362 gl_cv_func_gettimeofday_clobber
=no
21364 gl_cv_func_gettimeofday_clobber
=yes
21366 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21367 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_clobber" >&5
21372 $as_echo "$gl_cv_func_gettimeofday_clobber" >&6; }
21374 case "$gl_cv_func_gettimeofday_clobber" in
21376 REPLACE_GETTIMEOFDAY
=1
21379 $as_echo "#define gmtime rpl_gmtime" >>confdefs.h
21382 $as_echo "#define localtime rpl_localtime" >>confdefs.h
21386 $as_echo "#define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1" >>confdefs.h
21391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday with POSIX signature" >&5
21392 $as_echo_n "checking for gettimeofday with POSIX signature... " >&6; }
21393 if test "${gl_cv_func_gettimeofday_posix_signature+set}" = set; then :
21394 $as_echo_n "(cached) " >&6
21396 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21397 /* end confdefs.h. */
21398 #include <sys/time.h>
21400 int gettimeofday (struct timeval *restrict, void *restrict);
21405 /* glibc uses struct timezone * rather than the POSIX void *
21406 if _GNU_SOURCE is defined. However, since the only portable
21407 use of gettimeofday uses NULL as the second parameter, and
21408 since the glibc definition is actually more typesafe, it is
21409 not worth wrapping this to get a compliant signature. */
21410 int (*f) (struct timeval *restrict, void *restrict)
21413 return !(x | c.tv_sec | c.tv_usec);
21419 if ac_fn_c_try_compile
"$LINENO"; then :
21420 gl_cv_func_gettimeofday_posix_signature
=yes
21422 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21423 /* end confdefs.h. */
21424 #include <sys/time.h>
21425 int gettimeofday (struct timeval *restrict, struct timezone *restrict);
21435 if ac_fn_c_try_compile
"$LINENO"; then :
21436 gl_cv_func_gettimeofday_posix_signature
=almost
21438 gl_cv_func_gettimeofday_posix_signature
=no
21440 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21442 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_posix_signature" >&5
21445 $as_echo "$gl_cv_func_gettimeofday_posix_signature" >&6; }
21446 if test $gl_cv_func_gettimeofday_posix_signature = almost
; then
21447 gl_gettimeofday_timezone
='struct timezone'
21448 elif test $gl_cv_func_gettimeofday_posix_signature != yes; then
21449 REPLACE_GETTIMEOFDAY
=1
21451 if test $REPLACE_STRUCT_TIMEVAL = 1; then
21452 REPLACE_GETTIMEOFDAY
=1
21457 cat >>confdefs.h
<<_ACEOF
21458 #define GETTIMEOFDAY_TIMEZONE $gl_gettimeofday_timezone
21462 if test $HAVE_GETTIMEOFDAY = 0 ||
test $REPLACE_GETTIMEOFDAY = 1; then
21471 gl_LIBOBJS
="$gl_LIBOBJS gettimeofday.$ac_objext"
21474 for ac_header
in sys
/timeb.h
21476 ac_fn_c_check_header_mongrel
"$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
21477 if test "x$ac_cv_header_sys_timeb_h" = x
""yes; then :
21478 cat >>confdefs.h
<<_ACEOF
21479 #define HAVE_SYS_TIMEB_H 1
21486 for ac_func
in _ftime
21488 ac_fn_c_check_func
"$LINENO" "_ftime" "ac_cv_func__ftime"
21489 if test "x$ac_cv_func__ftime" = x
""yes; then :
21490 cat >>confdefs.h
<<_ACEOF
21491 #define HAVE__FTIME 1
21504 GNULIB_GETTIMEOFDAY
=1
21515 if test $ac_cv_func_lstat = yes; then
21517 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
21526 if test $REPLACE_LSTAT = 1; then
21535 gl_LIBOBJS
="$gl_LIBOBJS lstat.$ac_objext"
21559 if test $APPLE_UNIVERSAL_BUILD = 1; then
21560 # A universal build on Apple Mac OS X platforms.
21561 # The test result would be 'yes' in 32-bit mode and 'no' in 64-bit mode.
21562 # But we need a configuration result that is valid in both modes.
21563 gl_cv_func_working_mktime
=no
21565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
21566 $as_echo_n "checking for working mktime... " >&6; }
21567 if test "${gl_cv_func_working_mktime+set}" = set; then :
21568 $as_echo_n "(cached) " >&6
21570 if test "$cross_compiling" = yes; then :
21571 gl_cv_func_working_mktime
=no
21573 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21574 /* end confdefs.h. */
21575 /* Test program from Paul Eggert and Tony Leneis. */
21576 #include <limits.h>
21577 #include <stdlib.h>
21580 #ifdef HAVE_UNISTD_H
21581 # include <unistd.h>
21585 # define alarm(X) /* empty */
21588 /* Work around redefinition to rpl_putenv by other config tests. */
21591 static time_t time_t_max;
21592 static time_t time_t_min;
21594 /* Values we'll use to set the TZ environment variable. */
21595 static char *tz_strings[] = {
21596 (char *) 0, "TZ=GMT0", "TZ=JST-9",
21597 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
21599 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
21601 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
21602 Based on a problem report from Andreas Jaeger. */
21604 spring_forward_gap ()
21606 /* glibc (up to about 1998-10-07) failed this test. */
21609 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
21610 instead of "TZ=America/Vancouver" in order to detect the bug even
21611 on systems that don't support the Olson extension, or don't have the
21612 full zoneinfo tables installed. */
21613 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
21622 return mktime (&tm) != (time_t) -1;
21626 mktime_test1 (time_t now)
21629 return ! (lt = localtime (&now)) || mktime (lt) == now;
21633 mktime_test (time_t now)
21635 return (mktime_test1 (now)
21636 && mktime_test1 ((time_t) (time_t_max - now))
21637 && mktime_test1 ((time_t) (time_t_min + now)));
21643 /* Based on code from Ariel Faigon. */
21653 return tm.tm_mon == 2 && tm.tm_mday == 31;
21657 bigtime_test (int j)
21661 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
21662 now = mktime (&tm);
21663 if (now != (time_t) -1)
21665 struct tm *lt = localtime (&now);
21667 && lt->tm_year == tm.tm_year
21668 && lt->tm_mon == tm.tm_mon
21669 && lt->tm_mday == tm.tm_mday
21670 && lt->tm_hour == tm.tm_hour
21671 && lt->tm_min == tm.tm_min
21672 && lt->tm_sec == tm.tm_sec
21673 && lt->tm_yday == tm.tm_yday
21674 && lt->tm_wday == tm.tm_wday
21675 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
21676 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
21685 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
21686 ignoring leap seconds. */
21687 unsigned long int answer = 2527315200UL;
21691 tm.tm_year = 2050 - 1900;
21694 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
21697 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
21698 instead of "TZ=America/Vancouver" in order to detect the bug even
21699 on systems that don't support the Olson extension, or don't have the
21700 full zoneinfo tables installed. */
21701 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
21705 /* Check that the result is either a failure, or close enough
21706 to the correct answer that we can assume the discrepancy is
21707 due to leap seconds. */
21708 return (t == (time_t) -1
21709 || (0 < t && answer - 120 <= t && t <= answer + 120));
21718 int time_t_signed_magnitude = (time_t) ~ (time_t) 0 < (time_t) -1;
21719 int time_t_signed = ! ((time_t) 0 < (time_t) -1);
21721 /* This test makes some buggy mktime implementations loop.
21722 Give up after 60 seconds; a mktime slower than that
21723 isn't worth using anyway. */
21726 time_t_max = (! time_t_signed
21728 : ((((time_t) 1 << (sizeof (time_t) * CHAR_BIT - 2)) - 1)
21730 time_t_min = (! time_t_signed
21732 : time_t_signed_magnitude
21736 delta = time_t_max / 997; /* a suitable prime number */
21737 for (i = 0; i < N_STRINGS; i++)
21740 putenv (tz_strings[i]);
21742 for (t = 0; t <= time_t_max - delta && (result & 1) == 0; t += delta)
21743 if (! mktime_test (t))
21745 if ((result & 2) == 0
21746 && ! (mktime_test ((time_t) 1)
21747 && mktime_test ((time_t) (60 * 60))
21748 && mktime_test ((time_t) (60 * 60 * 24))))
21751 for (j = 1; (result & 4) == 0; j <<= 1)
21753 if (! bigtime_test (j))
21755 if (INT_MAX / 2 < j)
21758 if ((result & 8) == 0 && ! bigtime_test (INT_MAX))
21761 if (! irix_6_4_bug ())
21763 if (! spring_forward_gap ())
21765 if (! year_2050_test ())
21770 if ac_fn_c_try_run
"$LINENO"; then :
21771 gl_cv_func_working_mktime
=yes
21773 gl_cv_func_working_mktime
=no
21775 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21776 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_mktime" >&5
21782 $as_echo "$gl_cv_func_working_mktime" >&6; }
21784 if test $gl_cv_func_working_mktime = no
; then
21790 if test $REPLACE_MKTIME = 1; then
21799 gl_LIBOBJS
="$gl_LIBOBJS mktime.$ac_objext"
21820 if test $ac_cv_func_pselect = yes; then
21821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether signature of pselect conforms to POSIX" >&5
21822 $as_echo_n "checking whether signature of pselect conforms to POSIX... " >&6; }
21823 if test "${gl_cv_sig_pselect+set}" = set; then :
21824 $as_echo_n "(cached) " >&6
21826 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21827 /* end confdefs.h. */
21828 #include <sys/select.h>
21833 int (*p) (int, fd_set *, fd_set *, fd_set *restrict,
21834 struct timespec const *restrict,
21835 sigset_t const *restrict) = pselect;
21841 if ac_fn_c_try_link
"$LINENO"; then :
21842 gl_cv_sig_pselect
=yes
21844 gl_cv_sig_pselect
=no
21846 rm -f core conftest.err conftest.
$ac_objext \
21847 conftest
$ac_exeext conftest.
$ac_ext
21849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sig_pselect" >&5
21850 $as_echo "$gl_cv_sig_pselect" >&6; }
21852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pselect detects invalid fds" >&5
21853 $as_echo_n "checking whether pselect detects invalid fds... " >&6; }
21854 if test "${gl_cv_func_pselect_detects_ebadf+set}" = set; then :
21855 $as_echo_n "(cached) " >&6
21858 if test "$cross_compiling" = yes; then :
21861 # Guess yes on glibc systems.
21862 *-gnu*) gl_cv_func_pselect_detects_ebadf
="guessing yes" ;;
21863 # If we don't know, assume the worst.
21864 *) gl_cv_func_pselect_detects_ebadf
="guessing no" ;;
21868 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21869 /* end confdefs.h. */
21871 #include <sys/types.h>
21872 #include <sys/time.h>
21873 #if HAVE_SYS_SELECT_H
21874 # include <sys/select.h>
21876 #include <unistd.h>
21888 struct timespec timeout;
21889 timeout.tv_sec = 0;
21890 timeout.tv_nsec = 5000;
21891 return pselect (17, &set, NULL, NULL, &timeout, NULL) != -1 || errno != EBADF;
21897 if ac_fn_c_try_run
"$LINENO"; then :
21898 gl_cv_func_pselect_detects_ebadf
=yes
21900 gl_cv_func_pselect_detects_ebadf
=no
21902 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21903 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pselect_detects_ebadf" >&5
21909 $as_echo "$gl_cv_func_pselect_detects_ebadf" >&6; }
21910 case $gl_cv_func_pselect_detects_ebadf in
21912 *) REPLACE_PSELECT
=1 ;;
21916 if test $ac_cv_func_pselect = no ||
test $gl_cv_sig_pselect = no
; then
21920 if test $HAVE_PSELECT = 0 ||
test $REPLACE_PSELECT = 1; then
21929 gl_LIBOBJS
="$gl_LIBOBJS pselect.$ac_objext"
21947 LIB_PTHREAD_SIGMASK
=
21952 if test "$gl_threads_api" = posix
; then
21953 if test $ac_cv_func_pthread_sigmask = yes; then
21956 if test -n "$LIBMULTITHREAD"; then
21957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_sigmask in $LIBMULTITHREAD" >&5
21958 $as_echo_n "checking for pthread_sigmask in $LIBMULTITHREAD... " >&6; }
21959 if test "${gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD+set}" = set; then :
21960 $as_echo_n "(cached) " >&6
21962 gl_save_LIBS
="$LIBS"
21963 LIBS
="$LIBS $LIBMULTITHREAD"
21964 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21965 /* end confdefs.h. */
21966 #include <pthread.h>
21967 #include <signal.h>
21972 return pthread_sigmask (0, (sigset_t *) 0, (sigset_t *) 0);
21978 if ac_fn_c_try_link
"$LINENO"; then :
21979 gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD
=yes
21981 gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD
=no
21983 rm -f core conftest.err conftest.
$ac_objext \
21984 conftest
$ac_exeext conftest.
$ac_ext
21985 LIBS
="$gl_save_LIBS"
21988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD" >&5
21989 $as_echo "$gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD" >&6; }
21990 if test $gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD = yes; then
21991 LIB_PTHREAD_SIGMASK
="$LIBMULTITHREAD"
21993 HAVE_PTHREAD_SIGMASK
=0
21996 HAVE_PTHREAD_SIGMASK
=0
22000 if test $ac_cv_func_pthread_sigmask = yes; then
22001 REPLACE_PTHREAD_SIGMASK
=1
22003 HAVE_PTHREAD_SIGMASK
=0
22010 if test $HAVE_PTHREAD_SIGMASK = 1; then
22013 if test -z "$LIB_PTHREAD_SIGMASK"; then
22014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask works without -lpthread" >&5
22015 $as_echo_n "checking whether pthread_sigmask works without -lpthread... " >&6; }
22016 if test "${gl_cv_func_pthread_sigmask_in_libc_works+set}" = set; then :
22017 $as_echo_n "(cached) " >&6
22020 if test "$cross_compiling" = yes; then :
22023 freebsd
* | hpux
* | solaris | solaris2.
[2-9]*)
22024 gl_cv_func_pthread_sigmask_in_libc_works
="guessing no";;
22026 gl_cv_func_pthread_sigmask_in_libc_works
="guessing yes";;
22030 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22031 /* end confdefs.h. */
22033 #include <pthread.h>
22034 #include <signal.h>
22035 #include <stddef.h>
22039 sigemptyset (&set);
22040 return pthread_sigmask (1729, &set, NULL) != 0;
22043 if ac_fn_c_try_run
"$LINENO"; then :
22044 gl_cv_func_pthread_sigmask_in_libc_works
=no
22046 gl_cv_func_pthread_sigmask_in_libc_works
=yes
22048 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22049 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_in_libc_works" >&5
22055 $as_echo "$gl_cv_func_pthread_sigmask_in_libc_works" >&6; }
22056 case "$gl_cv_func_pthread_sigmask_in_libc_works" in
22058 REPLACE_PTHREAD_SIGMASK
=1
22060 $as_echo "#define PTHREAD_SIGMASK_INEFFECTIVE 1" >>confdefs.h
22066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask returns error numbers" >&5
22067 $as_echo_n "checking whether pthread_sigmask returns error numbers... " >&6; }
22068 if test "${gl_cv_func_pthread_sigmask_return_works+set}" = set; then :
22069 $as_echo_n "(cached) " >&6
22072 gl_save_LIBS
="$LIBS"
22073 LIBS
="$LIBS $LIB_PTHREAD_SIGMASK"
22074 if test "$cross_compiling" = yes; then :
22077 gl_cv_func_pthread_sigmask_return_works
="guessing no";;
22079 gl_cv_func_pthread_sigmask_return_works
="guessing yes";;
22083 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22084 /* end confdefs.h. */
22086 #include <pthread.h>
22087 #include <signal.h>
22088 #include <stddef.h>
22092 sigemptyset (&set);
22093 if (pthread_sigmask (1729, &set, NULL) == -1)
22098 if ac_fn_c_try_run
"$LINENO"; then :
22099 gl_cv_func_pthread_sigmask_return_works
=yes
22101 gl_cv_func_pthread_sigmask_return_works
=no
22103 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22104 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22107 LIBS
="$gl_save_LIBS"
22110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_return_works" >&5
22111 $as_echo "$gl_cv_func_pthread_sigmask_return_works" >&6; }
22112 case "$gl_cv_func_pthread_sigmask_return_works" in
22114 REPLACE_PTHREAD_SIGMASK
=1
22116 $as_echo "#define PTHREAD_SIGMASK_FAILS_WITH_ERRNO 1" >>confdefs.h
22121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask unblocks signals correctly" >&5
22122 $as_echo_n "checking whether pthread_sigmask unblocks signals correctly... " >&6; }
22123 if test "${gl_cv_func_pthread_sigmask_unblock_works+set}" = set; then :
22124 $as_echo_n "(cached) " >&6
22129 gl_cv_func_pthread_sigmask_unblock_works
="guessing no";;
22131 gl_cv_func_pthread_sigmask_unblock_works
="guessing yes";;
22133 gl_save_LIBS
="$LIBS"
22134 LIBS
="$LIBS $LIBMULTITHREAD"
22135 if test "$cross_compiling" = yes; then :
22138 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22139 /* end confdefs.h. */
22141 #include <pthread.h>
22142 #include <signal.h>
22144 #include <stdlib.h>
22145 #include <unistd.h>
22146 static volatile int sigint_occurred;
22148 sigint_handler (int sig)
22155 int pid = getpid ();
22157 signal (SIGINT, sigint_handler);
22158 sigemptyset (&set);
22159 sigaddset (&set, SIGINT);
22160 if (!(pthread_sigmask (SIG_BLOCK, &set, NULL) == 0))
22162 sprintf (command, "sh -c 'sleep 1; kill -%d %d' &", SIGINT, pid);
22163 if (!(system (command) == 0))
22166 if (!(sigint_occurred == 0))
22168 if (!(pthread_sigmask (SIG_UNBLOCK, &set, NULL) == 0))
22170 if (!(sigint_occurred == 1)) /* This fails on IRIX. */
22175 if ac_fn_c_try_run
"$LINENO"; then :
22178 gl_cv_func_pthread_sigmask_unblock_works
=no
22180 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22181 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22184 LIBS
="$gl_save_LIBS"
22187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_unblock_works" >&5
22188 $as_echo "$gl_cv_func_pthread_sigmask_unblock_works" >&6; }
22189 case "$gl_cv_func_pthread_sigmask_unblock_works" in
22191 REPLACE_PTHREAD_SIGMASK
=1
22193 $as_echo "#define PTHREAD_SIGMASK_UNBLOCK_BUG 1" >>confdefs.h
22199 if test $HAVE_PTHREAD_SIGMASK = 0 ||
test $REPLACE_PTHREAD_SIGMASK = 1; then
22208 gl_LIBOBJS
="$gl_LIBOBJS pthread_sigmask.$ac_objext"
22211 if test $HAVE_PTHREAD_SIGMASK = 1; then
22213 $as_echo "#define HAVE_PTHREAD_SIGMASK 1" >>confdefs.h
22223 GNULIB_PTHREAD_SIGMASK
=1
22232 if test $ac_cv_func_readlink = no
; then
22235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
22236 $as_echo_n "checking whether readlink signature is correct... " >&6; }
22237 if test "${gl_cv_decl_readlink_works+set}" = set; then :
22238 $as_echo_n "(cached) " >&6
22240 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22241 /* end confdefs.h. */
22242 #include <unistd.h>
22243 /* Cause compilation failure if original declaration has wrong type. */
22244 ssize_t readlink (const char *, char *, size_t);
22253 if ac_fn_c_try_compile
"$LINENO"; then :
22254 gl_cv_decl_readlink_works
=yes
22256 gl_cv_decl_readlink_works
=no
22258 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
22261 $as_echo "$gl_cv_decl_readlink_works" >&6; }
22262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
22263 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
22264 if test "${gl_cv_func_readlink_works+set}" = set; then :
22265 $as_echo_n "(cached) " >&6
22267 # We have readlink, so assume ln -s works.
22268 ln -s conftest.no-such conftest.link
22269 ln -s conftest.link conftest.lnk2
22270 if test "$cross_compiling" = yes; then :
22272 # Guess yes on glibc systems.
22273 *-gnu*) gl_cv_func_readlink_works
="guessing yes" ;;
22274 # If we don't know, assume the worst.
22275 *) gl_cv_func_readlink_works
="guessing no" ;;
22279 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22280 /* end confdefs.h. */
22281 #include <unistd.h>
22287 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
22292 if ac_fn_c_try_run
"$LINENO"; then :
22293 gl_cv_func_readlink_works
=yes
22295 gl_cv_func_readlink_works
=no
22297 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22298 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22301 rm -f conftest.link conftest.lnk2
22303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
22304 $as_echo "$gl_cv_func_readlink_works" >&6; }
22305 case "$gl_cv_func_readlink_works" in
22307 if test "$gl_cv_decl_readlink_works" != yes; then
22313 $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
22320 if test $HAVE_READLINK = 0 ||
test $REPLACE_READLINK = 1; then
22329 gl_LIBOBJS
="$gl_LIBOBJS readlink.$ac_objext"
22357 if test $gl_cv_have_include_next = yes; then
22358 gl_cv_next_signal_h
='<'signal.h
'>'
22360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
22361 $as_echo_n "checking absolute name of <signal.h>... " >&6; }
22362 if test "${gl_cv_next_signal_h+set}" = set; then :
22363 $as_echo_n "(cached) " >&6
22366 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22367 /* end confdefs.h. */
22368 #include <signal.h>
22372 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
22373 *) gl_absname_cpp
="$ac_cpp" ;;
22378 gl_dirsep_regex
='[/\\]'
22381 gl_dirsep_regex
='\/'
22384 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
22386 gl_header_literal_regex
=`echo 'signal.h' \
22387 | sed -e "$gl_make_literal_regex_sed"`
22388 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22389 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22394 gl_cv_next_signal_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22395 sed -n "$gl_absolute_header_sed"`'"'
22399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
22400 $as_echo "$gl_cv_next_signal_h" >&6; }
22402 NEXT_SIGNAL_H
=$gl_cv_next_signal_h
22404 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
22405 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22406 gl_next_as_first_directive
='<'signal.h
'>'
22408 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22409 gl_next_as_first_directive
=$gl_cv_next_signal_h
22411 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
=$gl_next_as_first_directive
22417 # AIX declares sig_atomic_t to already include volatile, and C89 compilers
22418 # then choke on 'volatile sig_atomic_t'. C99 requires that it compile.
22419 ac_fn_c_check_type
"$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
22420 #include <signal.h>
22423 if test "x$ac_cv_type_volatile_sig_atomic_t" = x
""yes; then :
22426 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
=0
22435 ac_fn_c_check_type
"$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
22436 #include <signal.h>
22439 if test "x$ac_cv_type_sighandler_t" = x
""yes; then :
22442 HAVE_SIGHANDLER_T
=0
22448 ac_fn_c_check_type
"$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
22449 /* <sys/types.h> is not needed according to POSIX, but the
22450 <sys/socket.h> in i386-unknown-freebsd4.10 and
22451 powerpc-apple-darwin5.5 required it. */
22452 #include <sys/types.h>
22453 #if HAVE_SYS_SOCKET_H
22454 # include <sys/socket.h>
22455 #elif HAVE_WS2TCPIP_H
22456 # include <ws2tcpip.h>
22460 if test "x$ac_cv_type_socklen_t" = x
""yes; then :
22463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
22464 $as_echo_n "checking for socklen_t equivalent... " >&6; }
22465 if test "${gl_cv_socklen_t_equiv+set}" = set; then :
22466 $as_echo_n "(cached) " >&6
22468 # Systems have either "struct sockaddr *" or
22469 # "void *" as the second argument to getpeername
22470 gl_cv_socklen_t_equiv
=
22471 for arg2
in "struct sockaddr" void
; do
22472 for t
in int size_t
"unsigned int" "long int" "unsigned long int"; do
22473 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22474 /* end confdefs.h. */
22475 #include <sys/types.h>
22476 #include <sys/socket.h>
22478 int getpeername (int, $arg2 *, $t *);
22483 getpeername (0, 0, &len);
22488 if ac_fn_c_try_compile
"$LINENO"; then :
22489 gl_cv_socklen_t_equiv
="$t"
22491 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22492 test "$gl_cv_socklen_t_equiv" != "" && break
22494 test "$gl_cv_socklen_t_equiv" != "" && break
22499 if test "$gl_cv_socklen_t_equiv" = ""; then
22500 as_fn_error
"Cannot find a type to use in place of socklen_t" "$LINENO" 5
22502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
22503 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
22505 cat >>confdefs.h
<<_ACEOF
22506 #define socklen_t $gl_cv_socklen_t_equiv
22512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
22513 $as_echo_n "checking for ssize_t... " >&6; }
22514 if test "${gt_cv_ssize_t+set}" = set; then :
22515 $as_echo_n "(cached) " >&6
22517 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22518 /* end confdefs.h. */
22519 #include <sys/types.h>
22523 int x = sizeof (ssize_t *) + sizeof (ssize_t);
22529 if ac_fn_c_try_compile
"$LINENO"; then :
22534 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
22537 $as_echo "$gt_cv_ssize_t" >&6; }
22538 if test $gt_cv_ssize_t = no
; then
22540 $as_echo "#define ssize_t int" >>confdefs.h
22548 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>
22549 #include <sys/stat.h>
22551 if test "x$ac_cv_member_struct_stat_st_atim_tv_nsec" = x
""yes; then :
22553 cat >>confdefs.h
<<_ACEOF
22554 #define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1
22557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat.st_atim is of type struct timespec" >&5
22558 $as_echo_n "checking whether struct stat.st_atim is of type struct timespec... " >&6; }
22559 if test "${ac_cv_typeof_struct_stat_st_atim_is_struct_timespec+set}" = set; then :
22560 $as_echo_n "(cached) " >&6
22562 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22563 /* end confdefs.h. */
22565 #include <sys/types.h>
22566 #include <sys/stat.h>
22567 #if HAVE_SYS_TIME_H
22568 # include <sys/time.h>
22571 struct timespec ts;
22584 if ac_fn_c_try_compile
"$LINENO"; then :
22585 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec
=yes
22587 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec
=no
22589 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&5
22592 $as_echo "$ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&6; }
22593 if test $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec = yes; then
22595 $as_echo "#define TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC 1" >>confdefs.h
22599 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>
22600 #include <sys/stat.h>
22602 if test "x$ac_cv_member_struct_stat_st_atimespec_tv_nsec" = x
""yes; then :
22604 cat >>confdefs.h
<<_ACEOF
22605 #define HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC 1
22610 ac_fn_c_check_member
"$LINENO" "struct stat" "st_atimensec" "ac_cv_member_struct_stat_st_atimensec" "#include <sys/types.h>
22611 #include <sys/stat.h>
22613 if test "x$ac_cv_member_struct_stat_st_atimensec" = x
""yes; then :
22615 cat >>confdefs.h
<<_ACEOF
22616 #define HAVE_STRUCT_STAT_ST_ATIMENSEC 1
22621 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>
22622 #include <sys/stat.h>
22624 if test "x$ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" = x
""yes; then :
22626 cat >>confdefs.h
<<_ACEOF
22627 #define HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC 1
22643 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>
22644 #include <sys/stat.h>
22646 if test "x$ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" = x
""yes; then :
22648 cat >>confdefs.h
<<_ACEOF
22649 #define HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC 1
22654 ac_fn_c_check_member
"$LINENO" "struct stat" "st_birthtimensec" "ac_cv_member_struct_stat_st_birthtimensec" "#include <sys/types.h>
22655 #include <sys/stat.h>
22657 if test "x$ac_cv_member_struct_stat_st_birthtimensec" = x
""yes; then :
22659 cat >>confdefs.h
<<_ACEOF
22660 #define HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC 1
22665 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>
22666 #include <sys/stat.h>
22668 if test "x$ac_cv_member_struct_stat_st_birthtim_tv_nsec" = x
""yes; then :
22670 cat >>confdefs.h
<<_ACEOF
22671 #define HAVE_STRUCT_STAT_ST_BIRTHTIM_TV_NSEC 1
22683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdalign.h" >&5
22684 $as_echo_n "checking for working stdalign.h... " >&6; }
22685 if test "${gl_cv_header_working_stdalign_h+set}" = set; then :
22686 $as_echo_n "(cached) " >&6
22688 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22689 /* end confdefs.h. */
22690 #include <stdalign.h>
22691 #include <stddef.h>
22693 /* Test that alignof yields a result consistent with offsetof.
22694 This catches GCC bug 52023
22695 <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023>. */
22697 template <class t> struct alignof_helper { char a; t b; };
22698 # define ao(type) offsetof (alignof_helper<type>, b)
22700 # define ao(type) offsetof (struct { char a; type b; }, b)
22702 char test_double[ao (double) % _Alignof (double) == 0 ? 1 : -1];
22703 char test_long[ao (long int) % _Alignof (long int) == 0 ? 1 : -1];
22704 char test_alignof[alignof (double) == _Alignof (double) ? 1 : -1];
22706 /* Test _Alignas only on platforms where gnulib can help. */
22708 (__GNUC__ || __IBMC__ || __IBMCPP__ \
22709 || 0x5110 <= __SUNPRO_C || 1300 <= _MSC_VER)
22710 int alignas (8) alignas_int = 1;
22711 char test_alignas[_Alignof (alignas_int) == 8 ? 1 : -1];
22722 if ac_fn_c_try_compile
"$LINENO"; then :
22723 gl_cv_header_working_stdalign_h
=yes
22725 gl_cv_header_working_stdalign_h
=no
22727 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdalign_h" >&5
22730 $as_echo "$gl_cv_header_working_stdalign_h" >&6; }
22732 if test $gl_cv_header_working_stdalign_h = yes; then
22735 STDALIGN_H
='stdalign.h'
22739 if test -n "$STDALIGN_H"; then
22740 GL_GENERATE_STDALIGN_H_TRUE
=
22741 GL_GENERATE_STDALIGN_H_FALSE
='#'
22743 GL_GENERATE_STDALIGN_H_TRUE
='#'
22744 GL_GENERATE_STDALIGN_H_FALSE
=
22750 NEXT_STDARG_H
='<stdarg.h>'
22751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
22752 $as_echo_n "checking for va_copy... " >&6; }
22753 if test "${gl_cv_func_va_copy+set}" = set; then :
22754 $as_echo_n "(cached) " >&6
22757 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22758 /* end confdefs.h. */
22759 #include <stdarg.h>
22765 void (*func) (va_list, va_list) = va_copy;
22772 if ac_fn_c_try_compile
"$LINENO"; then :
22773 gl_cv_func_va_copy
=yes
22775 gl_cv_func_va_copy
=no
22777 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_va_copy" >&5
22781 $as_echo "$gl_cv_func_va_copy" >&6; }
22782 if test $gl_cv_func_va_copy = no
; then
22783 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22784 /* end confdefs.h. */
22785 #if defined _AIX && !defined __GNUC__
22790 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22791 $EGREP "vaccine" >/dev
/null
2>&1; then :
22798 if test $gl_aixcc = yes; then
22808 if test $gl_cv_have_include_next = yes; then
22809 gl_cv_next_stdarg_h
='<'stdarg.h
'>'
22811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdarg.h>" >&5
22812 $as_echo_n "checking absolute name of <stdarg.h>... " >&6; }
22813 if test "${gl_cv_next_stdarg_h+set}" = set; then :
22814 $as_echo_n "(cached) " >&6
22817 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22818 /* end confdefs.h. */
22819 #include <stdarg.h>
22823 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
22824 *) gl_absname_cpp
="$ac_cpp" ;;
22829 gl_dirsep_regex
='[/\\]'
22832 gl_dirsep_regex
='\/'
22835 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
22837 gl_header_literal_regex
=`echo 'stdarg.h' \
22838 | sed -e "$gl_make_literal_regex_sed"`
22839 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22840 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22845 gl_cv_next_stdarg_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22846 sed -n "$gl_absolute_header_sed"`'"'
22850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdarg_h" >&5
22851 $as_echo "$gl_cv_next_stdarg_h" >&6; }
22853 NEXT_STDARG_H
=$gl_cv_next_stdarg_h
22855 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
22856 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22857 gl_next_as_first_directive
='<'stdarg.h
'>'
22859 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22860 gl_next_as_first_directive
=$gl_cv_next_stdarg_h
22862 NEXT_AS_FIRST_DIRECTIVE_STDARG_H
=$gl_next_as_first_directive
22867 if test "$gl_cv_next_stdarg_h" = '""'; then
22868 gl_cv_next_stdarg_h
='"///usr/include/stdarg.h"'
22869 NEXT_STDARG_H
="$gl_cv_next_stdarg_h"
22873 saved_as_echo_n
="$as_echo_n"
22875 if test "${gl_cv_func___va_copy+set}" = set; then :
22876 $as_echo_n "(cached) " >&6
22879 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22880 /* end confdefs.h. */
22881 #include <stdarg.h>
22894 if ac_fn_c_try_compile
"$LINENO"; then :
22895 gl_cv_func___va_copy
=yes
22897 gl_cv_func___va_copy
=no
22899 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22902 as_echo_n
="$saved_as_echo_n"
22904 if test $gl_cv_func___va_copy = yes; then
22906 $as_echo "#define va_copy __va_copy" >>confdefs.h
22911 $as_echo "#define va_copy gl_va_copy" >>confdefs.h
22917 if test -n "$STDARG_H"; then
22918 GL_GENERATE_STDARG_H_TRUE
=
22919 GL_GENERATE_STDARG_H_FALSE
='#'
22921 GL_GENERATE_STDARG_H_TRUE
='#'
22922 GL_GENERATE_STDARG_H_FALSE
=
22930 # Define two additional variables used in the Makefile substitution.
22932 if test "$ac_cv_header_stdbool_h" = yes; then
22935 STDBOOL_H
='stdbool.h'
22938 if test -n "$STDBOOL_H"; then
22939 GL_GENERATE_STDBOOL_H_TRUE
=
22940 GL_GENERATE_STDBOOL_H_FALSE
='#'
22942 GL_GENERATE_STDBOOL_H_TRUE
='#'
22943 GL_GENERATE_STDBOOL_H_FALSE
=
22947 if test "$ac_cv_type__Bool" = yes; then
22958 if test $gt_cv_c_wchar_t = no
; then
22962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
22963 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
22964 if test "${gl_cv_decl_null_works+set}" = set; then :
22965 $as_echo_n "(cached) " >&6
22967 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22968 /* end confdefs.h. */
22969 #include <stddef.h>
22970 int test[2 * (sizeof NULL == sizeof (void *)) -1];
22980 if ac_fn_c_try_compile
"$LINENO"; then :
22981 gl_cv_decl_null_works
=yes
22983 gl_cv_decl_null_works
=no
22985 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
22988 $as_echo "$gl_cv_decl_null_works" >&6; }
22989 if test $gl_cv_decl_null_works = no
; then
22994 if test -n "$STDDEF_H"; then
22995 GL_GENERATE_STDDEF_H_TRUE
=
22996 GL_GENERATE_STDDEF_H_FALSE
='#'
22998 GL_GENERATE_STDDEF_H_TRUE
='#'
22999 GL_GENERATE_STDDEF_H_FALSE
=
23002 if test -n "$STDDEF_H"; then
23011 if test $gl_cv_have_include_next = yes; then
23012 gl_cv_next_stddef_h
='<'stddef.h
'>'
23014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
23015 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
23016 if test "${gl_cv_next_stddef_h+set}" = set; then :
23017 $as_echo_n "(cached) " >&6
23020 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23021 /* end confdefs.h. */
23022 #include <stddef.h>
23026 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
23027 *) gl_absname_cpp
="$ac_cpp" ;;
23032 gl_dirsep_regex
='[/\\]'
23035 gl_dirsep_regex
='\/'
23038 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
23040 gl_header_literal_regex
=`echo 'stddef.h' \
23041 | sed -e "$gl_make_literal_regex_sed"`
23042 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23043 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23048 gl_cv_next_stddef_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23049 sed -n "$gl_absolute_header_sed"`'"'
23053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
23054 $as_echo "$gl_cv_next_stddef_h" >&6; }
23056 NEXT_STDDEF_H
=$gl_cv_next_stddef_h
23058 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
23059 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23060 gl_next_as_first_directive
='<'stddef.h
'>'
23062 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23063 gl_next_as_first_directive
=$gl_cv_next_stddef_h
23065 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
=$gl_next_as_first_directive
23084 if test $gl_cv_have_include_next = yes; then
23085 gl_cv_next_stdio_h
='<'stdio.h
'>'
23087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
23088 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
23089 if test "${gl_cv_next_stdio_h+set}" = set; then :
23090 $as_echo_n "(cached) " >&6
23093 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23094 /* end confdefs.h. */
23099 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
23100 *) gl_absname_cpp
="$ac_cpp" ;;
23105 gl_dirsep_regex
='[/\\]'
23108 gl_dirsep_regex
='\/'
23111 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
23113 gl_header_literal_regex
=`echo 'stdio.h' \
23114 | sed -e "$gl_make_literal_regex_sed"`
23115 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23116 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23121 gl_cv_next_stdio_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23122 sed -n "$gl_absolute_header_sed"`'"'
23126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
23127 $as_echo "$gl_cv_next_stdio_h" >&6; }
23129 NEXT_STDIO_H
=$gl_cv_next_stdio_h
23131 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
23132 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23133 gl_next_as_first_directive
='<'stdio.h
'>'
23135 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23136 gl_next_as_first_directive
=$gl_cv_next_stdio_h
23138 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
=$gl_next_as_first_directive
23147 cat >>confdefs.h
<<_ACEOF
23148 #define GNULIB_FSCANF 1
23155 cat >>confdefs.h
<<_ACEOF
23156 #define GNULIB_SCANF 1
23192 if test $gl_cv_have_include_next = yes; then
23193 gl_cv_next_stdlib_h
='<'stdlib.h
'>'
23195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
23196 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
23197 if test "${gl_cv_next_stdlib_h+set}" = set; then :
23198 $as_echo_n "(cached) " >&6
23201 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23202 /* end confdefs.h. */
23203 #include <stdlib.h>
23207 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
23208 *) gl_absname_cpp
="$ac_cpp" ;;
23213 gl_dirsep_regex
='[/\\]'
23216 gl_dirsep_regex
='\/'
23219 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
23221 gl_header_literal_regex
=`echo 'stdlib.h' \
23222 | sed -e "$gl_make_literal_regex_sed"`
23223 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23224 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23229 gl_cv_next_stdlib_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23230 sed -n "$gl_absolute_header_sed"`'"'
23234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
23235 $as_echo "$gl_cv_next_stdlib_h" >&6; }
23237 NEXT_STDLIB_H
=$gl_cv_next_stdlib_h
23239 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
23240 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23241 gl_next_as_first_directive
='<'stdlib.h
'>'
23243 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23244 gl_next_as_first_directive
=$gl_cv_next_stdlib_h
23246 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
=$gl_next_as_first_directive
23256 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
23264 $as_echo "#define my_strftime nstrftime" >>confdefs.h
23273 if test "$ac_cv_have_decl_strtoimax" != yes; then
23274 HAVE_DECL_STRTOIMAX
=0
23277 if test $ac_cv_func_strtoimax = yes; then
23279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtoimax works" >&5
23280 $as_echo_n "checking whether strtoimax works... " >&6; }
23281 if test "${gl_cv_func_strtoimax+set}" = set; then :
23282 $as_echo_n "(cached) " >&6
23284 if test "$cross_compiling" = yes; then :
23286 # Guess no on AIX 5.
23287 aix5
*) gl_cv_func_strtoimax
="guessing no" ;;
23288 # Guess yes otherwise.
23289 *) gl_cv_func_strtoimax
="guessing yes" ;;
23293 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23294 /* end confdefs.h. */
23297 #include <string.h>
23298 #include <inttypes.h>
23301 if (sizeof (intmax_t) > sizeof (int))
23303 const char *s = "4294967295";
23307 res = strtoimax (s, &p, 10);
23308 if (p != s + strlen (s))
23312 if (res != (intmax_t) 65535 * (intmax_t) 65537)
23317 const char *s = "2147483647";
23321 res = strtoimax (s, &p, 10);
23322 if (p != s + strlen (s))
23326 if (res != 2147483647)
23333 if ac_fn_c_try_run
"$LINENO"; then :
23334 gl_cv_func_strtoimax
=yes
23336 gl_cv_func_strtoimax
=no
23338 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23339 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strtoimax" >&5
23345 $as_echo "$gl_cv_func_strtoimax" >&6; }
23346 case "$gl_cv_func_strtoimax" in
23347 *no
) REPLACE_STRTOIMAX
=1 ;;
23353 if test $HAVE_STRTOIMAX = 0 ||
test $REPLACE_STRTOIMAX = 1; then
23362 gl_LIBOBJS
="$gl_LIBOBJS strtoimax.$ac_objext"
23365 ac_fn_c_check_decl
"$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
23366 if test "x$ac_cv_have_decl_strtoll" = x
""yes; then :
23372 cat >>confdefs.h
<<_ACEOF
23373 #define HAVE_DECL_STRTOLL $ac_have_decl
23394 if test "$ac_cv_have_decl_strtoumax" != yes; then
23395 HAVE_DECL_STRTOUMAX
=0
23398 if test $ac_cv_func_strtoumax = no
; then
23407 gl_LIBOBJS
="$gl_LIBOBJS strtoumax.$ac_objext"
23410 ac_fn_c_check_decl
"$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
23411 if test "x$ac_cv_have_decl_strtoull" = x
""yes; then :
23417 cat >>confdefs.h
<<_ACEOF
23418 #define HAVE_DECL_STRTOULL $ac_have_decl
23437 if test $ac_cv_func_symlink = no
; then
23440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symlink handles trailing slash correctly" >&5
23441 $as_echo_n "checking whether symlink handles trailing slash correctly... " >&6; }
23442 if test "${gl_cv_func_symlink_works+set}" = set; then :
23443 $as_echo_n "(cached) " >&6
23445 if test "$cross_compiling" = yes; then :
23447 # Guess yes on glibc systems.
23448 *-gnu*) gl_cv_func_symlink_works
="guessing yes" ;;
23449 # If we don't know, assume the worst.
23450 *) gl_cv_func_symlink_works
="guessing no" ;;
23454 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23455 /* end confdefs.h. */
23456 #include <unistd.h>
23462 if (!symlink ("a", "conftest.link/"))
23464 if (symlink ("conftest.f", "conftest.lnk2"))
23466 else if (!symlink ("a", "conftest.lnk2/"))
23474 if ac_fn_c_try_run
"$LINENO"; then :
23475 gl_cv_func_symlink_works
=yes
23477 gl_cv_func_symlink_works
=no
23479 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23480 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23483 rm -f conftest.f conftest.link conftest.lnk2
23485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_symlink_works" >&5
23486 $as_echo "$gl_cv_func_symlink_works" >&6; }
23487 case "$gl_cv_func_symlink_works" in
23495 if test $HAVE_SYMLINK = 0 ||
test $REPLACE_SYMLINK = 1; then
23504 gl_LIBOBJS
="$gl_LIBOBJS symlink.$ac_objext"
23521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/select.h> is self-contained" >&5
23522 $as_echo_n "checking whether <sys/select.h> is self-contained... " >&6; }
23523 if test "${gl_cv_header_sys_select_h_selfcontained+set}" = set; then :
23524 $as_echo_n "(cached) " >&6
23527 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23528 /* end confdefs.h. */
23529 #include <sys/select.h>
23538 if ac_fn_c_try_compile
"$LINENO"; then :
23539 gl_cv_header_sys_select_h_selfcontained
=yes
23541 gl_cv_header_sys_select_h_selfcontained
=no
23543 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23544 if test $gl_cv_header_sys_select_h_selfcontained = yes; then
23545 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23546 /* end confdefs.h. */
23547 #include <sys/select.h>
23551 int memset; int bzero;
23557 if ac_fn_c_try_compile
"$LINENO"; then :
23558 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23559 /* end confdefs.h. */
23560 #include <sys/select.h>
23566 #define memset nonexistent_memset
23571 void *memset (void *, int, unsigned long);
23573 #define bzero nonexistent_bzero
23578 void bzero (void *, unsigned long);
23587 if ac_fn_c_try_link
"$LINENO"; then :
23590 gl_cv_header_sys_select_h_selfcontained
=no
23592 rm -f core conftest.err conftest.
$ac_objext \
23593 conftest
$ac_exeext conftest.
$ac_ext
23596 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_selfcontained" >&5
23601 $as_echo "$gl_cv_header_sys_select_h_selfcontained" >&6; }
23611 if test $gl_cv_have_include_next = yes; then
23612 gl_cv_next_sys_select_h
='<'sys
/select.h
'>'
23614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/select.h>" >&5
23615 $as_echo_n "checking absolute name of <sys/select.h>... " >&6; }
23616 if test "${gl_cv_next_sys_select_h+set}" = set; then :
23617 $as_echo_n "(cached) " >&6
23620 if test $ac_cv_header_sys_select_h = yes; then
23623 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23624 /* end confdefs.h. */
23625 #include <sys/select.h>
23629 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
23630 *) gl_absname_cpp
="$ac_cpp" ;;
23635 gl_dirsep_regex
='[/\\]'
23638 gl_dirsep_regex
='\/'
23641 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
23643 gl_header_literal_regex
=`echo 'sys/select.h' \
23644 | sed -e "$gl_make_literal_regex_sed"`
23645 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23646 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23651 gl_cv_next_sys_select_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23652 sed -n "$gl_absolute_header_sed"`'"'
23654 gl_cv_next_sys_select_h
='<'sys
/select.h
'>'
23659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_select_h" >&5
23660 $as_echo "$gl_cv_next_sys_select_h" >&6; }
23662 NEXT_SYS_SELECT_H
=$gl_cv_next_sys_select_h
23664 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
23665 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23666 gl_next_as_first_directive
='<'sys
/select.h
'>'
23668 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23669 gl_next_as_first_directive
=$gl_cv_next_sys_select_h
23671 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H
=$gl_next_as_first_directive
23676 if test $ac_cv_header_sys_select_h = yes; then
23677 HAVE_SYS_SELECT_H
=1
23679 HAVE_SYS_SELECT_H
=0
23686 if test $ac_cv_header_sys_socket_h != yes; then
23687 for ac_header
in winsock2.h
23689 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
23690 if test "x$ac_cv_header_winsock2_h" = x
""yes; then :
23691 cat >>confdefs.h
<<_ACEOF
23692 #define HAVE_WINSOCK2_H 1
23700 if test "$ac_cv_header_winsock2_h" = yes; then
23702 UNISTD_H_HAVE_WINSOCK2_H
=1
23703 SYS_IOCTL_H_HAVE_WINSOCK2_H
=1
23729 if test $gl_cv_have_include_next = yes; then
23730 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
23732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
23733 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
23734 if test "${gl_cv_next_sys_stat_h+set}" = set; then :
23735 $as_echo_n "(cached) " >&6
23738 if test $ac_cv_header_sys_stat_h = yes; then
23741 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23742 /* end confdefs.h. */
23743 #include <sys/stat.h>
23747 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
23748 *) gl_absname_cpp
="$ac_cpp" ;;
23753 gl_dirsep_regex
='[/\\]'
23756 gl_dirsep_regex
='\/'
23759 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
23761 gl_header_literal_regex
=`echo 'sys/stat.h' \
23762 | sed -e "$gl_make_literal_regex_sed"`
23763 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23764 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23769 gl_cv_next_sys_stat_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23770 sed -n "$gl_absolute_header_sed"`'"'
23772 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
23777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
23778 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
23780 NEXT_SYS_STAT_H
=$gl_cv_next_sys_stat_h
23782 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
23783 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23784 gl_next_as_first_directive
='<'sys
/stat.h
'>'
23786 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23787 gl_next_as_first_directive
=$gl_cv_next_sys_stat_h
23789 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
=$gl_next_as_first_directive
23801 if test $WINDOWS_64_BIT_ST_SIZE = 1; then
23803 $as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h
23807 ac_fn_c_check_type
"$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
23808 #include <sys/stat.h>
23810 if test "x$ac_cv_type_nlink_t" = x
""yes; then :
23814 $as_echo "#define nlink_t int" >>confdefs.h
23835 ac_fn_c_check_decl
"$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "#include <time.h>
23837 if test "x$ac_cv_have_decl_localtime_r" = x
""yes; then :
23843 cat >>confdefs.h
<<_ACEOF
23844 #define HAVE_DECL_LOCALTIME_R $ac_have_decl
23847 if test $ac_cv_have_decl_localtime_r = no
; then
23848 HAVE_DECL_LOCALTIME_R
=0
23852 if test $ac_cv_func_localtime_r = yes; then
23854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
23855 $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
23856 if test "${gl_cv_time_r_posix+set}" = set; then :
23857 $as_echo_n "(cached) " >&6
23859 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23860 /* end confdefs.h. */
23865 /* We don't need to append 'restrict's to the argument types,
23866 even though the POSIX signature has the 'restrict's,
23867 since C99 says they can't affect type compatibility. */
23868 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
23870 /* Check the return type is a pointer.
23871 On HP-UX 10 it is 'int'. */
23872 *localtime_r (0, 0);
23878 if ac_fn_c_try_compile
"$LINENO"; then :
23879 gl_cv_time_r_posix
=yes
23881 gl_cv_time_r_posix
=no
23883 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
23887 $as_echo "$gl_cv_time_r_posix" >&6; }
23888 if test $gl_cv_time_r_posix = yes; then
23889 REPLACE_LOCALTIME_R
=0
23891 REPLACE_LOCALTIME_R
=1
23897 if test $HAVE_LOCALTIME_R = 0 ||
test $REPLACE_LOCALTIME_R = 1; then
23906 gl_LIBOBJS
="$gl_LIBOBJS time_r.$ac_objext"
23930 gl_saved_libs
=$LIBS
23931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing timer_settime" >&5
23932 $as_echo_n "checking for library containing timer_settime... " >&6; }
23933 if test "${ac_cv_search_timer_settime+set}" = set; then :
23934 $as_echo_n "(cached) " >&6
23936 ac_func_search_save_LIBS
=$LIBS
23937 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23938 /* end confdefs.h. */
23940 /* Override any GCC internal prototype to avoid an error.
23941 Use char because int might match the return type of a GCC
23942 builtin and then its argument prototype would still apply. */
23946 char timer_settime ();
23950 return timer_settime ();
23955 for ac_lib
in '' rt posix4
; do
23956 if test -z "$ac_lib"; then
23957 ac_res
="none required"
23960 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
23962 if ac_fn_c_try_link
"$LINENO"; then :
23963 ac_cv_search_timer_settime
=$ac_res
23965 rm -f core conftest.err conftest.
$ac_objext \
23967 if test "${ac_cv_search_timer_settime+set}" = set; then :
23971 if test "${ac_cv_search_timer_settime+set}" = set; then :
23974 ac_cv_search_timer_settime
=no
23976 rm conftest.
$ac_ext
23977 LIBS
=$ac_func_search_save_LIBS
23979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_timer_settime" >&5
23980 $as_echo "$ac_cv_search_timer_settime" >&6; }
23981 ac_res
=$ac_cv_search_timer_settime
23982 if test "$ac_res" != no
; then :
23983 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
23984 test "$ac_cv_search_timer_settime" = "none required" ||
23985 LIB_TIMER_TIME
=$ac_cv_search_timer_settime
23988 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23989 /* end confdefs.h. */
23991 #include <features.h>
23992 #ifdef __GNU_LIBRARY__
23993 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2) || (__GLIBC__ > 2)) \
23994 && !defined __UCLIBC__
23995 Thread emulation available
24000 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24001 $EGREP "Thread" >/dev
/null
2>&1; then :
24002 LIB_TIMER_TIME
="$LIB_TIMER_TIME $LIBMULTITHREAD"
24006 for ac_func
in timer_settime
24008 ac_fn_c_check_func
"$LINENO" "timer_settime" "ac_cv_func_timer_settime"
24009 if test "x$ac_cv_func_timer_settime" = x
""yes; then :
24010 cat >>confdefs.h
<<_ACEOF
24011 #define HAVE_TIMER_SETTIME 1
24017 LIBS
=$gl_saved_libs
24033 if test $gl_cv_have_include_next = yes; then
24034 gl_cv_next_unistd_h
='<'unistd.h
'>'
24036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
24037 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
24038 if test "${gl_cv_next_unistd_h+set}" = set; then :
24039 $as_echo_n "(cached) " >&6
24042 if test $ac_cv_header_unistd_h = yes; then
24045 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24046 /* end confdefs.h. */
24047 #include <unistd.h>
24051 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
24052 *) gl_absname_cpp
="$ac_cpp" ;;
24057 gl_dirsep_regex
='[/\\]'
24060 gl_dirsep_regex
='\/'
24063 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
24065 gl_header_literal_regex
=`echo 'unistd.h' \
24066 | sed -e "$gl_make_literal_regex_sed"`
24067 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24068 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24073 gl_cv_next_unistd_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24074 sed -n "$gl_absolute_header_sed"`'"'
24076 gl_cv_next_unistd_h
='<'unistd.h
'>'
24081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
24082 $as_echo "$gl_cv_next_unistd_h" >&6; }
24084 NEXT_UNISTD_H
=$gl_cv_next_unistd_h
24086 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
24087 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24088 gl_next_as_first_directive
='<'unistd.h
'>'
24090 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24091 gl_next_as_first_directive
=$gl_cv_next_unistd_h
24093 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
=$gl_next_as_first_directive
24098 if test $ac_cv_header_unistd_h = yes; then
24117 if test $ac_cv_func_futimens = no
&& test $ac_cv_func_futimesat = yes; then
24118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether futimesat handles NULL file" >&5
24119 $as_echo_n "checking whether futimesat handles NULL file... " >&6; }
24120 if test "${gl_cv_func_futimesat_works+set}" = set; then :
24121 $as_echo_n "(cached) " >&6
24123 touch conftest.
file
24124 if test "$cross_compiling" = yes; then :
24126 # Guess yes on glibc systems.
24127 *-gnu*) gl_cv_func_futimesat_works
="guessing yes" ;;
24128 # If we don't know, assume the worst.
24129 *) gl_cv_func_futimesat_works
="guessing no" ;;
24133 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24134 /* end confdefs.h. */
24136 #include <stddef.h>
24137 #include <sys/times.h>
24143 int fd = open ("conftest.file", O_RDWR);
24144 if (fd < 0) return 1;
24145 if (futimesat (fd, NULL, NULL)) return 2;
24151 if ac_fn_c_try_run
"$LINENO"; then :
24152 gl_cv_func_futimesat_works
=yes
24154 gl_cv_func_futimesat_works
=no
24156 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24157 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24160 rm -f conftest.
file
24162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_futimesat_works" >&5
24163 $as_echo "$gl_cv_func_futimesat_works" >&6; }
24164 case "$gl_cv_func_futimesat_works" in
24168 $as_echo "#define FUTIMESAT_NULL_BUG 1" >>confdefs.h
24174 gl_gnulib_enabled_dosname
=false
24175 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36
=false
24176 gl_gnulib_enabled_pathmax
=false
24177 gl_gnulib_enabled_stat
=false
24178 gl_gnulib_enabled_strtoll
=false
24179 gl_gnulib_enabled_strtoull
=false
24180 gl_gnulib_enabled_verify
=false
24181 func_gl_gnulib_m4code_dosname
()
24183 if ! $gl_gnulib_enabled_dosname; then
24184 gl_gnulib_enabled_dosname
=true
24187 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36
()
24189 if ! $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
24192 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36
=true
24195 func_gl_gnulib_m4code_pathmax
()
24197 if ! $gl_gnulib_enabled_pathmax; then
24201 gl_gnulib_enabled_pathmax
=true
24204 func_gl_gnulib_m4code_stat
()
24206 if ! $gl_gnulib_enabled_stat; then
24210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
24211 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
24212 if test "${gl_cv_func_stat_dir_slash+set}" = set; then :
24213 $as_echo_n "(cached) " >&6
24215 if test "$cross_compiling" = yes; then :
24217 mingw
*) gl_cv_func_stat_dir_slash
="guessing no";;
24218 *) gl_cv_func_stat_dir_slash
="guessing yes";;
24221 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24222 /* end confdefs.h. */
24223 #include <sys/stat.h>
24228 struct stat st; return stat (".", &st) != stat ("./", &st);
24233 if ac_fn_c_try_run
"$LINENO"; then :
24234 gl_cv_func_stat_dir_slash
=yes
24236 gl_cv_func_stat_dir_slash
=no
24238 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24239 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
24244 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
24245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
24246 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
24247 if test "${gl_cv_func_stat_file_slash+set}" = set; then :
24248 $as_echo_n "(cached) " >&6
24251 # Assume that if we have lstat, we can also check symlinks.
24252 if test $ac_cv_func_lstat = yes; then
24253 ln -s conftest.tmp conftest.lnk
24255 if test "$cross_compiling" = yes; then :
24257 # Guess yes on glibc systems.
24258 *-gnu*) gl_cv_func_stat_file_slash
="guessing yes" ;;
24259 # If we don't know, assume the worst.
24260 *) gl_cv_func_stat_file_slash
="guessing no" ;;
24264 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24265 /* end confdefs.h. */
24266 #include <sys/stat.h>
24273 if (!stat ("conftest.tmp/", &st))
24276 if (!stat ("conftest.lnk/", &st))
24285 if ac_fn_c_try_run
"$LINENO"; then :
24286 gl_cv_func_stat_file_slash
=yes
24288 gl_cv_func_stat_file_slash
=no
24290 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24291 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24294 rm -f conftest.tmp conftest.lnk
24296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
24297 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
24298 case $gl_cv_func_stat_dir_slash in
24299 *no
) REPLACE_STAT
=1
24301 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
24304 case $gl_cv_func_stat_file_slash in
24305 *no
) REPLACE_STAT
=1
24307 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
24311 if test $REPLACE_STAT = 1; then
24320 gl_LIBOBJS
="$gl_LIBOBJS stat.$ac_objext"
24338 gl_gnulib_enabled_stat
=true
24339 if test $REPLACE_STAT = 1; then
24340 func_gl_gnulib_m4code_dosname
24342 if test $REPLACE_STAT = 1; then
24343 func_gl_gnulib_m4code_pathmax
24345 if test $REPLACE_STAT = 1; then
24346 func_gl_gnulib_m4code_verify
24350 func_gl_gnulib_m4code_strtoll
()
24352 if ! $gl_gnulib_enabled_strtoll; then
24356 if test "$ac_cv_type_long_long_int" = yes; then
24357 for ac_func
in strtoll
24359 ac_fn_c_check_func
"$LINENO" "strtoll" "ac_cv_func_strtoll"
24360 if test "x$ac_cv_func_strtoll" = x
""yes; then :
24361 cat >>confdefs.h
<<_ACEOF
24362 #define HAVE_STRTOLL 1
24368 if test $ac_cv_func_strtoll = no
; then
24373 if test $HAVE_STRTOLL = 0; then
24382 gl_LIBOBJS
="$gl_LIBOBJS strtoll.$ac_objext"
24399 gl_gnulib_enabled_strtoll
=true
24402 func_gl_gnulib_m4code_strtoull
()
24404 if ! $gl_gnulib_enabled_strtoull; then
24408 if test "$ac_cv_type_unsigned_long_long_int" = yes; then
24409 for ac_func
in strtoull
24411 ac_fn_c_check_func
"$LINENO" "strtoull" "ac_cv_func_strtoull"
24412 if test "x$ac_cv_func_strtoull" = x
""yes; then :
24413 cat >>confdefs.h
<<_ACEOF
24414 #define HAVE_STRTOULL 1
24420 if test $ac_cv_func_strtoull = no
; then
24425 if test $HAVE_STRTOULL = 0; then
24434 gl_LIBOBJS
="$gl_LIBOBJS strtoull.$ac_objext"
24451 gl_gnulib_enabled_strtoull
=true
24454 func_gl_gnulib_m4code_verify
()
24456 if ! $gl_gnulib_enabled_verify; then
24457 gl_gnulib_enabled_verify
=true
24460 if test $REPLACE_GETOPT = 1; then
24461 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36
24463 if test $REPLACE_LSTAT = 1; then
24464 func_gl_gnulib_m4code_dosname
24466 if test $REPLACE_LSTAT = 1; then
24467 func_gl_gnulib_m4code_stat
24469 if test $HAVE_READLINK = 0 ||
test $REPLACE_READLINK = 1; then
24470 func_gl_gnulib_m4code_stat
24472 if { test $HAVE_STRTOIMAX = 0 ||
test $REPLACE_STRTOIMAX = 1; } && test $ac_cv_type_long_long_int = yes; then
24473 func_gl_gnulib_m4code_strtoll
24475 if test $HAVE_STRTOIMAX = 0 ||
test $REPLACE_STRTOIMAX = 1; then
24476 func_gl_gnulib_m4code_verify
24478 if test $ac_cv_func_strtoumax = no
&& test $ac_cv_type_unsigned_long_long_int = yes; then
24479 func_gl_gnulib_m4code_strtoull
24481 if test $ac_cv_func_strtoumax = no
; then
24482 func_gl_gnulib_m4code_verify
24485 if $gl_gnulib_enabled_dosname; then
24486 gl_GNULIB_ENABLED_dosname_TRUE
=
24487 gl_GNULIB_ENABLED_dosname_FALSE
='#'
24489 gl_GNULIB_ENABLED_dosname_TRUE
='#'
24490 gl_GNULIB_ENABLED_dosname_FALSE
=
24493 if $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
24494 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE
=
24495 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE
='#'
24497 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE
='#'
24498 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE
=
24501 if $gl_gnulib_enabled_pathmax; then
24502 gl_GNULIB_ENABLED_pathmax_TRUE
=
24503 gl_GNULIB_ENABLED_pathmax_FALSE
='#'
24505 gl_GNULIB_ENABLED_pathmax_TRUE
='#'
24506 gl_GNULIB_ENABLED_pathmax_FALSE
=
24509 if $gl_gnulib_enabled_stat; then
24510 gl_GNULIB_ENABLED_stat_TRUE
=
24511 gl_GNULIB_ENABLED_stat_FALSE
='#'
24513 gl_GNULIB_ENABLED_stat_TRUE
='#'
24514 gl_GNULIB_ENABLED_stat_FALSE
=
24517 if $gl_gnulib_enabled_strtoll; then
24518 gl_GNULIB_ENABLED_strtoll_TRUE
=
24519 gl_GNULIB_ENABLED_strtoll_FALSE
='#'
24521 gl_GNULIB_ENABLED_strtoll_TRUE
='#'
24522 gl_GNULIB_ENABLED_strtoll_FALSE
=
24525 if $gl_gnulib_enabled_strtoull; then
24526 gl_GNULIB_ENABLED_strtoull_TRUE
=
24527 gl_GNULIB_ENABLED_strtoull_FALSE
='#'
24529 gl_GNULIB_ENABLED_strtoull_TRUE
='#'
24530 gl_GNULIB_ENABLED_strtoull_FALSE
=
24533 if $gl_gnulib_enabled_verify; then
24534 gl_GNULIB_ENABLED_verify_TRUE
=
24535 gl_GNULIB_ENABLED_verify_FALSE
='#'
24537 gl_GNULIB_ENABLED_verify_TRUE
='#'
24538 gl_GNULIB_ENABLED_verify_FALSE
=
24541 # End of code from modules
24562 gl_source_base
='tests'
24563 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
24565 gl_module_indicator_condition
=$gltests_WITNESS
24576 LIBGNU_LIBDEPS
="$gl_libdeps"
24578 LIBGNU_LTLIBDEPS
="$gl_ltlibdeps"
24581 CFLAGS
=$SAVE_CFLAGS
24585 aix4-2
) LD_SWITCH_SYSTEM_TEMACS
="-Wl,-bnodelcsect" ;;
24588 ## The -headerpad option tells ld (see man page) to leave room at the
24589 ## end of the header for adding load commands. Needed for dumping.
24590 ## 0x690 is the total size of 30 segment load commands (at 56
24591 ## each); under Cocoa 31 commands are required.
24592 if test "$HAVE_NS" = "yes"; then
24593 libs_nsgui
="-framework AppKit"
24594 headerpad_extra
=6C8
24597 headerpad_extra
=690
24599 LD_SWITCH_SYSTEM_TEMACS
="-fno-pie -prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
24601 ## This is here because src/Makefile.in did some extra fiddling around
24602 ## with LD_SWITCH_SYSTEM. The cpp logic was:
24603 ## #ifndef LD_SWITCH_SYSTEM
24604 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
24605 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
24606 ## not using gcc, darwin.
24607 ## Because this was done in src/Makefile.in, the resulting part of
24608 ## LD_SWITCH_SYSTEM was not used in configure (ie, in ac_link).
24609 ## It therefore seems cleaner to put this in LD_SWITCH_SYSTEM_TEMACS,
24610 ## rather than LD_SWITCH_SYSTEM.
24611 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
24612 LD_SWITCH_SYSTEM_TEMACS
="-X $LD_SWITCH_SYSTEM_TEMACS"
24615 ## LD_SWITCH_X_SITE_RPATH is a -rpath option saying where to
24616 ## find X at run-time.
24617 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at the
24618 ## point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_RPATH
24619 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
24620 ## had different values in configure (in ac_link) and src/Makefile.in.
24621 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
24622 gnu
*) LD_SWITCH_SYSTEM_TEMACS
="\$(LD_SWITCH_X_SITE_RPATH)" ;;
24624 *) LD_SWITCH_SYSTEM_TEMACS
= ;;
24633 ## gnu: GNU needs its own crt0.
24634 aix4-2|cygwin|darwin|gnu|hpux
*|irix6-5|sol2
*|unixware
) ORDINARY_LINK
=yes ;;
24636 ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the
24637 ## library search parth, i.e. it won't search /usr/lib for libc and
24638 ## friends. Using -nostartfiles instead avoids this problem, and
24639 ## will also work on earlier NetBSD releases.
24640 netbsd|openbsd
) LD_FIRSTFLAG
="-nostartfiles" ;;
24642 ## powerpc*: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says
24643 ## MkLinux/LinuxPPC needs this.
24644 ## s390x-* only supports opsys = gnu-linux so it can be added here.
24646 case "$canonical" in
24647 powerpc
*|s390x-
*) LD_FIRSTFLAG
="-nostdlib" ;;
24653 if test "x$ORDINARY_LINK" = "xyes"; then
24657 $as_echo "#define ORDINARY_LINK 1" >>confdefs.h
24660 ## The system files defining neither ORDINARY_LINK nor LD_FIRSTFLAG are:
24661 ## freebsd, gnu-* not on powerpc*|s390x*.
24662 elif test "x$GCC" = "xyes" && test "x$LD_FIRSTFLAG" = "x"; then
24664 ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
24665 ## places that are difficult to figure out at make time. Fortunately,
24666 ## these same versions allow you to pass arbitrary flags on to the
24667 ## linker, so there is no reason not to use it as a linker.
24669 ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from
24670 ## searching for libraries in its internal directories, so we have to
24671 ## ask GCC explicitly where to find libgcc.a (LIB_GCC below).
24672 LD_FIRSTFLAG
="-nostdlib"
24675 ## FIXME? What setting of EDIT_LDFLAGS should this have?
24676 test "$NS_IMPL_GNUSTEP" = "yes" && LD_FIRSTFLAG
="-rdynamic"
24681 ## FIXME? The logic here is not precisely the same as that above.
24682 ## There is no check here for a pre-defined LD_FIRSTFLAG.
24683 ## Should we only be setting LIB_GCC if LD ~ -nostdlib?
24685 if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then
24688 freebsd|netbsd|openbsd
) LIB_GCC
= ;;
24691 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
24692 ## build on ARM EABI under GNU/Linux. (Bug#5518)
24698 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
24699 ## immediately undefine it again and redefine it to empty.
24700 ## Was the C_SWITCH_X_SITE part really necessary?
24701 ## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
24707 ## Ask GCC where to find libgcc.a.
24708 *) LIB_GCC
=`$CC -print-libgcc-file-name 2> /dev/null` ;;
24712 ## Common for all window systems
24713 if test "$window_system" != "none"; then
24715 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
24718 $as_echo "#define HAVE_MOUSE 1" >>confdefs.h
24720 WINDOW_SYSTEM_OBJ
="fontset.o fringe.o image.o"
24727 #### Report on what we decided to do.
24728 #### Report GTK as a toolkit, even if it doesn't use Xt.
24729 #### It makes printing result more understandable as using GTK sets
24730 #### toolkit_scroll_bars to yes by default.
24731 if test "${HAVE_GTK}" = "yes"; then
24732 USE_X_TOOLKIT
="$USE_GTK_TOOLKIT"
24736 Configured for \`${canonical}'.
24738 Where should the build process find the source code? ${srcdir}
24739 What compiler should emacs be built with? ${CC} ${CFLAGS}
24740 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
24741 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
24742 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
24743 What window system should Emacs use? ${window_system}
24744 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
24746 if test -n "${x_includes}"; then
24747 echo " Where do we find X Windows header files? ${x_includes}"
24749 echo " Where do we find X Windows header files? Standard dirs"
24751 if test -n "${x_libraries}"; then
24752 echo " Where do we find X Windows libraries? ${x_libraries}"
24754 echo " Where do we find X Windows libraries? Standard dirs"
24757 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
24758 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
24759 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
24760 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
24761 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
24762 echo " Does Emacs use -lpng? ${HAVE_PNG}"
24763 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
24764 echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
24766 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
24767 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
24768 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
24769 echo " Does Emacs use GSettings? ${HAVE_GSETTINGS}"
24770 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
24771 echo " Does Emacs use -lgnutls? ${HAVE_GNUTLS}"
24772 echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}"
24774 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
24775 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
24776 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
24777 echo " Does Emacs use -lxft? ${HAVE_XFT}"
24779 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
24782 if test -n "${EMACSDATA}"; then
24783 echo " Environment variable EMACSDATA set to: $EMACSDATA"
24785 if test -n "${EMACSDOC}"; then
24786 echo " Environment variable EMACSDOC set to: $EMACSDOC"
24791 if test "$HAVE_NS" = "yes"; then
24793 echo "You must run \"${MAKE-make} install\" in order to test the built application.
24794 The installed application will go to nextstep/Emacs.app and can be
24795 run or moved from there."
24796 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
24797 echo "The application will be fully self-contained."
24799 echo "The lisp resources for the application will be installed under ${prefix}.
24800 You may need to run \"${MAKE-make} install\" with sudo. The application will fail
24801 to run if these resources are not installed."
24806 if test "${opsys}" = "cygwin"; then
24808 1.5.
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: building Emacs on Cygwin 1.5 is not supported." >&5
24809 $as_echo "$as_me: WARNING: building Emacs on Cygwin 1.5 is not supported." >&2;}
24815 # Remove any trailing slashes in these variables.
24816 test "${prefix}" != NONE
&&
24817 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
24818 test "${exec_prefix}" != NONE
&&
24819 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
24821 if test "$HAVE_NS" = "yes"; then
24822 if test "$NS_IMPL_GNUSTEP" = yes; then
24823 ac_config_files
="$ac_config_files nextstep/GNUstep/Emacs.base/Resources/Info-gnustep.plist:nextstep/templates/Info-gnustep.plist.in nextstep/GNUstep/Emacs.base/Resources/Emacs.desktop:nextstep/templates/Emacs.desktop.in"
24826 ac_config_files
="$ac_config_files nextstep/Cocoa/Emacs.base/Contents/Info.plist:nextstep/templates/Info.plist.in nextstep/Cocoa/Emacs.base/Contents/Resources/English.lproj/InfoPlist.strings:nextstep/templates/InfoPlist.strings.in"
24831 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 nextstep/Makefile"
24833 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 nextstep/Makefile"
24836 opt_makefile
=test
/automated
/Makefile
24838 if test -f $srcdir/${opt_makefile}.
in; then
24839 SUBDIR_MAKEFILES
="$SUBDIR_MAKEFILES $opt_makefile"
24840 ac_config_files
="$ac_config_files test/automated/Makefile"
24845 opt_makefile
=admin
/unidata
/Makefile
24847 if test -f $srcdir/${opt_makefile}.
in; then
24848 SUBDIR_MAKEFILES
="$SUBDIR_MAKEFILES $opt_makefile"
24849 ac_config_files
="$ac_config_files admin/unidata/Makefile"
24854 SUBDIR_MAKEFILES_IN
=`echo " ${SUBDIR_MAKEFILES}" | sed -e 's| | $(srcdir)/|g' -e 's|Makefile|Makefile.in|g'`
24858 ac_config_commands
="$ac_config_commands mkdirs"
24861 ac_config_commands
="$ac_config_commands epaths"
24864 ac_config_commands
="$ac_config_commands gdbinit"
24867 cat >confcache
<<\_ACEOF
24868 # This file is a shell script that caches the results of configure
24869 # tests run on this system so they can be shared between configure
24870 # scripts and configure runs, see configure's option --config-cache.
24871 # It is not useful on other systems. If it contains results you don't
24872 # want to keep, you may remove or edit it.
24874 # config.status only pays attention to the cache file if you give it
24875 # the --recheck option to rerun configure.
24877 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24878 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24879 # following values.
24883 # The following way of writing the cache mishandles newlines in values,
24884 # but we know of no workaround that is simple, portable, and efficient.
24885 # So, we kill variables containing newlines.
24886 # Ultrix sh set writes to stderr and can't be redirected directly,
24887 # and sets the high bit in the cache file unless we assign to the vars.
24889 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24890 eval ac_val
=\$
$ac_var
24894 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
24895 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
24898 _ | IFS | as_nl
) ;; #(
24899 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
24900 *) { eval $ac_var=; unset $ac_var;} ;;
24906 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24907 *${as_nl}ac_space
=\
*)
24908 # `set' does not quote correctly, so add quotes: double-quote
24909 # substitution turns \\\\ into \\, and sed turns \\ into \.
24912 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24915 # `set' quotes correctly as required by POSIX, so do not add quotes.
24916 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24925 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24927 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24929 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
24930 if test -w "$cache_file"; then
24931 test "x$cache_file" != "x/dev/null" &&
24932 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
24933 $as_echo "$as_me: updating cache $cache_file" >&6;}
24934 cat confcache
>$cache_file
24936 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
24937 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24942 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
24943 # Let make expand exec_prefix.
24944 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
24946 DEFS
=-DHAVE_CONFIG_H
24950 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
24951 # 1. Remove the extension, and $U if already installed.
24952 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
24953 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
24954 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24955 # will be set to the directory where LIBOBJS objects are built.
24956 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24957 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
24959 LIBOBJS
=$ac_libobjs
24961 LTLIBOBJS
=$ac_ltlibobjs
24964 if test -n "$EXEEXT"; then
24966 am__EXEEXT_FALSE
='#'
24968 am__EXEEXT_TRUE
='#'
24972 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
24973 as_fn_error
"conditional \"AMDEP\" was never defined.
24974 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24976 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
24977 as_fn_error
"conditional \"am__fastdepCC\" was never defined.
24978 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24980 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
24981 as_fn_error
"conditional \"GL_COND_LIBTOOL\" was never defined.
24982 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24984 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
24985 as_fn_error
"conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
24986 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24989 if test -z "${GL_GENERATE_EXECINFO_H_TRUE}" && test -z "${GL_GENERATE_EXECINFO_H_FALSE}"; then
24990 as_fn_error
"conditional \"GL_GENERATE_EXECINFO_H\" was never defined.
24991 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24993 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
24994 as_fn_error
"conditional \"GL_GENERATE_STDINT_H\" was never defined.
24995 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24997 if test -z "${GL_GENERATE_STDALIGN_H_TRUE}" && test -z "${GL_GENERATE_STDALIGN_H_FALSE}"; then
24998 as_fn_error
"conditional \"GL_GENERATE_STDALIGN_H\" was never defined.
24999 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25001 if test -z "${GL_GENERATE_STDARG_H_TRUE}" && test -z "${GL_GENERATE_STDARG_H_FALSE}"; then
25002 as_fn_error
"conditional \"GL_GENERATE_STDARG_H\" was never defined.
25003 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25005 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
25006 as_fn_error
"conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
25007 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25009 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
25010 as_fn_error
"conditional \"GL_GENERATE_STDDEF_H\" was never defined.
25011 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25013 if test -z "${gl_GNULIB_ENABLED_dosname_TRUE}" && test -z "${gl_GNULIB_ENABLED_dosname_FALSE}"; then
25014 as_fn_error
"conditional \"gl_GNULIB_ENABLED_dosname\" was never defined.
25015 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25017 if test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE}" && test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE}"; then
25018 as_fn_error
"conditional \"gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36\" was never defined.
25019 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25021 if test -z "${gl_GNULIB_ENABLED_pathmax_TRUE}" && test -z "${gl_GNULIB_ENABLED_pathmax_FALSE}"; then
25022 as_fn_error
"conditional \"gl_GNULIB_ENABLED_pathmax\" was never defined.
25023 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25025 if test -z "${gl_GNULIB_ENABLED_stat_TRUE}" && test -z "${gl_GNULIB_ENABLED_stat_FALSE}"; then
25026 as_fn_error
"conditional \"gl_GNULIB_ENABLED_stat\" was never defined.
25027 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25029 if test -z "${gl_GNULIB_ENABLED_strtoll_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoll_FALSE}"; then
25030 as_fn_error
"conditional \"gl_GNULIB_ENABLED_strtoll\" was never defined.
25031 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25033 if test -z "${gl_GNULIB_ENABLED_strtoull_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoull_FALSE}"; then
25034 as_fn_error
"conditional \"gl_GNULIB_ENABLED_strtoull\" was never defined.
25035 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25037 if test -z "${gl_GNULIB_ENABLED_verify_TRUE}" && test -z "${gl_GNULIB_ENABLED_verify_FALSE}"; then
25038 as_fn_error
"conditional \"gl_GNULIB_ENABLED_verify\" was never defined.
25039 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25044 if test -n "$gl_LIBOBJS"; then
25045 # Remove the extension.
25046 sed_drop_objext
='s/\.o$//;s/\.obj$//'
25047 for i
in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
25048 gl_libobjs
="$gl_libobjs $i.$ac_objext"
25049 gl_ltlibobjs
="$gl_ltlibobjs $i.lo"
25052 gl_LIBOBJS
=$gl_libobjs
25054 gl_LTLIBOBJS
=$gl_ltlibobjs
25060 if test -n "$gltests_LIBOBJS"; then
25061 # Remove the extension.
25062 sed_drop_objext
='s/\.o$//;s/\.obj$//'
25063 for i
in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
25064 gltests_libobjs
="$gltests_libobjs $i.$ac_objext"
25065 gltests_ltlibobjs
="$gltests_ltlibobjs $i.lo"
25068 gltests_LIBOBJS
=$gltests_libobjs
25070 gltests_LTLIBOBJS
=$gltests_ltlibobjs
25074 : ${CONFIG_STATUS=./config.status}
25076 ac_clean_files_save
=$ac_clean_files
25077 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
25078 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
25079 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
25081 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
25083 # Generated by $as_me.
25084 # Run this file to recreate the current configuration.
25085 # Compiler output produced by configure, useful for debugging
25086 # configure, is in config.log if it exists.
25089 ac_cs_recheck=false
25092 SHELL=\${CONFIG_SHELL-$SHELL}
25095 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
25096 ## -------------------- ##
25097 ## M4sh Initialization. ##
25098 ## -------------------- ##
25100 # Be more Bourne compatible
25101 DUALCASE
=1; export DUALCASE
# for MKS sh
25102 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
25105 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25106 # is contrary to our usage. Disable this feature.
25107 alias -g '${1+"$@"}'='"$@"'
25108 setopt NO_GLOB_SUBST
25110 case `(set -o) 2>/dev/null` in #(
25122 # Printing a long string crashes Solaris 7 /usr/bin/printf.
25123 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
25124 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
25125 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
25126 # Prefer a ksh shell builtin over an external printf program on Solaris,
25127 # but without wasting forks for bash or zsh.
25128 if test -z "$BASH_VERSION$ZSH_VERSION" \
25129 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
25130 as_echo='print
-r --'
25131 as_echo_n='print
-rn --'
25132 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
25133 as_echo='printf %s
\n'
25134 as_echo_n='printf %s
'
25136 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
25137 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
25138 as_echo_n='/usr
/ucb
/echo -n'
25140 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
25141 as_echo_n_body='eval
25145 expr "X$arg" : "X\\(.*\\)$as_nl";
25146 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
25148 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
25150 export as_echo_n_body
25151 as_echo_n='sh
-c $as_echo_n_body as_echo
'
25153 export as_echo_body
25154 as_echo='sh
-c $as_echo_body as_echo
'
25157 # The user is always right.
25158 if test "${PATH_SEPARATOR+set}" != set; then
25160 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
25161 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
25168 # We need space, tab and new line, in precisely that order. Quoting is
25169 # there to prevent editors from complaining about space-tab.
25170 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
25171 # splitting by setting IFS to empty value.)
25174 # Find who we are. Look in the path if we contain no directory separator.
25176 *[\\/]* ) as_myself=$0 ;;
25177 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25178 for as_dir in $PATH
25181 test -z "$as_dir" && as_dir=.
25182 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25188 # We did not find ourselves, most probably we were run as `sh COMMAND'
25189 # in which case we are not to be found in the path.
25190 if test "x$as_myself" = x
; then
25193 if test ! -f "$as_myself"; then
25194 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25198 # Unset variables that we do not need and which cause bugs (e.g. in
25199 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
25200 # suppresses any "Segmentation fault" message there. '((' could
25201 # trigger a bug in pdksh 5.2.14.
25202 for as_var
in BASH_ENV ENV MAIL MAILPATH
25203 do eval test x\
${$as_var+set} = xset \
25204 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
25217 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
25220 # as_fn_error ERROR [LINENO LOG_FD]
25221 # ---------------------------------
25222 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
25223 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
25224 # script with status $?, using 1 if that was 0.
25227 as_status
=$?
; test $as_status -eq 0 && as_status
=1
25229 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
25230 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
25232 $as_echo "$as_me: error: $1" >&2
25233 as_fn_exit
$as_status
25237 # as_fn_set_status STATUS
25238 # -----------------------
25239 # Set $? to STATUS, without forking.
25240 as_fn_set_status
()
25243 } # as_fn_set_status
25245 # as_fn_exit STATUS
25246 # -----------------
25247 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
25251 as_fn_set_status
$1
25257 # Portably unset VAR.
25260 { eval $1=; unset $1;}
25262 as_unset
=as_fn_unset
25263 # as_fn_append VAR VALUE
25264 # ----------------------
25265 # Append the text in VALUE to the end of the definition contained in VAR. Take
25266 # advantage of any shell optimizations that allow amortized linear growth over
25267 # repeated appends, instead of the typical quadratic growth present in naive
25269 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
25270 eval 'as_fn_append ()
25281 # as_fn_arith ARG...
25282 # ------------------
25283 # Perform arithmetic evaluation on the ARGs, and store the result in the
25284 # global $as_val. Take advantage of shells that can avoid forks. The arguments
25285 # must be portable across $(()) and expr.
25286 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
25287 eval 'as_fn_arith ()
25294 as_val
=`expr "$@" || test $? -eq 1`
25299 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
25300 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
25306 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25307 as_basename
=basename
25312 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
25318 as_me
=`$as_basename -- "$0" ||
25319 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25320 X"$0" : 'X\(//\)$' \| \
25321 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25323 sed '/^.*\/\([^/][^/]*\)\/*$/{
25337 # Avoid depending upon Character Ranges.
25338 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
25339 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25340 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
25341 as_cr_digits
='0123456789'
25342 as_cr_alnum
=$as_cr_Letters$as_cr_digits
25344 ECHO_C
= ECHO_N
= ECHO_T
=
25345 case `echo -n x` in #(((((
25347 case `echo 'xy\c'` in
25348 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
25350 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
25357 rm -f conf$$ conf$$.exe conf$$.
file
25358 if test -d conf$$.dir
; then
25359 rm -f conf$$.dir
/conf$$.
file
25362 mkdir conf$$.dir
2>/dev
/null
25364 if (echo >conf$$.
file) 2>/dev
/null
; then
25365 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
25367 # ... but there are two gotchas:
25368 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25369 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25370 # In both cases, we have to default to `cp -p'.
25371 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
25373 elif ln conf$$.
file conf$$
2>/dev
/null
; then
25381 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
25382 rmdir conf$$.dir
2>/dev
/null
25387 # Create "$as_dir" as a directory, including parents if necessary.
25392 -*) as_dir
=.
/$as_dir;;
25394 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
25398 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
25399 *) as_qdir
=$as_dir;;
25401 as_dirs
="'$as_qdir' $as_dirs"
25402 as_dir
=`$as_dirname -- "$as_dir" ||
25403 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25404 X"$as_dir" : 'X\(//\)[^/]' \| \
25405 X"$as_dir" : 'X\(//\)$' \| \
25406 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25407 $as_echo X"$as_dir" |
25408 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25412 /^X\(\/\/\)[^/].*/{
25425 test -d "$as_dir" && break
25427 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
25428 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
25432 if mkdir
-p .
2>/dev
/null
; then
25433 as_mkdir_p
='mkdir -p "$as_dir"'
25435 test -d .
/-p && rmdir .
/-p
25439 if test -x / >/dev
/null
2>&1; then
25440 as_test_x
='test -x'
25442 if ls -dL / >/dev
/null
2>&1; then
25449 if test -d "$1"; then
25455 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
25456 ???[sx]*):;;*)false;;esac;fi
25460 as_executable_p
=$as_test_x
25462 # Sed expression to map a string onto a valid CPP name.
25463 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25465 # Sed expression to map a string onto a valid variable name.
25466 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25470 ## ----------------------------------- ##
25471 ## Main body of $CONFIG_STATUS script. ##
25472 ## ----------------------------------- ##
25474 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
25476 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
25477 # Save the log message, to keep $0 and so on meaningful, and to
25478 # report actual input values of CONFIG_FILES etc. instead of their
25479 # values after options handling.
25481 This file was extended by emacs $as_me 24.2.91, which was
25482 generated by GNU Autoconf 2.65. Invocation command line was
25484 CONFIG_FILES = $CONFIG_FILES
25485 CONFIG_HEADERS = $CONFIG_HEADERS
25486 CONFIG_LINKS = $CONFIG_LINKS
25487 CONFIG_COMMANDS = $CONFIG_COMMANDS
25490 on `(hostname || uname -n) 2>/dev/null | sed 1q`
25495 case $ac_config_files in *"
25496 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
25499 case $ac_config_headers in *"
25500 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
25504 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25505 # Files that config.status was made for.
25506 config_files="$ac_config_files"
25507 config_headers="$ac_config_headers"
25508 config_commands="$ac_config_commands"
25512 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
25514 \`$as_me' instantiates files and other configuration actions
25515 from templates according to the current configuration. Unless the files
25516 and actions are specified as TAGs, all are instantiated by default.
25518 Usage: $0 [OPTION]... [TAG]...
25520 -h, --help print this help, then exit
25521 -V, --version print version number and configuration settings, then exit
25522 --config print configuration, then exit
25523 -q, --quiet, --silent
25524 do not print progress messages
25525 -d, --debug don't remove temporary files
25526 --recheck update $as_me by reconfiguring in the same conditions
25527 --file=FILE[:TEMPLATE]
25528 instantiate the configuration file FILE
25529 --header=FILE[:TEMPLATE]
25530 instantiate the configuration header FILE
25532 Configuration files:
25535 Configuration headers:
25538 Configuration commands:
25541 Report bugs to the package provider."
25544 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25545 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
25547 emacs config.status 24.2.91
25548 configured by $0, generated by GNU Autoconf 2.65,
25549 with options \\"\$ac_cs_config\\"
25551 Copyright (C) 2009 Free Software Foundation, Inc.
25552 This config.status script is free software; the Free Software Foundation
25553 gives unlimited permission to copy, distribute and modify it."
25560 test -n "\$AWK" || AWK=awk
25563 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
25564 # The default lists apply if the user does not specify any file.
25570 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
25571 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
25582 # Handling of the options.
25583 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
25585 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
25586 $as_echo "$ac_cs_version"; exit ;;
25587 --config |
--confi |
--conf |
--con |
--co |
--c )
25588 $as_echo "$ac_cs_config"; exit ;;
25589 --debug |
--debu |
--deb |
--de |
--d |
-d )
25591 --file |
--fil |
--fi |
--f )
25594 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25596 as_fn_append CONFIG_FILES
" '$ac_optarg'"
25597 ac_need_defaults
=false
;;
25598 --header |
--heade |
--head |
--hea )
25601 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25603 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
25604 ac_need_defaults
=false
;;
25606 # Conflict between --help and --header
25607 as_fn_error
"ambiguous option: \`$1'
25608 Try \`$0 --help' for more information.";;
25609 --help |
--hel |
-h )
25610 $as_echo "$ac_cs_usage"; exit ;;
25611 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
25612 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
25615 # This is an error.
25616 -*) as_fn_error
"unrecognized option: \`$1'
25617 Try \`$0 --help' for more information." ;;
25619 *) as_fn_append ac_config_targets
" $1"
25620 ac_need_defaults
=false
;;
25626 ac_configure_extra_args
=
25628 if $ac_cs_silent; then
25630 ac_configure_extra_args
="$ac_configure_extra_args --silent"
25634 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25635 if \$ac_cs_recheck; then
25636 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25638 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
25639 CONFIG_SHELL='$SHELL'
25640 export CONFIG_SHELL
25645 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
25649 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25650 ## Running $as_me. ##
25656 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25660 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
25661 GCC="$GCC" CPPFLAGS="$CPPFLAGS"
25665 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
25667 # Handling of arguments.
25668 for ac_config_target
in $ac_config_targets
25670 case $ac_config_target in
25671 "src/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
25672 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
25673 "nextstep/GNUstep/Emacs.base/Resources/Info-gnustep.plist") CONFIG_FILES
="$CONFIG_FILES nextstep/GNUstep/Emacs.base/Resources/Info-gnustep.plist:nextstep/templates/Info-gnustep.plist.in" ;;
25674 "nextstep/GNUstep/Emacs.base/Resources/Emacs.desktop") CONFIG_FILES
="$CONFIG_FILES nextstep/GNUstep/Emacs.base/Resources/Emacs.desktop:nextstep/templates/Emacs.desktop.in" ;;
25675 "nextstep/Cocoa/Emacs.base/Contents/Info.plist") CONFIG_FILES
="$CONFIG_FILES nextstep/Cocoa/Emacs.base/Contents/Info.plist:nextstep/templates/Info.plist.in" ;;
25676 "nextstep/Cocoa/Emacs.base/Contents/Resources/English.lproj/InfoPlist.strings") CONFIG_FILES
="$CONFIG_FILES nextstep/Cocoa/Emacs.base/Contents/Resources/English.lproj/InfoPlist.strings:nextstep/templates/InfoPlist.strings.in" ;;
25677 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
25678 "lib/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/Makefile" ;;
25679 "lib-src/Makefile") CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile" ;;
25680 "oldXMenu/Makefile") CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
25681 "doc/emacs/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/emacs/Makefile" ;;
25682 "doc/misc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/misc/Makefile" ;;
25683 "doc/lispintro/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispintro/Makefile" ;;
25684 "doc/lispref/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispref/Makefile" ;;
25685 "src/Makefile") CONFIG_FILES
="$CONFIG_FILES src/Makefile" ;;
25686 "lwlib/Makefile") CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
25687 "lisp/Makefile") CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
25688 "leim/Makefile") CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
25689 "nextstep/Makefile") CONFIG_FILES
="$CONFIG_FILES nextstep/Makefile" ;;
25690 "test/automated/Makefile") CONFIG_FILES
="$CONFIG_FILES test/automated/Makefile" ;;
25691 "admin/unidata/Makefile") CONFIG_FILES
="$CONFIG_FILES admin/unidata/Makefile" ;;
25692 "mkdirs") CONFIG_COMMANDS
="$CONFIG_COMMANDS mkdirs" ;;
25693 "epaths") CONFIG_COMMANDS
="$CONFIG_COMMANDS epaths" ;;
25694 "gdbinit") CONFIG_COMMANDS
="$CONFIG_COMMANDS gdbinit" ;;
25696 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
25701 # If the user did not use the arguments to specify the items to instantiate,
25702 # then the envvar interface is used. Set only those that are not.
25703 # We use the long form for the default assignment because of an extremely
25704 # bizarre bug on SunOS 4.1.3.
25705 if $ac_need_defaults; then
25706 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
25707 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
25708 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
25711 # Have a temporary directory for convenience. Make it in the build tree
25712 # simply because there is no reason against having it here, and in addition,
25713 # creating and moving files from /tmp can sometimes cause problems.
25714 # Hook for its removal unless debugging.
25715 # Note that there is a small window in which the directory will not be cleaned:
25716 # after its creation but before its name has been assigned to `$tmp'.
25720 trap 'exit_status=$?
25721 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
25723 trap 'as_fn_exit 1' 1 2 13 15
25725 # Create a (secure) tmp directory for tmp files.
25728 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25729 test -n "$tmp" && test -d "$tmp"
25732 tmp
=.
/conf$$
-$RANDOM
25733 (umask 077 && mkdir
"$tmp")
25734 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
25736 # Set up the scripts for CONFIG_FILES section.
25737 # No need to generate them if there are no CONFIG_FILES.
25738 # This happens for instance with `./config.status config.h'.
25739 if test -n "$CONFIG_FILES"; then
25741 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
25742 ac_cs_awk_getline
=:
25743 ac_cs_awk_pipe_init
=
25744 ac_cs_awk_read_file
='
25745 while ((getline aline < (F[key])) > 0)
25748 ac_cs_awk_pipe_fini
=
25750 ac_cs_awk_getline
=false
25751 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
25752 ac_cs_awk_read_file
='
25754 print "cat " F[key] " &&"
25755 '$ac_cs_awk_pipe_init
25756 # The final `:' finishes the AND list.
25757 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
25759 ac_cr
=`echo X | tr X '\015'`
25760 # On cygwin, bash can eat \r inside `` if the user requested igncr.
25761 # But we know of no other shell where ac_cr would be empty at this
25762 # point, so we can use a bashism as a fallback.
25763 if test "x$ac_cr" = x
; then
25764 eval ac_cr
=\$
\'\\r
\'
25766 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
25767 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
25770 ac_cs_awk_cr
=$ac_cr
25773 echo 'BEGIN {' >"$tmp/subs1.awk" &&
25776 # Create commands to substitute file output variables.
25778 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
25779 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
25780 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
25783 } >conf$
$files.sh
&&
25784 . .
/conf$
$files.sh ||
25785 as_fn_error
"could not make $CONFIG_STATUS" "$LINENO" 5
25786 rm -f conf$
$files.sh
25789 echo "cat >conf$$subs.awk <<_ACEOF" &&
25790 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
25792 } >conf$$subs.sh ||
25793 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
25794 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
25796 for ac_last_try in false false false false false :; do
25797 . ./conf$$subs.sh ||
25798 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
25800 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
25801 if test $ac_delim_n = $ac_delim_num; then
25803 elif $ac_last_try; then
25804 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
25806 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
25809 rm -f conf$$subs.sh
25811 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25812 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
25816 s/^/S["/; s
/!.
*/"]=/
25826 s/\(.\{148\}\)..*/\1/
25828 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
25833 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
25840 s/\(.\{148\}\)..*/\1/
25842 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
25846 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
25851 ' <conf$$subs.awk | sed '
25856 ' >>$CONFIG_STATUS || ac_write_fail=1
25857 rm -f conf$$subs.awk
25858 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25860 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
25861 for (key in S) S_is_set[key] = 1
25863 \$ac_cs_awk_pipe_init
25867 nfields = split(line, field, "@
")
25869 len = length(field[1])
25870 for (i = 2; i < nfields; i++) {
25872 keylen = length(key)
25873 if (S_is_set[key]) {
25875 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
25876 len += length(value) + length(field[++i])
25881 if (nfields == 3 && !substed) {
25883 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
25884 \$ac_cs_awk_read_file
25890 \$ac_cs_awk_pipe_fini
25893 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25894 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
25895 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
25898 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
25899 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
25902 # VPATH may cause trouble with some makes, so we remove $(srcdir),
25903 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
25904 # trailing colons and then remove the whole line if VPATH becomes empty
25905 # (actually we leave an empty line to preserve line numbers).
25906 if test "x
$srcdir" = x.; then
25907 ac_vpsub='/^[ ]*VPATH[ ]*=/{
25908 s/:*\$(srcdir):*/:/
25909 s/:*\${srcdir}:*/:/
25911 s/^\([^=]*=[ ]*\):*/\1/
25917 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25918 fi # test -n "$CONFIG_FILES"
25920 # Set up the scripts for CONFIG_HEADERS section.
25921 # No need to generate them if there are no CONFIG_HEADERS.
25922 # This happens for instance with `./config.status Makefile'.
25923 if test -n "$CONFIG_HEADERS"; then
25924 cat >"$tmp/defines.
awk" <<\_ACAWK ||
25928 # Transform confdefs.h into an awk script `defines.awk', embedded as
25929 # here-document in config.status, that substitutes the proper values into
25930 # config.h.in to produce config.h.
25932 # Create a delimiter string that does not exist in confdefs.h, to ease
25933 # handling of long lines.
25935 for ac_last_try in false false :; do
25936 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
25937 if test -z "$ac_t"; then
25939 elif $ac_last_try; then
25940 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
25942 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
25946 # For the awk script, D is an array of macro values keyed by name,
25947 # likewise P contains macro parameters if any. Preserve backslash
25948 # newline sequences.
25950 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25952 s/.\{148\}/&'"$ac_delim"'/g
25955 s/^[ ]*#[ ]*define[ ][ ]*/ /
25962 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
25964 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
25968 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
25969 D["\
1"]=" \
3\\\\\\n
"\\/p
25971 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
25976 s/.\{148\}/&'"$ac_delim"'/g
25981 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
25984 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
25986 ' <confdefs.h | sed '
25987 s/'"$ac_delim"'/"\\\
25988 "/g' >>$CONFIG_STATUS || ac_write_fail=1
25990 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25991 for (key in D) D_is_set[key] = 1
25994 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
25996 split(line, arg, " ")
25997 if (arg[1] == "#") {
26001 defundef
= substr
(arg
[1], 2)
26004 split(mac1
, mac2
, "(") #)
26006 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
26007 if (D_is_set
[macro
]) {
26008 # Preserve the white space surrounding the "#".
26009 print prefix
"define", macro P
[macro
] D
[macro
]
26012 # Replace #undef with comments. This is necessary, for example,
26013 # in the case of _POSIX_SOURCE, which is predefined and required
26014 # on some systems where configure will not decide to define it.
26015 if (defundef
== "undef") {
26016 print
"/*", prefix defundef
, macro
, "*/"
26024 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26025 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
26026 fi # test -n "$CONFIG_HEADERS"
26029 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
26034 :[FHLC
]) ac_mode
=$ac_tag; continue;;
26036 case $ac_mode$ac_tag in
26038 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
26039 :[FH
]-) ac_tag
=-:-;;
26040 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
26057 -) ac_f
="$tmp/stdin";;
26058 *) # Look for the file first in the build tree, then in the source tree
26059 # (if the path is not absolute). The absolute path cannot be DOS-style,
26060 # because $ac_f cannot contain `:'.
26064 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
26066 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
26068 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
26069 as_fn_append ac_file_inputs
" '$ac_f'"
26072 # Let's still pretend it is `configure' which instantiates (i.e., don't
26073 # use $as_me), people would be surprised to read:
26074 # /* config.h. Generated by config.status. */
26075 configure_input
='Generated from '`
26076 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
26078 if test x
"$ac_file" != x-
; then
26079 configure_input
="$ac_file. $configure_input"
26080 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
26081 $as_echo "$as_me: creating $ac_file" >&6;}
26083 # Neutralize special characters interpreted by sed in replacement strings.
26084 case $configure_input in #(
26085 *\
&* |
*\|
* |
*\\* )
26086 ac_sed_conf_input
=`$as_echo "$configure_input" |
26087 sed 's/[\\\\&|]/\\\\&/g'`;; #(
26088 *) ac_sed_conf_input
=$configure_input;;
26092 *:-:* |
*:-) cat >"$tmp/stdin" \
26093 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
26098 ac_dir
=`$as_dirname -- "$ac_file" ||
26099 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26100 X"$ac_file" : 'X\(//\)[^/]' \| \
26101 X"$ac_file" : 'X\(//\)$' \| \
26102 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26103 $as_echo X"$ac_file" |
26104 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26108 /^X\(\/\/\)[^/].*/{
26121 as_dir
="$ac_dir"; as_fn_mkdir_p
26125 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
26127 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
26128 # A ".." for each directory in $ac_dir_suffix.
26129 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
26130 case $ac_top_builddir_sub in
26131 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
26132 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
26135 ac_abs_top_builddir
=$ac_pwd
26136 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
26137 # for backward compatibility:
26138 ac_top_builddir
=$ac_top_build_prefix
26141 .
) # We are building in place.
26143 ac_top_srcdir
=$ac_top_builddir_sub
26144 ac_abs_top_srcdir
=$ac_pwd ;;
26145 [\\/]* | ?
:[\\/]* ) # Absolute name.
26146 ac_srcdir
=$srcdir$ac_dir_suffix;
26147 ac_top_srcdir
=$srcdir
26148 ac_abs_top_srcdir
=$srcdir ;;
26149 *) # Relative name.
26150 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
26151 ac_top_srcdir
=$ac_top_build_prefix$srcdir
26152 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
26154 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
26164 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
26165 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
26167 ac_MKDIR_P
=$MKDIR_P
26169 [\\/$
]* | ?
:[\\/]* ) ;;
26170 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
26174 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26175 # If the template does not know about datarootdir, expand it.
26176 # FIXME: This hack should be removed a few years after 2.60.
26177 ac_datarootdir_hack
=; ac_datarootdir_seen
=
26188 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
26189 *datarootdir
*) ac_datarootdir_seen
=yes;;
26190 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
26191 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26192 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26194 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26195 ac_datarootdir_hack='
26196 s&@datadir@&$datadir&g
26197 s&@docdir@&$docdir&g
26198 s&@infodir@&$infodir&g
26199 s&@localedir@&$localedir&g
26200 s&@mandir@&$mandir&g
26201 s&\\\${datarootdir}&$datarootdir&g' ;;
26205 # Neutralize VPATH when `$srcdir' = `.'.
26206 # Shell code in configure.ac might set extrasub.
26207 # FIXME: do we really want to maintain this feature?
26208 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26209 ac_sed_extra="$ac_vpsub
26212 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26214 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
26215 s|@configure_input@|
$ac_sed_conf_input|
;t t
26216 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
26217 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
26218 s
&@srcdir@
&$ac_srcdir&;t t
26219 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
26220 s
&@top_srcdir@
&$ac_top_srcdir&;t t
26221 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
26222 s
&@builddir@
&$ac_builddir&;t t
26223 s
&@abs_builddir@
&$ac_abs_builddir&;t t
26224 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
26225 s
&@INSTALL@
&$ac_INSTALL&;t t
26226 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
26227 $ac_datarootdir_hack
26229 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
26230 if $ac_cs_awk_getline; then
26231 $AWK -f "$tmp/subs.
awk"
26233 $AWK -f "$tmp/subs.
awk" | $SHELL
26235 || as_fn_error "could not create
$ac_file" "$LINENO" 5
26237 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26238 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
26239 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
26240 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
26241 which seems to be undefined. Please make sure it is defined." >&5
26242 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
26243 which seems to be undefined. Please make sure it is defined." >&2;}
26247 -) cat "$tmp/out" && rm -f "$tmp/out";;
26248 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
26250 || as_fn_error "could not create $ac_file" "$LINENO" 5
26256 if test x"$ac_file" != x-; then
26258 $as_echo "/* $configure_input */" \
26259 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
26260 } >"$tmp/config.h" \
26261 || as_fn_error "could not create $ac_file" "$LINENO" 5
26262 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
26263 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
26264 $as_echo "$as_me: $ac_file is unchanged" >&6;}
26267 mv "$tmp/config.h" "$ac_file" \
26268 || as_fn_error "could not create $ac_file" "$LINENO" 5
26271 $as_echo "/* $configure_input */" \
26272 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
26273 || as_fn_error "could not create -" "$LINENO" 5
26275 # Compute "$ac_file"'s index
in $config_headers.
26278 for _am_header
in $config_headers :; do
26279 case $_am_header in
26280 $_am_arg |
$_am_arg:* )
26283 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
26286 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
26287 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26288 X"$_am_arg" : 'X\(//\)[^/]' \| \
26289 X"$_am_arg" : 'X\(//\)$' \| \
26290 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
26291 $as_echo X"$_am_arg" |
26292 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26296 /^X\(\/\/\)[^/].*/{
26308 s/.*/./; q'`/stamp-h
$_am_stamp_count
26311 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
26312 $as_echo "$as_me: executing $ac_file commands" >&6;}
26317 case $ac_file$ac_mode in
26318 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
26319 # Autoconf 2.62 quotes --file arguments for eval, but not when files
26320 # are listed without --file. Let's play safe and only enable the eval
26321 # if we detect the quoting.
26322 case $CONFIG_FILES in
26323 *\'*) eval set x
"$CONFIG_FILES" ;;
26324 *) set x
$CONFIG_FILES ;;
26329 # Strip MF so we end up with the name of the file.
26330 mf
=`echo "$mf" | sed -e 's/:.*$//'`
26331 # Check whether this is an Automake generated Makefile or not.
26332 # We used to match only the files named `Makefile.in', but
26333 # some people rename them; so instead we look at the file content.
26334 # Grep'ing the first line is not enough: some people post-process
26335 # each Makefile.in and add a new line on top of each file to say so.
26336 # Grep'ing the whole file is not good either: AIX grep has a line
26337 # limit of 2048, but all sed's we know have understand at least 4000.
26338 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
26339 dirpart
=`$as_dirname -- "$mf" ||
26340 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26341 X"$mf" : 'X\(//\)[^/]' \| \
26342 X"$mf" : 'X\(//\)$' \| \
26343 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
26345 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26349 /^X\(\/\/\)[^/].*/{
26365 # Extract the definition of DEPDIR, am__include, and am__quote
26366 # from the Makefile without running `make'.
26367 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
26368 test -z "$DEPDIR" && continue
26369 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
26370 test -z "am__include" && continue
26371 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
26372 # When using ansi2knr, U may be empty or an underscore; expand it
26373 U
=`sed -n 's/^U = //p' < "$mf"`
26374 # Find all dependency output files, they are included files with
26375 # $(DEPDIR) in their names. We invoke sed twice because it is the
26376 # simplest approach to changing $(DEPDIR) to its actual value in the
26378 for file in `sed -n "
26379 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
26380 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
26381 # Make sure the directory exists.
26382 test -f "$dirpart/$file" && continue
26383 fdir
=`$as_dirname -- "$file" ||
26384 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26385 X"$file" : 'X\(//\)[^/]' \| \
26386 X"$file" : 'X\(//\)$' \| \
26387 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
26388 $as_echo X"$file" |
26389 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26393 /^X\(\/\/\)[^/].*/{
26406 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
26407 # echo "creating $dirpart/$file"
26408 echo '# dummy' > "$dirpart/$file"
26414 for dir
in etc lisp
; do
26415 test -d ${dir} || mkdir
${dir}
26419 echo creating src
/epaths.h
26420 ${MAKE-make} MAKEFILE_NAME
=do-not-make-Makefile epaths-force
26423 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
26424 echo creating src
/.gdbinit
26425 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
26435 ac_clean_files
=$ac_clean_files_save
26437 test $ac_write_fail = 0 ||
26438 as_fn_error
"write failure creating $CONFIG_STATUS" "$LINENO" 5
26441 # configure is writing to config.log, and then calls config.status.
26442 # config.status does its own redirection, appending to config.log.
26443 # Unfortunately, on DOS this fails, as config.log is still kept open
26444 # by configure, so config.status won't be able to write to it; its
26445 # output is simply discarded. So we exec the FD to /dev/null,
26446 # effectively closing config.log, so it can be properly (re)opened and
26447 # appended to by config.status. When coming back to configure, we
26448 # need to make the FD available again.
26449 if test "$no_create" != yes; then
26451 ac_config_status_args
=
26452 test "$silent" = yes &&
26453 ac_config_status_args
="$ac_config_status_args --quiet"
26455 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
26457 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26458 # would make configure fail if this is the last instruction.
26459 $ac_cs_success || as_fn_exit $?
26461 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
26462 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
26463 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}