2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for emacs 24.3.50.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE
=1; export DUALCASE
# for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print
-rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
55 as_echo_n='/usr
/ucb
/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
68 as_echo_n='sh
-c $as_echo_n_body as_echo
'
71 as_echo='sh
-c $as_echo_body as_echo
'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x
; then
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var
in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\
${$as_var+set} = xset \
121 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
134 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
136 if test "x$CONFIG_SHELL" = x
; then
137 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
145 case \`(set -o) 2>/dev/null\` in #(
153 as_required
="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167 exitcode=1; echo positional parameters were not saved.
169 test x\$exitcode = x0 || exit 1"
170 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev
/null
; then :
180 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
183 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
185 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
188 test -z "$as_dir" && as_dir
=.
192 for as_base
in sh bash ksh sh5
; do
193 # Try only shells that exist, to save several forks.
194 as_shell
=$as_dir/$as_base
195 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
197 CONFIG_SHELL
=$as_shell as_have_required
=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
206 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
208 CONFIG_SHELL
=$SHELL as_have_required
=yes
213 if test "x$CONFIG_SHELL" != x
; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
219 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224 if test x
$as_have_required = xno
; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x
${ZSH_VERSION+set} = xset
; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
231 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232 $0: including any error possibly output before this
233 $0: message. Then install a modern shell, or manually run
234 $0: the script under such a shell if you do have one."
240 SHELL
=${CONFIG_SHELL-/bin/sh}
242 # Unset more variables known to interfere with behavior of common tools.
243 CLICOLOR_FORCE
= GREP_OPTIONS
=
244 unset CLICOLOR_FORCE GREP_OPTIONS
246 ## --------------------- ##
247 ## M4sh Shell Functions. ##
248 ## --------------------- ##
251 # Portably unset VAR.
254 { eval $1=; unset $1;}
258 # as_fn_set_status STATUS
259 # -----------------------
260 # Set $? to STATUS, without forking.
268 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
278 # Create "$as_dir" as a directory, including parents if necessary.
283 -*) as_dir
=.
/$as_dir;;
285 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
289 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
292 as_dirs
="'$as_qdir' $as_dirs"
293 as_dir
=`$as_dirname -- "$as_dir" ||
294 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295 X"$as_dir" : 'X\(//\)[^/]' \| \
296 X"$as_dir" : 'X\(//\)$' \| \
297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298 $as_echo X"$as_dir" |
299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
316 test -d "$as_dir" && break
318 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
319 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
323 # as_fn_append VAR VALUE
324 # ----------------------
325 # Append the text in VALUE to the end of the definition contained in VAR. Take
326 # advantage of any shell optimizations that allow amortized linear growth over
327 # repeated appends, instead of the typical quadratic growth present in naive
329 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
330 eval 'as_fn_append ()
343 # Perform arithmetic evaluation on the ARGs, and store the result in the
344 # global $as_val. Take advantage of shells that can avoid forks. The arguments
345 # must be portable across $(()) and expr.
346 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
354 as_val
=`expr "$@" || test $? -eq 1`
359 # as_fn_error ERROR [LINENO LOG_FD]
360 # ---------------------------------
361 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363 # script with status $?, using 1 if that was 0.
366 as_status
=$?
; test $as_status -eq 0 && as_status
=1
368 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
371 $as_echo "$as_me: error: $1" >&2
372 as_fn_exit
$as_status
375 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
376 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
382 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
388 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
394 as_me
=`$as_basename -- "$0" ||
395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396 X"$0" : 'X\(//\)$' \| \
397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
399 sed '/^.*\/\([^/][^/]*\)\/*$/{
413 # Avoid depending upon Character Ranges.
414 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
415 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
417 as_cr_digits
='0123456789'
418 as_cr_alnum
=$as_cr_Letters$as_cr_digits
421 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
422 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
441 chmod +x
"$as_me.lineno" ||
442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
444 # Don't try to exec as it changes $[0], causing all sort of problems
445 # (the dirname of $[0] is not the place where we might find the
446 # original and so on. Autoconf is especially sensitive to this).
448 # Exit status is that of the last command.
452 ECHO_C
= ECHO_N
= ECHO_T
=
453 case `echo -n x` in #(((((
455 case `echo 'xy\c'` in
456 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
458 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
465 rm -f conf$$ conf$$.exe conf$$.
file
466 if test -d conf$$.dir
; then
467 rm -f conf$$.dir
/conf$$.
file
470 mkdir conf$$.dir
2>/dev
/null
472 if (echo >conf$$.
file) 2>/dev
/null
; then
473 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
475 # ... but there are two gotchas:
476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478 # In both cases, we have to default to `cp -p'.
479 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
481 elif ln conf$$.
file conf$$
2>/dev
/null
; then
489 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
490 rmdir conf$$.dir
2>/dev
/null
492 if mkdir
-p .
2>/dev
/null
; then
493 as_mkdir_p
='mkdir -p "$as_dir"'
495 test -d .
/-p && rmdir .
/-p
499 if test -x / >/dev
/null
2>&1; then
502 if ls -dL / >/dev
/null
2>&1; then
509 if test -d "$1"; then
515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516 ???[sx]*):;;*)false;;esac;fi
520 as_executable_p
=$as_test_x
522 # Sed expression to map a string onto a valid CPP name.
523 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
525 # Sed expression to map a string onto a valid variable name.
526 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
529 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
533 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
534 # so uname gets run too.
535 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
540 ac_default_prefix
=/usr
/local
542 ac_config_libobj_dir
=.
549 # Identity of this package.
551 PACKAGE_TARNAME
='emacs'
552 PACKAGE_VERSION
='24.3.50'
553 PACKAGE_STRING
='emacs 24.3.50'
557 ac_unique_file
="src/lisp.h"
558 # Factoring default headers for most tests.
559 ac_includes_default
="\
561 #ifdef HAVE_SYS_TYPES_H
562 # include <sys/types.h>
564 #ifdef HAVE_SYS_STAT_H
565 # include <sys/stat.h>
571 # ifdef HAVE_STDLIB_H
576 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
581 #ifdef HAVE_STRINGS_H
582 # include <strings.h>
584 #ifdef HAVE_INTTYPES_H
585 # include <inttypes.h>
596 gl_getopt_required
=POSIX
597 gl_getopt_required
=POSIX
598 ac_subst_vars
='gltests_LTLIBOBJS
611 LD_SWITCH_SYSTEM_TEMACS
615 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_FALSE
616 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_TRUE
617 gl_GNULIB_ENABLED_tempname_FALSE
618 gl_GNULIB_ENABLED_tempname_TRUE
619 gl_GNULIB_ENABLED_strtoull_FALSE
620 gl_GNULIB_ENABLED_strtoull_TRUE
621 gl_GNULIB_ENABLED_strtoll_FALSE
622 gl_GNULIB_ENABLED_strtoll_TRUE
623 gl_GNULIB_ENABLED_stat_FALSE
624 gl_GNULIB_ENABLED_stat_TRUE
625 gl_GNULIB_ENABLED_secure_getenv_FALSE
626 gl_GNULIB_ENABLED_secure_getenv_TRUE
627 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_FALSE
628 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_TRUE
629 gl_GNULIB_ENABLED_pathmax_FALSE
630 gl_GNULIB_ENABLED_pathmax_TRUE
631 gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_FALSE
632 gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_TRUE
633 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_FALSE
634 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_TRUE
635 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE
636 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE
637 gl_GNULIB_ENABLED_getgroups_FALSE
638 gl_GNULIB_ENABLED_getgroups_TRUE
639 gl_GNULIB_ENABLED_getdtablesize_FALSE
640 gl_GNULIB_ENABLED_getdtablesize_TRUE
641 gl_GNULIB_ENABLED_euidaccess_FALSE
642 gl_GNULIB_ENABLED_euidaccess_TRUE
643 gl_GNULIB_ENABLED_dosname_FALSE
644 gl_GNULIB_ENABLED_dosname_TRUE
645 gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_FALSE
646 gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_TRUE
652 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
655 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
656 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
657 TIME_H_DEFINES_STRUCT_TIMESPEC
658 NEXT_AS_FIRST_DIRECTIVE_TIME_H
660 WINDOWS_64_BIT_ST_SIZE
661 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
663 NEXT_AS_FIRST_DIRECTIVE_STRING_H
665 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
667 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
676 REPLACE_STDIO_WRITE_FUNCS
677 REPLACE_STDIO_READ_FUNCS
686 REPLACE_OBSTACK_PRINTF
711 HAVE_DECL_OBSTACK_PRINTF
717 GNULIB_VSPRINTF_POSIX
721 GNULIB_VFPRINTF_POSIX
728 GNULIB_STDIO_H_SIGPIPE
729 GNULIB_STDIO_H_NONBLOCKING
744 GNULIB_OBSTACK_PRINTF_POSIX
745 GNULIB_OBSTACK_PRINTF
770 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
772 GL_GENERATE_STDDEF_H_FALSE
773 GL_GENERATE_STDDEF_H_TRUE
778 GL_GENERATE_STDBOOL_H_FALSE
779 GL_GENERATE_STDBOOL_H_TRUE
781 GL_GENERATE_STDARG_H_FALSE
782 GL_GENERATE_STDARG_H_TRUE
784 NEXT_AS_FIRST_DIRECTIVE_STDARG_H
786 GL_GENERATE_STDALIGN_H_FALSE
787 GL_GENERATE_STDALIGN_H_TRUE
789 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
795 REPLACE_PTHREAD_SIGMASK
797 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
798 HAVE_STRUCT_SIGACTION_SA_SIGACTION
804 HAVE_POSIX_SIGNALBLOCKING
807 GNULIB_SIGNAL_H_SIGPIPE
809 GNULIB_PTHREAD_SIGMASK
811 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H
825 HAVE_DECL_LOCALTIME_R
904 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
906 UINT64_MAX_EQ_ULONG_MAX
907 UINT32_MAX_LT_UINTMAX_MAX
910 INT64_MAX_EQ_LONG_MAX
911 INT32_MAX_LT_INTMAX_MAX
921 GL_GENERATE_STDINT_H_FALSE
922 GL_GENERATE_STDINT_H_TRUE
931 HAVE_SIGNED_SIG_ATOMIC_T
934 BITSIZEOF_SIG_ATOMIC_T
937 APPLE_UNIVERSAL_BUILD
941 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
946 HAVE_UNSIGNED_LONG_LONG_INT
949 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
951 REPLACE_STRUCT_TIMEVAL
957 GNULIB_GL_UNISTD_H_GETOPT
960 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
976 REPLACE_CANONICALIZE_FILE_NAME
981 HAVE_STRUCT_RANDOM_DATA
1003 HAVE_DECL_GETLOADAVG
1004 HAVE_CANONICALIZE_FILE_NAME
1015 GNULIB_SECURE_GETENV
1018 GNULIB_REALLOC_POSIX
1035 GNULIB_CANONICALIZE_FILE_NAME
1073 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H
1084 GL_GENERATE_EXECINFO_H_FALSE
1085 GL_GENERATE_EXECINFO_H_TRUE
1094 GL_GENERATE_ERRNO_H_FALSE
1095 GL_GENERATE_ERRNO_H_TRUE
1097 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
1100 NEXT_AS_FIRST_DIRECTIVE_DIRENT_H
1103 PRAGMA_SYSTEM_HEADER
1104 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1127 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
1128 UNISTD_H_HAVE_WINSOCK2_H
1149 REPLACE_GETDOMAINNAME
1160 HAVE_DECL_SETHOSTNAME
1161 HAVE_DECL_GETUSERSHELL
1162 HAVE_DECL_GETPAGESIZE
1163 HAVE_DECL_GETLOGIN_R
1164 HAVE_DECL_GETDOMAINNAME
1203 GNULIB_UNISTD_H_SIGPIPE
1204 GNULIB_UNISTD_H_NONBLOCKING
1230 GNULIB_GETDTABLESIZE
1231 GNULIB_GETDOMAINNAME
1248 GL_GENERATE_ALLOCA_H_FALSE
1249 GL_GENERATE_ALLOCA_H_TRUE
1252 GL_COND_LIBTOOL_FALSE
1253 GL_COND_LIBTOOL_TRUE
1285 x_default_search_path
1382 INSTALL_ARCH_INDEP_EXTRA
1384 LD_SWITCH_X_SITE_RPATH
1417 BUILDING_FOR_WINDOWSNT_FALSE
1418 BUILDING_FOR_WINDOWSNT_TRUE
1454 INSTALL_STRIP_PROGRAM
1496 program_transform_name
1507 ac_subst_files
='deps_frag
1510 enable_option_checking
1533 with_toolkit_scroll_bars
1545 with_file_notification
1548 with_pkg_config_prog
1551 enable_ns_self_contained
1552 enable_locallisppath
1554 enable_check_lisp_object_type
1557 enable_gtk_deprecation_warnings
1558 enable_dependency_tracking
1561 enable_link_time_optimization
1565 ac_precious_vars
='build_alias
1577 # Initialize some variables set by options.
1579 ac_init_version
=false
1580 ac_unrecognized_opts
=
1581 ac_unrecognized_sep
=
1582 # The variables have the same names as the options, with
1583 # dashes changed to underlines.
1584 cache_file
=/dev
/null
1591 program_transform_name
=s
,x
,x
,
1599 # Installation directory options.
1600 # These are left unexpanded so users can "make install exec_prefix=/foo"
1601 # and all the variables that are supposed to be based on exec_prefix
1602 # by default will actually change.
1603 # Use braces instead of parens because sh, perl, etc. also accept them.
1604 # (The list follows the same order as the GNU Coding Standards.)
1605 bindir
='${exec_prefix}/bin'
1606 sbindir
='${exec_prefix}/sbin'
1607 libexecdir
='${exec_prefix}/libexec'
1608 datarootdir
='${prefix}/share'
1609 datadir
='${datarootdir}'
1610 sysconfdir
='${prefix}/etc'
1611 sharedstatedir
='${prefix}/com'
1612 localstatedir
='${prefix}/var'
1613 includedir
='${prefix}/include'
1614 oldincludedir
='/usr/include'
1615 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
1616 infodir
='${datarootdir}/info'
1621 libdir
='${exec_prefix}/lib'
1622 localedir
='${datarootdir}/locale'
1623 mandir
='${datarootdir}/man'
1629 # If the previous option needs an argument, assign it.
1630 if test -n "$ac_prev"; then
1631 eval $ac_prev=\
$ac_option
1637 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1641 # Accept the important Cygnus configure options, so we can diagnose typos.
1643 case $ac_dashdash$ac_option in
1647 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1649 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1650 bindir
=$ac_optarg ;;
1652 -build |
--build |
--buil |
--bui |
--bu)
1653 ac_prev
=build_alias
;;
1654 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1655 build_alias
=$ac_optarg ;;
1657 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1658 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1659 ac_prev
=cache_file
;;
1660 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1661 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1662 cache_file
=$ac_optarg ;;
1664 --config-cache |
-C)
1665 cache_file
=config.cache
;;
1667 -datadir |
--datadir |
--datadi |
--datad)
1669 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1670 datadir
=$ac_optarg ;;
1672 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1673 |
--dataroo |
--dataro |
--datar)
1674 ac_prev
=datarootdir
;;
1675 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1676 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1677 datarootdir
=$ac_optarg ;;
1679 -disable-* |
--disable-*)
1680 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1681 # Reject names that are not valid shell variable names.
1682 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1683 as_fn_error
"invalid feature name: $ac_useropt"
1684 ac_useropt_orig
=$ac_useropt
1685 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1686 case $ac_user_opts in
1688 "enable_
$ac_useropt"
1690 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1691 ac_unrecognized_sep
=', ';;
1693 eval enable_
$ac_useropt=no
;;
1695 -docdir |
--docdir |
--docdi |
--doc |
--do)
1697 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1698 docdir
=$ac_optarg ;;
1700 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1702 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1703 dvidir
=$ac_optarg ;;
1705 -enable-* |
--enable-*)
1706 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1707 # Reject names that are not valid shell variable names.
1708 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1709 as_fn_error
"invalid feature name: $ac_useropt"
1710 ac_useropt_orig
=$ac_useropt
1711 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1712 case $ac_user_opts in
1714 "enable_
$ac_useropt"
1716 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1717 ac_unrecognized_sep
=', ';;
1719 eval enable_
$ac_useropt=\
$ac_optarg ;;
1721 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1722 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1723 |
--exec |
--exe |
--ex)
1724 ac_prev
=exec_prefix
;;
1725 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1726 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1727 |
--exec=* |
--exe=* |
--ex=*)
1728 exec_prefix
=$ac_optarg ;;
1730 -gas |
--gas |
--ga |
--g)
1731 # Obsolete; use --with-gas.
1734 -help |
--help |
--hel |
--he |
-h)
1735 ac_init_help
=long
;;
1736 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1737 ac_init_help
=recursive
;;
1738 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1739 ac_init_help
=short
;;
1741 -host |
--host |
--hos |
--ho)
1742 ac_prev
=host_alias
;;
1743 -host=* |
--host=* |
--hos=* |
--ho=*)
1744 host_alias
=$ac_optarg ;;
1746 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1748 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1750 htmldir
=$ac_optarg ;;
1752 -includedir |
--includedir |
--includedi |
--included |
--include \
1753 |
--includ |
--inclu |
--incl |
--inc)
1754 ac_prev
=includedir
;;
1755 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1756 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1757 includedir
=$ac_optarg ;;
1759 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1761 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1762 infodir
=$ac_optarg ;;
1764 -libdir |
--libdir |
--libdi |
--libd)
1766 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1767 libdir
=$ac_optarg ;;
1769 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1770 |
--libexe |
--libex |
--libe)
1771 ac_prev
=libexecdir
;;
1772 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1773 |
--libexe=* |
--libex=* |
--libe=*)
1774 libexecdir
=$ac_optarg ;;
1776 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1777 ac_prev
=localedir
;;
1778 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1779 localedir
=$ac_optarg ;;
1781 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1782 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1783 ac_prev
=localstatedir
;;
1784 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1785 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1786 localstatedir
=$ac_optarg ;;
1788 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1790 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1791 mandir
=$ac_optarg ;;
1793 -nfp |
--nfp |
--nf)
1794 # Obsolete; use --without-fp.
1797 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1798 |
--no-cr |
--no-c |
-n)
1801 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1802 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1805 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1806 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1807 |
--oldin |
--oldi |
--old |
--ol |
--o)
1808 ac_prev
=oldincludedir
;;
1809 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1810 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1811 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1812 oldincludedir
=$ac_optarg ;;
1814 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1816 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1817 prefix
=$ac_optarg ;;
1819 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1820 |
--program-pre |
--program-pr |
--program-p)
1821 ac_prev
=program_prefix
;;
1822 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1823 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1824 program_prefix
=$ac_optarg ;;
1826 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1827 |
--program-suf |
--program-su |
--program-s)
1828 ac_prev
=program_suffix
;;
1829 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1830 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1831 program_suffix
=$ac_optarg ;;
1833 -program-transform-name |
--program-transform-name \
1834 |
--program-transform-nam |
--program-transform-na \
1835 |
--program-transform-n |
--program-transform- \
1836 |
--program-transform |
--program-transfor \
1837 |
--program-transfo |
--program-transf \
1838 |
--program-trans |
--program-tran \
1839 |
--progr-tra |
--program-tr |
--program-t)
1840 ac_prev
=program_transform_name
;;
1841 -program-transform-name=* |
--program-transform-name=* \
1842 |
--program-transform-nam=* |
--program-transform-na=* \
1843 |
--program-transform-n=* |
--program-transform-=* \
1844 |
--program-transform=* |
--program-transfor=* \
1845 |
--program-transfo=* |
--program-transf=* \
1846 |
--program-trans=* |
--program-tran=* \
1847 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1848 program_transform_name
=$ac_optarg ;;
1850 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1852 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1853 pdfdir
=$ac_optarg ;;
1855 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1857 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1860 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1861 |
-silent |
--silent |
--silen |
--sile |
--sil)
1864 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1866 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1868 sbindir
=$ac_optarg ;;
1870 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1871 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1872 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1874 ac_prev
=sharedstatedir
;;
1875 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1876 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1877 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1879 sharedstatedir
=$ac_optarg ;;
1881 -site |
--site |
--sit)
1883 -site=* |
--site=* |
--sit=*)
1886 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1888 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1889 srcdir
=$ac_optarg ;;
1891 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1892 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1893 ac_prev
=sysconfdir
;;
1894 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1895 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1896 sysconfdir
=$ac_optarg ;;
1898 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1899 ac_prev
=target_alias
;;
1900 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1901 target_alias
=$ac_optarg ;;
1903 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1906 -version |
--version |
--versio |
--versi |
--vers |
-V)
1907 ac_init_version
=: ;;
1910 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1911 # Reject names that are not valid shell variable names.
1912 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1913 as_fn_error
"invalid package name: $ac_useropt"
1914 ac_useropt_orig
=$ac_useropt
1915 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1916 case $ac_user_opts in
1920 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1921 ac_unrecognized_sep
=', ';;
1923 eval with_
$ac_useropt=\
$ac_optarg ;;
1925 -without-* |
--without-*)
1926 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1927 # Reject names that are not valid shell variable names.
1928 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1929 as_fn_error
"invalid package name: $ac_useropt"
1930 ac_useropt_orig
=$ac_useropt
1931 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1932 case $ac_user_opts in
1936 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1937 ac_unrecognized_sep
=', ';;
1939 eval with_
$ac_useropt=no
;;
1942 # Obsolete; use --with-x.
1945 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1946 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1947 ac_prev
=x_includes
;;
1948 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1949 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1950 x_includes
=$ac_optarg ;;
1952 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1953 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1954 ac_prev
=x_libraries
;;
1955 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1956 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1957 x_libraries
=$ac_optarg ;;
1959 -*) as_fn_error
"unrecognized option: \`$ac_option'
1960 Try \`$0 --help' for more information."
1964 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1965 # Reject names that are not valid shell variable names.
1966 case $ac_envvar in #(
1967 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1968 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1970 eval $ac_envvar=\
$ac_optarg
1971 export $ac_envvar ;;
1974 # FIXME: should be removed in autoconf 3.0.
1975 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1976 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1977 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1978 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1984 if test -n "$ac_prev"; then
1985 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1986 as_fn_error
"missing argument to $ac_option"
1989 if test -n "$ac_unrecognized_opts"; then
1990 case $enable_option_checking in
1992 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1993 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1997 # Check all directory arguments for consistency.
1998 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1999 datadir sysconfdir sharedstatedir localstatedir includedir \
2000 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
2001 libdir localedir mandir
2003 eval ac_val
=\$
$ac_var
2004 # Remove trailing slashes.
2007 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
2008 eval $ac_var=\
$ac_val;;
2010 # Be sure to have absolute directory names.
2012 [\\/$
]* | ?
:[\\/]* ) continue;;
2013 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
2015 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
2018 # There might be people who depend on the old broken behavior: `$host'
2019 # used to hold the argument of --host etc.
2020 # FIXME: To remove some day.
2023 target
=$target_alias
2025 # FIXME: To remove some day.
2026 if test "x$host_alias" != x
; then
2027 if test "x$build_alias" = x
; then
2028 cross_compiling
=maybe
2029 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
2030 If a cross compiler is detected then cross compile mode will be used." >&2
2031 elif test "x$build_alias" != "x$host_alias"; then
2037 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
2039 test "$silent" = yes && exec 6>/dev
/null
2042 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
2043 ac_ls_di
=`ls -di .` &&
2044 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
2045 as_fn_error
"working directory cannot be determined"
2046 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
2047 as_fn_error
"pwd does not report name of working directory"
2050 # Find the source files, if location was not specified.
2051 if test -z "$srcdir"; then
2052 ac_srcdir_defaulted
=yes
2053 # Try the directory containing this script, then the parent directory.
2054 ac_confdir
=`$as_dirname -- "$as_myself" ||
2055 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2056 X"$as_myself" : 'X\(//\)[^/]' \| \
2057 X"$as_myself" : 'X\(//\)$' \| \
2058 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
2059 $as_echo X"$as_myself" |
2060 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2078 if test ! -r "$srcdir/$ac_unique_file"; then
2082 ac_srcdir_defaulted
=no
2084 if test ! -r "$srcdir/$ac_unique_file"; then
2085 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
2086 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
2088 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
2090 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
2092 # When building in place, set srcdir=.
2093 if test "$ac_abs_confdir" = "$ac_pwd"; then
2096 # Remove unnecessary trailing slashes from srcdir.
2097 # Double slashes in file names in object file debugging info
2098 # mess up M-x gdb in Emacs.
2100 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
2102 for ac_var
in $ac_precious_vars; do
2103 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
2104 eval ac_env_
${ac_var}_value
=\$
${ac_var}
2105 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
2106 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
2110 # Report the --help message.
2112 if test "$ac_init_help" = "long"; then
2113 # Omit some internal or obsolete options to make the list less imposing.
2114 # This message is too long to be a string in the A/UX 3.1 sh.
2116 \`configure' configures emacs 24.3.50 to adapt to many kinds of systems.
2118 Usage: $0 [OPTION]... [VAR=VALUE]...
2120 To assign environment variables (e.g., CC, CFLAGS...), specify them as
2121 VAR=VALUE. See below for descriptions of some of the useful variables.
2123 Defaults for the options are specified in brackets.
2126 -h, --help display this help and exit
2127 --help=short display options specific to this package
2128 --help=recursive display the short help of all the included packages
2129 -V, --version display version information and exit
2130 -q, --quiet, --silent do not print \`checking...' messages
2131 --cache-file=FILE cache test results in FILE [disabled]
2132 -C, --config-cache alias for \`--cache-file=config.cache'
2133 -n, --no-create do not create output files
2134 --srcdir=DIR find the sources in DIR [configure dir or \`..']
2136 Installation directories:
2137 --prefix=PREFIX install architecture-independent files in PREFIX
2138 [$ac_default_prefix]
2139 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
2142 By default, \`make install' will install all the files in
2143 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
2144 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
2145 for instance \`--prefix=\$HOME'.
2147 For better control, use the options below.
2149 Fine tuning of the installation directories:
2150 --bindir=DIR user executables [EPREFIX/bin]
2151 --sbindir=DIR system admin executables [EPREFIX/sbin]
2152 --libexecdir=DIR program executables [EPREFIX/libexec]
2153 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
2154 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
2155 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
2156 --libdir=DIR object code libraries [EPREFIX/lib]
2157 --includedir=DIR C header files [PREFIX/include]
2158 --oldincludedir=DIR C header files for non-gcc [/usr/include]
2159 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
2160 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
2161 --infodir=DIR info documentation [DATAROOTDIR/info]
2162 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
2163 --mandir=DIR man documentation [DATAROOTDIR/man]
2164 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
2165 --htmldir=DIR html documentation [DOCDIR]
2166 --dvidir=DIR dvi documentation [DOCDIR]
2167 --pdfdir=DIR pdf documentation [DOCDIR]
2168 --psdir=DIR ps documentation [DOCDIR]
2174 --program-prefix=PREFIX prepend PREFIX to installed program names
2175 --program-suffix=SUFFIX append SUFFIX to installed program names
2176 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
2179 --x-includes=DIR X include files are
in DIR
2180 --x-libraries=DIR X library files are
in DIR
2183 --build=BUILD configure
for building on BUILD
[guessed
]
2184 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
2188 if test -n "$ac_init_help"; then
2189 case $ac_init_help in
2190 short | recursive
) echo "Configuration of emacs 24.3.50:";;
2195 --disable-option-checking ignore unrecognized
--enable/--with options
2196 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
2197 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
2198 --disable-ns-self-contained
2199 disable self contained build under NeXTstep
2200 --enable-locallisppath=PATH
2201 directories Emacs should search
for lisp files
2202 specific to this site
2203 --enable-checking[=LIST
]
2204 enable expensive run-time checks. With LIST
, enable
2205 only specific categories of checks. Categories are
:
2206 all
,yes,no. Flags are
: stringbytes
, stringoverrun
,
2207 stringfreelist
, xmallocoverrun
, conslist
, glyphs
2208 --enable-check-lisp-object-type
2209 enable compile
time checks
for the Lisp_Object data
2210 type. This is useful
for development
for catching
2211 certain types of bugs.
2212 --enable-profiling build emacs with low-level
, gprof profiling support.
2213 Mainly useful
for debugging Emacs itself. May not
2214 work on all platforms. Stops profiler.el working.
2215 --enable-autodepend automatically generate dependencies to .h-files.
2216 Requires GNU Make and Gcc. Enabled
if GNU Make and
2218 --enable-gtk-deprecation-warnings
2219 Show Gtk
+/Gdk deprecation warnings
for Gtk
+ >= 3.0
2220 --disable-dependency-tracking speeds up one-time build
2221 --enable-dependency-tracking do not reject slow dependency extractors
2222 --disable-largefile omit support
for large files
2223 --enable-gcc-warnings turn on lots of GCC warnings
/errors. This is
2224 intended
for developers
, and may generate false
2225 alarms when used with older or non-GNU development
2227 --enable-link-time-optimization
2228 build emacs with link-time optimization. This is
2229 supported only
for GCC since
4.5.0.
2230 --disable-acl do not support ACLs
2233 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
2234 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
2235 --without-all omit almost all features and build small executable
2236 with minimal dependencies
2237 --without-pop don
't support POP mail retrieval with movemail
2238 --with-kerberos support Kerberos-authenticated POP
2239 --with-kerberos5 support Kerberos version 5 authenticated POP
2240 --with-hesiod support Hesiod to get the POP server host
2241 --with-mmdf support MMDF mailboxes
2242 --with-mail-unlink unlink, rather than empty, mail spool after reading
2243 --with-mailhost=HOSTNAME
2244 string giving default POP mail host
2245 --with-sound=VALUE compile with sound support (VALUE one of: yes, alsa,
2246 oss, bsd-ossaudio, no; default yes). Only for
2247 GNU/Linux, FreeBSD, NetBSD, MinGW.
2248 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes or gtk, gtk2,
2249 gtk3, lucid or athena, motif, no)
2250 --with-wide-int prefer wide Emacs integers (typically 62-bit)
2251 --without-xpm don't compile with XPM image support
2252 --without-jpeg don
't compile with JPEG image support
2253 --without-tiff don't compile with TIFF image support
2254 --without-gif don
't compile with GIF image support
2255 --without-png don't compile with PNG image support
2256 --without-rsvg don
't compile with SVG image support
2257 --without-xml2 don't compile with XML parsing support
2258 --without-imagemagick don
't compile with ImageMagick image support
2259 --without-xft don't use XFT
for anti aliased fonts
2260 --without-libotf don
't use libotf for OpenType font support
2261 --without-m17n-flt don't use m17n-flt
for text shaping
2262 --without-toolkit-scroll-bars
2263 don
't use Motif or Xaw3d scroll bars
2264 --without-xaw3d don't use Xaw3d
2265 --without-xim don
't use X11 XIM
2266 --with-ns use NeXTstep (Cocoa or GNUstep) windowing system
2267 --with-w32 use native MS Windows GUI in a Cygwin build
2268 --without-gpm don't use
-lgpm for mouse support on a GNU
/Linux
2270 --without-dbus don
't compile with D-Bus support
2271 --without-gconf don't compile with GConf support
2272 --without-gsettings don
't compile with GSettings support
2273 --without-selinux don't compile with SELinux support
2274 --without-gnutls don
't use -lgnutls for SSL/TLS support
2275 --without-zlib don't compile with zlib decompression support
2276 --with-file-notification=LIB
2277 use a
file notification library
(LIB one of
: yes,
2278 gfile
, inotify
, w32
, no
)
2279 --without-makeinfo don
't require makeinfo for building manuals
2280 --without-compress-info don't
compress the installed Info pages
2281 --with-pkg-config-prog=FILENAME
2282 file name of pkg-config
for finding GTK and librsvg
2283 --with-gameuser=USER user
for shared game score files
2284 --with-gnustep-conf=FILENAME
2285 name of GNUstep.conf
; default
$GNUSTEP_CONFIG_FILE,
2286 or
/etc
/GNUstep
/GNUstep.conf
2287 --with-x use the X Window System
2289 Some influential environment variables
:
2290 CC C compiler
command
2291 CFLAGS C compiler flags
2292 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
2293 nonstandard directory
<lib dir
>
2294 LIBS libraries to pass to the linker
, e.g.
-l<library
>
2295 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
2296 you have headers
in a nonstandard directory
<include dir
>
2298 XMKMF Path to xmkmf
, Makefile generator
for X Window System
2300 Use these variables to override the choices made by
`configure' or to help
2301 it to find libraries and programs with nonstandard names/locations.
2303 Report bugs to the package provider.
2308 if test "$ac_init_help" = "recursive"; then
2309 # If there are subdirs, report their specific --help.
2310 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2311 test -d "$ac_dir" ||
2312 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2317 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2319 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
2320 # A ".." for each directory in $ac_dir_suffix.
2321 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
2322 case $ac_top_builddir_sub in
2323 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2324 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2327 ac_abs_top_builddir=$ac_pwd
2328 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2329 # for backward compatibility:
2330 ac_top_builddir=$ac_top_build_prefix
2333 .) # We are building in place.
2335 ac_top_srcdir=$ac_top_builddir_sub
2336 ac_abs_top_srcdir=$ac_pwd ;;
2337 [\\/]* | ?:[\\/]* ) # Absolute name.
2338 ac_srcdir=$srcdir$ac_dir_suffix;
2339 ac_top_srcdir=$srcdir
2340 ac_abs_top_srcdir=$srcdir ;;
2342 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2343 ac_top_srcdir=$ac_top_build_prefix$srcdir
2344 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2346 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2348 cd "$ac_dir" || { ac_status=$?; continue; }
2349 # Check for guested configure.
2350 if test -f "$ac_srcdir/configure.gnu"; then
2352 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2353 elif test -f "$ac_srcdir/configure"; then
2355 $SHELL "$ac_srcdir/configure" --help=recursive
2357 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2359 cd "$ac_pwd" || { ac_status=$?; break; }
2363 test -n "$ac_init_help" && exit $ac_status
2364 if $ac_init_version; then
2366 emacs configure 24.3.50
2367 generated by GNU Autoconf 2.65
2369 Copyright (C) 2009 Free Software Foundation, Inc.
2370 This configure script is free software; the Free Software Foundation
2371 gives unlimited permission to copy, distribute and modify it.
2376 ## ------------------------ ##
2377 ## Autoconf initialization. ##
2378 ## ------------------------ ##
2380 # ac_fn_c_try_compile LINENO
2381 # --------------------------
2382 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2383 ac_fn_c_try_compile ()
2385 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2386 rm -f conftest.$ac_objext
2387 if { { ac_try="$ac_compile"
2389 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2390 *) ac_try_echo
=$ac_try;;
2392 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2393 $as_echo "$ac_try_echo"; } >&5
2394 (eval "$ac_compile") 2>conftest.err
2396 if test -s conftest.err
; then
2397 grep -v '^ *+' conftest.err
>conftest.er1
2398 cat conftest.er1
>&5
2399 mv -f conftest.er1 conftest.err
2401 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2402 test $ac_status = 0; } && {
2403 test -z "$ac_c_werror_flag" ||
2404 test ! -s conftest.err
2405 } && test -s conftest.
$ac_objext; then :
2408 $as_echo "$as_me: failed program was:" >&5
2409 sed 's/^/| /' conftest.
$ac_ext >&5
2413 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2414 as_fn_set_status
$ac_retval
2416 } # ac_fn_c_try_compile
2418 # ac_fn_c_try_cpp LINENO
2419 # ----------------------
2420 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2423 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2424 if { { ac_try
="$ac_cpp conftest.$ac_ext"
2426 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2427 *) ac_try_echo=$ac_try;;
2429 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2430 $as_echo "$ac_try_echo"; } >&5
2431 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2433 if test -s conftest.err; then
2434 grep -v '^ *+' conftest.err >conftest.er1
2435 cat conftest.er1 >&5
2436 mv -f conftest.er1 conftest.err
2438 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2439 test $ac_status = 0; } >/dev/null && {
2440 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2441 test ! -s conftest.err
2445 $as_echo "$as_me: failed program was:" >&5
2446 sed 's/^/| /' conftest.$ac_ext >&5
2450 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2451 as_fn_set_status $ac_retval
2455 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2456 # -------------------------------------------------------
2457 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2458 # the include files in INCLUDES and setting the cache variable VAR
2460 ac_fn_c_check_header_mongrel ()
2462 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2463 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2465 $as_echo_n "checking for $2... " >&6; }
2466 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2467 $as_echo_n "(cached) " >&6
2470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2471 $as_echo "$ac_res" >&6; }
2473 # Is the header compilable?
2474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2475 $as_echo_n "checking $2 usability... " >&6; }
2476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2477 /* end confdefs.h. */
2481 if ac_fn_c_try_compile "$LINENO"; then :
2482 ac_header_compiler=yes
2484 ac_header_compiler=no
2486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2488 $as_echo "$ac_header_compiler" >&6; }
2490 # Is the header present?
2491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2492 $as_echo_n "checking $2 presence... " >&6; }
2493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2494 /* end confdefs.h. */
2497 if ac_fn_c_try_cpp "$LINENO"; then :
2498 ac_header_preproc=yes
2500 ac_header_preproc=no
2502 rm -f conftest.err conftest.$ac_ext
2503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2504 $as_echo "$ac_header_preproc" >&6; }
2506 # So? What about this header?
2507 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2509 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2510 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2511 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2512 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2515 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2516 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2517 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2518 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2519 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2520 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2521 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2522 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2523 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2524 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2528 $as_echo_n "checking for $2... " >&6; }
2529 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2530 $as_echo_n "(cached) " >&6
2532 eval "$3=\$ac_header_compiler"
2535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2536 $as_echo "$ac_res" >&6; }
2538 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2540 } # ac_fn_c_check_header_mongrel
2542 # ac_fn_c_try_run LINENO
2543 # ----------------------
2544 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2545 # that executables *can* be run.
2548 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2549 if { { ac_try="$ac_link"
2551 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2552 *) ac_try_echo
=$ac_try;;
2554 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2555 $as_echo "$ac_try_echo"; } >&5
2556 (eval "$ac_link") 2>&5
2558 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2559 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
2560 { { case "(($ac_try" in
2561 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2562 *) ac_try_echo=$ac_try;;
2564 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2565 $as_echo "$ac_try_echo"; } >&5
2566 (eval "$ac_try") 2>&5
2568 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2569 test $ac_status = 0; }; }; then :
2572 $as_echo "$as_me: program exited with status $ac_status" >&5
2573 $as_echo "$as_me: failed program was:" >&5
2574 sed 's/^/| /' conftest.$ac_ext >&5
2576 ac_retval=$ac_status
2578 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2579 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2580 as_fn_set_status $ac_retval
2584 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2585 # -------------------------------------------------------
2586 # Tests whether HEADER exists and can be compiled using the include files in
2587 # INCLUDES, setting the cache variable VAR accordingly.
2588 ac_fn_c_check_header_compile ()
2590 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2592 $as_echo_n "checking for $2... " >&6; }
2593 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2594 $as_echo_n "(cached) " >&6
2596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2597 /* end confdefs.h. */
2601 if ac_fn_c_try_compile "$LINENO"; then :
2606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2610 $as_echo "$ac_res" >&6; }
2611 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2613 } # ac_fn_c_check_header_compile
2615 # ac_fn_c_try_link LINENO
2616 # -----------------------
2617 # Try to link conftest.$ac_ext, and return whether this succeeded.
2620 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2621 rm -f conftest.$ac_objext conftest$ac_exeext
2622 if { { ac_try="$ac_link"
2624 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2625 *) ac_try_echo
=$ac_try;;
2627 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2628 $as_echo "$ac_try_echo"; } >&5
2629 (eval "$ac_link") 2>conftest.err
2631 if test -s conftest.err
; then
2632 grep -v '^ *+' conftest.err
>conftest.er1
2633 cat conftest.er1
>&5
2634 mv -f conftest.er1 conftest.err
2636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2637 test $ac_status = 0; } && {
2638 test -z "$ac_c_werror_flag" ||
2639 test ! -s conftest.err
2640 } && test -s conftest
$ac_exeext && {
2641 test "$cross_compiling" = yes ||
2642 $as_test_x conftest
$ac_exeext
2646 $as_echo "$as_me: failed program was:" >&5
2647 sed 's/^/| /' conftest.
$ac_ext >&5
2651 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2652 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2653 # interfere with the next link command; also delete a directory that is
2654 # left behind by Apple's compiler. We do this before executing the actions.
2655 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2656 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2657 as_fn_set_status
$ac_retval
2659 } # ac_fn_c_try_link
2661 # ac_fn_c_check_decl LINENO SYMBOL VAR
2662 # ------------------------------------
2663 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2664 ac_fn_c_check_decl
()
2666 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2668 $as_echo_n "checking whether $2 is declared... " >&6; }
2669 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2670 $as_echo_n "(cached) " >&6
2672 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2673 /* end confdefs.h. */
2686 if ac_fn_c_try_compile
"$LINENO"; then :
2691 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2695 $as_echo "$ac_res" >&6; }
2696 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2698 } # ac_fn_c_check_decl
2700 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2701 # ----------------------------------------------
2702 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2703 ac_fn_c_check_header_preproc
()
2705 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2707 $as_echo_n "checking for $2... " >&6; }
2708 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2709 $as_echo_n "(cached) " >&6
2711 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2712 /* end confdefs.h. */
2715 if ac_fn_c_try_cpp
"$LINENO"; then :
2720 rm -f conftest.err conftest.
$ac_ext
2723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2724 $as_echo "$ac_res" >&6; }
2725 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2727 } # ac_fn_c_check_header_preproc
2729 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2730 # ----------------------------------------------------
2731 # Tries to find if the field MEMBER exists in type AGGR, after including
2732 # INCLUDES, setting cache variable VAR accordingly.
2733 ac_fn_c_check_member
()
2735 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2737 $as_echo_n "checking for $2.$3... " >&6; }
2738 if { as_var
=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2739 $as_echo_n "(cached) " >&6
2741 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2742 /* end confdefs.h. */
2754 if ac_fn_c_try_compile
"$LINENO"; then :
2757 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2758 /* end confdefs.h. */
2764 if (sizeof ac_aggr.$3)
2770 if ac_fn_c_try_compile
"$LINENO"; then :
2775 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2777 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2781 $as_echo "$ac_res" >&6; }
2782 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2784 } # ac_fn_c_check_member
2786 # ac_fn_c_check_func LINENO FUNC VAR
2787 # ----------------------------------
2788 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2789 ac_fn_c_check_func
()
2791 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2793 $as_echo_n "checking for $2... " >&6; }
2794 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2795 $as_echo_n "(cached) " >&6
2797 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2798 /* end confdefs.h. */
2799 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2800 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2801 #define $2 innocuous_$2
2803 /* System header to define __stub macros and hopefully few prototypes,
2804 which can conflict with char $2 (); below.
2805 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2806 <limits.h> exists even on freestanding compilers. */
2809 # include <limits.h>
2811 # include <assert.h>
2816 /* Override any GCC internal prototype to avoid an error.
2817 Use char because int might match the return type of a GCC
2818 builtin and then its argument prototype would still apply. */
2823 /* The GNU C library defines this for functions which it implements
2824 to always fail with ENOSYS. Some functions are actually named
2825 something starting with __ and the normal name is an alias. */
2826 #if defined __stub_$2 || defined __stub___$2
2838 if ac_fn_c_try_link
"$LINENO"; then :
2843 rm -f core conftest.err conftest.
$ac_objext \
2844 conftest
$ac_exeext conftest.
$ac_ext
2847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2848 $as_echo "$ac_res" >&6; }
2849 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2851 } # ac_fn_c_check_func
2853 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2854 # -------------------------------------------
2855 # Tests whether TYPE exists after having included INCLUDES, setting cache
2856 # variable VAR accordingly.
2857 ac_fn_c_check_type
()
2859 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2861 $as_echo_n "checking for $2... " >&6; }
2862 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2863 $as_echo_n "(cached) " >&6
2866 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2867 /* end confdefs.h. */
2878 if ac_fn_c_try_compile
"$LINENO"; then :
2879 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2880 /* end confdefs.h. */
2891 if ac_fn_c_try_compile
"$LINENO"; then :
2896 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2898 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2902 $as_echo "$ac_res" >&6; }
2903 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2905 } # ac_fn_c_check_type
2907 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2908 # --------------------------------------------
2909 # Tries to find the compile-time value of EXPR in a program that includes
2910 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2912 ac_fn_c_compute_int
()
2914 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2915 if test "$cross_compiling" = yes; then
2916 # Depending upon the size, compute the lo and hi bounds.
2917 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2918 /* end confdefs.h. */
2923 static int test_array [1 - 2 * !(($2) >= 0)];
2930 if ac_fn_c_try_compile
"$LINENO"; then :
2933 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2934 /* end confdefs.h. */
2939 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2946 if ac_fn_c_try_compile
"$LINENO"; then :
2947 ac_hi
=$ac_mid; break
2949 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2950 if test $ac_lo -le $ac_mid; then
2954 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2956 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2959 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2960 /* end confdefs.h. */
2965 static int test_array [1 - 2 * !(($2) < 0)];
2972 if ac_fn_c_try_compile
"$LINENO"; then :
2975 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2976 /* end confdefs.h. */
2981 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2988 if ac_fn_c_try_compile
"$LINENO"; then :
2989 ac_lo
=$ac_mid; break
2991 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2992 if test $ac_mid -le $ac_hi; then
2996 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2998 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3003 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3005 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3006 # Binary search between lo and hi bounds.
3007 while test "x$ac_lo" != "x$ac_hi"; do
3008 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
3009 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3010 /* end confdefs.h. */
3015 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
3022 if ac_fn_c_try_compile
"$LINENO"; then :
3025 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
3027 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3030 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
3034 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3035 /* end confdefs.h. */
3037 static long int longval () { return $2; }
3038 static unsigned long int ulongval () { return $2; }
3045 FILE *f = fopen ("conftest.val", "w");
3050 long int i = longval ();
3053 fprintf (f, "%ld", i);
3057 unsigned long int i = ulongval ();
3060 fprintf (f, "%lu", i);
3062 /* Do not output a trailing newline, as this causes \r\n confusion
3063 on some platforms. */
3064 return ferror (f) || fclose (f) != 0;
3070 if ac_fn_c_try_run
"$LINENO"; then :
3071 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
3075 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
3076 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
3080 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
3081 as_fn_set_status
$ac_retval
3083 } # ac_fn_c_compute_int
3084 cat >config.log
<<_ACEOF
3085 This file contains any messages produced by compilers while
3086 running configure, to aid debugging if configure makes a mistake.
3088 It was created by emacs $as_me 24.3.50, which was
3089 generated by GNU Autoconf 2.65. Invocation command line was
3101 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3102 uname -m = `(uname -m) 2>/dev/null || echo unknown`
3103 uname -r = `(uname -r) 2>/dev/null || echo unknown`
3104 uname -s = `(uname -s) 2>/dev/null || echo unknown`
3105 uname -v = `(uname -v) 2>/dev/null || echo unknown`
3107 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3108 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3110 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3111 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3112 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3113 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3114 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3115 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3116 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3120 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3124 test -z "$as_dir" && as_dir
=.
3125 $as_echo "PATH: $as_dir"
3141 # Keep a trace of the command line.
3142 # Strip out --no-create and --no-recursion so they do not pile up.
3143 # Strip out --silent because we don't want to record it for future runs.
3144 # Also quote any args containing shell meta-characters.
3145 # Make two passes to allow for proper duplicate-argument suppression.
3149 ac_must_keep_next
=false
3155 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
3156 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
3157 |
-silent |
--silent |
--silen |
--sile |
--sil)
3160 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3163 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
3165 as_fn_append ac_configure_args1
" '$ac_arg'"
3166 if test $ac_must_keep_next = true
; then
3167 ac_must_keep_next
=false
# Got value, back to normal.
3170 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
3171 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
3172 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
3173 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
3174 case "$ac_configure_args0 " in
3175 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3178 -* ) ac_must_keep_next
=true
;;
3181 as_fn_append ac_configure_args
" '$ac_arg'"
3186 { ac_configure_args0
=; unset ac_configure_args0
;}
3187 { ac_configure_args1
=; unset ac_configure_args1
;}
3189 # When interrupted or exit'd, cleanup temporary files, and complete
3190 # config.log. We remove comments because anyway the quotes in there
3191 # would cause problems or look ugly.
3192 # WARNING: Use '\'' to represent an apostrophe within the trap.
3193 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3194 trap 'exit_status=$?
3195 # Save into config.log some information that might help in debugging.
3200 ## ---------------- ##
3201 ## Cache variables. ##
3202 ## ---------------- ##
3205 # The following way of writing the cache mishandles newlines in values,
3207 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3208 eval ac_val=\$$ac_var
3212 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3213 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3216 _ | IFS | as_nl) ;; #(
3217 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3218 *) { eval $ac_var=; unset $ac_var;} ;;
3223 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3224 *${as_nl}ac_space=\ *)
3226 "s/'\''/'\''\\\\'\'''\''/g;
3227 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3230 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3238 ## ----------------- ##
3239 ## Output variables. ##
3240 ## ----------------- ##
3243 for ac_var in $ac_subst_vars
3245 eval ac_val=\$$ac_var
3247 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3249 $as_echo "$ac_var='\''$ac_val'\''"
3253 if test -n "$ac_subst_files"; then
3255 ## ------------------- ##
3256 ## File substitutions. ##
3257 ## ------------------- ##
3260 for ac_var
in $ac_subst_files
3262 eval ac_val
=\$
$ac_var
3264 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3266 $as_echo "$ac_var='\''$ac_val'\''"
3271 if test -s confdefs.h; then
3281 test "$ac_signal" != 0 &&
3282 $as_echo "$as_me: caught signal $ac_signal"
3283 $as_echo "$as_me: exit $exit_status"
3285 rm -f core *.core core.conftest.* &&
3286 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3289 for ac_signal
in 1 2 13 15; do
3290 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3294 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3295 rm -f -r conftest
* confdefs.h
3297 $as_echo "/* confdefs.h */" > confdefs.h
3299 # Predefined preprocessor variables.
3301 cat >>confdefs.h
<<_ACEOF
3302 #define PACKAGE_NAME "$PACKAGE_NAME"
3305 cat >>confdefs.h
<<_ACEOF
3306 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3309 cat >>confdefs.h
<<_ACEOF
3310 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3313 cat >>confdefs.h
<<_ACEOF
3314 #define PACKAGE_STRING "$PACKAGE_STRING"
3317 cat >>confdefs.h
<<_ACEOF
3318 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3321 cat >>confdefs.h
<<_ACEOF
3322 #define PACKAGE_URL "$PACKAGE_URL"
3326 # Let the site file select an alternate cache file if it wants to.
3327 # Prefer an explicitly selected file to automatically selected ones.
3330 if test -n "$CONFIG_SITE"; then
3331 ac_site_file1
=$CONFIG_SITE
3332 elif test "x$prefix" != xNONE
; then
3333 ac_site_file1
=$prefix/share
/config.site
3334 ac_site_file2
=$prefix/etc
/config.site
3336 ac_site_file1
=$ac_default_prefix/share
/config.site
3337 ac_site_file2
=$ac_default_prefix/etc
/config.site
3339 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
3341 test "x$ac_site_file" = xNONE
&& continue
3342 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
3343 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3344 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3345 sed 's/^/| /' "$ac_site_file" >&5
3350 if test -r "$cache_file"; then
3351 # Some versions of bash will fail to source /dev/null (special files
3352 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3353 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
3354 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3355 $as_echo "$as_me: loading cache $cache_file" >&6;}
3357 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
3358 *) .
"./$cache_file";;
3362 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3363 $as_echo "$as_me: creating cache $cache_file" >&6;}
3367 as_fn_append ac_header_list
" sys/systeminfo.h"
3368 as_fn_append ac_header_list
" coff.h"
3369 as_fn_append ac_header_list
" pty.h"
3370 as_fn_append ac_header_list
" sys/resource.h"
3371 as_fn_append ac_header_list
" sys/utsname.h"
3372 as_fn_append ac_header_list
" pwd.h"
3373 as_fn_append ac_header_list
" utmp.h"
3374 as_fn_append ac_header_list
" util.h"
3375 as_fn_append ac_header_list
" sys/socket.h"
3376 as_fn_append ac_header_list
" stdlib.h"
3377 as_fn_append ac_header_list
" unistd.h"
3378 as_fn_append ac_header_list
" sys/param.h"
3379 as_fn_append ac_header_list
" pthread.h"
3380 as_fn_append ac_header_list
" malloc/malloc.h"
3381 as_fn_append ac_header_list
" maillock.h"
3382 as_fn_append ac_header_list
" sys/un.h"
3383 as_fn_append ac_func_list
" tzset"
3384 as_fn_append ac_func_list
" readlinkat"
3385 as_fn_append ac_header_list
" dirent.h"
3386 as_fn_append ac_header_list
" execinfo.h"
3387 as_fn_append ac_func_list
" faccessat"
3388 as_fn_append ac_func_list
" fcntl"
3389 as_fn_append ac_func_list
" fdopendir"
3390 as_fn_append ac_header_list
" stdio_ext.h"
3391 as_fn_append ac_func_list
" fstatat"
3392 as_fn_append ac_func_list
" fsync"
3393 gl_getopt_required
=GNU
3394 as_fn_append ac_header_list
" getopt.h"
3395 as_fn_append ac_func_list
" gettimeofday"
3396 as_fn_append ac_func_list
" nanotime"
3397 as_fn_append ac_header_list
" sys/time.h"
3398 as_fn_append ac_header_list
" wchar.h"
3399 as_fn_append ac_header_list
" stdint.h"
3400 as_fn_append ac_header_list
" inttypes.h"
3401 as_fn_append ac_func_list
" lstat"
3402 as_fn_append ac_func_list
" mkostemp"
3403 as_fn_append ac_func_list
" pipe2"
3404 as_fn_append ac_header_list
" sys/select.h"
3405 as_fn_append ac_func_list
" pselect"
3406 as_fn_append ac_func_list
" pthread_sigmask"
3407 as_fn_append ac_func_list
" readlink"
3408 as_fn_append ac_func_list
" strtoimax"
3409 as_fn_append ac_func_list
" strtoumax"
3410 as_fn_append ac_func_list
" symlink"
3411 as_fn_append ac_header_list
" sys/stat.h"
3412 as_fn_append ac_func_list
" localtime_r"
3413 as_fn_append ac_header_list
" utime.h"
3414 as_fn_append ac_func_list
" futimes"
3415 as_fn_append ac_func_list
" futimesat"
3416 as_fn_append ac_func_list
" futimens"
3417 as_fn_append ac_func_list
" utimensat"
3418 as_fn_append ac_func_list
" lutimes"
3419 as_fn_append ac_func_list
" getdtablesize"
3420 as_fn_append ac_func_list
" secure_getenv"
3421 # Check that the precious variables saved in the cache have kept the same
3423 ac_cache_corrupted
=false
3424 for ac_var
in $ac_precious_vars; do
3425 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
3426 eval ac_new_set
=\
$ac_env_${ac_var}_set
3427 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
3428 eval ac_new_val
=\
$ac_env_${ac_var}_value
3429 case $ac_old_set,$ac_new_set in
3431 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3432 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3433 ac_cache_corrupted
=: ;;
3435 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3436 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3437 ac_cache_corrupted
=: ;;
3440 if test "x$ac_old_val" != "x$ac_new_val"; then
3441 # differences in whitespace do not lead to failure.
3442 ac_old_val_w
=`echo x $ac_old_val`
3443 ac_new_val_w
=`echo x $ac_new_val`
3444 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3445 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3446 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3447 ac_cache_corrupted
=:
3449 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3450 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3451 eval $ac_var=\
$ac_old_val
3453 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3454 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3455 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3456 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3459 # Pass precious variables to config.status.
3460 if test "$ac_new_set" = set; then
3462 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3463 *) ac_arg
=$ac_var=$ac_new_val ;;
3465 case " $ac_configure_args " in
3466 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3467 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
3471 if $ac_cache_corrupted; then
3472 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3473 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3474 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3475 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3476 as_fn_error
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3478 ## -------------------- ##
3479 ## Main body of script. ##
3480 ## -------------------- ##
3483 ac_cpp
='$CPP $CPPFLAGS'
3484 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3485 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3486 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3490 emacs_config_options
=
3492 for opt
in ${1+"$@"} CFLAGS CPPFLAGS LDFLAGS
; do
3494 -n |
--no-create |
--no-recursion)
3496 CFLAGS | CPPFLAGS | LDFLAGS
)
3497 eval 'test "${'$opt'+set}" = set' ||
continue
3499 *" $opt="*) continue ;;
3501 eval opt
=$opt=\$
$opt ;;
3504 emacs_shell_specials
=$IFS\''"#$&()*;<>?[\\`{|~'
3506 *["$emacs_shell_specials"]*)
3509 emacs_quote_apostrophes
="s/'/'\\\\''/g"
3510 opt
=`$as_echo "$opt" | sed "$emacs_quote_apostrophes"` ;;
3515 emacs_quote_for_c
='s/["\\]/\\&/g; $!s/$/\\n\\/'
3516 opt
=`$as_echo "$opt" | sed "$emacs_quote_for_c"` ;;
3519 as_fn_append emacs_config_options
"$optsep$opt"
3523 ac_config_headers
="$ac_config_headers src/config.h:src/config.in"
3527 for ac_dir
in build-aux
"$srcdir"/build-aux
; do
3528 for ac_t
in install-sh
install.sh shtool
; do
3529 if test -f "$ac_dir/$ac_t"; then
3531 ac_install_sh
="$ac_aux_dir/$ac_t -c"
3536 if test -z "$ac_aux_dir"; then
3537 as_fn_error
"cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
3540 # These three variables are undocumented and unsupported,
3541 # and are intended to be withdrawn in a future Autoconf release.
3542 # They can cause serious problems if a builder's source tree is in a directory
3543 # whose full name contains unusual characters.
3544 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3545 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3546 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3549 am__api_version
='1.11'
3551 # Find a good install program. We prefer a C program (faster),
3552 # so one script is as good as another. But avoid the broken or
3553 # incompatible versions:
3554 # SysV /etc/install, /usr/sbin/install
3555 # SunOS /usr/etc/install
3556 # IRIX /sbin/install
3558 # AmigaOS /C/install, which installs bootblocks on floppy discs
3559 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3560 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3561 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3562 # OS/2's system install, which has a completely different semantic
3563 # ./install, which can be erroneously created by make from ./install.sh.
3564 # Reject install programs that cannot install multiple files.
3565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3566 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3567 if test -z "$INSTALL"; then
3568 if test "${ac_cv_path_install+set}" = set; then :
3569 $as_echo_n "(cached) " >&6
3571 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3575 test -z "$as_dir" && as_dir
=.
3576 # Account for people who put trailing slashes in PATH elements.
3577 case $as_dir/ in #((
3578 .
/ | .
// |
/[cC
]/* | \
3579 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
3580 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
3583 # OSF1 and SCO ODT 3.0 have their own names for install.
3584 # Don't use installbsd from OSF since it installs stuff as root
3586 for ac_prog
in ginstall scoinst
install; do
3587 for ac_exec_ext
in '' $ac_executable_extensions; do
3588 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3589 if test $ac_prog = install &&
3590 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3591 # AIX install. It has an incompatible calling convention.
3593 elif test $ac_prog = install &&
3594 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3595 # program-specific install script used by HP pwplus--don't use.
3598 rm -rf conftest.one conftest.two conftest.dir
3599 echo one
> conftest.one
3600 echo two
> conftest.two
3602 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
3603 test -s conftest.one
&& test -s conftest.two
&&
3604 test -s conftest.dir
/conftest.one
&&
3605 test -s conftest.dir
/conftest.two
3607 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
3620 rm -rf conftest.one conftest.two conftest.dir
3623 if test "${ac_cv_path_install+set}" = set; then
3624 INSTALL
=$ac_cv_path_install
3626 # As a last resort, use the slow shell script. Don't cache a
3627 # value for INSTALL within a source directory, because that will
3628 # break other packages using the cache if that directory is
3629 # removed, or if the value is a relative name.
3630 INSTALL
=$ac_install_sh
3633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3634 $as_echo "$INSTALL" >&6; }
3636 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3637 # It thinks the first close brace ends the variable substitution.
3638 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3640 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3642 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3645 $as_echo_n "checking whether build environment is sane... " >&6; }
3648 echo timestamp
> conftest.
file
3649 # Reject unsafe characters in $srcdir or the absolute working directory
3650 # name. Accept space and tab only in the latter.
3654 *[\\\"\
#\$\&\'\`$am_lf]*)
3655 as_fn_error
"unsafe absolute working directory name" "$LINENO" 5;;
3658 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
3659 as_fn_error
"unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3662 # Do `set' in a subshell so we don't clobber the current shell's
3663 # arguments. Must try -L first in case configure is actually a
3664 # symlink; some systems play weird games with the mod time of symlinks
3665 # (eg FreeBSD returns the mod time of the symlink's containing
3668 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3669 if test "$*" = "X"; then
3671 set X
`ls -t "$srcdir/configure" conftest.file`
3674 if test "$*" != "X $srcdir/configure conftest.file" \
3675 && test "$*" != "X conftest.file $srcdir/configure"; then
3677 # If neither matched, then we have a broken ls. This can happen
3678 # if, for instance, CONFIG_SHELL is bash and it inherits a
3679 # broken ls alias from the environment. This has actually
3680 # happened. Such a system could not be considered "sane".
3681 as_fn_error
"ls -t appears to fail. Make sure there is not a broken
3682 alias in your environment" "$LINENO" 5
3685 test "$2" = conftest.
file
3691 as_fn_error
"newly created file is older than distributed files!
3692 Check your system clock" "$LINENO" 5
3694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3695 $as_echo "yes" >&6; }
3696 test "$program_prefix" != NONE
&&
3697 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
3698 # Use a double $ so make ignores it.
3699 test "$program_suffix" != NONE
&&
3700 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
3701 # Double any \ or $.
3702 # By default was `s,x,x', remove it if useless.
3703 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
3704 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
3706 # expand $ac_aux_dir to an absolute path
3707 am_aux_dir
=`cd $ac_aux_dir && pwd`
3709 if test x
"${MISSING+set}" != xset
; then
3712 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
3714 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
3717 # Use eval to expand $SHELL
3718 if eval "$MISSING --run true"; then
3719 am_missing_run
="$MISSING --run "
3722 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3723 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3726 if test x
"${install_sh}" != xset
; then
3729 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
3731 install_sh
="\${SHELL} $am_aux_dir/install-sh"
3735 # Installed binaries are usually stripped using `strip' when the user
3736 # run `make install-strip'. However `strip' might not be the right
3737 # tool to use in cross-compilation environments, therefore Automake
3738 # will honor the `STRIP' environment variable to overrule this program.
3739 if test "$cross_compiling" != no
; then
3740 if test -n "$ac_tool_prefix"; then
3741 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3742 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
3743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3744 $as_echo_n "checking for $ac_word... " >&6; }
3745 if test "${ac_cv_prog_STRIP+set}" = set; then :
3746 $as_echo_n "(cached) " >&6
3748 if test -n "$STRIP"; then
3749 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
3751 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3755 test -z "$as_dir" && as_dir
=.
3756 for ac_exec_ext
in '' $ac_executable_extensions; do
3757 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3758 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
3759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3768 STRIP
=$ac_cv_prog_STRIP
3769 if test -n "$STRIP"; then
3770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3771 $as_echo "$STRIP" >&6; }
3773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3774 $as_echo "no" >&6; }
3779 if test -z "$ac_cv_prog_STRIP"; then
3781 # Extract the first word of "strip", so it can be a program name with args.
3782 set dummy strip
; ac_word
=$2
3783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3784 $as_echo_n "checking for $ac_word... " >&6; }
3785 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3786 $as_echo_n "(cached) " >&6
3788 if test -n "$ac_ct_STRIP"; then
3789 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
3791 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3795 test -z "$as_dir" && as_dir
=.
3796 for ac_exec_ext
in '' $ac_executable_extensions; do
3797 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3798 ac_cv_prog_ac_ct_STRIP
="strip"
3799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3808 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
3809 if test -n "$ac_ct_STRIP"; then
3810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3811 $as_echo "$ac_ct_STRIP" >&6; }
3813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3814 $as_echo "no" >&6; }
3817 if test "x$ac_ct_STRIP" = x
; then
3820 case $cross_compiling:$ac_tool_warned in
3822 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3823 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3824 ac_tool_warned
=yes ;;
3829 STRIP
="$ac_cv_prog_STRIP"
3833 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
3835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3836 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3837 if test -z "$MKDIR_P"; then
3838 if test "${ac_cv_path_mkdir+set}" = set; then :
3839 $as_echo_n "(cached) " >&6
3841 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3842 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
3845 test -z "$as_dir" && as_dir
=.
3846 for ac_prog
in mkdir gmkdir
; do
3847 for ac_exec_ext
in '' $ac_executable_extensions; do
3848 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } ||
continue
3849 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3850 'mkdir (GNU coreutils) '* | \
3851 'mkdir (coreutils) '* | \
3852 'mkdir (fileutils) '4.1*)
3853 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
3863 test -d .
/--version && rmdir .
/--version
3864 if test "${ac_cv_path_mkdir+set}" = set; then
3865 MKDIR_P
="$ac_cv_path_mkdir -p"
3867 # As a last resort, use the slow shell script. Don't cache a
3868 # value for MKDIR_P within a source directory, because that will
3869 # break other packages using the cache if that directory is
3870 # removed, or if the value is a relative name.
3871 MKDIR_P
="$ac_install_sh -d"
3874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3875 $as_echo "$MKDIR_P" >&6; }
3879 [\\/$
]* | ?
:[\\/]*) ;;
3880 */*) mkdir_p
="\$(top_builddir)/$mkdir_p" ;;
3883 for ac_prog
in gawk mawk nawk
awk
3885 # Extract the first word of "$ac_prog", so it can be a program name with args.
3886 set dummy
$ac_prog; ac_word
=$2
3887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3888 $as_echo_n "checking for $ac_word... " >&6; }
3889 if test "${ac_cv_prog_AWK+set}" = set; then :
3890 $as_echo_n "(cached) " >&6
3892 if test -n "$AWK"; then
3893 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
3895 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3899 test -z "$as_dir" && as_dir
=.
3900 for ac_exec_ext
in '' $ac_executable_extensions; do
3901 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3902 ac_cv_prog_AWK
="$ac_prog"
3903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3913 if test -n "$AWK"; then
3914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3915 $as_echo "$AWK" >&6; }
3917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3918 $as_echo "no" >&6; }
3922 test -n "$AWK" && break
3925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3926 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3928 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3929 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3930 $as_echo_n "(cached) " >&6
3932 cat >conftest.
make <<\_ACEOF
3935 @
echo '@@@%%%=$(MAKE)=@@@%%%'
3937 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3938 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3940 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
3942 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
3946 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
3947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3948 $as_echo "yes" >&6; }
3951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3952 $as_echo "no" >&6; }
3953 SET_MAKE
="MAKE=${MAKE-make}"
3956 rm -rf .tst
2>/dev
/null
3957 mkdir .tst
2>/dev
/null
3958 if test -d .tst
; then
3963 rmdir .tst
2>/dev
/null
3965 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3966 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3967 # is not polluted with repeated "-I."
3968 am__isrc
=' -I$(srcdir)'
3969 # test to see if srcdir already configured
3970 if test -f $srcdir/config.status
; then
3971 as_fn_error
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3975 # test whether we have cygpath
3976 if test -z "$CYGPATH_W"; then
3977 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
3978 CYGPATH_W
='cygpath -w'
3985 # Define the identity of the package.
3990 cat >>confdefs.h
<<_ACEOF
3991 #define PACKAGE "$PACKAGE"
3995 cat >>confdefs.h
<<_ACEOF
3996 #define VERSION "$VERSION"
3999 # Some tools Automake needs.
4001 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4004 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
4007 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4010 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
4013 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
4015 # We need awk for the "check" target. The system "awk" is bad on
4017 # Always define AMTAR for backward compatibility.
4019 AMTAR
=${AMTAR-"${am_missing_run}tar"}
4021 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
4030 lispdir
='${datadir}/emacs/${version}/lisp'
4031 leimdir
='${datadir}/emacs/${version}/leim'
4032 standardlisppath
='${lispdir}:${leimdir}'
4033 locallisppath
='${datadir}/emacs/${version}/site-lisp:'\
4034 '${datadir}/emacs/site-lisp'
4035 lisppath
='${locallisppath}:${standardlisppath}'
4036 etcdir
='${datadir}/emacs/${version}/etc'
4037 archlibdir
='${libexecdir}/emacs/${version}/${configuration}'
4038 etcdocdir
='${datadir}/emacs/${version}/etc'
4039 gamedir
='${localstatedir}/games/emacs'
4042 # Check whether --with-all was given.
4043 if test "${with_all+set}" = set; then :
4044 withval
=$with_all; with_features
=$withval
4053 # Check whether --with-pop was given.
4054 if test "${with_pop+set}" = set; then :
4057 with_pop
=$with_features
4060 if test "$with_pop" = yes; then
4061 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
4066 # Check whether --with-kerberos was given.
4067 if test "${with_kerberos+set}" = set; then :
4068 withval
=$with_kerberos;
4073 if test "$with_kerberos" != no
; then
4074 $as_echo "#define KERBEROS 1" >>confdefs.h
4079 # Check whether --with-kerberos5 was given.
4080 if test "${with_kerberos5+set}" = set; then :
4081 withval
=$with_kerberos5;
4086 if test "${with_kerberos5}" != no
; then
4087 if test "${with_kerberos}" = no
; then
4089 $as_echo "#define KERBEROS 1" >>confdefs.h
4093 $as_echo "#define KERBEROS5 1" >>confdefs.h
4098 # Check whether --with-hesiod was given.
4099 if test "${with_hesiod+set}" = set; then :
4100 withval
=$with_hesiod;
4105 if test "$with_hesiod" != no
; then
4107 $as_echo "#define HESIOD 1" >>confdefs.h
4112 # Check whether --with-mmdf was given.
4113 if test "${with_mmdf+set}" = set; then :
4119 if test "$with_mmdf" != no
; then
4121 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
4126 # Check whether --with-mail-unlink was given.
4127 if test "${with_mail_unlink+set}" = set; then :
4128 withval
=$with_mail_unlink;
4133 if test "$with_mail_unlink" != no
; then
4135 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
4140 # Check whether --with-mailhost was given.
4141 if test "${with_mailhost+set}" = set; then :
4142 withval
=$with_mailhost;
4143 cat >>confdefs.h
<<_ACEOF
4144 #define MAILHOST "$withval"
4151 # Check whether --with-sound was given.
4152 if test "${with_sound+set}" = set; then :
4153 withval
=$with_sound; case "${withval}" in
4154 yes|no|alsa|oss|bsd-ossaudio
) val
=$withval ;;
4155 *) as_fn_error
"\`--with-sound=$withval' is invalid;
4156 this option's value should be \`yes', \`no', \`alsa', \`oss', or \`bsd-ossaudio'." "$LINENO" 5
4162 with_sound
=$with_features
4167 # Check whether --with-x-toolkit was given.
4168 if test "${with_x_toolkit+set}" = set; then :
4169 withval
=$with_x_toolkit; case "${withval}" in
4170 y | ye |
yes ) val
=gtk
;;
4172 l | lu | luc | luci | lucid
) val
=lucid
;;
4173 a |
at | ath | athe | athen | athena
) val
=athena
;;
4174 m | mo | mot | moti | motif
) val
=motif
;;
4175 g | gt | gtk
) val
=gtk
;;
4179 as_fn_error
"\`--with-x-toolkit=$withval' is invalid;
4180 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk',
4181 \`gtk2' or \`gtk3'. \`yes' and \`gtk' are synonyms.
4182 \`athena' and \`lucid' are synonyms." "$LINENO" 5
4191 # Check whether --with-wide-int was given.
4192 if test "${with_wide_int+set}" = set; then :
4193 withval
=$with_wide_int;
4198 if test "$with_wide_int" = yes; then
4200 $as_echo "#define WIDE_EMACS_INT 1" >>confdefs.h
4205 # Check whether --with-xpm was given.
4206 if test "${with_xpm+set}" = set; then :
4209 with_xpm
=$with_features
4213 # Check whether --with-jpeg was given.
4214 if test "${with_jpeg+set}" = set; then :
4217 with_jpeg
=$with_features
4221 # Check whether --with-tiff was given.
4222 if test "${with_tiff+set}" = set; then :
4225 with_tiff
=$with_features
4229 # Check whether --with-gif was given.
4230 if test "${with_gif+set}" = set; then :
4233 with_gif
=$with_features
4237 # Check whether --with-png was given.
4238 if test "${with_png+set}" = set; then :
4241 with_png
=$with_features
4245 # Check whether --with-rsvg was given.
4246 if test "${with_rsvg+set}" = set; then :
4249 with_rsvg
=$with_features
4253 # Check whether --with-xml2 was given.
4254 if test "${with_xml2+set}" = set; then :
4257 with_xml2
=$with_features
4261 # Check whether --with-imagemagick was given.
4262 if test "${with_imagemagick+set}" = set; then :
4263 withval
=$with_imagemagick;
4265 with_imagemagick
=$with_features
4270 # Check whether --with-xft was given.
4271 if test "${with_xft+set}" = set; then :
4274 with_xft
=$with_features
4278 # Check whether --with-libotf was given.
4279 if test "${with_libotf+set}" = set; then :
4280 withval
=$with_libotf;
4282 with_libotf
=$with_features
4286 # Check whether --with-m17n-flt was given.
4287 if test "${with_m17n_flt+set}" = set; then :
4288 withval
=$with_m17n_flt;
4290 with_m17n_flt
=$with_features
4295 # Check whether --with-toolkit-scroll-bars was given.
4296 if test "${with_toolkit_scroll_bars+set}" = set; then :
4297 withval
=$with_toolkit_scroll_bars;
4299 with_toolkit_scroll_bars
=$with_features
4303 # Check whether --with-xaw3d was given.
4304 if test "${with_xaw3d+set}" = set; then :
4305 withval
=$with_xaw3d;
4307 with_xaw3d
=$with_features
4311 # Check whether --with-xim was given.
4312 if test "${with_xim+set}" = set; then :
4315 with_xim
=$with_features
4319 # Check whether --with-ns was given.
4320 if test "${with_ns+set}" = set; then :
4327 # Check whether --with-w32 was given.
4328 if test "${with_w32+set}" = set; then :
4336 # Check whether --with-gpm was given.
4337 if test "${with_gpm+set}" = set; then :
4340 with_gpm
=$with_features
4344 # Check whether --with-dbus was given.
4345 if test "${with_dbus+set}" = set; then :
4348 with_dbus
=$with_features
4352 # Check whether --with-gconf was given.
4353 if test "${with_gconf+set}" = set; then :
4354 withval
=$with_gconf;
4356 with_gconf
=$with_features
4360 # Check whether --with-gsettings was given.
4361 if test "${with_gsettings+set}" = set; then :
4362 withval
=$with_gsettings;
4364 with_gsettings
=$with_features
4368 # Check whether --with-selinux was given.
4369 if test "${with_selinux+set}" = set; then :
4370 withval
=$with_selinux;
4372 with_selinux
=$with_features
4376 # Check whether --with-gnutls was given.
4377 if test "${with_gnutls+set}" = set; then :
4378 withval
=$with_gnutls;
4380 with_gnutls
=$with_features
4384 # Check whether --with-zlib was given.
4385 if test "${with_zlib+set}" = set; then :
4388 with_zlib
=$with_features
4393 # Check whether --with-file-notification was given.
4394 if test "${with_file_notification+set}" = set; then :
4395 withval
=$with_file_notification; case "${withval}" in
4396 y | ye |
yes ) val
=yes ;;
4398 g | gf | gfi | gfil | gfile
) val
=gfile
;;
4399 i |
in | ino | inot | inoti | inotif | inotify
) val
=inotify
;;
4400 w | w3 | w32
) val
=w32
;;
4401 * ) as_fn_error
"\`--with-file-notification=$withval' is invalid;
4402 this option's value should be \`yes', \`no', \`gfile', \`inotify' or \`w32'.
4403 \`yes' is a synonym for \`w32' on MS-Windows, for \`no' on Nextstep,
4404 otherwise for the first of \`gfile' or \`inotify' that is usable." "$LINENO" 5
4407 with_file_notification
=$val
4410 with_file_notification
=$with_features
4414 ## For the times when you want to build Emacs but don't have
4415 ## a suitable makeinfo, and can live without the manuals.
4417 # Check whether --with-makeinfo was given.
4418 if test "${with_makeinfo+set}" = set; then :
4419 withval
=$with_makeinfo;
4421 with_makeinfo
=$with_features
4425 ## Makefile.in needs the cache file name.
4428 ## This is an option because I do not know if all info/man support
4429 ## compressed files, nor how to test if they do so.
4431 # Check whether --with-compress-info was given.
4432 if test "${with_compress_info+set}" = set; then :
4433 withval
=$with_compress_info;
4435 with_compress_info
=$with_features
4438 if test $with_compress_info = yes; then
4446 # Check whether --with-pkg-config-prog was given.
4447 if test "${with_pkg_config_prog+set}" = set; then :
4448 withval
=$with_pkg_config_prog;
4451 if test "X${with_pkg_config_prog}" != X
; then
4452 if test "${with_pkg_config_prog}" != yes; then
4453 PKG_CONFIG
="${with_pkg_config_prog}"
4458 # Check whether --with-gameuser was given.
4459 if test "${with_gameuser+set}" = set; then :
4460 withval
=$with_gameuser;
4463 test "X${with_gameuser}" != X
&& test "${with_gameuser}" != yes \
4464 && gameuser
="${with_gameuser}"
4465 test "X$gameuser" = X
&& gameuser
=games
4468 # Check whether --with-gnustep-conf was given.
4469 if test "${with_gnustep_conf+set}" = set; then :
4470 withval
=$with_gnustep_conf;
4473 test "X${with_gnustep_conf}" != X
&& test "${with_gnustep_conf}" != yes && \
4474 GNUSTEP_CONFIG_FILE
="${with_gnustep_conf}"
4475 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
4476 GNUSTEP_CONFIG_FILE
=/etc
/GNUstep
/GNUstep.conf
4478 # Check whether --enable-ns-self-contained was given.
4479 if test "${enable_ns_self_contained+set}" = set; then :
4480 enableval
=$enable_ns_self_contained; EN_NS_SELF_CONTAINED
=$enableval
4482 EN_NS_SELF_CONTAINED
=yes
4486 # Check whether --enable-locallisppath was given.
4487 if test "${enable_locallisppath+set}" = set; then :
4488 enableval
=$enable_locallisppath; if test "${enableval}" = "no"; then
4490 elif test "${enableval}" != "yes"; then
4491 locallisppath
=${enableval}
4496 # Check whether --enable-checking was given.
4497 if test "${enable_checking+set}" = set; then :
4498 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
4501 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
4502 for check
in $ac_checking_flags
4505 # these set all the flags to specific states
4506 yes) ac_enable_checking
=1 ;;
4507 no
) ac_enable_checking
= ;
4508 ac_gc_check_stringbytes
= ;
4509 ac_gc_check_string_overrun
= ;
4510 ac_gc_check_string_free_list
= ;
4511 ac_xmalloc_overrun
= ;
4512 ac_gc_check_cons_list
= ;
4514 all
) ac_enable_checking
=1 ;
4515 ac_gc_check_stringbytes
=1 ;
4516 ac_gc_check_string_overrun
=1 ;
4517 ac_gc_check_string_free_list
=1 ;
4518 ac_xmalloc_overrun
=1 ;
4519 ac_gc_check_cons_list
=1 ;
4520 ac_glyphs_debug
=1 ;;
4521 # these enable particular checks
4522 stringbytes
) ac_gc_check_stringbytes
=1 ;;
4523 stringoverrun
) ac_gc_check_string_overrun
=1 ;;
4524 stringfreelist
) ac_gc_check_string_free_list
=1 ;;
4525 xmallocoverrun
) ac_xmalloc_overrun
=1 ;;
4526 conslist
) ac_gc_check_cons_list
=1 ;;
4527 glyphs
) ac_glyphs_debug
=1 ;;
4528 *) as_fn_error
"unknown check category $check" "$LINENO" 5 ;;
4533 if test x
$ac_enable_checking != x
; then
4535 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
4538 if test x
$ac_gc_check_stringbytes != x
; then
4540 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
4543 if test x
$ac_gc_check_string_overrun != x
; then
4545 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
4548 if test x
$ac_gc_check_string_free_list != x
; then
4550 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
4553 if test x
$ac_xmalloc_overrun != x
; then
4555 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
4558 if test x
$ac_gc_check_cons_list != x
; then
4560 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
4563 if test x
$ac_glyphs_debug != x
; then
4565 $as_echo "#define GLYPH_DEBUG 1" >>confdefs.h
4569 # Check whether --enable-check-lisp-object-type was given.
4570 if test "${enable_check_lisp_object_type+set}" = set; then :
4571 enableval
=$enable_check_lisp_object_type; if test "${enableval}" != "no"; then
4573 $as_echo "#define CHECK_LISP_OBJECT_TYPE 1" >>confdefs.h
4580 # Check whether --enable-profiling was given.
4581 if test "${enable_profiling+set}" = set; then :
4582 enableval
=$enable_profiling; ac_enable_profiling
="${enableval}"
4585 if test x
$ac_enable_profiling != x
; then
4586 PROFILING_CFLAGS
="-DPROFILING=1 -pg"
4592 # Check whether --enable-autodepend was given.
4593 if test "${enable_autodepend+set}" = set; then :
4594 enableval
=$enable_autodepend; ac_enable_autodepend
="${enableval}"
4596 ac_enable_autodepend
=yes
4600 # Check whether --enable-gtk-deprecation-warnings was given.
4601 if test "${enable_gtk_deprecation_warnings+set}" = set; then :
4602 enableval
=$enable_gtk_deprecation_warnings; ac_enable_gtk_deprecation_warnings
="${enableval}"
4606 #### Make srcdir absolute, if it isn't already. It's important to
4607 #### avoid running the file name through pwd unnecessarily, since pwd can
4608 #### give you automounter prefixes, which can go away. We do all this
4609 #### so Emacs can find its files when run uninstalled.
4610 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
4613 [\\/]* | ?
:[\\/]*) ;;
4615 ## We may be able to use the $PWD environment variable to make this
4616 ## absolute. But sometimes PWD is inaccurate.
4617 ## Note: we used to use $PWD at the end instead of `pwd`,
4618 ## but that tested only for a well-formed and valid PWD,
4619 ## it did not object when PWD was well-formed and valid but just wrong.
4620 if test ".$PWD" != "." && test ".`(cd "$PWD" ; sh -c pwd)`" = ".`pwd`" ;
4624 srcdir
=`(cd "$srcdir"; pwd)`
4627 * ) srcdir
=`(cd "$srcdir"; pwd)` ;;
4630 ### Canonicalize the configuration name.
4632 # Make sure we can run config.sub.
4633 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
4634 as_fn_error
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4637 $as_echo_n "checking build system type... " >&6; }
4638 if test "${ac_cv_build+set}" = set; then :
4639 $as_echo_n "(cached) " >&6
4641 ac_build_alias
=$build_alias
4642 test "x$ac_build_alias" = x
&&
4643 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
4644 test "x$ac_build_alias" = x
&&
4645 as_fn_error
"cannot guess build type; you must specify one" "$LINENO" 5
4646 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4647 as_fn_error
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4651 $as_echo "$ac_cv_build" >&6; }
4652 case $ac_cv_build in
4654 *) as_fn_error
"invalid value of canonical build" "$LINENO" 5;;
4657 ac_save_IFS
=$IFS; IFS
='-'
4663 # Remember, the first character of IFS is used to create $*,
4664 # except with old shells:
4667 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
4670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4671 $as_echo_n "checking host system type... " >&6; }
4672 if test "${ac_cv_host+set}" = set; then :
4673 $as_echo_n "(cached) " >&6
4675 if test "x$host_alias" = x
; then
4676 ac_cv_host
=$ac_cv_build
4678 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4679 as_fn_error
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4684 $as_echo "$ac_cv_host" >&6; }
4687 *) as_fn_error
"invalid value of canonical host" "$LINENO" 5;;
4690 ac_save_IFS
=$IFS; IFS
='-'
4696 # Remember, the first character of IFS is used to create $*,
4697 # except with old shells:
4700 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
4704 configuration
=${host_alias-${build_alias-$host}}
4708 ### If you add support for a new configuration, add code to this
4709 ### switch statement to recognize your configuration name and select
4710 ### the appropriate operating system file.
4712 ### You would hope that you could choose an s/*.h
4713 ### file based on the operating system portion. However, it turns out
4714 ### that each s/*.h file is pretty manufacturer-specific.
4715 ### So we basically have to have a special case for each
4716 ### configuration name.
4718 ### As far as handling version numbers on operating systems is
4719 ### concerned, make sure things will fail in a fixable way. If
4720 ### /etc/MACHINES doesn't say anything about version numbers, be
4721 ### prepared to handle anything reasonably. If version numbers
4722 ### matter, be sure /etc/MACHINES says something about it.
4724 opsys
='' unported
=no
4725 case "${canonical}" in
4727 ## GNU/Linux and similar ports
4742 ## FreeBSD kernel + glibc based userland
4757 ## Apple Darwin / Mac OS X
4759 case "${canonical}" in
4766 ## Use fink packages if available.
4767 ## FIXME find a better way to do this: http://debbugs.gnu.org/11507
4768 ## if test -d /sw/include && test -d /sw/lib; then
4769 ## GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
4770 ## NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
4779 ## HP 9000 series 700 and 800, running HP/UX
4780 hppa
*-hp-hpux10.2
* )
4783 hppa
*-hp-hpux1[1-9]* )
4785 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
4789 rs6000-ibm-aix4.
[23]* )
4792 powerpc-ibm-aix4.
[23]* )
4795 rs6000-ibm-aix
[56]* )
4798 powerpc-ibm-aix
[56]* )
4802 ## Silicon Graphics machines
4806 # Without defining _LANGUAGE_C, things get masked out in the headers
4807 # so that, for instance, grepping for `free' in stdlib.h fails and
4808 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
4809 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
4814 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* \
4815 | x86_64-
*-solaris2* | x86_64-
*-sunos5*)
4816 case "${canonical}" in
4818 amd64-
*-*|x86_64-
*-*) ;;
4822 case "${canonical}" in
4823 *-sunos5.6
* |
*-solaris2.6
* )
4827 *-sunos5.
[7-9]* |
*-solaris2.
[7-9]* )
4829 emacs_check_sunpro_c
=yes
4831 *-sunos5* |
*-solaris* )
4833 emacs_check_sunpro_c
=yes
4836 ## Watch out for a compiler that we know will not work.
4837 case "${canonical}" in
4838 *-solaris* |
*-sunos5* )
4839 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
4840 ## /usr/ucb/cc doesn't work;
4841 ## we should find some other compiler that does work.
4849 ## Intel 386 machines where we don't care about the manufacturer.
4851 case "${canonical}" in
4852 *-darwin* ) opsys
=darwin
;;
4855 # MinGW overrides and adds some system headers in nt/inc.
4856 GCC_TEST_OPTIONS
="-I $srcdir/nt/inc"
4858 *-sysv4.2uw
* ) opsys
=unixware
;;
4859 *-sysv5uw* ) opsys
=unixware
;;
4860 *-sysv5OpenUNIX* ) opsys
=unixware
;;
4861 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
4870 ### If the code above didn't choose an operating system, just choose
4871 ### an operating system based on the configuration name. You really
4872 ### only want to use this when you have no idea what the right
4873 ### operating system is; if you know what operating systems a machine
4874 ### runs, it's cleaner to make it explicit in the case statement
4876 if test x
"${opsys}" = x
; then
4877 case "${canonical}" in
4878 *-gnu* ) opsys
=gnu
;;
4887 if test $unported = yes; then
4888 as_fn_error
"Emacs hasn't been ported to \`${canonical}' systems.
4889 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
4893 #### Choose a compiler.
4896 ac_cpp
='$CPP $CPPFLAGS'
4897 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4898 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4899 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4900 if test -n "$ac_tool_prefix"; then
4901 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4902 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
4903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4904 $as_echo_n "checking for $ac_word... " >&6; }
4905 if test "${ac_cv_prog_CC+set}" = set; then :
4906 $as_echo_n "(cached) " >&6
4908 if test -n "$CC"; then
4909 ac_cv_prog_CC
="$CC" # Let the user override the test.
4911 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4915 test -z "$as_dir" && as_dir
=.
4916 for ac_exec_ext
in '' $ac_executable_extensions; do
4917 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4918 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
4919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4929 if test -n "$CC"; then
4930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4931 $as_echo "$CC" >&6; }
4933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4934 $as_echo "no" >&6; }
4939 if test -z "$ac_cv_prog_CC"; then
4941 # Extract the first word of "gcc", so it can be a program name with args.
4942 set dummy gcc
; ac_word
=$2
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4944 $as_echo_n "checking for $ac_word... " >&6; }
4945 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4946 $as_echo_n "(cached) " >&6
4948 if test -n "$ac_ct_CC"; then
4949 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4951 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4955 test -z "$as_dir" && as_dir
=.
4956 for ac_exec_ext
in '' $ac_executable_extensions; do
4957 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4958 ac_cv_prog_ac_ct_CC
="gcc"
4959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4968 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4969 if test -n "$ac_ct_CC"; then
4970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4971 $as_echo "$ac_ct_CC" >&6; }
4973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4974 $as_echo "no" >&6; }
4977 if test "x$ac_ct_CC" = x
; then
4980 case $cross_compiling:$ac_tool_warned in
4982 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4983 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4984 ac_tool_warned
=yes ;;
4992 if test -z "$CC"; then
4993 if test -n "$ac_tool_prefix"; then
4994 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4995 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
4996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4997 $as_echo_n "checking for $ac_word... " >&6; }
4998 if test "${ac_cv_prog_CC+set}" = set; then :
4999 $as_echo_n "(cached) " >&6
5001 if test -n "$CC"; then
5002 ac_cv_prog_CC
="$CC" # Let the user override the test.
5004 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5008 test -z "$as_dir" && as_dir
=.
5009 for ac_exec_ext
in '' $ac_executable_extensions; do
5010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5011 ac_cv_prog_CC
="${ac_tool_prefix}cc"
5012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5022 if test -n "$CC"; then
5023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5024 $as_echo "$CC" >&6; }
5026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5027 $as_echo "no" >&6; }
5033 if test -z "$CC"; then
5034 # Extract the first word of "cc", so it can be a program name with args.
5035 set dummy cc
; ac_word
=$2
5036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5037 $as_echo_n "checking for $ac_word... " >&6; }
5038 if test "${ac_cv_prog_CC+set}" = set; then :
5039 $as_echo_n "(cached) " >&6
5041 if test -n "$CC"; then
5042 ac_cv_prog_CC
="$CC" # Let the user override the test.
5045 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5049 test -z "$as_dir" && as_dir
=.
5050 for ac_exec_ext
in '' $ac_executable_extensions; do
5051 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5052 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5053 ac_prog_rejected
=yes
5057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5064 if test $ac_prog_rejected = yes; then
5065 # We found a bogon in the path, so make sure we never use it.
5066 set dummy
$ac_cv_prog_CC
5068 if test $# != 0; then
5069 # We chose a different compiler from the bogus one.
5070 # However, it has the same basename, so the bogon will be chosen
5071 # first if we set CC to just the basename; use the full file name.
5073 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
5079 if test -n "$CC"; then
5080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5081 $as_echo "$CC" >&6; }
5083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5084 $as_echo "no" >&6; }
5089 if test -z "$CC"; then
5090 if test -n "$ac_tool_prefix"; then
5091 for ac_prog
in cl.exe
5093 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5094 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
5095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5096 $as_echo_n "checking for $ac_word... " >&6; }
5097 if test "${ac_cv_prog_CC+set}" = set; then :
5098 $as_echo_n "(cached) " >&6
5100 if test -n "$CC"; then
5101 ac_cv_prog_CC
="$CC" # Let the user override the test.
5103 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5107 test -z "$as_dir" && as_dir
=.
5108 for ac_exec_ext
in '' $ac_executable_extensions; do
5109 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5110 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
5111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5121 if test -n "$CC"; then
5122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5123 $as_echo "$CC" >&6; }
5125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5126 $as_echo "no" >&6; }
5130 test -n "$CC" && break
5133 if test -z "$CC"; then
5135 for ac_prog
in cl.exe
5137 # Extract the first word of "$ac_prog", so it can be a program name with args.
5138 set dummy
$ac_prog; ac_word
=$2
5139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5140 $as_echo_n "checking for $ac_word... " >&6; }
5141 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5142 $as_echo_n "(cached) " >&6
5144 if test -n "$ac_ct_CC"; then
5145 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
5147 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5151 test -z "$as_dir" && as_dir
=.
5152 for ac_exec_ext
in '' $ac_executable_extensions; do
5153 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5154 ac_cv_prog_ac_ct_CC
="$ac_prog"
5155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5164 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
5165 if test -n "$ac_ct_CC"; then
5166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5167 $as_echo "$ac_ct_CC" >&6; }
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5170 $as_echo "no" >&6; }
5174 test -n "$ac_ct_CC" && break
5177 if test "x$ac_ct_CC" = x
; then
5180 case $cross_compiling:$ac_tool_warned in
5182 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5183 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5184 ac_tool_warned
=yes ;;
5193 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5194 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5195 as_fn_error
"no acceptable C compiler found in \$PATH
5196 See \`config.log' for more details." "$LINENO" 5; }
5198 # Provide some information about the compiler.
5199 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5202 for ac_option
in --version -v -V -qversion; do
5203 { { ac_try
="$ac_compiler $ac_option >&5"
5205 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5206 *) ac_try_echo=$ac_try;;
5208 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5209 $as_echo "$ac_try_echo"; } >&5
5210 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5212 if test -s conftest.err; then
5214 ... rest of stderr output deleted ...
5215 10q' conftest.err >conftest.er1
5216 cat conftest.er1 >&5
5218 rm -f conftest.er1 conftest.err
5219 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5220 test $ac_status = 0; }
5223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5224 /* end confdefs.h. */
5234 ac_clean_files_save=$ac_clean_files
5235 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
5236 # Try to create an executable without -o first, disregard a.out.
5237 # It will help us diagnose broken compilers, and finding out an intuition
5239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
5240 $as_echo_n "checking whether the C compiler works... " >&6; }
5241 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
5243 # The possible output files:
5244 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
5247 for ac_file in $ac_files
5250 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5251 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
5256 if { { ac_try="$ac_link_default"
5258 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5259 *) ac_try_echo
=$ac_try;;
5261 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5262 $as_echo "$ac_try_echo"; } >&5
5263 (eval "$ac_link_default") 2>&5
5265 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5266 test $ac_status = 0; }; then :
5267 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
5268 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
5269 # in a Makefile. We should not override ac_cv_exeext if it was cached,
5270 # so that the user can short-circuit this test for compilers unknown to
5272 for ac_file
in $ac_files ''
5274 test -f "$ac_file" ||
continue
5276 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
5279 # We found the default executable, but exeext='' is most
5283 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
5285 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
5287 # We set ac_cv_exeext here because the later test for it is not
5288 # safe: cross compilers may not add the suffix if given an `-o'
5289 # argument, so we may need to know it at that point already.
5290 # Even if this section looks crufty: it has the advantage of
5297 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
5302 if test -z "$ac_file"; then :
5303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5304 $as_echo "no" >&6; }
5305 $as_echo "$as_me: failed program was:" >&5
5306 sed 's/^/| /' conftest.
$ac_ext >&5
5308 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5309 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5310 { as_fn_set_status
77
5311 as_fn_error
"C compiler cannot create executables
5312 See \`config.log' for more details." "$LINENO" 5; }; }
5314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5315 $as_echo "yes" >&6; }
5317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5318 $as_echo_n "checking for C compiler default output file name... " >&6; }
5319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5320 $as_echo "$ac_file" >&6; }
5321 ac_exeext
=$ac_cv_exeext
5323 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
5324 ac_clean_files
=$ac_clean_files_save
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5326 $as_echo_n "checking for suffix of executables... " >&6; }
5327 if { { ac_try
="$ac_link"
5329 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5330 *) ac_try_echo=$ac_try;;
5332 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5333 $as_echo "$ac_try_echo"; } >&5
5334 (eval "$ac_link") 2>&5
5336 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5337 test $ac_status = 0; }; then :
5338 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
5339 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
5340 # work properly (i.e., refer to `conftest.exe'), while it won't with
5342 for ac_file
in conftest.exe conftest conftest.
*; do
5343 test -f "$ac_file" ||
continue
5345 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
5346 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
5352 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5353 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5354 as_fn_error
"cannot compute suffix of executables: cannot compile and link
5355 See \`config.log' for more details." "$LINENO" 5; }
5357 rm -f conftest conftest
$ac_cv_exeext
5358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5359 $as_echo "$ac_cv_exeext" >&6; }
5361 rm -f conftest.
$ac_ext
5362 EXEEXT
=$ac_cv_exeext
5364 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5365 /* end confdefs.h. */
5370 FILE *f = fopen ("conftest.out", "w");
5371 return ferror (f) || fclose (f) != 0;
5377 ac_clean_files
="$ac_clean_files conftest.out"
5378 # Check that the compiler produces executables we can run. If not, either
5379 # the compiler is broken, or we cross compile.
5380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5381 $as_echo_n "checking whether we are cross compiling... " >&6; }
5382 if test "$cross_compiling" != yes; then
5383 { { ac_try
="$ac_link"
5385 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5386 *) ac_try_echo=$ac_try;;
5388 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5389 $as_echo "$ac_try_echo"; } >&5
5390 (eval "$ac_link") 2>&5
5392 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5393 test $ac_status = 0; }
5394 if { ac_try='./conftest$ac_cv_exeext'
5395 { { case "(($ac_try" in
5396 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5397 *) ac_try_echo
=$ac_try;;
5399 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5400 $as_echo "$ac_try_echo"; } >&5
5401 (eval "$ac_try") 2>&5
5403 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5404 test $ac_status = 0; }; }; then
5407 if test "$cross_compiling" = maybe
; then
5410 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5411 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5412 as_fn_error
"cannot run C compiled programs.
5413 If you meant to cross compile, use \`--host'.
5414 See \`config.log' for more details." "$LINENO" 5; }
5418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5419 $as_echo "$cross_compiling" >&6; }
5421 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
5422 ac_clean_files
=$ac_clean_files_save
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5424 $as_echo_n "checking for suffix of object files... " >&6; }
5425 if test "${ac_cv_objext+set}" = set; then :
5426 $as_echo_n "(cached) " >&6
5428 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5429 /* end confdefs.h. */
5439 rm -f conftest.o conftest.obj
5440 if { { ac_try
="$ac_compile"
5442 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5443 *) ac_try_echo=$ac_try;;
5445 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5446 $as_echo "$ac_try_echo"; } >&5
5447 (eval "$ac_compile") 2>&5
5449 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5450 test $ac_status = 0; }; then :
5451 for ac_file in conftest.o conftest.obj conftest.*; do
5452 test -f "$ac_file" || continue;
5454 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5455 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5460 $as_echo "$as_me: failed program was:" >&5
5461 sed 's/^/| /' conftest.$ac_ext >&5
5463 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5464 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5465 as_fn_error "cannot compute suffix of object files
: cannot compile
5466 See \
`config.log' for more details." "$LINENO" 5; }
5468 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5471 $as_echo "$ac_cv_objext" >&6; }
5472 OBJEXT=$ac_cv_objext
5474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5475 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5476 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5477 $as_echo_n "(cached) " >&6
5479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5480 /* end confdefs.h. */
5493 if ac_fn_c_try_compile "$LINENO"; then :
5498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5499 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5503 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5504 if test $ac_compiler_gnu = yes; then
5509 ac_test_CFLAGS=${CFLAGS+set}
5510 ac_save_CFLAGS=$CFLAGS
5511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5512 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5513 if test "${ac_cv_prog_cc_g+set}" = set; then :
5514 $as_echo_n "(cached) " >&6
5516 ac_save_c_werror_flag=$ac_c_werror_flag
5517 ac_c_werror_flag=yes
5520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5521 /* end confdefs.h. */
5531 if ac_fn_c_try_compile "$LINENO"; then :
5535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5536 /* end confdefs.h. */
5546 if ac_fn_c_try_compile "$LINENO"; then :
5549 ac_c_werror_flag=$ac_save_c_werror_flag
5551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5552 /* end confdefs.h. */
5562 if ac_fn_c_try_compile "$LINENO"; then :
5565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5570 ac_c_werror_flag=$ac_save_c_werror_flag
5572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5573 $as_echo "$ac_cv_prog_cc_g" >&6; }
5574 if test "$ac_test_CFLAGS" = set; then
5575 CFLAGS=$ac_save_CFLAGS
5576 elif test $ac_cv_prog_cc_g = yes; then
5577 if test "$GCC" = yes; then
5583 if test "$GCC" = yes; then
5589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5590 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5591 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5592 $as_echo_n "(cached) " >&6
5594 ac_cv_prog_cc_c89=no
5596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5597 /* end confdefs.h. */
5600 #include <sys/types.h>
5601 #include <sys/stat.h>
5602 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5603 struct buf { int x; };
5604 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5605 static char *e (p, i)
5611 static char *f (char * (*g) (char **, int), char **p, ...)
5616 s = g (p, va_arg (v,int));
5621 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5622 function prototypes and stuff, but not '\xHH' hex character constants.
5623 These don't provoke an error unfortunately, instead are silently treated
5624 as 'x'. The following induces an error, until -std is added to get
5625 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5626 array size at least. It's necessary to write '\x00'==0 to get something
5627 that's true only with -std. */
5628 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5630 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5631 inside strings and character constants. */
5633 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5635 int test (int i, double x);
5636 struct s1 {int (*f) (int a);};
5637 struct s2 {int (*f) (double a);};
5638 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5644 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5649 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5650 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5652 CC="$ac_save_CC $ac_arg"
5653 if ac_fn_c_try_compile "$LINENO"; then :
5654 ac_cv_prog_cc_c89=$ac_arg
5656 rm -f core conftest.err conftest.$ac_objext
5657 test "x$ac_cv_prog_cc_c89" != "xno" && break
5659 rm -f conftest.$ac_ext
5664 case "x$ac_cv_prog_cc_c89" in
5666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5667 $as_echo "none needed" >&6; } ;;
5669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5670 $as_echo "unsupported" >&6; } ;;
5672 CC="$CC $ac_cv_prog_cc_c89"
5673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5674 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5676 if test "x$ac_cv_prog_cc_c89" != xno; then :
5681 ac_cpp='$CPP $CPPFLAGS'
5682 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5683 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5684 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5685 DEPDIR="${am__leading_dot}deps"
5687 ac_config_commands="$ac_config_commands depfiles"
5690 am_make=${MAKE-make}
5691 cat > confinc << 'END'
5693 @echo this is the am__doit target
5696 # If we don't find an include directive, just comment out the code.
5697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5698 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5702 # First try GNU make style include.
5703 echo "include confinc" > confmf
5704 # Ignore all kinds of additional output from `make'.
5705 case `$am_make -s -f confmf 2> /dev/null` in #(
5706 *the\ am__doit\ target*)
5712 # Now try BSD make style include.
5713 if test "$am__include" = "#"; then
5714 echo '.include
"confinc"' > confmf
5715 case `$am_make -s -f confmf 2> /dev/null` in #(
5716 *the\ am__doit\ target*)
5717 am__include=.include
5725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5726 $as_echo "$_am_result" >&6; }
5727 rm -f confinc confmf
5729 # Check whether --enable-dependency-tracking was given.
5730 if test "${enable_dependency_tracking+set}" = set; then :
5731 enableval=$enable_dependency_tracking;
5734 if test "x$enable_dependency_tracking" != xno; then
5735 am_depcomp="$ac_aux_dir/depcomp"
5738 if test "x$enable_dependency_tracking" != xno
; then
5748 depcc
="$CC" am_compiler_list
=
5750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5751 $as_echo_n "checking dependency style of $depcc... " >&6; }
5752 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5753 $as_echo_n "(cached) " >&6
5755 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5756 # We make a subdir and do the tests there. Otherwise we can end up
5757 # making bogus files that we don't know about and never remove. For
5758 # instance it was reported that on HP-UX the gcc test will end up
5759 # making a dummy file named `D' -- because `-MD' means `put the output
5762 # Copy depcomp to subdir because otherwise we won't find it if we're
5763 # using a relative directory.
5764 cp "$am_depcomp" conftest.dir
5766 # We will build objects and dependencies in a subdirectory because
5767 # it helps to detect inapplicable dependency modes. For instance
5768 # both Tru64's cc and ICC support -MD to output dependencies as a
5769 # side effect of compilation, but ICC will put the dependencies in
5770 # the current directory while Tru64 will put them in the object
5774 am_cv_CC_dependencies_compiler_type
=none
5775 if test "$am_compiler_list" = ""; then
5776 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5779 case " $depcc " in #(
5780 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
5783 for depmode
in $am_compiler_list; do
5784 # Setup a source with many dependencies, because some compilers
5785 # like to wrap large dependency lists on column 80 (with \), and
5786 # we should not choose a depcomp mode which is confused by this.
5788 # We need to recreate these files for each test, as the compiler may
5789 # overwrite some of them when testing with obscure command lines.
5790 # This happens at least with the AIX C compiler.
5792 for i
in 1 2 3 4 5 6; do
5793 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
5794 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5795 # Solaris 8's {/usr,}/bin/sh.
5796 touch sub
/conftst
$i.h
5798 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5800 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5801 # mode. It turns out that the SunPro C++ compiler does not properly
5802 # handle `-M -o', and we need to detect this. Also, some Intel
5803 # versions had trouble with output in subdirs
5804 am__obj
=sub
/conftest.
${OBJEXT-o}
5805 am__minus_obj
="-o $am__obj"
5808 # This depmode causes a compiler race in universal mode.
5809 test "$am__universal" = false ||
continue
5812 # after this tag, mechanisms are not by side-effect, so they'll
5813 # only be used when explicitly requested
5814 if test "x$enable_dependency_tracking" = xyes
; then
5820 msvisualcpp | msvcmsys
)
5821 # This compiler won't grok `-c -o', but also, the minuso test has
5822 # not run yet. These depmodes are late enough in the game, and
5823 # so weak that their functioning should not be impacted.
5824 am__obj
=conftest.
${OBJEXT-o}
5829 if depmode
=$depmode \
5830 source=sub
/conftest.c object
=$am__obj \
5831 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
5832 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
5833 >/dev
/null
2>conftest.err
&&
5834 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
5835 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
5836 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
5837 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
5838 # icc doesn't choke on unknown options, it will just issue warnings
5839 # or remarks (even with -Werror). So we grep stderr for any message
5840 # that says an option was ignored or not supported.
5841 # When given -MP, icc 7.0 and 7.1 complain thusly:
5842 # icc: Command line warning: ignoring option '-M'; no argument required
5843 # The diagnosis changed in icc 8.0:
5844 # icc: Command line remark: option '-MP' not supported
5845 if (grep 'ignoring option' conftest.err ||
5846 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
5847 am_cv_CC_dependencies_compiler_type
=$depmode
5856 am_cv_CC_dependencies_compiler_type
=none
5860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5861 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5862 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
5865 test "x$enable_dependency_tracking" != xno \
5866 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
5868 am__fastdepCC_FALSE
='#'
5870 am__fastdepCC_TRUE
='#'
5871 am__fastdepCC_FALSE
=
5875 if test "x$CC" != xcc
; then
5876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5877 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5880 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5882 set dummy
$CC; ac_cc
=`$as_echo "$2" |
5883 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5884 if { as_var
=ac_cv_prog_cc_
${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
5885 $as_echo_n "(cached) " >&6
5887 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5888 /* end confdefs.h. */
5898 # Make sure it works both with $CC and with simple cc.
5899 # We do the test twice because some compilers refuse to overwrite an
5900 # existing .o file with -o, though they will create one.
5901 ac_try
='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5903 if { { case "(($ac_try" in
5904 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5905 *) ac_try_echo=$ac_try;;
5907 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5908 $as_echo "$ac_try_echo"; } >&5
5909 (eval "$ac_try") 2>&5
5911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5912 test $ac_status = 0; } &&
5913 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5914 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5915 *) ac_try_echo
=$ac_try;;
5917 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5918 $as_echo "$ac_try_echo"; } >&5
5919 (eval "$ac_try") 2>&5
5921 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5922 test $ac_status = 0; };
5924 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
5925 if test "x$CC" != xcc
; then
5926 # Test first that cc exists at all.
5927 if { ac_try
='cc -c conftest.$ac_ext >&5'
5928 { { case "(($ac_try" in
5929 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5930 *) ac_try_echo=$ac_try;;
5932 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5933 $as_echo "$ac_try_echo"; } >&5
5934 (eval "$ac_try") 2>&5
5936 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5937 test $ac_status = 0; }; }; then
5938 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5940 if { { case "(($ac_try" in
5941 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5942 *) ac_try_echo
=$ac_try;;
5944 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5945 $as_echo "$ac_try_echo"; } >&5
5946 (eval "$ac_try") 2>&5
5948 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5949 test $ac_status = 0; } &&
5950 test -f conftest2.
$ac_objext && { { case "(($ac_try" in
5951 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5952 *) ac_try_echo=$ac_try;;
5954 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5955 $as_echo "$ac_try_echo"; } >&5
5956 (eval "$ac_try") 2>&5
5958 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5959 test $ac_status = 0; };
5964 # cc exists but doesn't like -o.
5965 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5970 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5972 rm -f core conftest*
5975 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5977 $as_echo "yes" >&6; }
5979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5980 $as_echo "no" >&6; }
5982 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5986 # FIXME: we rely on the cache variable name because
5987 # there is no other way.
5989 am_cc=`echo $2 |
sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5990 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5991 if test "$am_t" != yes; then
5992 # Losing compiler, so override with the script.
5993 # FIXME: It is wrong to rewrite CC.
5994 # But if we don't then we get into trouble of one sort or another.
5995 # A longer-term fix would be to have automake use am__CC in this case,
5996 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5997 CC="$am_aux_dir/compile $CC"
6002 if test x$GCC = xyes; then
6003 test "x$GCC_TEST_OPTIONS" != x && CC="$CC $GCC_TEST_OPTIONS"
6005 test "x$NON_GCC_TEST_OPTIONS" != x && CC="$CC $NON_GCC_TEST_OPTIONS"
6008 if test "x$opsys" = "xmingw32"; then
6009 BUILDING_FOR_WINDOWSNT_TRUE=
6010 BUILDING_FOR_WINDOWSNT_FALSE='#'
6012 BUILDING_FOR_WINDOWSNT_TRUE='#'
6013 BUILDING_FOR_WINDOWSNT_FALSE=
6017 # Avoid gnulib's tests for HAVE_WORKING_O_NOATIME and HAVE_WORKING_O_NOFOLLOW,
6018 # as we don't use them.
6020 # Avoid gnulib's threadlib module, as we do threads our own way.
6023 # Initialize gnulib right after choosing the compiler.
6026 ac_cpp='$CPP $CPPFLAGS'
6027 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6028 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6029 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6031 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6032 # On Suns, sometimes $CPP names a directory.
6033 if test -n "$CPP" && test -d "$CPP"; then
6036 if test -z "$CPP"; then
6037 if test "${ac_cv_prog_CPP+set}" = set; then :
6038 $as_echo_n "(cached) " >&6
6040 # Double quotes because CPP needs to be expanded
6041 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6044 for ac_c_preproc_warn_flag in '' yes
6046 # Use a header file that comes with gcc, so configuring glibc
6047 # with a fresh cross-compiler works.
6048 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6049 # <limits.h> exists even on freestanding compilers.
6050 # On the NeXT, cc -E runs the code through the compiler's parser,
6051 # not just through cpp. "Syntax error" is here to catch this case.
6052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6053 /* end confdefs.h. */
6055 # include <limits.h>
6057 # include <assert.h>
6061 if ac_fn_c_try_cpp "$LINENO"; then :
6064 # Broken: fails on valid input.
6067 rm -f conftest.err conftest.$ac_ext
6069 # OK, works on sane cases. Now check whether nonexistent headers
6070 # can be detected and how.
6071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6072 /* end confdefs.h. */
6073 #include <ac_nonexistent.h>
6075 if ac_fn_c_try_cpp "$LINENO"; then :
6076 # Broken: success on invalid input.
6079 # Passes both tests.
6083 rm -f conftest.err conftest.$ac_ext
6086 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6087 rm -f conftest.err conftest.
$ac_ext
6088 if $ac_preproc_ok; then :
6100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6101 $as_echo "$CPP" >&6; }
6103 for ac_c_preproc_warn_flag
in '' yes
6105 # Use a header file that comes with gcc, so configuring glibc
6106 # with a fresh cross-compiler works.
6107 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6108 # <limits.h> exists even on freestanding compilers.
6109 # On the NeXT, cc -E runs the code through the compiler's parser,
6110 # not just through cpp. "Syntax error" is here to catch this case.
6111 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6112 /* end confdefs.h. */
6114 # include <limits.h>
6116 # include <assert.h>
6120 if ac_fn_c_try_cpp
"$LINENO"; then :
6123 # Broken: fails on valid input.
6126 rm -f conftest.err conftest.
$ac_ext
6128 # OK, works on sane cases. Now check whether nonexistent headers
6129 # can be detected and how.
6130 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6131 /* end confdefs.h. */
6132 #include <ac_nonexistent.h>
6134 if ac_fn_c_try_cpp
"$LINENO"; then :
6135 # Broken: success on invalid input.
6138 # Passes both tests.
6142 rm -f conftest.err conftest.
$ac_ext
6145 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6146 rm -f conftest.err conftest.
$ac_ext
6147 if $ac_preproc_ok; then :
6150 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6151 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6152 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
6153 See \`config.log' for more details." "$LINENO" 5; }
6157 ac_cpp
='$CPP $CPPFLAGS'
6158 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6159 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6160 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6164 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6165 if test "${ac_cv_path_GREP+set}" = set; then :
6166 $as_echo_n "(cached) " >&6
6168 if test -z "$GREP"; then
6169 ac_path_GREP_found
=false
6170 # Loop through the user's path and test for each of PROGNAME-LIST
6171 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6172 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
6175 test -z "$as_dir" && as_dir
=.
6176 for ac_prog
in grep ggrep
; do
6177 for ac_exec_ext
in '' $ac_executable_extensions; do
6178 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
6179 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
6180 # Check for GNU ac_path_GREP and select it if it is found.
6181 # Check for GNU $ac_path_GREP
6182 case `"$ac_path_GREP" --version 2>&1` in
6184 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
6187 $as_echo_n 0123456789 >"conftest.in"
6190 cat "conftest.in" "conftest.in" >"conftest.tmp"
6191 mv "conftest.tmp" "conftest.in"
6192 cp "conftest.in" "conftest.nl"
6193 $as_echo 'GREP' >> "conftest.nl"
6194 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
6195 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
6196 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
6197 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6198 # Best one so far, save it but keep looking for a better one
6199 ac_cv_path_GREP
="$ac_path_GREP"
6200 ac_path_GREP_max
=$ac_count
6202 # 10*(2^10) chars as input seems more than enough
6203 test $ac_count -gt 10 && break
6205 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
6208 $ac_path_GREP_found && break 3
6213 if test -z "$ac_cv_path_GREP"; then
6214 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6217 ac_cv_path_GREP
=$GREP
6221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6222 $as_echo "$ac_cv_path_GREP" >&6; }
6223 GREP
="$ac_cv_path_GREP"
6226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6227 $as_echo_n "checking for egrep... " >&6; }
6228 if test "${ac_cv_path_EGREP+set}" = set; then :
6229 $as_echo_n "(cached) " >&6
6231 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
6232 then ac_cv_path_EGREP
="$GREP -E"
6234 if test -z "$EGREP"; then
6235 ac_path_EGREP_found
=false
6236 # Loop through the user's path and test for each of PROGNAME-LIST
6237 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6238 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
6241 test -z "$as_dir" && as_dir
=.
6242 for ac_prog
in egrep; do
6243 for ac_exec_ext
in '' $ac_executable_extensions; do
6244 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
6245 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
6246 # Check for GNU ac_path_EGREP and select it if it is found.
6247 # Check for GNU $ac_path_EGREP
6248 case `"$ac_path_EGREP" --version 2>&1` in
6250 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
6253 $as_echo_n 0123456789 >"conftest.in"
6256 cat "conftest.in" "conftest.in" >"conftest.tmp"
6257 mv "conftest.tmp" "conftest.in"
6258 cp "conftest.in" "conftest.nl"
6259 $as_echo 'EGREP' >> "conftest.nl"
6260 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
6261 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
6262 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
6263 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6264 # Best one so far, save it but keep looking for a better one
6265 ac_cv_path_EGREP
="$ac_path_EGREP"
6266 ac_path_EGREP_max
=$ac_count
6268 # 10*(2^10) chars as input seems more than enough
6269 test $ac_count -gt 10 && break
6271 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
6274 $ac_path_EGREP_found && break 3
6279 if test -z "$ac_cv_path_EGREP"; then
6280 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6283 ac_cv_path_EGREP
=$EGREP
6288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6289 $as_echo "$ac_cv_path_EGREP" >&6; }
6290 EGREP
="$ac_cv_path_EGREP"
6295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
6296 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
6297 if test "${gl_cv_c_amsterdam_compiler+set}" = set; then :
6298 $as_echo_n "(cached) " >&6
6301 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6302 /* end confdefs.h. */
6309 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6310 $EGREP "Amsterdam" >/dev
/null
2>&1; then :
6311 gl_cv_c_amsterdam_compiler
=yes
6313 gl_cv_c_amsterdam_compiler
=no
6319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
6320 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
6321 if test -z "$AR"; then
6322 if test $gl_cv_c_amsterdam_compiler = yes; then
6324 if test -z "$ARFLAGS"; then
6328 if test -n "$ac_tool_prefix"; then
6329 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6330 set dummy
${ac_tool_prefix}ar; ac_word
=$2
6331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6332 $as_echo_n "checking for $ac_word... " >&6; }
6333 if test "${ac_cv_prog_AR+set}" = set; then :
6334 $as_echo_n "(cached) " >&6
6336 if test -n "$AR"; then
6337 ac_cv_prog_AR
="$AR" # Let the user override the test.
6339 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6343 test -z "$as_dir" && as_dir
=.
6344 for ac_exec_ext
in '' $ac_executable_extensions; do
6345 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6346 ac_cv_prog_AR
="${ac_tool_prefix}ar"
6347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6357 if test -n "$AR"; then
6358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6359 $as_echo "$AR" >&6; }
6361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6362 $as_echo "no" >&6; }
6367 if test -z "$ac_cv_prog_AR"; then
6369 # Extract the first word of "ar", so it can be a program name with args.
6370 set dummy
ar; ac_word
=$2
6371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6372 $as_echo_n "checking for $ac_word... " >&6; }
6373 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6374 $as_echo_n "(cached) " >&6
6376 if test -n "$ac_ct_AR"; then
6377 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
6379 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6383 test -z "$as_dir" && as_dir
=.
6384 for ac_exec_ext
in '' $ac_executable_extensions; do
6385 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6386 ac_cv_prog_ac_ct_AR
="ar"
6387 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6396 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
6397 if test -n "$ac_ct_AR"; then
6398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6399 $as_echo "$ac_ct_AR" >&6; }
6401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6402 $as_echo "no" >&6; }
6405 if test "x$ac_ct_AR" = x
; then
6408 case $cross_compiling:$ac_tool_warned in
6410 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6411 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6412 ac_tool_warned
=yes ;;
6420 if test -z "$ARFLAGS"; then
6425 if test -z "$ARFLAGS"; then
6431 if test -z "$RANLIB"; then
6432 if test $gl_cv_c_amsterdam_compiler = yes; then
6435 if test -n "$ac_tool_prefix"; then
6436 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6437 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
6438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6439 $as_echo_n "checking for $ac_word... " >&6; }
6440 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6441 $as_echo_n "(cached) " >&6
6443 if test -n "$RANLIB"; then
6444 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
6446 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6450 test -z "$as_dir" && as_dir
=.
6451 for ac_exec_ext
in '' $ac_executable_extensions; do
6452 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6453 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
6454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6463 RANLIB
=$ac_cv_prog_RANLIB
6464 if test -n "$RANLIB"; then
6465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6466 $as_echo "$RANLIB" >&6; }
6468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6469 $as_echo "no" >&6; }
6474 if test -z "$ac_cv_prog_RANLIB"; then
6475 ac_ct_RANLIB
=$RANLIB
6476 # Extract the first word of "ranlib", so it can be a program name with args.
6477 set dummy ranlib
; ac_word
=$2
6478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6479 $as_echo_n "checking for $ac_word... " >&6; }
6480 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6481 $as_echo_n "(cached) " >&6
6483 if test -n "$ac_ct_RANLIB"; then
6484 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
6486 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6490 test -z "$as_dir" && as_dir
=.
6491 for ac_exec_ext
in '' $ac_executable_extensions; do
6492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6493 ac_cv_prog_ac_ct_RANLIB
="ranlib"
6494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6503 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
6504 if test -n "$ac_ct_RANLIB"; then
6505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6506 $as_echo "$ac_ct_RANLIB" >&6; }
6508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6509 $as_echo "no" >&6; }
6512 if test "x$ac_ct_RANLIB" = x
; then
6515 case $cross_compiling:$ac_tool_warned in
6517 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6518 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6519 ac_tool_warned
=yes ;;
6521 RANLIB
=$ac_ct_RANLIB
6524 RANLIB
="$ac_cv_prog_RANLIB"
6531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6532 $as_echo_n "checking for ANSI C header files... " >&6; }
6533 if test "${ac_cv_header_stdc+set}" = set; then :
6534 $as_echo_n "(cached) " >&6
6536 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6537 /* end confdefs.h. */
6551 if ac_fn_c_try_compile
"$LINENO"; then :
6552 ac_cv_header_stdc
=yes
6554 ac_cv_header_stdc
=no
6556 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6558 if test $ac_cv_header_stdc = yes; then
6559 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6560 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6561 /* end confdefs.h. */
6565 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6566 $EGREP "memchr" >/dev
/null
2>&1; then :
6569 ac_cv_header_stdc
=no
6575 if test $ac_cv_header_stdc = yes; then
6576 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6577 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6578 /* end confdefs.h. */
6582 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6583 $EGREP "free" >/dev
/null
2>&1; then :
6586 ac_cv_header_stdc
=no
6592 if test $ac_cv_header_stdc = yes; then
6593 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6594 if test "$cross_compiling" = yes; then :
6597 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6598 /* end confdefs.h. */
6601 #if ((' ' & 0x0FF) == 0x020)
6602 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6603 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6605 # define ISLOWER(c) \
6606 (('a' <= (c) && (c) <= 'i') \
6607 || ('j' <= (c) && (c) <= 'r') \
6608 || ('s' <= (c) && (c) <= 'z'))
6609 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6612 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6617 for (i = 0; i < 256; i++)
6618 if (XOR (islower (i), ISLOWER (i))
6619 || toupper (i) != TOUPPER (i))
6624 if ac_fn_c_try_run
"$LINENO"; then :
6627 ac_cv_header_stdc
=no
6629 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6630 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6636 $as_echo "$ac_cv_header_stdc" >&6; }
6637 if test $ac_cv_header_stdc = yes; then
6639 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6643 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6644 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
6645 inttypes.h stdint.h unistd.h
6647 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6648 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6650 eval as_val
=\$
$as_ac_Header
6651 if test "x$as_val" = x
""yes; then :
6652 cat >>confdefs.h
<<_ACEOF
6653 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6662 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
6663 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
6670 if test "$MINIX" = yes; then
6672 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6675 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6678 $as_echo "#define _MINIX 1" >>confdefs.h
6681 $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
6686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6687 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6688 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
6689 $as_echo_n "(cached) " >&6
6691 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6692 /* end confdefs.h. */
6694 # define __EXTENSIONS__ 1
6695 $ac_includes_default
6704 if ac_fn_c_try_compile
"$LINENO"; then :
6705 ac_cv_safe_to_define___extensions__
=yes
6707 ac_cv_safe_to_define___extensions__
=no
6709 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6712 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6713 test $ac_cv_safe_to_define___extensions__ = yes &&
6714 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6716 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6718 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
6720 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6722 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6724 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
6727 $as_echo_n "checking whether _XOPEN_SOURCE should be defined... " >&6; }
6728 if test "${ac_cv_should_define__xopen_source+set}" = set; then :
6729 $as_echo_n "(cached) " >&6
6731 ac_cv_should_define__xopen_source
=no
6732 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6733 /* end confdefs.h. */
6745 if ac_fn_c_try_compile
"$LINENO"; then :
6748 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6749 /* end confdefs.h. */
6751 #define _XOPEN_SOURCE 500
6762 if ac_fn_c_try_compile
"$LINENO"; then :
6763 ac_cv_should_define__xopen_source
=yes
6765 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6767 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
6770 $as_echo "$ac_cv_should_define__xopen_source" >&6; }
6771 test $ac_cv_should_define__xopen_source = yes &&
6772 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
6781 # Check whether --enable-largefile was given.
6782 if test "${enable_largefile+set}" = set; then :
6783 enableval
=$enable_largefile;
6786 if test "$enable_largefile" != no
; then
6788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6789 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6790 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
6791 $as_echo_n "(cached) " >&6
6793 ac_cv_sys_largefile_CC
=no
6794 if test "$GCC" != yes; then
6797 # IRIX 6.2 and later do not support large files by default,
6798 # so use the C compiler's -n32 option if that helps.
6799 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6800 /* end confdefs.h. */
6801 #include <sys/types.h>
6802 /* Check that off_t can represent 2**63 - 1 correctly.
6803 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6804 since some C++ compilers masquerading as C compilers
6805 incorrectly reject 9223372036854775807. */
6806 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6807 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6808 && LARGE_OFF_T % 2147483647 == 1)
6818 if ac_fn_c_try_compile
"$LINENO"; then :
6821 rm -f core conftest.err conftest.
$ac_objext
6823 if ac_fn_c_try_compile
"$LINENO"; then :
6824 ac_cv_sys_largefile_CC
=' -n32'; break
6826 rm -f core conftest.err conftest.
$ac_objext
6830 rm -f conftest.
$ac_ext
6833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6834 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6835 if test "$ac_cv_sys_largefile_CC" != no
; then
6836 CC
=$CC$ac_cv_sys_largefile_CC
6839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6840 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6841 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
6842 $as_echo_n "(cached) " >&6
6845 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6846 /* end confdefs.h. */
6847 #include <sys/types.h>
6848 /* Check that off_t can represent 2**63 - 1 correctly.
6849 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6850 since some C++ compilers masquerading as C compilers
6851 incorrectly reject 9223372036854775807. */
6852 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6853 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6854 && LARGE_OFF_T % 2147483647 == 1)
6864 if ac_fn_c_try_compile
"$LINENO"; then :
6865 ac_cv_sys_file_offset_bits
=no
; break
6867 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6868 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6869 /* end confdefs.h. */
6870 #define _FILE_OFFSET_BITS 64
6871 #include <sys/types.h>
6872 /* Check that off_t can represent 2**63 - 1 correctly.
6873 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6874 since some C++ compilers masquerading as C compilers
6875 incorrectly reject 9223372036854775807. */
6876 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6877 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6878 && LARGE_OFF_T % 2147483647 == 1)
6888 if ac_fn_c_try_compile
"$LINENO"; then :
6889 ac_cv_sys_file_offset_bits
=64; break
6891 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6892 ac_cv_sys_file_offset_bits
=unknown
6896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6897 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6898 case $ac_cv_sys_file_offset_bits in #(
6901 cat >>confdefs.h
<<_ACEOF
6902 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6907 if test $ac_cv_sys_file_offset_bits = unknown
; then
6908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6909 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6910 if test "${ac_cv_sys_large_files+set}" = set; then :
6911 $as_echo_n "(cached) " >&6
6914 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6915 /* end confdefs.h. */
6916 #include <sys/types.h>
6917 /* Check that off_t can represent 2**63 - 1 correctly.
6918 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6919 since some C++ compilers masquerading as C compilers
6920 incorrectly reject 9223372036854775807. */
6921 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6922 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6923 && LARGE_OFF_T % 2147483647 == 1)
6933 if ac_fn_c_try_compile
"$LINENO"; then :
6934 ac_cv_sys_large_files
=no
; break
6936 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6937 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6938 /* end confdefs.h. */
6939 #define _LARGE_FILES 1
6940 #include <sys/types.h>
6941 /* Check that off_t can represent 2**63 - 1 correctly.
6942 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6943 since some C++ compilers masquerading as C compilers
6944 incorrectly reject 9223372036854775807. */
6945 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6946 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6947 && LARGE_OFF_T % 2147483647 == 1)
6957 if ac_fn_c_try_compile
"$LINENO"; then :
6958 ac_cv_sys_large_files
=1; break
6960 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6961 ac_cv_sys_large_files
=unknown
6965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6966 $as_echo "$ac_cv_sys_large_files" >&6; }
6967 case $ac_cv_sys_large_files in #(
6970 cat >>confdefs.h
<<_ACEOF
6971 #define _LARGE_FILES $ac_cv_sys_large_files
6979 $as_echo "#define _DARWIN_USE_64_BIT_INODE 1" >>confdefs.h
6983 case $ac_cv_prog_cc_stdc in #(
6985 ac_cv_prog_cc_c99
=no
; ac_cv_prog_cc_c89
=no
;; #(
6987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
6988 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
6989 if test "${ac_cv_prog_cc_c99+set}" = set; then :
6990 $as_echo_n "(cached) " >&6
6992 ac_cv_prog_cc_c99
=no
6994 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6995 /* end confdefs.h. */
6997 #include <stdbool.h>
7002 // Check varargs macros. These examples are taken from C99 6.10.3.5.
7003 #define debug(...) fprintf (stderr, __VA_ARGS__)
7004 #define showlist(...) puts (#__VA_ARGS__)
7005 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7007 test_varargs_macros (void)
7012 debug ("X = %d\n", x);
7013 showlist (The first, second, and third items.);
7014 report (x>y, "x is %d but y is %d", x, y);
7017 // Check long long types.
7018 #define BIG64 18446744073709551615ull
7019 #define BIG32 4294967295ul
7020 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7022 your preprocessor is broken;
7026 your preprocessor is broken;
7028 static long long int bignum = -9223372036854775807LL;
7029 static unsigned long long int ubignum = BIG64;
7031 struct incomplete_array
7039 const wchar_t *name;
7043 typedef const char *ccp;
7046 test_restrict (ccp restrict text)
7048 // See if C++-style comments work.
7049 // Iterate through items via the restricted pointer.
7050 // Also check for declarations in for loops.
7051 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7056 // Check varargs and va_copy.
7058 test_varargs (const char *format, ...)
7061 va_start (args, format);
7063 va_copy (args_copy, args);
7074 str = va_arg (args_copy, const char *);
7077 number = va_arg (args_copy, int);
7080 fnumber = va_arg (args_copy, double);
7095 _Bool success = false;
7098 if (test_restrict ("String literal") == 0)
7100 char *restrict newvar = "Another string";
7103 test_varargs ("s, d' f .", "string", 65, 34.234);
7104 test_varargs_macros ();
7106 // Check flexible array members.
7107 struct incomplete_array *ia =
7108 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7110 for (int i = 0; i < ia->datasize; ++i)
7111 ia->data[i] = i * 1.234;
7113 // Check named initializers.
7114 struct named_init ni = {
7116 .name = L"Test wide string",
7117 .average = 543.34343,
7122 int dynamic_array[ni.number];
7123 dynamic_array[ni.number - 1] = 543;
7125 // work around unused variable warnings
7126 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7127 || dynamic_array[ni.number - 1] != 543);
7133 for ac_arg
in '' -std=gnu99
-std=c99
-c99 -AC99 -xc99=all
-qlanglvl=extc99
7135 CC
="$ac_save_CC $ac_arg"
7136 if ac_fn_c_try_compile
"$LINENO"; then :
7137 ac_cv_prog_cc_c99
=$ac_arg
7139 rm -f core conftest.err conftest.
$ac_objext
7140 test "x$ac_cv_prog_cc_c99" != "xno" && break
7142 rm -f conftest.
$ac_ext
7147 case "x$ac_cv_prog_cc_c99" in
7149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7150 $as_echo "none needed" >&6; } ;;
7152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7153 $as_echo "unsupported" >&6; } ;;
7155 CC
="$CC $ac_cv_prog_cc_c99"
7156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
7157 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7159 if test "x$ac_cv_prog_cc_c99" != xno
; then :
7160 ac_cv_prog_cc_stdc
=$ac_cv_prog_cc_c99
7162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
7163 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
7164 if test "${ac_cv_prog_cc_c89+set}" = set; then :
7165 $as_echo_n "(cached) " >&6
7167 ac_cv_prog_cc_c89
=no
7169 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7170 /* end confdefs.h. */
7173 #include <sys/types.h>
7174 #include <sys/stat.h>
7175 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
7176 struct buf { int x; };
7177 FILE * (*rcsopen) (struct buf *, struct stat *, int);
7178 static char *e (p, i)
7184 static char *f (char * (*g) (char **, int), char **p, ...)
7189 s = g (p, va_arg (v,int));
7194 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
7195 function prototypes and stuff, but not '\xHH' hex character constants.
7196 These don't provoke an error unfortunately, instead are silently treated
7197 as 'x'. The following induces an error, until -std is added to get
7198 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
7199 array size at least. It's necessary to write '\x00'==0 to get something
7200 that's true only with -std. */
7201 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
7203 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
7204 inside strings and character constants. */
7206 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
7208 int test (int i, double x);
7209 struct s1 {int (*f) (int a);};
7210 struct s2 {int (*f) (double a);};
7211 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7217 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
7222 for ac_arg
in '' -qlanglvl=extc89
-qlanglvl=ansi
-std \
7223 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7225 CC
="$ac_save_CC $ac_arg"
7226 if ac_fn_c_try_compile
"$LINENO"; then :
7227 ac_cv_prog_cc_c89
=$ac_arg
7229 rm -f core conftest.err conftest.
$ac_objext
7230 test "x$ac_cv_prog_cc_c89" != "xno" && break
7232 rm -f conftest.
$ac_ext
7237 case "x$ac_cv_prog_cc_c89" in
7239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7240 $as_echo "none needed" >&6; } ;;
7242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7243 $as_echo "unsupported" >&6; } ;;
7245 CC
="$CC $ac_cv_prog_cc_c89"
7246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
7247 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
7249 if test "x$ac_cv_prog_cc_c89" != xno
; then :
7250 ac_cv_prog_cc_stdc
=$ac_cv_prog_cc_c89
7252 ac_cv_prog_cc_stdc
=no
7258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
7259 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
7260 if test "${ac_cv_prog_cc_stdc+set}" = set; then :
7261 $as_echo_n "(cached) " >&6
7264 case $ac_cv_prog_cc_stdc in #(
7266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7267 $as_echo "unsupported" >&6; } ;; #(
7269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7270 $as_echo "none needed" >&6; } ;; #(
7272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
7273 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
7278 # Code from module alloca-opt:
7279 # Code from module allocator:
7280 # Code from module at-internal:
7281 # Code from module binary-io:
7282 # Code from module c-ctype:
7283 # Code from module c-strcase:
7284 # Code from module careadlinkat:
7285 # Code from module clock-time:
7286 # Code from module close-stream:
7287 # Code from module crypto/md5:
7288 # Code from module crypto/sha1:
7289 # Code from module crypto/sha256:
7290 # Code from module crypto/sha512:
7291 # Code from module dirent:
7292 # Code from module dosname:
7293 # Code from module dtoastr:
7294 # Code from module dtotimespec:
7295 # Code from module dup2:
7296 # Code from module environ:
7297 # Code from module errno:
7298 # Code from module euidaccess:
7299 # Code from module execinfo:
7300 # Code from module extensions:
7302 # Code from module extern-inline:
7303 # Code from module faccessat:
7304 # Code from module fcntl:
7305 # Code from module fcntl-h:
7306 # Code from module fdatasync:
7307 # Code from module fdopendir:
7308 # Code from module filemode:
7309 # Code from module fpending:
7310 # Code from module fstatat:
7311 # Code from module fsync:
7312 # Code from module getdtablesize:
7313 # Code from module getgroups:
7314 # Code from module getloadavg:
7315 # Code from module getopt-gnu:
7316 # Code from module getopt-posix:
7317 # Code from module gettext-h:
7318 # Code from module gettime:
7319 # Code from module gettimeofday:
7320 # Code from module group-member:
7321 # Code from module include_next:
7322 # Code from module intprops:
7323 # Code from module inttypes-incomplete:
7324 # Code from module largefile:
7326 # Code from module lstat:
7327 # Code from module manywarnings:
7328 # Code from module memrchr:
7329 # Code from module mkostemp:
7330 # Code from module mktime:
7331 # Code from module multiarch:
7332 # Code from module nocrash:
7333 # Code from module openat-h:
7334 # Code from module pathmax:
7335 # Code from module pipe2:
7336 # Code from module pselect:
7337 # Code from module pthread_sigmask:
7338 # Code from module putenv:
7339 # Code from module qacl:
7340 # Code from module readlink:
7341 # Code from module readlinkat:
7342 # Code from module root-uid:
7343 # Code from module secure_getenv:
7344 # Code from module sig2str:
7345 # Code from module signal-h:
7346 # Code from module snippet/_Noreturn:
7347 # Code from module snippet/arg-nonnull:
7348 # Code from module snippet/c++defs:
7349 # Code from module snippet/warn-on-use:
7350 # Code from module socklen:
7351 # Code from module ssize_t:
7352 # Code from module stat:
7353 # Code from module stat-time:
7354 # Code from module stdalign:
7355 # Code from module stdarg:
7359 # Code from module stdbool:
7360 # Code from module stddef:
7361 # Code from module stdint:
7362 # Code from module stdio:
7363 # Code from module stdlib:
7364 # Code from module strftime:
7365 # Code from module string:
7366 # Code from module strtoimax:
7367 # Code from module strtoll:
7368 # Code from module strtoull:
7369 # Code from module strtoumax:
7370 # Code from module symlink:
7371 # Code from module sys_select:
7372 # Code from module sys_stat:
7373 # Code from module sys_time:
7374 # Code from module tempname:
7375 # Code from module time:
7376 # Code from module time_r:
7377 # Code from module timer-time:
7378 # Code from module timespec:
7379 # Code from module timespec-add:
7380 # Code from module timespec-sub:
7381 # Code from module u64:
7382 # Code from module unistd:
7383 # Code from module unsetenv:
7384 # Code from module utimens:
7385 # Code from module verify:
7386 # Code from module warnings:
7387 # Code from module xalloc-oversized:
7390 if test "$ac_test_CFLAGS" != set; then
7391 # It's helpful to have C macros available to GDB, so prefer -g3 to -g
7392 # if -g3 works and the user does not specify CFLAGS.
7393 # This test must follow gl_EARLY; otherwise AC_LINK_IFELSE complains.
7396 emacs_g3_CFLAGS
='-g3';;
7398 emacs_g3_CFLAGS
='-g3 -O2';;
7400 emacs_g3_CFLAGS
='';;
7402 if test -n "$emacs_g3_CFLAGS"; then
7403 emacs_save_CFLAGS
=$CFLAGS
7404 CFLAGS
=$emacs_g3_CFLAGS
7405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts $emacs_g3_CFLAGS" >&5
7406 $as_echo_n "checking whether $CC accepts $emacs_g3_CFLAGS... " >&6; }
7407 if test "${emacs_cv_prog_cc_g3+set}" = set; then :
7408 $as_echo_n "(cached) " >&6
7410 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7411 /* end confdefs.h. */
7421 if ac_fn_c_try_link
"$LINENO"; then :
7422 emacs_cv_prog_cc_g3
=yes
7424 emacs_cv_prog_cc_g3
=no
7426 rm -f core conftest.err conftest.
$ac_objext \
7427 conftest
$ac_exeext conftest.
$ac_ext
7429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_prog_cc_g3" >&5
7430 $as_echo "$emacs_cv_prog_cc_g3" >&6; }
7431 if test $emacs_cv_prog_cc_g3 != yes; then
7432 CFLAGS
=$emacs_save_CFLAGS
7434 if test $opsys = mingw32
; then
7435 CFLAGS
="$CFLAGS -gdwarf-2"
7442 # No optimization flag was inferred for this non-GCC compiler.
7443 # Try -O. This is needed for xlc on AIX; see Bug#14258.
7444 emacs_save_CFLAGS
=$CFLAGS
7445 test -z "$CFLAGS" || CFLAGS
="$CFLAGS "
7447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -O" >&5
7448 $as_echo_n "checking whether $CC accepts -O... " >&6; }
7449 if test "${emacs_cv_prog_cc_o+set}" = set; then :
7450 $as_echo_n "(cached) " >&6
7452 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7453 /* end confdefs.h. */
7463 if ac_fn_c_try_link
"$LINENO"; then :
7464 emacs_cv_prog_cc_o
=yes
7466 emacs_cv_prog_cc_o
=no
7468 rm -f core conftest.err conftest.
$ac_objext \
7469 conftest
$ac_exeext conftest.
$ac_ext
7471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_prog_cc_o" >&5
7472 $as_echo "$emacs_cv_prog_cc_o" >&6; }
7473 if test $emacs_cv_prog_cc_o != yes; then
7474 CFLAGS
=$emacs_save_CFLAGS
7479 # Check whether --enable-gcc-warnings was given.
7480 if test "${enable_gcc_warnings+set}" = set; then :
7481 enableval
=$enable_gcc_warnings; case $enableval in
7483 *) as_fn_error
"bad value $enableval for gcc-warnings option" "$LINENO" 5 ;;
7485 gl_gcc_warnings
=$enableval
7492 # Check whether --enable-link-time-optimization was given.
7493 if test "${enable_link_time_optimization+set}" = set; then :
7494 enableval
=$enable_link_time_optimization; if test "${enableval}" != "no"; then
7495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether link-time optimization is supported" >&5
7496 $as_echo_n "checking whether link-time optimization is supported... " >&6; }
7498 if test x
$GCC = xyes
; then
7499 CPUS
=`getconf _NPROCESSORS_ONLN 2>/dev/null`
7500 if test x
$CPUS != x
; then
7506 CFLAGS
="$CFLAGS $LTO"
7507 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7508 /* end confdefs.h. */
7518 if ac_fn_c_try_compile
"$LINENO"; then :
7519 ac_lto_supported
=yes
7523 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7524 CFLAGS
="$old_CFLAGS"
7526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_lto_supported" >&5
7527 $as_echo "$ac_lto_supported" >&6; }
7528 if test "$ac_lto_supported" = "yes"; then
7529 CFLAGS
="$CFLAGS $LTO"
7535 # gl_GCC_VERSION_IFELSE([major], [minor], [run-if-found], [run-if-not-found])
7536 # ------------------------------------------------
7537 # If $CPP is gcc-MAJOR.MINOR or newer, then run RUN-IF-FOUND.
7538 # Otherwise, run RUN-IF-NOT-FOUND.
7541 # When compiling with GCC, prefer -isystem to -I when including system
7542 # include files, to avoid generating useless diagnostics for the files.
7543 if test "$gl_gcc_warnings" != yes; then
7548 # This, $nw, is the list of warnings we disable.
7551 case $with_x_toolkit in
7552 lucid | athena | motif
)
7553 # Old toolkits mishandle 'const'.
7554 nw
="$nw -Wwrite-strings"
7557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Werror -Wunknown-warning-option" >&5
7558 $as_echo_n "checking whether C compiler handles -Werror -Wunknown-warning-option... " >&6; }
7559 if test "${gl_cv_warn_c__Werror__Wunknown_warning_option+set}" = set; then :
7560 $as_echo_n "(cached) " >&6
7563 gl_save_compiler_FLAGS
="$CFLAGS"
7564 as_fn_append CFLAGS
" $gl_unknown_warnings_are_errors -Werror -Wunknown-warning-option"
7565 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7566 /* end confdefs.h. */
7576 if ac_fn_c_try_compile
"$LINENO"; then :
7577 gl_cv_warn_c__Werror__Wunknown_warning_option
=yes
7579 gl_cv_warn_c__Werror__Wunknown_warning_option
=no
7581 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7582 CFLAGS
="$gl_save_compiler_FLAGS"
7585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Werror__Wunknown_warning_option" >&5
7586 $as_echo "$gl_cv_warn_c__Werror__Wunknown_warning_option" >&6; }
7587 if test "x$gl_cv_warn_c__Werror__Wunknown_warning_option" = x
""yes; then :
7588 gl_unknown_warnings_are_errors
='-Wunknown-warning-option -Werror'
7590 gl_unknown_warnings_are_errors
=
7594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Werror" >&5
7595 $as_echo_n "checking whether C compiler handles -Werror... " >&6; }
7596 if test "${gl_cv_warn_c__Werror+set}" = set; then :
7597 $as_echo_n "(cached) " >&6
7600 gl_save_compiler_FLAGS
="$CFLAGS"
7601 as_fn_append CFLAGS
" $gl_unknown_warnings_are_errors -Werror"
7602 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7603 /* end confdefs.h. */
7613 if ac_fn_c_try_compile
"$LINENO"; then :
7614 gl_cv_warn_c__Werror
=yes
7616 gl_cv_warn_c__Werror
=no
7618 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7619 CFLAGS
="$gl_save_compiler_FLAGS"
7622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Werror" >&5
7623 $as_echo "$gl_cv_warn_c__Werror" >&6; }
7624 if test "x$gl_cv_warn_c__Werror" = x
""yes; then :
7625 as_fn_append WERROR_CFLAGS
" -Werror"
7633 nw
="$nw -Wsystem-headers" # Don't let system headers trigger warnings
7634 nw
="$nw -Woverlength-strings" # Not a problem these days
7635 nw
="$nw -Wlogical-op" # any use of fwrite provokes this
7636 nw
="$nw -Wformat-nonliteral" # we do this a lot
7637 nw
="$nw -Wvla" # warnings in gettext.h
7638 nw
="$nw -Wnested-externs" # use of XARGMATCH/verify_function__
7639 nw
="$nw -Wswitch-default" # Too many warnings for now
7640 nw
="$nw -Winline" # OK to ignore 'inline'
7641 nw
="$nw -Wjump-misses-init" # We sometimes safely jump over init.
7642 nw
="$nw -Wstrict-overflow" # OK to optimize assuming that
7643 # signed overflow has undefined behavior
7644 nw
="$nw -Wsync-nand" # irrelevant here, and provokes ObjC warning
7645 nw
="$nw -Wunsafe-loop-optimizations" # OK to suppress unsafe optimizations
7646 nw
="$nw -Wbad-function-cast" # These casts are no worse than others.
7648 # Emacs doesn't care about shadowing; see
7649 # <http://lists.gnu.org/archive/html/emacs-diffs/2011-11/msg00265.html>.
7652 # Emacs's use of alloca inhibits protecting the stack.
7653 nw
="$nw -Wstack-protector"
7655 # The following line should be removable at some point.
7656 nw
="$nw -Wsuggest-attribute=pure"
7658 # clang is unduly picky about some things.
7659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler is clang" >&5
7660 $as_echo_n "checking whether the compiler is clang... " >&6; }
7661 if test "${emacs_cv_clang+set}" = set; then :
7662 $as_echo_n "(cached) " >&6
7664 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7665 /* end confdefs.h. */
7679 if ac_fn_c_try_compile
"$LINENO"; then :
7684 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_clang" >&5
7687 $as_echo "$emacs_cv_clang" >&6; }
7688 if test $emacs_cv_clang = yes; then
7689 nw
="$nw -Wcast-align"
7694 if test -n "$GCC"; then
7696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is supported" >&5
7697 $as_echo_n "checking whether -Wno-missing-field-initializers is supported... " >&6; }
7698 if test "${gl_cv_cc_nomfi_supported+set}" = set; then :
7699 $as_echo_n "(cached) " >&6
7702 gl_save_CFLAGS
="$CFLAGS"
7703 CFLAGS
="$CFLAGS -W -Werror -Wno-missing-field-initializers"
7704 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7705 /* end confdefs.h. */
7715 if ac_fn_c_try_compile
"$LINENO"; then :
7716 gl_cv_cc_nomfi_supported
=yes
7718 gl_cv_cc_nomfi_supported
=no
7720 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7721 CFLAGS
="$gl_save_CFLAGS"
7724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_supported" >&5
7725 $as_echo "$gl_cv_cc_nomfi_supported" >&6; }
7727 if test "$gl_cv_cc_nomfi_supported" = yes; then
7728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is needed" >&5
7729 $as_echo_n "checking whether -Wno-missing-field-initializers is needed... " >&6; }
7730 if test "${gl_cv_cc_nomfi_needed+set}" = set; then :
7731 $as_echo_n "(cached) " >&6
7734 gl_save_CFLAGS
="$CFLAGS"
7735 CFLAGS
="$CFLAGS -W -Werror"
7736 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7737 /* end confdefs.h. */
7740 typedef struct { int a; int b; } s_t;
7752 if ac_fn_c_try_compile
"$LINENO"; then :
7753 gl_cv_cc_nomfi_needed
=no
7755 gl_cv_cc_nomfi_needed
=yes
7757 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7758 CFLAGS
="$gl_save_CFLAGS"
7762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_needed" >&5
7763 $as_echo "$gl_cv_cc_nomfi_needed" >&6; }
7766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wuninitialized is supported" >&5
7767 $as_echo_n "checking whether -Wuninitialized is supported... " >&6; }
7768 if test "${gl_cv_cc_uninitialized_supported+set}" = set; then :
7769 $as_echo_n "(cached) " >&6
7772 gl_save_CFLAGS
="$CFLAGS"
7773 CFLAGS
="$CFLAGS -Werror -Wuninitialized"
7774 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7775 /* end confdefs.h. */
7785 if ac_fn_c_try_compile
"$LINENO"; then :
7786 gl_cv_cc_uninitialized_supported
=yes
7788 gl_cv_cc_uninitialized_supported
=no
7790 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7791 CFLAGS
="$gl_save_CFLAGS"
7794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_uninitialized_supported" >&5
7795 $as_echo "$gl_cv_cc_uninitialized_supported" >&6; }
7799 # List all gcc warning categories.
7801 for gl_manywarn_item
in \
7805 -Waggressive-loop-optimizations \
7809 -Wbad-function-cast \
7810 -Wbuiltin-macro-redefined \
7816 -Wcoverage-mismatch \
7819 -Wdeprecated-declarations \
7820 -Wdisabled-optimization \
7822 -Wdouble-promotion \
7827 -Wformat-contains-nul \
7828 -Wformat-extra-args \
7829 -Wformat-nonliteral \
7832 -Wformat-zero-length \
7833 -Wfree-nonheap-object \
7834 -Wignored-qualifiers \
7836 -Wimplicit-function-declaration \
7840 -Wint-to-pointer-cast \
7841 -Winvalid-memory-model \
7843 -Wjump-misses-init \
7846 -Wmaybe-uninitialized \
7848 -Wmissing-declarations \
7849 -Wmissing-field-initializers \
7850 -Wmissing-include-dirs \
7851 -Wmissing-parameter-type \
7852 -Wmissing-prototypes \
7859 -Wold-style-declaration \
7860 -Wold-style-definition \
7862 -Woverlength-strings \
7865 -Wpacked-bitfield-compat \
7869 -Wpointer-to-int-cast \
7871 -Wreturn-local-addr \
7875 -Wsizeof-pointer-memaccess \
7879 -Wstrict-prototypes \
7880 -Wsuggest-attribute=const \
7881 -Wsuggest-attribute=format \
7882 -Wsuggest-attribute=noreturn \
7883 -Wsuggest-attribute=pure \
7893 -Wunsafe-loop-optimizations \
7895 -Wunused-but-set-parameter \
7896 -Wunused-but-set-variable \
7899 -Wunused-local-typedefs \
7901 -Wunused-parameter \
7907 -Wvector-operation-performance \
7909 -Wvolatile-register-var \
7913 gl_manywarn_set
="$gl_manywarn_set $gl_manywarn_item"
7916 # Disable specific options as needed.
7917 if test "$gl_cv_cc_nomfi_needed" = yes; then
7918 gl_manywarn_set
="$gl_manywarn_set -Wno-missing-field-initializers"
7921 if test "$gl_cv_cc_uninitialized_supported" = no
; then
7922 gl_manywarn_set
="$gl_manywarn_set -Wno-uninitialized"
7933 *" $gl_warn_item "*)
7936 gl_warn_set
="$gl_warn_set $gl_warn_item"
7944 as_gl_Warn
=`$as_echo "gl_cv_warn_c_$w" | $as_tr_sh`
7946 case $gl_positive in
7947 -Wno-*) gl_positive
=-W`expr "X$gl_positive" : 'X-Wno-\(.*\)'` ;;
7949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles $w" >&5
7950 $as_echo_n "checking whether C compiler handles $w... " >&6; }
7951 if { as_var
=$as_gl_Warn; eval "test \"\${$as_var+set}\" = set"; }; then :
7952 $as_echo_n "(cached) " >&6
7955 gl_save_compiler_FLAGS
="$CFLAGS"
7956 as_fn_append CFLAGS
" $gl_unknown_warnings_are_errors $gl_positive"
7957 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7958 /* end confdefs.h. */
7968 if ac_fn_c_try_compile
"$LINENO"; then :
7969 eval "$as_gl_Warn=yes"
7971 eval "$as_gl_Warn=no"
7973 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7974 CFLAGS
="$gl_save_compiler_FLAGS"
7977 eval ac_res
=\$
$as_gl_Warn
7978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7979 $as_echo "$ac_res" >&6; }
7980 eval as_val
=\$
$as_gl_Warn
7981 if test "x$as_val" = x
""yes; then :
7982 as_fn_append WARN_CFLAGS
" $w"
7988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-missing-field-initializers" >&5
7989 $as_echo_n "checking whether C compiler handles -Wno-missing-field-initializers... " >&6; }
7990 if test "${gl_cv_warn_c__Wno_missing_field_initializers+set}" = set; then :
7991 $as_echo_n "(cached) " >&6
7994 gl_save_compiler_FLAGS
="$CFLAGS"
7995 as_fn_append CFLAGS
" $gl_unknown_warnings_are_errors -Wmissing-field-initializers"
7996 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7997 /* end confdefs.h. */
8007 if ac_fn_c_try_compile
"$LINENO"; then :
8008 gl_cv_warn_c__Wno_missing_field_initializers
=yes
8010 gl_cv_warn_c__Wno_missing_field_initializers
=no
8012 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8013 CFLAGS
="$gl_save_compiler_FLAGS"
8016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_missing_field_initializers" >&5
8017 $as_echo "$gl_cv_warn_c__Wno_missing_field_initializers" >&6; }
8018 if test "x$gl_cv_warn_c__Wno_missing_field_initializers" = x
""yes; then :
8019 as_fn_append WARN_CFLAGS
" -Wno-missing-field-initializers"
8024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-sign-compare" >&5
8025 $as_echo_n "checking whether C compiler handles -Wno-sign-compare... " >&6; }
8026 if test "${gl_cv_warn_c__Wno_sign_compare+set}" = set; then :
8027 $as_echo_n "(cached) " >&6
8030 gl_save_compiler_FLAGS
="$CFLAGS"
8031 as_fn_append CFLAGS
" $gl_unknown_warnings_are_errors -Wsign-compare"
8032 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8033 /* end confdefs.h. */
8043 if ac_fn_c_try_compile
"$LINENO"; then :
8044 gl_cv_warn_c__Wno_sign_compare
=yes
8046 gl_cv_warn_c__Wno_sign_compare
=no
8048 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8049 CFLAGS
="$gl_save_compiler_FLAGS"
8052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_sign_compare" >&5
8053 $as_echo "$gl_cv_warn_c__Wno_sign_compare" >&6; }
8054 if test "x$gl_cv_warn_c__Wno_sign_compare" = x
""yes; then :
8055 as_fn_append WARN_CFLAGS
" -Wno-sign-compare"
8058 # Too many warnings for now
8060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-type-limits" >&5
8061 $as_echo_n "checking whether C compiler handles -Wno-type-limits... " >&6; }
8062 if test "${gl_cv_warn_c__Wno_type_limits+set}" = set; then :
8063 $as_echo_n "(cached) " >&6
8066 gl_save_compiler_FLAGS
="$CFLAGS"
8067 as_fn_append CFLAGS
" $gl_unknown_warnings_are_errors -Wtype-limits"
8068 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8069 /* end confdefs.h. */
8079 if ac_fn_c_try_compile
"$LINENO"; then :
8080 gl_cv_warn_c__Wno_type_limits
=yes
8082 gl_cv_warn_c__Wno_type_limits
=no
8084 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8085 CFLAGS
="$gl_save_compiler_FLAGS"
8088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_type_limits" >&5
8089 $as_echo "$gl_cv_warn_c__Wno_type_limits" >&6; }
8090 if test "x$gl_cv_warn_c__Wno_type_limits" = x
""yes; then :
8091 as_fn_append WARN_CFLAGS
" -Wno-type-limits"
8094 # Too many warnings for now
8096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-switch" >&5
8097 $as_echo_n "checking whether C compiler handles -Wno-switch... " >&6; }
8098 if test "${gl_cv_warn_c__Wno_switch+set}" = set; then :
8099 $as_echo_n "(cached) " >&6
8102 gl_save_compiler_FLAGS
="$CFLAGS"
8103 as_fn_append CFLAGS
" $gl_unknown_warnings_are_errors -Wswitch"
8104 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8105 /* end confdefs.h. */
8115 if ac_fn_c_try_compile
"$LINENO"; then :
8116 gl_cv_warn_c__Wno_switch
=yes
8118 gl_cv_warn_c__Wno_switch
=no
8120 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8121 CFLAGS
="$gl_save_compiler_FLAGS"
8124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_switch" >&5
8125 $as_echo "$gl_cv_warn_c__Wno_switch" >&6; }
8126 if test "x$gl_cv_warn_c__Wno_switch" = x
""yes; then :
8127 as_fn_append WARN_CFLAGS
" -Wno-switch"
8130 # Too many warnings for now
8132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-unused-parameter" >&5
8133 $as_echo_n "checking whether C compiler handles -Wno-unused-parameter... " >&6; }
8134 if test "${gl_cv_warn_c__Wno_unused_parameter+set}" = set; then :
8135 $as_echo_n "(cached) " >&6
8138 gl_save_compiler_FLAGS
="$CFLAGS"
8139 as_fn_append CFLAGS
" $gl_unknown_warnings_are_errors -Wunused-parameter"
8140 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8141 /* end confdefs.h. */
8151 if ac_fn_c_try_compile
"$LINENO"; then :
8152 gl_cv_warn_c__Wno_unused_parameter
=yes
8154 gl_cv_warn_c__Wno_unused_parameter
=no
8156 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8157 CFLAGS
="$gl_save_compiler_FLAGS"
8160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_unused_parameter" >&5
8161 $as_echo "$gl_cv_warn_c__Wno_unused_parameter" >&6; }
8162 if test "x$gl_cv_warn_c__Wno_unused_parameter" = x
""yes; then :
8163 as_fn_append WARN_CFLAGS
" -Wno-unused-parameter"
8166 # Too many warnings for now
8168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-format-nonliteral" >&5
8169 $as_echo_n "checking whether C compiler handles -Wno-format-nonliteral... " >&6; }
8170 if test "${gl_cv_warn_c__Wno_format_nonliteral+set}" = set; then :
8171 $as_echo_n "(cached) " >&6
8174 gl_save_compiler_FLAGS
="$CFLAGS"
8175 as_fn_append CFLAGS
" $gl_unknown_warnings_are_errors -Wformat-nonliteral"
8176 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8177 /* end confdefs.h. */
8187 if ac_fn_c_try_compile
"$LINENO"; then :
8188 gl_cv_warn_c__Wno_format_nonliteral
=yes
8190 gl_cv_warn_c__Wno_format_nonliteral
=no
8192 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8193 CFLAGS
="$gl_save_compiler_FLAGS"
8196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_format_nonliteral" >&5
8197 $as_echo "$gl_cv_warn_c__Wno_format_nonliteral" >&6; }
8198 if test "x$gl_cv_warn_c__Wno_format_nonliteral" = x
""yes; then :
8199 as_fn_append WARN_CFLAGS
" -Wno-format-nonliteral"
8204 # In spite of excluding -Wlogical-op above, it is enabled, as of
8205 # gcc 4.5.0 20090517.
8207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-logical-op" >&5
8208 $as_echo_n "checking whether C compiler handles -Wno-logical-op... " >&6; }
8209 if test "${gl_cv_warn_c__Wno_logical_op+set}" = set; then :
8210 $as_echo_n "(cached) " >&6
8213 gl_save_compiler_FLAGS
="$CFLAGS"
8214 as_fn_append CFLAGS
" $gl_unknown_warnings_are_errors -Wlogical-op"
8215 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8216 /* end confdefs.h. */
8226 if ac_fn_c_try_compile
"$LINENO"; then :
8227 gl_cv_warn_c__Wno_logical_op
=yes
8229 gl_cv_warn_c__Wno_logical_op
=no
8231 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8232 CFLAGS
="$gl_save_compiler_FLAGS"
8235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_logical_op" >&5
8236 $as_echo "$gl_cv_warn_c__Wno_logical_op" >&6; }
8237 if test "x$gl_cv_warn_c__Wno_logical_op" = x
""yes; then :
8238 as_fn_append WARN_CFLAGS
" -Wno-logical-op"
8243 # More things that clang is unduly picky about.
8244 if test $emacs_cv_clang = yes; then
8246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-format-extra-args" >&5
8247 $as_echo_n "checking whether C compiler handles -Wno-format-extra-args... " >&6; }
8248 if test "${gl_cv_warn_c__Wno_format_extra_args+set}" = set; then :
8249 $as_echo_n "(cached) " >&6
8252 gl_save_compiler_FLAGS
="$CFLAGS"
8253 as_fn_append CFLAGS
" $gl_unknown_warnings_are_errors -Wformat-extra-args"
8254 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8255 /* end confdefs.h. */
8265 if ac_fn_c_try_compile
"$LINENO"; then :
8266 gl_cv_warn_c__Wno_format_extra_args
=yes
8268 gl_cv_warn_c__Wno_format_extra_args
=no
8270 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8271 CFLAGS
="$gl_save_compiler_FLAGS"
8274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_format_extra_args" >&5
8275 $as_echo "$gl_cv_warn_c__Wno_format_extra_args" >&6; }
8276 if test "x$gl_cv_warn_c__Wno_format_extra_args" = x
""yes; then :
8277 as_fn_append WARN_CFLAGS
" -Wno-format-extra-args"
8282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-tautological-constant-out-of-range-compare" >&5
8283 $as_echo_n "checking whether C compiler handles -Wno-tautological-constant-out-of-range-compare... " >&6; }
8284 if test "${gl_cv_warn_c__Wno_tautological_constant_out_of_range_compare+set}" = set; then :
8285 $as_echo_n "(cached) " >&6
8288 gl_save_compiler_FLAGS
="$CFLAGS"
8289 as_fn_append CFLAGS
" $gl_unknown_warnings_are_errors -Wtautological-constant-out-of-range-compare"
8290 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8291 /* end confdefs.h. */
8301 if ac_fn_c_try_compile
"$LINENO"; then :
8302 gl_cv_warn_c__Wno_tautological_constant_out_of_range_compare
=yes
8304 gl_cv_warn_c__Wno_tautological_constant_out_of_range_compare
=no
8306 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8307 CFLAGS
="$gl_save_compiler_FLAGS"
8310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_tautological_constant_out_of_range_compare" >&5
8311 $as_echo "$gl_cv_warn_c__Wno_tautological_constant_out_of_range_compare" >&6; }
8312 if test "x$gl_cv_warn_c__Wno_tautological_constant_out_of_range_compare" = x
""yes; then :
8313 as_fn_append WARN_CFLAGS
" -Wno-tautological-constant-out-of-range-compare"
8318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-unused-command-line-argument" >&5
8319 $as_echo_n "checking whether C compiler handles -Wno-unused-command-line-argument... " >&6; }
8320 if test "${gl_cv_warn_c__Wno_unused_command_line_argument+set}" = set; then :
8321 $as_echo_n "(cached) " >&6
8324 gl_save_compiler_FLAGS
="$CFLAGS"
8325 as_fn_append CFLAGS
" $gl_unknown_warnings_are_errors -Wunused-command-line-argument"
8326 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8327 /* end confdefs.h. */
8337 if ac_fn_c_try_compile
"$LINENO"; then :
8338 gl_cv_warn_c__Wno_unused_command_line_argument
=yes
8340 gl_cv_warn_c__Wno_unused_command_line_argument
=no
8342 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8343 CFLAGS
="$gl_save_compiler_FLAGS"
8346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_unused_command_line_argument" >&5
8347 $as_echo "$gl_cv_warn_c__Wno_unused_command_line_argument" >&6; }
8348 if test "x$gl_cv_warn_c__Wno_unused_command_line_argument" = x
""yes; then :
8349 as_fn_append WARN_CFLAGS
" -Wno-unused-command-line-argument"
8354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-unused-value" >&5
8355 $as_echo_n "checking whether C compiler handles -Wno-unused-value... " >&6; }
8356 if test "${gl_cv_warn_c__Wno_unused_value+set}" = set; then :
8357 $as_echo_n "(cached) " >&6
8360 gl_save_compiler_FLAGS
="$CFLAGS"
8361 as_fn_append CFLAGS
" $gl_unknown_warnings_are_errors -Wunused-value"
8362 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8363 /* end confdefs.h. */
8373 if ac_fn_c_try_compile
"$LINENO"; then :
8374 gl_cv_warn_c__Wno_unused_value
=yes
8376 gl_cv_warn_c__Wno_unused_value
=no
8378 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8379 CFLAGS
="$gl_save_compiler_FLAGS"
8382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_unused_value" >&5
8383 $as_echo "$gl_cv_warn_c__Wno_unused_value" >&6; }
8384 if test "x$gl_cv_warn_c__Wno_unused_value" = x
""yes; then :
8385 as_fn_append WARN_CFLAGS
" -Wno-unused-value"
8392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -fdiagnostics-show-option" >&5
8393 $as_echo_n "checking whether C compiler handles -fdiagnostics-show-option... " >&6; }
8394 if test "${gl_cv_warn_c__fdiagnostics_show_option+set}" = set; then :
8395 $as_echo_n "(cached) " >&6
8398 gl_save_compiler_FLAGS
="$CFLAGS"
8399 as_fn_append CFLAGS
" $gl_unknown_warnings_are_errors -fdiagnostics-show-option"
8400 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8401 /* end confdefs.h. */
8411 if ac_fn_c_try_compile
"$LINENO"; then :
8412 gl_cv_warn_c__fdiagnostics_show_option
=yes
8414 gl_cv_warn_c__fdiagnostics_show_option
=no
8416 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8417 CFLAGS
="$gl_save_compiler_FLAGS"
8420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__fdiagnostics_show_option" >&5
8421 $as_echo "$gl_cv_warn_c__fdiagnostics_show_option" >&6; }
8422 if test "x$gl_cv_warn_c__fdiagnostics_show_option" = x
""yes; then :
8423 as_fn_append WARN_CFLAGS
" -fdiagnostics-show-option"
8428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -funit-at-a-time" >&5
8429 $as_echo_n "checking whether C compiler handles -funit-at-a-time... " >&6; }
8430 if test "${gl_cv_warn_c__funit_at_a_time+set}" = set; then :
8431 $as_echo_n "(cached) " >&6
8434 gl_save_compiler_FLAGS
="$CFLAGS"
8435 as_fn_append CFLAGS
" $gl_unknown_warnings_are_errors -funit-at-a-time"
8436 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8437 /* end confdefs.h. */
8447 if ac_fn_c_try_compile
"$LINENO"; then :
8448 gl_cv_warn_c__funit_at_a_time
=yes
8450 gl_cv_warn_c__funit_at_a_time
=no
8452 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8453 CFLAGS
="$gl_save_compiler_FLAGS"
8456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__funit_at_a_time" >&5
8457 $as_echo "$gl_cv_warn_c__funit_at_a_time" >&6; }
8458 if test "x$gl_cv_warn_c__funit_at_a_time" = x
""yes; then :
8459 as_fn_append WARN_CFLAGS
" -funit-at-a-time"
8465 $as_echo "#define lint 1" >>confdefs.h
8469 $as_echo "#define GNULIB_PORTCHECK 1" >>confdefs.h
8472 # We use a slightly smaller set of warning options for lib/.
8473 # Remove the following and save the result in GNULIB_WARN_CFLAGS.
8475 nw
="$nw -Wunused-macros"
8479 set x
$WARN_CFLAGS; shift
8483 *" $gl_warn_item "*)
8486 gl_warn_set
="$gl_warn_set $gl_warn_item"
8490 GNULIB_WARN_CFLAGS
=$gl_warn_set
8500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works for files in the same directory" >&5
8501 $as_echo_n "checking whether ln -s works for files in the same directory... " >&6; }
8502 rm -f conf$$ conf$$.
file
8504 LN_S_FILEONLY
='cp -p'
8506 if (echo >conf$$.
file) 2>/dev
/null
; then
8507 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
8508 LN_S_FILEONLY
='ln -s'
8509 elif ln conf$$.
file conf$$
2>/dev
/null
; then
8514 rm -f conf$$ conf$$.
file
8516 if test "$LN_S_FILEONLY" = "ln -s"; then
8517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8518 $as_echo "yes" >&6; }
8520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S_FILEONLY" >&5
8521 $as_echo "no, using $LN_S_FILEONLY" >&6; }
8527 if test "$opsys" = "mingw32"; then
8531 # Extract the first word of "install-info", so it can be a program name with args.
8532 set dummy install-info
; ac_word
=$2
8533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8534 $as_echo_n "checking for $ac_word... " >&6; }
8535 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
8536 $as_echo_n "(cached) " >&6
8538 case $INSTALL_INFO in
8540 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
8543 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8544 for as_dir
in $PATH$PATH_SEPARATOR/usr
/sbin
$PATH_SEPARATOR/sbin
8547 test -z "$as_dir" && as_dir
=.
8548 for ac_exec_ext
in '' $ac_executable_extensions; do
8549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8550 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
8551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8558 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
8562 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
8563 if test -n "$INSTALL_INFO"; then
8564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
8565 $as_echo "$INSTALL_INFO" >&6; }
8567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8568 $as_echo "no" >&6; }
8572 # Extract the first word of "gzip", so it can be a program name with args.
8573 set dummy
gzip; ac_word
=$2
8574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8575 $as_echo_n "checking for $ac_word... " >&6; }
8576 if test "${ac_cv_path_GZIP_PROG+set}" = set; then :
8577 $as_echo_n "(cached) " >&6
8581 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
8584 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8588 test -z "$as_dir" && as_dir
=.
8589 for ac_exec_ext
in '' $ac_executable_extensions; do
8590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8591 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
8592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8602 GZIP_PROG
=$ac_cv_path_GZIP_PROG
8603 if test -n "$GZIP_PROG"; then
8604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
8605 $as_echo "$GZIP_PROG" >&6; }
8607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8608 $as_echo "no" >&6; }
8613 if test $opsys = gnu-linux
; then
8614 # Extract the first word of "paxctl", so it can be a program name with args.
8615 set dummy paxctl
; ac_word
=$2
8616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8617 $as_echo_n "checking for $ac_word... " >&6; }
8618 if test "${ac_cv_path_PAXCTL+set}" = set; then :
8619 $as_echo_n "(cached) " >&6
8623 ac_cv_path_PAXCTL
="$PAXCTL" # Let the user override the test with a path.
8626 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8627 for as_dir
in $PATH$PATH_SEPARATOR/sbin
$PATH_SEPARATOR/usr
/sbin
8630 test -z "$as_dir" && as_dir
=.
8631 for ac_exec_ext
in '' $ac_executable_extensions; do
8632 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8633 ac_cv_path_PAXCTL
="$as_dir/$ac_word$ac_exec_ext"
8634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8644 PAXCTL
=$ac_cv_path_PAXCTL
8645 if test -n "$PAXCTL"; then
8646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PAXCTL" >&5
8647 $as_echo "$PAXCTL" >&6; }
8649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8650 $as_echo "no" >&6; }
8654 if test "X$PAXCTL" != X
; then
8655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether binaries have a PT_PAX_FLAGS header" >&5
8656 $as_echo_n "checking whether binaries have a PT_PAX_FLAGS header... " >&6; }
8657 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8658 /* end confdefs.h. */
8668 if ac_fn_c_try_link
"$LINENO"; then :
8669 if $PAXCTL -v conftest
$EXEEXT >/dev
/null
2>&1; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8670 $as_echo "yes" >&6; }
8671 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8672 $as_echo "no" >&6; }; PAXCTL
=""; fi
8674 rm -f core conftest.err conftest.
$ac_objext \
8675 conftest
$ac_exeext conftest.
$ac_ext
8679 ## Need makeinfo >= 4.7 (?) to build the manuals.
8680 # Extract the first word of "makeinfo", so it can be a program name with args.
8681 set dummy makeinfo
; ac_word
=$2
8682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8683 $as_echo_n "checking for $ac_word... " >&6; }
8684 if test "${ac_cv_path_MAKEINFO+set}" = set; then :
8685 $as_echo_n "(cached) " >&6
8689 ac_cv_path_MAKEINFO
="$MAKEINFO" # Let the user override the test with a path.
8692 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8696 test -z "$as_dir" && as_dir
=.
8697 for ac_exec_ext
in '' $ac_executable_extensions; do
8698 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8699 ac_cv_path_MAKEINFO
="$as_dir/$ac_word$ac_exec_ext"
8700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8707 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO
="no"
8711 MAKEINFO
=$ac_cv_path_MAKEINFO
8712 if test -n "$MAKEINFO"; then
8713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8714 $as_echo "$MAKEINFO" >&6; }
8716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8717 $as_echo "no" >&6; }
8721 if test "$MAKEINFO" != "no"; then
8723 $MAKEINFO --version 2> /dev/null |
8724 $EGREP 'texinfo[^0-9]*([1-4][0-9]+|[5-9]|4\.[7-9]|4\.[1-6][0-9]+)'
8730 ## Makeinfo is unusual. For a released Emacs, the manuals are
8731 ## pre-built, and not deleted by the normal clean rules. makeinfo is
8732 ## therefore in the category of "special tools" not normally required, which
8733 ## configure does not have to check for (eg autoconf itself).
8734 ## In a Bazaar checkout on the other hand, the manuals are not included.
8735 ## So makeinfo is a requirement to build from Bazaar, and configure
8736 ## should test for it as it does for any other build requirement.
8737 ## We use the presence of $srcdir/info/emacs to distinguish a release,
8738 ## with pre-built manuals, from a Bazaar checkout.
8741 if test "$MAKEINFO" = "no"; then
8743 if test "x${with_makeinfo}" = "xno"; then
8745 elif test ! -e "$srcdir/info/emacs" && test ! -e "$srcdir/info/emacs.info"; then
8746 as_fn_error
"You do not seem to have makeinfo >= 4.7, and your
8747 source tree does not seem to have pre-built manuals in the \`info' directory.
8748 Either install a suitable version of makeinfo, or re-run configure
8749 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
8755 INFO_OPTS
=--no-split
8759 if test $opsys = mingw32
; then
8760 DOCMISC_W32
=efaq-w32
8767 if test x
$GCC = xyes
; then
8768 test "x$GCC_LINK_TEST_OPTIONS" != x
&& \
8769 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
8771 test "x$NON_GCC_LINK_TEST_OPTIONS" != x
&& \
8772 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
8776 late_LDFLAGS
=$LDFLAGS
8777 if test x
$GCC = xyes
; then
8778 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
8780 LDFLAGS
="$LDFLAGS -znocombreloc"
8783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
8784 $as_echo_n "checking for -znocombreloc... " >&6; }
8785 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8786 /* end confdefs.h. */
8796 if ac_fn_c_try_link
"$LINENO"; then :
8797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8798 $as_echo "yes" >&6; }
8800 LDFLAGS
=$late_LDFLAGS
8801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8802 $as_echo "no" >&6; }
8804 rm -f core conftest.err conftest.
$ac_objext \
8805 conftest
$ac_exeext conftest.
$ac_ext
8808 test "x$CANNOT_DUMP" = "x" && CANNOT_DUMP
=no
8810 your-opsys-here
) CANNOT_DUMP
=yes ;;
8813 test "$CANNOT_DUMP" = "yes" && \
8815 $as_echo "#define CANNOT_DUMP 1" >>confdefs.h
8821 UNEXEC_OBJ
=unexelf.o
8823 # MSDOS uses unexcoff.o
8825 UNEXEC_OBJ
=unexaix.o
8831 UNEXEC_OBJ
=unexmacosx.o
8834 UNEXEC_OBJ
=unexhp9k800.o
8837 UNEXEC_OBJ
=unexw32.o
8840 # Use the Solaris dldump() function, called from unexsol.c, to dump
8841 # emacs, instead of the generic ELF dump code found in unexelf.c.
8842 # The resulting binary has a complete symbol table, and is better
8843 # for debugging and other observability tools (debuggers, pstack, etc).
8845 # If you encounter a problem using dldump(), please consider sending
8846 # a message to the OpenSolaris tools-linking mailing list:
8847 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
8849 # It is likely that dldump() works with older Solaris too, but this has
8850 # not been tested, so for now this change is for Solaris 10 or newer.
8851 UNEXEC_OBJ
=unexsol.o
8858 ## Let `ld' find image libs and similar things in /usr/local/lib.
8859 ## The system compiler, GCC, has apparently been modified to not
8860 ## look there, contrary to what a stock GCC would do.
8861 ### It's not our place to do this. See bug#10313#17.
8862 ### LD_SWITCH_SYSTEM=-L/usr/local/lib
8867 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
8868 case $host_cpu in mips
*) LD_SWITCH_SYSTEM
="-G 0";; esac
8872 ### It's not our place to do this. See bug#10313#17.
8873 ### LD_SWITCH_SYSTEM="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
8878 ## Han Boetes <han@boetes.org> says this is necessary,
8879 ## otherwise Emacs dumps core on elf systems.
8880 LD_SWITCH_SYSTEM
="-Z"
8885 ac_link
="$ac_link $LD_SWITCH_SYSTEM"
8887 ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_RPATH,
8888 ## which has not been defined yet. When this was handled with cpp,
8889 ## it was expanded to null when configure sourced the s/*.h file.
8890 ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
8891 ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
8892 ## (or somesuch), but because it is supposed to go at the _front_
8893 ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
8894 ## Compare with the gnu-linux case below, which added to the end
8895 ## of LD_SWITCH_SYSTEM, and so can instead go at the front of
8896 ## LD_SWITCH_SYSTEM_TEMACS.
8899 LD_SWITCH_SYSTEM
="\$(LD_SWITCH_X_SITE_RPATH) $LD_SWITCH_SYSTEM" ;;
8906 ac_fn_c_check_decl
"$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
8907 if test "x$ac_cv_have_decl___ELF__" = x
""yes; then :
8911 if test "$ac_cv_have_decl___ELF__" = "yes"; then
8912 ## With ELF, make sure that all common symbols get allocated to in the
8913 ## data section. Otherwise, the dump of temacs may miss variables in
8914 ## the shared library that have been initialized. For example, with
8915 ## GNU libc, __malloc_initialized would normally be resolved to the
8916 ## shared library's .bss section, which is fatal.
8917 if test "x$GCC" = "xyes"; then
8918 C_SWITCH_MACHINE
="-fno-common"
8920 as_fn_error
"What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
8923 UNEXEC_OBJ
=unexalpha.o
8932 ## Some programs in src produce warnings saying certain subprograms
8933 ## are too complex and need a MAXMEM value greater than 2000 for
8934 ## additional optimization. --nils@exp-math.uni-essen.de
8935 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
8936 C_SWITCH_SYSTEM
="-ma -qmaxmem=4000"
8937 test "$opsys" = "mingw32" && C_SWITCH_SYSTEM
="-mtune=pentium4"
8938 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
8939 ## It is redundant in glibc2, since we define _GNU_SOURCE.
8945 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
8946 aix4-2
) LIBS_SYSTEM
="-lrts -lIM -liconv" ;;
8948 freebsd|dragonfly
) LIBS_SYSTEM
="-lutil" ;;
8950 hpux
*) LIBS_SYSTEM
="-l:libdld.sl" ;;
8952 sol2
*) LIBS_SYSTEM
="-lsocket -lnsl" ;;
8954 ## Motif needs -lgen.
8955 unixware
) LIBS_SYSTEM
="-lsocket -lnsl -lelf -lgen" ;;
8960 ### Make sure subsequent tests use flags consistent with the build flags.
8962 if test x
"${OVERRIDE_CPPFLAGS}" != x
; then
8963 CPPFLAGS
="${OVERRIDE_CPPFLAGS}"
8965 CPPFLAGS
="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
8968 # Suppress obsolescent Autoconf test for size_t; Emacs assumes C89 or better.
8970 # Likewise for obsolescent test for uid_t, gid_t; Emacs assumes them.
8975 SYSTEM_TYPE
=`echo $opsys | sed -e 's/[0-9].*//' -e 's|-|/|'`
8982 ## Adding -lm confuses the dynamic linker, so omit it.
8985 freebsd | dragonfly
)
8986 SYSTEM_TYPE
=berkeley-unix
8988 gnu-linux | gnu-kfreebsd
)
8990 hpux10-20 | hpux11
)
8994 SYSTEM_TYPE
=windows-nt
8997 SYSTEM_TYPE
=berkeley-unix
9001 SYSTEM_TYPE
=usg-unix-v
9008 cat >>confdefs.h
<<_ACEOF
9009 #define SYSTEM_TYPE "$SYSTEM_TYPE"
9014 pre_PKG_CONFIG_CFLAGS
=$CFLAGS
9015 pre_PKG_CONFIG_LIBS
=$LIBS
9017 # Extract the first word of "pkg-config", so it can be a program name with args.
9018 set dummy pkg-config
; ac_word
=$2
9019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9020 $as_echo_n "checking for $ac_word... " >&6; }
9021 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9022 $as_echo_n "(cached) " >&6
9026 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
9029 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9033 test -z "$as_dir" && as_dir
=.
9034 for ac_exec_ext
in '' $ac_executable_extensions; do
9035 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9036 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
9037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9044 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
9048 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
9049 if test -n "$PKG_CONFIG"; then
9050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9051 $as_echo "$PKG_CONFIG" >&6; }
9053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9054 $as_echo "no" >&6; }
9062 if test "${with_sound}" != "no"; then
9063 # Sound support for GNU/Linux, the free BSDs, and MinGW.
9064 for ac_header
in machine
/soundcard.h sys
/soundcard.h soundcard.h
9066 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9067 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "
9069 #define WIN32_LEAN_AND_MEAN
9070 #include <windows.h>
9074 eval as_val
=\$
$as_ac_Header
9075 if test "x$as_val" = x
""yes; then :
9076 cat >>confdefs.h
<<_ACEOF
9077 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9079 have_sound_header
=yes
9084 test "${with_sound}" = "oss" && test "${have_sound_header}" != "yes" && \
9085 as_fn_error
"OSS sound support requested but not found." "$LINENO" 5
9087 if test "${with_sound}" = "bsd-ossaudio" ||
test "${with_sound}" = "yes"; then
9088 # Emulation library used on NetBSD.
9089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
9090 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
9091 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
9092 $as_echo_n "(cached) " >&6
9094 ac_check_lib_save_LIBS
=$LIBS
9095 LIBS
="-lossaudio $LIBS"
9096 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9097 /* end confdefs.h. */
9099 /* Override any GCC internal prototype to avoid an error.
9100 Use char because int might match the return type of a GCC
9101 builtin and then its argument prototype would still apply. */
9109 return _oss_ioctl ();
9114 if ac_fn_c_try_link
"$LINENO"; then :
9115 ac_cv_lib_ossaudio__oss_ioctl
=yes
9117 ac_cv_lib_ossaudio__oss_ioctl
=no
9119 rm -f core conftest.err conftest.
$ac_objext \
9120 conftest
$ac_exeext conftest.
$ac_ext
9121 LIBS
=$ac_check_lib_save_LIBS
9123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
9124 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
9125 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x
""yes; then :
9131 test "${with_sound}" = "bsd-ossaudio" && test -z "$LIBSOUND" && \
9132 as_fn_error
"bsd-ossaudio sound support requested but not found." "$LINENO" 5
9136 if test "${with_sound}" = "alsa" ||
test "${with_sound}" = "yes"; then
9138 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
9142 if test "$PKG_CONFIG" = "no" ; then
9145 PKG_CONFIG_MIN_VERSION
=0.9.0
9146 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
9148 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
9150 if "$PKG_CONFIG" --exists "$ALSA_MODULES" 2>&5 &&
9151 ALSA_CFLAGS
=`"$PKG_CONFIG" --cflags "$ALSA_MODULES" 2>&5` &&
9152 ALSA_LIBS
=`"$PKG_CONFIG" --libs "$ALSA_MODULES" 2>&5`; then
9159 ALSA_CFLAGS
=`$as_echo "$ALSA_CFLAGS" | sed -e "$edit_cflags"`
9160 ALSA_LIBS
=`$as_echo "$ALSA_LIBS" | sed -e 's,///*,/,g'`
9161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$ALSA_CFLAGS' LIBS='$ALSA_LIBS'" >&5
9162 $as_echo "yes CFLAGS='$ALSA_CFLAGS' LIBS='$ALSA_LIBS'" >&6; }
9165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9166 $as_echo "no" >&6; }
9169 ## If we have a custom action on failure, don't print errors, but
9170 ## do set a variable so people can do so. Do it in a subshell
9171 ## to capture any diagnostics in invoking pkg-config.
9172 ALSA_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "$ALSA_MODULES") 2>&1`
9179 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9180 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9184 if test $succeeded = yes; then
9190 if test $HAVE_ALSA = yes; then
9191 SAVE_CFLAGS
="$CFLAGS"
9193 CFLAGS
="$ALSA_CFLAGS $CFLAGS"
9194 LIBS
="$ALSA_LIBS $LIBS"
9195 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9196 /* end confdefs.h. */
9197 #include <asoundlib.h>
9201 snd_lib_error_set_handler (0);
9206 if ac_fn_c_try_compile
"$LINENO"; then :
9207 emacs_alsa_normal
=yes
9209 emacs_alsa_normal
=no
9211 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9212 if test "$emacs_alsa_normal" != yes; then
9213 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9214 /* end confdefs.h. */
9215 #include <alsa/asoundlib.h>
9219 snd_lib_error_set_handler (0);
9224 if ac_fn_c_try_compile
"$LINENO"; then :
9225 emacs_alsa_subdir
=yes
9227 emacs_alsa_subdir
=no
9229 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9230 if test "$emacs_alsa_subdir" != yes; then
9231 as_fn_error
"pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
9233 ALSA_CFLAGS
="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
9236 CFLAGS
="$SAVE_CFLAGS"
9238 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
9239 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
9241 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
9243 elif test "${with_sound}" = "alsa"; then
9244 as_fn_error
"ALSA sound support requested but not found." "$LINENO" 5
9247 if test x
$have_sound_header = xyes ||
test $HAVE_ALSA = yes; then
9249 gnu-linux|freebsd|netbsd|mingw32
)
9251 $as_echo "#define HAVE_SOUND 1" >>confdefs.h
9264 for ac_header
in $ac_header_list
9266 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9267 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9269 eval as_val
=\$
$as_ac_Header
9270 if test "x$as_val" = x
""yes; then :
9271 cat >>confdefs.h
<<_ACEOF
9272 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
9298 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
9299 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9300 /* end confdefs.h. */
9301 #include <sys/personality.h>
9305 personality (PER_LINUX32)
9310 if ac_fn_c_try_compile
"$LINENO"; then :
9311 emacs_cv_personality_linux32
=yes
9313 emacs_cv_personality_linux32
=no
9315 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
9317 $as_echo "$emacs_cv_personality_linux32" >&6; }
9319 if test $emacs_cv_personality_linux32 = yes; then
9321 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
9325 for ac_header
in term.h
9327 ac_fn_c_check_header_preproc
"$LINENO" "term.h" "ac_cv_header_term_h"
9328 if test "x$ac_cv_header_term_h" = x
""yes; then :
9329 cat >>confdefs.h
<<_ACEOF
9330 #define HAVE_TERM_H 1
9337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
9338 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
9339 if test "${ac_cv_header_time+set}" = set; then :
9340 $as_echo_n "(cached) " >&6
9342 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9343 /* end confdefs.h. */
9344 #include <sys/types.h>
9345 #include <sys/time.h>
9351 if ((struct tm *) 0)
9357 if ac_fn_c_try_compile
"$LINENO"; then :
9358 ac_cv_header_time
=yes
9360 ac_cv_header_time
=no
9362 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
9365 $as_echo "$ac_cv_header_time" >&6; }
9366 if test $ac_cv_header_time = yes; then
9368 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
9372 ac_fn_c_check_decl
"$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "#include <signal.h>
9375 if test "x$ac_cv_have_decl_sys_siglist" = x
""yes; then :
9381 cat >>confdefs.h
<<_ACEOF
9382 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
9385 if test $ac_cv_have_decl_sys_siglist != yes; then
9386 # For Tru64, at least:
9387 ac_fn_c_check_decl
"$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "#include <signal.h>
9390 if test "x$ac_cv_have_decl___sys_siglist" = x
""yes; then :
9396 cat >>confdefs.h
<<_ACEOF
9397 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
9401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
9402 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
9403 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
9404 $as_echo_n "(cached) " >&6
9406 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9407 /* end confdefs.h. */
9408 #include <sys/types.h>
9409 #include <sys/wait.h>
9411 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
9414 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9422 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9427 if ac_fn_c_try_compile
"$LINENO"; then :
9428 ac_cv_header_sys_wait_h
=yes
9430 ac_cv_header_sys_wait_h
=no
9432 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
9435 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
9436 if test $ac_cv_header_sys_wait_h = yes; then
9438 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
9446 for ac_header
in net
/if.h
9448 ac_fn_c_check_header_compile
"$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
9449 #if HAVE_SYS_SOCKET_H
9450 #include <sys/socket.h>
9453 if test "x$ac_cv_header_net_if_h" = x
""yes; then :
9454 cat >>confdefs.h
<<_ACEOF
9455 #define HAVE_NET_IF_H 1
9462 for ac_header
in ifaddrs.h
9464 ac_fn_c_check_header_compile
"$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default
9465 #if HAVE_SYS_SOCKET_H
9466 #include <sys/socket.h>
9469 if test "x$ac_cv_header_ifaddrs_h" = x
""yes; then :
9470 cat >>confdefs.h
<<_ACEOF
9471 #define HAVE_IFADDRS_H 1
9478 for ac_header
in net
/if_dl.h
9480 ac_fn_c_check_header_compile
"$LINENO" "net/if_dl.h" "ac_cv_header_net_if_dl_h" "$ac_includes_default
9481 #if HAVE_SYS_SOCKET_H
9482 #include <sys/socket.h>
9485 if test "x$ac_cv_header_net_if_dl_h" = x
""yes; then :
9486 cat >>confdefs.h
<<_ACEOF
9487 #define HAVE_NET_IF_DL_H 1
9495 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
9496 #if HAVE_SYS_SOCKET_H
9497 #include <sys/socket.h>
9503 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x
""yes; then :
9505 cat >>confdefs.h
<<_ACEOF
9506 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
9511 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
9512 #if HAVE_SYS_SOCKET_H
9513 #include <sys/socket.h>
9519 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x
""yes; then :
9521 cat >>confdefs.h
<<_ACEOF
9522 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
9527 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
9528 #if HAVE_SYS_SOCKET_H
9529 #include <sys/socket.h>
9535 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x
""yes; then :
9537 cat >>confdefs.h
<<_ACEOF
9538 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
9543 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
9544 #if HAVE_SYS_SOCKET_H
9545 #include <sys/socket.h>
9551 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x
""yes; then :
9553 cat >>confdefs.h
<<_ACEOF
9554 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
9559 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
9560 #if HAVE_SYS_SOCKET_H
9561 #include <sys/socket.h>
9567 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x
""yes; then :
9569 cat >>confdefs.h
<<_ACEOF
9570 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
9575 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_addr.sa_len" "ac_cv_member_struct_ifreq_ifr_addr_sa_len" "$ac_includes_default
9576 #if HAVE_SYS_SOCKET_H
9577 #include <sys/socket.h>
9583 if test "x$ac_cv_member_struct_ifreq_ifr_addr_sa_len" = x
""yes; then :
9585 cat >>confdefs.h
<<_ACEOF
9586 #define HAVE_STRUCT_IFREQ_IFR_ADDR_SA_LEN 1
9598 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
9599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
9600 $as_echo_n "checking whether we are using GNU Make... " >&6; }
9602 testval
=`${MAKE-make} --version 2>/dev/null | grep 'GNU Make'`
9603 if test "x$testval" != x
; then
9606 ac_enable_autodepend
=no
9608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
9609 $as_echo "$HAVE_GNU_MAKE" >&6; }
9610 if test $HAVE_GNU_MAKE = yes; then
9611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
9612 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
9613 SAVE_CFLAGS
="$CFLAGS"
9614 CFLAGS
="$CFLAGS -MMD -MF deps.d -MP"
9615 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9616 /* end confdefs.h. */
9626 if ac_fn_c_try_compile
"$LINENO"; then :
9629 ac_enable_autodepend
=no
9631 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9632 CFLAGS
="$SAVE_CFLAGS"
9633 test -f deps.d || ac_enable_autodepend
=no
9635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
9636 $as_echo "$ac_enable_autodepend" >&6; }
9638 if test $ac_enable_autodepend = yes; then
9639 DEPFLAGS
='-MMD -MF ${DEPDIR}/$*.d -MP'
9640 ## MKDIR_P is documented (see AC_PROG_MKDIR_P) to be parallel-safe.
9641 MKDEPDIR
='${MKDIR_P} ${DEPDIR}'
9642 deps_frag
=autodeps.mk
9645 deps_frag
=$srcdir/src
/$deps_frag
9651 lisp_frag
=$srcdir/src
/lisp.mk
9655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
9656 $as_echo_n "checking for long file names... " >&6; }
9657 if test "${ac_cv_sys_long_file_names+set}" = set; then :
9658 $as_echo_n "(cached) " >&6
9660 ac_cv_sys_long_file_names
=yes
9661 # Test for long file names in all the places we know might matter:
9662 # . the current directory, where building will happen
9663 # $prefix/lib where we will be installing things
9664 # $exec_prefix/lib likewise
9665 # $TMPDIR if set, where it might want to write temporary files
9666 # /tmp where it might want to write temporary files
9669 for ac_dir
in .
"$TMPDIR" /tmp
/var
/tmp
/usr
/tmp
"$prefix/lib" "$exec_prefix/lib"; do
9670 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9671 # in the usual case where exec_prefix is '${prefix}'.
9673 . |
/* | ?
:[\\/]*) ;; #(
9676 test -w "$ac_dir/." ||
continue # It is less confusing to not echo anything here.
9677 ac_xdir
=$ac_dir/cf$$
9678 (umask 077 && mkdir
"$ac_xdir" 2>/dev
/null
) ||
continue
9679 ac_tf1
=$ac_xdir/conftest9012345
9680 ac_tf2
=$ac_xdir/conftest9012346
9681 touch "$ac_tf1" 2>/dev
/null
&& test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9682 ac_cv_sys_long_file_names
=no
9683 rm -f -r "$ac_xdir" 2>/dev
/null
9684 test $ac_cv_sys_long_file_names = no
&& break
9687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
9688 $as_echo "$ac_cv_sys_long_file_names" >&6; }
9689 if test $ac_cv_sys_long_file_names = yes; then
9691 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
9696 #### Choose a window system.
9698 ## We leave window_system equal to none if
9699 ## we end up building without one. Any new window system should
9700 ## set window_system to an appropriate value and add objects to
9701 ## window-system-specific substs.
9704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
9705 $as_echo_n "checking for X... " >&6; }
9708 # Check whether --with-x was given.
9709 if test "${with_x+set}" = set; then :
9713 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9714 if test "x$with_x" = xno
; then
9715 # The user explicitly disabled X.
9718 case $x_includes,$x_libraries in #(
9719 *\'*) as_fn_error
"cannot use X directory names containing '" "$LINENO" 5;; #(
9720 *,NONE | NONE
,*) if test "${ac_cv_have_x+set}" = set; then :
9721 $as_echo_n "(cached) " >&6
9723 # One or both of the vars are not set, and there is no cached value.
9724 ac_x_includes
=no ac_x_libraries
=no
9725 rm -f -r conftest.dir
9726 if mkdir conftest.dir
; then
9728 cat >Imakefile
<<'_ACEOF'
9730 @echo incroot='${INCROOT}'
9732 @echo usrlibdir='${USRLIBDIR}'
9734 @echo libdir='${LIBDIR}'
9736 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
9737 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9738 for ac_var
in incroot usrlibdir libdir
; do
9739 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9741 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9742 for ac_extension
in a so sl dylib la dll
; do
9743 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9744 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9745 ac_im_usrlibdir
=$ac_im_libdir; break
9748 # Screen out bogus values from the imake configuration. They are
9749 # bogus both because they are the default anyway, and because
9750 # using them would break gcc on systems where it needs fixed includes.
9751 case $ac_im_incroot in
9752 /usr
/include
) ac_x_includes
= ;;
9753 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
9755 case $ac_im_usrlibdir in
9756 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
9757 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
9761 rm -f -r conftest.dir
9764 # Standard set of common directories for X headers.
9765 # Check X11 before X11Rn because it is often a symlink to the current release.
9779 /usr/local/X11/include
9780 /usr/local/X11R7/include
9781 /usr/local/X11R6/include
9782 /usr/local/X11R5/include
9783 /usr/local/X11R4/include
9785 /usr/local/include/X11
9786 /usr/local/include/X11R7
9787 /usr/local/include/X11R6
9788 /usr/local/include/X11R5
9789 /usr/local/include/X11R4
9793 /usr/XFree86/include/X11
9797 /usr/unsupported/include
9799 /usr/local/x11r5/include
9800 /usr/lpp/Xamples/include
9802 /usr/openwin/include
9803 /usr/openwin/share/include'
9805 if test "$ac_x_includes" = no
; then
9806 # Guess where to find include files, by looking for Xlib.h.
9807 # First, try using that file with no special directory specified.
9808 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9809 /* end confdefs.h. */
9810 #include <X11/Xlib.h>
9812 if ac_fn_c_try_cpp
"$LINENO"; then :
9813 # We can compile using X headers with no special include directory.
9816 for ac_dir
in $ac_x_header_dirs; do
9817 if test -r "$ac_dir/X11/Xlib.h"; then
9818 ac_x_includes
=$ac_dir
9823 rm -f conftest.err conftest.
$ac_ext
9824 fi # $ac_x_includes = no
9826 if test "$ac_x_libraries" = no
; then
9827 # Check for the libraries.
9828 # See if we find them without any special options.
9829 # Don't add to $LIBS permanently.
9832 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9833 /* end confdefs.h. */
9834 #include <X11/Xlib.h>
9843 if ac_fn_c_try_link
"$LINENO"; then :
9845 # We can link X programs with no special library path.
9849 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9851 # Don't even attempt the hair of trying to link an X program!
9852 for ac_extension
in a so sl dylib la dll
; do
9853 if test -r "$ac_dir/libX11.$ac_extension"; then
9854 ac_x_libraries
=$ac_dir
9860 rm -f core conftest.err conftest.
$ac_objext \
9861 conftest
$ac_exeext conftest.
$ac_ext
9862 fi # $ac_x_libraries = no
9864 case $ac_x_includes,$ac_x_libraries in #(
9866 # Didn't find X, or a directory has "'" in its name.
9867 ac_cv_have_x
="have_x=no";; #(
9869 # Record where we found X for the cache.
9870 ac_cv_have_x
="have_x=yes\
9871 ac_x_includes='$ac_x_includes'\
9872 ac_x_libraries='$ac_x_libraries'"
9878 eval "$ac_cv_have_x"
9881 if test "$have_x" != yes; then
9882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
9883 $as_echo "$have_x" >&6; }
9886 # If each of the values was on the command line, it overrides each guess.
9887 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
9888 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
9889 # Update the cache value to reflect the command line values.
9890 ac_cv_have_x
="have_x=yes\
9891 ac_x_includes='$x_includes'\
9892 ac_x_libraries='$x_libraries'"
9893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
9894 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
9897 if test "$no_x" != yes; then
9901 LD_SWITCH_X_SITE_RPATH
=
9902 if test "${x_libraries}" != NONE
; then
9903 if test -n "${x_libraries}"; then
9904 LD_SWITCH_X_SITE
=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9905 LD_SWITCH_X_SITE_RPATH
=-Wl,-rpath,`echo ${x_libraries} | sed -e "s/:/ -Wl,-rpath,/g"`
9907 x_default_search_path
=""
9908 x_search_path
=${x_libraries}
9909 if test -z "${x_search_path}"; then
9910 x_search_path
=/usr
/lib
9912 for x_library
in `echo ${x_search_path}: | \
9913 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9915 ${x_library}/X11/%L/%T/%N%C%S:\
9916 ${x_library}/X11/%l/%T/%N%C%S:\
9917 ${x_library}/X11/%T/%N%C%S:\
9918 ${x_library}/X11/%L/%T/%N%S:\
9919 ${x_library}/X11/%l/%T/%N%S:\
9920 ${x_library}/X11/%T/%N%S"
9921 if test x
"${x_default_search_path}" = x
; then
9922 x_default_search_path
=${x_search_path}
9924 x_default_search_path
="${x_search_path}:${x_default_search_path}"
9930 if test "${x_includes}" != NONE
&& test -n "${x_includes}"; then
9931 C_SWITCH_X_SITE
="$isystem"`echo ${x_includes} | sed -e "s/:/ $isystem/g"`
9934 if test x
"${x_includes}" = x
; then
9935 bitmapdir
=/usr
/include
/X11
/bitmaps
9937 # accumulate include directories that have X11 bitmap subdirectories
9939 for bmd
in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9940 if test -d "${bmd}/X11/bitmaps"; then
9941 bmd_acc
="${bmd_acc}:${bmd}/X11/bitmaps"
9943 if test -d "${bmd}/bitmaps"; then
9944 bmd_acc
="${bmd_acc}:${bmd}/bitmaps"
9947 if test ${bmd_acc} != "dummyval"; then
9948 bitmapdir
=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9955 tmp_CPPFLAGS
="$CPPFLAGS"
9956 tmp_CFLAGS
="$CFLAGS"
9957 CPPFLAGS
="$CPPFLAGS -x objective-c"
9958 CFLAGS
="$CFLAGS -x objective-c"
9961 if test "${with_ns}" != no
; then
9962 if test "${opsys}" = darwin
; then
9964 ns_appdir
=`pwd`/nextstep
/Emacs.app
9965 ns_appbindir
=${ns_appdir}/Contents
/MacOS
9966 ns_appresdir
=${ns_appdir}/Contents
/Resources
9967 ns_appsrc
=Cocoa
/Emacs.base
9968 elif test -f $GNUSTEP_CONFIG_FILE; then
9970 ns_appdir
=`pwd`/nextstep
/Emacs.app
9971 ns_appbindir
=${ns_appdir}
9972 ns_appresdir
=${ns_appdir}/Resources
9973 ns_appsrc
=GNUstep
/Emacs.base
9974 GNUSTEP_SYSTEM_HEADERS
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9975 GNUSTEP_SYSTEM_LIBRARIES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9976 GNUSTEP_LOCAL_HEADERS
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
9977 GNUSTEP_LOCAL_LIBRARIES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
9978 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
9979 GNUSTEP_LOCAL_HEADERS
="-I${GNUSTEP_LOCAL_HEADERS}"
9980 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
9981 GNUSTEP_LOCAL_LIBRARIES
="-L${GNUSTEP_LOCAL_LIBRARIES}"
9982 CPPFLAGS
="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9983 CFLAGS
="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9984 LDFLAGS
="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
9985 LIBS_GNUSTEP
="-lgnustep-gui -lgnustep-base -lobjc -lpthread"
9986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS" >&5
9987 $as_echo_n "checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS... " >&6; }
9988 if test "${emacs_cv_objc_exceptions+set}" = set; then :
9989 $as_echo_n "(cached) " >&6
9991 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9992 /* end confdefs.h. */
9993 #include <GNUstepBase/GSConfig.h>
9997 #if defined BASE_NATIVE_OBJC_EXCEPTIONS && BASE_NATIVE_OBJC_EXCEPTIONS > 0
10006 if ac_fn_c_try_compile
"$LINENO"; then :
10007 emacs_cv_objc_exceptions
=yes
10009 emacs_cv_objc_exceptions
=no
10011 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_objc_exceptions" >&5
10014 $as_echo "$emacs_cv_objc_exceptions" >&6; }
10015 if test $emacs_cv_objc_exceptions = yes; then
10017 $as_echo "#define _NATIVE_OBJC_EXCEPTIONS 1" >>confdefs.h
10019 GNU_OBJC_CFLAGS
="-fobjc-exceptions"
10023 CFLAGS
="$CFLAGS $GNU_OBJC_CFLAGS"
10025 ac_fn_c_check_header_mongrel
"$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
10026 if test "x$ac_cv_header_AppKit_AppKit_h" = x
""yes; then :
10029 as_fn_error
"\`--with-ns' was specified, but the include
10030 files are missing or cannot be compiled." "$LINENO" 5
10035 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10036 /* end confdefs.h. */
10037 #include <AppKit/AppKit.h>
10042 #ifdef MAC_OS_X_VERSION_MAX_ALLOWED
10043 #if MAC_OS_X_VERSION_MAX_ALLOWED >= 1040
10046 #error "OSX 10.4 or newer required"
10054 if ac_fn_c_try_compile
"$LINENO"; then :
10055 ns_osx_have_104
=yes
10059 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10060 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10061 /* end confdefs.h. */
10062 #include <Foundation/NSObjCRuntime.h>
10071 if ac_fn_c_try_compile
"$LINENO"; then :
10072 ns_have_nsinteger
=yes
10074 ns_have_nsinteger
=no
10076 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10077 if test $ns_osx_have_104 = no
; then
10078 as_fn_error
"\`OSX 10.4 or newer is required'" "$LINENO" 5;
10080 if test $ns_have_nsinteger = yes; then
10082 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
10089 INSTALL_ARCH_INDEP_EXTRA
=install-etc
10090 ns_self_contained
=no
10093 if test "${HAVE_NS}" = yes; then
10094 if test "$with_toolkit_scroll_bars" = "no"; then
10095 as_fn_error
"Non-toolkit scroll bars are not implemented for Nextstep." "$LINENO" 5
10098 window_system
=nextstep
10099 # set up packaging dirs
10100 if test "${EN_NS_SELF_CONTAINED}" = yes; then
10101 ns_self_contained
=yes
10102 prefix
=${ns_appresdir}
10103 exec_prefix
=${ns_appbindir}
10104 libexecdir
="\${ns_appbindir}/libexec"
10105 archlibdir
="\${ns_appbindir}/libexec"
10106 etcdocdir
="\${ns_appresdir}/etc"
10107 etcdir
="\${ns_appresdir}/etc"
10108 infodir
="\${ns_appresdir}/info"
10109 mandir
="\${ns_appresdir}/man"
10110 lispdir
="\${ns_appresdir}/lisp"
10111 leimdir
="\${ns_appresdir}/leim"
10112 INSTALL_ARCH_INDEP_EXTRA
=
10114 NS_OBJC_OBJ
="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o"
10116 CFLAGS
="$tmp_CFLAGS"
10117 CPPFLAGS
="$tmp_CPPFLAGS"
10132 if test "${with_w32}" != no
; then
10135 ac_fn_c_check_header_mongrel
"$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
10136 if test "x$ac_cv_header_windows_h" = x
""yes; then :
10139 as_fn_error
"\`--with-w32' was specified, but windows.h
10140 cannot be found." "$LINENO" 5
10146 ## Using --with-w32 with MinGW is a no-op, but we allow it.
10149 as_fn_error
"Using w32 with an autotools build is only supported for Cygwin and MinGW32." "$LINENO" 5
10154 if test "${opsys}" = "mingw32"; then
10155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Windows API headers are recent enough" >&5
10156 $as_echo_n "checking whether Windows API headers are recent enough... " >&6; }
10157 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10158 /* end confdefs.h. */
10160 #include <windows.h>
10165 PIMAGE_NT_HEADERS pHeader;
10166 PIMAGE_SECTION_HEADER pSection = IMAGE_FIRST_SECTION(pHeader)
10171 if ac_fn_c_try_compile
"$LINENO"; then :
10172 emacs_cv_w32api
=yes
10177 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_w32api" >&5
10179 $as_echo "$emacs_cv_w32api" >&6; }
10180 if test "${emacs_cv_w32api}" = "no"; then
10181 as_fn_error
"the Windows API headers are too old to support this build." "$LINENO" 5
10192 if test "${HAVE_W32}" = "yes"; then
10194 $as_echo "#define HAVE_NTGUI 1" >>confdefs.h
10196 if test -n "$ac_tool_prefix"; then
10197 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
10198 set dummy
${ac_tool_prefix}windres
; ac_word
=$2
10199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10200 $as_echo_n "checking for $ac_word... " >&6; }
10201 if test "${ac_cv_prog_WINDRES+set}" = set; then :
10202 $as_echo_n "(cached) " >&6
10204 if test -n "$WINDRES"; then
10205 ac_cv_prog_WINDRES
="$WINDRES" # Let the user override the test.
10207 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10208 for as_dir
in $PATH
10211 test -z "$as_dir" && as_dir
=.
10212 for ac_exec_ext
in '' $ac_executable_extensions; do
10213 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10214 ac_cv_prog_WINDRES
="${ac_tool_prefix}windres"
10215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10224 WINDRES
=$ac_cv_prog_WINDRES
10225 if test -n "$WINDRES"; then
10226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
10227 $as_echo "$WINDRES" >&6; }
10229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10230 $as_echo "no" >&6; }
10235 if test -z "$ac_cv_prog_WINDRES"; then
10236 ac_ct_WINDRES
=$WINDRES
10237 # Extract the first word of "windres", so it can be a program name with args.
10238 set dummy windres
; ac_word
=$2
10239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10240 $as_echo_n "checking for $ac_word... " >&6; }
10241 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then :
10242 $as_echo_n "(cached) " >&6
10244 if test -n "$ac_ct_WINDRES"; then
10245 ac_cv_prog_ac_ct_WINDRES
="$ac_ct_WINDRES" # Let the user override the test.
10247 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10248 for as_dir
in $PATH
10251 test -z "$as_dir" && as_dir
=.
10252 for ac_exec_ext
in '' $ac_executable_extensions; do
10253 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10254 ac_cv_prog_ac_ct_WINDRES
="windres"
10255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10264 ac_ct_WINDRES
=$ac_cv_prog_ac_ct_WINDRES
10265 if test -n "$ac_ct_WINDRES"; then
10266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
10267 $as_echo "$ac_ct_WINDRES" >&6; }
10269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10270 $as_echo "no" >&6; }
10273 if test "x$ac_ct_WINDRES" = x
; then
10274 WINDRES
="as_fn_error "No resource compiler found.
" "$LINENO" 5"
10276 case $cross_compiling:$ac_tool_warned in
10278 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10279 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10280 ac_tool_warned
=yes ;;
10282 WINDRES
=$ac_ct_WINDRES
10285 WINDRES
="$ac_cv_prog_WINDRES"
10288 W32_OBJ
="w32fns.o w32menu.o w32reg.o w32font.o w32term.o"
10289 W32_OBJ
="$W32_OBJ w32xfns.o w32select.o w32uniscribe.o"
10290 EMACSRES
="emacs.res"
10291 case "$canonical" in
10292 x86_64-
*-*) EMACS_MANIFEST
="emacs-x64.manifest" ;;
10293 *) EMACS_MANIFEST
="emacs-x86.manifest" ;;
10295 UPDATE_MANIFEST
=update-game-score.exe.manifest
10296 if test "${opsys}" = "cygwin"; then
10297 W32_LIBS
="$W32_LIBS -lkernel32 -luser32 -lgdi32 -lole32 -lcomdlg32"
10298 W32_LIBS
="$W32_LIBS -lusp10 -lcomctl32 -lwinspool"
10299 # Tell the linker that emacs.res is an object (which we compile from
10300 # the rc file), not a linker script.
10301 W32_RES_LINK
="-Wl,emacs.res"
10303 W32_OBJ
="$W32_OBJ w32.o w32console.o w32heap.o w32inevt.o w32proc.o"
10304 W32_LIBS
="$W32_LIBS -lwinmm -lgdi32 -lcomdlg32"
10305 W32_LIBS
="$W32_LIBS -lmpr -lwinspool -lole32 -lcomctl32 -lusp10"
10306 W32_RES_LINK
="\$(EMACSRES)"
10307 CLIENTRES
="emacsclient.res"
10308 CLIENTW
="emacsclientw\$(EXEEXT)"
10309 FIRSTFILE_OBJ
=firstfile.o
10312 LIBS_ECLIENT
="-lcomctl32"
10313 LIB_WSOCK32
="-lwsock32"
10314 NTLIB
="ntlib.$ac_objext"
10315 XARGS_LIMIT
="-s 10000"
10334 if test "${HAVE_W32}" = "yes"; then
10339 ## $window_system is now set to the window system we will
10347 case "${window_system}" in
10351 term_header
=xterm.h
10352 case "${with_x_toolkit}" in
10353 athena | lucid
) USE_X_TOOLKIT
=LUCID
;;
10354 motif
) USE_X_TOOLKIT
=MOTIF
;;
10356 term_header
=gtkutil.h
10357 USE_X_TOOLKIT
=none
;;
10358 gtk2
) with_gtk2
=yes
10359 term_header
=gtkutil.h
10360 USE_X_TOOLKIT
=none
;;
10361 gtk3
) with_gtk3
=yes
10362 term_header
=gtkutil.h
10363 USE_X_TOOLKIT
=none
;;
10364 no
) USE_X_TOOLKIT
=none
;;
10365 * ) USE_X_TOOLKIT
=maybe
;;
10369 term_header
=nsterm.h
10372 term_header
=w32term.h
10376 if test "$window_system" = none
&& test "X$with_x" != "Xno"; then
10377 # Extract the first word of "X", so it can be a program name with args.
10378 set dummy X
; ac_word
=$2
10379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10380 $as_echo_n "checking for $ac_word... " >&6; }
10381 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then :
10382 $as_echo_n "(cached) " >&6
10384 if test -n "$HAVE_XSERVER"; then
10385 ac_cv_prog_HAVE_XSERVER
="$HAVE_XSERVER" # Let the user override the test.
10387 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10388 for as_dir
in $PATH
10391 test -z "$as_dir" && as_dir
=.
10392 for ac_exec_ext
in '' $ac_executable_extensions; do
10393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10394 ac_cv_prog_HAVE_XSERVER
="true"
10395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10402 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER
="false"
10405 HAVE_XSERVER
=$ac_cv_prog_HAVE_XSERVER
10406 if test -n "$HAVE_XSERVER"; then
10407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
10408 $as_echo "$HAVE_XSERVER" >&6; }
10410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10411 $as_echo "no" >&6; }
10415 if test "$HAVE_XSERVER" = true ||
10416 test -n "$DISPLAY" ||
10417 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
10418 as_fn_error
"You seem to be running X, but no X development libraries
10419 were found. You should install the relevant development files for X
10420 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
10421 sure you have development files for image handling, i.e.
10422 tiff, gif, jpeg, png and xpm.
10423 If you are sure you want Emacs compiled without X window support, pass
10425 to configure." "$LINENO" 5
10429 ### If we're using X11, we should use the X menu package.
10431 case ${HAVE_X11} in
10432 yes ) HAVE_MENUS
=yes ;;
10435 # Does the opsystem file prohibit the use of the GNU malloc?
10436 # Assume not, until told otherwise.
10439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc is Doug Lea style" >&5
10440 $as_echo_n "checking whether malloc is Doug Lea style... " >&6; }
10441 if test "${emacs_cv_var_doug_lea_malloc+set}" = set; then :
10442 $as_echo_n "(cached) " >&6
10444 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10445 /* end confdefs.h. */
10446 #include <malloc.h>
10447 static void hook (void) {}
10451 malloc_set_state (malloc_get_state ());
10452 __after_morecore_hook = hook;
10453 __malloc_initialize_hook = hook;
10458 if ac_fn_c_try_link
"$LINENO"; then :
10459 emacs_cv_var_doug_lea_malloc
=yes
10461 emacs_cv_var_doug_lea_malloc
=no
10463 rm -f core conftest.err conftest.
$ac_objext \
10464 conftest
$ac_exeext conftest.
$ac_ext
10466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var_doug_lea_malloc" >&5
10467 $as_echo "$emacs_cv_var_doug_lea_malloc" >&6; }
10468 doug_lea_malloc
=$emacs_cv_var_doug_lea_malloc
10473 ## darwin ld insists on the use of malloc routines in the System framework.
10474 darwin|sol2-10
) system_malloc
=yes ;;
10477 if test "${system_malloc}" = "yes"; then
10479 $as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
10482 GNU_MALLOC_reason
="
10483 (The GNU allocators don't work with this system configuration.)"
10487 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ
=gmalloc.o
10488 VMLIMIT_OBJ
=vm-limit.o
10490 for ac_header
in sys
/vlimit.h
10492 ac_fn_c_check_header_mongrel
"$LINENO" "sys/vlimit.h" "ac_cv_header_sys_vlimit_h" "$ac_includes_default"
10493 if test "x$ac_cv_header_sys_vlimit_h" = x
""yes; then :
10494 cat >>confdefs.h
<<_ACEOF
10495 #define HAVE_SYS_VLIMIT_H 1
10502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for data_start" >&5
10503 $as_echo_n "checking for data_start... " >&6; }
10504 if test "${emacs_cv_data_start+set}" = set; then :
10505 $as_echo_n "(cached) " >&6
10507 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10508 /* end confdefs.h. */
10509 extern char data_start[]; char ch;
10513 return data_start < &ch;
10518 if ac_fn_c_try_link
"$LINENO"; then :
10519 emacs_cv_data_start
=yes
10521 emacs_cv_data_start
=no
10523 rm -f core conftest.err conftest.
$ac_objext \
10524 conftest
$ac_exeext conftest.
$ac_ext
10526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_data_start" >&5
10527 $as_echo "$emacs_cv_data_start" >&6; }
10528 if test $emacs_cv_data_start = yes; then
10530 $as_echo "#define HAVE_DATA_START 1" >>confdefs.h
10537 if test "$doug_lea_malloc" = "yes" ; then
10538 if test "$GNU_MALLOC" = yes ; then
10539 GNU_MALLOC_reason
="
10540 (Using Doug Lea's new malloc from the GNU C Library.)"
10543 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
10546 ## Use mmap directly for allocating larger buffers.
10547 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
10548 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
10549 ## Does the AC_FUNC_MMAP test below make this check unnecessary?
10551 gnu
*) REL_ALLOC
=no
;;
10555 if test x
"${REL_ALLOC}" = x
; then
10556 REL_ALLOC
=${GNU_MALLOC}
10559 use_mmap_for_buffers
=no
10561 cygwin|freebsd|irix6-5
) use_mmap_for_buffers
=yes ;;
10571 for ac_func
in getpagesize
10573 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
10574 if test "x$ac_cv_func_getpagesize" = x
""yes; then :
10575 cat >>confdefs.h
<<_ACEOF
10576 #define HAVE_GETPAGESIZE 1
10582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
10583 $as_echo_n "checking for working mmap... " >&6; }
10584 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
10585 $as_echo_n "(cached) " >&6
10587 if test "$cross_compiling" = yes; then :
10588 ac_cv_func_mmap_fixed_mapped
=no
10590 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10591 /* end confdefs.h. */
10592 $ac_includes_default
10593 /* malloc might have been renamed as rpl_malloc. */
10596 /* Thanks to Mike Haertel and Jim Avera for this test.
10597 Here is a matrix of mmap possibilities:
10598 mmap private not fixed
10599 mmap private fixed at somewhere currently unmapped
10600 mmap private fixed at somewhere already mapped
10601 mmap shared not fixed
10602 mmap shared fixed at somewhere currently unmapped
10603 mmap shared fixed at somewhere already mapped
10604 For private mappings, we should verify that changes cannot be read()
10605 back from the file, nor mmap's back from the file at a different
10606 address. (There have been systems where private was not correctly
10607 implemented like the infamous i386 svr4.0, and systems where the
10608 VM page cache was not coherent with the file system buffer cache
10609 like early versions of FreeBSD and possibly contemporary NetBSD.)
10610 For shared mappings, we should conversely verify that changes get
10611 propagated back to all the places they're supposed to be.
10613 Grep wants private fixed already mapped.
10614 The main things grep needs to know about mmap are:
10615 * does it exist and is it safe to write into the mmap'd area
10616 * how to use it (BSD variants) */
10619 #include <sys/mman.h>
10621 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10625 /* This mess was copied from the GNU getpagesize.h. */
10626 #ifndef HAVE_GETPAGESIZE
10627 # ifdef _SC_PAGESIZE
10628 # define getpagesize() sysconf(_SC_PAGESIZE)
10629 # else /* no _SC_PAGESIZE */
10630 # ifdef HAVE_SYS_PARAM_H
10631 # include <sys/param.h>
10632 # ifdef EXEC_PAGESIZE
10633 # define getpagesize() EXEC_PAGESIZE
10634 # else /* no EXEC_PAGESIZE */
10636 # define getpagesize() NBPG * CLSIZE
10639 # endif /* no CLSIZE */
10640 # else /* no NBPG */
10642 # define getpagesize() NBPC
10643 # else /* no NBPC */
10645 # define getpagesize() PAGESIZE
10646 # endif /* PAGESIZE */
10647 # endif /* no NBPC */
10648 # endif /* no NBPG */
10649 # endif /* no EXEC_PAGESIZE */
10650 # else /* no HAVE_SYS_PARAM_H */
10651 # define getpagesize() 8192 /* punt totally */
10652 # endif /* no HAVE_SYS_PARAM_H */
10653 # endif /* no _SC_PAGESIZE */
10655 #endif /* no HAVE_GETPAGESIZE */
10660 char *data, *data2, *data3;
10661 const char *cdata2;
10665 pagesize = getpagesize ();
10667 /* First, make a file with some known garbage in it. */
10668 data = (char *) malloc (pagesize);
10671 for (i = 0; i < pagesize; ++i)
10672 *(data + i) = rand ();
10674 fd = creat ("conftest.mmap", 0600);
10677 if (write (fd, data, pagesize) != pagesize)
10681 /* Next, check that the tail of a page is zero-filled. File must have
10682 non-zero length, otherwise we risk SIGBUS for entire page. */
10683 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
10687 if (write (fd2, cdata2, 1) != 1)
10689 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
10690 if (data2 == MAP_FAILED)
10692 for (i = 0; i < pagesize; ++i)
10696 if (munmap (data2, pagesize))
10699 /* Next, try to mmap the file at a fixed address which already has
10700 something else allocated at it. If we can, also make sure that
10701 we see the same garbage. */
10702 fd = open ("conftest.mmap", O_RDWR);
10705 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10706 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10708 for (i = 0; i < pagesize; ++i)
10709 if (*(data + i) != *(data2 + i))
10712 /* Finally, make sure that changes to the mapped area do not
10713 percolate back to the file as seen by read(). (This is a bug on
10714 some variants of i386 svr4.0.) */
10715 for (i = 0; i < pagesize; ++i)
10716 *(data2 + i) = *(data2 + i) + 1;
10717 data3 = (char *) malloc (pagesize);
10720 if (read (fd, data3, pagesize) != pagesize)
10722 for (i = 0; i < pagesize; ++i)
10723 if (*(data + i) != *(data3 + i))
10729 if ac_fn_c_try_run
"$LINENO"; then :
10730 ac_cv_func_mmap_fixed_mapped
=yes
10732 ac_cv_func_mmap_fixed_mapped
=no
10734 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10735 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
10740 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
10741 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10743 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
10746 rm -f conftest.mmap conftest.txt
10748 if test $use_mmap_for_buffers = yes; then
10750 $as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
10755 LIBS
="$LIBS_SYSTEM $LIBS"
10757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
10758 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
10759 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
10760 $as_echo_n "(cached) " >&6
10762 ac_check_lib_save_LIBS
=$LIBS
10763 LIBS
="-ldnet $LIBS"
10764 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10765 /* end confdefs.h. */
10767 /* Override any GCC internal prototype to avoid an error.
10768 Use char because int might match the return type of a GCC
10769 builtin and then its argument prototype would still apply. */
10777 return dnet_ntoa ();
10782 if ac_fn_c_try_link
"$LINENO"; then :
10783 ac_cv_lib_dnet_dnet_ntoa
=yes
10785 ac_cv_lib_dnet_dnet_ntoa
=no
10787 rm -f core conftest.err conftest.
$ac_objext \
10788 conftest
$ac_exeext conftest.
$ac_ext
10789 LIBS
=$ac_check_lib_save_LIBS
10791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10792 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10793 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x
""yes; then :
10794 cat >>confdefs.h
<<_ACEOF
10795 #define HAVE_LIBDNET 1
10798 LIBS
="-ldnet $LIBS"
10803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
10804 $as_echo_n "checking for main in -lXbsd... " >&6; }
10805 if test "${ac_cv_lib_Xbsd_main+set}" = set; then :
10806 $as_echo_n "(cached) " >&6
10808 ac_check_lib_save_LIBS
=$LIBS
10809 LIBS
="-lXbsd $LIBS"
10810 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10811 /* end confdefs.h. */
10822 if ac_fn_c_try_link
"$LINENO"; then :
10823 ac_cv_lib_Xbsd_main
=yes
10825 ac_cv_lib_Xbsd_main
=no
10827 rm -f core conftest.err conftest.
$ac_objext \
10828 conftest
$ac_exeext conftest.
$ac_ext
10829 LIBS
=$ac_check_lib_save_LIBS
10831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
10832 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
10833 if test "x$ac_cv_lib_Xbsd_main" = x
""yes; then :
10834 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -lXbsd"
10842 if test "$ac_cv_header_pthread_h"; then
10843 if test "$GMALLOC_OBJ" = gmalloc.o
; then
10844 emacs_pthread_function
=pthread_atfork
10846 emacs_pthread_function
=pthread_self
10848 as_ac_Lib
=`$as_echo "ac_cv_lib_pthread_$emacs_pthread_function" | $as_tr_sh`
10849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $emacs_pthread_function in -lpthread" >&5
10850 $as_echo_n "checking for $emacs_pthread_function in -lpthread... " >&6; }
10851 if { as_var
=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
10852 $as_echo_n "(cached) " >&6
10854 ac_check_lib_save_LIBS
=$LIBS
10855 LIBS
="-lpthread $LIBS"
10856 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10857 /* end confdefs.h. */
10859 /* Override any GCC internal prototype to avoid an error.
10860 Use char because int might match the return type of a GCC
10861 builtin and then its argument prototype would still apply. */
10865 char $emacs_pthread_function ();
10869 return $emacs_pthread_function ();
10874 if ac_fn_c_try_link
"$LINENO"; then :
10875 eval "$as_ac_Lib=yes"
10877 eval "$as_ac_Lib=no"
10879 rm -f core conftest.err conftest.
$ac_objext \
10880 conftest
$ac_exeext conftest.
$ac_ext
10881 LIBS
=$ac_check_lib_save_LIBS
10883 eval ac_res
=\$
$as_ac_Lib
10884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10885 $as_echo "$ac_res" >&6; }
10886 eval as_val
=\$
$as_ac_Lib
10887 if test "x$as_val" = x
""yes; then :
10892 if test "$HAVE_PTHREAD" = yes; then
10893 case "${canonical}" in
10895 *) LIB_PTHREAD
="-lpthread"
10896 LIBS
="$LIB_PTHREAD $LIBS" ;;
10899 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
10904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
10905 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
10906 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then :
10907 $as_echo_n "(cached) " >&6
10909 ac_check_lib_save_LIBS
=$LIBS
10910 LIBS
="-lpthreads $LIBS"
10911 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10912 /* end confdefs.h. */
10914 /* Override any GCC internal prototype to avoid an error.
10915 Use char because int might match the return type of a GCC
10916 builtin and then its argument prototype would still apply. */
10924 return cma_open ();
10929 if ac_fn_c_try_link
"$LINENO"; then :
10930 ac_cv_lib_pthreads_cma_open
=yes
10932 ac_cv_lib_pthreads_cma_open
=no
10934 rm -f core conftest.err conftest.
$ac_objext \
10935 conftest
$ac_exeext conftest.
$ac_ext
10936 LIBS
=$ac_check_lib_save_LIBS
10938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
10939 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
10940 if test "x$ac_cv_lib_pthreads_cma_open" = x
""yes; then :
10941 cat >>confdefs.h
<<_ACEOF
10942 #define HAVE_LIBPTHREADS 1
10945 LIBS
="-lpthreads $LIBS"
10950 ## Note: when using cpp in s/aix4.2.h, this definition depended on
10951 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
10952 ## the system file was sourced. Hence the value of LIBS_SYSTEM
10953 ## added to LIBS in configure would never contain the pthreads part,
10954 ## but the value used in Makefiles might. FIXME?
10956 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
10957 ## be harmless on older versions of X where it happens to exist.
10958 test "$opsys" = "aix4-2" && \
10959 test $ac_cv_lib_pthreads_cma_open = yes && \
10960 LIBS_SYSTEM
="$LIBS_SYSTEM -lpthreads"
10965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
10966 $as_echo_n "checking for -bbigtoc option... " >&6; }
10967 if test "${gdb_cv_bigtoc+set}" = set; then :
10968 $as_echo_n "(cached) " >&6
10972 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
10973 *) gdb_cv_bigtoc
=-bbigtoc ;;
10976 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
10977 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10978 /* end confdefs.h. */
10988 if ac_fn_c_try_link
"$LINENO"; then :
10993 rm -f core conftest.err conftest.
$ac_objext \
10994 conftest
$ac_exeext conftest.
$ac_ext
10997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
10998 $as_echo "$gdb_cv_bigtoc" >&6; }
11002 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
11003 # used for the tests that follow. We set them back to REAL_CFLAGS and
11004 # REAL_CPPFLAGS later on.
11006 REAL_CFLAGS
="$CFLAGS"
11007 REAL_CPPFLAGS
="$CPPFLAGS"
11009 if test "${HAVE_X11}" = "yes"; then
11010 DEFS
="$C_SWITCH_X_SITE $DEFS"
11011 LDFLAGS
="$LDFLAGS $LD_SWITCH_X_SITE"
11013 CFLAGS
="$C_SWITCH_X_SITE $CFLAGS"
11014 CPPFLAGS
="$C_SWITCH_X_SITE $CPPFLAGS"
11016 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
11017 # This is handled by LD_SWITCH_X_SITE_RPATH during the real build,
11018 # but it's more convenient here to set LD_RUN_PATH since this
11019 # also works on hosts that don't understand LD_SWITCH_X_SITE_RPATH.
11020 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
11021 LD_RUN_PATH
=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
11025 if test "${opsys}" = "gnu-linux"; then
11026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
11027 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
11028 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11029 /* end confdefs.h. */
11034 XOpenDisplay ("foo");
11039 if ac_fn_c_try_link
"$LINENO"; then :
11040 xgnu_linux_first_failure
=no
11042 xgnu_linux_first_failure
=yes
11044 rm -f core conftest.err conftest.
$ac_objext \
11045 conftest
$ac_exeext conftest.
$ac_ext
11046 if test "${xgnu_linux_first_failure}" = "yes"; then
11047 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
11048 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
11049 OLD_CPPFLAGS
="$CPPFLAGS"
11051 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
11052 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
11053 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
11054 LIBS
="$LIBS -b i486-linuxaout"
11055 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11056 /* end confdefs.h. */
11061 XOpenDisplay ("foo");
11066 if ac_fn_c_try_link
"$LINENO"; then :
11067 xgnu_linux_second_failure
=no
11069 xgnu_linux_second_failure
=yes
11071 rm -f core conftest.err conftest.
$ac_objext \
11072 conftest
$ac_exeext conftest.
$ac_ext
11073 if test "${xgnu_linux_second_failure}" = "yes"; then
11074 # If we get the same failure with -b, there is no use adding -b.
11075 # So take it out. This plays safe.
11076 LD_SWITCH_X_SITE
="$OLD_LD_SWITCH_X_SITE"
11077 C_SWITCH_X_SITE
="$OLD_C_SWITCH_X_SITE"
11078 CPPFLAGS
="$OLD_CPPFLAGS"
11080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11081 $as_echo "no" >&6; }
11083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11084 $as_echo "yes" >&6; }
11087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11088 $as_echo "no" >&6; }
11092 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
11093 # header files included from there.
11094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
11095 $as_echo_n "checking for Xkb... " >&6; }
11096 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11097 /* end confdefs.h. */
11098 #include <X11/Xlib.h>
11099 #include <X11/XKBlib.h>
11103 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
11108 if ac_fn_c_try_link
"$LINENO"; then :
11113 rm -f core conftest.err conftest.
$ac_objext \
11114 conftest
$ac_exeext conftest.
$ac_ext
11115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
11116 $as_echo "$emacs_xkb" >&6; }
11117 if test $emacs_xkb = yes; then
11119 $as_echo "#define HAVE_XKB 1" >>confdefs.h
11123 for ac_func
in XrmSetDatabase XScreenResourceString \
11124 XScreenNumberOfScreen
11126 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11127 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11128 eval as_val
=\$
$as_ac_var
11129 if test "x$as_val" = x
""yes; then :
11130 cat >>confdefs.h
<<_ACEOF
11131 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11139 if test "${window_system}" = "x11"; then
11140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
11141 $as_echo_n "checking X11 version 6... " >&6; }
11142 if test "${emacs_cv_x11_version_6+set}" = set; then :
11143 $as_echo_n "(cached) " >&6
11145 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11146 /* end confdefs.h. */
11147 #include <X11/Xlib.h>
11151 #if XlibSpecificationRelease < 6
11159 if ac_fn_c_try_link
"$LINENO"; then :
11160 emacs_cv_x11_version_6
=yes
11162 emacs_cv_x11_version_6
=no
11164 rm -f core conftest.err conftest.
$ac_objext \
11165 conftest
$ac_exeext conftest.
$ac_ext
11168 if test $emacs_cv_x11_version_6 = yes; then
11169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
11170 $as_echo "6 or newer" >&6; }
11172 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
11175 $as_echo "#define HAVE_X_I18N 1" >>confdefs.h
11177 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
11182 $as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
11187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
11188 $as_echo "before 6" >&6; }
11193 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
11195 if test "${HAVE_X11}" = "yes" || test "${HAVE_NS}" = "yes" || test "${opsys}" = "mingw32"; then
11196 if test "${with_rsvg}" != "no"; then
11197 RSVG_REQUIRED
=2.11.0
11198 RSVG_MODULE
="librsvg-2.0 >= $RSVG_REQUIRED"
11203 if test "$PKG_CONFIG" = "no" ; then
11206 PKG_CONFIG_MIN_VERSION
=0.9.0
11207 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
11209 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
11211 if "$PKG_CONFIG" --exists "$RSVG_MODULE" 2>&5 &&
11212 RSVG_CFLAGS
=`"$PKG_CONFIG" --cflags "$RSVG_MODULE" 2>&5` &&
11213 RSVG_LIBS
=`"$PKG_CONFIG" --libs "$RSVG_MODULE" 2>&5`; then
11220 RSVG_CFLAGS
=`$as_echo "$RSVG_CFLAGS" | sed -e "$edit_cflags"`
11221 RSVG_LIBS
=`$as_echo "$RSVG_LIBS" | sed -e 's,///*,/,g'`
11222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$RSVG_CFLAGS' LIBS='$RSVG_LIBS'" >&5
11223 $as_echo "yes CFLAGS='$RSVG_CFLAGS' LIBS='$RSVG_LIBS'" >&6; }
11226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11227 $as_echo "no" >&6; }
11230 ## If we have a custom action on failure, don't print errors, but
11231 ## do set a variable so people can do so. Do it in a subshell
11232 ## to capture any diagnostics in invoking pkg-config.
11233 RSVG_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "$RSVG_MODULE") 2>&1`
11240 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11241 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11245 if test $succeeded = yes; then
11254 if test $HAVE_RSVG = yes; then
11256 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
11258 CFLAGS
="$CFLAGS $RSVG_CFLAGS"
11259 LIBS
="$RSVG_LIBS $LIBS"
11264 HAVE_IMAGEMAGICK
=no
11265 if test "${HAVE_X11}" = "yes" ||
test "${HAVE_NS}" = "yes"; then
11266 if test "${with_imagemagick}" != "no"; then
11267 ## 6.2.8 is the earliest version known to work, but earlier versions
11268 ## might work - let us know if you find one.
11269 ## 6.0.7 does not work. See bug#7955.
11270 ## 6.8.2 makes Emacs crash; see Bug#13867.
11271 IMAGEMAGICK_MODULE
="Wand >= 6.2.8 Wand != 6.8.2"
11275 if test "$PKG_CONFIG" = "no" ; then
11278 PKG_CONFIG_MIN_VERSION
=0.9.0
11279 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
11281 $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
11283 if "$PKG_CONFIG" --exists "$IMAGEMAGICK_MODULE" 2>&5 &&
11284 IMAGEMAGICK_CFLAGS
=`"$PKG_CONFIG" --cflags "$IMAGEMAGICK_MODULE" 2>&5` &&
11285 IMAGEMAGICK_LIBS
=`"$PKG_CONFIG" --libs "$IMAGEMAGICK_MODULE" 2>&5`; then
11292 IMAGEMAGICK_CFLAGS
=`$as_echo "$IMAGEMAGICK_CFLAGS" | sed -e "$edit_cflags"`
11293 IMAGEMAGICK_LIBS
=`$as_echo "$IMAGEMAGICK_LIBS" | sed -e 's,///*,/,g'`
11294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$IMAGEMAGICK_CFLAGS' LIBS='$IMAGEMAGICK_LIBS'" >&5
11295 $as_echo "yes CFLAGS='$IMAGEMAGICK_CFLAGS' LIBS='$IMAGEMAGICK_LIBS'" >&6; }
11298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11299 $as_echo "no" >&6; }
11300 IMAGEMAGICK_CFLAGS
=""
11301 IMAGEMAGICK_LIBS
=""
11302 ## If we have a custom action on failure, don't print errors, but
11303 ## do set a variable so people can do so. Do it in a subshell
11304 ## to capture any diagnostics in invoking pkg-config.
11305 IMAGEMAGICK_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "$IMAGEMAGICK_MODULE") 2>&1`
11312 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11313 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11317 if test $succeeded = yes; then
11318 HAVE_IMAGEMAGICK
=yes
11326 if test $HAVE_IMAGEMAGICK = yes; then
11328 $as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
11330 CFLAGS
="$CFLAGS $IMAGEMAGICK_CFLAGS"
11331 LIBS
="$IMAGEMAGICK_LIBS $LIBS"
11332 for ac_func
in MagickExportImagePixels MagickMergeImageLayers
11334 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11335 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11336 eval as_val
=\$
$as_ac_var
11337 if test "x$as_val" = x
""yes; then :
11338 cat >>confdefs.h
<<_ACEOF
11339 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11352 gtk_term_header
=$term_header
11355 if test "${opsys}" != "mingw32"; then
11356 if test "${with_gtk3}" = "yes" ||
test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "maybe"; then
11359 GTK_MODULES
="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11364 if test "$PKG_CONFIG" = "no" ; then
11367 PKG_CONFIG_MIN_VERSION
=0.9.0
11368 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
11370 $as_echo_n "checking for $GTK_MODULES... " >&6; }
11372 if "$PKG_CONFIG" --exists "$GTK_MODULES" 2>&5 &&
11373 GTK_CFLAGS
=`"$PKG_CONFIG" --cflags "$GTK_MODULES" 2>&5` &&
11374 GTK_LIBS
=`"$PKG_CONFIG" --libs "$GTK_MODULES" 2>&5`; then
11381 GTK_CFLAGS
=`$as_echo "$GTK_CFLAGS" | sed -e "$edit_cflags"`
11382 GTK_LIBS
=`$as_echo "$GTK_LIBS" | sed -e 's,///*,/,g'`
11383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&5
11384 $as_echo "yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&6; }
11387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11388 $as_echo "no" >&6; }
11391 ## If we have a custom action on failure, don't print errors, but
11392 ## do set a variable so people can do so. Do it in a subshell
11393 ## to capture any diagnostics in invoking pkg-config.
11394 GTK_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "$GTK_MODULES") 2>&1`
11401 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11402 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11406 if test $succeeded = yes; then
11412 if test "$pkg_check_gtk" = "no" && test "$with_gtk3" = "yes"; then
11413 as_fn_error
"$GTK_PKG_ERRORS" "$LINENO" 5
11415 if test "$pkg_check_gtk" = "yes"; then
11417 $as_echo "#define HAVE_GTK3 1" >>confdefs.h
11419 GTK_OBJ
=emacsgtkfixed.o
11420 gtk_term_header
=gtkutil.h
11421 USE_GTK_TOOLKIT
="GTK3"
11422 if test "x$ac_enable_gtk_deprecation_warnings" = x
; then
11423 GTK_CFLAGS
="$GTK_CFLAGS -DGDK_DISABLE_DEPRECATION_WARNINGS"
11424 GTK_CFLAGS
="$GTK_CFLAGS -DGLIB_DISABLE_DEPRECATION_WARNINGS"
11428 gtk3_pkg_errors
="$GTK_PKG_ERRORS "
11432 if test "${with_gtk2}" = "yes" ||
test "$check_gtk2" = "yes"; then
11435 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11440 if test "$PKG_CONFIG" = "no" ; then
11443 PKG_CONFIG_MIN_VERSION
=0.9.0
11444 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
11446 $as_echo_n "checking for $GTK_MODULES... " >&6; }
11448 if "$PKG_CONFIG" --exists "$GTK_MODULES" 2>&5 &&
11449 GTK_CFLAGS
=`"$PKG_CONFIG" --cflags "$GTK_MODULES" 2>&5` &&
11450 GTK_LIBS
=`"$PKG_CONFIG" --libs "$GTK_MODULES" 2>&5`; then
11457 GTK_CFLAGS
=`$as_echo "$GTK_CFLAGS" | sed -e "$edit_cflags"`
11458 GTK_LIBS
=`$as_echo "$GTK_LIBS" | sed -e 's,///*,/,g'`
11459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&5
11460 $as_echo "yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&6; }
11463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11464 $as_echo "no" >&6; }
11467 ## If we have a custom action on failure, don't print errors, but
11468 ## do set a variable so people can do so. Do it in a subshell
11469 ## to capture any diagnostics in invoking pkg-config.
11470 GTK_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "$GTK_MODULES") 2>&1`
11477 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11478 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11482 if test $succeeded = yes; then
11488 if test "$pkg_check_gtk" = "no" &&
11489 { test "$with_gtk" = yes ||
test "$with_gtk2" = "yes"; }
11491 as_fn_error
"$gtk3_pkg_errors$GTK_PKG_ERRORS" "$LINENO" 5
11493 test "$pkg_check_gtk" = "yes" && USE_GTK_TOOLKIT
="GTK2"
11497 if test x
"$pkg_check_gtk" = xyes
; then
11501 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
11502 CFLAGS
="$CFLAGS $GTK_CFLAGS"
11503 LIBS
="$GTK_LIBS $LIBS"
11504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GTK compiles" >&5
11505 $as_echo_n "checking whether GTK compiles... " >&6; }
11507 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11508 /* end confdefs.h. */
11509 /* Check the Gtk and Glib APIs. */
11510 #include <gtk/gtk.h>
11511 #include <glib-object.h>
11513 callback (GObject *go, GParamSpec *spec, gpointer user_data)
11520 GtkSettings *gs = 0;
11521 /* Use G_CALLBACK to make sure function pointers can be cast to void *;
11522 strict C prohibits this. Use gtk_main_iteration to test that the
11523 libraries are there. */
11524 if (g_signal_handler_find (G_OBJECT (gs), G_SIGNAL_MATCH_FUNC,
11525 0, 0, 0, G_CALLBACK (callback), 0))
11526 gtk_main_iteration ();
11532 if ac_fn_c_try_link
"$LINENO"; then :
11535 rm -f core conftest.err conftest.
$ac_objext \
11536 conftest
$ac_exeext conftest.
$ac_ext
11537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_COMPILES" >&5
11538 $as_echo "$GTK_COMPILES" >&6; }
11539 if test "${GTK_COMPILES}" != "yes"; then
11541 if test "$USE_X_TOOLKIT" != "maybe"; then
11542 as_fn_error
"Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
11547 $as_echo "#define USE_GTK 1" >>confdefs.h
11549 GTK_OBJ
="gtkutil.o $GTK_OBJ"
11550 term_header
=$gtk_term_header
11552 if "$PKG_CONFIG" --atleast-version=2.10 gtk
+-2.0
; then
11555 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
11556 closing open displays. This is no problem if you just use
11557 one display, but if you use more than one and close one of them
11558 Emacs may crash." >&5
11559 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
11560 closing open displays. This is no problem if you just use
11561 one display, but if you use more than one and close one of them
11562 Emacs may crash." >&2;}
11571 if test "${HAVE_GTK}" = "yes"; then
11573 if test "$with_toolkit_scroll_bars" != no
; then
11574 with_toolkit_scroll_bars
=yes
11577 HAVE_GTK_FILE_SELECTION
=no
11578 ac_fn_c_check_decl
"$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
11579 #include <gtk/gtk.h>
11581 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x
""yes; then :
11582 HAVE_GTK_FILE_SELECTION
=yes
11584 HAVE_GTK_FILE_SELECTION
=no
11587 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
11588 for ac_func
in gtk_file_selection_new
11590 ac_fn_c_check_func
"$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
11591 if test "x$ac_cv_func_gtk_file_selection_new" = x
""yes; then :
11592 cat >>confdefs.h
<<_ACEOF
11593 #define HAVE_GTK_FILE_SELECTION_NEW 1
11601 HAVE_GTK_HANDLE_BOX
=no
11602 ac_fn_c_check_decl
"$LINENO" "GTK_TYPE_HANDLE_BOX" "ac_cv_have_decl_GTK_TYPE_HANDLE_BOX" "$ac_includes_default
11603 #include <gtk/gtk.h>
11605 if test "x$ac_cv_have_decl_GTK_TYPE_HANDLE_BOX" = x
""yes; then :
11606 HAVE_GTK_HANDLE_BOX
=yes
11608 HAVE_GTK_HANDLE_BOX
=no
11611 if test "$HAVE_GTK_HANDLE_BOX" = yes; then
11612 for ac_func
in gtk_handle_box_new
11614 ac_fn_c_check_func
"$LINENO" "gtk_handle_box_new" "ac_cv_func_gtk_handle_box_new"
11615 if test "x$ac_cv_func_gtk_handle_box_new" = x
""yes; then :
11616 cat >>confdefs.h
<<_ACEOF
11617 #define HAVE_GTK_HANDLE_BOX_NEW 1
11625 HAVE_GTK_TEAROFF_MENU_ITEM
=no
11626 ac_fn_c_check_decl
"$LINENO" "GTK_TYPE_TEAROFF_MENU_ITEM" "ac_cv_have_decl_GTK_TYPE_TEAROFF_MENU_ITEM" "$ac_includes_default
11627 #include <gtk/gtk.h>
11629 if test "x$ac_cv_have_decl_GTK_TYPE_TEAROFF_MENU_ITEM" = x
""yes; then :
11630 HAVE_GTK_TEAROFF_MENU_ITEM
=yes
11632 HAVE_GTK_TEAROFF_MENU_ITEM
=no
11635 if test "$HAVE_GTK_TEAROFF_MENU_ITEM" = yes; then
11636 for ac_func
in gtk_tearoff_menu_item_new
11638 ac_fn_c_check_func
"$LINENO" "gtk_tearoff_menu_item_new" "ac_cv_func_gtk_tearoff_menu_item_new"
11639 if test "x$ac_cv_func_gtk_tearoff_menu_item_new" = x
""yes; then :
11640 cat >>confdefs.h
<<_ACEOF
11641 #define HAVE_GTK_TEAROFF_MENU_ITEM_NEW 1
11649 for ac_func
in gtk_widget_get_window gtk_widget_set_has_window \
11650 gtk_dialog_get_action_area gtk_widget_get_sensitive \
11651 gtk_widget_get_mapped gtk_adjustment_get_page_size \
11652 gtk_orientable_set_orientation \
11653 gtk_window_set_has_resize_grip
11655 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11656 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11657 eval as_val
=\$
$as_ac_var
11658 if test "x$as_val" = x
""yes; then :
11659 cat >>confdefs.h
<<_ACEOF
11660 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11667 term_header
=gtkutil.h
11672 if test "${with_dbus}" = "yes"; then
11676 if test "$PKG_CONFIG" = "no" ; then
11679 PKG_CONFIG_MIN_VERSION
=0.9.0
11680 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
11682 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
11684 if "$PKG_CONFIG" --exists "dbus-1 >= 1.0" 2>&5 &&
11685 DBUS_CFLAGS
=`"$PKG_CONFIG" --cflags "dbus-1 >= 1.0" 2>&5` &&
11686 DBUS_LIBS
=`"$PKG_CONFIG" --libs "dbus-1 >= 1.0" 2>&5`; then
11693 DBUS_CFLAGS
=`$as_echo "$DBUS_CFLAGS" | sed -e "$edit_cflags"`
11694 DBUS_LIBS
=`$as_echo "$DBUS_LIBS" | sed -e 's,///*,/,g'`
11695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$DBUS_CFLAGS' LIBS='$DBUS_LIBS'" >&5
11696 $as_echo "yes CFLAGS='$DBUS_CFLAGS' LIBS='$DBUS_LIBS'" >&6; }
11699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11700 $as_echo "no" >&6; }
11703 ## If we have a custom action on failure, don't print errors, but
11704 ## do set a variable so people can do so. Do it in a subshell
11705 ## to capture any diagnostics in invoking pkg-config.
11706 DBUS_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "dbus-1 >= 1.0") 2>&1`
11713 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11714 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11718 if test $succeeded = yes; then
11724 if test "$HAVE_DBUS" = yes; then
11725 LIBS
="$LIBS $DBUS_LIBS"
11727 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
11729 for ac_func
in dbus_watch_get_unix_fd \
11730 dbus_type_is_valid \
11731 dbus_validate_bus_name \
11732 dbus_validate_path \
11733 dbus_validate_interface \
11734 dbus_validate_member
11736 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11737 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11738 eval as_val
=\$
$as_ac_var
11739 if test "x$as_val" = x
""yes; then :
11740 cat >>confdefs.h
<<_ACEOF
11741 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11747 DBUS_OBJ
=dbusbind.o
11753 if test "${HAVE_X11}" = "yes" && test "${with_gsettings}" = "yes"; then
11757 if test "$PKG_CONFIG" = "no" ; then
11760 PKG_CONFIG_MIN_VERSION
=0.9.0
11761 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gio-2.0 >= 2.26" >&5
11763 $as_echo_n "checking for gio-2.0 >= 2.26... " >&6; }
11765 if "$PKG_CONFIG" --exists "gio-2.0 >= 2.26" 2>&5 &&
11766 GSETTINGS_CFLAGS
=`"$PKG_CONFIG" --cflags "gio-2.0 >= 2.26" 2>&5` &&
11767 GSETTINGS_LIBS
=`"$PKG_CONFIG" --libs "gio-2.0 >= 2.26" 2>&5`; then
11774 GSETTINGS_CFLAGS
=`$as_echo "$GSETTINGS_CFLAGS" | sed -e "$edit_cflags"`
11775 GSETTINGS_LIBS
=`$as_echo "$GSETTINGS_LIBS" | sed -e 's,///*,/,g'`
11776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GSETTINGS_CFLAGS' LIBS='$GSETTINGS_LIBS'" >&5
11777 $as_echo "yes CFLAGS='$GSETTINGS_CFLAGS' LIBS='$GSETTINGS_LIBS'" >&6; }
11780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11781 $as_echo "no" >&6; }
11782 GSETTINGS_CFLAGS
=""
11784 ## If we have a custom action on failure, don't print errors, but
11785 ## do set a variable so people can do so. Do it in a subshell
11786 ## to capture any diagnostics in invoking pkg-config.
11787 GSETTINGS_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "gio-2.0 >= 2.26") 2>&1`
11794 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11795 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11799 if test $succeeded = yes; then
11805 if test "$HAVE_GSETTINGS" = "yes"; then
11807 $as_echo "#define HAVE_GSETTINGS 1" >>confdefs.h
11809 SETTINGS_CFLAGS
="$GSETTINGS_CFLAGS"
11810 SETTINGS_LIBS
="$GSETTINGS_LIBS"
11815 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
11819 if test "$PKG_CONFIG" = "no" ; then
11822 PKG_CONFIG_MIN_VERSION
=0.9.0
11823 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
11825 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
11827 if "$PKG_CONFIG" --exists "gconf-2.0 >= 2.13" 2>&5 &&
11828 GCONF_CFLAGS
=`"$PKG_CONFIG" --cflags "gconf-2.0 >= 2.13" 2>&5` &&
11829 GCONF_LIBS
=`"$PKG_CONFIG" --libs "gconf-2.0 >= 2.13" 2>&5`; then
11836 GCONF_CFLAGS
=`$as_echo "$GCONF_CFLAGS" | sed -e "$edit_cflags"`
11837 GCONF_LIBS
=`$as_echo "$GCONF_LIBS" | sed -e 's,///*,/,g'`
11838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GCONF_CFLAGS' LIBS='$GCONF_LIBS'" >&5
11839 $as_echo "yes CFLAGS='$GCONF_CFLAGS' LIBS='$GCONF_LIBS'" >&6; }
11842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11843 $as_echo "no" >&6; }
11846 ## If we have a custom action on failure, don't print errors, but
11847 ## do set a variable so people can do so. Do it in a subshell
11848 ## to capture any diagnostics in invoking pkg-config.
11849 GCONF_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "gconf-2.0 >= 2.13") 2>&1`
11856 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11857 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11861 if test $succeeded = yes; then
11867 if test "$HAVE_GCONF" = yes; then
11869 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
11871 SETTINGS_CFLAGS
="$SETTINGS_CFLAGS $GCONF_CFLAGS"
11872 SETTINGS_LIBS
="$SETTINGS_LIBS $GCONF_LIBS"
11876 if test "$HAVE_GSETTINGS" = "yes" ||
test "$HAVE_GCONF" = "yes"; then
11880 if test "$PKG_CONFIG" = "no" ; then
11883 PKG_CONFIG_MIN_VERSION
=0.9.0
11884 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gobject-2.0 >= 2.0" >&5
11886 $as_echo_n "checking for gobject-2.0 >= 2.0... " >&6; }
11888 if "$PKG_CONFIG" --exists "gobject-2.0 >= 2.0" 2>&5 &&
11889 GOBJECT_CFLAGS
=`"$PKG_CONFIG" --cflags "gobject-2.0 >= 2.0" 2>&5` &&
11890 GOBJECT_LIBS
=`"$PKG_CONFIG" --libs "gobject-2.0 >= 2.0" 2>&5`; then
11897 GOBJECT_CFLAGS
=`$as_echo "$GOBJECT_CFLAGS" | sed -e "$edit_cflags"`
11898 GOBJECT_LIBS
=`$as_echo "$GOBJECT_LIBS" | sed -e 's,///*,/,g'`
11899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GOBJECT_CFLAGS' LIBS='$GOBJECT_LIBS'" >&5
11900 $as_echo "yes CFLAGS='$GOBJECT_CFLAGS' LIBS='$GOBJECT_LIBS'" >&6; }
11903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11904 $as_echo "no" >&6; }
11907 ## If we have a custom action on failure, don't print errors, but
11908 ## do set a variable so people can do so. Do it in a subshell
11909 ## to capture any diagnostics in invoking pkg-config.
11910 GOBJECT_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "gobject-2.0 >= 2.0") 2>&1`
11917 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11918 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11922 if test $succeeded = yes; then
11928 if test "$HAVE_GOBJECT" = "yes"; then
11929 SETTINGS_CFLAGS
="$SETTINGS_CFLAGS $GOBJECT_CFLAGS"
11930 SETTINGS_LIBS
="$SETTINGS_LIBS $GOBJECT_LIBS"
11932 SAVE_CFLAGS
="$CFLAGS"
11934 CFLAGS
="$SETTINGS_CFLAGS $CFLAGS"
11935 LIBS
="$SETTINGS_LIBS $LIBS"
11936 for ac_func
in g_type_init
11938 ac_fn_c_check_func
"$LINENO" "g_type_init" "ac_cv_func_g_type_init"
11939 if test "x$ac_cv_func_g_type_init" = x
""yes; then :
11940 cat >>confdefs.h
<<_ACEOF
11941 #define HAVE_G_TYPE_INIT 1
11947 CFLAGS
="$SAVE_CFLAGS"
11956 if test "${with_selinux}" = "yes"; then
11957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
11958 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
11959 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then :
11960 $as_echo_n "(cached) " >&6
11962 ac_check_lib_save_LIBS
=$LIBS
11963 LIBS
="-lselinux $LIBS"
11964 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11965 /* end confdefs.h. */
11967 /* Override any GCC internal prototype to avoid an error.
11968 Use char because int might match the return type of a GCC
11969 builtin and then its argument prototype would still apply. */
11973 char lgetfilecon ();
11977 return lgetfilecon ();
11982 if ac_fn_c_try_link
"$LINENO"; then :
11983 ac_cv_lib_selinux_lgetfilecon
=yes
11985 ac_cv_lib_selinux_lgetfilecon
=no
11987 rm -f core conftest.err conftest.
$ac_objext \
11988 conftest
$ac_exeext conftest.
$ac_ext
11989 LIBS
=$ac_check_lib_save_LIBS
11991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
11992 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
11993 if test "x$ac_cv_lib_selinux_lgetfilecon" = x
""yes; then :
11994 HAVE_LIBSELINUX
=yes
11999 if test "$HAVE_LIBSELINUX" = yes; then
12001 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
12003 LIBSELINUX_LIBS
=-lselinux
12009 if test "${with_gnutls}" = "yes" ; then
12013 if test "$PKG_CONFIG" = "no" ; then
12016 PKG_CONFIG_MIN_VERSION
=0.9.0
12017 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.6.6" >&5
12019 $as_echo_n "checking for gnutls >= 2.6.6... " >&6; }
12021 if "$PKG_CONFIG" --exists "gnutls >= 2.6.6" 2>&5 &&
12022 LIBGNUTLS_CFLAGS
=`"$PKG_CONFIG" --cflags "gnutls >= 2.6.6" 2>&5` &&
12023 LIBGNUTLS_LIBS
=`"$PKG_CONFIG" --libs "gnutls >= 2.6.6" 2>&5`; then
12030 LIBGNUTLS_CFLAGS
=`$as_echo "$LIBGNUTLS_CFLAGS" | sed -e "$edit_cflags"`
12031 LIBGNUTLS_LIBS
=`$as_echo "$LIBGNUTLS_LIBS" | sed -e 's,///*,/,g'`
12032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBGNUTLS_CFLAGS' LIBS='$LIBGNUTLS_LIBS'" >&5
12033 $as_echo "yes CFLAGS='$LIBGNUTLS_CFLAGS' LIBS='$LIBGNUTLS_LIBS'" >&6; }
12036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12037 $as_echo "no" >&6; }
12038 LIBGNUTLS_CFLAGS
=""
12040 ## If we have a custom action on failure, don't print errors, but
12041 ## do set a variable so people can do so. Do it in a subshell
12042 ## to capture any diagnostics in invoking pkg-config.
12043 LIBGNUTLS_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "gnutls >= 2.6.6") 2>&1`
12050 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12051 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12055 if test $succeeded = yes; then
12061 if test "${HAVE_GNUTLS}" = "yes"; then
12063 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
12067 # Windows loads GnuTLS dynamically
12068 if test "${opsys}" = "mingw32"; then
12071 CFLAGS
="$CFLAGS $LIBGNUTLS_CFLAGS"
12072 LIBS
="$LIBGNUTLS_LIBS $LIBS"
12082 if test "${with_ns}" = yes && test ${with_file_notification} = yes; then
12083 with_file_notification
=no
12086 case $with_file_notification,$opsys in
12087 w32
,* |
yes,mingw32
)
12088 ac_fn_c_check_header_mongrel
"$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
12089 if test "x$ac_cv_header_windows_h" = x
""yes; then :
12094 if test "$ac_cv_header_windows_h" = yes ; then
12096 $as_echo "#define HAVE_W32NOTIFY 1" >>confdefs.h
12098 NOTIFY_OBJ
=w32notify.o
12099 NOTIFY_SUMMARY
="yes (w32)"
12103 case $with_file_notification,$NOTIFY_OBJ in
12108 if test "$PKG_CONFIG" = "no" ; then
12109 HAVE_GFILENOTIFY
=no
12111 PKG_CONFIG_MIN_VERSION
=0.9.0
12112 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gio-2.0 >= 2.24" >&5
12114 $as_echo_n "checking for gio-2.0 >= 2.24... " >&6; }
12116 if "$PKG_CONFIG" --exists "gio-2.0 >= 2.24" 2>&5 &&
12117 GFILENOTIFY_CFLAGS
=`"$PKG_CONFIG" --cflags "gio-2.0 >= 2.24" 2>&5` &&
12118 GFILENOTIFY_LIBS
=`"$PKG_CONFIG" --libs "gio-2.0 >= 2.24" 2>&5`; then
12125 GFILENOTIFY_CFLAGS
=`$as_echo "$GFILENOTIFY_CFLAGS" | sed -e "$edit_cflags"`
12126 GFILENOTIFY_LIBS
=`$as_echo "$GFILENOTIFY_LIBS" | sed -e 's,///*,/,g'`
12127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GFILENOTIFY_CFLAGS' LIBS='$GFILENOTIFY_LIBS'" >&5
12128 $as_echo "yes CFLAGS='$GFILENOTIFY_CFLAGS' LIBS='$GFILENOTIFY_LIBS'" >&6; }
12131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12132 $as_echo "no" >&6; }
12133 GFILENOTIFY_CFLAGS
=""
12134 GFILENOTIFY_LIBS
=""
12135 ## If we have a custom action on failure, don't print errors, but
12136 ## do set a variable so people can do so. Do it in a subshell
12137 ## to capture any diagnostics in invoking pkg-config.
12138 GFILENOTIFY_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "gio-2.0 >= 2.24") 2>&1`
12145 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12146 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12150 if test $succeeded = yes; then
12151 HAVE_GFILENOTIFY
=yes
12153 HAVE_GFILENOTIFY
=no
12156 if test "$HAVE_GFILENOTIFY" = "yes"; then
12158 $as_echo "#define HAVE_GFILENOTIFY 1" >>confdefs.h
12160 NOTIFY_OBJ
=gfilenotify.o
12161 NOTIFY_SUMMARY
="yes -lgio (gfile)"
12165 case $with_file_notification,$NOTIFY_OBJ in
12167 ac_fn_c_check_header_mongrel
"$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
12168 if test "x$ac_cv_header_sys_inotify_h" = x
""yes; then :
12173 if test "$ac_cv_header_sys_inotify_h" = yes ; then
12174 ac_fn_c_check_func
"$LINENO" "inotify_init1" "ac_cv_func_inotify_init1"
12175 if test "x$ac_cv_func_inotify_init1" = x
""yes; then :
12179 if test "$ac_cv_func_inotify_init1" = yes; then
12181 $as_echo "#define HAVE_INOTIFY 1" >>confdefs.h
12183 NOTIFY_OBJ
=inotify.o
12184 NOTIFY_SUMMARY
="yes -lglibc (inotify)"
12189 case $with_file_notification,$NOTIFY_OBJ in
12190 yes,* | no
,* |
*,?
*) ;;
12191 *) as_fn_error
"File notification \`$with_file_notification' requested but requirements not found." "$LINENO" 5 ;;
12194 if test -n "$NOTIFY_OBJ"; then
12196 $as_echo "#define USE_FILE_NOTIFY 1" >>confdefs.h
12205 if test x
"${USE_X_TOOLKIT}" = xmaybe ||
test x
"${USE_X_TOOLKIT}" = xLUCID
; then
12206 if test "$with_xaw3d" != no
; then
12207 if test "${emacs_cv_xaw3d+set}" = set; then :
12208 $as_echo_n "(cached) " >&6
12210 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12211 /* end confdefs.h. */
12213 #include <X11/Intrinsic.h>
12214 #include <X11/Xaw3d/Simple.h>
12223 if ac_fn_c_try_link
"$LINENO"; then :
12224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XawScrollbarSetThumb in -lXaw3d" >&5
12225 $as_echo_n "checking for XawScrollbarSetThumb in -lXaw3d... " >&6; }
12226 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then :
12227 $as_echo_n "(cached) " >&6
12229 ac_check_lib_save_LIBS
=$LIBS
12230 LIBS
="-lXaw3d $LIBS"
12231 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12232 /* end confdefs.h. */
12234 /* Override any GCC internal prototype to avoid an error.
12235 Use char because int might match the return type of a GCC
12236 builtin and then its argument prototype would still apply. */
12240 char XawScrollbarSetThumb ();
12244 return XawScrollbarSetThumb ();
12249 if ac_fn_c_try_link
"$LINENO"; then :
12250 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=yes
12252 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=no
12254 rm -f core conftest.err conftest.
$ac_objext \
12255 conftest
$ac_exeext conftest.
$ac_ext
12256 LIBS
=$ac_check_lib_save_LIBS
12258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
12259 $as_echo "$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
12260 if test "x$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" = x
""yes; then :
12269 rm -f core conftest.err conftest.
$ac_objext \
12270 conftest
$ac_exeext conftest.
$ac_ext
12276 if test $emacs_cv_xaw3d = yes; then
12277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
12278 $as_echo_n "checking for xaw3d... " >&6; }
12279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
12280 $as_echo "yes; using Lucid toolkit" >&6; }
12281 USE_X_TOOLKIT
=LUCID
12285 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
12288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
12289 $as_echo_n "checking for xaw3d... " >&6; }
12290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12291 $as_echo "no" >&6; }
12292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
12293 $as_echo_n "checking for libXaw... " >&6; }
12294 if test "${emacs_cv_xaw+set}" = set; then :
12295 $as_echo_n "(cached) " >&6
12297 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12298 /* end confdefs.h. */
12300 #include <X11/Intrinsic.h>
12301 #include <X11/Xaw/Simple.h>
12310 if ac_fn_c_try_link
"$LINENO"; then :
12315 rm -f core conftest.err conftest.
$ac_objext \
12316 conftest
$ac_exeext conftest.
$ac_ext
12319 if test $emacs_cv_xaw = yes; then
12320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
12321 $as_echo "yes; using Lucid toolkit" >&6; }
12322 USE_X_TOOLKIT
=LUCID
12324 elif test x
"${USE_X_TOOLKIT}" = xLUCID
; then
12325 as_fn_error
"Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
12327 as_fn_error
"No X toolkit could be found.
12328 If you are sure you want Emacs compiled without an X toolkit, pass
12329 --with-x-toolkit=no
12330 to configure. Otherwise, install the development libraries for the toolkit
12331 that you want to use (e.g. Gtk+) and re-run configure." "$LINENO" 5
12336 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
12339 if test "${USE_X_TOOLKIT}" != "none"; then
12340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
12341 $as_echo_n "checking X11 toolkit version... " >&6; }
12342 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then :
12343 $as_echo_n "(cached) " >&6
12345 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12346 /* end confdefs.h. */
12347 #include <X11/Intrinsic.h>
12351 #if XtSpecificationRelease < 6
12359 if ac_fn_c_try_link
"$LINENO"; then :
12360 emacs_cv_x11_toolkit_version_6
=yes
12362 emacs_cv_x11_toolkit_version_6
=no
12364 rm -f core conftest.err conftest.
$ac_objext \
12365 conftest
$ac_exeext conftest.
$ac_ext
12368 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
12369 if test $emacs_cv_x11_toolkit_version_6 = yes; then
12370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
12371 $as_echo "6 or newer" >&6; }
12373 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
12375 LIBXTR6
="-lSM -lICE"
12377 ## Use libw.a along with X11R6 Xt.
12378 unixware
) LIBXTR6
="$LIBXTR6 -lw" ;;
12381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
12382 $as_echo "before 6" >&6; }
12386 if test x
$HAVE_X11XTR6 = xyes
; then
12387 LIBS
="-lXt -lSM -lICE $LIBS"
12391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
12392 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
12393 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then :
12394 $as_echo_n "(cached) " >&6
12396 ac_check_lib_save_LIBS
=$LIBS
12398 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12399 /* end confdefs.h. */
12401 /* Override any GCC internal prototype to avoid an error.
12402 Use char because int might match the return type of a GCC
12403 builtin and then its argument prototype would still apply. */
12407 char XmuConvertStandardSelection ();
12411 return XmuConvertStandardSelection ();
12416 if ac_fn_c_try_link
"$LINENO"; then :
12417 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
12419 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
12421 rm -f core conftest.err conftest.
$ac_objext \
12422 conftest
$ac_exeext conftest.
$ac_ext
12423 LIBS
=$ac_check_lib_save_LIBS
12425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
12426 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
12427 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x
""yes; then :
12428 cat >>confdefs.h
<<_ACEOF
12429 #define HAVE_LIBXMU 1
12436 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
12442 ## These systems don't supply Xmu.
12444 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU
=
12452 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
12453 if test "${HAVE_X11}" = "yes"; then
12454 if test "${USE_X_TOOLKIT}" != "none"; then
12455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
12456 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
12457 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
12458 $as_echo_n "(cached) " >&6
12460 ac_check_lib_save_LIBS
=$LIBS
12461 LIBS
="-lXext $LIBS"
12462 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12463 /* end confdefs.h. */
12465 /* Override any GCC internal prototype to avoid an error.
12466 Use char because int might match the return type of a GCC
12467 builtin and then its argument prototype would still apply. */
12471 char XShapeQueryExtension ();
12475 return XShapeQueryExtension ();
12480 if ac_fn_c_try_link
"$LINENO"; then :
12481 ac_cv_lib_Xext_XShapeQueryExtension
=yes
12483 ac_cv_lib_Xext_XShapeQueryExtension
=no
12485 rm -f core conftest.err conftest.
$ac_objext \
12486 conftest
$ac_exeext conftest.
$ac_ext
12487 LIBS
=$ac_check_lib_save_LIBS
12489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12490 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12491 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x
""yes; then :
12492 cat >>confdefs.h
<<_ACEOF
12493 #define HAVE_LIBXEXT 1
12496 LIBS
="-lXext $LIBS"
12504 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12505 # OpenMotif may be installed in such a way on some GNU/Linux systems.
12506 if test -d /usr
/include
/openmotif
; then
12507 CPPFLAGS
="-I/usr/include/openmotif $CPPFLAGS"
12508 emacs_cv_openmotif
=yes
12509 case "$canonical" in
12510 x86_64-
*-linux-gnu* | powerpc64-
*-linux-gnu* | sparc64-
*-linux-gnu*)
12511 test -d /usr
/lib64
/openmotif
&& LDFLAGS
="-L/usr/lib64/openmotif $LDFLAGS"
12514 test -d /usr
/lib
/openmotif
&& LDFLAGS
="-L/usr/lib/openmotif $LDFLAGS"
12517 emacs_cv_openmotif
=no
12519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for (Open)Motif version 2.1" >&5
12520 $as_echo_n "checking for (Open)Motif version 2.1... " >&6; }
12521 if test "${emacs_cv_motif_version_2_1+set}" = set; then :
12522 $as_echo_n "(cached) " >&6
12524 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12525 /* end confdefs.h. */
12530 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12533 Motif version prior to 2.1.
12539 if ac_fn_c_try_compile
"$LINENO"; then :
12540 emacs_cv_motif_version_2_1
=yes
12542 emacs_cv_motif_version_2_1
=no
12544 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
12547 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
12548 if test $emacs_cv_motif_version_2_1 = yes; then
12549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
12550 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
12551 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then :
12552 $as_echo_n "(cached) " >&6
12554 ac_check_lib_save_LIBS
=$LIBS
12556 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12557 /* end confdefs.h. */
12559 /* Override any GCC internal prototype to avoid an error.
12560 Use char because int might match the return type of a GCC
12561 builtin and then its argument prototype would still apply. */
12565 char XpCreateContext ();
12569 return XpCreateContext ();
12574 if ac_fn_c_try_link
"$LINENO"; then :
12575 ac_cv_lib_Xp_XpCreateContext
=yes
12577 ac_cv_lib_Xp_XpCreateContext
=no
12579 rm -f core conftest.err conftest.
$ac_objext \
12580 conftest
$ac_exeext conftest.
$ac_ext
12581 LIBS
=$ac_check_lib_save_LIBS
12583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12584 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
12585 if test "x$ac_cv_lib_Xp_XpCreateContext" = x
""yes; then :
12589 if test x
$emacs_cv_openmotif = xyes
; then
12590 REAL_CPPFLAGS
="-I/usr/include/openmotif $REAL_CPPFLAGS"
12593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
12594 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
12595 if test "${emacs_cv_lesstif+set}" = set; then :
12596 $as_echo_n "(cached) " >&6
12598 # We put this in CFLAGS temporarily to precede other -I options
12599 # that might be in CFLAGS temporarily.
12600 # We put this in CPPFLAGS where it precedes the other -I options.
12601 OLD_CPPFLAGS
=$CPPFLAGS
12603 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12604 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12605 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12606 /* end confdefs.h. */
12607 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12616 if ac_fn_c_try_compile
"$LINENO"; then :
12617 emacs_cv_lesstif
=yes
12619 emacs_cv_lesstif
=no
12621 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
12624 $as_echo "$emacs_cv_lesstif" >&6; }
12625 if test $emacs_cv_lesstif = yes; then
12626 # Make sure this -I option remains in CPPFLAGS after it is set
12627 # back to REAL_CPPFLAGS.
12628 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12629 # have those other -I options anyway. Ultimately, having this
12630 # directory ultimately in CPPFLAGS will be enough.
12631 REAL_CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12632 LDFLAGS
="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12635 CPPFLAGS
=$OLD_CPPFLAGS
12638 ac_fn_c_check_header_mongrel
"$LINENO" "Xm/BulletinB.h" "ac_cv_header_Xm_BulletinB_h" "$ac_includes_default"
12639 if test "x$ac_cv_header_Xm_BulletinB_h" = x
""yes; then :
12642 as_fn_error
"Motif toolkit requested but requirements not found." "$LINENO" 5
12649 USE_TOOLKIT_SCROLL_BARS
=no
12650 if test "${with_toolkit_scroll_bars}" != "no"; then
12651 if test "${USE_X_TOOLKIT}" != "none"; then
12652 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12653 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12656 USE_TOOLKIT_SCROLL_BARS
=yes
12657 elif test "${HAVE_XAW3D}" = "yes" ||
test "${USE_X_TOOLKIT}" = "LUCID"; then
12658 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12660 USE_TOOLKIT_SCROLL_BARS
=yes
12662 elif test "${HAVE_GTK}" = "yes"; then
12663 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12665 USE_TOOLKIT_SCROLL_BARS
=yes
12666 elif test "${HAVE_NS}" = "yes"; then
12667 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12669 USE_TOOLKIT_SCROLL_BARS
=yes
12670 elif test "${HAVE_W32}" = "yes"; then
12671 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12673 USE_TOOLKIT_SCROLL_BARS
=yes
12677 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12678 /* end confdefs.h. */
12680 #include <X11/Xlib.h>
12681 #include <X11/Xresource.h>
12690 if ac_fn_c_try_compile
"$LINENO"; then :
12693 $as_echo "#define HAVE_XIM 1" >>confdefs.h
12698 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12701 if test "${with_xim}" != "no"; then
12703 $as_echo "#define USE_XIM 1" >>confdefs.h
12708 if test "${HAVE_XIM}" != "no"; then
12709 late_CFLAGS
=$CFLAGS
12710 if test "$GCC" = yes; then
12711 CFLAGS
="$CFLAGS --pedantic-errors"
12713 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12714 /* end confdefs.h. */
12716 #include <X11/Xlib.h>
12717 #include <X11/Xresource.h>
12726 XPointer *client_data;
12728 /* If we're not using GCC, it's probably not XFree86, and this is
12729 probably right, but we can't use something like --pedantic-errors. */
12730 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12731 char*, XIMProc, XPointer*);
12733 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12739 if ac_fn_c_try_compile
"$LINENO"; then :
12740 emacs_cv_arg6_star
=yes
12742 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12743 if test "$emacs_cv_arg6_star" = yes; then
12744 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
12747 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
12750 CFLAGS
=$late_CFLAGS
12753 ### Start of font-backend (under any platform) section.
12754 # (nothing here yet -- this is a placeholder)
12755 ### End of font-backend (under any platform) section.
12757 ### Start of font-backend (under X11) section.
12758 if test "${HAVE_X11}" = "yes"; then
12762 if test "$PKG_CONFIG" = "no" ; then
12765 PKG_CONFIG_MIN_VERSION
=0.9.0
12766 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
12768 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
12770 if "$PKG_CONFIG" --exists "fontconfig >= 2.2.0" 2>&5 &&
12771 FONTCONFIG_CFLAGS
=`"$PKG_CONFIG" --cflags "fontconfig >= 2.2.0" 2>&5` &&
12772 FONTCONFIG_LIBS
=`"$PKG_CONFIG" --libs "fontconfig >= 2.2.0" 2>&5`; then
12779 FONTCONFIG_CFLAGS
=`$as_echo "$FONTCONFIG_CFLAGS" | sed -e "$edit_cflags"`
12780 FONTCONFIG_LIBS
=`$as_echo "$FONTCONFIG_LIBS" | sed -e 's,///*,/,g'`
12781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$FONTCONFIG_CFLAGS' LIBS='$FONTCONFIG_LIBS'" >&5
12782 $as_echo "yes CFLAGS='$FONTCONFIG_CFLAGS' LIBS='$FONTCONFIG_LIBS'" >&6; }
12785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12786 $as_echo "no" >&6; }
12787 FONTCONFIG_CFLAGS
=""
12789 ## If we have a custom action on failure, don't print errors, but
12790 ## do set a variable so people can do so. Do it in a subshell
12791 ## to capture any diagnostics in invoking pkg-config.
12792 FONTCONFIG_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "fontconfig >= 2.2.0") 2>&1`
12799 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12800 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12804 if test $succeeded = yes; then
12811 ## Use -lXft if available, unless `--with-xft=no'.
12813 if test "${HAVE_FC}" = "no" ||
test "x${with_x}" = "xno"; then
12816 if test "x${with_xft}" != "xno"; then
12821 if test "$PKG_CONFIG" = "no" ; then
12824 PKG_CONFIG_MIN_VERSION
=0.9.0
12825 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
12827 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
12829 if "$PKG_CONFIG" --exists "xft >= 0.13.0" 2>&5 &&
12830 XFT_CFLAGS
=`"$PKG_CONFIG" --cflags "xft >= 0.13.0" 2>&5` &&
12831 XFT_LIBS
=`"$PKG_CONFIG" --libs "xft >= 0.13.0" 2>&5`; then
12838 XFT_CFLAGS
=`$as_echo "$XFT_CFLAGS" | sed -e "$edit_cflags"`
12839 XFT_LIBS
=`$as_echo "$XFT_LIBS" | sed -e 's,///*,/,g'`
12840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$XFT_CFLAGS' LIBS='$XFT_LIBS'" >&5
12841 $as_echo "yes CFLAGS='$XFT_CFLAGS' LIBS='$XFT_LIBS'" >&6; }
12844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12845 $as_echo "no" >&6; }
12848 ## If we have a custom action on failure, don't print errors, but
12849 ## do set a variable so people can do so. Do it in a subshell
12850 ## to capture any diagnostics in invoking pkg-config.
12851 XFT_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "xft >= 0.13.0") 2>&1`
12858 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12859 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12863 if test $succeeded = yes; then
12869 ## Because xftfont.c uses XRenderQueryExtension, we also
12870 ## need to link to -lXrender.
12872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
12873 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
12874 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
12875 $as_echo_n "(cached) " >&6
12877 ac_check_lib_save_LIBS
=$LIBS
12878 LIBS
="-lXrender $LIBS"
12879 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12880 /* end confdefs.h. */
12882 /* Override any GCC internal prototype to avoid an error.
12883 Use char because int might match the return type of a GCC
12884 builtin and then its argument prototype would still apply. */
12888 char XRenderQueryExtension ();
12892 return XRenderQueryExtension ();
12897 if ac_fn_c_try_link
"$LINENO"; then :
12898 ac_cv_lib_Xrender_XRenderQueryExtension
=yes
12900 ac_cv_lib_Xrender_XRenderQueryExtension
=no
12902 rm -f core conftest.err conftest.
$ac_objext \
12903 conftest
$ac_exeext conftest.
$ac_ext
12904 LIBS
=$ac_check_lib_save_LIBS
12906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
12907 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
12908 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x
""yes; then :
12912 if test "$HAVE_XFT" != no
&& test "$HAVE_XRENDER" != no
; then
12913 OLD_CPPFLAGS
="$CPPFLAGS"
12914 OLD_CFLAGS
="$CFLAGS"
12916 CPPFLAGS
="$CPPFLAGS $XFT_CFLAGS"
12917 CFLAGS
="$CFLAGS $XFT_CFLAGS"
12918 XFT_LIBS
="-lXrender $XFT_LIBS"
12919 LIBS
="$XFT_LIBS $LIBS"
12920 ac_fn_c_check_header_compile
"$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "#include <X11/X.h>
12922 if test "x$ac_cv_header_X11_Xft_Xft_h" = x
""yes; then :
12923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
12924 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
12925 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then :
12926 $as_echo_n "(cached) " >&6
12928 ac_check_lib_save_LIBS
=$LIBS
12929 LIBS
="-lXft $XFT_LIBS $LIBS"
12930 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12931 /* end confdefs.h. */
12933 /* Override any GCC internal prototype to avoid an error.
12934 Use char because int might match the return type of a GCC
12935 builtin and then its argument prototype would still apply. */
12939 char XftFontOpen ();
12943 return XftFontOpen ();
12948 if ac_fn_c_try_link
"$LINENO"; then :
12949 ac_cv_lib_Xft_XftFontOpen
=yes
12951 ac_cv_lib_Xft_XftFontOpen
=no
12953 rm -f core conftest.err conftest.
$ac_objext \
12954 conftest
$ac_exeext conftest.
$ac_ext
12955 LIBS
=$ac_check_lib_save_LIBS
12957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
12958 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
12959 if test "x$ac_cv_lib_Xft_XftFontOpen" = x
""yes; then :
12967 if test "${HAVE_XFT}" = "yes"; then
12969 $as_echo "#define HAVE_XFT 1" >>confdefs.h
12972 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $XFT_CFLAGS"
12974 CPPFLAGS
="$OLD_CPPFLAGS"
12975 CFLAGS
="$OLD_CFLAGS"
12977 fi # "${HAVE_XFT}" = "yes"
12978 fi # "$HAVE_XFT" != no
12979 fi # "x${with_xft}" != "xno"
12981 ## We used to allow building with FreeType and without Xft.
12982 ## However, the ftx font backend driver is not in good shape.
12983 if test "$HAVE_XFT" != "yes"; then
12990 if test "$PKG_CONFIG" = "no" ; then
12993 PKG_CONFIG_MIN_VERSION
=0.9.0
12994 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype2" >&5
12996 $as_echo_n "checking for freetype2... " >&6; }
12998 if "$PKG_CONFIG" --exists "freetype2" 2>&5 &&
12999 FREETYPE_CFLAGS
=`"$PKG_CONFIG" --cflags "freetype2" 2>&5` &&
13000 FREETYPE_LIBS
=`"$PKG_CONFIG" --libs "freetype2" 2>&5`; then
13007 FREETYPE_CFLAGS
=`$as_echo "$FREETYPE_CFLAGS" | sed -e "$edit_cflags"`
13008 FREETYPE_LIBS
=`$as_echo "$FREETYPE_LIBS" | sed -e 's,///*,/,g'`
13009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$FREETYPE_CFLAGS' LIBS='$FREETYPE_LIBS'" >&5
13010 $as_echo "yes CFLAGS='$FREETYPE_CFLAGS' LIBS='$FREETYPE_LIBS'" >&6; }
13013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13014 $as_echo "no" >&6; }
13017 ## If we have a custom action on failure, don't print errors, but
13018 ## do set a variable so people can do so. Do it in a subshell
13019 ## to capture any diagnostics in invoking pkg-config.
13020 FREETYPE_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "freetype2") 2>&1`
13027 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13028 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13032 if test $succeeded = yes; then
13039 test "$HAVE_FREETYPE" = "no" && as_fn_error
"libxft requires libfreetype" "$LINENO" 5
13043 if test "${HAVE_FREETYPE}" = "yes"; then
13045 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
13047 if test "${with_libotf}" != "no"; then
13051 if test "$PKG_CONFIG" = "no" ; then
13054 PKG_CONFIG_MIN_VERSION
=0.9.0
13055 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
13057 $as_echo_n "checking for libotf... " >&6; }
13059 if "$PKG_CONFIG" --exists "libotf" 2>&5 &&
13060 LIBOTF_CFLAGS
=`"$PKG_CONFIG" --cflags "libotf" 2>&5` &&
13061 LIBOTF_LIBS
=`"$PKG_CONFIG" --libs "libotf" 2>&5`; then
13068 LIBOTF_CFLAGS
=`$as_echo "$LIBOTF_CFLAGS" | sed -e "$edit_cflags"`
13069 LIBOTF_LIBS
=`$as_echo "$LIBOTF_LIBS" | sed -e 's,///*,/,g'`
13070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBOTF_CFLAGS' LIBS='$LIBOTF_LIBS'" >&5
13071 $as_echo "yes CFLAGS='$LIBOTF_CFLAGS' LIBS='$LIBOTF_LIBS'" >&6; }
13074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13075 $as_echo "no" >&6; }
13078 ## If we have a custom action on failure, don't print errors, but
13079 ## do set a variable so people can do so. Do it in a subshell
13080 ## to capture any diagnostics in invoking pkg-config.
13081 LIBOTF_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "libotf") 2>&1`
13088 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13089 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13093 if test $succeeded = yes; then
13099 if test "$HAVE_LIBOTF" = "yes"; then
13101 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
13103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
13104 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
13105 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then :
13106 $as_echo_n "(cached) " >&6
13108 ac_check_lib_save_LIBS
=$LIBS
13110 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13111 /* end confdefs.h. */
13113 /* Override any GCC internal prototype to avoid an error.
13114 Use char because int might match the return type of a GCC
13115 builtin and then its argument prototype would still apply. */
13119 char OTF_get_variation_glyphs ();
13123 return OTF_get_variation_glyphs ();
13128 if ac_fn_c_try_link
"$LINENO"; then :
13129 ac_cv_lib_otf_OTF_get_variation_glyphs
=yes
13131 ac_cv_lib_otf_OTF_get_variation_glyphs
=no
13133 rm -f core conftest.err conftest.
$ac_objext \
13134 conftest
$ac_exeext conftest.
$ac_ext
13135 LIBS
=$ac_check_lib_save_LIBS
13137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
13138 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
13139 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x
""yes; then :
13140 HAVE_OTF_GET_VARIATION_GLYPHS
=yes
13142 HAVE_OTF_GET_VARIATION_GLYPHS
=no
13145 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
13147 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
13155 if test "${HAVE_LIBOTF}" = yes; then
13156 if test "${with_m17n_flt}" != "no"; then
13160 if test "$PKG_CONFIG" = "no" ; then
13163 PKG_CONFIG_MIN_VERSION
=0.9.0
13164 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
13166 $as_echo_n "checking for m17n-flt... " >&6; }
13168 if "$PKG_CONFIG" --exists "m17n-flt" 2>&5 &&
13169 M17N_FLT_CFLAGS
=`"$PKG_CONFIG" --cflags "m17n-flt" 2>&5` &&
13170 M17N_FLT_LIBS
=`"$PKG_CONFIG" --libs "m17n-flt" 2>&5`; then
13177 M17N_FLT_CFLAGS
=`$as_echo "$M17N_FLT_CFLAGS" | sed -e "$edit_cflags"`
13178 M17N_FLT_LIBS
=`$as_echo "$M17N_FLT_LIBS" | sed -e 's,///*,/,g'`
13179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$M17N_FLT_CFLAGS' LIBS='$M17N_FLT_LIBS'" >&5
13180 $as_echo "yes CFLAGS='$M17N_FLT_CFLAGS' LIBS='$M17N_FLT_LIBS'" >&6; }
13183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13184 $as_echo "no" >&6; }
13187 ## If we have a custom action on failure, don't print errors, but
13188 ## do set a variable so people can do so. Do it in a subshell
13189 ## to capture any diagnostics in invoking pkg-config.
13190 M17N_FLT_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "m17n-flt") 2>&1`
13197 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13198 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13202 if test $succeeded = yes; then
13208 if test "$HAVE_M17N_FLT" = "yes"; then
13210 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
13222 ### End of font-backend (under X11) section.
13233 ### Use -lXpm if available, unless `--with-xpm=no'.
13234 ### mingw32 doesn't use -lXpm, since it loads the library dynamically.
13237 if test "${HAVE_W32}" = "yes" && test "${opsys}" = "cygwin"; then
13238 if test "${with_xpm}" != "no"; then
13239 SAVE_CPPFLAGS
="$CPPFLAGS"
13240 SAVE_LDFLAGS
="$LDFLAGS"
13241 CPPFLAGS
="$CPPFLAGS -I/usr/include/noX"
13242 LDFLAGS
="$LDFLAGS -L/usr/lib/noX"
13243 ac_fn_c_check_header_mongrel
"$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
13244 if test "x$ac_cv_header_X11_xpm_h" = x
""yes; then :
13245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToImage in -lXpm" >&5
13246 $as_echo_n "checking for XpmReadFileToImage in -lXpm... " >&6; }
13247 if test "${ac_cv_lib_Xpm_XpmReadFileToImage+set}" = set; then :
13248 $as_echo_n "(cached) " >&6
13250 ac_check_lib_save_LIBS
=$LIBS
13252 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13253 /* end confdefs.h. */
13255 /* Override any GCC internal prototype to avoid an error.
13256 Use char because int might match the return type of a GCC
13257 builtin and then its argument prototype would still apply. */
13261 char XpmReadFileToImage ();
13265 return XpmReadFileToImage ();
13270 if ac_fn_c_try_link
"$LINENO"; then :
13271 ac_cv_lib_Xpm_XpmReadFileToImage
=yes
13273 ac_cv_lib_Xpm_XpmReadFileToImage
=no
13275 rm -f core conftest.err conftest.
$ac_objext \
13276 conftest
$ac_exeext conftest.
$ac_ext
13277 LIBS
=$ac_check_lib_save_LIBS
13279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToImage" >&5
13280 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToImage" >&6; }
13281 if test "x$ac_cv_lib_Xpm_XpmReadFileToImage" = x
""yes; then :
13288 if test "${HAVE_XPM}" = "yes"; then
13289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
13290 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
13291 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13292 /* end confdefs.h. */
13293 #include "X11/xpm.h"
13294 #ifndef XpmReturnAllocPixels
13295 no_return_alloc_pixels
13299 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13300 $EGREP "no_return_alloc_pixels" >/dev
/null
2>&1; then :
13308 if test "${HAVE_XPM}" = "yes"; then
13309 REAL_CPPFLAGS
="$REAL_CPPFLAGS -I/usr/include/noX"
13310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13311 $as_echo "yes" >&6; }
13313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13314 $as_echo "no" >&6; }
13315 CPPFLAGS
="$SAVE_CPPFLAGS"
13316 LDFLAGS
="$SAVE_LDFLAGS"
13321 if test "${HAVE_XPM}" = "yes"; then
13323 $as_echo "#define HAVE_XPM 1" >>confdefs.h
13329 if test "${HAVE_X11}" = "yes"; then
13330 if test "${with_xpm}" != "no"; then
13331 ac_fn_c_check_header_mongrel
"$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
13332 if test "x$ac_cv_header_X11_xpm_h" = x
""yes; then :
13333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
13334 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
13335 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then :
13336 $as_echo_n "(cached) " >&6
13338 ac_check_lib_save_LIBS
=$LIBS
13339 LIBS
="-lXpm -lX11 $LIBS"
13340 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13341 /* end confdefs.h. */
13343 /* Override any GCC internal prototype to avoid an error.
13344 Use char because int might match the return type of a GCC
13345 builtin and then its argument prototype would still apply. */
13349 char XpmReadFileToPixmap ();
13353 return XpmReadFileToPixmap ();
13358 if ac_fn_c_try_link
"$LINENO"; then :
13359 ac_cv_lib_Xpm_XpmReadFileToPixmap
=yes
13361 ac_cv_lib_Xpm_XpmReadFileToPixmap
=no
13363 rm -f core conftest.err conftest.
$ac_objext \
13364 conftest
$ac_exeext conftest.
$ac_ext
13365 LIBS
=$ac_check_lib_save_LIBS
13367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
13368 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
13369 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x
""yes; then :
13376 if test "${HAVE_XPM}" = "yes"; then
13377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
13378 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
13379 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13380 /* end confdefs.h. */
13381 #include "X11/xpm.h"
13382 #ifndef XpmReturnAllocPixels
13383 no_return_alloc_pixels
13387 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13388 $EGREP "no_return_alloc_pixels" >/dev
/null
2>&1; then :
13396 if test "${HAVE_XPM}" = "yes"; then
13397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13398 $as_echo "yes" >&6; }
13400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13401 $as_echo "no" >&6; }
13406 if test "${HAVE_XPM}" = "yes"; then
13408 $as_echo "#define HAVE_XPM 1" >>confdefs.h
13414 ### FIXME: Perhaps regroup to minimize code duplication due to MinGW's
13415 ### slightly different requirements wrt image libraries (it doesn't
13416 ### use -lXpm because it loads the xpm shared library dynamically at
13418 if test "${opsys}" = "mingw32"; then
13419 if test "${with_xpm}" != "no"; then
13420 ac_fn_c_check_header_compile
"$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "
13423 if test "x$ac_cv_header_X11_xpm_h" = x
""yes; then :
13432 if test "${HAVE_XPM}" = "yes"; then
13434 $as_echo "#define HAVE_XPM 1" >>confdefs.h
13441 ### Use -ljpeg if available, unless `--with-jpeg=no'.
13442 ### mingw32 doesn't use -ljpeg, since it loads the library dynamically.
13445 if test "${opsys}" = "mingw32"; then
13446 if test "${with_jpeg}" != "no"; then
13447 ac_fn_c_check_header_mongrel
"$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
13448 if test "x$ac_cv_header_jerror_h" = x
""yes; then :
13456 if test "${HAVE_JPEG}" = "yes"; then
13457 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
13459 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13460 /* end confdefs.h. */
13461 #include <jpeglib.h>
13462 version=JPEG_LIB_VERSION
13465 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13466 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev
/null
2>&1; then :
13467 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
13470 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
13471 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13477 elif test "${HAVE_X11}" = "yes" ||
test "${HAVE_W32}" = "yes"; then
13478 if test "${with_jpeg}" != "no"; then
13479 ac_fn_c_check_header_mongrel
"$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
13480 if test "x$ac_cv_header_jerror_h" = x
""yes; then :
13481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
13482 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
13483 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then :
13484 $as_echo_n "(cached) " >&6
13486 ac_check_lib_save_LIBS
=$LIBS
13487 LIBS
="-ljpeg $LIBS"
13488 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13489 /* end confdefs.h. */
13491 /* Override any GCC internal prototype to avoid an error.
13492 Use char because int might match the return type of a GCC
13493 builtin and then its argument prototype would still apply. */
13497 char jpeg_destroy_compress ();
13501 return jpeg_destroy_compress ();
13506 if ac_fn_c_try_link
"$LINENO"; then :
13507 ac_cv_lib_jpeg_jpeg_destroy_compress
=yes
13509 ac_cv_lib_jpeg_jpeg_destroy_compress
=no
13511 rm -f core conftest.err conftest.
$ac_objext \
13512 conftest
$ac_exeext conftest.
$ac_ext
13513 LIBS
=$ac_check_lib_save_LIBS
13515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13516 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13517 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x
""yes; then :
13526 if test "${HAVE_JPEG}" = "yes"; then
13527 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
13529 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13530 /* end confdefs.h. */
13531 #include <jpeglib.h>
13532 version=JPEG_LIB_VERSION
13535 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13536 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev
/null
2>&1; then :
13537 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
13540 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
13541 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13547 if test "${HAVE_JPEG}" = "yes"; then
13553 ### Use -lpng if available, unless `--with-png=no'.
13554 ### mingw32 doesn't use -lpng, since it loads the library dynamically.
13557 if test "${opsys}" = "mingw32"; then
13558 if test "${with_png}" != "no"; then
13559 ac_fn_c_check_header_mongrel
"$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
13560 if test "x$ac_cv_header_png_h" = x
""yes; then :
13568 if test "${HAVE_PNG}" = "yes"; then
13570 $as_echo "#define HAVE_PNG 1" >>confdefs.h
13573 ac_fn_c_check_decl
"$LINENO" "png_longjmp" "ac_cv_have_decl_png_longjmp" "#ifdef HAVE_LIBPNG_PNG_H
13574 # include <libpng/png.h>
13580 if test "x$ac_cv_have_decl_png_longjmp" = x
""yes; then :
13584 $as_echo "#define PNG_DEPSTRUCT /**/" >>confdefs.h
13589 elif test "${HAVE_X11}" = "yes" ||
test "${HAVE_W32}" = "yes"; then
13590 if test "${with_png}" != "no"; then
13591 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13592 # in /usr/include/libpng.
13593 for ac_header
in png.h libpng
/png.h
13595 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13596 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13597 eval as_val
=\$
$as_ac_Header
13598 if test "x$as_val" = x
""yes; then :
13599 cat >>confdefs.h
<<_ACEOF
13600 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13607 if test "$ac_cv_header_png_h" = yes ||
test "$ac_cv_header_libpng_png_h" = yes ; then
13608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
13609 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
13610 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then :
13611 $as_echo_n "(cached) " >&6
13613 ac_check_lib_save_LIBS
=$LIBS
13614 LIBS
="-lpng -lz -lm $LIBS"
13615 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13616 /* end confdefs.h. */
13618 /* Override any GCC internal prototype to avoid an error.
13619 Use char because int might match the return type of a GCC
13620 builtin and then its argument prototype would still apply. */
13624 char png_get_channels ();
13628 return png_get_channels ();
13633 if ac_fn_c_try_link
"$LINENO"; then :
13634 ac_cv_lib_png_png_get_channels
=yes
13636 ac_cv_lib_png_png_get_channels
=no
13638 rm -f core conftest.err conftest.
$ac_objext \
13639 conftest
$ac_exeext conftest.
$ac_ext
13640 LIBS
=$ac_check_lib_save_LIBS
13642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
13643 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
13644 if test "x$ac_cv_lib_png_png_get_channels" = x
""yes; then :
13651 if test "${HAVE_PNG}" = "yes"; then
13653 $as_echo "#define HAVE_PNG 1" >>confdefs.h
13655 LIBPNG
="-lpng -lz -lm"
13657 ac_fn_c_check_decl
"$LINENO" "png_longjmp" "ac_cv_have_decl_png_longjmp" "#ifdef HAVE_LIBPNG_PNG_H
13658 # include <libpng/png.h>
13664 if test "x$ac_cv_have_decl_png_longjmp" = x
""yes; then :
13668 $as_echo "#define PNG_DEPSTRUCT /**/" >>confdefs.h
13678 if test "${with_zlib}" != "no"; then
13680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inflateEnd" >&5
13681 $as_echo_n "checking for library containing inflateEnd... " >&6; }
13682 if test "${ac_cv_search_inflateEnd+set}" = set; then :
13683 $as_echo_n "(cached) " >&6
13685 ac_func_search_save_LIBS
=$LIBS
13686 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13687 /* end confdefs.h. */
13689 /* Override any GCC internal prototype to avoid an error.
13690 Use char because int might match the return type of a GCC
13691 builtin and then its argument prototype would still apply. */
13695 char inflateEnd ();
13699 return inflateEnd ();
13704 for ac_lib
in '' z
; do
13705 if test -z "$ac_lib"; then
13706 ac_res
="none required"
13709 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
13711 if ac_fn_c_try_link
"$LINENO"; then :
13712 ac_cv_search_inflateEnd
=$ac_res
13714 rm -f core conftest.err conftest.
$ac_objext \
13716 if test "${ac_cv_search_inflateEnd+set}" = set; then :
13720 if test "${ac_cv_search_inflateEnd+set}" = set; then :
13723 ac_cv_search_inflateEnd
=no
13725 rm conftest.
$ac_ext
13726 LIBS
=$ac_func_search_save_LIBS
13728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inflateEnd" >&5
13729 $as_echo "$ac_cv_search_inflateEnd" >&6; }
13730 ac_res
=$ac_cv_search_inflateEnd
13731 if test "$ac_res" != no
; then :
13732 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
13737 case $ac_cv_search_inflateEnd in
13738 -*) LIBZ
=$ac_cv_search_inflateEnd ;;
13741 if test "${HAVE_ZLIB}" = "yes"; then
13743 $as_echo "#define HAVE_ZLIB 1" >>confdefs.h
13745 ### mingw32 doesn't use -lz, since it loads the library dynamically.
13746 if test "${opsys}" = "mingw32"; then
13753 ### Use -ltiff if available, unless `--with-tiff=no'.
13754 ### mingw32 doesn't use -ltiff, since it loads the library dynamically.
13757 if test "${opsys}" = "mingw32"; then
13758 if test "${with_tiff}" != "no"; then
13759 ac_fn_c_check_header_mongrel
"$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
13760 if test "x$ac_cv_header_tiffio_h" = x
""yes; then :
13768 if test "${HAVE_TIFF}" = "yes"; then
13770 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
13773 elif test "${HAVE_X11}" = "yes" ||
test "${HAVE_W32}" = "yes"; then
13774 if test "${with_tiff}" != "no"; then
13775 ac_fn_c_check_header_mongrel
"$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
13776 if test "x$ac_cv_header_tiffio_h" = x
""yes; then :
13778 # At least one tiff package requires the jpeg library.
13779 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
13780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
13781 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
13782 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then :
13783 $as_echo_n "(cached) " >&6
13785 ac_check_lib_save_LIBS
=$LIBS
13786 LIBS
="-ltiff $tifflibs $LIBS"
13787 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13788 /* end confdefs.h. */
13790 /* Override any GCC internal prototype to avoid an error.
13791 Use char because int might match the return type of a GCC
13792 builtin and then its argument prototype would still apply. */
13796 char TIFFGetVersion ();
13800 return TIFFGetVersion ();
13805 if ac_fn_c_try_link
"$LINENO"; then :
13806 ac_cv_lib_tiff_TIFFGetVersion
=yes
13808 ac_cv_lib_tiff_TIFFGetVersion
=no
13810 rm -f core conftest.err conftest.
$ac_objext \
13811 conftest
$ac_exeext conftest.
$ac_ext
13812 LIBS
=$ac_check_lib_save_LIBS
13814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
13815 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
13816 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x
""yes; then :
13825 if test "${HAVE_TIFF}" = "yes"; then
13827 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
13834 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
13835 ### mingw32 doesn't use -lgif/-lungif, since it loads the library dynamically.
13838 if test "${opsys}" = "mingw32"; then
13839 if test "${with_gif}" != "no"; then
13840 ac_fn_c_check_header_mongrel
"$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
13841 if test "x$ac_cv_header_gif_lib_h" = x
""yes; then :
13849 if test "${HAVE_GIF}" = "yes"; then
13851 $as_echo "#define HAVE_GIF 1" >>confdefs.h
13854 elif test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no" \
13855 ||
test "${HAVE_W32}" = "yes"; then
13856 ac_fn_c_check_header_mongrel
"$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
13857 if test "x$ac_cv_header_gif_lib_h" = x
""yes; then :
13858 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
13859 # Earlier versions can crash Emacs.
13860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
13861 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
13862 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then :
13863 $as_echo_n "(cached) " >&6
13865 ac_check_lib_save_LIBS
=$LIBS
13867 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13868 /* end confdefs.h. */
13870 /* Override any GCC internal prototype to avoid an error.
13871 Use char because int might match the return type of a GCC
13872 builtin and then its argument prototype would still apply. */
13876 char EGifPutExtensionLast ();
13880 return EGifPutExtensionLast ();
13885 if ac_fn_c_try_link
"$LINENO"; then :
13886 ac_cv_lib_gif_EGifPutExtensionLast
=yes
13888 ac_cv_lib_gif_EGifPutExtensionLast
=no
13890 rm -f core conftest.err conftest.
$ac_objext \
13891 conftest
$ac_exeext conftest.
$ac_ext
13892 LIBS
=$ac_check_lib_save_LIBS
13894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
13895 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
13896 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x
""yes; then :
13906 if test "$HAVE_GIF" = yes; then
13908 elif test "$HAVE_GIF" = maybe
; then
13909 # If gif_lib.h but no libgif, try libungif.
13910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
13911 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
13912 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then :
13913 $as_echo_n "(cached) " >&6
13915 ac_check_lib_save_LIBS
=$LIBS
13916 LIBS
="-lungif $LIBS"
13917 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13918 /* end confdefs.h. */
13920 /* Override any GCC internal prototype to avoid an error.
13921 Use char because int might match the return type of a GCC
13922 builtin and then its argument prototype would still apply. */
13926 char EGifPutExtensionLast ();
13930 return EGifPutExtensionLast ();
13935 if ac_fn_c_try_link
"$LINENO"; then :
13936 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
13938 ac_cv_lib_ungif_EGifPutExtensionLast
=no
13940 rm -f core conftest.err conftest.
$ac_objext \
13941 conftest
$ac_exeext conftest.
$ac_ext
13942 LIBS
=$ac_check_lib_save_LIBS
13944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
13945 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
13946 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x
""yes; then :
13952 test "$HAVE_GIF" = yes && LIBGIF
=-lungif
13955 if test "${HAVE_GIF}" = "yes"; then
13957 $as_echo "#define HAVE_GIF 1" >>confdefs.h
13963 if test "${HAVE_X11}" = "yes"; then
13966 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
13967 MISSING
="libXpm" && WITH_NO
="--with-xpm=no"
13968 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
13969 MISSING
="$MISSING libjpeg" && WITH_NO
="$WITH_NO --with-jpeg=no"
13970 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
13971 MISSING
="$MISSING libpng" && WITH_NO
="$WITH_NO --with-png=no"
13972 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
13973 MISSING
="$MISSING libgif/libungif" && WITH_NO
="$WITH_NO --with-gif=no"
13974 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
13975 MISSING
="$MISSING libtiff" && WITH_NO
="$WITH_NO --with-tiff=no"
13977 if test "X${MISSING}" != X
; then
13978 as_fn_error
"The following required libraries were not found:
13980 Maybe some development libraries/packages are missing?
13981 If you don't want to link with them give
13983 as options to configure" "$LINENO" 5
13987 ### Use -lgpm if available, unless `--with-gpm=no'.
13990 if test "${with_gpm}" != "no"; then
13991 ac_fn_c_check_header_mongrel
"$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
13992 if test "x$ac_cv_header_gpm_h" = x
""yes; then :
13993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
13994 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
13995 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then :
13996 $as_echo_n "(cached) " >&6
13998 ac_check_lib_save_LIBS
=$LIBS
14000 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14001 /* end confdefs.h. */
14003 /* Override any GCC internal prototype to avoid an error.
14004 Use char because int might match the return type of a GCC
14005 builtin and then its argument prototype would still apply. */
14013 return Gpm_Open ();
14018 if ac_fn_c_try_link
"$LINENO"; then :
14019 ac_cv_lib_gpm_Gpm_Open
=yes
14021 ac_cv_lib_gpm_Gpm_Open
=no
14023 rm -f core conftest.err conftest.
$ac_objext \
14024 conftest
$ac_exeext conftest.
$ac_ext
14025 LIBS
=$ac_check_lib_save_LIBS
14027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
14028 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
14029 if test "x$ac_cv_lib_gpm_Gpm_Open" = x
""yes; then :
14037 if test "${HAVE_GPM}" = "yes"; then
14039 $as_echo "#define HAVE_GPM 1" >>confdefs.h
14051 ### Use NeXTstep API to implement GUI.
14052 if test "${HAVE_NS}" = "yes"; then
14054 $as_echo "#define HAVE_NS 1" >>confdefs.h
14056 if test "${NS_IMPL_COCOA}" = "yes"; then
14058 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
14061 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
14063 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
14065 # See also .m.o rule in Makefile.in */
14066 # FIXME: are all these flags really needed? Document here why. */
14067 GNUSTEP_CFLAGS
="-D_REENTRANT -fPIC -fno-strict-aliasing -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
14068 ## Extra CFLAGS applied to src/*.m files.
14069 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"
14071 # We also have mouse menus.
14076 if test "${HAVE_W32}" = "yes"; then
14080 ### Use session management (-lSM -lICE) if available
14083 if test "${HAVE_X11}" = "yes"; then
14084 ac_fn_c_check_header_mongrel
"$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
14085 if test "x$ac_cv_header_X11_SM_SMlib_h" = x
""yes; then :
14086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
14087 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
14088 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then :
14089 $as_echo_n "(cached) " >&6
14091 ac_check_lib_save_LIBS
=$LIBS
14092 LIBS
="-lSM -lICE $LIBS"
14093 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14094 /* end confdefs.h. */
14096 /* Override any GCC internal prototype to avoid an error.
14097 Use char because int might match the return type of a GCC
14098 builtin and then its argument prototype would still apply. */
14102 char SmcOpenConnection ();
14106 return SmcOpenConnection ();
14111 if ac_fn_c_try_link
"$LINENO"; then :
14112 ac_cv_lib_SM_SmcOpenConnection
=yes
14114 ac_cv_lib_SM_SmcOpenConnection
=no
14116 rm -f core conftest.err conftest.
$ac_objext \
14117 conftest
$ac_exeext conftest.
$ac_ext
14118 LIBS
=$ac_check_lib_save_LIBS
14120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
14121 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
14122 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x
""yes; then :
14130 if test "${HAVE_X_SM}" = "yes"; then
14132 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
14134 LIBXSM
="-lSM -lICE"
14137 *) LIBS
="$LIBXSM $LIBS" ;;
14143 ### Use XRandr (-lXrandr) if available
14145 if test "${HAVE_X11}" = "yes"; then
14146 XRANDR_REQUIRED
=1.2.2
14147 XRANDR_MODULES
="xrandr >= $XRANDR_REQUIRED"
14151 if test "$PKG_CONFIG" = "no" ; then
14154 PKG_CONFIG_MIN_VERSION
=0.9.0
14155 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $XRANDR_MODULES" >&5
14157 $as_echo_n "checking for $XRANDR_MODULES... " >&6; }
14159 if "$PKG_CONFIG" --exists "$XRANDR_MODULES" 2>&5 &&
14160 XRANDR_CFLAGS
=`"$PKG_CONFIG" --cflags "$XRANDR_MODULES" 2>&5` &&
14161 XRANDR_LIBS
=`"$PKG_CONFIG" --libs "$XRANDR_MODULES" 2>&5`; then
14168 XRANDR_CFLAGS
=`$as_echo "$XRANDR_CFLAGS" | sed -e "$edit_cflags"`
14169 XRANDR_LIBS
=`$as_echo "$XRANDR_LIBS" | sed -e 's,///*,/,g'`
14170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$XRANDR_CFLAGS' LIBS='$XRANDR_LIBS'" >&5
14171 $as_echo "yes CFLAGS='$XRANDR_CFLAGS' LIBS='$XRANDR_LIBS'" >&6; }
14174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14175 $as_echo "no" >&6; }
14178 ## If we have a custom action on failure, don't print errors, but
14179 ## do set a variable so people can do so. Do it in a subshell
14180 ## to capture any diagnostics in invoking pkg-config.
14181 XRANDR_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "$XRANDR_MODULES") 2>&1`
14188 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14189 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14193 if test $succeeded = yes; then
14199 if test $HAVE_XRANDR = no
; then
14200 # Test old way in case pkg-config doesn't have it (older machines).
14201 ac_fn_c_check_header_mongrel
"$LINENO" "X11/extensions/Xrandr.h" "ac_cv_header_X11_extensions_Xrandr_h" "$ac_includes_default"
14202 if test "x$ac_cv_header_X11_extensions_Xrandr_h" = x
""yes; then :
14203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRRGetScreenResources in -lXrandr" >&5
14204 $as_echo_n "checking for XRRGetScreenResources in -lXrandr... " >&6; }
14205 if test "${ac_cv_lib_Xrandr_XRRGetScreenResources+set}" = set; then :
14206 $as_echo_n "(cached) " >&6
14208 ac_check_lib_save_LIBS
=$LIBS
14209 LIBS
="-lXrandr $LIBS"
14210 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14211 /* end confdefs.h. */
14213 /* Override any GCC internal prototype to avoid an error.
14214 Use char because int might match the return type of a GCC
14215 builtin and then its argument prototype would still apply. */
14219 char XRRGetScreenResources ();
14223 return XRRGetScreenResources ();
14228 if ac_fn_c_try_link
"$LINENO"; then :
14229 ac_cv_lib_Xrandr_XRRGetScreenResources
=yes
14231 ac_cv_lib_Xrandr_XRRGetScreenResources
=no
14233 rm -f core conftest.err conftest.
$ac_objext \
14234 conftest
$ac_exeext conftest.
$ac_ext
14235 LIBS
=$ac_check_lib_save_LIBS
14237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrandr_XRRGetScreenResources" >&5
14238 $as_echo "$ac_cv_lib_Xrandr_XRRGetScreenResources" >&6; }
14239 if test "x$ac_cv_lib_Xrandr_XRRGetScreenResources" = x
""yes; then :
14246 if test $HAVE_XRANDR = yes; then
14247 XRANDR_LIBS
=-lXrandr
14251 if test $HAVE_XRANDR = yes; then
14252 SAVE_CFLAGS
="$CFLAGS"
14254 CFLAGS
="$XRANDR_CFLAGS $CFLAGS"
14255 LIBS
="$XRANDR_LIBS $LIBS"
14256 for ac_func
in XRRGetOutputPrimary XRRGetScreenResourcesCurrent
14258 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14259 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
14260 eval as_val
=\$
$as_ac_var
14261 if test "x$as_val" = x
""yes; then :
14262 cat >>confdefs.h
<<_ACEOF
14263 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14269 CFLAGS
="$SAVE_CFLAGS"
14273 $as_echo "#define HAVE_XRANDR 1" >>confdefs.h
14278 ### Use Xinerama (-lXinerama) if available
14280 if test "${HAVE_X11}" = "yes"; then
14281 XINERAMA_REQUIRED
=1.0.2
14282 XINERAMA_MODULES
="xinerama >= $XINERAMA_REQUIRED"
14286 if test "$PKG_CONFIG" = "no" ; then
14289 PKG_CONFIG_MIN_VERSION
=0.9.0
14290 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $XINERAMA_MODULES" >&5
14292 $as_echo_n "checking for $XINERAMA_MODULES... " >&6; }
14294 if "$PKG_CONFIG" --exists "$XINERAMA_MODULES" 2>&5 &&
14295 XINERAMA_CFLAGS
=`"$PKG_CONFIG" --cflags "$XINERAMA_MODULES" 2>&5` &&
14296 XINERAMA_LIBS
=`"$PKG_CONFIG" --libs "$XINERAMA_MODULES" 2>&5`; then
14303 XINERAMA_CFLAGS
=`$as_echo "$XINERAMA_CFLAGS" | sed -e "$edit_cflags"`
14304 XINERAMA_LIBS
=`$as_echo "$XINERAMA_LIBS" | sed -e 's,///*,/,g'`
14305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$XINERAMA_CFLAGS' LIBS='$XINERAMA_LIBS'" >&5
14306 $as_echo "yes CFLAGS='$XINERAMA_CFLAGS' LIBS='$XINERAMA_LIBS'" >&6; }
14309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14310 $as_echo "no" >&6; }
14313 ## If we have a custom action on failure, don't print errors, but
14314 ## do set a variable so people can do so. Do it in a subshell
14315 ## to capture any diagnostics in invoking pkg-config.
14316 XINERAMA_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "$XINERAMA_MODULES") 2>&1`
14323 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14324 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14328 if test $succeeded = yes; then
14334 if test $HAVE_XINERAMA = no
; then
14335 # Test old way in case pkg-config doesn't have it (older machines).
14336 ac_fn_c_check_header_mongrel
"$LINENO" "X11/extensions/Xinerama.h" "ac_cv_header_X11_extensions_Xinerama_h" "$ac_includes_default"
14337 if test "x$ac_cv_header_X11_extensions_Xinerama_h" = x
""yes; then :
14338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XineramaQueryExtension in -lXinerama" >&5
14339 $as_echo_n "checking for XineramaQueryExtension in -lXinerama... " >&6; }
14340 if test "${ac_cv_lib_Xinerama_XineramaQueryExtension+set}" = set; then :
14341 $as_echo_n "(cached) " >&6
14343 ac_check_lib_save_LIBS
=$LIBS
14344 LIBS
="-lXinerama $LIBS"
14345 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14346 /* end confdefs.h. */
14348 /* Override any GCC internal prototype to avoid an error.
14349 Use char because int might match the return type of a GCC
14350 builtin and then its argument prototype would still apply. */
14354 char XineramaQueryExtension ();
14358 return XineramaQueryExtension ();
14363 if ac_fn_c_try_link
"$LINENO"; then :
14364 ac_cv_lib_Xinerama_XineramaQueryExtension
=yes
14366 ac_cv_lib_Xinerama_XineramaQueryExtension
=no
14368 rm -f core conftest.err conftest.
$ac_objext \
14369 conftest
$ac_exeext conftest.
$ac_ext
14370 LIBS
=$ac_check_lib_save_LIBS
14372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xinerama_XineramaQueryExtension" >&5
14373 $as_echo "$ac_cv_lib_Xinerama_XineramaQueryExtension" >&6; }
14374 if test "x$ac_cv_lib_Xinerama_XineramaQueryExtension" = x
""yes; then :
14381 if test $HAVE_XINERAMA = yes; then
14382 XINERAMA_LIBS
=-lXinerama
14386 if test $HAVE_XINERAMA = yes; then
14388 $as_echo "#define HAVE_XINERAMA 1" >>confdefs.h
14394 ### Use libxml (-lxml2) if available
14395 ### mingw32 doesn't use -lxml2, since it loads the library dynamically.
14397 if test "${with_xml2}" != "no"; then
14398 ### I'm not sure what the version number should be, so I just guessed.
14402 if test "$PKG_CONFIG" = "no" ; then
14405 PKG_CONFIG_MIN_VERSION
=0.9.0
14406 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.6.17" >&5
14408 $as_echo_n "checking for libxml-2.0 > 2.6.17... " >&6; }
14410 if "$PKG_CONFIG" --exists "libxml-2.0 > 2.6.17" 2>&5 &&
14411 LIBXML2_CFLAGS
=`"$PKG_CONFIG" --cflags "libxml-2.0 > 2.6.17" 2>&5` &&
14412 LIBXML2_LIBS
=`"$PKG_CONFIG" --libs "libxml-2.0 > 2.6.17" 2>&5`; then
14419 LIBXML2_CFLAGS
=`$as_echo "$LIBXML2_CFLAGS" | sed -e "$edit_cflags"`
14420 LIBXML2_LIBS
=`$as_echo "$LIBXML2_LIBS" | sed -e 's,///*,/,g'`
14421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBXML2_CFLAGS' LIBS='$LIBXML2_LIBS'" >&5
14422 $as_echo "yes CFLAGS='$LIBXML2_CFLAGS' LIBS='$LIBXML2_LIBS'" >&6; }
14425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14426 $as_echo "no" >&6; }
14429 ## If we have a custom action on failure, don't print errors, but
14430 ## do set a variable so people can do so. Do it in a subshell
14431 ## to capture any diagnostics in invoking pkg-config.
14432 LIBXML2_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "libxml-2.0 > 2.6.17") 2>&1`
14439 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14440 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14444 if test $succeeded = yes; then
14450 # Built-in libxml2 on OS X 10.8 lacks libxml-2.0.pc.
14451 if test "${HAVE_LIBXML2}" != "yes" -a "$opsys" = "darwin"; then
14452 SAVE_CPPFLAGS
="$CPPFLAGS"
14453 CPPFLAGS
="$CPPFLAGS -I/usr/include/libxml2"
14454 ac_fn_c_check_header_mongrel
"$LINENO" "libxml/HTMLparser.h" "ac_cv_header_libxml_HTMLparser_h" "$ac_includes_default"
14455 if test "x$ac_cv_header_libxml_HTMLparser_h" = x
""yes; then :
14456 ac_fn_c_check_decl
"$LINENO" "HTML_PARSE_RECOVER" "ac_cv_have_decl_HTML_PARSE_RECOVER" "#include <libxml/HTMLparser.h>
14458 if test "x$ac_cv_have_decl_HTML_PARSE_RECOVER" = x
""yes; then :
14465 CPPFLAGS
="$SAVE_CPPFLAGS"
14466 if test "${HAVE_LIBXML2}" = "yes"; then
14467 LIBXML2_LIBS
="-lxml2"
14468 LIBXML2_CFLAGS
="-I/usr/include/libxml2"
14471 if test "${HAVE_LIBXML2}" = "yes"; then
14472 if test "${opsys}" != "mingw32"; then
14473 LIBS
="$LIBXML2_LIBS $LIBS"
14474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5
14475 $as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; }
14476 if test "${ac_cv_lib_xml2_htmlReadMemory+set}" = set; then :
14477 $as_echo_n "(cached) " >&6
14479 ac_check_lib_save_LIBS
=$LIBS
14480 LIBS
="-lxml2 $LIBS"
14481 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14482 /* end confdefs.h. */
14484 /* Override any GCC internal prototype to avoid an error.
14485 Use char because int might match the return type of a GCC
14486 builtin and then its argument prototype would still apply. */
14490 char htmlReadMemory ();
14494 return htmlReadMemory ();
14499 if ac_fn_c_try_link
"$LINENO"; then :
14500 ac_cv_lib_xml2_htmlReadMemory
=yes
14502 ac_cv_lib_xml2_htmlReadMemory
=no
14504 rm -f core conftest.err conftest.
$ac_objext \
14505 conftest
$ac_exeext conftest.
$ac_ext
14506 LIBS
=$ac_check_lib_save_LIBS
14508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5
14509 $as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; }
14510 if test "x$ac_cv_lib_xml2_htmlReadMemory" = x
""yes; then :
14519 if test "${HAVE_LIBXML2}" = "yes"; then
14521 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
14532 # If netdb.h doesn't declare h_errno, we must declare it by hand.
14533 # On MinGW, that is provided by nt/inc/sys/socket.h and w32.c.
14534 if test "${opsys}" = "mingw32"; then
14535 emacs_cv_netdb_declares_h_errno
=yes
14537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
14538 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
14539 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then :
14540 $as_echo_n "(cached) " >&6
14542 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14543 /* end confdefs.h. */
14553 if ac_fn_c_try_link
"$LINENO"; then :
14554 emacs_cv_netdb_declares_h_errno
=yes
14556 emacs_cv_netdb_declares_h_errno
=no
14558 rm -f core conftest.err conftest.
$ac_objext \
14559 conftest
$ac_exeext conftest.
$ac_ext
14561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
14562 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
14563 if test $emacs_cv_netdb_declares_h_errno = yes; then
14565 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
14569 # sqrt and other floating-point functions such as fmod and frexp
14570 # are found in -lm on most systems, but mingw32 doesn't use -lm.
14571 if test "${opsys}" != "mingw32"; then
14572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
14573 $as_echo_n "checking for sqrt in -lm... " >&6; }
14574 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
14575 $as_echo_n "(cached) " >&6
14577 ac_check_lib_save_LIBS
=$LIBS
14579 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14580 /* end confdefs.h. */
14582 /* Override any GCC internal prototype to avoid an error.
14583 Use char because int might match the return type of a GCC
14584 builtin and then its argument prototype would still apply. */
14597 if ac_fn_c_try_link
"$LINENO"; then :
14598 ac_cv_lib_m_sqrt
=yes
14600 ac_cv_lib_m_sqrt
=no
14602 rm -f core conftest.err conftest.
$ac_objext \
14603 conftest
$ac_exeext conftest.
$ac_ext
14604 LIBS
=$ac_check_lib_save_LIBS
14606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
14607 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
14608 if test "x$ac_cv_lib_m_sqrt" = x
""yes; then :
14609 cat >>confdefs.h
<<_ACEOF
14610 #define HAVE_LIBM 1
14619 # Check for mail-locking functions in a "mail" library. Probably this should
14620 # have the same check as for liblockfile below.
14621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
14622 $as_echo_n "checking for maillock in -lmail... " >&6; }
14623 if test "${ac_cv_lib_mail_maillock+set}" = set; then :
14624 $as_echo_n "(cached) " >&6
14626 ac_check_lib_save_LIBS
=$LIBS
14627 LIBS
="-lmail $LIBS"
14628 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14629 /* end confdefs.h. */
14631 /* Override any GCC internal prototype to avoid an error.
14632 Use char because int might match the return type of a GCC
14633 builtin and then its argument prototype would still apply. */
14641 return maillock ();
14646 if ac_fn_c_try_link
"$LINENO"; then :
14647 ac_cv_lib_mail_maillock
=yes
14649 ac_cv_lib_mail_maillock
=no
14651 rm -f core conftest.err conftest.
$ac_objext \
14652 conftest
$ac_exeext conftest.
$ac_ext
14653 LIBS
=$ac_check_lib_save_LIBS
14655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
14656 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
14657 if test "x$ac_cv_lib_mail_maillock" = x
""yes; then :
14663 if test $have_mail = yes; then
14665 LIBS
="$LIBS_MAIL $LIBS"
14667 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
14672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
14673 $as_echo_n "checking for maillock in -llockfile... " >&6; }
14674 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then :
14675 $as_echo_n "(cached) " >&6
14677 ac_check_lib_save_LIBS
=$LIBS
14678 LIBS
="-llockfile $LIBS"
14679 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14680 /* end confdefs.h. */
14682 /* Override any GCC internal prototype to avoid an error.
14683 Use char because int might match the return type of a GCC
14684 builtin and then its argument prototype would still apply. */
14692 return maillock ();
14697 if ac_fn_c_try_link
"$LINENO"; then :
14698 ac_cv_lib_lockfile_maillock
=yes
14700 ac_cv_lib_lockfile_maillock
=no
14702 rm -f core conftest.err conftest.
$ac_objext \
14703 conftest
$ac_exeext conftest.
$ac_ext
14704 LIBS
=$ac_check_lib_save_LIBS
14706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
14707 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
14708 if test "x$ac_cv_lib_lockfile_maillock" = x
""yes; then :
14714 if test $have_lockfile = yes; then
14715 LIBS_MAIL
=-llockfile
14716 LIBS
="$LIBS_MAIL $LIBS"
14718 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
14721 # If we have the shared liblockfile, assume we must use it for mail
14722 # locking (e.g. Debian). If we couldn't link against liblockfile
14723 # (no liblockfile.a installed), ensure that we don't need to.
14724 # Extract the first word of "liblockfile.so", so it can be a program name with args.
14725 set dummy liblockfile.so
; ac_word
=$2
14726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14727 $as_echo_n "checking for $ac_word... " >&6; }
14728 if test "${ac_cv_prog_liblockfile+set}" = set; then :
14729 $as_echo_n "(cached) " >&6
14731 if test -n "$liblockfile"; then
14732 ac_cv_prog_liblockfile
="$liblockfile" # Let the user override the test.
14734 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14735 as_dummy
="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
14736 for as_dir
in $as_dummy
14739 test -z "$as_dir" && as_dir
=.
14740 for ac_exec_ext
in '' $ac_executable_extensions; do
14741 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14742 ac_cv_prog_liblockfile
="yes"
14743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14750 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile
="no"
14753 liblockfile
=$ac_cv_prog_liblockfile
14754 if test -n "$liblockfile"; then
14755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
14756 $as_echo "$liblockfile" >&6; }
14758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14759 $as_echo "no" >&6; }
14763 if test $ac_cv_prog_liblockfile = yes; then
14764 as_fn_error
"Shared liblockfile found but can't link against it.
14765 This probably means that movemail could lose mail.
14766 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
14774 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
14775 ## interlock access to the mail spool. The alternative is a lock file named
14776 ## /usr/spool/mail/$USER.lock.
14779 aix4-2
) mail_lock
="lockf" ;;
14781 gnu|freebsd|dragonfly|netbsd|openbsd|darwin|irix6-5
) mail_lock
="flock" ;;
14783 ## On GNU/Linux systems, both methods are used by various mail programs.
14784 ## I assume most people are using newer mailers that have heard of flock.
14785 ## Change this if you need to.
14786 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
14787 ## configure gets the right answers, and that means *NOT* using flock.
14788 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
14789 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
14790 ## Debian maintainer hasn't provided a clean fix for Emacs.
14791 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
14792 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
14793 ## correct logic. -- fx
14794 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
14795 ## liblockfile is a Free Software replacement for libmail, used on
14796 ## Debian systems and elsewhere. -rfr.
14799 if test $have_mail = yes ||
test $have_lockfile = yes; then
14800 test $ac_cv_header_maillock_h = yes && mail_lock
=no
14805 mail_lock
="none-needed" ;;
14809 case "$mail_lock" in
14811 $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
14815 $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
14820 *) BLESSMAIL_TARGET
="need-blessmail" ;;
14825 for ac_func
in accept4 gethostname \
14826 getrusage get_current_dir_name \
14828 select getpagesize setlocale \
14829 getrlimit setrlimit shutdown getaddrinfo \
14830 strsignal setitimer \
14831 sendto recvfrom getsockname getpeername getifaddrs freeifaddrs \
14832 gai_strerror getline getdelim sync \
14833 difftime posix_memalign \
14834 getpwent endpwent getgrent endgrent \
14836 cfmakeraw cfsetspeed copysign __executable_start log2
14838 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14839 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
14840 eval as_val
=\$
$as_ac_var
14841 if test "x$as_val" = x
""yes; then :
14842 cat >>confdefs.h
<<_ACEOF
14843 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14850 ## Eric Backus <ericb@lsid.hp.com> says, HP-UX 9.x on HP 700 machines
14851 ## has a broken `rint' in some library versions including math library
14852 ## version number A.09.05.
14853 ## You can fix the math library by installing patch number PHSS_4630.
14854 ## But we can fix it more reliably for Emacs by just not using rint.
14855 ## We also skip HAVE_RANDOM - see comments in src/conf_post.h.
14858 *) for ac_func
in random rint
14860 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14861 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
14862 eval as_val
=\$
$as_ac_var
14863 if test "x$as_val" = x
""yes; then :
14864 cat >>confdefs.h
<<_ACEOF
14865 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unwind_init" >&5
14874 $as_echo_n "checking for __builtin_unwind_init... " >&6; }
14875 if test "${emacs_cv_func___builtin_unwind_init+set}" = set; then :
14876 $as_echo_n "(cached) " >&6
14878 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14879 /* end confdefs.h. */
14884 __builtin_unwind_init ();
14889 if ac_fn_c_try_link
"$LINENO"; then :
14890 emacs_cv_func___builtin_unwind_init
=yes
14892 emacs_cv_func___builtin_unwind_init
=no
14894 rm -f core conftest.err conftest.
$ac_objext \
14895 conftest
$ac_exeext conftest.
$ac_ext
14897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func___builtin_unwind_init" >&5
14898 $as_echo "$emacs_cv_func___builtin_unwind_init" >&6; }
14899 if test $emacs_cv_func___builtin_unwind_init = yes; then
14901 $as_echo "#define HAVE___BUILTIN_UNWIND_INIT 1" >>confdefs.h
14909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
14910 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
14911 if test "${ac_cv_sys_largefile_source+set}" = set; then :
14912 $as_echo_n "(cached) " >&6
14915 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14916 /* end confdefs.h. */
14917 #include <sys/types.h> /* for off_t */
14922 int (*fp) (FILE *, off_t, int) = fseeko;
14923 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
14928 if ac_fn_c_try_link
"$LINENO"; then :
14929 ac_cv_sys_largefile_source
=no
; break
14931 rm -f core conftest.err conftest.
$ac_objext \
14932 conftest
$ac_exeext conftest.
$ac_ext
14933 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14934 /* end confdefs.h. */
14935 #define _LARGEFILE_SOURCE 1
14936 #include <sys/types.h> /* for off_t */
14941 int (*fp) (FILE *, off_t, int) = fseeko;
14942 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
14947 if ac_fn_c_try_link
"$LINENO"; then :
14948 ac_cv_sys_largefile_source
=1; break
14950 rm -f core conftest.err conftest.
$ac_objext \
14951 conftest
$ac_exeext conftest.
$ac_ext
14952 ac_cv_sys_largefile_source
=unknown
14956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
14957 $as_echo "$ac_cv_sys_largefile_source" >&6; }
14958 case $ac_cv_sys_largefile_source in #(
14961 cat >>confdefs.h
<<_ACEOF
14962 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
14968 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
14969 # in glibc 2.1.3, but that breaks too many other things.
14970 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
14971 if test $ac_cv_sys_largefile_source != unknown
; then
14973 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
14979 for ac_func
in grantpt
14981 ac_fn_c_check_func
"$LINENO" "grantpt" "ac_cv_func_grantpt"
14982 if test "x$ac_cv_func_grantpt" = x
""yes; then :
14983 cat >>confdefs.h
<<_ACEOF
14984 #define HAVE_GRANTPT 1
14991 # PTY-related GNU extensions.
14992 for ac_func
in getpt posix_openpt
14994 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14995 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
14996 eval as_val
=\$
$as_ac_var
14997 if test "x$as_val" = x
""yes; then :
14998 cat >>confdefs.h
<<_ACEOF
14999 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15006 # Check this now, so that we will NOT find the above functions in ncurses.
15007 # That is because we have not set up to link ncurses in lib-src.
15008 # It's better to believe a function is not available
15009 # than to expect to find it in ncurses.
15010 # Also we need tputs and friends to be able to build at all.
15011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
15012 $as_echo_n "checking for library containing tputs... " >&6; }
15013 # Run a test program that contains a call to tputs, a call that is
15014 # never executed. This tests whether a pre-'main' dynamic linker
15015 # works with the library. It's too much trouble to actually call
15016 # tputs in the test program, due to portability hassles. When
15017 # cross-compiling, assume the test program will run if it links.
15019 if test "${opsys}" = "mingw32"; then
15020 msg
='none required'
15022 # Maybe curses should be tried earlier?
15023 # See http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9736#35
15024 for tputs_library
in '' tinfo ncurses terminfo termcap curses
; do
15026 if test -z "$tputs_library"; then
15028 msg
='none required'
15030 LIBS_TERMCAP
=-l$tputs_library
15032 LIBS
="$LIBS_TERMCAP $LIBS"
15034 if test "$cross_compiling" = yes; then :
15035 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15036 /* end confdefs.h. */
15038 extern void tputs (const char *, int, int (*)(int));
15039 int main (int argc, char **argv)
15042 tputs (argv[0], 0, 0);
15047 if ac_fn_c_try_link
"$LINENO"; then :
15052 rm -f core conftest.err conftest.
$ac_objext \
15053 conftest
$ac_exeext conftest.
$ac_ext
15055 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15056 /* end confdefs.h. */
15058 extern void tputs (const char *, int, int (*)(int));
15059 int main (int argc, char **argv)
15062 tputs (argv[0], 0, 0);
15067 if ac_fn_c_try_run
"$LINENO"; then :
15072 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15073 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15077 if test "X$msg" != Xno
; then
15082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5
15083 $as_echo "$msg" >&6; }
15084 if test "X$msg" = Xno
; then
15085 as_fn_error
"The required function \`tputs' was not found in any library.
15086 The following libraries were tried (in order):
15087 libtinfo, libncurses, libterminfo, libtermcap, libcurses
15088 Please try installing whichever of these libraries is most appropriate
15089 for your system, together with its header files.
15090 For example, a libncurses-dev(el) or similar package." "$LINENO" 5
15093 ## Use termcap instead of terminfo?
15094 ## Only true for: freebsd < 40000, ms-w32, msdos, netbsd < 599002500.
15096 ## FIXME? In the cases below where we unconditionally set
15097 ## LIBS_TERMCAP="-lncurses", this overrides LIBS_TERMCAP = -ltinfo,
15098 ## if that was found above to have tputs.
15099 ## Should we use the gnu* logic everywhere?
15101 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
15102 ## The ncurses library has been moved out of the System framework in
15103 ## Mac OS X 10.2. So if configure detects it, set the command-line
15104 ## option to use it.
15105 darwin
) LIBS_TERMCAP
="-lncurses" ;;
15107 gnu
*) test -z "$LIBS_TERMCAP" && LIBS_TERMCAP
="-lncurses" ;;
15110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
15111 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
15112 if test "${emacs_cv_freebsd_terminfo+set}" = set; then :
15113 $as_echo_n "(cached) " >&6
15115 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15116 /* end confdefs.h. */
15117 #include <osreldate.h>
15121 #if __FreeBSD_version < 400000
15129 if ac_fn_c_try_link
"$LINENO"; then :
15130 emacs_cv_freebsd_terminfo
=yes
15132 emacs_cv_freebsd_terminfo
=no
15134 rm -f core conftest.err conftest.
$ac_objext \
15135 conftest
$ac_exeext conftest.
$ac_ext
15139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
15140 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
15142 if test $emacs_cv_freebsd_terminfo = yes; then
15143 LIBS_TERMCAP
="-lncurses"
15146 LIBS_TERMCAP
="-ltermcap"
15156 if test "x$LIBS_TERMCAP" != "x-lterminfo"; then
15158 LIBS_TERMCAP
="-ltermcap"
15162 openbsd | dragonfly
) LIBS_TERMCAP
="-lncurses" ;;
15164 ## hpux: Make sure we get select from libc rather than from libcurses
15165 ## because libcurses on HPUX 10.10 has a broken version of select.
15166 ## We used to use -lc -lcurses, but this may be cleaner.
15167 ## FIXME? But TERMINFO = yes on hpux (it used to be explicitly
15168 # set that way, now it uses the default). Isn't this a contradiction?
15169 hpux
*) LIBS_TERMCAP
="-ltermcap" ;;
15173 TERMCAP_OBJ
=tparam.o
15174 if test $TERMINFO = yes; then
15176 $as_echo "#define TERMINFO 1" >>confdefs.h
15178 TERMCAP_OBJ
=terminfo.o
15180 if test "X$LIBS_TERMCAP" = "X-lncurses"; then
15182 $as_echo "#define USE_NCURSES 1" >>confdefs.h
15189 # Do we have res_init, for detecting changes in /etc/resolv.conf?
15190 # On Darwin, res_init appears not to be useful: see bug#562 and
15191 # http://lists.gnu.org/archive/html/emacs-devel/2007-11/msg01467.html
15194 if test $opsys != darwin
; then
15196 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15197 /* end confdefs.h. */
15198 #include <netinet/in.h>
15199 #include <arpa/nameser.h>
15200 #include <resolv.h>
15209 if ac_fn_c_try_link
"$LINENO"; then :
15214 rm -f core conftest.err conftest.
$ac_objext \
15215 conftest
$ac_exeext conftest.
$ac_ext
15216 if test "$have_res_init" = no
; then
15218 LIBS
="$LIBS -lresolv"
15219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
15220 $as_echo_n "checking for res_init with -lresolv... " >&6; }
15221 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15222 /* end confdefs.h. */
15223 #include <netinet/in.h>
15224 #include <arpa/nameser.h>
15225 #include <resolv.h>
15234 if ac_fn_c_try_link
"$LINENO"; then :
15239 rm -f core conftest.err conftest.
$ac_objext \
15240 conftest
$ac_exeext conftest.
$ac_ext
15241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
15242 $as_echo "$have_res_init" >&6; }
15243 if test "$have_res_init" = yes ; then
15249 if test "$have_res_init" = yes; then
15251 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
15255 # Do we need the Hesiod library to provide the support routines?
15257 if test "$with_hesiod" != no
; then
15258 # Don't set $LIBS here -- see comments above. FIXME which comments?
15259 ac_fn_c_check_func
"$LINENO" "res_send" "ac_cv_func_res_send"
15260 if test "x$ac_cv_func_res_send" = x
""yes; then :
15263 ac_fn_c_check_func
"$LINENO" "__res_send" "ac_cv_func___res_send"
15264 if test "x$ac_cv_func___res_send" = x
""yes; then :
15267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
15268 $as_echo_n "checking for res_send in -lresolv... " >&6; }
15269 if test "${ac_cv_lib_resolv_res_send+set}" = set; then :
15270 $as_echo_n "(cached) " >&6
15272 ac_check_lib_save_LIBS
=$LIBS
15273 LIBS
="-lresolv $LIBS"
15274 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15275 /* end confdefs.h. */
15277 /* Override any GCC internal prototype to avoid an error.
15278 Use char because int might match the return type of a GCC
15279 builtin and then its argument prototype would still apply. */
15287 return res_send ();
15292 if ac_fn_c_try_link
"$LINENO"; then :
15293 ac_cv_lib_resolv_res_send
=yes
15295 ac_cv_lib_resolv_res_send
=no
15297 rm -f core conftest.err conftest.
$ac_objext \
15298 conftest
$ac_exeext conftest.
$ac_ext
15299 LIBS
=$ac_check_lib_save_LIBS
15301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
15302 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
15303 if test "x$ac_cv_lib_resolv_res_send" = x
""yes; then :
15306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
15307 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
15308 if test "${ac_cv_lib_resolv___res_send+set}" = set; then :
15309 $as_echo_n "(cached) " >&6
15311 ac_check_lib_save_LIBS
=$LIBS
15312 LIBS
="-lresolv $LIBS"
15313 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15314 /* end confdefs.h. */
15316 /* Override any GCC internal prototype to avoid an error.
15317 Use char because int might match the return type of a GCC
15318 builtin and then its argument prototype would still apply. */
15322 char __res_send ();
15326 return __res_send ();
15331 if ac_fn_c_try_link
"$LINENO"; then :
15332 ac_cv_lib_resolv___res_send
=yes
15334 ac_cv_lib_resolv___res_send
=no
15336 rm -f core conftest.err conftest.
$ac_objext \
15337 conftest
$ac_exeext conftest.
$ac_ext
15338 LIBS
=$ac_check_lib_save_LIBS
15340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
15341 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
15342 if test "x$ac_cv_lib_resolv___res_send" = x
""yes; then :
15352 if test "$resolv" = yes ; then
15357 ac_fn_c_check_func
"$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
15358 if test "x$ac_cv_func_hes_getmailhost" = x
""yes; then :
15361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
15362 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
15363 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then :
15364 $as_echo_n "(cached) " >&6
15366 ac_check_lib_save_LIBS
=$LIBS
15367 LIBS
="-lhesiod $RESOLVLIB $LIBS"
15368 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15369 /* end confdefs.h. */
15371 /* Override any GCC internal prototype to avoid an error.
15372 Use char because int might match the return type of a GCC
15373 builtin and then its argument prototype would still apply. */
15377 char hes_getmailhost ();
15381 return hes_getmailhost ();
15386 if ac_fn_c_try_link
"$LINENO"; then :
15387 ac_cv_lib_hesiod_hes_getmailhost
=yes
15389 ac_cv_lib_hesiod_hes_getmailhost
=no
15391 rm -f core conftest.err conftest.
$ac_objext \
15392 conftest
$ac_exeext conftest.
$ac_ext
15393 LIBS
=$ac_check_lib_save_LIBS
15395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
15396 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
15397 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x
""yes; then :
15406 if test x
"$hesiod" = xyes
; then
15412 # Do we need libresolv (due to res_init or Hesiod)?
15413 if test "$resolv" = yes && test $opsys != darwin
; then
15420 # These tell us which Kerberos-related libraries to use.
15427 if test "${with_kerberos}" != no
; then
15428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
15429 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
15430 if test "${ac_cv_lib_com_err_com_err+set}" = set; then :
15431 $as_echo_n "(cached) " >&6
15433 ac_check_lib_save_LIBS
=$LIBS
15434 LIBS
="-lcom_err $LIBS"
15435 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15436 /* end confdefs.h. */
15438 /* Override any GCC internal prototype to avoid an error.
15439 Use char because int might match the return type of a GCC
15440 builtin and then its argument prototype would still apply. */
15453 if ac_fn_c_try_link
"$LINENO"; then :
15454 ac_cv_lib_com_err_com_err
=yes
15456 ac_cv_lib_com_err_com_err
=no
15458 rm -f core conftest.err conftest.
$ac_objext \
15459 conftest
$ac_exeext conftest.
$ac_ext
15460 LIBS
=$ac_check_lib_save_LIBS
15462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
15463 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
15464 if test "x$ac_cv_lib_com_err_com_err" = x
""yes; then :
15470 if test $have_com_err = yes; then
15471 COM_ERRLIB
=-lcom_err
15472 LIBS
="$COM_ERRLIB $LIBS"
15474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
15475 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
15476 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then :
15477 $as_echo_n "(cached) " >&6
15479 ac_check_lib_save_LIBS
=$LIBS
15480 LIBS
="-lcrypto $LIBS"
15481 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15482 /* end confdefs.h. */
15484 /* Override any GCC internal prototype to avoid an error.
15485 Use char because int might match the return type of a GCC
15486 builtin and then its argument prototype would still apply. */
15490 char mit_des_cbc_encrypt ();
15494 return mit_des_cbc_encrypt ();
15499 if ac_fn_c_try_link
"$LINENO"; then :
15500 ac_cv_lib_crypto_mit_des_cbc_encrypt
=yes
15502 ac_cv_lib_crypto_mit_des_cbc_encrypt
=no
15504 rm -f core conftest.err conftest.
$ac_objext \
15505 conftest
$ac_exeext conftest.
$ac_ext
15506 LIBS
=$ac_check_lib_save_LIBS
15508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
15509 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
15510 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x
""yes; then :
15516 if test $have_crypto = yes; then
15518 LIBS
="$CRYPTOLIB $LIBS"
15520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
15521 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
15522 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then :
15523 $as_echo_n "(cached) " >&6
15525 ac_check_lib_save_LIBS
=$LIBS
15526 LIBS
="-lk5crypto $LIBS"
15527 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15528 /* end confdefs.h. */
15530 /* Override any GCC internal prototype to avoid an error.
15531 Use char because int might match the return type of a GCC
15532 builtin and then its argument prototype would still apply. */
15536 char mit_des_cbc_encrypt ();
15540 return mit_des_cbc_encrypt ();
15545 if ac_fn_c_try_link
"$LINENO"; then :
15546 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=yes
15548 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=no
15550 rm -f core conftest.err conftest.
$ac_objext \
15551 conftest
$ac_exeext conftest.
$ac_ext
15552 LIBS
=$ac_check_lib_save_LIBS
15554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
15555 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
15556 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x
""yes; then :
15562 if test $have_k5crypto = yes; then
15563 CRYPTOLIB
=-lk5crypto
15564 LIBS
="$CRYPTOLIB $LIBS"
15566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
15567 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
15568 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then :
15569 $as_echo_n "(cached) " >&6
15571 ac_check_lib_save_LIBS
=$LIBS
15572 LIBS
="-lkrb5 $LIBS"
15573 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15574 /* end confdefs.h. */
15576 /* Override any GCC internal prototype to avoid an error.
15577 Use char because int might match the return type of a GCC
15578 builtin and then its argument prototype would still apply. */
15582 char krb5_init_context ();
15586 return krb5_init_context ();
15591 if ac_fn_c_try_link
"$LINENO"; then :
15592 ac_cv_lib_krb5_krb5_init_context
=yes
15594 ac_cv_lib_krb5_krb5_init_context
=no
15596 rm -f core conftest.err conftest.
$ac_objext \
15597 conftest
$ac_exeext conftest.
$ac_ext
15598 LIBS
=$ac_check_lib_save_LIBS
15600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
15601 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
15602 if test "x$ac_cv_lib_krb5_krb5_init_context" = x
""yes; then :
15608 if test $have_krb5=yes; then
15610 LIBS
="$KRB5LIB $LIBS"
15612 if test "${with_kerberos5}" = no
; then
15613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
15614 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
15615 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
15616 $as_echo_n "(cached) " >&6
15618 ac_check_lib_save_LIBS
=$LIBS
15619 LIBS
="-ldes425 $LIBS"
15620 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15621 /* end confdefs.h. */
15623 /* Override any GCC internal prototype to avoid an error.
15624 Use char because int might match the return type of a GCC
15625 builtin and then its argument prototype would still apply. */
15629 char des_cbc_encrypt ();
15633 return des_cbc_encrypt ();
15638 if ac_fn_c_try_link
"$LINENO"; then :
15639 ac_cv_lib_des425_des_cbc_encrypt
=yes
15641 ac_cv_lib_des425_des_cbc_encrypt
=no
15643 rm -f core conftest.err conftest.
$ac_objext \
15644 conftest
$ac_exeext conftest.
$ac_ext
15645 LIBS
=$ac_check_lib_save_LIBS
15647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
15648 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
15649 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x
""yes; then :
15655 if test $have_des425 = yes; then
15657 LIBS
="$DESLIB $LIBS"
15659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
15660 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
15661 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
15662 $as_echo_n "(cached) " >&6
15664 ac_check_lib_save_LIBS
=$LIBS
15666 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15667 /* end confdefs.h. */
15669 /* Override any GCC internal prototype to avoid an error.
15670 Use char because int might match the return type of a GCC
15671 builtin and then its argument prototype would still apply. */
15675 char des_cbc_encrypt ();
15679 return des_cbc_encrypt ();
15684 if ac_fn_c_try_link
"$LINENO"; then :
15685 ac_cv_lib_des_des_cbc_encrypt
=yes
15687 ac_cv_lib_des_des_cbc_encrypt
=no
15689 rm -f core conftest.err conftest.
$ac_objext \
15690 conftest
$ac_exeext conftest.
$ac_ext
15691 LIBS
=$ac_check_lib_save_LIBS
15693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
15694 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
15695 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x
""yes; then :
15701 if test $have_des = yes; then
15703 LIBS
="$DESLIB $LIBS"
15706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
15707 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
15708 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then :
15709 $as_echo_n "(cached) " >&6
15711 ac_check_lib_save_LIBS
=$LIBS
15712 LIBS
="-lkrb4 $LIBS"
15713 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15714 /* end confdefs.h. */
15716 /* Override any GCC internal prototype to avoid an error.
15717 Use char because int might match the return type of a GCC
15718 builtin and then its argument prototype would still apply. */
15722 char krb_get_cred ();
15726 return krb_get_cred ();
15731 if ac_fn_c_try_link
"$LINENO"; then :
15732 ac_cv_lib_krb4_krb_get_cred
=yes
15734 ac_cv_lib_krb4_krb_get_cred
=no
15736 rm -f core conftest.err conftest.
$ac_objext \
15737 conftest
$ac_exeext conftest.
$ac_ext
15738 LIBS
=$ac_check_lib_save_LIBS
15740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
15741 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
15742 if test "x$ac_cv_lib_krb4_krb_get_cred" = x
""yes; then :
15748 if test $have_krb4 = yes; then
15750 LIBS
="$KRB4LIB $LIBS"
15752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
15753 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
15754 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then :
15755 $as_echo_n "(cached) " >&6
15757 ac_check_lib_save_LIBS
=$LIBS
15759 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15760 /* end confdefs.h. */
15762 /* Override any GCC internal prototype to avoid an error.
15763 Use char because int might match the return type of a GCC
15764 builtin and then its argument prototype would still apply. */
15768 char krb_get_cred ();
15772 return krb_get_cred ();
15777 if ac_fn_c_try_link
"$LINENO"; then :
15778 ac_cv_lib_krb_krb_get_cred
=yes
15780 ac_cv_lib_krb_krb_get_cred
=no
15782 rm -f core conftest.err conftest.
$ac_objext \
15783 conftest
$ac_exeext conftest.
$ac_ext
15784 LIBS
=$ac_check_lib_save_LIBS
15786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
15787 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
15788 if test "x$ac_cv_lib_krb_krb_get_cred" = x
""yes; then :
15794 if test $have_krb = yes; then
15796 LIBS
="$KRB4LIB $LIBS"
15801 if test "${with_kerberos5}" != no
; then
15802 for ac_header
in krb5.h
15804 ac_fn_c_check_header_mongrel
"$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
15805 if test "x$ac_cv_header_krb5_h" = x
""yes; then :
15806 cat >>confdefs.h
<<_ACEOF
15807 #define HAVE_KRB5_H 1
15809 ac_fn_c_check_member
"$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
15811 if test "x$ac_cv_member_krb5_error_text" = x
""yes; then :
15813 cat >>confdefs.h
<<_ACEOF
15814 #define HAVE_KRB5_ERROR_TEXT 1
15819 ac_fn_c_check_member
"$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
15821 if test "x$ac_cv_member_krb5_error_e_text" = x
""yes; then :
15823 cat >>confdefs.h
<<_ACEOF
15824 #define HAVE_KRB5_ERROR_E_TEXT 1
15835 for ac_header
in krb.h
15837 ac_fn_c_check_header_mongrel
"$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
15838 if test "x$ac_cv_header_krb_h" = x
""yes; then :
15839 cat >>confdefs.h
<<_ACEOF
15840 #define HAVE_KRB_H 1
15844 for ac_header
in kerberosIV
/krb.h
15846 ac_fn_c_check_header_mongrel
"$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
15847 if test "x$ac_cv_header_kerberosIV_krb_h" = x
""yes; then :
15848 cat >>confdefs.h
<<_ACEOF
15849 #define HAVE_KERBEROSIV_KRB_H 1
15853 for ac_header
in kerberos
/krb.h
15855 ac_fn_c_check_header_mongrel
"$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
15856 if test "x$ac_cv_header_kerberos_krb_h" = x
""yes; then :
15857 cat >>confdefs.h
<<_ACEOF
15858 #define HAVE_KERBEROS_KRB_H 1
15874 for ac_header
in com_err.h
15876 ac_fn_c_check_header_mongrel
"$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
15877 if test "x$ac_cv_header_com_err_h" = x
""yes; then :
15878 cat >>confdefs.h
<<_ACEOF
15879 #define HAVE_COM_ERR_H 1
15897 for ac_func
in $ac_func_list
15899 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15900 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
15901 eval as_val
=\$
$as_ac_var
15902 if test "x$as_val" = x
""yes; then :
15903 cat >>confdefs.h
<<_ACEOF
15904 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
15914 $as_echo_n "checking whether localtime caches TZ... " >&6; }
15915 if test "${emacs_cv_localtime_cache+set}" = set; then :
15916 $as_echo_n "(cached) " >&6
15918 if test x
$ac_cv_func_tzset = xyes
; then
15919 if test "$cross_compiling" = yes; then :
15920 # If we have tzset, assume the worst when cross-compiling.
15921 emacs_cv_localtime_cache
=yes
15923 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15924 /* end confdefs.h. */
15926 char TZ_GMT0[] = "TZ=GMT0";
15927 char TZ_PST8[] = "TZ=PST8";
15930 time_t now = time ((time_t *) 0);
15931 int hour_GMT0, hour_unset;
15932 if (putenv (TZ_GMT0) != 0)
15934 hour_GMT0 = localtime (&now)->tm_hour;
15936 hour_unset = localtime (&now)->tm_hour;
15937 if (putenv (TZ_PST8) != 0)
15939 if (localtime (&now)->tm_hour == hour_GMT0)
15942 if (localtime (&now)->tm_hour != hour_unset)
15947 if ac_fn_c_try_run
"$LINENO"; then :
15948 emacs_cv_localtime_cache
=no
15950 emacs_cv_localtime_cache
=yes
15952 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15953 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15957 # If we lack tzset, report that localtime does not cache TZ,
15958 # since we can't invalidate the cache if we don't have tzset.
15959 emacs_cv_localtime_cache
=no
15962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
15963 $as_echo "$emacs_cv_localtime_cache" >&6; }
15964 if test $emacs_cv_localtime_cache = yes; then
15966 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
15971 ac_fn_c_check_func
"$LINENO" "socket" "ac_cv_func_socket"
15972 if test "x$ac_cv_func_socket" = x
""yes; then :
15978 if test $ok_so_far = yes; then
15979 ac_fn_c_check_header_mongrel
"$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
15980 if test "x$ac_cv_header_netinet_in_h" = x
""yes; then :
15988 if test $ok_so_far = yes; then
15989 ac_fn_c_check_header_mongrel
"$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
15990 if test "x$ac_cv_header_arpa_inet_h" = x
""yes; then :
15998 if test $ok_so_far = yes; then
16000 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
16005 *-solaris2.4 |
*-solaris2.4.
*)
16006 : ${ac_cv_func_vfork_works=no};;
16009 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
16010 if test "x$ac_cv_type_pid_t" = x
""yes; then :
16014 cat >>confdefs.h
<<_ACEOF
16020 for ac_header
in vfork.h
16022 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
16023 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
16024 cat >>confdefs.h
<<_ACEOF
16025 #define HAVE_VFORK_H 1
16032 for ac_func
in fork vfork
16034 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16035 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
16036 eval as_val
=\$
$as_ac_var
16037 if test "x$as_val" = x
""yes; then :
16038 cat >>confdefs.h
<<_ACEOF
16039 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16045 if test "x$ac_cv_func_fork" = xyes
; then
16046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
16047 $as_echo_n "checking for working fork... " >&6; }
16048 if test "${ac_cv_func_fork_works+set}" = set; then :
16049 $as_echo_n "(cached) " >&6
16051 if test "$cross_compiling" = yes; then :
16052 ac_cv_func_fork_works
=cross
16054 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16055 /* end confdefs.h. */
16056 $ac_includes_default
16061 /* By Ruediger Kuhlmann. */
16062 return fork () < 0;
16068 if ac_fn_c_try_run
"$LINENO"; then :
16069 ac_cv_func_fork_works
=yes
16071 ac_cv_func_fork_works
=no
16073 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16074 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
16079 $as_echo "$ac_cv_func_fork_works" >&6; }
16082 ac_cv_func_fork_works
=$ac_cv_func_fork
16084 if test "x$ac_cv_func_fork_works" = xcross
; then
16086 *-*-amigaos* |
*-*-msdosdjgpp*)
16087 # Override, as these systems have only a dummy fork() stub
16088 ac_cv_func_fork_works
=no
16091 ac_cv_func_fork_works
=yes
16094 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
16095 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
16097 ac_cv_func_vfork_works
=$ac_cv_func_vfork
16098 if test "x$ac_cv_func_vfork" = xyes
; then
16099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
16100 $as_echo_n "checking for working vfork... " >&6; }
16101 if test "${ac_cv_func_vfork_works+set}" = set; then :
16102 $as_echo_n "(cached) " >&6
16104 if test "$cross_compiling" = yes; then :
16105 ac_cv_func_vfork_works
=cross
16107 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16108 /* end confdefs.h. */
16109 /* Thanks to Paul Eggert for this test. */
16110 $ac_includes_default
16111 #include <sys/wait.h>
16112 #ifdef HAVE_VFORK_H
16113 # include <vfork.h>
16115 /* On some sparc systems, changes by the child to local and incoming
16116 argument registers are propagated back to the parent. The compiler
16117 is told about this with #include <vfork.h>, but some compilers
16118 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
16119 static variable whose address is put into a register that is
16120 clobbered by the vfork. */
16123 sparc_address_test (int arg)
16125 sparc_address_test (arg) int arg;
16128 static pid_t child;
16146 pid_t parent = getpid ();
16149 sparc_address_test (0);
16154 /* Here is another test for sparc vfork register problems. This
16155 test uses lots of local variables, at least as many local
16156 variables as main has allocated so far including compiler
16157 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
16158 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
16159 reuse the register of parent for one of the local variables,
16160 since it will think that parent can't possibly be used any more
16161 in this routine. Assigning to the local variable will thus
16162 munge parent in the parent process. */
16164 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
16165 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
16166 /* Convince the compiler that p..p7 are live; otherwise, it might
16167 use the same hardware register for all 8 local variables. */
16168 if (p != p1 || p != p2 || p != p3 || p != p4
16169 || p != p5 || p != p6 || p != p7)
16172 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
16173 from child file descriptors. If the child closes a descriptor
16174 before it execs or exits, this munges the parent's descriptor
16175 as well. Test for this by closing stdout in the child. */
16176 _exit(close(fileno(stdout)) != 0);
16181 while (wait(&status) != child)
16184 /* Was there some problem with vforking? */
16187 /* Did the child fail? (This shouldn't happen.) */
16190 /* Did the vfork/compiler bug occur? */
16191 || parent != getpid()
16193 /* Did the file descriptor bug occur? */
16194 || fstat(fileno(stdout), &st) != 0
16199 if ac_fn_c_try_run
"$LINENO"; then :
16200 ac_cv_func_vfork_works
=yes
16202 ac_cv_func_vfork_works
=no
16204 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16205 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
16210 $as_echo "$ac_cv_func_vfork_works" >&6; }
16213 if test "x$ac_cv_func_fork_works" = xcross
; then
16214 ac_cv_func_vfork_works
=$ac_cv_func_vfork
16215 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
16216 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
16219 if test "x$ac_cv_func_vfork_works" = xyes
; then
16221 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
16225 $as_echo "#define vfork fork" >>confdefs.h
16228 if test "x$ac_cv_func_fork_works" = xyes
; then
16230 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
16235 for ac_func
in snprintf
16237 ac_fn_c_check_func
"$LINENO" "snprintf" "ac_cv_func_snprintf"
16238 if test "x$ac_cv_func_snprintf" = x
""yes; then :
16239 cat >>confdefs.h
<<_ACEOF
16240 #define HAVE_SNPRINTF 1
16248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GLib is linked in" >&5
16249 $as_echo_n "checking whether GLib is linked in... " >&6; }
16250 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16251 /* end confdefs.h. */
16257 g_print ("Hello world");
16262 if ac_fn_c_try_link
"$LINENO"; then :
16267 rm -f core conftest.err conftest.
$ac_objext \
16268 conftest
$ac_exeext conftest.
$ac_ext
16269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $links_glib" >&5
16270 $as_echo "$links_glib" >&6; }
16271 if test "${links_glib}" = "yes"; then
16273 $as_echo "#define HAVE_GLIB 1" >>confdefs.h
16275 if test "$HAVE_NS" = no
;then
16276 XGSELOBJ
=xgselect.o
16281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
16282 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
16283 if test "${emacs_cv_langinfo_codeset+set}" = set; then :
16284 $as_echo_n "(cached) " >&6
16286 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16287 /* end confdefs.h. */
16288 #include <langinfo.h>
16292 char* cs = nl_langinfo(CODESET);
16297 if ac_fn_c_try_link
"$LINENO"; then :
16298 emacs_cv_langinfo_codeset
=yes
16300 emacs_cv_langinfo_codeset
=no
16302 rm -f core conftest.err conftest.
$ac_objext \
16303 conftest
$ac_exeext conftest.
$ac_ext
16306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
16307 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
16308 if test $emacs_cv_langinfo_codeset = yes; then
16310 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
16314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
16315 $as_echo_n "checking for mbstate_t... " >&6; }
16316 if test "${ac_cv_type_mbstate_t+set}" = set; then :
16317 $as_echo_n "(cached) " >&6
16319 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16320 /* end confdefs.h. */
16321 $ac_includes_default
16322 # include <wchar.h>
16326 mbstate_t x; return sizeof x;
16331 if ac_fn_c_try_compile
"$LINENO"; then :
16332 ac_cv_type_mbstate_t
=yes
16334 ac_cv_type_mbstate_t
=no
16336 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
16339 $as_echo "$ac_cv_type_mbstate_t" >&6; }
16340 if test $ac_cv_type_mbstate_t = yes; then
16342 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
16346 $as_echo "#define mbstate_t int" >>confdefs.h
16350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
16351 $as_echo_n "checking for C restricted array declarations... " >&6; }
16352 if test "${emacs_cv_c_restrict_arr+set}" = set; then :
16353 $as_echo_n "(cached) " >&6
16355 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16356 /* end confdefs.h. */
16357 void fred (int x[__restrict]);
16366 if ac_fn_c_try_compile
"$LINENO"; then :
16367 emacs_cv_c_restrict_arr
=yes
16369 emacs_cv_c_restrict_arr
=no
16371 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
16374 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
16375 if test "$emacs_cv_c_restrict_arr" = yes; then
16377 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
16382 if test "${opsys}" != "mingw32"; then
16384 $as_echo "#define AMPERSAND_FULL_NAME 1" >>confdefs.h
16389 $as_echo "#define CLASH_DETECTION 1" >>confdefs.h
16392 ## Note: PTYs are broken on darwin <6. Use at your own risk.
16393 if test "${opsys}" != "mingw32"; then
16395 $as_echo "#define HAVE_PTYS 1" >>confdefs.h
16400 $as_echo "#define HAVE_SOCKETS 1" >>confdefs.h
16406 if test "${opsys}" = "mingw32"; then
16407 $as_echo "#define NULL_DEVICE \"NUL:\"" >>confdefs.h
16410 $as_echo "#define NULL_DEVICE \"/dev/null\"" >>confdefs.h
16415 if test "${opsys}" = "mingw32"; then
16416 $as_echo "#define SEPCHAR ';'" >>confdefs.h
16419 $as_echo "#define SEPCHAR ':'" >>confdefs.h
16424 $as_echo "#define subprocesses 1" >>confdefs.h
16428 $as_echo "#define USER_FULL_NAME pw->pw_gecos" >>confdefs.h
16433 $as_echo "#define DIRECTORY_SEP '/'" >>confdefs.h
16436 if test "${opsys}" = "mingw32"; then
16438 $as_echo "#define IS_DEVICE_SEP(_c_) ((_c_) == ':')" >>confdefs.h
16442 $as_echo "#define IS_DIRECTORY_SEP(_c_) ((_c_) == '/' || (_c_) == '\\\\')" >>confdefs.h
16446 $as_echo "#define IS_ANY_SEP(_c_) (IS_DIRECTORY_SEP (_c_) || IS_DEVICE_SEP(_c_))" >>confdefs.h
16450 $as_echo "#define IS_DEVICE_SEP(_c_) 0" >>confdefs.h
16454 $as_echo "#define IS_DIRECTORY_SEP(_c_) ((_c_) == DIRECTORY_SEP)" >>confdefs.h
16458 $as_echo "#define IS_ANY_SEP(_c_) (IS_DIRECTORY_SEP (_c_))" >>confdefs.h
16466 if test x
$ac_cv_lib_Xmu_XmuConvertStandardSelection != xyes
; then
16467 $as_echo "#define NO_EDITRES 1" >>confdefs.h
16473 $as_echo "#define NO_EDITRES 1" >>confdefs.h
16480 irix6-5 | sol2
* | unixware
)
16482 $as_echo "#define NSIG_MINIMUM 32" >>confdefs.h
16487 emacs_broken_SIGIO
=no
16490 hpux
* | irix6-5 | openbsd | sol2
* | unixware
)
16491 emacs_broken_SIGIO
=yes
16496 $as_echo "#define BROKEN_GET_CURRENT_DIR_NAME 1" >>confdefs.h
16502 $as_echo "#define BROKEN_PTY_READ_AFTER_EAGAIN 1" >>confdefs.h
16510 $as_echo "#define HAVE_PROCFS 1" >>confdefs.h
16516 darwin | dragonfly | freebsd | netbsd | openbsd
)
16518 $as_echo "#define DONT_REOPEN_PTY 1" >>confdefs.h
16524 netbsd | openbsd
) sound_device
="/dev/audio" ;;
16525 *) sound_device
="/dev/dsp" ;;
16529 cat >>confdefs.h
<<_ACEOF
16530 #define DEFAULT_SOUND_DEVICE "$sound_device"
16536 darwin | gnu-linux | gnu-kfreebsd
)
16538 $as_echo "#define INTERRUPT_INPUT 1" >>confdefs.h
16545 cygwin|gnu|gnu-linux|gnu-kfreebsd|irix6-5|freebsd|netbsd|openbsd
)
16547 $as_echo "#define NARROWPROTO 1" >>confdefs.h
16561 $as_echo "#define PTY_ITERATION int c; for (c = 0; !c ; c++)" >>confdefs.h
16563 $as_echo "#define PTY_NAME_SPRINTF strcpy (pty_name, \"/dev/ptc\");" >>confdefs.h
16565 $as_echo "#define PTY_TTY_NAME_SPRINTF strcpy (pty_name, ttyname (fd));" >>confdefs.h
16570 $as_echo "#define PTY_ITERATION int i; for (i = 0; i < 1; i++)" >>confdefs.h
16572 $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
16574 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
16576 $as_echo "#define PTY_TTY_NAME_SPRINTF /**/" >>confdefs.h
16581 $as_echo "#define PTY_ITERATION int i; for (i = 0; i < 1; i++)" >>confdefs.h
16583 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
16585 $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
16587 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
16589 $as_echo "#define PTY_TTY_NAME_SPRINTF /**/" >>confdefs.h
16594 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
16598 gnu-linux | gnu-kfreebsd | dragonfly | freebsd | netbsd
)
16599 if test "x$ac_cv_func_grantpt" = xyes
; then
16601 $as_echo "#define UNIX98_PTYS 1" >>confdefs.h
16603 $as_echo "#define PTY_ITERATION int i; for (i = 0; i < 1; i++)" >>confdefs.h
16605 $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) { emacs_close (fd); return -1; } snprintf (pty_name, PTY_NAME_SIZE, \"%s\", ptyname); }" >>confdefs.h
16607 if test "x$ac_cv_func_posix_openpt" = xyes
; then
16608 $as_echo "#define PTY_OPEN do { fd = posix_openpt (O_RDWR | O_CLOEXEC | O_NOCTTY); if (fd < 0 && errno == EINVAL) fd = posix_openpt (O_RDWR | O_NOCTTY); } while (0)" >>confdefs.h
16610 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
16612 elif test "x$ac_cv_func_getpt" = xyes
; then
16613 $as_echo "#define PTY_OPEN fd = getpt ()" >>confdefs.h
16615 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
16618 $as_echo "#define PTY_NAME_SPRINTF strcpy (pty_name, \"/dev/ptmx\");" >>confdefs.h
16622 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
16628 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
16630 $as_echo "#define PTY_NAME_SPRINTF sprintf (pty_name, \"/dev/ptym/pty%c%x\", c, i);" >>confdefs.h
16632 $as_echo "#define PTY_TTY_NAME_SPRINTF sprintf (pty_name, \"/dev/pty/tty%c%x\", c, i);" >>confdefs.h
16637 $as_echo "#define PTY_ITERATION /**/" >>confdefs.h
16639 $as_echo "#define FIRST_PTY_LETTER 'q'" >>confdefs.h
16641 $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(SIGCHLD, &cstat, &ocstat); name = _getpty (&fd, O_RDWR | O_NDELAY, 0600, 0); sigaction(SIGCHLD, &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
16643 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
16645 $as_echo "#define PTY_TTY_NAME_SPRINTF /**/" >>confdefs.h
16650 $as_echo "#define PTY_TTY_NAME_SPRINTF { char *ptsname (int), *ptyname; int grantpt_result; sigset_t blocked; sigemptyset (&blocked); sigaddset (&blocked, SIGCHLD); 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, PTY_NAME_SIZE, \"%s\", ptyname); }" >>confdefs.h
16655 $as_echo "#define PTY_TTY_NAME_SPRINTF { char *ptsname (int), *ptyname; int grantpt_result; sigset_t blocked; sigemptyset (&blocked); sigaddset (&blocked, SIGCHLD); 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, PTY_NAME_SIZE, \"%s\", ptyname); }" >>confdefs.h
16663 $as_echo "#define FIRST_PTY_LETTER 'z'" >>confdefs.h
16665 $as_echo "#define PTY_NAME_SPRINTF strcpy (pty_name, \"/dev/ptmx\");" >>confdefs.h
16668 $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
16677 aix4-2 | cygwin | gnu | irix6-5 | dragonfly | freebsd | netbsd | openbsd | darwin
)
16678 $as_echo "#define SIGNALS_VIA_CHARACTERS 1" >>confdefs.h
16682 gnu-linux | gnu-kfreebsd
)
16684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signals via characters" >&5
16685 $as_echo_n "checking for signals via characters... " >&6; }
16686 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16687 /* end confdefs.h. */
16689 #include <linux/version.h>
16690 #if LINUX_VERSION_CODE < 0x20400
16691 # error "Linux version too old"
16702 if ac_fn_c_try_cpp
"$LINENO"; then :
16703 emacs_signals_via_chars
=yes
16705 emacs_signals_via_chars
=no
16707 rm -f conftest.err conftest.
$ac_ext
16709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_signals_via_chars" >&5
16710 $as_echo "$emacs_signals_via_chars" >&6; }
16711 test $emacs_signals_via_chars = yes && $as_echo "#define SIGNALS_VIA_CHARACTERS 1" >>confdefs.h
16721 $as_echo "#define DATA_SEG_BITS 0x20000000" >>confdefs.h
16725 $as_echo "#define DATA_SEG_BITS 0x40000000" >>confdefs.h
16729 $as_echo "#define DATA_SEG_BITS 0x10000000" >>confdefs.h
16738 darwin
) $as_echo "#define TAB3 OXTABS" >>confdefs.h
16741 gnu | dragonfly | freebsd | netbsd | openbsd
)
16743 $as_echo "#define TABDLY OXTABS" >>confdefs.h
16745 $as_echo "#define TAB3 OXTABS" >>confdefs.h
16749 gnu-linux | gnu-kfreebsd
)
16750 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16751 /* end confdefs.h. */
16765 if ac_fn_c_try_cpp
"$LINENO"; then :
16767 $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
16770 rm -f conftest.err conftest.
$ac_ext
16775 $as_echo "#define RUN_TIME_REMAP 1" >>confdefs.h
16785 gnu-linux | gnu-kfreebsd
)
16786 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16787 /* end confdefs.h. */
16789 #if defined __i386__ || defined __sparc__ || defined __mc68000__ \
16790 || defined __alpha__ || defined __mips__ || defined __s390__ \
16791 || defined __arm__ || defined __powerpc__ || defined __amd64__ \
16792 || defined __ia64__ || defined __sh__
16795 # error "setjmp not known to work on this arch"
16806 if ac_fn_c_try_cpp
"$LINENO"; then :
16807 $as_echo "#define GC_SETJMP_WORKS 1" >>confdefs.h
16810 rm -f conftest.err conftest.
$ac_ext
16815 if test x
$GCC = xyes
; then
16816 $as_echo "#define GC_SETJMP_WORKS 1" >>confdefs.h
16820 dragonfly | freebsd | netbsd | openbsd | irix6-5 | sol2
* )
16821 $as_echo "#define GC_SETJMP_WORKS 1" >>confdefs.h
16826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _setjmp" >&5
16827 $as_echo_n "checking for _setjmp... " >&6; }
16828 if test "${emacs_cv_func__setjmp+set}" = set; then :
16829 $as_echo_n "(cached) " >&6
16831 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16832 /* end confdefs.h. */
16833 #include <setjmp.h>
16835 # define _longjmp longjmp
16848 if ac_fn_c_try_link
"$LINENO"; then :
16849 emacs_cv_func__setjmp
=yes
16851 emacs_cv_func__setjmp
=no
16853 rm -f core conftest.err conftest.
$ac_objext \
16854 conftest
$ac_exeext conftest.
$ac_ext
16856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func__setjmp" >&5
16857 $as_echo "$emacs_cv_func__setjmp" >&6; }
16858 if test $emacs_cv_func__setjmp = yes; then
16860 $as_echo "#define HAVE__SETJMP 1" >>confdefs.h
16863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
16864 $as_echo_n "checking for sigsetjmp... " >&6; }
16865 if test "${emacs_cv_func_sigsetjmp+set}" = set; then :
16866 $as_echo_n "(cached) " >&6
16868 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16869 /* end confdefs.h. */
16870 #include <setjmp.h>
16876 if (! sigsetjmp (j, 1))
16882 if ac_fn_c_try_link
"$LINENO"; then :
16883 emacs_cv_func_sigsetjmp
=yes
16885 emacs_cv_func_sigsetjmp
=no
16887 rm -f core conftest.err conftest.
$ac_objext \
16888 conftest
$ac_exeext conftest.
$ac_ext
16890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func_sigsetjmp" >&5
16891 $as_echo "$emacs_cv_func_sigsetjmp" >&6; }
16892 if test $emacs_cv_func_sigsetjmp = yes; then
16894 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
16902 $as_echo "#define TIOCSIGSEND TIOCSIGNAL" >>confdefs.h
16911 $as_echo "#define XOS_NEEDS_TIME_H 1" >>confdefs.h
16924 $as_echo "#define USG /**/" >>confdefs.h
16926 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16927 /* end confdefs.h. */
16930 # error "_AIX not defined"
16941 if ac_fn_c_try_cpp
"$LINENO"; then :
16945 $as_echo "#define _AIX /**/" >>confdefs.h
16948 rm -f conftest.err conftest.
$ac_ext
16953 $as_echo "#define CYGWIN 1" >>confdefs.h
16959 $as_echo "#define DARWIN_OS /**/" >>confdefs.h
16963 gnu-linux | gnu-kfreebsd
)
16964 $as_echo "#define USG /**/" >>confdefs.h
16967 $as_echo "#define GNU_LINUX /**/" >>confdefs.h
16972 $as_echo "#define USG /**/" >>confdefs.h
16975 $as_echo "#define HPUX /**/" >>confdefs.h
16980 $as_echo "#define USG /**/" >>confdefs.h
16982 $as_echo "#define USG5_4 /**/" >>confdefs.h
16985 $as_echo "#define IRIX6_5 /**/" >>confdefs.h
16990 $as_echo "#define DOS_NT /**/" >>confdefs.h
16993 $as_echo "#define WINDOWSNT 1" >>confdefs.h
16995 if test "x$ac_enable_checking" != "x" ; then
16997 $as_echo "#define EMACSDEBUG 1" >>confdefs.h
17003 $as_echo "#define USG /**/" >>confdefs.h
17005 $as_echo "#define USG5_4 /**/" >>confdefs.h
17008 $as_echo "#define SOLARIS2 /**/" >>confdefs.h
17013 $as_echo "#define USG /**/" >>confdefs.h
17015 $as_echo "#define USG5_4 /**/" >>confdefs.h
17020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable FIONREAD" >&5
17021 $as_echo_n "checking for usable FIONREAD... " >&6; }
17022 if test "${emacs_cv_usable_FIONREAD+set}" = set; then :
17023 $as_echo_n "(cached) " >&6
17027 emacs_cv_usable_FIONREAD
=no
17031 emacs_cv_usable_FIONREAD
=yes
17035 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17036 /* end confdefs.h. */
17037 #include <sys/types.h>
17038 #include <sys/ioctl.h>
17040 # include <sys/filio.h>
17046 int foo = ioctl (0, FIONREAD, &foo);
17051 if ac_fn_c_try_compile
"$LINENO"; then :
17052 emacs_cv_usable_FIONREAD
=yes
17054 emacs_cv_usable_FIONREAD
=no
17056 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_usable_FIONREAD" >&5
17061 $as_echo "$emacs_cv_usable_FIONREAD" >&6; }
17062 if test $emacs_cv_usable_FIONREAD = yes; then
17064 $as_echo "#define USABLE_FIONREAD 1" >>confdefs.h
17067 if test $emacs_broken_SIGIO = no
; then
17068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable SIGIO" >&5
17069 $as_echo_n "checking for usable SIGIO... " >&6; }
17070 if test "${emacs_cv_usable_SIGIO+set}" = set; then :
17071 $as_echo_n "(cached) " >&6
17073 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17074 /* end confdefs.h. */
17076 #include <signal.h>
17081 int foo = SIGIO | F_SETFL | FASYNC;
17086 if ac_fn_c_try_compile
"$LINENO"; then :
17087 emacs_cv_usable_SIGIO
=yes
17089 emacs_cv_usable_SIGIO
=no
17091 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_usable_SIGIO" >&5
17094 $as_echo "$emacs_cv_usable_SIGIO" >&6; }
17095 if test $emacs_cv_usable_SIGIO = yes; then
17097 $as_echo "#define USABLE_SIGIO 1" >>confdefs.h
17107 $as_echo "#define G_SLICE_ALWAYS_MALLOC 1" >>confdefs.h
17113 $as_echo "#define USG_SUBTTY_WORKS 1" >>confdefs.h
17119 $as_echo "#define PREFER_VSUSP 1" >>confdefs.h
17125 $as_echo "#define _STRUCTURED_PROC 1" >>confdefs.h
17130 # Set up the CFLAGS for real compilation, so we can substitute it.
17131 CFLAGS
="$REAL_CFLAGS"
17132 CPPFLAGS
="$REAL_CPPFLAGS"
17134 ## Hack to detect a buggy GCC version.
17135 if test "x$GCC" = xyes \
17136 && test x
"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
17137 && test x
"`echo $CFLAGS | grep '\-O[23]'`" != x \
17138 && test x
"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x
; then
17139 as_fn_error
"GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
17142 version
=$PACKAGE_VERSION
17144 copyright
="Copyright (C) 2013 Free Software Foundation, Inc."
17146 cat >>confdefs.h
<<_ACEOF
17147 #define COPYRIGHT "$copyright"
17152 ### Specify what sort of things we'll be editing into Makefile and config.h.
17153 ### Use configuration here uncanonicalized to avoid exceeding size limits.
17179 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
17180 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
17181 ## end of LIBX_BASE, but nothing ever set it.
17186 ## Used in lwlib/Makefile.in.
17195 if test -n "${term_header}"; then
17197 cat >>confdefs.h
<<_ACEOF
17198 #define TERM_HEADER "${term_header}"
17204 cat >>confdefs.h
<<_ACEOF
17205 #define EMACS_CONFIGURATION "${canonical}"
17209 cat >>confdefs.h
<<_ACEOF
17210 #define EMACS_CONFIG_OPTIONS "${emacs_config_options}"
17217 $as_echo "#define config_opsysfile <ms-w32.h>" >>confdefs.h
17225 if test "${HAVE_X_WINDOWS}" = "yes" ; then
17227 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
17230 XOBJ
="xterm.o xfns.o xselect.o xrdb.o xsmfns.o xsettings.o"
17232 if test "$HAVE_XFT" = "yes"; then
17233 FONT_OBJ
="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
17234 elif test "$HAVE_FREETYPE" = "yes"; then
17235 FONT_OBJ
="$FONT_OBJ ftfont.o ftxfont.o"
17245 if test "${USE_X_TOOLKIT}" != "none" ; then
17246 WIDGET_OBJ
=widget.o
17248 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
17250 if test "${USE_X_TOOLKIT}" = "LUCID"; then
17252 $as_echo "#define USE_LUCID 1" >>confdefs.h
17254 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
17256 $as_echo "#define USE_MOTIF 1" >>confdefs.h
17261 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
17262 MOTIF_LIBW
="$MOTIF_LIBW -lXpm"
17266 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
17267 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
17268 MOTIF_LIBW
="MOTIF_LIBW -lXimp"
17272 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
17273 MOTIF_LIBW
="$MOTIF_LIBW -li18n"
17276 MOTIF_LIBW
="$MOTIF_LIBW $LIBXP"
17282 case "$USE_X_TOOLKIT" in
17283 MOTIF
) TOOLKIT_LIBW
="$MOTIF_LIBW" ;;
17284 LUCID
) TOOLKIT_LIBW
="$LUCID_LIBW" ;;
17285 none
) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW
="$GTK_LIBS" ;;
17289 if test "${opsys}" != "mingw32"; then
17290 if test "$USE_X_TOOLKIT" = "none"; then
17291 LIBXT_OTHER
="\$(LIBXSM)"
17292 OLDXMENU_TARGET
="really-oldXMenu"
17294 LIBXT_OTHER
="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
17295 OLDXMENU_TARGET
="really-lwlib"
17300 ## The X Menu stuff is present in the X10 distribution, but missing
17301 ## from X11. If we have X10, just use the installed library;
17302 ## otherwise, use our own copy.
17303 if test "${HAVE_X11}" = "yes" ; then
17305 $as_echo "#define HAVE_X11 1" >>confdefs.h
17308 if test "$USE_X_TOOLKIT" = "none"; then
17309 OLDXMENU
="\${oldXMenudir}/libXMenu11.a"
17311 OLDXMENU
="\${lwlibdir}/liblw.a"
17313 LIBXMENU
="\$(OLDXMENU)"
17314 LIBX_OTHER
="\$(LIBXT) \$(LIBX_EXTRA)"
17315 OLDXMENU_DEPS
="\${OLDXMENU} ../src/\${OLDXMENU}"
17317 ## For a syntactically valid Makefile; not actually used for anything.
17318 ## See comments in src/Makefile.in.
17320 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
17321 if test "${HAVE_X_WINDOWS}" = "yes"; then
17330 if test "$HAVE_GTK" = "yes" ||
test "$HAVE_MENUS" != "yes"; then
17343 if test "${HAVE_MENUS}" = "yes" ; then
17345 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
17349 if test "${GNU_MALLOC}" = "yes" ; then
17351 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
17356 if test "${REL_ALLOC}" = "yes" ; then
17358 $as_echo "#define REL_ALLOC 1" >>confdefs.h
17361 test "$system_malloc" != "yes" && RALLOC_OBJ
=ralloc.o
17365 if test "$opsys" = "cygwin"; then
17366 CYGWIN_OBJ
="sheap.o cygw32.o"
17367 ## Cygwin differs because of its unexec().
17369 POST_ALLOC_OBJ
=lastfile.o
17370 elif test "$opsys" = "mingw32"; then
17373 POST_ALLOC_OBJ
=lastfile.o
17376 PRE_ALLOC_OBJ
=lastfile.o
17383 # Configure gnulib. Although this does not affect CFLAGS or LIBS permanently.
17384 # it temporarily reverts them to their pre-pkg-config values,
17385 # because gnulib needs to work with both src (which uses the
17386 # pkg-config stuff) and lib-src (which does not). For example, gnulib
17387 # may need to determine whether LIB_CLOCK_GETTIME should contain -lrt,
17388 # and it therefore needs to run in an environment where LIBS does not
17389 # already contain -lrt merely because 'pkg-config --libs' printed '-lrt'
17390 # for some package unrelated to lib-src.
17391 SAVE_CFLAGS
=$CFLAGS
17393 CFLAGS
=$pre_PKG_CONFIG_CFLAGS
17394 LIBS
="$LIB_PTHREAD $pre_PKG_CONFIG_LIBS"
17406 LIBC_FATAL_STDERR_
=1
17407 export LIBC_FATAL_STDERR_
17409 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
17410 # for constant arguments. Useless!
17411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
17412 $as_echo_n "checking for working alloca.h... " >&6; }
17413 if test "${ac_cv_working_alloca_h+set}" = set; then :
17414 $as_echo_n "(cached) " >&6
17416 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17417 /* end confdefs.h. */
17418 #include <alloca.h>
17422 char *p = (char *) alloca (2 * sizeof (int));
17428 if ac_fn_c_try_link
"$LINENO"; then :
17429 ac_cv_working_alloca_h
=yes
17431 ac_cv_working_alloca_h
=no
17433 rm -f core conftest.err conftest.
$ac_objext \
17434 conftest
$ac_exeext conftest.
$ac_ext
17436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
17437 $as_echo "$ac_cv_working_alloca_h" >&6; }
17438 if test $ac_cv_working_alloca_h = yes; then
17440 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
17444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
17445 $as_echo_n "checking for alloca... " >&6; }
17446 if test "${ac_cv_func_alloca_works+set}" = set; then :
17447 $as_echo_n "(cached) " >&6
17449 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17450 /* end confdefs.h. */
17452 # define alloca __builtin_alloca
17455 # include <malloc.h>
17456 # define alloca _alloca
17458 # ifdef HAVE_ALLOCA_H
17459 # include <alloca.h>
17464 # ifndef alloca /* predefined by HP cc +Olibcalls */
17475 char *p = (char *) alloca (1);
17481 if ac_fn_c_try_link
"$LINENO"; then :
17482 ac_cv_func_alloca_works
=yes
17484 ac_cv_func_alloca_works
=no
17486 rm -f core conftest.err conftest.
$ac_objext \
17487 conftest
$ac_exeext conftest.
$ac_ext
17489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
17490 $as_echo "$ac_cv_func_alloca_works" >&6; }
17492 if test $ac_cv_func_alloca_works = yes; then
17494 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
17497 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
17498 # that cause trouble. Some versions do not even contain alloca or
17499 # contain a buggy version. If you still want to use their alloca,
17500 # use ar to extract alloca.o from them instead of compiling alloca.c.
17506 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
17508 $as_echo "#define C_ALLOCA 1" >>confdefs.h
17511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 'alloca.c' needs Cray hooks" >&5
17512 $as_echo_n "checking whether 'alloca.c' needs Cray hooks... " >&6; }
17513 if test "${ac_cv_os_cray+set}" = set; then :
17514 $as_echo_n "(cached) " >&6
17516 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17517 /* end confdefs.h. */
17518 #if defined CRAY && ! defined CRAY2
17525 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17526 $EGREP "webecray" >/dev
/null
2>&1; then :
17534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
17535 $as_echo "$ac_cv_os_cray" >&6; }
17536 if test $ac_cv_os_cray = yes; then
17537 for ac_func
in _getb67 GETB67 getb67
; do
17538 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17539 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
17540 eval as_val
=\$
$as_ac_var
17541 if test "x$as_val" = x
""yes; then :
17543 cat >>confdefs.h
<<_ACEOF
17544 #define CRAY_STACKSEG_END $ac_func
17553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
17554 $as_echo_n "checking stack direction for C alloca... " >&6; }
17555 if test "${ac_cv_c_stack_direction+set}" = set; then :
17556 $as_echo_n "(cached) " >&6
17558 if test "$cross_compiling" = yes; then :
17559 ac_cv_c_stack_direction
=0
17561 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17562 /* end confdefs.h. */
17563 $ac_includes_default
17565 find_stack_direction (int *addr, int depth)
17567 int dir, dummy = 0;
17570 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
17571 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
17572 return dir + dummy;
17576 main (int argc, char **argv)
17578 return find_stack_direction (0, argc + !argv + 20) < 0;
17581 if ac_fn_c_try_run
"$LINENO"; then :
17582 ac_cv_c_stack_direction
=1
17584 ac_cv_c_stack_direction
=-1
17586 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17587 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
17592 $as_echo "$ac_cv_c_stack_direction" >&6; }
17593 cat >>confdefs.h
<<_ACEOF
17594 #define STACK_DIRECTION $ac_cv_c_stack_direction
17603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
17604 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
17605 if test "${ac_cv_c_bigendian+set}" = set; then :
17606 $as_echo_n "(cached) " >&6
17608 ac_cv_c_bigendian
=unknown
17609 # See if we're dealing with a universal compiler.
17610 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17611 /* end confdefs.h. */
17612 #ifndef __APPLE_CC__
17613 not a universal capable compiler
17618 if ac_fn_c_try_compile
"$LINENO"; then :
17620 # Check for potential -arch flags. It is not universal unless
17621 # there are at least two -arch flags with different values.
17624 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
17625 if test -n "$ac_prev"; then
17627 i?
86 | x86_64 | ppc | ppc64
)
17628 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
17631 ac_cv_c_bigendian
=universal
17637 elif test "x$ac_word" = "x-arch"; then
17642 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17643 if test $ac_cv_c_bigendian = unknown
; then
17644 # See if sys/param.h defines the BYTE_ORDER macro.
17645 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17646 /* end confdefs.h. */
17647 #include <sys/types.h>
17648 #include <sys/param.h>
17653 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
17654 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
17656 bogus endian macros
17663 if ac_fn_c_try_compile
"$LINENO"; then :
17664 # It does; now see whether it defined to BIG_ENDIAN or not.
17665 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17666 /* end confdefs.h. */
17667 #include <sys/types.h>
17668 #include <sys/param.h>
17673 #if BYTE_ORDER != BIG_ENDIAN
17681 if ac_fn_c_try_compile
"$LINENO"; then :
17682 ac_cv_c_bigendian
=yes
17684 ac_cv_c_bigendian
=no
17686 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17688 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17690 if test $ac_cv_c_bigendian = unknown
; then
17691 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
17692 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17693 /* end confdefs.h. */
17694 #include <limits.h>
17699 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
17700 bogus endian macros
17707 if ac_fn_c_try_compile
"$LINENO"; then :
17708 # It does; now see whether it defined to _BIG_ENDIAN or not.
17709 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17710 /* end confdefs.h. */
17711 #include <limits.h>
17716 #ifndef _BIG_ENDIAN
17724 if ac_fn_c_try_compile
"$LINENO"; then :
17725 ac_cv_c_bigendian
=yes
17727 ac_cv_c_bigendian
=no
17729 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17731 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17733 if test $ac_cv_c_bigendian = unknown
; then
17734 # Compile a test program.
17735 if test "$cross_compiling" = yes; then :
17736 # Try to guess by grepping values from an object file.
17737 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17738 /* end confdefs.h. */
17739 short int ascii_mm[] =
17740 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
17741 short int ascii_ii[] =
17742 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
17743 int use_ascii (int i) {
17744 return ascii_mm[i] + ascii_ii[i];
17746 short int ebcdic_ii[] =
17747 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
17748 short int ebcdic_mm[] =
17749 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
17750 int use_ebcdic (int i) {
17751 return ebcdic_mm[i] + ebcdic_ii[i];
17758 return use_ascii (foo) == use_ebcdic (foo);
17763 if ac_fn_c_try_compile
"$LINENO"; then :
17764 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
17765 ac_cv_c_bigendian
=yes
17767 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
17768 if test "$ac_cv_c_bigendian" = unknown
; then
17769 ac_cv_c_bigendian
=no
17771 # finding both strings is unlikely to happen, but who knows?
17772 ac_cv_c_bigendian
=unknown
17776 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17778 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17779 /* end confdefs.h. */
17780 $ac_includes_default
17785 /* Are we little or big endian? From Harbison&Steele. */
17789 char c[sizeof (long int)];
17792 return u.c[sizeof (long int) - 1] == 1;
17798 if ac_fn_c_try_run
"$LINENO"; then :
17799 ac_cv_c_bigendian
=no
17801 ac_cv_c_bigendian
=yes
17803 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17804 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
17810 $as_echo "$ac_cv_c_bigendian" >&6; }
17811 case $ac_cv_c_bigendian in #(
17813 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
17819 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
17823 as_fn_error
"unknown endianness
17824 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
17836 GNULIB_EUIDACCESS
=0;
17837 GNULIB_FACCESSAT
=0;
17840 GNULIB_FDATASYNC
=0;
17842 GNULIB_FTRUNCATE
=0;
17844 GNULIB_GETDOMAINNAME
=0;
17845 GNULIB_GETDTABLESIZE
=0;
17846 GNULIB_GETGROUPS
=0;
17847 GNULIB_GETHOSTNAME
=0;
17849 GNULIB_GETLOGIN_R
=0;
17850 GNULIB_GETPAGESIZE
=0;
17851 GNULIB_GETUSERSHELL
=0;
17852 GNULIB_GROUP_MEMBER
=0;
17864 GNULIB_READLINKAT
=0;
17866 GNULIB_SETHOSTNAME
=0;
17869 GNULIB_SYMLINKAT
=0;
17870 GNULIB_TTYNAME_R
=0;
17871 GNULIB_UNISTD_H_NONBLOCKING
=0;
17872 GNULIB_UNISTD_H_SIGPIPE
=0;
17887 HAVE_GETDTABLESIZE
=1;
17889 HAVE_GETHOSTNAME
=1;
17891 HAVE_GETPAGESIZE
=1;
17892 HAVE_GROUP_MEMBER
=1;
17902 HAVE_SETHOSTNAME
=1;
17908 HAVE_DECL_ENVIRON
=1;
17909 HAVE_DECL_FCHDIR
=1;
17910 HAVE_DECL_FDATASYNC
=1;
17911 HAVE_DECL_GETDOMAINNAME
=1;
17912 HAVE_DECL_GETLOGIN_R
=1;
17913 HAVE_DECL_GETPAGESIZE
=1;
17914 HAVE_DECL_GETUSERSHELL
=1;
17915 HAVE_DECL_SETHOSTNAME
=1;
17916 HAVE_DECL_TTYNAME_R
=1;
17918 HAVE_SYS_PARAM_H
=0;
17923 REPLACE_FCHOWNAT
=0;
17924 REPLACE_FTRUNCATE
=0;
17926 REPLACE_GETDOMAINNAME
=0;
17927 REPLACE_GETLOGIN_R
=0;
17928 REPLACE_GETGROUPS
=0;
17929 REPLACE_GETPAGESIZE
=0;
17938 REPLACE_READLINK
=0;
17942 REPLACE_TTYNAME_R
=0;
17944 REPLACE_UNLINKAT
=0;
17947 UNISTD_H_HAVE_WINSOCK2_H
=0;
17948 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
=0;
17954 GNULIB_REWINDDIR
=0;
17957 GNULIB_FDOPENDIR
=0;
17959 GNULIB_ALPHASORT
=0;
17965 HAVE_DECL_FDOPENDIR
=1;
17970 REPLACE_CLOSEDIR
=0;
17972 REPLACE_FDOPENDIR
=0;
17976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
17977 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
17978 if test "${gl_cv_have_include_next+set}" = set; then :
17979 $as_echo_n "(cached) " >&6
17981 rm -rf conftestd1a conftestd1b conftestd2
17982 mkdir conftestd1a conftestd1b conftestd2
17983 cat <<EOF > conftestd1a/conftest.h
17984 #define DEFINED_IN_CONFTESTD1
17985 #include_next <conftest.h>
17986 #ifdef DEFINED_IN_CONFTESTD2
17989 #error "include_next doesn't work"
17992 cat <<EOF > conftestd1b/conftest.h
17993 #define DEFINED_IN_CONFTESTD1
17995 #include_next <conftest.h>
17996 #ifdef DEFINED_IN_CONFTESTD2
17999 #error "include_next doesn't work"
18002 cat <<EOF > conftestd2/conftest.h
18003 #ifndef DEFINED_IN_CONFTESTD1
18004 #error "include_next test doesn't work"
18006 #define DEFINED_IN_CONFTESTD2
18008 gl_save_CPPFLAGS
="$CPPFLAGS"
18009 CPPFLAGS
="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
18010 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18011 /* end confdefs.h. */
18012 #include <conftest.h>
18014 if ac_fn_c_try_compile
"$LINENO"; then :
18015 gl_cv_have_include_next
=yes
18017 CPPFLAGS
="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
18018 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18019 /* end confdefs.h. */
18020 #include <conftest.h>
18022 if ac_fn_c_try_compile
"$LINENO"; then :
18023 gl_cv_have_include_next
=buggy
18025 gl_cv_have_include_next
=no
18027 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18030 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18031 CPPFLAGS
="$gl_save_CPPFLAGS"
18032 rm -rf conftestd1a conftestd1b conftestd2
18035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
18036 $as_echo "$gl_cv_have_include_next" >&6; }
18037 PRAGMA_SYSTEM_HEADER
=
18038 if test $gl_cv_have_include_next = yes; then
18039 INCLUDE_NEXT
=include_next
18040 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include_next
18041 if test -n "$GCC"; then
18042 PRAGMA_SYSTEM_HEADER
='#pragma GCC system_header'
18045 if test $gl_cv_have_include_next = buggy
; then
18046 INCLUDE_NEXT
=include
18047 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include_next
18049 INCLUDE_NEXT
=include
18050 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include
18056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
18057 $as_echo_n "checking whether system header files limit the line length... " >&6; }
18058 if test "${gl_cv_pragma_columns+set}" = set; then :
18059 $as_echo_n "(cached) " >&6
18061 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18062 /* end confdefs.h. */
18069 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18070 $EGREP "choke me" >/dev
/null
2>&1; then :
18071 gl_cv_pragma_columns
=yes
18073 gl_cv_pragma_columns
=no
18079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
18080 $as_echo "$gl_cv_pragma_columns" >&6; }
18081 if test $gl_cv_pragma_columns = yes; then
18082 PRAGMA_COLUMNS
="#pragma COLUMNS 10000"
18091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtold conforms to C99" >&5
18092 $as_echo_n "checking whether strtold conforms to C99... " >&6; }
18093 if test "${gl_cv_func_c99_strtold+set}" = set; then :
18094 $as_echo_n "(cached) " >&6
18096 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18097 /* end confdefs.h. */
18098 /* On HP-UX before 11.23, strtold returns a struct instead of
18099 long double. Reject implementations like that, by requiring
18100 compatibility with the C99 prototype. */
18101 #include <stdlib.h>
18102 static long double (*p) (char const *, char **) = strtold;
18104 test (char const *nptr, char **endptr)
18107 r = strtold (nptr, endptr);
18113 return test ("1.0", NULL) != 1 || p ("1.0", NULL) != 1;
18118 if ac_fn_c_try_link
"$LINENO"; then :
18119 gl_cv_func_c99_strtold
=yes
18121 gl_cv_func_c99_strtold
=no
18123 rm -f core conftest.err conftest.
$ac_objext \
18124 conftest
$ac_exeext conftest.
$ac_ext
18126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_c99_strtold" >&5
18127 $as_echo "$gl_cv_func_c99_strtold" >&6; }
18128 if test $gl_cv_func_c99_strtold = yes; then
18130 $as_echo "#define HAVE_C99_STRTOLD 1" >>confdefs.h
18141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if environ is properly declared" >&5
18142 $as_echo_n "checking if environ is properly declared... " >&6; }
18143 if test "${gt_cv_var_environ_declaration+set}" = set; then :
18144 $as_echo_n "(cached) " >&6
18147 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18148 /* end confdefs.h. */
18150 #include <unistd.h>
18152 /* mingw, BeOS, Haiku declare environ in <stdlib.h>, not in <unistd.h>. */
18153 #include <stdlib.h>
18155 extern struct { int foo; } environ;
18164 if ac_fn_c_try_compile
"$LINENO"; then :
18165 gt_cv_var_environ_declaration
=no
18167 gt_cv_var_environ_declaration
=yes
18169 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_var_environ_declaration" >&5
18173 $as_echo "$gt_cv_var_environ_declaration" >&6; }
18174 if test $gt_cv_var_environ_declaration = yes; then
18176 $as_echo "#define HAVE_ENVIRON_DECL 1" >>confdefs.h
18181 if test $gt_cv_var_environ_declaration != yes; then
18182 HAVE_DECL_ENVIRON
=0
18187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5
18188 $as_echo_n "checking for complete errno.h... " >&6; }
18189 if test "${gl_cv_header_errno_h_complete+set}" = set; then :
18190 $as_echo_n "(cached) " >&6
18193 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18194 /* end confdefs.h. */
18197 #if !defined ETXTBSY
18200 #if !defined ENOMSG
18206 #if !defined ENOLINK
18209 #if !defined EPROTO
18212 #if !defined EMULTIHOP
18215 #if !defined EBADMSG
18218 #if !defined EOVERFLOW
18221 #if !defined ENOTSUP
18224 #if !defined ENETRESET
18227 #if !defined ECONNABORTED
18230 #if !defined ESTALE
18233 #if !defined EDQUOT
18236 #if !defined ECANCELED
18239 #if !defined EOWNERDEAD
18242 #if !defined ENOTRECOVERABLE
18245 #if !defined EILSEQ
18250 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18251 $EGREP "booboo" >/dev
/null
2>&1; then :
18252 gl_cv_header_errno_h_complete
=no
18254 gl_cv_header_errno_h_complete
=yes
18260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5
18261 $as_echo "$gl_cv_header_errno_h_complete" >&6; }
18262 if test $gl_cv_header_errno_h_complete = yes; then
18273 if test $gl_cv_have_include_next = yes; then
18274 gl_cv_next_errno_h
='<'errno.h
'>'
18276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5
18277 $as_echo_n "checking absolute name of <errno.h>... " >&6; }
18278 if test "${gl_cv_next_errno_h+set}" = set; then :
18279 $as_echo_n "(cached) " >&6
18282 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18283 /* end confdefs.h. */
18288 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
18289 *) gl_absname_cpp
="$ac_cpp" ;;
18294 gl_dirsep_regex
='[/\\]'
18297 gl_dirsep_regex
='\/'
18300 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
18302 gl_header_literal_regex
=`echo 'errno.h' \
18303 | sed -e "$gl_make_literal_regex_sed"`
18304 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18305 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18310 gl_cv_next_errno_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18311 sed -n "$gl_absolute_header_sed"`'"'
18315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5
18316 $as_echo "$gl_cv_next_errno_h" >&6; }
18318 NEXT_ERRNO_H
=$gl_cv_next_errno_h
18320 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
18321 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18322 gl_next_as_first_directive
='<'errno.h
'>'
18324 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18325 gl_next_as_first_directive
=$gl_cv_next_errno_h
18327 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
=$gl_next_as_first_directive
18335 if test -n "$ERRNO_H"; then
18336 GL_GENERATE_ERRNO_H_TRUE
=
18337 GL_GENERATE_ERRNO_H_FALSE
='#'
18339 GL_GENERATE_ERRNO_H_TRUE
='#'
18340 GL_GENERATE_ERRNO_H_FALSE
=
18344 if test -n "$ERRNO_H"; then
18345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5
18346 $as_echo_n "checking for EMULTIHOP value... " >&6; }
18347 if test "${gl_cv_header_errno_h_EMULTIHOP+set}" = set; then :
18348 $as_echo_n "(cached) " >&6
18351 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18352 /* end confdefs.h. */
18360 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18361 $EGREP "yes" >/dev
/null
2>&1; then :
18362 gl_cv_header_errno_h_EMULTIHOP
=yes
18364 gl_cv_header_errno_h_EMULTIHOP
=no
18368 if test $gl_cv_header_errno_h_EMULTIHOP = no
; then
18369 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18370 /* end confdefs.h. */
18372 #define _XOPEN_SOURCE_EXTENDED 1
18379 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18380 $EGREP "yes" >/dev
/null
2>&1; then :
18381 gl_cv_header_errno_h_EMULTIHOP
=hidden
18385 if test $gl_cv_header_errno_h_EMULTIHOP = hidden
; then
18386 if ac_fn_c_compute_int
"$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP" "
18387 #define _XOPEN_SOURCE_EXTENDED 1
18389 /* The following two lines are a workaround against an autoconf-2.52 bug. */
18391 #include <stdlib.h>
18400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
18401 $as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
18402 case $gl_cv_header_errno_h_EMULTIHOP in
18404 EMULTIHOP_HIDDEN
=0; EMULTIHOP_VALUE
=
18407 EMULTIHOP_HIDDEN
=1; EMULTIHOP_VALUE
="$gl_cv_header_errno_h_EMULTIHOP"
18415 if test -n "$ERRNO_H"; then
18416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5
18417 $as_echo_n "checking for ENOLINK value... " >&6; }
18418 if test "${gl_cv_header_errno_h_ENOLINK+set}" = set; then :
18419 $as_echo_n "(cached) " >&6
18422 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18423 /* end confdefs.h. */
18431 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18432 $EGREP "yes" >/dev
/null
2>&1; then :
18433 gl_cv_header_errno_h_ENOLINK
=yes
18435 gl_cv_header_errno_h_ENOLINK
=no
18439 if test $gl_cv_header_errno_h_ENOLINK = no
; then
18440 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18441 /* end confdefs.h. */
18443 #define _XOPEN_SOURCE_EXTENDED 1
18450 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18451 $EGREP "yes" >/dev
/null
2>&1; then :
18452 gl_cv_header_errno_h_ENOLINK
=hidden
18456 if test $gl_cv_header_errno_h_ENOLINK = hidden
; then
18457 if ac_fn_c_compute_int
"$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK" "
18458 #define _XOPEN_SOURCE_EXTENDED 1
18460 /* The following two lines are a workaround against an autoconf-2.52 bug. */
18462 #include <stdlib.h>
18471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5
18472 $as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
18473 case $gl_cv_header_errno_h_ENOLINK in
18475 ENOLINK_HIDDEN
=0; ENOLINK_VALUE
=
18478 ENOLINK_HIDDEN
=1; ENOLINK_VALUE
="$gl_cv_header_errno_h_ENOLINK"
18486 if test -n "$ERRNO_H"; then
18487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5
18488 $as_echo_n "checking for EOVERFLOW value... " >&6; }
18489 if test "${gl_cv_header_errno_h_EOVERFLOW+set}" = set; then :
18490 $as_echo_n "(cached) " >&6
18493 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18494 /* end confdefs.h. */
18502 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18503 $EGREP "yes" >/dev
/null
2>&1; then :
18504 gl_cv_header_errno_h_EOVERFLOW
=yes
18506 gl_cv_header_errno_h_EOVERFLOW
=no
18510 if test $gl_cv_header_errno_h_EOVERFLOW = no
; then
18511 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18512 /* end confdefs.h. */
18514 #define _XOPEN_SOURCE_EXTENDED 1
18521 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18522 $EGREP "yes" >/dev
/null
2>&1; then :
18523 gl_cv_header_errno_h_EOVERFLOW
=hidden
18527 if test $gl_cv_header_errno_h_EOVERFLOW = hidden
; then
18528 if ac_fn_c_compute_int
"$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW" "
18529 #define _XOPEN_SOURCE_EXTENDED 1
18531 /* The following two lines are a workaround against an autoconf-2.52 bug. */
18533 #include <stdlib.h>
18542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
18543 $as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
18544 case $gl_cv_header_errno_h_EOVERFLOW in
18546 EOVERFLOW_HIDDEN
=0; EOVERFLOW_VALUE
=
18549 EOVERFLOW_HIDDEN
=1; EOVERFLOW_VALUE
="$gl_cv_header_errno_h_EOVERFLOW"
18566 GNULIB_NONBLOCKING
=0;
18578 ac_fn_c_check_type
"$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
18579 if test "x$ac_cv_type_mode_t" = x
""yes; then :
18583 cat >>confdefs.h
<<_ACEOF
18589 ac_fn_c_check_decl
"$LINENO" "fdatasync" "ac_cv_have_decl_fdatasync" "$ac_includes_default"
18590 if test "x$ac_cv_have_decl_fdatasync" = x
""yes; then :
18596 cat >>confdefs.h
<<_ACEOF
18597 #define HAVE_DECL_FDATASYNC $ac_have_decl
18602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_dm_mode in struct stat" >&5
18603 $as_echo_n "checking for st_dm_mode in struct stat... " >&6; }
18604 if test "${ac_cv_struct_st_dm_mode+set}" = set; then :
18605 $as_echo_n "(cached) " >&6
18607 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18608 /* end confdefs.h. */
18610 #include <sys/types.h>
18611 #include <sys/stat.h>
18615 struct stat s; s.st_dm_mode;
18620 if ac_fn_c_try_compile
"$LINENO"; then :
18621 ac_cv_struct_st_dm_mode
=yes
18623 ac_cv_struct_st_dm_mode
=no
18625 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_st_dm_mode" >&5
18628 $as_echo "$ac_cv_struct_st_dm_mode" >&6; }
18630 if test $ac_cv_struct_st_dm_mode = yes; then
18632 $as_echo "#define HAVE_ST_DM_MODE 1" >>confdefs.h
18637 ac_fn_c_check_decl
"$LINENO" "strmode" "ac_cv_have_decl_strmode" "$ac_includes_default"
18638 if test "x$ac_cv_have_decl_strmode" = x
""yes; then :
18644 cat >>confdefs.h
<<_ACEOF
18645 #define HAVE_DECL_STRMODE $ac_have_decl
18663 GNULIB_UTIMENSAT
=0;
18677 REPLACE_FUTIMENS
=0;
18683 REPLACE_UTIMENSAT
=0;
18686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
18687 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
18688 if test "${gl_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
18689 $as_echo_n "(cached) " >&6
18691 rm -f conftest.sym conftest.
file
18692 echo >conftest.
file
18693 if test "$as_ln_s" = "ln -s" && ln -s conftest.
file conftest.sym
; then
18694 if test "$cross_compiling" = yes; then :
18696 # Guess yes on glibc systems.
18697 *-gnu*) gl_cv_func_lstat_dereferences_slashed_symlink
="guessing yes" ;;
18698 # If we don't know, assume the worst.
18699 *) gl_cv_func_lstat_dereferences_slashed_symlink
="guessing no" ;;
18703 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18704 /* end confdefs.h. */
18705 $ac_includes_default
18710 /* Linux will dereference the symlink and fail, as required by
18711 POSIX. That is better in the sense that it means we will not
18712 have to compile and use the lstat wrapper. */
18713 return lstat ("conftest.sym/", &sbuf) == 0;
18719 if ac_fn_c_try_run
"$LINENO"; then :
18720 gl_cv_func_lstat_dereferences_slashed_symlink
=yes
18722 gl_cv_func_lstat_dereferences_slashed_symlink
=no
18724 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18725 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18729 # If the 'ln -s' command failed, then we probably don't even
18730 # have an lstat function.
18731 gl_cv_func_lstat_dereferences_slashed_symlink
="guessing no"
18733 rm -f conftest.sym conftest.
file
18736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
18737 $as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
18738 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
18741 cat >>confdefs.h
<<_ACEOF
18742 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
18755 GNULIB_CALLOC_POSIX
=0;
18756 GNULIB_CANONICALIZE_FILE_NAME
=0;
18757 GNULIB_GETLOADAVG
=0;
18758 GNULIB_GETSUBOPT
=0;
18760 GNULIB_MALLOC_POSIX
=0;
18764 GNULIB_MKOSTEMPS
=0;
18767 GNULIB_POSIX_OPENPT
=0;
18769 GNULIB_PTSNAME_R
=0;
18773 GNULIB_REALLOC_POSIX
=0;
18776 GNULIB_SECURE_GETENV
=0;
18781 GNULIB_SYSTEM_POSIX
=0;
18787 HAVE_CANONICALIZE_FILE_NAME
=1;
18788 HAVE_DECL_GETLOADAVG
=1;
18796 HAVE_POSIX_OPENPT
=1;
18804 HAVE_SECURE_GETENV
=1;
18806 HAVE_DECL_SETENV
=1;
18810 HAVE_STRUCT_RANDOM_DATA
=1;
18811 HAVE_SYS_LOADAVG_H
=0;
18813 HAVE_DECL_UNSETENV
=1;
18815 REPLACE_CANONICALIZE_FILE_NAME
=0;
18820 REPLACE_PTSNAME_R
=0;
18822 REPLACE_RANDOM_R
=0;
18824 REPLACE_REALPATH
=0;
18827 REPLACE_UNSETENV
=0;
18845 if test $gl_cv_have_include_next = yes; then
18846 gl_cv_next_getopt_h
='<'getopt.h
'>'
18848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
18849 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
18850 if test "${gl_cv_next_getopt_h+set}" = set; then :
18851 $as_echo_n "(cached) " >&6
18854 if test $ac_cv_header_getopt_h = yes; then
18857 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18858 /* end confdefs.h. */
18859 #include <getopt.h>
18863 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
18864 *) gl_absname_cpp
="$ac_cpp" ;;
18869 gl_dirsep_regex
='[/\\]'
18872 gl_dirsep_regex
='\/'
18875 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
18877 gl_header_literal_regex
=`echo 'getopt.h' \
18878 | sed -e "$gl_make_literal_regex_sed"`
18879 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18880 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18885 gl_cv_next_getopt_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18886 sed -n "$gl_absolute_header_sed"`'"'
18888 gl_cv_next_getopt_h
='<'getopt.h
'>'
18893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
18894 $as_echo "$gl_cv_next_getopt_h" >&6; }
18896 NEXT_GETOPT_H
=$gl_cv_next_getopt_h
18898 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
18899 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18900 gl_next_as_first_directive
='<'getopt.h
'>'
18902 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18903 gl_next_as_first_directive
=$gl_cv_next_getopt_h
18905 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
=$gl_next_as_first_directive
18910 if test $ac_cv_header_getopt_h = yes; then
18919 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
18920 for ac_header
in getopt.h
18922 ac_fn_c_check_header_mongrel
"$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
18923 if test "x$ac_cv_header_getopt_h" = x
""yes; then :
18924 cat >>confdefs.h
<<_ACEOF
18925 #define HAVE_GETOPT_H 1
18929 gl_replace_getopt
=yes
18936 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
18937 for ac_func
in getopt_long_only
18939 ac_fn_c_check_func
"$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
18940 if test "x$ac_cv_func_getopt_long_only" = x
""yes; then :
18941 cat >>confdefs.h
<<_ACEOF
18942 #define HAVE_GETOPT_LONG_ONLY 1
18946 gl_replace_getopt
=yes
18952 if test -z "$gl_replace_getopt"; then
18953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
18954 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
18955 if test "${gl_cv_func_getopt_posix+set}" = set; then :
18956 $as_echo_n "(cached) " >&6
18959 if test $cross_compiling = no
; then
18960 if test "$cross_compiling" = yes; then :
18961 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18962 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18963 as_fn_error
"cannot run test program while cross compiling
18964 See \`config.log' for more details." "$LINENO" 5; }
18966 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18967 /* end confdefs.h. */
18969 #include <unistd.h>
18970 #include <stdlib.h>
18971 #include <string.h>
18976 static char program[] = "program";
18977 static char a[] = "-a";
18978 static char foo[] = "foo";
18979 static char bar[] = "bar";
18980 char *argv[] = { program, a, foo, bar, NULL };
18983 c = getopt (4, argv, "ab");
18986 c = getopt (4, argv, "ab");
18989 if (!(optind == 2))
18995 if ac_fn_c_try_run
"$LINENO"; then :
18996 gl_cv_func_getopt_posix
=maybe
18998 gl_cv_func_getopt_posix
=no
19000 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19001 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19004 if test $gl_cv_func_getopt_posix = maybe
; then
19005 if test "$cross_compiling" = yes; then :
19006 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19007 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19008 as_fn_error
"cannot run test program while cross compiling
19009 See \`config.log' for more details." "$LINENO" 5; }
19011 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19012 /* end confdefs.h. */
19014 #include <unistd.h>
19015 #include <stdlib.h>
19016 #include <string.h>
19021 static char program[] = "program";
19022 static char donald[] = "donald";
19023 static char p[] = "-p";
19024 static char billy[] = "billy";
19025 static char duck[] = "duck";
19026 static char a[] = "-a";
19027 static char bar[] = "bar";
19028 char *argv[] = { program, donald, p, billy, duck, a, bar, NULL };
19031 c = getopt (7, argv, "+abp:q:");
19034 if (!(strcmp (argv[0], "program") == 0))
19036 if (!(strcmp (argv[1], "donald") == 0))
19038 if (!(strcmp (argv[2], "-p") == 0))
19040 if (!(strcmp (argv[3], "billy") == 0))
19042 if (!(strcmp (argv[4], "duck") == 0))
19044 if (!(strcmp (argv[5], "-a") == 0))
19046 if (!(strcmp (argv[6], "bar") == 0))
19048 if (!(optind == 1))
19054 if ac_fn_c_try_run
"$LINENO"; then :
19055 gl_cv_func_getopt_posix
=maybe
19057 gl_cv_func_getopt_posix
=no
19059 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19060 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19064 if test $gl_cv_func_getopt_posix = maybe
; then
19065 if test "$cross_compiling" = yes; then :
19066 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19067 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19068 as_fn_error
"cannot run test program while cross compiling
19069 See \`config.log' for more details." "$LINENO" 5; }
19071 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19072 /* end confdefs.h. */
19074 #include <unistd.h>
19075 #include <stdlib.h>
19076 #include <string.h>
19081 static char program[] = "program";
19082 static char ab[] = "-ab";
19083 char *argv[3] = { program, ab, NULL };
19084 if (getopt (2, argv, "ab:") != 'a')
19086 if (getopt (2, argv, "ab:") != '?')
19096 if ac_fn_c_try_run
"$LINENO"; then :
19097 gl_cv_func_getopt_posix
=yes
19099 gl_cv_func_getopt_posix
=no
19101 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19102 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19108 darwin
* | aix
* | mingw
*) gl_cv_func_getopt_posix
="guessing no";;
19109 *) gl_cv_func_getopt_posix
="guessing yes";;
19114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
19115 $as_echo "$gl_cv_func_getopt_posix" >&6; }
19116 case "$gl_cv_func_getopt_posix" in
19117 *no
) gl_replace_getopt
=yes ;;
19121 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
19122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
19123 $as_echo_n "checking for working GNU getopt function... " >&6; }
19124 if test "${gl_cv_func_getopt_gnu+set}" = set; then :
19125 $as_echo_n "(cached) " >&6
19127 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
19128 # optstring is necessary for programs like m4 that have POSIX-mandated
19129 # semantics for supporting options interspersed with files.
19130 # Also, since getopt_long is a GNU extension, we require optind=0.
19131 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
19132 # so take care to revert to the correct (non-)export state.
19133 gl_awk_probe
='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
19134 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
19135 xx
) gl_had_POSIXLY_CORRECT
=exported
;;
19136 x
) gl_had_POSIXLY_CORRECT
=yes ;;
19137 *) gl_had_POSIXLY_CORRECT
= ;;
19140 export POSIXLY_CORRECT
19141 if test "$cross_compiling" = yes; then :
19142 gl_cv_func_getopt_gnu
="guessing no"
19145 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19146 /* end confdefs.h. */
19147 #include <getopt.h>
19148 #include <stddef.h>
19149 #include <string.h>
19151 #include <stdlib.h>
19152 #if defined __MACH__ && defined __APPLE__
19153 /* Avoid a crash on Mac OS X. */
19154 #include <mach/mach.h>
19155 #include <mach/mach_error.h>
19156 #include <mach/thread_status.h>
19157 #include <mach/exception.h>
19158 #include <mach/task.h>
19159 #include <pthread.h>
19160 /* The exception port on which our thread listens. */
19161 static mach_port_t our_exception_port;
19162 /* The main function of the thread listening for exceptions of type
19165 mach_exception_thread (void *arg)
19167 /* Buffer for a message to be received. */
19169 mach_msg_header_t head;
19170 mach_msg_body_t msgh_body;
19173 mach_msg_return_t retval;
19174 /* Wait for a message on the exception port. */
19175 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
19176 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
19177 if (retval != MACH_MSG_SUCCESS)
19182 nocrash_init (void)
19184 mach_port_t self = mach_task_self ();
19185 /* Allocate a port on which the thread shall listen for exceptions. */
19186 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
19188 /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
19189 if (mach_port_insert_right (self, our_exception_port, our_exception_port,
19190 MACH_MSG_TYPE_MAKE_SEND)
19192 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
19194 exception_mask_t mask = EXC_MASK_BAD_ACCESS;
19195 /* Create the thread listening on the exception port. */
19196 pthread_attr_t attr;
19198 if (pthread_attr_init (&attr) == 0
19199 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
19200 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
19201 pthread_attr_destroy (&attr);
19202 /* Replace the exception port info for these exceptions with our own.
19203 Note that we replace the exception port for the entire task, not only
19204 for a particular thread. This has the effect that when our exception
19205 port gets the message, the thread specific exception port has already
19206 been asked, and we don't need to bother about it.
19207 See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
19208 task_set_exception_ports (self, mask, our_exception_port,
19209 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
19214 #elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
19215 /* Avoid a crash on native Windows. */
19216 #define WIN32_LEAN_AND_MEAN
19217 #include <windows.h>
19218 #include <winerror.h>
19220 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
19222 switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
19224 case EXCEPTION_ACCESS_VIOLATION:
19225 case EXCEPTION_IN_PAGE_ERROR:
19226 case EXCEPTION_STACK_OVERFLOW:
19227 case EXCEPTION_GUARD_PAGE:
19228 case EXCEPTION_PRIV_INSTRUCTION:
19229 case EXCEPTION_ILLEGAL_INSTRUCTION:
19230 case EXCEPTION_DATATYPE_MISALIGNMENT:
19231 case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
19232 case EXCEPTION_NONCONTINUABLE_EXCEPTION:
19235 return EXCEPTION_CONTINUE_SEARCH;
19238 nocrash_init (void)
19240 SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
19243 /* Avoid a crash on POSIX systems. */
19244 #include <signal.h>
19245 /* A POSIX signal handler. */
19247 exception_handler (int sig)
19252 nocrash_init (void)
19255 signal (SIGSEGV, exception_handler);
19258 signal (SIGBUS, exception_handler);
19272 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
19273 and fails on Mac OS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
19274 OSF/1 5.1, Solaris 10. */
19276 static char conftest[] = "conftest";
19277 static char plus[] = "-+";
19278 char *argv[3] = { conftest, plus, NULL };
19280 if (getopt (2, argv, "+a") != '?')
19283 /* This code succeeds on glibc 2.8, mingw,
19284 and fails on Mac OS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
19285 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
19287 static char program[] = "program";
19288 static char p[] = "-p";
19289 static char foo[] = "foo";
19290 static char bar[] = "bar";
19291 char *argv[] = { program, p, foo, bar, NULL };
19294 if (getopt (4, argv, "p::") != 'p')
19296 else if (optarg != NULL)
19298 else if (getopt (4, argv, "p::") != -1)
19300 else if (optind != 2)
19303 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
19305 static char program[] = "program";
19306 static char foo[] = "foo";
19307 static char p[] = "-p";
19308 char *argv[] = { program, foo, p, NULL };
19310 if (getopt (3, argv, "-p") != 1)
19312 else if (getopt (3, argv, "-p") != 'p')
19315 /* This code fails on glibc 2.11. */
19317 static char program[] = "program";
19318 static char b[] = "-b";
19319 static char a[] = "-a";
19320 char *argv[] = { program, b, a, NULL };
19321 optind = opterr = 0;
19322 if (getopt (3, argv, "+:a:b") != 'b')
19324 else if (getopt (3, argv, "+:a:b") != ':')
19327 /* This code dumps core on glibc 2.14. */
19329 static char program[] = "program";
19330 static char w[] = "-W";
19331 static char dummy[] = "dummy";
19332 char *argv[] = { program, w, dummy, NULL };
19333 optind = opterr = 1;
19334 if (getopt (3, argv, "W;") != 'W')
19343 if ac_fn_c_try_run
"$LINENO"; then :
19344 gl_cv_func_getopt_gnu
=yes
19346 gl_cv_func_getopt_gnu
=no
19348 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19349 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19352 case $gl_had_POSIXLY_CORRECT in
19354 yes) { POSIXLY_CORRECT
=; unset POSIXLY_CORRECT
;}; POSIXLY_CORRECT
=1 ;;
19355 *) { POSIXLY_CORRECT
=; unset POSIXLY_CORRECT
;} ;;
19359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
19360 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
19361 if test "$gl_cv_func_getopt_gnu" != yes; then
19362 gl_replace_getopt
=yes
19364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt_long function" >&5
19365 $as_echo_n "checking for working GNU getopt_long function... " >&6; }
19366 if test "${gl_cv_func_getopt_long_gnu+set}" = set; then :
19367 $as_echo_n "(cached) " >&6
19369 if test "$cross_compiling" = yes; then :
19371 openbsd
*) gl_cv_func_getopt_long_gnu
="guessing no";;
19372 *) gl_cv_func_getopt_long_gnu
="guessing yes";;
19376 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19377 /* end confdefs.h. */
19378 #include <getopt.h>
19379 #include <stddef.h>
19380 #include <string.h>
19385 static const struct option long_options[] =
19387 { "xtremely-",no_argument, NULL, 1003 },
19388 { "xtra", no_argument, NULL, 1001 },
19389 { "xtreme", no_argument, NULL, 1002 },
19390 { "xtremely", no_argument, NULL, 1003 },
19391 { NULL, 0, NULL, 0 }
19393 /* This code fails on OpenBSD 5.0. */
19395 static char program[] = "program";
19396 static char xtremel[] = "--xtremel";
19397 char *argv[] = { program, xtremel, NULL };
19399 optind = 1; opterr = 0;
19400 if (getopt_long (2, argv, "", long_options, &option_index) != 1003)
19409 if ac_fn_c_try_run
"$LINENO"; then :
19410 gl_cv_func_getopt_long_gnu
=yes
19412 gl_cv_func_getopt_long_gnu
=no
19414 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19415 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_long_gnu" >&5
19421 $as_echo "$gl_cv_func_getopt_long_gnu" >&6; }
19422 case "$gl_cv_func_getopt_long_gnu" in
19424 *) gl_replace_getopt
=yes ;;
19435 if test -n "$gl_replace_getopt"; then
19439 if test $REPLACE_GETOPT = 1; then
19443 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
19449 ac_fn_c_check_decl
"$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
19450 if test "x$ac_cv_have_decl_getenv" = x
""yes; then :
19456 cat >>confdefs.h
<<_ACEOF
19457 #define HAVE_DECL_GETENV $ac_have_decl
19465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
19466 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
19467 if test "${ac_cv_c_restrict+set}" = set; then :
19468 $as_echo_n "(cached) " >&6
19470 ac_cv_c_restrict
=no
19471 # The order here caters to the fact that C++ does not require restrict.
19472 for ac_kw
in __restrict __restrict__ _Restrict restrict
; do
19473 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19474 /* end confdefs.h. */
19475 typedef int * int_ptr;
19476 int foo (int_ptr $ac_kw ip) {
19483 int * $ac_kw t = s;
19490 if ac_fn_c_try_compile
"$LINENO"; then :
19491 ac_cv_c_restrict
=$ac_kw
19493 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19494 test "$ac_cv_c_restrict" != no
&& break
19498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
19499 $as_echo "$ac_cv_c_restrict" >&6; }
19501 case $ac_cv_c_restrict in
19503 no
) $as_echo "#define restrict /**/" >>confdefs.h
19505 *) cat >>confdefs.h
<<_ACEOF
19506 #define restrict $ac_cv_c_restrict
19512 GNULIB_GETTIMEOFDAY
=0;
19513 HAVE_GETTIMEOFDAY
=1;
19514 HAVE_STRUCT_TIMEVAL
=1;
19516 REPLACE_GETTIMEOFDAY
=0;
19517 REPLACE_STRUCT_TIMEVAL
=0;
19534 if test $gl_cv_have_include_next = yes; then
19535 gl_cv_next_sys_time_h
='<'sys
/time.h
'>'
19537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/time.h>" >&5
19538 $as_echo_n "checking absolute name of <sys/time.h>... " >&6; }
19539 if test "${gl_cv_next_sys_time_h+set}" = set; then :
19540 $as_echo_n "(cached) " >&6
19543 if test $ac_cv_header_sys_time_h = yes; then
19546 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19547 /* end confdefs.h. */
19548 #include <sys/time.h>
19552 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
19553 *) gl_absname_cpp
="$ac_cpp" ;;
19558 gl_dirsep_regex
='[/\\]'
19561 gl_dirsep_regex
='\/'
19564 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
19566 gl_header_literal_regex
=`echo 'sys/time.h' \
19567 | sed -e "$gl_make_literal_regex_sed"`
19568 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19569 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19574 gl_cv_next_sys_time_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19575 sed -n "$gl_absolute_header_sed"`'"'
19577 gl_cv_next_sys_time_h
='<'sys
/time.h
'>'
19582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_time_h" >&5
19583 $as_echo "$gl_cv_next_sys_time_h" >&6; }
19585 NEXT_SYS_TIME_H
=$gl_cv_next_sys_time_h
19587 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
19588 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19589 gl_next_as_first_directive
='<'sys
/time.h
'>'
19591 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19592 gl_next_as_first_directive
=$gl_cv_next_sys_time_h
19594 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
=$gl_next_as_first_directive
19600 if test $ac_cv_header_sys_time_h != yes; then
19608 if test $ac_cv_header_sys_socket_h != yes; then
19609 for ac_header
in winsock2.h
19611 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
19612 if test "x$ac_cv_header_winsock2_h" = x
""yes; then :
19613 cat >>confdefs.h
<<_ACEOF
19614 #define HAVE_WINSOCK2_H 1
19622 if test "$ac_cv_header_winsock2_h" = yes; then
19624 UNISTD_H_HAVE_WINSOCK2_H
=1
19625 SYS_IOCTL_H_HAVE_WINSOCK2_H
=1
19631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
19632 $as_echo_n "checking for struct timeval... " >&6; }
19633 if test "${gl_cv_sys_struct_timeval+set}" = set; then :
19634 $as_echo_n "(cached) " >&6
19636 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19637 /* end confdefs.h. */
19638 #if HAVE_SYS_TIME_H
19639 #include <sys/time.h>
19642 #if HAVE_WINSOCK2_H
19643 # include <winsock2.h>
19649 static struct timeval x; x.tv_sec = x.tv_usec;
19654 if ac_fn_c_try_compile
"$LINENO"; then :
19655 gl_cv_sys_struct_timeval
=yes
19657 gl_cv_sys_struct_timeval
=no
19659 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval" >&5
19663 $as_echo "$gl_cv_sys_struct_timeval" >&6; }
19664 if test $gl_cv_sys_struct_timeval != yes; then
19665 HAVE_STRUCT_TIMEVAL
=0
19667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wide-enough struct timeval.tv_sec member" >&5
19668 $as_echo_n "checking for wide-enough struct timeval.tv_sec member... " >&6; }
19669 if test "${gl_cv_sys_struct_timeval_tv_sec+set}" = set; then :
19670 $as_echo_n "(cached) " >&6
19672 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19673 /* end confdefs.h. */
19674 #if HAVE_SYS_TIME_H
19675 #include <sys/time.h>
19678 #if HAVE_WINSOCK2_H
19679 # include <winsock2.h>
19685 static struct timeval x;
19686 typedef int verify_tv_sec_type[
19687 sizeof (time_t) <= sizeof x.tv_sec ? 1 : -1
19694 if ac_fn_c_try_compile
"$LINENO"; then :
19695 gl_cv_sys_struct_timeval_tv_sec
=yes
19697 gl_cv_sys_struct_timeval_tv_sec
=no
19699 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval_tv_sec" >&5
19703 $as_echo "$gl_cv_sys_struct_timeval_tv_sec" >&6; }
19704 if test $gl_cv_sys_struct_timeval_tv_sec != yes; then
19705 REPLACE_STRUCT_TIMEVAL
=1
19715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
19716 $as_echo_n "checking for unsigned long long int... " >&6; }
19717 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
19718 $as_echo_n "(cached) " >&6
19720 ac_cv_type_unsigned_long_long_int
=yes
19721 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
19722 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19723 /* end confdefs.h. */
19725 /* For now, do not test the preprocessor; as of 2007 there are too many
19726 implementations with broken preprocessors. Perhaps this can
19727 be revisited in 2012. In the meantime, code should not expect
19728 #if to work with literals wider than 32 bits. */
19729 /* Test literals. */
19730 long long int ll = 9223372036854775807ll;
19731 long long int nll = -9223372036854775807LL;
19732 unsigned long long int ull = 18446744073709551615ULL;
19733 /* Test constant expressions. */
19734 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
19736 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
19742 /* Test availability of runtime routines for shift and division. */
19743 long long int llmax = 9223372036854775807ll;
19744 unsigned long long int ullmax = 18446744073709551615ull;
19745 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
19746 | (llmax / ll) | (llmax % ll)
19747 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
19748 | (ullmax / ull) | (ullmax % ull));
19754 if ac_fn_c_try_link
"$LINENO"; then :
19757 ac_cv_type_unsigned_long_long_int
=no
19759 rm -f core conftest.err conftest.
$ac_objext \
19760 conftest
$ac_exeext conftest.
$ac_ext
19763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
19764 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
19765 if test $ac_cv_type_unsigned_long_long_int = yes; then
19767 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
19773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
19774 $as_echo_n "checking for long long int... " >&6; }
19775 if test "${ac_cv_type_long_long_int+set}" = set; then :
19776 $as_echo_n "(cached) " >&6
19778 ac_cv_type_long_long_int
=yes
19779 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
19780 ac_cv_type_long_long_int
=$ac_cv_type_unsigned_long_long_int
19781 if test $ac_cv_type_long_long_int = yes; then
19782 if test "$cross_compiling" = yes; then :
19785 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19786 /* end confdefs.h. */
19787 #include <limits.h>
19790 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
19791 # define LLONG_MAX (HALF - 1 + HALF)
19796 long long int n = 1;
19800 long long int m = n << i;
19803 if (LLONG_MAX / 2 < m)
19811 if ac_fn_c_try_run
"$LINENO"; then :
19814 ac_cv_type_long_long_int
=no
19816 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19817 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
19824 $as_echo "$ac_cv_type_long_long_int" >&6; }
19825 if test $ac_cv_type_long_long_int = yes; then
19827 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
19836 gl_cv_c_multiarch
=no
19837 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19838 /* end confdefs.h. */
19839 #ifndef __APPLE_CC__
19840 not a universal capable compiler
19845 if ac_fn_c_try_compile
"$LINENO"; then :
19849 for word
in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
19850 if test -n "$prev"; then
19852 i?
86 | x86_64 | ppc | ppc64
)
19853 if test -z "$arch" ||
test "$arch" = "$word"; then
19856 gl_cv_c_multiarch
=yes
19862 if test "x$word" = "x-arch"; then
19869 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19870 if test $gl_cv_c_multiarch = yes; then
19871 APPLE_UNIVERSAL_BUILD
=1
19873 APPLE_UNIVERSAL_BUILD
=0
19880 if test $ac_cv_type_long_long_int = yes; then
19881 HAVE_LONG_LONG_INT
=1
19883 HAVE_LONG_LONG_INT
=0
19887 if test $ac_cv_type_unsigned_long_long_int = yes; then
19888 HAVE_UNSIGNED_LONG_LONG_INT
=1
19890 HAVE_UNSIGNED_LONG_LONG_INT
=0
19895 if test $ac_cv_header_wchar_h = yes; then
19902 if test $ac_cv_header_inttypes_h = yes; then
19909 if test $ac_cv_header_sys_types_h = yes; then
19925 if test $gl_cv_have_include_next = yes; then
19926 gl_cv_next_stdint_h
='<'stdint.h
'>'
19928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
19929 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
19930 if test "${gl_cv_next_stdint_h+set}" = set; then :
19931 $as_echo_n "(cached) " >&6
19934 if test $ac_cv_header_stdint_h = yes; then
19937 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19938 /* end confdefs.h. */
19939 #include <stdint.h>
19943 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
19944 *) gl_absname_cpp
="$ac_cpp" ;;
19949 gl_dirsep_regex
='[/\\]'
19952 gl_dirsep_regex
='\/'
19955 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
19957 gl_header_literal_regex
=`echo 'stdint.h' \
19958 | sed -e "$gl_make_literal_regex_sed"`
19959 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19960 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19965 gl_cv_next_stdint_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19966 sed -n "$gl_absolute_header_sed"`'"'
19968 gl_cv_next_stdint_h
='<'stdint.h
'>'
19973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
19974 $as_echo "$gl_cv_next_stdint_h" >&6; }
19976 NEXT_STDINT_H
=$gl_cv_next_stdint_h
19978 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
19979 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19980 gl_next_as_first_directive
='<'stdint.h
'>'
19982 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19983 gl_next_as_first_directive
=$gl_cv_next_stdint_h
19985 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
=$gl_next_as_first_directive
19990 if test $ac_cv_header_stdint_h = yes; then
19997 if test $ac_cv_header_stdint_h = yes; then
19998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
19999 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
20000 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
20001 $as_echo_n "(cached) " >&6
20003 gl_cv_header_working_stdint_h
=no
20004 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20005 /* end confdefs.h. */
20008 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
20009 #include <stdint.h>
20010 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
20011 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
20012 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
20016 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20017 included before <wchar.h>. */
20018 #include <stddef.h>
20019 #include <signal.h>
20021 # include <stdio.h>
20023 # include <wchar.h>
20028 int8_t a1 = INT8_MAX;
20029 int8_t a1min = INT8_MIN;
20032 int16_t a2 = INT16_MAX;
20033 int16_t a2min = INT16_MIN;
20036 int32_t a3 = INT32_MAX;
20037 int32_t a3min = INT32_MIN;
20040 int64_t a4 = INT64_MAX;
20041 int64_t a4min = INT64_MIN;
20044 uint8_t b1 = UINT8_MAX;
20046 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
20049 uint16_t b2 = UINT16_MAX;
20052 uint32_t b3 = UINT32_MAX;
20055 uint64_t b4 = UINT64_MAX;
20057 int_least8_t c1 = INT8_C (0x7f);
20058 int_least8_t c1max = INT_LEAST8_MAX;
20059 int_least8_t c1min = INT_LEAST8_MIN;
20060 int_least16_t c2 = INT16_C (0x7fff);
20061 int_least16_t c2max = INT_LEAST16_MAX;
20062 int_least16_t c2min = INT_LEAST16_MIN;
20063 int_least32_t c3 = INT32_C (0x7fffffff);
20064 int_least32_t c3max = INT_LEAST32_MAX;
20065 int_least32_t c3min = INT_LEAST32_MIN;
20066 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
20067 int_least64_t c4max = INT_LEAST64_MAX;
20068 int_least64_t c4min = INT_LEAST64_MIN;
20069 uint_least8_t d1 = UINT8_C (0xff);
20070 uint_least8_t d1max = UINT_LEAST8_MAX;
20071 uint_least16_t d2 = UINT16_C (0xffff);
20072 uint_least16_t d2max = UINT_LEAST16_MAX;
20073 uint_least32_t d3 = UINT32_C (0xffffffff);
20074 uint_least32_t d3max = UINT_LEAST32_MAX;
20075 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
20076 uint_least64_t d4max = UINT_LEAST64_MAX;
20077 int_fast8_t e1 = INT_FAST8_MAX;
20078 int_fast8_t e1min = INT_FAST8_MIN;
20079 int_fast16_t e2 = INT_FAST16_MAX;
20080 int_fast16_t e2min = INT_FAST16_MIN;
20081 int_fast32_t e3 = INT_FAST32_MAX;
20082 int_fast32_t e3min = INT_FAST32_MIN;
20083 int_fast64_t e4 = INT_FAST64_MAX;
20084 int_fast64_t e4min = INT_FAST64_MIN;
20085 uint_fast8_t f1 = UINT_FAST8_MAX;
20086 uint_fast16_t f2 = UINT_FAST16_MAX;
20087 uint_fast32_t f3 = UINT_FAST32_MAX;
20088 uint_fast64_t f4 = UINT_FAST64_MAX;
20090 intptr_t g = INTPTR_MAX;
20091 intptr_t gmin = INTPTR_MIN;
20094 uintptr_t h = UINTPTR_MAX;
20096 intmax_t i = INTMAX_MAX;
20097 uintmax_t j = UINTMAX_MAX;
20099 #include <limits.h> /* for CHAR_BIT */
20100 #define TYPE_MINIMUM(t) \
20101 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
20102 #define TYPE_MAXIMUM(t) \
20103 ((t) ((t) 0 < (t) -1 \
20105 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
20108 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
20109 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
20111 /* Detect bug in FreeBSD 6.0 / ia64. */
20112 int check_SIG_ATOMIC:
20113 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
20114 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
20116 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
20118 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
20119 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
20121 /* Detect bug in mingw. */
20123 WINT_MIN == TYPE_MINIMUM (wint_t)
20124 && WINT_MAX == TYPE_MAXIMUM (wint_t)
20127 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
20129 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
20130 int check_UINT16_C:
20131 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
20133 /* Detect bugs in OpenBSD 3.9 stdint.h. */
20135 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
20138 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
20141 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
20144 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
20146 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
20147 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
20148 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
20149 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
20150 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
20151 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
20152 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
20153 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
20154 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
20155 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
20156 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
20167 if ac_fn_c_try_compile
"$LINENO"; then :
20168 if test "$cross_compiling" = yes; then :
20169 gl_cv_header_working_stdint_h
=yes
20172 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20173 /* end confdefs.h. */
20176 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
20177 #include <stdint.h>
20180 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20181 included before <wchar.h>. */
20182 #include <stddef.h>
20183 #include <signal.h>
20185 # include <stdio.h>
20187 # include <wchar.h>
20192 #include <string.h>
20193 #define MVAL(macro) MVAL1(macro)
20194 #define MVAL1(expression) #expression
20195 static const char *macro_values[] =
20229 for (mv = macro_values; *mv != NULL; mv++)
20231 const char *value = *mv;
20232 /* Test whether it looks like a cast expression. */
20233 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
20234 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
20235 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
20236 || strncmp (value, "((int)"/*)*/, 6) == 0
20237 || strncmp (value, "((signed short)"/*)*/, 15) == 0
20238 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
20239 return mv - macro_values + 1;
20247 if ac_fn_c_try_run
"$LINENO"; then :
20248 gl_cv_header_working_stdint_h
=yes
20250 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20251 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20256 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
20260 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
20262 if test "$gl_cv_header_working_stdint_h" = yes; then
20265 for ac_header
in sys
/inttypes.h sys
/bitypes.h
20267 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20268 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20269 eval as_val
=\$
$as_ac_Header
20270 if test "x$as_val" = x
""yes; then :
20271 cat >>confdefs.h
<<_ACEOF
20272 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20279 if test $ac_cv_header_sys_inttypes_h = yes; then
20280 HAVE_SYS_INTTYPES_H
=1
20282 HAVE_SYS_INTTYPES_H
=0
20285 if test $ac_cv_header_sys_bitypes_h = yes; then
20286 HAVE_SYS_BITYPES_H
=1
20288 HAVE_SYS_BITYPES_H
=0
20294 if test $APPLE_UNIVERSAL_BUILD = 0; then
20297 for gltype
in ptrdiff_t size_t
; do
20298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
20299 $as_echo_n "checking for bit size of $gltype... " >&6; }
20300 if { as_var
=gl_cv_bitsizeof_
${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
20301 $as_echo_n "(cached) " >&6
20303 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
20304 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20305 included before <wchar.h>. */
20306 #include <stddef.h>
20307 #include <signal.h>
20309 # include <stdio.h>
20311 # include <wchar.h>
20314 #include <limits.h>"; then :
20320 eval gl_cv_bitsizeof_
${gltype}=\
$result
20323 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
20324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20325 $as_echo "$ac_res" >&6; }
20326 eval result
=\
$gl_cv_bitsizeof_${gltype}
20327 if test $result = unknown
; then
20330 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
20331 cat >>confdefs.h
<<_ACEOF
20332 #define BITSIZEOF_${GLTYPE} $result
20335 eval BITSIZEOF_
${GLTYPE}=\
$result
20342 for gltype
in sig_atomic_t wchar_t wint_t
; do
20343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
20344 $as_echo_n "checking for bit size of $gltype... " >&6; }
20345 if { as_var
=gl_cv_bitsizeof_
${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
20346 $as_echo_n "(cached) " >&6
20348 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
20349 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20350 included before <wchar.h>. */
20351 #include <stddef.h>
20352 #include <signal.h>
20354 # include <stdio.h>
20356 # include <wchar.h>
20359 #include <limits.h>"; then :
20365 eval gl_cv_bitsizeof_
${gltype}=\
$result
20368 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
20369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20370 $as_echo "$ac_res" >&6; }
20371 eval result
=\
$gl_cv_bitsizeof_${gltype}
20372 if test $result = unknown
; then
20375 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
20376 cat >>confdefs.h
<<_ACEOF
20377 #define BITSIZEOF_${GLTYPE} $result
20380 eval BITSIZEOF_
${GLTYPE}=\
$result
20386 for gltype
in sig_atomic_t wchar_t wint_t
; do
20387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
20388 $as_echo_n "checking whether $gltype is signed... " >&6; }
20389 if { as_var
=gl_cv_type_
${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
20390 $as_echo_n "(cached) " >&6
20392 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20393 /* end confdefs.h. */
20395 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20396 included before <wchar.h>. */
20397 #include <stddef.h>
20398 #include <signal.h>
20400 # include <stdio.h>
20402 # include <wchar.h>
20405 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
20414 if ac_fn_c_try_compile
"$LINENO"; then :
20419 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20420 eval gl_cv_type_
${gltype}_signed
=\
$result
20423 eval ac_res
=\
$gl_cv_type_${gltype}_signed
20424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20425 $as_echo "$ac_res" >&6; }
20426 eval result
=\
$gl_cv_type_${gltype}_signed
20427 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
20428 if test "$result" = yes; then
20429 cat >>confdefs.h
<<_ACEOF
20430 #define HAVE_SIGNED_${GLTYPE} 1
20433 eval HAVE_SIGNED_
${GLTYPE}=1
20435 eval HAVE_SIGNED_
${GLTYPE}=0
20440 gl_cv_type_ptrdiff_t_signed
=yes
20441 gl_cv_type_size_t_signed
=no
20442 if test $APPLE_UNIVERSAL_BUILD = 0; then
20445 for gltype
in ptrdiff_t size_t
; do
20446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
20447 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
20448 if { as_var
=gl_cv_type_
${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
20449 $as_echo_n "(cached) " >&6
20451 eval gl_cv_type_
${gltype}_suffix
=no
20452 eval result
=\
$gl_cv_type_${gltype}_signed
20453 if test "$result" = yes; then
20458 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
20460 '') gltype1
='int';;
20461 l
) gltype1
='long int';;
20462 ll
) gltype1
='long long int';;
20463 i64
) gltype1
='__int64';;
20464 u
) gltype1
='unsigned int';;
20465 ul
) gltype1
='unsigned long int';;
20466 ull
) gltype1
='unsigned long long int';;
20467 ui64
)gltype1
='unsigned __int64';;
20469 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20470 /* end confdefs.h. */
20472 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20473 included before <wchar.h>. */
20474 #include <stddef.h>
20475 #include <signal.h>
20477 # include <stdio.h>
20479 # include <wchar.h>
20482 extern $gltype foo;
20483 extern $gltype1 foo;
20492 if ac_fn_c_try_compile
"$LINENO"; then :
20493 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
20495 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20496 eval result
=\
$gl_cv_type_${gltype}_suffix
20497 test "$result" != no
&& break
20500 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
20501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20502 $as_echo "$ac_res" >&6; }
20503 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
20504 eval result
=\
$gl_cv_type_${gltype}_suffix
20505 test "$result" = no
&& result
=
20506 eval ${GLTYPE}_SUFFIX
=\
$result
20507 cat >>confdefs.h
<<_ACEOF
20508 #define ${GLTYPE}_SUFFIX $result
20517 for gltype
in sig_atomic_t wchar_t wint_t
; do
20518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
20519 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
20520 if { as_var
=gl_cv_type_
${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
20521 $as_echo_n "(cached) " >&6
20523 eval gl_cv_type_
${gltype}_suffix
=no
20524 eval result
=\
$gl_cv_type_${gltype}_signed
20525 if test "$result" = yes; then
20530 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
20532 '') gltype1
='int';;
20533 l
) gltype1
='long int';;
20534 ll
) gltype1
='long long int';;
20535 i64
) gltype1
='__int64';;
20536 u
) gltype1
='unsigned int';;
20537 ul
) gltype1
='unsigned long int';;
20538 ull
) gltype1
='unsigned long long int';;
20539 ui64
)gltype1
='unsigned __int64';;
20541 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20542 /* end confdefs.h. */
20544 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20545 included before <wchar.h>. */
20546 #include <stddef.h>
20547 #include <signal.h>
20549 # include <stdio.h>
20551 # include <wchar.h>
20554 extern $gltype foo;
20555 extern $gltype1 foo;
20564 if ac_fn_c_try_compile
"$LINENO"; then :
20565 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
20567 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20568 eval result
=\
$gl_cv_type_${gltype}_suffix
20569 test "$result" != no
&& break
20572 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
20573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20574 $as_echo "$ac_res" >&6; }
20575 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
20576 eval result
=\
$gl_cv_type_${gltype}_suffix
20577 test "$result" = no
&& result
=
20578 eval ${GLTYPE}_SUFFIX
=\
$result
20579 cat >>confdefs.h
<<_ACEOF
20580 #define ${GLTYPE}_SUFFIX $result
20587 if test $BITSIZEOF_WINT_T -lt 32; then
20588 BITSIZEOF_WINT_T
=32
20594 if test -n "$STDINT_H"; then
20595 GL_GENERATE_STDINT_H_TRUE
=
20596 GL_GENERATE_STDINT_H_FALSE
='#'
20598 GL_GENERATE_STDINT_H_TRUE
='#'
20599 GL_GENERATE_STDINT_H_FALSE
=
20608 GNULIB_STRTOIMAX
=0;
20609 GNULIB_STRTOUMAX
=0;
20610 HAVE_DECL_IMAXABS
=1;
20611 HAVE_DECL_IMAXDIV
=1;
20612 HAVE_DECL_STRTOIMAX
=1;
20613 HAVE_DECL_STRTOUMAX
=1;
20614 REPLACE_STRTOIMAX
=0;
20615 INT32_MAX_LT_INTMAX_MAX
=1;
20616 INT64_MAX_EQ_LONG_MAX
='defined _LP64';
20617 PRI_MACROS_BROKEN
=0;
20618 PRIPTR_PREFIX
=__PRIPTR_PREFIX
;
20619 UINT32_MAX_LT_UINTMAX_MAX
=1;
20620 UINT64_MAX_EQ_ULONG_MAX
='defined _LP64';
20636 if test $gl_cv_have_include_next = yes; then
20637 gl_cv_next_inttypes_h
='<'inttypes.h
'>'
20639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
20640 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
20641 if test "${gl_cv_next_inttypes_h+set}" = set; then :
20642 $as_echo_n "(cached) " >&6
20645 if test $ac_cv_header_inttypes_h = yes; then
20648 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20649 /* end confdefs.h. */
20650 #include <inttypes.h>
20654 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
20655 *) gl_absname_cpp
="$ac_cpp" ;;
20660 gl_dirsep_regex
='[/\\]'
20663 gl_dirsep_regex
='\/'
20666 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
20668 gl_header_literal_regex
=`echo 'inttypes.h' \
20669 | sed -e "$gl_make_literal_regex_sed"`
20670 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
20671 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
20676 gl_cv_next_inttypes_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20677 sed -n "$gl_absolute_header_sed"`'"'
20679 gl_cv_next_inttypes_h
='<'inttypes.h
'>'
20684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
20685 $as_echo "$gl_cv_next_inttypes_h" >&6; }
20687 NEXT_INTTYPES_H
=$gl_cv_next_inttypes_h
20689 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
20690 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20691 gl_next_as_first_directive
='<'inttypes.h
'>'
20693 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20694 gl_next_as_first_directive
=$gl_cv_next_inttypes_h
20696 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
=$gl_next_as_first_directive
20710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5
20711 $as_echo_n "checking for 64-bit off_t... " >&6; }
20712 if test "${gl_cv_type_off_t_64+set}" = set; then :
20713 $as_echo_n "(cached) " >&6
20715 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20716 /* end confdefs.h. */
20717 #include <sys/types.h>
20718 int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1];
20728 if ac_fn_c_try_compile
"$LINENO"; then :
20729 gl_cv_type_off_t_64
=yes
20731 gl_cv_type_off_t_64
=no
20733 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5
20737 $as_echo "$gl_cv_type_off_t_64" >&6; }
20738 if test $gl_cv_type_off_t_64 = no
; then
20739 WINDOWS_64_BIT_OFF_T
=1
20741 WINDOWS_64_BIT_OFF_T
=0
20743 WINDOWS_64_BIT_ST_SIZE
=1
20746 WINDOWS_64_BIT_OFF_T
=0
20747 WINDOWS_64_BIT_ST_SIZE
=0
20760 GNULIB_RAWMEMCHR
=0;
20763 GNULIB_STRCHRNUL
=0;
20771 GNULIB_STRCASESTR
=0;
20778 GNULIB_MBSCASECMP
=0;
20779 GNULIB_MBSNCASECMP
=0;
20780 GNULIB_MBSPCASECMP
=0;
20781 GNULIB_MBSCASESTR
=0;
20788 GNULIB_STRERROR_R
=0;
20789 GNULIB_STRSIGNAL
=0;
20790 GNULIB_STRVERSCMP
=0;
20795 HAVE_DECL_MEMMEM
=1;
20797 HAVE_DECL_MEMRCHR
=1;
20802 HAVE_DECL_STRDUP
=1;
20803 HAVE_DECL_STRNDUP
=1;
20804 HAVE_DECL_STRNLEN
=1;
20808 HAVE_DECL_STRTOK_R
=1;
20809 HAVE_DECL_STRERROR_R
=1;
20810 HAVE_DECL_STRSIGNAL
=1;
20817 REPLACE_STRCASESTR
=0;
20818 REPLACE_STRCHRNUL
=0;
20819 REPLACE_STRERROR
=0;
20820 REPLACE_STRERROR_R
=0;
20824 REPLACE_STRSIGNAL
=0;
20825 REPLACE_STRTOK_R
=0;
20826 UNDEFINE_STRTOK_R
=0;
20828 ac_fn_c_check_decl
"$LINENO" "memrchr" "ac_cv_have_decl_memrchr" "$ac_includes_default"
20829 if test "x$ac_cv_have_decl_memrchr" = x
""yes; then :
20835 cat >>confdefs.h
<<_ACEOF
20836 #define HAVE_DECL_MEMRCHR $ac_have_decl
20843 GNULIB_NANOSLEEP
=0;
20847 HAVE_DECL_LOCALTIME_R
=1;
20851 REPLACE_LOCALTIME_R
=GNULIB_PORTCHECK
;
20852 REPLACE_MKTIME
=GNULIB_PORTCHECK
;
20853 REPLACE_NANOSLEEP
=GNULIB_PORTCHECK
;
20854 REPLACE_TIMEGM
=GNULIB_PORTCHECK
;
20856 ac_fn_c_check_decl
"$LINENO" "alarm" "ac_cv_have_decl_alarm" "$ac_includes_default"
20857 if test "x$ac_cv_have_decl_alarm" = x
""yes; then :
20863 cat >>confdefs.h
<<_ACEOF
20864 #define HAVE_DECL_ALARM $ac_have_decl
20881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/select.h> is self-contained" >&5
20882 $as_echo_n "checking whether <sys/select.h> is self-contained... " >&6; }
20883 if test "${gl_cv_header_sys_select_h_selfcontained+set}" = set; then :
20884 $as_echo_n "(cached) " >&6
20887 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20888 /* end confdefs.h. */
20889 #include <sys/select.h>
20898 if ac_fn_c_try_compile
"$LINENO"; then :
20899 gl_cv_header_sys_select_h_selfcontained
=yes
20901 gl_cv_header_sys_select_h_selfcontained
=no
20903 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20904 if test $gl_cv_header_sys_select_h_selfcontained = yes; then
20905 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20906 /* end confdefs.h. */
20907 #include <sys/select.h>
20911 int memset; int bzero;
20917 if ac_fn_c_try_compile
"$LINENO"; then :
20918 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20919 /* end confdefs.h. */
20920 #include <sys/select.h>
20926 #define memset nonexistent_memset
20931 void *memset (void *, int, unsigned long);
20933 #define bzero nonexistent_bzero
20938 void bzero (void *, unsigned long);
20947 if ac_fn_c_try_link
"$LINENO"; then :
20950 gl_cv_header_sys_select_h_selfcontained
=no
20952 rm -f core conftest.err conftest.
$ac_objext \
20953 conftest
$ac_exeext conftest.
$ac_ext
20956 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_selfcontained" >&5
20961 $as_echo "$gl_cv_header_sys_select_h_selfcontained" >&6; }
20971 if test $gl_cv_have_include_next = yes; then
20972 gl_cv_next_sys_select_h
='<'sys
/select.h
'>'
20974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/select.h>" >&5
20975 $as_echo_n "checking absolute name of <sys/select.h>... " >&6; }
20976 if test "${gl_cv_next_sys_select_h+set}" = set; then :
20977 $as_echo_n "(cached) " >&6
20980 if test $ac_cv_header_sys_select_h = yes; then
20983 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20984 /* end confdefs.h. */
20985 #include <sys/select.h>
20989 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
20990 *) gl_absname_cpp
="$ac_cpp" ;;
20995 gl_dirsep_regex
='[/\\]'
20998 gl_dirsep_regex
='\/'
21001 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
21003 gl_header_literal_regex
=`echo 'sys/select.h' \
21004 | sed -e "$gl_make_literal_regex_sed"`
21005 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21006 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21011 gl_cv_next_sys_select_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21012 sed -n "$gl_absolute_header_sed"`'"'
21014 gl_cv_next_sys_select_h
='<'sys
/select.h
'>'
21019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_select_h" >&5
21020 $as_echo "$gl_cv_next_sys_select_h" >&6; }
21022 NEXT_SYS_SELECT_H
=$gl_cv_next_sys_select_h
21024 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
21025 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21026 gl_next_as_first_directive
='<'sys
/select.h
'>'
21028 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21029 gl_next_as_first_directive
=$gl_cv_next_sys_select_h
21031 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H
=$gl_next_as_first_directive
21036 if test $ac_cv_header_sys_select_h = yes; then
21037 HAVE_SYS_SELECT_H
=1
21039 HAVE_SYS_SELECT_H
=0
21046 if test $ac_cv_header_sys_socket_h != yes; then
21047 for ac_header
in winsock2.h
21049 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
21050 if test "x$ac_cv_header_winsock2_h" = x
""yes; then :
21051 cat >>confdefs.h
<<_ACEOF
21052 #define HAVE_WINSOCK2_H 1
21060 if test "$ac_cv_header_winsock2_h" = yes; then
21062 UNISTD_H_HAVE_WINSOCK2_H
=1
21063 SYS_IOCTL_H_HAVE_WINSOCK2_H
=1
21075 GNULIB_PTHREAD_SIGMASK
=0;
21077 GNULIB_SIGNAL_H_SIGPIPE
=0;
21078 GNULIB_SIGPROCMASK
=0;
21079 GNULIB_SIGACTION
=0;
21080 HAVE_POSIX_SIGNALBLOCKING
=1;
21081 HAVE_PTHREAD_SIGMASK
=1;
21086 HAVE_STRUCT_SIGACTION_SA_SIGACTION
=1;
21088 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
=1;
21090 HAVE_SIGHANDLER_T
=1;
21091 REPLACE_PTHREAD_SIGMASK
=0;
21100 ac_fn_c_check_type
"$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
21101 #include <signal.h>
21102 /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */
21103 #include <sys/types.h>
21106 if test "x$ac_cv_type_sigset_t" = x
""yes; then :
21108 cat >>confdefs.h
<<_ACEOF
21109 #define HAVE_SIGSET_T 1
21112 gl_cv_type_sigset_t
=yes
21114 gl_cv_type_sigset_t
=no
21117 if test $gl_cv_type_sigset_t != yes; then
21123 if test $ac_cv_header_sys_socket_h = no
; then
21124 for ac_header
in ws2tcpip.h
21126 ac_fn_c_check_header_mongrel
"$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
21127 if test "x$ac_cv_header_ws2tcpip_h" = x
""yes; then :
21128 cat >>confdefs.h
<<_ACEOF
21129 #define HAVE_WS2TCPIP_H 1
21138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
21139 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
21140 if test "${ac_cv_header_stdbool_h+set}" = set; then :
21141 $as_echo_n "(cached) " >&6
21143 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21144 /* end confdefs.h. */
21146 #include <stdbool.h>
21148 "error: bool is not defined"
21151 "error: false is not defined"
21154 "error: false is not 0"
21157 "error: true is not defined"
21160 "error: true is not 1"
21162 #ifndef __bool_true_false_are_defined
21163 "error: __bool_true_false_are_defined is not defined"
21166 struct s { _Bool s: 1; _Bool t; } s;
21168 char a[true == 1 ? 1 : -1];
21169 char b[false == 0 ? 1 : -1];
21170 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
21171 char d[(bool) 0.5 == true ? 1 : -1];
21172 /* See body of main program for 'e'. */
21173 char f[(_Bool) 0.0 == false ? 1 : -1];
21175 char h[sizeof (_Bool)];
21176 char i[sizeof s.t];
21177 enum { j = false, k = true, l = false * true, m = true * 256 };
21178 /* The following fails for
21179 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
21181 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
21182 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
21183 /* Catch a bug in an HP-UX C compiler. See
21184 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
21185 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
21197 /* Refer to every declared value, to avoid compiler optimizations. */
21198 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
21199 + !m + !n + !o + !p + !q + !pq);
21205 if ac_fn_c_try_compile
"$LINENO"; then :
21206 ac_cv_header_stdbool_h
=yes
21208 ac_cv_header_stdbool_h
=no
21210 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
21213 $as_echo "$ac_cv_header_stdbool_h" >&6; }
21214 ac_fn_c_check_type
"$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
21215 if test "x$ac_cv_type__Bool" = x
""yes; then :
21217 cat >>confdefs.h
<<_ACEOF
21218 #define HAVE__BOOL 1
21230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
21231 $as_echo_n "checking for wchar_t... " >&6; }
21232 if test "${gt_cv_c_wchar_t+set}" = set; then :
21233 $as_echo_n "(cached) " >&6
21235 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21236 /* end confdefs.h. */
21237 #include <stddef.h>
21238 wchar_t foo = (wchar_t)'\0';
21247 if ac_fn_c_try_compile
"$LINENO"; then :
21248 gt_cv_c_wchar_t
=yes
21252 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
21255 $as_echo "$gt_cv_c_wchar_t" >&6; }
21256 if test $gt_cv_c_wchar_t = yes; then
21258 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
21271 GNULIB_FPRINTF_POSIX
=0;
21287 GNULIB_OBSTACK_PRINTF
=0;
21288 GNULIB_OBSTACK_PRINTF_POSIX
=0;
21293 GNULIB_PRINTF_POSIX
=0;
21302 GNULIB_SPRINTF_POSIX
=0;
21303 GNULIB_STDIO_H_NONBLOCKING
=0;
21304 GNULIB_STDIO_H_SIGPIPE
=0;
21306 GNULIB_VASPRINTF
=0;
21311 GNULIB_VFPRINTF_POSIX
=0;
21313 GNULIB_VPRINTF_POSIX
=0;
21314 GNULIB_VSNPRINTF
=0;
21315 GNULIB_VSPRINTF_POSIX
=0;
21316 HAVE_DECL_FPURGE
=1;
21317 HAVE_DECL_FSEEKO
=1;
21318 HAVE_DECL_FTELLO
=1;
21319 HAVE_DECL_GETDELIM
=1;
21320 HAVE_DECL_GETLINE
=1;
21321 HAVE_DECL_OBSTACK_PRINTF
=1;
21322 HAVE_DECL_SNPRINTF
=1;
21323 HAVE_DECL_VSNPRINTF
=1;
21344 REPLACE_GETDELIM
=0;
21346 REPLACE_OBSTACK_PRINTF
=0;
21352 REPLACE_RENAMEAT
=0;
21353 REPLACE_SNPRINTF
=0;
21355 REPLACE_STDIO_READ_FUNCS
=0;
21356 REPLACE_STDIO_WRITE_FUNCS
=0;
21358 REPLACE_VASPRINTF
=0;
21359 REPLACE_VDPRINTF
=0;
21360 REPLACE_VFPRINTF
=0;
21362 REPLACE_VSNPRINTF
=0;
21363 REPLACE_VSPRINTF
=0;
21365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
21366 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
21367 if test "${ac_cv_struct_tm+set}" = set; then :
21368 $as_echo_n "(cached) " >&6
21370 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21371 /* end confdefs.h. */
21372 #include <sys/types.h>
21379 int *p = &tm.tm_sec;
21385 if ac_fn_c_try_compile
"$LINENO"; then :
21386 ac_cv_struct_tm
=time.h
21388 ac_cv_struct_tm
=sys
/time.h
21390 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
21393 $as_echo "$ac_cv_struct_tm" >&6; }
21394 if test $ac_cv_struct_tm = sys
/time.h
; then
21396 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
21400 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
21401 #include <$ac_cv_struct_tm>
21404 if test "x$ac_cv_member_struct_tm_tm_zone" = x
""yes; then :
21406 cat >>confdefs.h
<<_ACEOF
21407 #define HAVE_STRUCT_TM_TM_ZONE 1
21413 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21415 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
21418 ac_fn_c_check_decl
"$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
21420 if test "x$ac_cv_have_decl_tzname" = x
""yes; then :
21426 cat >>confdefs.h
<<_ACEOF
21427 #define HAVE_DECL_TZNAME $ac_have_decl
21430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
21431 $as_echo_n "checking for tzname... " >&6; }
21432 if test "${ac_cv_var_tzname+set}" = set; then :
21433 $as_echo_n "(cached) " >&6
21435 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21436 /* end confdefs.h. */
21438 #if !HAVE_DECL_TZNAME
21439 extern char *tzname[];
21445 return tzname[0][0];
21450 if ac_fn_c_try_link
"$LINENO"; then :
21451 ac_cv_var_tzname
=yes
21453 ac_cv_var_tzname
=no
21455 rm -f core conftest.err conftest.
$ac_objext \
21456 conftest
$ac_exeext conftest.
$ac_ext
21458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
21459 $as_echo "$ac_cv_var_tzname" >&6; }
21460 if test $ac_cv_var_tzname = yes; then
21462 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
21468 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
21470 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x
""yes; then :
21472 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
21488 if test $gl_cv_have_include_next = yes; then
21489 gl_cv_next_string_h
='<'string.h
'>'
21491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
21492 $as_echo_n "checking absolute name of <string.h>... " >&6; }
21493 if test "${gl_cv_next_string_h+set}" = set; then :
21494 $as_echo_n "(cached) " >&6
21497 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21498 /* end confdefs.h. */
21499 #include <string.h>
21503 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
21504 *) gl_absname_cpp
="$ac_cpp" ;;
21509 gl_dirsep_regex
='[/\\]'
21512 gl_dirsep_regex
='\/'
21515 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
21517 gl_header_literal_regex
=`echo 'string.h' \
21518 | sed -e "$gl_make_literal_regex_sed"`
21519 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21520 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21525 gl_cv_next_string_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21526 sed -n "$gl_absolute_header_sed"`'"'
21530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
21531 $as_echo "$gl_cv_next_string_h" >&6; }
21533 NEXT_STRING_H
=$gl_cv_next_string_h
21535 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
21536 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21537 gl_next_as_first_directive
='<'string.h
'>'
21539 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21540 gl_next_as_first_directive
=$gl_cv_next_string_h
21542 NEXT_AS_FIRST_DIRECTIVE_STRING_H
=$gl_next_as_first_directive
21552 ac_fn_c_check_decl
"$LINENO" "strtoimax" "ac_cv_have_decl_strtoimax" "$ac_includes_default"
21553 if test "x$ac_cv_have_decl_strtoimax" = x
""yes; then :
21559 cat >>confdefs.h
<<_ACEOF
21560 #define HAVE_DECL_STRTOIMAX $ac_have_decl
21565 ac_fn_c_check_decl
"$LINENO" "strtoumax" "ac_cv_have_decl_strtoumax" "$ac_includes_default"
21566 if test "x$ac_cv_have_decl_strtoumax" = x
""yes; then :
21572 cat >>confdefs.h
<<_ACEOF
21573 #define HAVE_DECL_STRTOUMAX $ac_have_decl
21578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
21579 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
21580 if test "${ac_cv_header_stat_broken+set}" = set; then :
21581 $as_echo_n "(cached) " >&6
21583 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21584 /* end confdefs.h. */
21585 #include <sys/types.h>
21586 #include <sys/stat.h>
21588 #if defined S_ISBLK && defined S_IFDIR
21589 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
21592 #if defined S_ISBLK && defined S_IFCHR
21593 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
21596 #if defined S_ISLNK && defined S_IFREG
21597 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
21600 #if defined S_ISSOCK && defined S_IFREG
21601 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
21605 if ac_fn_c_try_compile
"$LINENO"; then :
21606 ac_cv_header_stat_broken
=no
21608 ac_cv_header_stat_broken
=yes
21610 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
21613 $as_echo "$ac_cv_header_stat_broken" >&6; }
21614 if test $ac_cv_header_stat_broken = yes; then
21616 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
21624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
21625 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
21626 if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then :
21627 $as_echo_n "(cached) " >&6
21629 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21630 /* end confdefs.h. */
21636 static struct timespec x; x.tv_sec = x.tv_nsec;
21641 if ac_fn_c_try_compile
"$LINENO"; then :
21642 gl_cv_sys_struct_timespec_in_time_h
=yes
21644 gl_cv_sys_struct_timespec_in_time_h
=no
21646 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
21649 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
21651 TIME_H_DEFINES_STRUCT_TIMESPEC
=0
21652 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
=0
21653 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
=0
21654 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
21655 TIME_H_DEFINES_STRUCT_TIMESPEC
=1
21657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
21658 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
21659 if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then :
21660 $as_echo_n "(cached) " >&6
21662 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21663 /* end confdefs.h. */
21664 #include <sys/time.h>
21669 static struct timespec x; x.tv_sec = x.tv_nsec;
21674 if ac_fn_c_try_compile
"$LINENO"; then :
21675 gl_cv_sys_struct_timespec_in_sys_time_h
=yes
21677 gl_cv_sys_struct_timespec_in_sys_time_h
=no
21679 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
21682 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
21683 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
21684 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
=1
21686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
21687 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
21688 if test "${gl_cv_sys_struct_timespec_in_pthread_h+set}" = set; then :
21689 $as_echo_n "(cached) " >&6
21691 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21692 /* end confdefs.h. */
21693 #include <pthread.h>
21698 static struct timespec x; x.tv_sec = x.tv_nsec;
21703 if ac_fn_c_try_compile
"$LINENO"; then :
21704 gl_cv_sys_struct_timespec_in_pthread_h
=yes
21706 gl_cv_sys_struct_timespec_in_pthread_h
=no
21708 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
21711 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
21712 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
21713 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
=1
21732 if test $gl_cv_have_include_next = yes; then
21733 gl_cv_next_time_h
='<'time.h
'>'
21735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
21736 $as_echo_n "checking absolute name of <time.h>... " >&6; }
21737 if test "${gl_cv_next_time_h+set}" = set; then :
21738 $as_echo_n "(cached) " >&6
21741 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21742 /* end confdefs.h. */
21747 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
21748 *) gl_absname_cpp
="$ac_cpp" ;;
21753 gl_dirsep_regex
='[/\\]'
21756 gl_dirsep_regex
='\/'
21759 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
21761 gl_header_literal_regex
=`echo 'time.h' \
21762 | sed -e "$gl_make_literal_regex_sed"`
21763 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21764 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21769 gl_cv_next_time_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21770 sed -n "$gl_absolute_header_sed"`'"'
21774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
21775 $as_echo "$gl_cv_next_time_h" >&6; }
21777 NEXT_TIME_H
=$gl_cv_next_time_h
21779 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
21780 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21781 gl_next_as_first_directive
='<'time.h
'>'
21783 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21784 gl_next_as_first_directive
=$gl_cv_next_time_h
21786 NEXT_AS_FIRST_DIRECTIVE_TIME_H
=$gl_next_as_first_directive
21801 ac_fn_c_check_decl
"$LINENO" "unsetenv" "ac_cv_have_decl_unsetenv" "$ac_includes_default"
21802 if test "x$ac_cv_have_decl_unsetenv" = x
""yes; then :
21808 cat >>confdefs.h
<<_ACEOF
21809 #define HAVE_DECL_UNSETENV $ac_have_decl
21813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the utimes function works" >&5
21814 $as_echo_n "checking whether the utimes function works... " >&6; }
21815 if test "${gl_cv_func_working_utimes+set}" = set; then :
21816 $as_echo_n "(cached) " >&6
21819 if test "$cross_compiling" = yes; then :
21820 gl_cv_func_working_utimes
=no
21822 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21823 /* end confdefs.h. */
21825 #include <sys/types.h>
21826 #include <sys/stat.h>
21828 #include <sys/time.h>
21830 #include <unistd.h>
21831 #include <stdlib.h>
21836 inorder (time_t a, time_t b, time_t c)
21838 return a <= b && b <= c;
21845 char const *file = "conftest.utimes";
21846 static struct timeval timeval[2] = {{9, 10}, {999999, 999999}};
21848 /* Test whether utimes() essentially works. */
21851 FILE *f = fopen (file, "w");
21854 else if (fclose (f) != 0)
21856 else if (utimes (file, timeval) != 0)
21858 else if (lstat (file, &sbuf) != 0)
21860 else if (!(sbuf.st_atime == timeval[0].tv_sec
21861 && sbuf.st_mtime == timeval[1].tv_sec))
21863 if (unlink (file) != 0)
21867 /* Test whether utimes() with a NULL argument sets the file's timestamp
21868 to the current time. Use 'fstat' as well as 'time' to
21869 determine the "current" time, to accommodate NFS file systems
21870 if there is a time skew between the host and the NFS server. */
21872 int fd = open (file, O_WRONLY|O_CREAT, 0644);
21878 struct stat st0, st1, st2;
21879 if (time (&t0) == (time_t) -1)
21881 else if (fstat (fd, &st0) != 0)
21883 else if (utimes (file, timeval) != 0)
21885 else if (utimes (file, NULL) != 0)
21887 else if (fstat (fd, &st1) != 0)
21889 else if (write (fd, "\n", 1) != 1)
21891 else if (fstat (fd, &st2) != 0)
21893 else if (time (&t2) == (time_t) -1)
21897 int m_ok_POSIX = inorder (t0, st1.st_mtime, t2);
21898 int m_ok_NFS = inorder (st0.st_mtime, st1.st_mtime, st2.st_mtime);
21899 if (! (st1.st_atime == st1.st_mtime))
21901 if (! (m_ok_POSIX || m_ok_NFS))
21904 if (close (fd) != 0)
21907 if (unlink (file) != 0)
21911 /* Test whether utimes() with a NULL argument works on read-only files. */
21913 int fd = open (file, O_WRONLY|O_CREAT, 0444);
21916 else if (close (fd) != 0)
21918 else if (utimes (file, NULL) != 0)
21920 if (unlink (file) != 0)
21928 if ac_fn_c_try_run
"$LINENO"; then :
21929 gl_cv_func_working_utimes
=yes
21931 gl_cv_func_working_utimes
=no
21933 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21934 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_utimes" >&5
21939 $as_echo "$gl_cv_func_working_utimes" >&6; }
21941 if test $gl_cv_func_working_utimes = yes; then
21943 $as_echo "#define HAVE_WORKING_UTIMES 1" >>confdefs.h
21951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
21952 $as_echo_n "checking for struct utimbuf... " >&6; }
21953 if test "${gl_cv_sys_struct_utimbuf+set}" = set; then :
21954 $as_echo_n "(cached) " >&6
21956 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21957 /* end confdefs.h. */
21958 #if HAVE_SYS_TIME_H
21959 #include <sys/time.h>
21962 #ifdef HAVE_UTIME_H
21969 static struct utimbuf x; x.actime = x.modtime;
21974 if ac_fn_c_try_compile
"$LINENO"; then :
21975 gl_cv_sys_struct_utimbuf
=yes
21977 gl_cv_sys_struct_utimbuf
=no
21979 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_utimbuf" >&5
21982 $as_echo "$gl_cv_sys_struct_utimbuf" >&6; }
21984 if test $gl_cv_sys_struct_utimbuf = yes; then
21986 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
22000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5
22001 $as_echo_n "checking type of array argument to getgroups... " >&6; }
22002 if test "${ac_cv_type_getgroups+set}" = set; then :
22003 $as_echo_n "(cached) " >&6
22005 if test "$cross_compiling" = yes; then :
22006 ac_cv_type_getgroups
=cross
22008 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22009 /* end confdefs.h. */
22010 /* Thanks to Mike Rendell for this test. */
22011 $ac_includes_default
22014 #define MAX(x, y) ((x) > (y) ? (x) : (y))
22019 gid_t gidset[NGID];
22021 union { gid_t gval; long int lval; } val;
22024 for (i = 0; i < NGID; i++)
22025 gidset[i] = val.gval;
22026 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
22028 /* Exit non-zero if getgroups seems to require an array of ints. This
22029 happens when gid_t is short int but getgroups modifies an array
22031 return n > 0 && gidset[n] != val.gval;
22034 if ac_fn_c_try_run
"$LINENO"; then :
22035 ac_cv_type_getgroups
=gid_t
22037 ac_cv_type_getgroups
=int
22039 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22040 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22043 if test $ac_cv_type_getgroups = cross
; then
22044 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22045 /* end confdefs.h. */
22046 #include <unistd.h>
22049 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22050 $EGREP "getgroups.*int.*gid_t" >/dev
/null
2>&1; then :
22051 ac_cv_type_getgroups
=gid_t
22053 ac_cv_type_getgroups
=int
22059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5
22060 $as_echo "$ac_cv_type_getgroups" >&6; }
22062 cat >>confdefs.h
<<_ACEOF
22063 #define GETGROUPS_T $ac_cv_type_getgroups
22074 GL_COND_LIBTOOL_TRUE
=
22075 GL_COND_LIBTOOL_FALSE
='#'
22077 GL_COND_LIBTOOL_TRUE
='#'
22078 GL_COND_LIBTOOL_FALSE
=
22081 gl_cond_libtool
=false
22094 gl_source_base
='lib'
22097 if test $ac_cv_func_alloca_works = no
; then
22101 # Define an additional variable used in the Makefile substitution.
22102 if test $ac_cv_working_alloca_h = yes; then
22103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
22104 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
22105 if test "${gl_cv_rpl_alloca+set}" = set; then :
22106 $as_echo_n "(cached) " >&6
22109 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22110 /* end confdefs.h. */
22112 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
22117 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22118 $EGREP "Need own alloca" >/dev
/null
2>&1; then :
22119 gl_cv_rpl_alloca
=yes
22121 gl_cv_rpl_alloca
=no
22127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
22128 $as_echo "$gl_cv_rpl_alloca" >&6; }
22129 if test $gl_cv_rpl_alloca = yes; then
22131 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
22141 if test -n "$ALLOCA_H"; then
22142 GL_GENERATE_ALLOCA_H_TRUE
=
22143 GL_GENERATE_ALLOCA_H_FALSE
='#'
22145 GL_GENERATE_ALLOCA_H_TRUE
='#'
22146 GL_GENERATE_ALLOCA_H_FALSE
=
22154 # Solaris 2.5.1 needs -lposix4 to get the clock_gettime function.
22155 # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
22157 # Save and restore LIBS so e.g., -lrt, isn't added to it. Otherwise, *all*
22158 # programs in the package would end up linked with that potentially-shared
22159 # library, inducing unnecessary run-time overhead.
22162 gl_saved_libs
=$LIBS
22163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
22164 $as_echo_n "checking for library containing clock_gettime... " >&6; }
22165 if test "${ac_cv_search_clock_gettime+set}" = set; then :
22166 $as_echo_n "(cached) " >&6
22168 ac_func_search_save_LIBS
=$LIBS
22169 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22170 /* end confdefs.h. */
22172 /* Override any GCC internal prototype to avoid an error.
22173 Use char because int might match the return type of a GCC
22174 builtin and then its argument prototype would still apply. */
22178 char clock_gettime ();
22182 return clock_gettime ();
22187 for ac_lib
in '' rt posix4
; do
22188 if test -z "$ac_lib"; then
22189 ac_res
="none required"
22192 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
22194 if ac_fn_c_try_link
"$LINENO"; then :
22195 ac_cv_search_clock_gettime
=$ac_res
22197 rm -f core conftest.err conftest.
$ac_objext \
22199 if test "${ac_cv_search_clock_gettime+set}" = set; then :
22203 if test "${ac_cv_search_clock_gettime+set}" = set; then :
22206 ac_cv_search_clock_gettime
=no
22208 rm conftest.
$ac_ext
22209 LIBS
=$ac_func_search_save_LIBS
22211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
22212 $as_echo "$ac_cv_search_clock_gettime" >&6; }
22213 ac_res
=$ac_cv_search_clock_gettime
22214 if test "$ac_res" != no
; then :
22215 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
22216 test "$ac_cv_search_clock_gettime" = "none required" ||
22217 LIB_CLOCK_GETTIME
=$ac_cv_search_clock_gettime
22220 for ac_func
in clock_gettime clock_settime
22222 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22223 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
22224 eval as_val
=\$
$as_ac_var
22225 if test "x$as_val" = x
""yes; then :
22226 cat >>confdefs.h
<<_ACEOF
22227 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22233 LIBS
=$gl_saved_libs
22240 cat >>confdefs.h
<<_ACEOF
22241 #define GNULIB_CLOSE_STREAM 1
22273 if test $gl_cv_have_include_next = yes; then
22274 gl_cv_next_dirent_h
='<'dirent.h
'>'
22276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <dirent.h>" >&5
22277 $as_echo_n "checking absolute name of <dirent.h>... " >&6; }
22278 if test "${gl_cv_next_dirent_h+set}" = set; then :
22279 $as_echo_n "(cached) " >&6
22282 if test $ac_cv_header_dirent_h = yes; then
22285 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22286 /* end confdefs.h. */
22287 #include <dirent.h>
22291 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
22292 *) gl_absname_cpp
="$ac_cpp" ;;
22297 gl_dirsep_regex
='[/\\]'
22300 gl_dirsep_regex
='\/'
22303 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
22305 gl_header_literal_regex
=`echo 'dirent.h' \
22306 | sed -e "$gl_make_literal_regex_sed"`
22307 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22308 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22313 gl_cv_next_dirent_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22314 sed -n "$gl_absolute_header_sed"`'"'
22316 gl_cv_next_dirent_h
='<'dirent.h
'>'
22321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_dirent_h" >&5
22322 $as_echo "$gl_cv_next_dirent_h" >&6; }
22324 NEXT_DIRENT_H
=$gl_cv_next_dirent_h
22326 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
22327 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22328 gl_next_as_first_directive
='<'dirent.h
'>'
22330 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22331 gl_next_as_first_directive
=$gl_cv_next_dirent_h
22333 NEXT_AS_FIRST_DIRECTIVE_DIRENT_H
=$gl_next_as_first_directive
22338 if test $ac_cv_header_dirent_h = yes; then
22353 $as_echo "#define HAVE_DUP2 1" >>confdefs.h
22356 if test $HAVE_DUP2 = 1; then
22357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5
22358 $as_echo_n "checking whether dup2 works... " >&6; }
22359 if test "${gl_cv_func_dup2_works+set}" = set; then :
22360 $as_echo_n "(cached) " >&6
22362 if test "$cross_compiling" = yes; then :
22364 mingw
*) # on this platform, dup2 always returns 0 for success
22365 gl_cv_func_dup2_works
="guessing no" ;;
22366 cygwin
*) # on cygwin 1.5.x, dup2(1,1) returns 0
22367 gl_cv_func_dup2_works
="guessing no" ;;
22368 linux
*) # On linux between 2008-07-27 and 2009-05-11, dup2 of a
22369 # closed fd may yield -EBADF instead of -1 / errno=EBADF.
22370 gl_cv_func_dup2_works
="guessing no" ;;
22371 freebsd
*) # on FreeBSD 6.1, dup2(1,1000000) gives EMFILE, not EBADF.
22372 gl_cv_func_dup2_works
="guessing no" ;;
22373 haiku
*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC.
22374 gl_cv_func_dup2_works
="guessing no" ;;
22375 *) gl_cv_func_dup2_works
="guessing yes" ;;
22378 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22379 /* end confdefs.h. */
22381 #include <unistd.h>
22389 if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1)
22392 if (dup2 (1, 1) == 0)
22395 if (fcntl (1, F_GETFD) != FD_CLOEXEC)
22399 if (dup2 (0, 0) != -1)
22401 /* Many gnulib modules require POSIX conformance of EBADF. */
22402 if (dup2 (2, 1000000) == -1 && errno != EBADF)
22404 /* Flush out a cygwin core dump. */
22405 if (dup2 (2, -1) != -1 || errno != EBADF)
22414 if ac_fn_c_try_run
"$LINENO"; then :
22415 gl_cv_func_dup2_works
=yes
22417 gl_cv_func_dup2_works
=no
22419 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22420 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5
22426 $as_echo "$gl_cv_func_dup2_works" >&6; }
22427 case "$gl_cv_func_dup2_works" in
22436 if test $HAVE_DUP2 = 0 ||
test $REPLACE_DUP2 = 1; then
22445 gl_LIBOBJS
="$gl_LIBOBJS dup2.$ac_objext"
22477 EXECINFO_H
='execinfo.h'
22479 if test $ac_cv_header_execinfo_h = yes; then
22480 gl_saved_libs
=$LIBS
22481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing backtrace_symbols_fd" >&5
22482 $as_echo_n "checking for library containing backtrace_symbols_fd... " >&6; }
22483 if test "${ac_cv_search_backtrace_symbols_fd+set}" = set; then :
22484 $as_echo_n "(cached) " >&6
22486 ac_func_search_save_LIBS
=$LIBS
22487 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22488 /* end confdefs.h. */
22490 /* Override any GCC internal prototype to avoid an error.
22491 Use char because int might match the return type of a GCC
22492 builtin and then its argument prototype would still apply. */
22496 char backtrace_symbols_fd ();
22500 return backtrace_symbols_fd ();
22505 for ac_lib
in '' execinfo
; do
22506 if test -z "$ac_lib"; then
22507 ac_res
="none required"
22510 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
22512 if ac_fn_c_try_link
"$LINENO"; then :
22513 ac_cv_search_backtrace_symbols_fd
=$ac_res
22515 rm -f core conftest.err conftest.
$ac_objext \
22517 if test "${ac_cv_search_backtrace_symbols_fd+set}" = set; then :
22521 if test "${ac_cv_search_backtrace_symbols_fd+set}" = set; then :
22524 ac_cv_search_backtrace_symbols_fd
=no
22526 rm conftest.
$ac_ext
22527 LIBS
=$ac_func_search_save_LIBS
22529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_backtrace_symbols_fd" >&5
22530 $as_echo "$ac_cv_search_backtrace_symbols_fd" >&6; }
22531 ac_res
=$ac_cv_search_backtrace_symbols_fd
22532 if test "$ac_res" != no
; then :
22533 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
22534 test "$ac_cv_search_backtrace_symbols_fd" = "none required" ||
22535 LIB_EXECINFO
=$ac_cv_search_backtrace_symbols_fd
22538 LIBS
=$gl_saved_libs
22539 test "$ac_cv_search_backtrace_symbols_fd" = no || EXECINFO_H
=''
22542 if test -n "$EXECINFO_H"; then
22551 gl_LIBOBJS
="$gl_LIBOBJS execinfo.$ac_objext"
22557 if test -n "$EXECINFO_H"; then
22558 GL_GENERATE_EXECINFO_H_TRUE
=
22559 GL_GENERATE_EXECINFO_H_FALSE
='#'
22561 GL_GENERATE_EXECINFO_H_TRUE
='#'
22562 GL_GENERATE_EXECINFO_H_FALSE
=
22573 if test $ac_cv_func_faccessat = no
; then
22577 if test $HAVE_FACCESSAT = 0; then
22586 gl_LIBOBJS
="$gl_LIBOBJS faccessat.$ac_objext"
22589 for ac_func
in access
22591 ac_fn_c_check_func
"$LINENO" "access" "ac_cv_func_access"
22592 if test "x$ac_cv_func_access" = x
""yes; then :
22593 cat >>confdefs.h
<<_ACEOF
22594 #define HAVE_ACCESS 1
22604 cat >>confdefs.h
<<_ACEOF
22605 #define GNULIB_FACCESSAT 1
22625 if test $ac_cv_func_fcntl = no
; then
22629 if test $ac_cv_func_fcntl = no
; then
22636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fcntl handles F_DUPFD correctly" >&5
22637 $as_echo_n "checking whether fcntl handles F_DUPFD correctly... " >&6; }
22638 if test "${gl_cv_func_fcntl_f_dupfd_works+set}" = set; then :
22639 $as_echo_n "(cached) " >&6
22641 if test "$cross_compiling" = yes; then :
22642 # Guess that it works on glibc systems
22643 case $host_os in #((
22644 *-gnu*) gl_cv_func_fcntl_f_dupfd_works
="guessing yes";;
22645 *) gl_cv_func_fcntl_f_dupfd_works
="guessing no";;
22648 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22649 /* end confdefs.h. */
22658 if (fcntl (0, F_DUPFD, -1) != -1) result |= 1;
22659 if (errno != EINVAL) result |= 2;
22666 if ac_fn_c_try_run
"$LINENO"; then :
22667 gl_cv_func_fcntl_f_dupfd_works
=yes
22669 gl_cv_func_fcntl_f_dupfd_works
=no
22671 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22672 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fcntl_f_dupfd_works" >&5
22677 $as_echo "$gl_cv_func_fcntl_f_dupfd_works" >&6; }
22678 case $gl_cv_func_fcntl_f_dupfd_works in
22683 if test $ac_cv_func_fcntl = no
; then
22690 $as_echo "#define FCNTL_DUPFD_BUGGY 1" >>confdefs.h
22694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fcntl understands F_DUPFD_CLOEXEC" >&5
22695 $as_echo_n "checking whether fcntl understands F_DUPFD_CLOEXEC... " >&6; }
22696 if test "${gl_cv_func_fcntl_f_dupfd_cloexec+set}" = set; then :
22697 $as_echo_n "(cached) " >&6
22699 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22700 /* end confdefs.h. */
22703 #ifndef F_DUPFD_CLOEXEC
22715 if ac_fn_c_try_compile
"$LINENO"; then :
22716 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22717 /* end confdefs.h. */
22720 /* The Linux kernel only added F_DUPFD_CLOEXEC in 2.6.24, so we always replace
22721 it to support the semantics on older kernels that failed with EINVAL. */
22733 if ac_fn_c_try_compile
"$LINENO"; then :
22734 gl_cv_func_fcntl_f_dupfd_cloexec
=yes
22736 gl_cv_func_fcntl_f_dupfd_cloexec
="needs runtime check"
22738 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22740 gl_cv_func_fcntl_f_dupfd_cloexec
=no
22742 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fcntl_f_dupfd_cloexec" >&5
22745 $as_echo "$gl_cv_func_fcntl_f_dupfd_cloexec" >&6; }
22746 if test "$gl_cv_func_fcntl_f_dupfd_cloexec" != yes; then
22750 if test $ac_cv_func_fcntl = no
; then
22760 if test $HAVE_FCNTL = 0 ||
test $REPLACE_FCNTL = 1; then
22769 gl_LIBOBJS
="$gl_LIBOBJS fcntl.$ac_objext"
22794 if test $gl_cv_have_include_next = yes; then
22795 gl_cv_next_fcntl_h
='<'fcntl.h
'>'
22797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <fcntl.h>" >&5
22798 $as_echo_n "checking absolute name of <fcntl.h>... " >&6; }
22799 if test "${gl_cv_next_fcntl_h+set}" = set; then :
22800 $as_echo_n "(cached) " >&6
22803 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22804 /* end confdefs.h. */
22809 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
22810 *) gl_absname_cpp
="$ac_cpp" ;;
22815 gl_dirsep_regex
='[/\\]'
22818 gl_dirsep_regex
='\/'
22821 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
22823 gl_header_literal_regex
=`echo 'fcntl.h' \
22824 | sed -e "$gl_make_literal_regex_sed"`
22825 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22826 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22831 gl_cv_next_fcntl_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22832 sed -n "$gl_absolute_header_sed"`'"'
22836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_fcntl_h" >&5
22837 $as_echo "$gl_cv_next_fcntl_h" >&6; }
22839 NEXT_FCNTL_H
=$gl_cv_next_fcntl_h
22841 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
22842 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22843 gl_next_as_first_directive
='<'fcntl.h
'>'
22845 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22846 gl_next_as_first_directive
=$gl_cv_next_fcntl_h
22848 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H
=$gl_next_as_first_directive
22867 if test $ac_cv_have_decl_fdatasync = no
; then
22868 HAVE_DECL_FDATASYNC
=0
22869 for ac_func
in fdatasync
22871 ac_fn_c_check_func
"$LINENO" "fdatasync" "ac_cv_func_fdatasync"
22872 if test "x$ac_cv_func_fdatasync" = x
""yes; then :
22873 cat >>confdefs.h
<<_ACEOF
22874 #define HAVE_FDATASYNC 1
22880 if test $ac_cv_func_fdatasync = no
; then
22884 gl_saved_libs
=$LIBS
22885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fdatasync" >&5
22886 $as_echo_n "checking for library containing fdatasync... " >&6; }
22887 if test "${ac_cv_search_fdatasync+set}" = set; then :
22888 $as_echo_n "(cached) " >&6
22890 ac_func_search_save_LIBS
=$LIBS
22891 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22892 /* end confdefs.h. */
22894 /* Override any GCC internal prototype to avoid an error.
22895 Use char because int might match the return type of a GCC
22896 builtin and then its argument prototype would still apply. */
22904 return fdatasync ();
22909 for ac_lib
in '' rt posix4
; do
22910 if test -z "$ac_lib"; then
22911 ac_res
="none required"
22914 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
22916 if ac_fn_c_try_link
"$LINENO"; then :
22917 ac_cv_search_fdatasync
=$ac_res
22919 rm -f core conftest.err conftest.
$ac_objext \
22921 if test "${ac_cv_search_fdatasync+set}" = set; then :
22925 if test "${ac_cv_search_fdatasync+set}" = set; then :
22928 ac_cv_search_fdatasync
=no
22930 rm conftest.
$ac_ext
22931 LIBS
=$ac_func_search_save_LIBS
22933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fdatasync" >&5
22934 $as_echo "$ac_cv_search_fdatasync" >&6; }
22935 ac_res
=$ac_cv_search_fdatasync
22936 if test "$ac_res" != no
; then :
22937 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
22938 test "$ac_cv_search_fdatasync" = "none required" ||
22939 LIB_FDATASYNC
=$ac_cv_search_fdatasync
22942 LIBS
=$gl_saved_libs
22945 if test $HAVE_FDATASYNC = 0; then
22954 gl_LIBOBJS
="$gl_LIBOBJS fdatasync.$ac_objext"
22973 ac_fn_c_check_decl
"$LINENO" "fdopendir" "ac_cv_have_decl_fdopendir" "
22974 #include <dirent.h>
22977 if test "x$ac_cv_have_decl_fdopendir" = x
""yes; then :
22983 cat >>confdefs.h
<<_ACEOF
22984 #define HAVE_DECL_FDOPENDIR $ac_have_decl
22986 if test $ac_have_decl = 1; then :
22989 HAVE_DECL_FDOPENDIR
=0
22993 if test $ac_cv_func_fdopendir = no
; then
22996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fdopendir works" >&5
22997 $as_echo_n "checking whether fdopendir works... " >&6; }
22998 if test "${gl_cv_func_fdopendir_works+set}" = set; then :
22999 $as_echo_n "(cached) " >&6
23001 if test "$cross_compiling" = yes; then :
23003 # Guess yes on glibc systems.
23004 *-gnu*) gl_cv_func_fdopendir_works
="guessing yes" ;;
23005 # If we don't know, assume the worst.
23006 *) gl_cv_func_fdopendir_works
="guessing no" ;;
23010 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23011 /* end confdefs.h. */
23013 #include <dirent.h>
23015 #include <unistd.h>
23016 #if !HAVE_DECL_FDOPENDIR
23018 # ifdef __cplusplus
23021 DIR *fdopendir (int);
23028 int fd = open ("conftest.c", O_RDONLY);
23029 if (fd < 0) result |= 1;
23030 if (fdopendir (fd)) result |= 2;
23031 if (close (fd)) result |= 4;
23037 if ac_fn_c_try_run
"$LINENO"; then :
23038 gl_cv_func_fdopendir_works
=yes
23040 gl_cv_func_fdopendir_works
=no
23042 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23043 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fdopendir_works" >&5
23048 $as_echo "$gl_cv_func_fdopendir_works" >&6; }
23049 case "$gl_cv_func_fdopendir_works" in
23052 REPLACE_FDOPENDIR
=1
23057 if test $HAVE_FDOPENDIR = 0 ||
test $REPLACE_FDOPENDIR = 1; then
23066 gl_LIBOBJS
="$gl_LIBOBJS fdopendir.$ac_objext"
23082 cat >>confdefs.h
<<_ACEOF
23083 #define GNULIB_FDOPENDIR 1
23093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __fpending" >&5
23094 $as_echo_n "checking for __fpending... " >&6; }
23095 if test "${gl_cv_func___fpending+set}" = set; then :
23096 $as_echo_n "(cached) " >&6
23099 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23100 /* end confdefs.h. */
23102 #if HAVE_STDIO_EXT_H
23103 # include <stdio_ext.h>
23109 return ! __fpending (stdin);
23114 if ac_fn_c_try_link
"$LINENO"; then :
23115 gl_cv_func___fpending
=yes
23117 gl_cv_func___fpending
=no
23119 rm -f core conftest.err conftest.
$ac_objext \
23120 conftest
$ac_exeext conftest.
$ac_ext
23123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func___fpending" >&5
23124 $as_echo "$gl_cv_func___fpending" >&6; }
23126 if test $gl_cv_func___fpending = no
; then
23135 gl_LIBOBJS
="$gl_LIBOBJS fpending.$ac_objext"
23138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to determine the number of pending output bytes on a stream" >&5
23139 $as_echo_n "checking how to determine the number of pending output bytes on a stream... " >&6; }
23140 if test "${ac_cv_sys_pending_output_n_bytes+set}" = set; then :
23141 $as_echo_n "(cached) " >&6
23147 'fp->_IO_write_ptr - fp->_IO_write_base' \
23149 '# traditional Unix' \
23150 'fp->_ptr - fp->_base' \
23153 'fp->_p - fp->_bf._base' \
23155 '# SCO, Unixware' \
23156 '(fp->__ptr ? fp->__ptr - fp->__base : 0)' \
23159 '(fp->_Mode & 0x2000 /*_MWRITE*/ ? fp->_Next - fp->_Buf : 0)' \
23162 'fp->__bufp - fp->__buffer' \
23164 '# old glibc iostream?' \
23165 'fp->_pptr - fp->_pbase' \
23168 'fp->_ptr - fp->_buffer' \
23171 'fp->_ptr - fp->_buf' \
23174 'fp->wp - fp->buf' \
23177 '(*fp)->_ptr - (*fp)->_base' \
23179 '# e.g., DGUX R4.11; the info is not available' \
23183 # Skip each embedded comment.
23184 case "$ac_expr" in '#'*) continue;; esac
23186 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23187 /* end confdefs.h. */
23192 FILE *fp = stdin; (void) ($ac_expr);
23197 if ac_fn_c_try_compile
"$LINENO"; then :
23201 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23202 test "$fp_done" = yes && break
23205 ac_cv_sys_pending_output_n_bytes
=$ac_expr
23209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_pending_output_n_bytes" >&5
23210 $as_echo "$ac_cv_sys_pending_output_n_bytes" >&6; }
23212 cat >>confdefs.h
<<_ACEOF
23213 #define PENDING_OUTPUT_N_BYTES $ac_cv_sys_pending_output_n_bytes
23224 if test $ac_cv_func_fstatat = no
; then
23227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fstatat (..., 0) works" >&5
23228 $as_echo_n "checking whether fstatat (..., 0) works... " >&6; }
23229 if test "${gl_cv_func_fstatat_zero_flag+set}" = set; then :
23230 $as_echo_n "(cached) " >&6
23232 if test "$cross_compiling" = yes; then :
23234 aix
*) gl_cv_func_fstatat_zero_flag
="guessing no";;
23235 *) gl_cv_func_fstatat_zero_flag
="guessing yes";;
23239 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23240 /* end confdefs.h. */
23243 #include <sys/stat.h>
23248 return fstatat (AT_FDCWD, ".", &a, 0) != 0;
23252 if ac_fn_c_try_run
"$LINENO"; then :
23253 gl_cv_func_fstatat_zero_flag
=yes
23255 gl_cv_func_fstatat_zero_flag
=no
23257 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23258 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fstatat_zero_flag" >&5
23264 $as_echo "$gl_cv_func_fstatat_zero_flag" >&6; }
23266 case $gl_cv_func_fstatat_zero_flag+$gl_cv_func_lstat_dereferences_slashed_symlink in
23268 *) REPLACE_FSTATAT
=1
23269 case $gl_cv_func_fstatat_zero_flag in
23272 $as_echo "#define HAVE_WORKING_FSTATAT_ZERO_FLAG 1" >>confdefs.h
23280 if test $HAVE_FSTATAT = 0 ||
test $REPLACE_FSTATAT = 1; then
23289 gl_LIBOBJS
="$gl_LIBOBJS fstatat.$ac_objext"
23306 if test $ac_cv_func_fsync = no
; then
23310 if test $HAVE_FSYNC = 0; then
23319 gl_LIBOBJS
="$gl_LIBOBJS fsync.$ac_objext"
23336 # Persuade glibc <stdlib.h> to declare getloadavg().
23341 # getloadvg is present in libc on glibc >= 2.2, Mac OS X, FreeBSD >= 2.0,
23342 # NetBSD >= 0.9, OpenBSD >= 2.0, Solaris >= 7.
23344 ac_fn_c_check_func
"$LINENO" "getloadavg" "ac_cv_func_getloadavg"
23345 if test "x$ac_cv_func_getloadavg" = x
""yes; then :
23348 gl_func_getloadavg_done
=no
23350 # Some systems with -lutil have (and need) -lkvm as well, some do not.
23351 # On Solaris, -lkvm requires nlist from -lelf, so check that first
23352 # to get the right answer into the cache.
23353 # For kstat on solaris, we need to test for libelf and libkvm to force the
23354 # definition of SVR4 below.
23355 if test $gl_func_getloadavg_done = no
; then
23356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
23357 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
23358 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then :
23359 $as_echo_n "(cached) " >&6
23361 ac_check_lib_save_LIBS
=$LIBS
23363 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23364 /* end confdefs.h. */
23366 /* Override any GCC internal prototype to avoid an error.
23367 Use char because int might match the return type of a GCC
23368 builtin and then its argument prototype would still apply. */
23376 return elf_begin ();
23381 if ac_fn_c_try_link
"$LINENO"; then :
23382 ac_cv_lib_elf_elf_begin
=yes
23384 ac_cv_lib_elf_elf_begin
=no
23386 rm -f core conftest.err conftest.
$ac_objext \
23387 conftest
$ac_exeext conftest.
$ac_ext
23388 LIBS
=$ac_check_lib_save_LIBS
23390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
23391 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
23392 if test "x$ac_cv_lib_elf_elf_begin" = x
""yes; then :
23396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
23397 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
23398 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then :
23399 $as_echo_n "(cached) " >&6
23401 ac_check_lib_save_LIBS
=$LIBS
23403 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23404 /* end confdefs.h. */
23406 /* Override any GCC internal prototype to avoid an error.
23407 Use char because int might match the return type of a GCC
23408 builtin and then its argument prototype would still apply. */
23416 return kvm_open ();
23421 if ac_fn_c_try_link
"$LINENO"; then :
23422 ac_cv_lib_kvm_kvm_open
=yes
23424 ac_cv_lib_kvm_kvm_open
=no
23426 rm -f core conftest.err conftest.
$ac_objext \
23427 conftest
$ac_exeext conftest.
$ac_ext
23428 LIBS
=$ac_check_lib_save_LIBS
23430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
23431 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
23432 if test "x$ac_cv_lib_kvm_kvm_open" = x
""yes; then :
23436 # Check for the 4.4BSD definition of getloadavg.
23437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
23438 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
23439 if test "${ac_cv_lib_util_getloadavg+set}" = set; then :
23440 $as_echo_n "(cached) " >&6
23442 ac_check_lib_save_LIBS
=$LIBS
23443 LIBS
="-lutil $LIBS"
23444 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23445 /* end confdefs.h. */
23447 /* Override any GCC internal prototype to avoid an error.
23448 Use char because int might match the return type of a GCC
23449 builtin and then its argument prototype would still apply. */
23453 char getloadavg ();
23457 return getloadavg ();
23462 if ac_fn_c_try_link
"$LINENO"; then :
23463 ac_cv_lib_util_getloadavg
=yes
23465 ac_cv_lib_util_getloadavg
=no
23467 rm -f core conftest.err conftest.
$ac_objext \
23468 conftest
$ac_exeext conftest.
$ac_ext
23469 LIBS
=$ac_check_lib_save_LIBS
23471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
23472 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
23473 if test "x$ac_cv_lib_util_getloadavg" = x
""yes; then :
23474 LIBS
="-lutil $LIBS" gl_func_getloadavg_done
=yes
23479 if test $gl_func_getloadavg_done = no
; then
23480 # There is a commonly available library for RS/6000 AIX.
23481 # Since it is not a standard part of AIX, it might be installed locally.
23482 gl_getloadavg_LIBS
=$LIBS
23483 LIBS
="-L/usr/local/lib $LIBS"
23484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
23485 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
23486 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then :
23487 $as_echo_n "(cached) " >&6
23489 ac_check_lib_save_LIBS
=$LIBS
23490 LIBS
="-lgetloadavg $LIBS"
23491 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23492 /* end confdefs.h. */
23494 /* Override any GCC internal prototype to avoid an error.
23495 Use char because int might match the return type of a GCC
23496 builtin and then its argument prototype would still apply. */
23500 char getloadavg ();
23504 return getloadavg ();
23509 if ac_fn_c_try_link
"$LINENO"; then :
23510 ac_cv_lib_getloadavg_getloadavg
=yes
23512 ac_cv_lib_getloadavg_getloadavg
=no
23514 rm -f core conftest.err conftest.
$ac_objext \
23515 conftest
$ac_exeext conftest.
$ac_ext
23516 LIBS
=$ac_check_lib_save_LIBS
23518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
23519 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
23520 if test "x$ac_cv_lib_getloadavg_getloadavg" = x
""yes; then :
23521 LIBS
="-lgetloadavg $LIBS" gl_func_getloadavg_done
=yes
23523 LIBS
=$gl_getloadavg_LIBS
23528 # Set up the replacement function if necessary.
23529 if test $gl_func_getloadavg_done = no
; then
23532 # Solaris has libkstat which does not require root.
23533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
23534 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
23535 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
23536 $as_echo_n "(cached) " >&6
23538 ac_check_lib_save_LIBS
=$LIBS
23539 LIBS
="-lkstat $LIBS"
23540 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23541 /* end confdefs.h. */
23543 /* Override any GCC internal prototype to avoid an error.
23544 Use char because int might match the return type of a GCC
23545 builtin and then its argument prototype would still apply. */
23549 char kstat_open ();
23553 return kstat_open ();
23558 if ac_fn_c_try_link
"$LINENO"; then :
23559 ac_cv_lib_kstat_kstat_open
=yes
23561 ac_cv_lib_kstat_kstat_open
=no
23563 rm -f core conftest.err conftest.
$ac_objext \
23564 conftest
$ac_exeext conftest.
$ac_ext
23565 LIBS
=$ac_check_lib_save_LIBS
23567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
23568 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
23569 if test "x$ac_cv_lib_kstat_kstat_open" = x
""yes; then :
23570 cat >>confdefs.h
<<_ACEOF
23571 #define HAVE_LIBKSTAT 1
23574 LIBS
="-lkstat $LIBS"
23578 test $ac_cv_lib_kstat_kstat_open = yes && gl_func_getloadavg_done
=yes
23580 # AIX has libperfstat which does not require root
23581 if test $gl_func_getloadavg_done = no
; then
23582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perfstat_cpu_total in -lperfstat" >&5
23583 $as_echo_n "checking for perfstat_cpu_total in -lperfstat... " >&6; }
23584 if test "${ac_cv_lib_perfstat_perfstat_cpu_total+set}" = set; then :
23585 $as_echo_n "(cached) " >&6
23587 ac_check_lib_save_LIBS
=$LIBS
23588 LIBS
="-lperfstat $LIBS"
23589 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23590 /* end confdefs.h. */
23592 /* Override any GCC internal prototype to avoid an error.
23593 Use char because int might match the return type of a GCC
23594 builtin and then its argument prototype would still apply. */
23598 char perfstat_cpu_total ();
23602 return perfstat_cpu_total ();
23607 if ac_fn_c_try_link
"$LINENO"; then :
23608 ac_cv_lib_perfstat_perfstat_cpu_total
=yes
23610 ac_cv_lib_perfstat_perfstat_cpu_total
=no
23612 rm -f core conftest.err conftest.
$ac_objext \
23613 conftest
$ac_exeext conftest.
$ac_ext
23614 LIBS
=$ac_check_lib_save_LIBS
23616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_perfstat_perfstat_cpu_total" >&5
23617 $as_echo "$ac_cv_lib_perfstat_perfstat_cpu_total" >&6; }
23618 if test "x$ac_cv_lib_perfstat_perfstat_cpu_total" = x
""yes; then :
23619 cat >>confdefs.h
<<_ACEOF
23620 #define HAVE_LIBPERFSTAT 1
23623 LIBS
="-lperfstat $LIBS"
23627 test $ac_cv_lib_perfstat_perfstat_cpu_total = yes && gl_func_getloadavg_done
=yes
23630 if test $gl_func_getloadavg_done = no
; then
23631 ac_fn_c_check_header_mongrel
"$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
23632 if test "x$ac_cv_header_sys_dg_sys_info_h" = x
""yes; then :
23633 gl_func_getloadavg_done
=yes
23635 $as_echo "#define DGUX 1" >>confdefs.h
23637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
23638 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
23639 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then :
23640 $as_echo_n "(cached) " >&6
23642 ac_check_lib_save_LIBS
=$LIBS
23644 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23645 /* end confdefs.h. */
23647 /* Override any GCC internal prototype to avoid an error.
23648 Use char because int might match the return type of a GCC
23649 builtin and then its argument prototype would still apply. */
23653 char dg_sys_info ();
23657 return dg_sys_info ();
23662 if ac_fn_c_try_link
"$LINENO"; then :
23663 ac_cv_lib_dgc_dg_sys_info
=yes
23665 ac_cv_lib_dgc_dg_sys_info
=no
23667 rm -f core conftest.err conftest.
$ac_objext \
23668 conftest
$ac_exeext conftest.
$ac_ext
23669 LIBS
=$ac_check_lib_save_LIBS
23671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
23672 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
23673 if test "x$ac_cv_lib_dgc_dg_sys_info" = x
""yes; then :
23674 cat >>confdefs.h
<<_ACEOF
23675 #define HAVE_LIBDGC 1
23690 if test "x$gl_save_LIBS" = x
; then
23691 GETLOADAVG_LIBS
=$LIBS
23693 GETLOADAVG_LIBS
=`echo "$LIBS" | sed "s!$gl_save_LIBS!!"`
23698 # Test whether the system declares getloadavg. Solaris has the function
23699 # but declares it in <sys/loadavg.h>, not <stdlib.h>.
23700 for ac_header
in sys
/loadavg.h
23702 ac_fn_c_check_header_mongrel
"$LINENO" "sys/loadavg.h" "ac_cv_header_sys_loadavg_h" "$ac_includes_default"
23703 if test "x$ac_cv_header_sys_loadavg_h" = x
""yes; then :
23704 cat >>confdefs.h
<<_ACEOF
23705 #define HAVE_SYS_LOADAVG_H 1
23712 if test $ac_cv_header_sys_loadavg_h = yes; then
23713 HAVE_SYS_LOADAVG_H
=1
23715 HAVE_SYS_LOADAVG_H
=0
23717 ac_fn_c_check_decl
"$LINENO" "getloadavg" "ac_cv_have_decl_getloadavg" "#if HAVE_SYS_LOADAVG_H
23718 # include <sys/loadavg.h>
23720 #include <stdlib.h>
23722 if test "x$ac_cv_have_decl_getloadavg" = x
""yes; then :
23725 HAVE_DECL_GETLOADAVG
=0
23729 if test $HAVE_GETLOADAVG = 0; then
23738 gl_LIBOBJS
="$gl_LIBOBJS getloadavg.$ac_objext"
23741 # Figure out what our getloadavg.c needs.
23745 # On HPUX9, an unprivileged user can get load averages this way.
23746 if test $gl_func_getloadavg_done = no
; then
23747 for ac_func
in pstat_getdynamic
23749 ac_fn_c_check_func
"$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
23750 if test "x$ac_cv_func_pstat_getdynamic" = x
""yes; then :
23751 cat >>confdefs.h
<<_ACEOF
23752 #define HAVE_PSTAT_GETDYNAMIC 1
23754 gl_func_getloadavg_done
=yes
23760 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
23761 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
23762 # Irix 4.0.5F has the header but not the library.
23763 if test $gl_func_getloadavg_done = no
&& test "$ac_cv_lib_elf_elf_begin" = yes \
23764 && test "$ac_cv_lib_kvm_kvm_open" = yes; then
23765 gl_func_getloadavg_done
=yes
23767 $as_echo "#define SVR4 1" >>confdefs.h
23771 if test $gl_func_getloadavg_done = no
; then
23772 ac_fn_c_check_header_mongrel
"$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
23773 if test "x$ac_cv_header_inq_stats_cpustats_h" = x
""yes; then :
23774 gl_func_getloadavg_done
=yes
23776 $as_echo "#define UMAX 1" >>confdefs.h
23779 $as_echo "#define UMAX4_3 1" >>confdefs.h
23786 if test $gl_func_getloadavg_done = no
; then
23787 ac_fn_c_check_header_mongrel
"$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
23788 if test "x$ac_cv_header_sys_cpustats_h" = x
""yes; then :
23789 gl_func_getloadavg_done
=yes; $as_echo "#define UMAX 1" >>confdefs.h
23796 if test $gl_func_getloadavg_done = no
; then
23797 for ac_header
in mach
/mach.h
23799 ac_fn_c_check_header_mongrel
"$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
23800 if test "x$ac_cv_header_mach_mach_h" = x
""yes; then :
23801 cat >>confdefs.h
<<_ACEOF
23802 #define HAVE_MACH_MACH_H 1
23811 for ac_header
in nlist.h
23813 ac_fn_c_check_header_mongrel
"$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
23814 if test "x$ac_cv_header_nlist_h" = x
""yes; then :
23815 cat >>confdefs.h
<<_ACEOF
23816 #define HAVE_NLIST_H 1
23818 ac_fn_c_check_member
"$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
23820 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x
""yes; then :
23822 cat >>confdefs.h
<<_ACEOF
23823 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
23829 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23830 /* end confdefs.h. */
23836 #ifdef HAVE_STRUCT_NLIST_N_UN_N_NAME
23837 x.n_un.n_name = "";
23845 if ac_fn_c_try_link
"$LINENO"; then :
23847 $as_echo "#define N_NAME_POINTER 1" >>confdefs.h
23850 rm -f core conftest.err conftest.
$ac_objext \
23851 conftest
$ac_exeext conftest.
$ac_ext
23863 GNULIB_GETLOADAVG
=1
23874 if test $REPLACE_GETOPT = 1; then
23883 gl_LIBOBJS
="$gl_LIBOBJS getopt.$ac_objext"
23893 gl_LIBOBJS
="$gl_LIBOBJS getopt1.$ac_objext"
23898 GNULIB_GL_UNISTD_H_GETOPT
=1
23908 if test -n "$gl_replace_getopt"; then
23912 if test $REPLACE_GETOPT = 1; then
23916 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
23922 if test $REPLACE_GETOPT = 1; then
23931 gl_LIBOBJS
="$gl_LIBOBJS getopt.$ac_objext"
23941 gl_LIBOBJS
="$gl_LIBOBJS getopt1.$ac_objext"
23946 GNULIB_GL_UNISTD_H_GETOPT
=1
23960 gl_gettimeofday_timezone
=void
23961 if test $ac_cv_func_gettimeofday != yes; then
23962 HAVE_GETTIMEOFDAY
=0
23967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday clobbers localtime buffer" >&5
23968 $as_echo_n "checking whether gettimeofday clobbers localtime buffer... " >&6; }
23969 if test "${gl_cv_func_gettimeofday_clobber+set}" = set; then :
23970 $as_echo_n "(cached) " >&6
23972 if test "$cross_compiling" = yes; then :
23973 # When cross-compiling:
23975 # Guess all is fine on glibc systems.
23976 *-gnu*) gl_cv_func_gettimeofday_clobber
="guessing no" ;;
23977 # If we don't know, assume the worst.
23978 *) gl_cv_func_gettimeofday_clobber
="guessing yes" ;;
23982 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23983 /* end confdefs.h. */
23984 #include <string.h>
23985 #include <sys/time.h>
23987 #include <stdlib.h>
23995 struct tm saved_lt;
23997 lt = localtime (&t);
23999 gettimeofday (&tv, NULL);
24000 return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0;
24006 if ac_fn_c_try_run
"$LINENO"; then :
24007 gl_cv_func_gettimeofday_clobber
=no
24009 gl_cv_func_gettimeofday_clobber
=yes
24011 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24012 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_clobber" >&5
24017 $as_echo "$gl_cv_func_gettimeofday_clobber" >&6; }
24019 case "$gl_cv_func_gettimeofday_clobber" in
24021 REPLACE_GETTIMEOFDAY
=1
24024 $as_echo "#define gmtime rpl_gmtime" >>confdefs.h
24027 $as_echo "#define localtime rpl_localtime" >>confdefs.h
24031 $as_echo "#define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1" >>confdefs.h
24036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday with POSIX signature" >&5
24037 $as_echo_n "checking for gettimeofday with POSIX signature... " >&6; }
24038 if test "${gl_cv_func_gettimeofday_posix_signature+set}" = set; then :
24039 $as_echo_n "(cached) " >&6
24041 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24042 /* end confdefs.h. */
24043 #include <sys/time.h>
24045 int gettimeofday (struct timeval *restrict, void *restrict);
24050 /* glibc uses struct timezone * rather than the POSIX void *
24051 if _GNU_SOURCE is defined. However, since the only portable
24052 use of gettimeofday uses NULL as the second parameter, and
24053 since the glibc definition is actually more typesafe, it is
24054 not worth wrapping this to get a compliant signature. */
24055 int (*f) (struct timeval *restrict, void *restrict)
24058 return !(x | c.tv_sec | c.tv_usec);
24064 if ac_fn_c_try_compile
"$LINENO"; then :
24065 gl_cv_func_gettimeofday_posix_signature
=yes
24067 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24068 /* end confdefs.h. */
24069 #include <sys/time.h>
24070 int gettimeofday (struct timeval *restrict, struct timezone *restrict);
24080 if ac_fn_c_try_compile
"$LINENO"; then :
24081 gl_cv_func_gettimeofday_posix_signature
=almost
24083 gl_cv_func_gettimeofday_posix_signature
=no
24085 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24087 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_posix_signature" >&5
24090 $as_echo "$gl_cv_func_gettimeofday_posix_signature" >&6; }
24091 if test $gl_cv_func_gettimeofday_posix_signature = almost
; then
24092 gl_gettimeofday_timezone
='struct timezone'
24093 elif test $gl_cv_func_gettimeofday_posix_signature != yes; then
24094 REPLACE_GETTIMEOFDAY
=1
24096 if test $REPLACE_STRUCT_TIMEVAL = 1; then
24097 REPLACE_GETTIMEOFDAY
=1
24102 cat >>confdefs.h
<<_ACEOF
24103 #define GETTIMEOFDAY_TIMEZONE $gl_gettimeofday_timezone
24107 if test $HAVE_GETTIMEOFDAY = 0 ||
test $REPLACE_GETTIMEOFDAY = 1; then
24116 gl_LIBOBJS
="$gl_LIBOBJS gettimeofday.$ac_objext"
24119 for ac_header
in sys
/timeb.h
24121 ac_fn_c_check_header_mongrel
"$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
24122 if test "x$ac_cv_header_sys_timeb_h" = x
""yes; then :
24123 cat >>confdefs.h
<<_ACEOF
24124 #define HAVE_SYS_TIMEB_H 1
24131 for ac_func
in _ftime
24133 ac_fn_c_check_func
"$LINENO" "_ftime" "ac_cv_func__ftime"
24134 if test "x$ac_cv_func__ftime" = x
""yes; then :
24135 cat >>confdefs.h
<<_ACEOF
24136 #define HAVE__FTIME 1
24149 GNULIB_GETTIMEOFDAY
=1
24160 if test $ac_cv_func_lstat = yes; then
24162 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
24171 if test $REPLACE_LSTAT = 1; then
24180 gl_LIBOBJS
="$gl_LIBOBJS lstat.$ac_objext"
24200 if test $ac_cv_have_decl_memrchr = no
; then
24201 HAVE_DECL_MEMRCHR
=0
24204 for ac_func
in memrchr
24206 ac_fn_c_check_func
"$LINENO" "memrchr" "ac_cv_func_memrchr"
24207 if test "x$ac_cv_func_memrchr" = x
""yes; then :
24208 cat >>confdefs.h
<<_ACEOF
24209 #define HAVE_MEMRCHR 1
24216 if test $ac_cv_func_memrchr = no
; then
24225 gl_LIBOBJS
="$gl_LIBOBJS memrchr.$ac_objext"
24246 if test $ac_cv_func_mkostemp != yes; then
24250 if test $HAVE_MKOSTEMP = 0; then
24259 gl_LIBOBJS
="$gl_LIBOBJS mkostemp.$ac_objext"
24266 cat >>confdefs.h
<<_ACEOF
24267 #define GNULIB_MKOSTEMP 1
24288 if test $APPLE_UNIVERSAL_BUILD = 1; then
24289 # A universal build on Apple Mac OS X platforms.
24290 # The test result would be 'yes' in 32-bit mode and 'no' in 64-bit mode.
24291 # But we need a configuration result that is valid in both modes.
24292 gl_cv_func_working_mktime
=no
24294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
24295 $as_echo_n "checking for working mktime... " >&6; }
24296 if test "${gl_cv_func_working_mktime+set}" = set; then :
24297 $as_echo_n "(cached) " >&6
24299 if test "$cross_compiling" = yes; then :
24300 gl_cv_func_working_mktime
=no
24302 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24303 /* end confdefs.h. */
24304 /* Test program from Paul Eggert and Tony Leneis. */
24305 #include <limits.h>
24306 #include <stdlib.h>
24309 #ifdef HAVE_UNISTD_H
24310 # include <unistd.h>
24313 #if HAVE_DECL_ALARM
24314 # include <signal.h>
24317 /* Work around redefinition to rpl_putenv by other config tests. */
24320 static time_t time_t_max;
24321 static time_t time_t_min;
24323 /* Values we'll use to set the TZ environment variable. */
24324 static char *tz_strings[] = {
24325 (char *) 0, "TZ=GMT0", "TZ=JST-9",
24326 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
24328 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
24330 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
24331 Based on a problem report from Andreas Jaeger. */
24333 spring_forward_gap ()
24335 /* glibc (up to about 1998-10-07) failed this test. */
24338 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
24339 instead of "TZ=America/Vancouver" in order to detect the bug even
24340 on systems that don't support the Olson extension, or don't have the
24341 full zoneinfo tables installed. */
24342 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
24351 return mktime (&tm) != (time_t) -1;
24355 mktime_test1 (time_t now)
24358 return ! (lt = localtime (&now)) || mktime (lt) == now;
24362 mktime_test (time_t now)
24364 return (mktime_test1 (now)
24365 && mktime_test1 ((time_t) (time_t_max - now))
24366 && mktime_test1 ((time_t) (time_t_min + now)));
24372 /* Based on code from Ariel Faigon. */
24382 return tm.tm_mon == 2 && tm.tm_mday == 31;
24386 bigtime_test (int j)
24390 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
24391 now = mktime (&tm);
24392 if (now != (time_t) -1)
24394 struct tm *lt = localtime (&now);
24396 && lt->tm_year == tm.tm_year
24397 && lt->tm_mon == tm.tm_mon
24398 && lt->tm_mday == tm.tm_mday
24399 && lt->tm_hour == tm.tm_hour
24400 && lt->tm_min == tm.tm_min
24401 && lt->tm_sec == tm.tm_sec
24402 && lt->tm_yday == tm.tm_yday
24403 && lt->tm_wday == tm.tm_wday
24404 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
24405 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
24414 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
24415 ignoring leap seconds. */
24416 unsigned long int answer = 2527315200UL;
24420 tm.tm_year = 2050 - 1900;
24423 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
24426 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
24427 instead of "TZ=America/Vancouver" in order to detect the bug even
24428 on systems that don't support the Olson extension, or don't have the
24429 full zoneinfo tables installed. */
24430 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
24434 /* Check that the result is either a failure, or close enough
24435 to the correct answer that we can assume the discrepancy is
24436 due to leap seconds. */
24437 return (t == (time_t) -1
24438 || (0 < t && answer - 120 <= t && t <= answer + 120));
24447 int time_t_signed_magnitude = (time_t) ~ (time_t) 0 < (time_t) -1;
24448 int time_t_signed = ! ((time_t) 0 < (time_t) -1);
24450 #if HAVE_DECL_ALARM
24451 /* This test makes some buggy mktime implementations loop.
24452 Give up after 60 seconds; a mktime slower than that
24453 isn't worth using anyway. */
24454 signal (SIGALRM, SIG_DFL);
24458 time_t_max = (! time_t_signed
24460 : ((((time_t) 1 << (sizeof (time_t) * CHAR_BIT - 2)) - 1)
24462 time_t_min = (! time_t_signed
24464 : time_t_signed_magnitude
24468 delta = time_t_max / 997; /* a suitable prime number */
24469 for (i = 0; i < N_STRINGS; i++)
24472 putenv (tz_strings[i]);
24474 for (t = 0; t <= time_t_max - delta && (result & 1) == 0; t += delta)
24475 if (! mktime_test (t))
24477 if ((result & 2) == 0
24478 && ! (mktime_test ((time_t) 1)
24479 && mktime_test ((time_t) (60 * 60))
24480 && mktime_test ((time_t) (60 * 60 * 24))))
24483 for (j = 1; (result & 4) == 0; j <<= 1)
24485 if (! bigtime_test (j))
24487 if (INT_MAX / 2 < j)
24490 if ((result & 8) == 0 && ! bigtime_test (INT_MAX))
24493 if (! irix_6_4_bug ())
24495 if (! spring_forward_gap ())
24497 if (! year_2050_test ())
24502 if ac_fn_c_try_run
"$LINENO"; then :
24503 gl_cv_func_working_mktime
=yes
24505 gl_cv_func_working_mktime
=no
24507 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24508 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_mktime" >&5
24514 $as_echo "$gl_cv_func_working_mktime" >&6; }
24516 if test $gl_cv_func_working_mktime = no
; then
24522 if test $REPLACE_MKTIME = 1; then
24531 gl_LIBOBJS
="$gl_LIBOBJS mktime.$ac_objext"
24553 if test $ac_cv_func_pipe2 != yes; then
24573 if test $ac_cv_func_pselect = yes; then
24574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether signature of pselect conforms to POSIX" >&5
24575 $as_echo_n "checking whether signature of pselect conforms to POSIX... " >&6; }
24576 if test "${gl_cv_sig_pselect+set}" = set; then :
24577 $as_echo_n "(cached) " >&6
24579 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24580 /* end confdefs.h. */
24581 #include <sys/select.h>
24586 int (*p) (int, fd_set *, fd_set *, fd_set *restrict,
24587 struct timespec const *restrict,
24588 sigset_t const *restrict) = pselect;
24594 if ac_fn_c_try_link
"$LINENO"; then :
24595 gl_cv_sig_pselect
=yes
24597 gl_cv_sig_pselect
=no
24599 rm -f core conftest.err conftest.
$ac_objext \
24600 conftest
$ac_exeext conftest.
$ac_ext
24602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sig_pselect" >&5
24603 $as_echo "$gl_cv_sig_pselect" >&6; }
24605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pselect detects invalid fds" >&5
24606 $as_echo_n "checking whether pselect detects invalid fds... " >&6; }
24607 if test "${gl_cv_func_pselect_detects_ebadf+set}" = set; then :
24608 $as_echo_n "(cached) " >&6
24611 if test "$cross_compiling" = yes; then :
24614 # Guess yes on glibc systems.
24615 *-gnu*) gl_cv_func_pselect_detects_ebadf
="guessing yes" ;;
24616 # If we don't know, assume the worst.
24617 *) gl_cv_func_pselect_detects_ebadf
="guessing no" ;;
24621 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24622 /* end confdefs.h. */
24624 #include <sys/types.h>
24625 #include <sys/time.h>
24626 #if HAVE_SYS_SELECT_H
24627 # include <sys/select.h>
24629 #include <unistd.h>
24641 struct timespec timeout;
24642 timeout.tv_sec = 0;
24643 timeout.tv_nsec = 5000;
24644 return pselect (17, &set, NULL, NULL, &timeout, NULL) != -1 || errno != EBADF;
24650 if ac_fn_c_try_run
"$LINENO"; then :
24651 gl_cv_func_pselect_detects_ebadf
=yes
24653 gl_cv_func_pselect_detects_ebadf
=no
24655 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24656 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pselect_detects_ebadf" >&5
24662 $as_echo "$gl_cv_func_pselect_detects_ebadf" >&6; }
24663 case $gl_cv_func_pselect_detects_ebadf in
24665 *) REPLACE_PSELECT
=1 ;;
24669 if test $ac_cv_func_pselect = no ||
test $gl_cv_sig_pselect = no
; then
24673 if test $HAVE_PSELECT = 0 ||
test $REPLACE_PSELECT = 1; then
24682 gl_LIBOBJS
="$gl_LIBOBJS pselect.$ac_objext"
24700 LIB_PTHREAD_SIGMASK
=
24705 if test "$gl_threads_api" = posix
; then
24706 if test $ac_cv_func_pthread_sigmask = yes; then
24709 if test -n "$LIBMULTITHREAD"; then
24710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_sigmask in $LIBMULTITHREAD" >&5
24711 $as_echo_n "checking for pthread_sigmask in $LIBMULTITHREAD... " >&6; }
24712 if test "${gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD+set}" = set; then :
24713 $as_echo_n "(cached) " >&6
24715 gl_save_LIBS
="$LIBS"
24716 LIBS
="$LIBS $LIBMULTITHREAD"
24717 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24718 /* end confdefs.h. */
24719 #include <pthread.h>
24720 #include <signal.h>
24725 return pthread_sigmask (0, (sigset_t *) 0, (sigset_t *) 0);
24731 if ac_fn_c_try_link
"$LINENO"; then :
24732 gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD
=yes
24734 gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD
=no
24736 rm -f core conftest.err conftest.
$ac_objext \
24737 conftest
$ac_exeext conftest.
$ac_ext
24738 LIBS
="$gl_save_LIBS"
24741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD" >&5
24742 $as_echo "$gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD" >&6; }
24743 if test $gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD = yes; then
24744 LIB_PTHREAD_SIGMASK
="$LIBMULTITHREAD"
24746 HAVE_PTHREAD_SIGMASK
=0
24749 HAVE_PTHREAD_SIGMASK
=0
24753 if test $ac_cv_func_pthread_sigmask = yes; then
24754 REPLACE_PTHREAD_SIGMASK
=1
24756 HAVE_PTHREAD_SIGMASK
=0
24763 if test $HAVE_PTHREAD_SIGMASK = 1; then
24766 if test -z "$LIB_PTHREAD_SIGMASK"; then
24767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask works without -lpthread" >&5
24768 $as_echo_n "checking whether pthread_sigmask works without -lpthread... " >&6; }
24769 if test "${gl_cv_func_pthread_sigmask_in_libc_works+set}" = set; then :
24770 $as_echo_n "(cached) " >&6
24773 if test "$cross_compiling" = yes; then :
24776 freebsd
* | hpux
* | solaris | solaris2.
[2-9]*)
24777 gl_cv_func_pthread_sigmask_in_libc_works
="guessing no";;
24779 gl_cv_func_pthread_sigmask_in_libc_works
="guessing yes";;
24783 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24784 /* end confdefs.h. */
24786 #include <pthread.h>
24787 #include <signal.h>
24788 #include <stddef.h>
24792 sigemptyset (&set);
24793 return pthread_sigmask (1729, &set, NULL) != 0;
24796 if ac_fn_c_try_run
"$LINENO"; then :
24797 gl_cv_func_pthread_sigmask_in_libc_works
=no
24799 gl_cv_func_pthread_sigmask_in_libc_works
=yes
24801 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24802 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_in_libc_works" >&5
24808 $as_echo "$gl_cv_func_pthread_sigmask_in_libc_works" >&6; }
24809 case "$gl_cv_func_pthread_sigmask_in_libc_works" in
24811 REPLACE_PTHREAD_SIGMASK
=1
24813 $as_echo "#define PTHREAD_SIGMASK_INEFFECTIVE 1" >>confdefs.h
24819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask returns error numbers" >&5
24820 $as_echo_n "checking whether pthread_sigmask returns error numbers... " >&6; }
24821 if test "${gl_cv_func_pthread_sigmask_return_works+set}" = set; then :
24822 $as_echo_n "(cached) " >&6
24825 gl_save_LIBS
="$LIBS"
24826 LIBS
="$LIBS $LIB_PTHREAD_SIGMASK"
24827 if test "$cross_compiling" = yes; then :
24830 gl_cv_func_pthread_sigmask_return_works
="guessing no";;
24832 gl_cv_func_pthread_sigmask_return_works
="guessing yes";;
24836 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24837 /* end confdefs.h. */
24839 #include <pthread.h>
24840 #include <signal.h>
24841 #include <stddef.h>
24845 sigemptyset (&set);
24846 if (pthread_sigmask (1729, &set, NULL) == -1)
24851 if ac_fn_c_try_run
"$LINENO"; then :
24852 gl_cv_func_pthread_sigmask_return_works
=yes
24854 gl_cv_func_pthread_sigmask_return_works
=no
24856 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24857 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24860 LIBS
="$gl_save_LIBS"
24863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_return_works" >&5
24864 $as_echo "$gl_cv_func_pthread_sigmask_return_works" >&6; }
24865 case "$gl_cv_func_pthread_sigmask_return_works" in
24867 REPLACE_PTHREAD_SIGMASK
=1
24869 $as_echo "#define PTHREAD_SIGMASK_FAILS_WITH_ERRNO 1" >>confdefs.h
24874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask unblocks signals correctly" >&5
24875 $as_echo_n "checking whether pthread_sigmask unblocks signals correctly... " >&6; }
24876 if test "${gl_cv_func_pthread_sigmask_unblock_works+set}" = set; then :
24877 $as_echo_n "(cached) " >&6
24882 gl_cv_func_pthread_sigmask_unblock_works
="guessing no";;
24884 gl_cv_func_pthread_sigmask_unblock_works
="guessing yes";;
24886 gl_save_LIBS
="$LIBS"
24887 LIBS
="$LIBS $LIBMULTITHREAD"
24888 if test "$cross_compiling" = yes; then :
24891 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24892 /* end confdefs.h. */
24894 #include <pthread.h>
24895 #include <signal.h>
24897 #include <stdlib.h>
24898 #include <unistd.h>
24899 static volatile int sigint_occurred;
24901 sigint_handler (int sig)
24908 int pid = getpid ();
24910 signal (SIGINT, sigint_handler);
24911 sigemptyset (&set);
24912 sigaddset (&set, SIGINT);
24913 if (!(pthread_sigmask (SIG_BLOCK, &set, NULL) == 0))
24915 sprintf (command, "sh -c 'sleep 1; kill -%d %d' &", SIGINT, pid);
24916 if (!(system (command) == 0))
24919 if (!(sigint_occurred == 0))
24921 if (!(pthread_sigmask (SIG_UNBLOCK, &set, NULL) == 0))
24923 if (!(sigint_occurred == 1)) /* This fails on IRIX. */
24928 if ac_fn_c_try_run
"$LINENO"; then :
24931 gl_cv_func_pthread_sigmask_unblock_works
=no
24933 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24934 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24937 LIBS
="$gl_save_LIBS"
24940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_unblock_works" >&5
24941 $as_echo "$gl_cv_func_pthread_sigmask_unblock_works" >&6; }
24942 case "$gl_cv_func_pthread_sigmask_unblock_works" in
24944 REPLACE_PTHREAD_SIGMASK
=1
24946 $as_echo "#define PTHREAD_SIGMASK_UNBLOCK_BUG 1" >>confdefs.h
24952 if test $HAVE_PTHREAD_SIGMASK = 0 ||
test $REPLACE_PTHREAD_SIGMASK = 1; then
24961 gl_LIBOBJS
="$gl_LIBOBJS pthread_sigmask.$ac_objext"
24964 if test $HAVE_PTHREAD_SIGMASK = 1; then
24966 $as_echo "#define HAVE_PTHREAD_SIGMASK 1" >>confdefs.h
24976 GNULIB_PTHREAD_SIGMASK
=1
24984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for putenv compatible with GNU and SVID" >&5
24985 $as_echo_n "checking for putenv compatible with GNU and SVID... " >&6; }
24986 if test "${gl_cv_func_svid_putenv+set}" = set; then :
24987 $as_echo_n "(cached) " >&6
24989 if test "$cross_compiling" = yes; then :
24991 # Guess yes on glibc systems.
24992 *-gnu*) gl_cv_func_svid_putenv
="guessing yes" ;;
24993 # If we don't know, assume the worst.
24994 *) gl_cv_func_svid_putenv
="guessing no" ;;
24998 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24999 /* end confdefs.h. */
25000 $ac_includes_default
25005 /* Put it in env. */
25006 if (putenv ("CONFTEST_putenv=val"))
25009 /* Try to remove it. */
25010 if (putenv ("CONFTEST_putenv"))
25013 /* Make sure it was deleted. */
25014 if (getenv ("CONFTEST_putenv") != 0)
25023 if ac_fn_c_try_run
"$LINENO"; then :
25024 gl_cv_func_svid_putenv
=yes
25026 gl_cv_func_svid_putenv
=no
25028 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
25029 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
25034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_svid_putenv" >&5
25035 $as_echo "$gl_cv_func_svid_putenv" >&6; }
25036 case "$gl_cv_func_svid_putenv" in
25043 if test $REPLACE_PUTENV = 1; then
25052 gl_LIBOBJS
="$gl_LIBOBJS putenv.$ac_objext"
25055 ac_fn_c_check_decl
"$LINENO" "_putenv" "ac_cv_have_decl__putenv" "$ac_includes_default"
25056 if test "x$ac_cv_have_decl__putenv" = x
""yes; then :
25062 cat >>confdefs.h
<<_ACEOF
25063 #define HAVE_DECL__PUTENV $ac_have_decl
25080 # Check whether --enable-acl was given.
25081 if test "${enable_acl+set}" = set; then :
25082 enableval
=$enable_acl;
25090 if test "x$enable_acl" != "xno"; then
25091 for ac_header
in sys
/acl.h
25093 ac_fn_c_check_header_mongrel
"$LINENO" "sys/acl.h" "ac_cv_header_sys_acl_h" "$ac_includes_default"
25094 if test "x$ac_cv_header_sys_acl_h" = x
""yes; then :
25095 cat >>confdefs.h
<<_ACEOF
25096 #define HAVE_SYS_ACL_H 1
25103 if test $ac_cv_header_sys_acl_h = yes; then
25106 if test $use_acl = 0; then
25107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing acl_get_file" >&5
25108 $as_echo_n "checking for library containing acl_get_file... " >&6; }
25109 if test "${ac_cv_search_acl_get_file+set}" = set; then :
25110 $as_echo_n "(cached) " >&6
25112 ac_func_search_save_LIBS
=$LIBS
25113 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25114 /* end confdefs.h. */
25116 /* Override any GCC internal prototype to avoid an error.
25117 Use char because int might match the return type of a GCC
25118 builtin and then its argument prototype would still apply. */
25122 char acl_get_file ();
25126 return acl_get_file ();
25131 for ac_lib
in '' acl pacl
; do
25132 if test -z "$ac_lib"; then
25133 ac_res
="none required"
25136 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
25138 if ac_fn_c_try_link
"$LINENO"; then :
25139 ac_cv_search_acl_get_file
=$ac_res
25141 rm -f core conftest.err conftest.
$ac_objext \
25143 if test "${ac_cv_search_acl_get_file+set}" = set; then :
25147 if test "${ac_cv_search_acl_get_file+set}" = set; then :
25150 ac_cv_search_acl_get_file
=no
25152 rm conftest.
$ac_ext
25153 LIBS
=$ac_func_search_save_LIBS
25155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_acl_get_file" >&5
25156 $as_echo "$ac_cv_search_acl_get_file" >&6; }
25157 ac_res
=$ac_cv_search_acl_get_file
25158 if test "$ac_res" != no
; then :
25159 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
25160 if test "$ac_cv_search_acl_get_file" != "none required"; then
25161 LIB_ACL
=$ac_cv_search_acl_get_file
25163 for ac_func
in acl_get_file acl_get_fd acl_set_file acl_set_fd \
25164 acl_free acl_from_mode acl_from_text \
25165 acl_delete_def_file acl_extended_file \
25166 acl_delete_fd_np acl_delete_file_np \
25167 acl_copy_ext_native acl_create_entry_np \
25168 acl_to_short_text acl_free_text
25170 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25171 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
25172 eval as_val
=\$
$as_ac_var
25173 if test "x$as_val" = x
""yes; then :
25174 cat >>confdefs.h
<<_ACEOF
25175 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25181 # If the acl_get_file bug is detected, don't enable the ACL support.
25183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working acl_get_file" >&5
25184 $as_echo_n "checking for working acl_get_file... " >&6; }
25185 if test "${gl_cv_func_working_acl_get_file+set}" = set; then :
25186 $as_echo_n "(cached) " >&6
25188 if test "$cross_compiling" = yes; then :
25189 gl_cv_func_working_acl_get_file
=cross-compiling
25191 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25192 /* end confdefs.h. */
25193 #include <sys/types.h>
25194 #include <sys/acl.h>
25200 if (!acl_get_file (".", ACL_TYPE_ACCESS) && errno == ENOENT)
25208 if ac_fn_c_try_run
"$LINENO"; then :
25209 gl_cv_func_working_acl_get_file
=yes
25211 gl_cv_func_working_acl_get_file
=no
25213 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
25214 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
25218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_acl_get_file" >&5
25219 $as_echo "$gl_cv_func_working_acl_get_file" >&6; }
25221 if test $gl_cv_func_working_acl_get_file = yes; then :
25225 if test $use_acl = 1; then
25226 for ac_header
in acl
/libacl.h
25228 ac_fn_c_check_header_mongrel
"$LINENO" "acl/libacl.h" "ac_cv_header_acl_libacl_h" "$ac_includes_default"
25229 if test "x$ac_cv_header_acl_libacl_h" = x
""yes; then :
25230 cat >>confdefs.h
<<_ACEOF
25231 #define HAVE_ACL_LIBACL_H 1
25246 for ac_func
in acl_entries
25248 ac_fn_c_check_func
"$LINENO" "acl_entries" "ac_cv_func_acl_entries"
25249 if test "x$ac_cv_func_acl_entries" = x
""yes; then :
25250 cat >>confdefs.h
<<_ACEOF
25251 #define HAVE_ACL_ENTRIES 1
25256 gl_LIBOBJS
="$gl_LIBOBJS $ac_func.$ac_objext"
25262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_FIRST_ENTRY" >&5
25263 $as_echo_n "checking for ACL_FIRST_ENTRY... " >&6; }
25264 if test "${gl_cv_acl_ACL_FIRST_ENTRY+set}" = set; then :
25265 $as_echo_n "(cached) " >&6
25267 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25268 /* end confdefs.h. */
25269 #include <sys/types.h>
25270 #include <sys/acl.h>
25271 int type = ACL_FIRST_ENTRY;
25280 if ac_fn_c_try_compile
"$LINENO"; then :
25281 gl_cv_acl_ACL_FIRST_ENTRY
=yes
25283 gl_cv_acl_ACL_FIRST_ENTRY
=no
25285 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_acl_ACL_FIRST_ENTRY" >&5
25288 $as_echo "$gl_cv_acl_ACL_FIRST_ENTRY" >&6; }
25289 if test $gl_cv_acl_ACL_FIRST_ENTRY = yes; then
25291 $as_echo "#define HAVE_ACL_FIRST_ENTRY 1" >>confdefs.h
25294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_EXTENDED" >&5
25295 $as_echo_n "checking for ACL_TYPE_EXTENDED... " >&6; }
25296 if test "${gl_cv_acl_ACL_TYPE_EXTENDED+set}" = set; then :
25297 $as_echo_n "(cached) " >&6
25299 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25300 /* end confdefs.h. */
25301 #include <sys/types.h>
25302 #include <sys/acl.h>
25303 int type = ACL_TYPE_EXTENDED;
25312 if ac_fn_c_try_compile
"$LINENO"; then :
25313 gl_cv_acl_ACL_TYPE_EXTENDED
=yes
25315 gl_cv_acl_ACL_TYPE_EXTENDED
=no
25317 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_acl_ACL_TYPE_EXTENDED" >&5
25320 $as_echo "$gl_cv_acl_ACL_TYPE_EXTENDED" >&6; }
25321 if test $gl_cv_acl_ACL_TYPE_EXTENDED = yes; then
25323 $as_echo "#define HAVE_ACL_TYPE_EXTENDED 1" >>confdefs.h
25334 if test $use_acl = 0; then
25335 for ac_func
in facl
25337 ac_fn_c_check_func
"$LINENO" "facl" "ac_cv_func_facl"
25338 if test "x$ac_cv_func_facl" = x
""yes; then :
25339 cat >>confdefs.h
<<_ACEOF
25340 #define HAVE_FACL 1
25346 if test $ac_cv_func_facl = yes; then
25347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing acl_trivial" >&5
25348 $as_echo_n "checking for library containing acl_trivial... " >&6; }
25349 if test "${ac_cv_search_acl_trivial+set}" = set; then :
25350 $as_echo_n "(cached) " >&6
25352 ac_func_search_save_LIBS
=$LIBS
25353 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25354 /* end confdefs.h. */
25356 /* Override any GCC internal prototype to avoid an error.
25357 Use char because int might match the return type of a GCC
25358 builtin and then its argument prototype would still apply. */
25362 char acl_trivial ();
25366 return acl_trivial ();
25371 for ac_lib
in '' sec
; do
25372 if test -z "$ac_lib"; then
25373 ac_res
="none required"
25376 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
25378 if ac_fn_c_try_link
"$LINENO"; then :
25379 ac_cv_search_acl_trivial
=$ac_res
25381 rm -f core conftest.err conftest.
$ac_objext \
25383 if test "${ac_cv_search_acl_trivial+set}" = set; then :
25387 if test "${ac_cv_search_acl_trivial+set}" = set; then :
25390 ac_cv_search_acl_trivial
=no
25392 rm conftest.
$ac_ext
25393 LIBS
=$ac_func_search_save_LIBS
25395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_acl_trivial" >&5
25396 $as_echo "$ac_cv_search_acl_trivial" >&6; }
25397 ac_res
=$ac_cv_search_acl_trivial
25398 if test "$ac_res" != no
; then :
25399 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
25400 if test "$ac_cv_search_acl_trivial" != "none required"; then
25401 LIB_ACL
=$ac_cv_search_acl_trivial
25406 for ac_func
in acl_trivial
25408 ac_fn_c_check_func
"$LINENO" "acl_trivial" "ac_cv_func_acl_trivial"
25409 if test "x$ac_cv_func_acl_trivial" = x
""yes; then :
25410 cat >>confdefs.h
<<_ACEOF
25411 #define HAVE_ACL_TRIVIAL 1
25421 if test $use_acl = 0; then
25422 for ac_func
in getacl
25424 ac_fn_c_check_func
"$LINENO" "getacl" "ac_cv_func_getacl"
25425 if test "x$ac_cv_func_getacl" = x
""yes; then :
25426 cat >>confdefs.h
<<_ACEOF
25427 #define HAVE_GETACL 1
25433 if test $ac_cv_func_getacl = yes; then
25436 for ac_header
in aclv.h
25438 ac_fn_c_check_header_compile
"$LINENO" "aclv.h" "ac_cv_header_aclv_h" "#include <sys/types.h>
25440 if test "x$ac_cv_header_aclv_h" = x
""yes; then :
25441 cat >>confdefs.h
<<_ACEOF
25442 #define HAVE_ACLV_H 1
25451 if test $use_acl = 0; then
25452 for ac_func
in aclx_get
25454 ac_fn_c_check_func
"$LINENO" "aclx_get" "ac_cv_func_aclx_get"
25455 if test "x$ac_cv_func_aclx_get" = x
""yes; then :
25456 cat >>confdefs.h
<<_ACEOF
25457 #define HAVE_ACLX_GET 1
25463 if test $ac_cv_func_aclx_get = yes; then
25468 if test $use_acl = 0 ||
test "$ac_cv_func_aclx_get" = yes; then
25469 for ac_func
in statacl
25471 ac_fn_c_check_func
"$LINENO" "statacl" "ac_cv_func_statacl"
25472 if test "x$ac_cv_func_statacl" = x
""yes; then :
25473 cat >>confdefs.h
<<_ACEOF
25474 #define HAVE_STATACL 1
25480 if test $ac_cv_func_statacl = yes; then
25485 if test $use_acl = 0; then
25486 for ac_func
in aclsort
25488 ac_fn_c_check_func
"$LINENO" "aclsort" "ac_cv_func_aclsort"
25489 if test "x$ac_cv_func_aclsort" = x
""yes; then :
25490 cat >>confdefs.h
<<_ACEOF
25491 #define HAVE_ACLSORT 1
25497 if test $ac_cv_func_aclsort = yes; then
25504 if test "x$enable_acl$use_acl" = "xyes0"; then
25505 as_fn_error
"ACLs enabled but support not detected" "$LINENO" 5
25506 elif test "x$enable_acl$use_acl" = "xauto0"; then
25507 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libacl development library was not found or not usable." >&5
25508 $as_echo "$as_me: WARNING: libacl development library was not found or not usable." >&2;}
25509 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: emacs will be built without ACL support." >&5
25510 $as_echo "$as_me: WARNING: emacs will be built without ACL support." >&2;}
25515 cat >>confdefs.h
<<_ACEOF
25516 #define USE_ACL $use_acl
25525 if test $ac_cv_func_readlink = no
; then
25528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
25529 $as_echo_n "checking whether readlink signature is correct... " >&6; }
25530 if test "${gl_cv_decl_readlink_works+set}" = set; then :
25531 $as_echo_n "(cached) " >&6
25533 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25534 /* end confdefs.h. */
25535 #include <unistd.h>
25536 /* Cause compilation failure if original declaration has wrong type. */
25537 ssize_t readlink (const char *, char *, size_t);
25546 if ac_fn_c_try_compile
"$LINENO"; then :
25547 gl_cv_decl_readlink_works
=yes
25549 gl_cv_decl_readlink_works
=no
25551 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
25554 $as_echo "$gl_cv_decl_readlink_works" >&6; }
25555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
25556 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
25557 if test "${gl_cv_func_readlink_works+set}" = set; then :
25558 $as_echo_n "(cached) " >&6
25560 # We have readlink, so assume ln -s works.
25561 ln -s conftest.no-such conftest.link
25562 ln -s conftest.link conftest.lnk2
25563 if test "$cross_compiling" = yes; then :
25565 # Guess yes on glibc systems.
25566 *-gnu*) gl_cv_func_readlink_works
="guessing yes" ;;
25567 # If we don't know, assume the worst.
25568 *) gl_cv_func_readlink_works
="guessing no" ;;
25572 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25573 /* end confdefs.h. */
25574 #include <unistd.h>
25580 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
25585 if ac_fn_c_try_run
"$LINENO"; then :
25586 gl_cv_func_readlink_works
=yes
25588 gl_cv_func_readlink_works
=no
25590 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
25591 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
25594 rm -f conftest.link conftest.lnk2
25596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
25597 $as_echo "$gl_cv_func_readlink_works" >&6; }
25598 case "$gl_cv_func_readlink_works" in
25600 if test "$gl_cv_decl_readlink_works" != yes; then
25606 $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
25613 if test $HAVE_READLINK = 0 ||
test $REPLACE_READLINK = 1; then
25622 gl_LIBOBJS
="$gl_LIBOBJS readlink.$ac_objext"
25643 if test $ac_cv_func_readlinkat = no
; then
25647 if test $HAVE_READLINKAT = 0; then
25656 gl_LIBOBJS
="$gl_LIBOBJS readlinkat.$ac_objext"
25664 GNULIB_READLINKAT
=1
25671 for ac_func
in sig2str
25673 ac_fn_c_check_func
"$LINENO" "sig2str" "ac_cv_func_sig2str"
25674 if test "x$ac_cv_func_sig2str" = x
""yes; then :
25675 cat >>confdefs.h
<<_ACEOF
25676 #define HAVE_SIG2STR 1
25683 if test $ac_cv_func_sig2str = no
; then
25692 gl_LIBOBJS
="$gl_LIBOBJS sig2str.$ac_objext"
25709 if test $gl_cv_have_include_next = yes; then
25710 gl_cv_next_signal_h
='<'signal.h
'>'
25712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
25713 $as_echo_n "checking absolute name of <signal.h>... " >&6; }
25714 if test "${gl_cv_next_signal_h+set}" = set; then :
25715 $as_echo_n "(cached) " >&6
25718 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25719 /* end confdefs.h. */
25720 #include <signal.h>
25724 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
25725 *) gl_absname_cpp
="$ac_cpp" ;;
25730 gl_dirsep_regex
='[/\\]'
25733 gl_dirsep_regex
='\/'
25736 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
25738 gl_header_literal_regex
=`echo 'signal.h' \
25739 | sed -e "$gl_make_literal_regex_sed"`
25740 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
25741 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
25746 gl_cv_next_signal_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
25747 sed -n "$gl_absolute_header_sed"`'"'
25751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
25752 $as_echo "$gl_cv_next_signal_h" >&6; }
25754 NEXT_SIGNAL_H
=$gl_cv_next_signal_h
25756 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
25757 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
25758 gl_next_as_first_directive
='<'signal.h
'>'
25760 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
25761 gl_next_as_first_directive
=$gl_cv_next_signal_h
25763 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
=$gl_next_as_first_directive
25769 # AIX declares sig_atomic_t to already include volatile, and C89 compilers
25770 # then choke on 'volatile sig_atomic_t'. C99 requires that it compile.
25771 ac_fn_c_check_type
"$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
25772 #include <signal.h>
25775 if test "x$ac_cv_type_volatile_sig_atomic_t" = x
""yes; then :
25778 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
=0
25787 ac_fn_c_check_type
"$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
25788 #include <signal.h>
25791 if test "x$ac_cv_type_sighandler_t" = x
""yes; then :
25794 HAVE_SIGHANDLER_T
=0
25800 ac_fn_c_check_type
"$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
25801 /* <sys/types.h> is not needed according to POSIX, but the
25802 <sys/socket.h> in i386-unknown-freebsd4.10 and
25803 powerpc-apple-darwin5.5 required it. */
25804 #include <sys/types.h>
25805 #if HAVE_SYS_SOCKET_H
25806 # include <sys/socket.h>
25807 #elif HAVE_WS2TCPIP_H
25808 # include <ws2tcpip.h>
25812 if test "x$ac_cv_type_socklen_t" = x
""yes; then :
25815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
25816 $as_echo_n "checking for socklen_t equivalent... " >&6; }
25817 if test "${gl_cv_socklen_t_equiv+set}" = set; then :
25818 $as_echo_n "(cached) " >&6
25820 # Systems have either "struct sockaddr *" or
25821 # "void *" as the second argument to getpeername
25822 gl_cv_socklen_t_equiv
=
25823 for arg2
in "struct sockaddr" void
; do
25824 for t
in int size_t
"unsigned int" "long int" "unsigned long int"; do
25825 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25826 /* end confdefs.h. */
25827 #include <sys/types.h>
25828 #include <sys/socket.h>
25830 int getpeername (int, $arg2 *, $t *);
25835 getpeername (0, 0, &len);
25840 if ac_fn_c_try_compile
"$LINENO"; then :
25841 gl_cv_socklen_t_equiv
="$t"
25843 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25844 test "$gl_cv_socklen_t_equiv" != "" && break
25846 test "$gl_cv_socklen_t_equiv" != "" && break
25851 if test "$gl_cv_socklen_t_equiv" = ""; then
25852 as_fn_error
"Cannot find a type to use in place of socklen_t" "$LINENO" 5
25854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
25855 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
25857 cat >>confdefs.h
<<_ACEOF
25858 #define socklen_t $gl_cv_socklen_t_equiv
25864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
25865 $as_echo_n "checking for ssize_t... " >&6; }
25866 if test "${gt_cv_ssize_t+set}" = set; then :
25867 $as_echo_n "(cached) " >&6
25869 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25870 /* end confdefs.h. */
25871 #include <sys/types.h>
25875 int x = sizeof (ssize_t *) + sizeof (ssize_t);
25881 if ac_fn_c_try_compile
"$LINENO"; then :
25886 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
25889 $as_echo "$gt_cv_ssize_t" >&6; }
25890 if test $gt_cv_ssize_t = no
; then
25892 $as_echo "#define ssize_t int" >>confdefs.h
25900 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>
25901 #include <sys/stat.h>
25903 if test "x$ac_cv_member_struct_stat_st_atim_tv_nsec" = x
""yes; then :
25905 cat >>confdefs.h
<<_ACEOF
25906 #define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1
25909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat.st_atim is of type struct timespec" >&5
25910 $as_echo_n "checking whether struct stat.st_atim is of type struct timespec... " >&6; }
25911 if test "${ac_cv_typeof_struct_stat_st_atim_is_struct_timespec+set}" = set; then :
25912 $as_echo_n "(cached) " >&6
25914 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25915 /* end confdefs.h. */
25917 #include <sys/types.h>
25918 #include <sys/stat.h>
25919 #if HAVE_SYS_TIME_H
25920 # include <sys/time.h>
25923 struct timespec ts;
25936 if ac_fn_c_try_compile
"$LINENO"; then :
25937 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec
=yes
25939 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec
=no
25941 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&5
25944 $as_echo "$ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&6; }
25945 if test $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec = yes; then
25947 $as_echo "#define TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC 1" >>confdefs.h
25951 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>
25952 #include <sys/stat.h>
25954 if test "x$ac_cv_member_struct_stat_st_atimespec_tv_nsec" = x
""yes; then :
25956 cat >>confdefs.h
<<_ACEOF
25957 #define HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC 1
25962 ac_fn_c_check_member
"$LINENO" "struct stat" "st_atimensec" "ac_cv_member_struct_stat_st_atimensec" "#include <sys/types.h>
25963 #include <sys/stat.h>
25965 if test "x$ac_cv_member_struct_stat_st_atimensec" = x
""yes; then :
25967 cat >>confdefs.h
<<_ACEOF
25968 #define HAVE_STRUCT_STAT_ST_ATIMENSEC 1
25973 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>
25974 #include <sys/stat.h>
25976 if test "x$ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" = x
""yes; then :
25978 cat >>confdefs.h
<<_ACEOF
25979 #define HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC 1
25995 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>
25996 #include <sys/stat.h>
25998 if test "x$ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" = x
""yes; then :
26000 cat >>confdefs.h
<<_ACEOF
26001 #define HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC 1
26006 ac_fn_c_check_member
"$LINENO" "struct stat" "st_birthtimensec" "ac_cv_member_struct_stat_st_birthtimensec" "#include <sys/types.h>
26007 #include <sys/stat.h>
26009 if test "x$ac_cv_member_struct_stat_st_birthtimensec" = x
""yes; then :
26011 cat >>confdefs.h
<<_ACEOF
26012 #define HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC 1
26017 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>
26018 #include <sys/stat.h>
26020 if test "x$ac_cv_member_struct_stat_st_birthtim_tv_nsec" = x
""yes; then :
26022 cat >>confdefs.h
<<_ACEOF
26023 #define HAVE_STRUCT_STAT_ST_BIRTHTIM_TV_NSEC 1
26035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdalign.h" >&5
26036 $as_echo_n "checking for working stdalign.h... " >&6; }
26037 if test "${gl_cv_header_working_stdalign_h+set}" = set; then :
26038 $as_echo_n "(cached) " >&6
26040 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26041 /* end confdefs.h. */
26042 #include <stdalign.h>
26043 #include <stddef.h>
26045 /* Test that alignof yields a result consistent with offsetof.
26046 This catches GCC bug 52023
26047 <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023>. */
26049 template <class t> struct alignof_helper { char a; t b; };
26050 # define ao(type) offsetof (alignof_helper<type>, b)
26052 # define ao(type) offsetof (struct { char a; type b; }, b)
26054 char test_double[ao (double) % _Alignof (double) == 0 ? 1 : -1];
26055 char test_long[ao (long int) % _Alignof (long int) == 0 ? 1 : -1];
26056 char test_alignof[alignof (double) == _Alignof (double) ? 1 : -1];
26058 /* Test _Alignas only on platforms where gnulib can help. */
26060 ((defined __cplusplus && 201103 <= __cplusplus) \
26061 || __GNUC__ || __IBMC__ || __IBMCPP__ || __ICC \
26062 || 0x5110 <= __SUNPRO_C || 1300 <= _MSC_VER)
26063 struct alignas_test { char c; char alignas (8) alignas_8; };
26064 char test_alignas[offsetof (struct alignas_test, alignas_8) == 8
26076 if ac_fn_c_try_compile
"$LINENO"; then :
26077 gl_cv_header_working_stdalign_h
=yes
26079 gl_cv_header_working_stdalign_h
=no
26081 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdalign_h" >&5
26084 $as_echo "$gl_cv_header_working_stdalign_h" >&6; }
26086 if test $gl_cv_header_working_stdalign_h = yes; then
26089 STDALIGN_H
='stdalign.h'
26093 if test -n "$STDALIGN_H"; then
26094 GL_GENERATE_STDALIGN_H_TRUE
=
26095 GL_GENERATE_STDALIGN_H_FALSE
='#'
26097 GL_GENERATE_STDALIGN_H_TRUE
='#'
26098 GL_GENERATE_STDALIGN_H_FALSE
=
26104 NEXT_STDARG_H
='<stdarg.h>'
26105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
26106 $as_echo_n "checking for va_copy... " >&6; }
26107 if test "${gl_cv_func_va_copy+set}" = set; then :
26108 $as_echo_n "(cached) " >&6
26111 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26112 /* end confdefs.h. */
26113 #include <stdarg.h>
26119 void (*func) (va_list, va_list) = va_copy;
26126 if ac_fn_c_try_compile
"$LINENO"; then :
26127 gl_cv_func_va_copy
=yes
26129 gl_cv_func_va_copy
=no
26131 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_va_copy" >&5
26135 $as_echo "$gl_cv_func_va_copy" >&6; }
26136 if test $gl_cv_func_va_copy = no
; then
26137 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26138 /* end confdefs.h. */
26139 #if defined _AIX && !defined __GNUC__
26144 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26145 $EGREP "vaccine" >/dev
/null
2>&1; then :
26152 if test $gl_aixcc = yes; then
26162 if test $gl_cv_have_include_next = yes; then
26163 gl_cv_next_stdarg_h
='<'stdarg.h
'>'
26165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdarg.h>" >&5
26166 $as_echo_n "checking absolute name of <stdarg.h>... " >&6; }
26167 if test "${gl_cv_next_stdarg_h+set}" = set; then :
26168 $as_echo_n "(cached) " >&6
26171 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26172 /* end confdefs.h. */
26173 #include <stdarg.h>
26177 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
26178 *) gl_absname_cpp
="$ac_cpp" ;;
26183 gl_dirsep_regex
='[/\\]'
26186 gl_dirsep_regex
='\/'
26189 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
26191 gl_header_literal_regex
=`echo 'stdarg.h' \
26192 | sed -e "$gl_make_literal_regex_sed"`
26193 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
26194 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
26199 gl_cv_next_stdarg_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
26200 sed -n "$gl_absolute_header_sed"`'"'
26204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdarg_h" >&5
26205 $as_echo "$gl_cv_next_stdarg_h" >&6; }
26207 NEXT_STDARG_H
=$gl_cv_next_stdarg_h
26209 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
26210 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
26211 gl_next_as_first_directive
='<'stdarg.h
'>'
26213 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
26214 gl_next_as_first_directive
=$gl_cv_next_stdarg_h
26216 NEXT_AS_FIRST_DIRECTIVE_STDARG_H
=$gl_next_as_first_directive
26221 if test "$gl_cv_next_stdarg_h" = '""'; then
26222 gl_cv_next_stdarg_h
='"///usr/include/stdarg.h"'
26223 NEXT_STDARG_H
="$gl_cv_next_stdarg_h"
26227 saved_as_echo_n
="$as_echo_n"
26229 if test "${gl_cv_func___va_copy+set}" = set; then :
26230 $as_echo_n "(cached) " >&6
26233 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26234 /* end confdefs.h. */
26235 #include <stdarg.h>
26248 if ac_fn_c_try_compile
"$LINENO"; then :
26249 gl_cv_func___va_copy
=yes
26251 gl_cv_func___va_copy
=no
26253 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26256 as_echo_n
="$saved_as_echo_n"
26258 if test $gl_cv_func___va_copy = yes; then
26260 $as_echo "#define va_copy __va_copy" >>confdefs.h
26265 $as_echo "#define va_copy gl_va_copy" >>confdefs.h
26271 if test -n "$STDARG_H"; then
26272 GL_GENERATE_STDARG_H_TRUE
=
26273 GL_GENERATE_STDARG_H_FALSE
='#'
26275 GL_GENERATE_STDARG_H_TRUE
='#'
26276 GL_GENERATE_STDARG_H_FALSE
=
26284 # Define two additional variables used in the Makefile substitution.
26286 if test "$ac_cv_header_stdbool_h" = yes; then
26289 STDBOOL_H
='stdbool.h'
26292 if test -n "$STDBOOL_H"; then
26293 GL_GENERATE_STDBOOL_H_TRUE
=
26294 GL_GENERATE_STDBOOL_H_FALSE
='#'
26296 GL_GENERATE_STDBOOL_H_TRUE
='#'
26297 GL_GENERATE_STDBOOL_H_FALSE
=
26301 if test "$ac_cv_type__Bool" = yes; then
26312 if test $gt_cv_c_wchar_t = no
; then
26316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
26317 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
26318 if test "${gl_cv_decl_null_works+set}" = set; then :
26319 $as_echo_n "(cached) " >&6
26321 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26322 /* end confdefs.h. */
26323 #include <stddef.h>
26324 int test[2 * (sizeof NULL == sizeof (void *)) -1];
26334 if ac_fn_c_try_compile
"$LINENO"; then :
26335 gl_cv_decl_null_works
=yes
26337 gl_cv_decl_null_works
=no
26339 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
26342 $as_echo "$gl_cv_decl_null_works" >&6; }
26343 if test $gl_cv_decl_null_works = no
; then
26348 if test -n "$STDDEF_H"; then
26349 GL_GENERATE_STDDEF_H_TRUE
=
26350 GL_GENERATE_STDDEF_H_FALSE
='#'
26352 GL_GENERATE_STDDEF_H_TRUE
='#'
26353 GL_GENERATE_STDDEF_H_FALSE
=
26356 if test -n "$STDDEF_H"; then
26365 if test $gl_cv_have_include_next = yes; then
26366 gl_cv_next_stddef_h
='<'stddef.h
'>'
26368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
26369 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
26370 if test "${gl_cv_next_stddef_h+set}" = set; then :
26371 $as_echo_n "(cached) " >&6
26374 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26375 /* end confdefs.h. */
26376 #include <stddef.h>
26380 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
26381 *) gl_absname_cpp
="$ac_cpp" ;;
26386 gl_dirsep_regex
='[/\\]'
26389 gl_dirsep_regex
='\/'
26392 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
26394 gl_header_literal_regex
=`echo 'stddef.h' \
26395 | sed -e "$gl_make_literal_regex_sed"`
26396 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
26397 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
26402 gl_cv_next_stddef_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
26403 sed -n "$gl_absolute_header_sed"`'"'
26407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
26408 $as_echo "$gl_cv_next_stddef_h" >&6; }
26410 NEXT_STDDEF_H
=$gl_cv_next_stddef_h
26412 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
26413 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
26414 gl_next_as_first_directive
='<'stddef.h
'>'
26416 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
26417 gl_next_as_first_directive
=$gl_cv_next_stddef_h
26419 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
=$gl_next_as_first_directive
26437 if test $gl_cv_have_include_next = yes; then
26438 gl_cv_next_stdio_h
='<'stdio.h
'>'
26440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
26441 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
26442 if test "${gl_cv_next_stdio_h+set}" = set; then :
26443 $as_echo_n "(cached) " >&6
26446 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26447 /* end confdefs.h. */
26452 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
26453 *) gl_absname_cpp
="$ac_cpp" ;;
26458 gl_dirsep_regex
='[/\\]'
26461 gl_dirsep_regex
='\/'
26464 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
26466 gl_header_literal_regex
=`echo 'stdio.h' \
26467 | sed -e "$gl_make_literal_regex_sed"`
26468 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
26469 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
26474 gl_cv_next_stdio_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
26475 sed -n "$gl_absolute_header_sed"`'"'
26479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
26480 $as_echo "$gl_cv_next_stdio_h" >&6; }
26482 NEXT_STDIO_H
=$gl_cv_next_stdio_h
26484 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
26485 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
26486 gl_next_as_first_directive
='<'stdio.h
'>'
26488 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
26489 gl_next_as_first_directive
=$gl_cv_next_stdio_h
26491 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
=$gl_next_as_first_directive
26500 cat >>confdefs.h
<<_ACEOF
26501 #define GNULIB_FSCANF 1
26508 cat >>confdefs.h
<<_ACEOF
26509 #define GNULIB_SCANF 1
26545 if test $gl_cv_have_include_next = yes; then
26546 gl_cv_next_stdlib_h
='<'stdlib.h
'>'
26548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
26549 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
26550 if test "${gl_cv_next_stdlib_h+set}" = set; then :
26551 $as_echo_n "(cached) " >&6
26554 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26555 /* end confdefs.h. */
26556 #include <stdlib.h>
26560 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
26561 *) gl_absname_cpp
="$ac_cpp" ;;
26566 gl_dirsep_regex
='[/\\]'
26569 gl_dirsep_regex
='\/'
26572 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
26574 gl_header_literal_regex
=`echo 'stdlib.h' \
26575 | sed -e "$gl_make_literal_regex_sed"`
26576 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
26577 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
26582 gl_cv_next_stdlib_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
26583 sed -n "$gl_absolute_header_sed"`'"'
26587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
26588 $as_echo "$gl_cv_next_stdlib_h" >&6; }
26590 NEXT_STDLIB_H
=$gl_cv_next_stdlib_h
26592 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
26593 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
26594 gl_next_as_first_directive
='<'stdlib.h
'>'
26596 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
26597 gl_next_as_first_directive
=$gl_cv_next_stdlib_h
26599 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
=$gl_next_as_first_directive
26609 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
26617 $as_echo "#define my_strftime nstrftime" >>confdefs.h
26629 if test "$ac_cv_have_decl_strtoimax" != yes; then
26630 HAVE_DECL_STRTOIMAX
=0
26633 if test $ac_cv_func_strtoimax = yes; then
26635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtoimax works" >&5
26636 $as_echo_n "checking whether strtoimax works... " >&6; }
26637 if test "${gl_cv_func_strtoimax+set}" = set; then :
26638 $as_echo_n "(cached) " >&6
26640 if test "$cross_compiling" = yes; then :
26642 # Guess no on AIX 5.
26643 aix5
*) gl_cv_func_strtoimax
="guessing no" ;;
26644 # Guess yes otherwise.
26645 *) gl_cv_func_strtoimax
="guessing yes" ;;
26649 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26650 /* end confdefs.h. */
26653 #include <string.h>
26654 #include <inttypes.h>
26657 if (sizeof (intmax_t) > sizeof (int))
26659 const char *s = "4294967295";
26663 res = strtoimax (s, &p, 10);
26664 if (p != s + strlen (s))
26668 if (res != (intmax_t) 65535 * (intmax_t) 65537)
26673 const char *s = "2147483647";
26677 res = strtoimax (s, &p, 10);
26678 if (p != s + strlen (s))
26682 if (res != 2147483647)
26689 if ac_fn_c_try_run
"$LINENO"; then :
26690 gl_cv_func_strtoimax
=yes
26692 gl_cv_func_strtoimax
=no
26694 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
26695 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
26700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strtoimax" >&5
26701 $as_echo "$gl_cv_func_strtoimax" >&6; }
26702 case "$gl_cv_func_strtoimax" in
26703 *no
) REPLACE_STRTOIMAX
=1 ;;
26709 if test $HAVE_STRTOIMAX = 0 ||
test $REPLACE_STRTOIMAX = 1; then
26718 gl_LIBOBJS
="$gl_LIBOBJS strtoimax.$ac_objext"
26721 ac_fn_c_check_decl
"$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
26722 if test "x$ac_cv_have_decl_strtoll" = x
""yes; then :
26728 cat >>confdefs.h
<<_ACEOF
26729 #define HAVE_DECL_STRTOLL $ac_have_decl
26750 if test "$ac_cv_have_decl_strtoumax" != yes; then
26751 HAVE_DECL_STRTOUMAX
=0
26754 if test $ac_cv_func_strtoumax = no
; then
26763 gl_LIBOBJS
="$gl_LIBOBJS strtoumax.$ac_objext"
26766 ac_fn_c_check_decl
"$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
26767 if test "x$ac_cv_have_decl_strtoull" = x
""yes; then :
26773 cat >>confdefs.h
<<_ACEOF
26774 #define HAVE_DECL_STRTOULL $ac_have_decl
26793 if test $ac_cv_func_symlink = no
; then
26796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symlink handles trailing slash correctly" >&5
26797 $as_echo_n "checking whether symlink handles trailing slash correctly... " >&6; }
26798 if test "${gl_cv_func_symlink_works+set}" = set; then :
26799 $as_echo_n "(cached) " >&6
26801 if test "$cross_compiling" = yes; then :
26803 # Guess yes on glibc systems.
26804 *-gnu*) gl_cv_func_symlink_works
="guessing yes" ;;
26805 # If we don't know, assume the worst.
26806 *) gl_cv_func_symlink_works
="guessing no" ;;
26810 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26811 /* end confdefs.h. */
26812 #include <unistd.h>
26818 if (!symlink ("a", "conftest.link/"))
26820 if (symlink ("conftest.f", "conftest.lnk2"))
26822 else if (!symlink ("a", "conftest.lnk2/"))
26830 if ac_fn_c_try_run
"$LINENO"; then :
26831 gl_cv_func_symlink_works
=yes
26833 gl_cv_func_symlink_works
=no
26835 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
26836 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
26839 rm -f conftest.f conftest.link conftest.lnk2
26841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_symlink_works" >&5
26842 $as_echo "$gl_cv_func_symlink_works" >&6; }
26843 case "$gl_cv_func_symlink_works" in
26851 if test $HAVE_SYMLINK = 0 ||
test $REPLACE_SYMLINK = 1; then
26860 gl_LIBOBJS
="$gl_LIBOBJS symlink.$ac_objext"
26877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/select.h> is self-contained" >&5
26878 $as_echo_n "checking whether <sys/select.h> is self-contained... " >&6; }
26879 if test "${gl_cv_header_sys_select_h_selfcontained+set}" = set; then :
26880 $as_echo_n "(cached) " >&6
26883 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26884 /* end confdefs.h. */
26885 #include <sys/select.h>
26894 if ac_fn_c_try_compile
"$LINENO"; then :
26895 gl_cv_header_sys_select_h_selfcontained
=yes
26897 gl_cv_header_sys_select_h_selfcontained
=no
26899 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26900 if test $gl_cv_header_sys_select_h_selfcontained = yes; then
26901 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26902 /* end confdefs.h. */
26903 #include <sys/select.h>
26907 int memset; int bzero;
26913 if ac_fn_c_try_compile
"$LINENO"; then :
26914 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26915 /* end confdefs.h. */
26916 #include <sys/select.h>
26922 #define memset nonexistent_memset
26927 void *memset (void *, int, unsigned long);
26929 #define bzero nonexistent_bzero
26934 void bzero (void *, unsigned long);
26943 if ac_fn_c_try_link
"$LINENO"; then :
26946 gl_cv_header_sys_select_h_selfcontained
=no
26948 rm -f core conftest.err conftest.
$ac_objext \
26949 conftest
$ac_exeext conftest.
$ac_ext
26952 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_selfcontained" >&5
26957 $as_echo "$gl_cv_header_sys_select_h_selfcontained" >&6; }
26967 if test $gl_cv_have_include_next = yes; then
26968 gl_cv_next_sys_select_h
='<'sys
/select.h
'>'
26970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/select.h>" >&5
26971 $as_echo_n "checking absolute name of <sys/select.h>... " >&6; }
26972 if test "${gl_cv_next_sys_select_h+set}" = set; then :
26973 $as_echo_n "(cached) " >&6
26976 if test $ac_cv_header_sys_select_h = yes; then
26979 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26980 /* end confdefs.h. */
26981 #include <sys/select.h>
26985 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
26986 *) gl_absname_cpp
="$ac_cpp" ;;
26991 gl_dirsep_regex
='[/\\]'
26994 gl_dirsep_regex
='\/'
26997 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
26999 gl_header_literal_regex
=`echo 'sys/select.h' \
27000 | sed -e "$gl_make_literal_regex_sed"`
27001 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
27002 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
27007 gl_cv_next_sys_select_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
27008 sed -n "$gl_absolute_header_sed"`'"'
27010 gl_cv_next_sys_select_h
='<'sys
/select.h
'>'
27015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_select_h" >&5
27016 $as_echo "$gl_cv_next_sys_select_h" >&6; }
27018 NEXT_SYS_SELECT_H
=$gl_cv_next_sys_select_h
27020 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
27021 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
27022 gl_next_as_first_directive
='<'sys
/select.h
'>'
27024 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
27025 gl_next_as_first_directive
=$gl_cv_next_sys_select_h
27027 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H
=$gl_next_as_first_directive
27032 if test $ac_cv_header_sys_select_h = yes; then
27033 HAVE_SYS_SELECT_H
=1
27035 HAVE_SYS_SELECT_H
=0
27042 if test $ac_cv_header_sys_socket_h != yes; then
27043 for ac_header
in winsock2.h
27045 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
27046 if test "x$ac_cv_header_winsock2_h" = x
""yes; then :
27047 cat >>confdefs.h
<<_ACEOF
27048 #define HAVE_WINSOCK2_H 1
27056 if test "$ac_cv_header_winsock2_h" = yes; then
27058 UNISTD_H_HAVE_WINSOCK2_H
=1
27059 SYS_IOCTL_H_HAVE_WINSOCK2_H
=1
27083 if test $gl_cv_have_include_next = yes; then
27084 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
27086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
27087 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
27088 if test "${gl_cv_next_sys_stat_h+set}" = set; then :
27089 $as_echo_n "(cached) " >&6
27092 if test $ac_cv_header_sys_stat_h = yes; then
27095 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27096 /* end confdefs.h. */
27097 #include <sys/stat.h>
27101 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
27102 *) gl_absname_cpp
="$ac_cpp" ;;
27107 gl_dirsep_regex
='[/\\]'
27110 gl_dirsep_regex
='\/'
27113 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
27115 gl_header_literal_regex
=`echo 'sys/stat.h' \
27116 | sed -e "$gl_make_literal_regex_sed"`
27117 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
27118 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
27123 gl_cv_next_sys_stat_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
27124 sed -n "$gl_absolute_header_sed"`'"'
27126 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
27131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
27132 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
27134 NEXT_SYS_STAT_H
=$gl_cv_next_sys_stat_h
27136 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
27137 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
27138 gl_next_as_first_directive
='<'sys
/stat.h
'>'
27140 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
27141 gl_next_as_first_directive
=$gl_cv_next_sys_stat_h
27143 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
=$gl_next_as_first_directive
27155 if test $WINDOWS_64_BIT_ST_SIZE = 1; then
27157 $as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h
27161 ac_fn_c_check_type
"$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
27162 #include <sys/stat.h>
27164 if test "x$ac_cv_type_nlink_t" = x
""yes; then :
27168 $as_echo "#define nlink_t int" >>confdefs.h
27189 ac_fn_c_check_decl
"$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "#include <time.h>
27191 if test "x$ac_cv_have_decl_localtime_r" = x
""yes; then :
27197 cat >>confdefs.h
<<_ACEOF
27198 #define HAVE_DECL_LOCALTIME_R $ac_have_decl
27201 if test $ac_cv_have_decl_localtime_r = no
; then
27202 HAVE_DECL_LOCALTIME_R
=0
27206 if test $ac_cv_func_localtime_r = yes; then
27208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
27209 $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
27210 if test "${gl_cv_time_r_posix+set}" = set; then :
27211 $as_echo_n "(cached) " >&6
27213 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27214 /* end confdefs.h. */
27219 /* We don't need to append 'restrict's to the argument types,
27220 even though the POSIX signature has the 'restrict's,
27221 since C99 says they can't affect type compatibility. */
27222 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
27224 /* Check the return type is a pointer.
27225 On HP-UX 10 it is 'int'. */
27226 *localtime_r (0, 0);
27232 if ac_fn_c_try_compile
"$LINENO"; then :
27233 gl_cv_time_r_posix
=yes
27235 gl_cv_time_r_posix
=no
27237 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
27241 $as_echo "$gl_cv_time_r_posix" >&6; }
27242 if test $gl_cv_time_r_posix = yes; then
27243 REPLACE_LOCALTIME_R
=0
27245 REPLACE_LOCALTIME_R
=1
27251 if test $HAVE_LOCALTIME_R = 0 ||
test $REPLACE_LOCALTIME_R = 1; then
27260 gl_LIBOBJS
="$gl_LIBOBJS time_r.$ac_objext"
27284 gl_saved_libs
=$LIBS
27285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing timer_settime" >&5
27286 $as_echo_n "checking for library containing timer_settime... " >&6; }
27287 if test "${ac_cv_search_timer_settime+set}" = set; then :
27288 $as_echo_n "(cached) " >&6
27290 ac_func_search_save_LIBS
=$LIBS
27291 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27292 /* end confdefs.h. */
27294 /* Override any GCC internal prototype to avoid an error.
27295 Use char because int might match the return type of a GCC
27296 builtin and then its argument prototype would still apply. */
27300 char timer_settime ();
27304 return timer_settime ();
27309 for ac_lib
in '' rt posix4
; do
27310 if test -z "$ac_lib"; then
27311 ac_res
="none required"
27314 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
27316 if ac_fn_c_try_link
"$LINENO"; then :
27317 ac_cv_search_timer_settime
=$ac_res
27319 rm -f core conftest.err conftest.
$ac_objext \
27321 if test "${ac_cv_search_timer_settime+set}" = set; then :
27325 if test "${ac_cv_search_timer_settime+set}" = set; then :
27328 ac_cv_search_timer_settime
=no
27330 rm conftest.
$ac_ext
27331 LIBS
=$ac_func_search_save_LIBS
27333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_timer_settime" >&5
27334 $as_echo "$ac_cv_search_timer_settime" >&6; }
27335 ac_res
=$ac_cv_search_timer_settime
27336 if test "$ac_res" != no
; then :
27337 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
27338 test "$ac_cv_search_timer_settime" = "none required" ||
27339 LIB_TIMER_TIME
=$ac_cv_search_timer_settime
27342 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27343 /* end confdefs.h. */
27345 #include <features.h>
27346 #ifdef __GNU_LIBRARY__
27347 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2) || (__GLIBC__ > 2)) \
27348 && !defined __UCLIBC__
27349 Thread emulation available
27354 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27355 $EGREP "Thread" >/dev
/null
2>&1; then :
27356 LIB_TIMER_TIME
="$LIB_TIMER_TIME $LIBMULTITHREAD"
27360 for ac_func
in timer_settime
27362 ac_fn_c_check_func
"$LINENO" "timer_settime" "ac_cv_func_timer_settime"
27363 if test "x$ac_cv_func_timer_settime" = x
""yes; then :
27364 cat >>confdefs.h
<<_ACEOF
27365 #define HAVE_TIMER_SETTIME 1
27371 LIBS
=$gl_saved_libs
27386 if test $gl_cv_have_include_next = yes; then
27387 gl_cv_next_unistd_h
='<'unistd.h
'>'
27389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
27390 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
27391 if test "${gl_cv_next_unistd_h+set}" = set; then :
27392 $as_echo_n "(cached) " >&6
27395 if test $ac_cv_header_unistd_h = yes; then
27398 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27399 /* end confdefs.h. */
27400 #include <unistd.h>
27404 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
27405 *) gl_absname_cpp
="$ac_cpp" ;;
27410 gl_dirsep_regex
='[/\\]'
27413 gl_dirsep_regex
='\/'
27416 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
27418 gl_header_literal_regex
=`echo 'unistd.h' \
27419 | sed -e "$gl_make_literal_regex_sed"`
27420 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
27421 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
27426 gl_cv_next_unistd_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
27427 sed -n "$gl_absolute_header_sed"`'"'
27429 gl_cv_next_unistd_h
='<'unistd.h
'>'
27434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
27435 $as_echo "$gl_cv_next_unistd_h" >&6; }
27437 NEXT_UNISTD_H
=$gl_cv_next_unistd_h
27439 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
27440 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
27441 gl_next_as_first_directive
='<'unistd.h
'>'
27443 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
27444 gl_next_as_first_directive
=$gl_cv_next_unistd_h
27446 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
=$gl_next_as_first_directive
27451 if test $ac_cv_header_unistd_h = yes; then
27467 if test $ac_cv_have_decl_unsetenv = no
; then
27468 HAVE_DECL_UNSETENV
=0
27470 for ac_func
in unsetenv
27472 ac_fn_c_check_func
"$LINENO" "unsetenv" "ac_cv_func_unsetenv"
27473 if test "x$ac_cv_func_unsetenv" = x
""yes; then :
27474 cat >>confdefs.h
<<_ACEOF
27475 #define HAVE_UNSETENV 1
27481 if test $ac_cv_func_unsetenv = no
; then
27485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsetenv() return type" >&5
27486 $as_echo_n "checking for unsetenv() return type... " >&6; }
27487 if test "${gt_cv_func_unsetenv_ret+set}" = set; then :
27488 $as_echo_n "(cached) " >&6
27490 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27491 /* end confdefs.h. */
27494 #define _BSD 1 /* unhide unsetenv declaration in OSF/1 5.1 <stdlib.h> */
27495 #include <stdlib.h>
27500 int unsetenv (const char *name);
27510 if ac_fn_c_try_compile
"$LINENO"; then :
27511 gt_cv_func_unsetenv_ret
='int'
27513 gt_cv_func_unsetenv_ret
='void'
27515 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_unsetenv_ret" >&5
27518 $as_echo "$gt_cv_func_unsetenv_ret" >&6; }
27519 if test $gt_cv_func_unsetenv_ret = 'void'; then
27521 $as_echo "#define VOID_UNSETENV 1" >>confdefs.h
27526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether unsetenv obeys POSIX" >&5
27527 $as_echo_n "checking whether unsetenv obeys POSIX... " >&6; }
27528 if test "${gl_cv_func_unsetenv_works+set}" = set; then :
27529 $as_echo_n "(cached) " >&6
27531 if test "$cross_compiling" = yes; then :
27533 # Guess yes on glibc systems.
27534 *-gnu*) gl_cv_func_unsetenv_works
="guessing yes" ;;
27535 # If we don't know, assume the worst.
27536 *) gl_cv_func_unsetenv_works
="guessing no" ;;
27540 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27541 /* end confdefs.h. */
27543 #include <stdlib.h>
27545 extern char **environ;
27551 char entry1[] = "a=1";
27552 char entry2[] = "b=2";
27553 char *env[] = { entry1, entry2, NULL };
27554 if (putenv ((char *) "a=1")) return 1;
27555 if (putenv (entry2)) return 2;
27558 if (getenv ("a")) return 3;
27559 if (!unsetenv ("") || errno != EINVAL) return 4;
27562 if (!getenv ("a")) return 5;
27565 if (getenv ("a")) return 6;
27571 if ac_fn_c_try_run
"$LINENO"; then :
27572 gl_cv_func_unsetenv_works
=yes
27574 gl_cv_func_unsetenv_works
=no
27576 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
27577 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
27581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_unsetenv_works" >&5
27582 $as_echo "$gl_cv_func_unsetenv_works" >&6; }
27583 case "$gl_cv_func_unsetenv_works" in
27591 if test $HAVE_UNSETENV = 0 ||
test $REPLACE_UNSETENV = 1; then
27600 gl_LIBOBJS
="$gl_LIBOBJS unsetenv.$ac_objext"
27624 if test $ac_cv_func_futimens = no
&& test $ac_cv_func_futimesat = yes; then
27625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether futimesat handles NULL file" >&5
27626 $as_echo_n "checking whether futimesat handles NULL file... " >&6; }
27627 if test "${gl_cv_func_futimesat_works+set}" = set; then :
27628 $as_echo_n "(cached) " >&6
27630 touch conftest.
file
27631 if test "$cross_compiling" = yes; then :
27633 # Guess yes on glibc systems.
27634 *-gnu*) gl_cv_func_futimesat_works
="guessing yes" ;;
27635 # If we don't know, assume the worst.
27636 *) gl_cv_func_futimesat_works
="guessing no" ;;
27640 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27641 /* end confdefs.h. */
27643 #include <stddef.h>
27644 #include <sys/times.h>
27650 int fd = open ("conftest.file", O_RDWR);
27651 if (fd < 0) return 1;
27652 if (futimesat (fd, NULL, NULL)) return 2;
27658 if ac_fn_c_try_run
"$LINENO"; then :
27659 gl_cv_func_futimesat_works
=yes
27661 gl_cv_func_futimesat_works
=no
27663 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
27664 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
27667 rm -f conftest.
file
27669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_futimesat_works" >&5
27670 $as_echo "$gl_cv_func_futimesat_works" >&6; }
27671 case "$gl_cv_func_futimesat_works" in
27675 $as_echo "#define FUTIMESAT_NULL_BUG 1" >>confdefs.h
27681 gl_gnulib_enabled_260941c0e5dc67ec9e87d1fb321c300b
=false
27682 gl_gnulib_enabled_dosname
=false
27683 gl_gnulib_enabled_euidaccess
=false
27684 gl_gnulib_enabled_getdtablesize
=false
27685 gl_gnulib_enabled_getgroups
=false
27686 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36
=false
27687 gl_gnulib_enabled_a9786850e999ae65a836a6041e8e5ed1
=false
27688 gl_gnulib_enabled_03e0aaad4cb89ca757653bd367a6ccb7
=false
27689 gl_gnulib_enabled_pathmax
=false
27690 gl_gnulib_enabled_6099e9737f757db36c47fa9d9f02e88c
=false
27691 gl_gnulib_enabled_secure_getenv
=false
27692 gl_gnulib_enabled_stat
=false
27693 gl_gnulib_enabled_strtoll
=false
27694 gl_gnulib_enabled_strtoull
=false
27695 gl_gnulib_enabled_tempname
=false
27696 gl_gnulib_enabled_682e609604ccaac6be382e4ee3a4eaec
=false
27697 func_gl_gnulib_m4code_260941c0e5dc67ec9e87d1fb321c300b
()
27699 if ! $gl_gnulib_enabled_260941c0e5dc67ec9e87d1fb321c300b; then
27708 gl_LIBOBJS
="$gl_LIBOBJS openat-proc.$ac_objext"
27710 gl_gnulib_enabled_260941c0e5dc67ec9e87d1fb321c300b
=true
27713 func_gl_gnulib_m4code_dosname
()
27715 if ! $gl_gnulib_enabled_dosname; then
27716 gl_gnulib_enabled_dosname
=true
27719 func_gl_gnulib_m4code_euidaccess
()
27721 if ! $gl_gnulib_enabled_euidaccess; then
27727 for ac_func
in euidaccess
27729 ac_fn_c_check_func
"$LINENO" "euidaccess" "ac_cv_func_euidaccess"
27730 if test "x$ac_cv_func_euidaccess" = x
""yes; then :
27731 cat >>confdefs.h
<<_ACEOF
27732 #define HAVE_EUIDACCESS 1
27738 if test $ac_cv_func_euidaccess = no
; then
27742 if test $HAVE_EUIDACCESS = 0; then
27751 gl_LIBOBJS
="$gl_LIBOBJS euidaccess.$ac_objext"
27755 for ac_header
in libgen.h
27757 ac_fn_c_check_header_mongrel
"$LINENO" "libgen.h" "ac_cv_header_libgen_h" "$ac_includes_default"
27758 if test "x$ac_cv_header_libgen_h" = x
""yes; then :
27759 cat >>confdefs.h
<<_ACEOF
27760 #define HAVE_LIBGEN_H 1
27768 ac_fn_c_check_func
"$LINENO" "getgroups" "ac_cv_func_getgroups"
27769 if test "x$ac_cv_func_getgroups" = x
""yes; then :
27774 # If we don't yet have getgroups, see if it's in -lbsd.
27775 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
27777 if test $ac_cv_func_getgroups = no
; then
27778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getgroups in -lbsd" >&5
27779 $as_echo_n "checking for getgroups in -lbsd... " >&6; }
27780 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then :
27781 $as_echo_n "(cached) " >&6
27783 ac_check_lib_save_LIBS
=$LIBS
27785 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27786 /* end confdefs.h. */
27788 /* Override any GCC internal prototype to avoid an error.
27789 Use char because int might match the return type of a GCC
27790 builtin and then its argument prototype would still apply. */
27798 return getgroups ();
27803 if ac_fn_c_try_link
"$LINENO"; then :
27804 ac_cv_lib_bsd_getgroups
=yes
27806 ac_cv_lib_bsd_getgroups
=no
27808 rm -f core conftest.err conftest.
$ac_objext \
27809 conftest
$ac_exeext conftest.
$ac_ext
27810 LIBS
=$ac_check_lib_save_LIBS
27812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_getgroups" >&5
27813 $as_echo "$ac_cv_lib_bsd_getgroups" >&6; }
27814 if test "x$ac_cv_lib_bsd_getgroups" = x
""yes; then :
27815 GETGROUPS_LIB
=-lbsd
27820 # Run the program to test the functionality of the system-supplied
27821 # getgroups function only if there is such a function.
27822 if test $ac_cv_func_getgroups = yes; then
27823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getgroups" >&5
27824 $as_echo_n "checking for working getgroups... " >&6; }
27825 if test "${ac_cv_func_getgroups_works+set}" = set; then :
27826 $as_echo_n "(cached) " >&6
27828 if test "$cross_compiling" = yes; then :
27829 case "$host_os" in # ((
27830 # Guess yes on glibc systems.
27831 *-gnu*) ac_cv_func_getgroups_works
="guessing yes" ;;
27832 # If we don't know, assume the worst.
27833 *) ac_cv_func_getgroups_works
="guessing no" ;;
27837 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27838 /* end confdefs.h. */
27839 $ac_includes_default
27843 /* On Ultrix 4.3, getgroups (0, 0) always fails. */
27844 return getgroups (0, 0) == -1;
27850 if ac_fn_c_try_run
"$LINENO"; then :
27851 ac_cv_func_getgroups_works
=yes
27853 ac_cv_func_getgroups_works
=no
27855 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
27856 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
27861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getgroups_works" >&5
27862 $as_echo "$ac_cv_func_getgroups_works" >&6; }
27864 ac_cv_func_getgroups_works
=no
27866 case "$ac_cv_func_getgroups_works" in
27869 $as_echo "#define HAVE_GETGROUPS 1" >>confdefs.h
27876 # Solaris 9 and 10 need -lgen to get the eaccess function.
27877 # Save and restore LIBS so -lgen isn't added to it. Otherwise, *all*
27878 # programs in the package would end up linked with that potentially-shared
27879 # library, inducing unnecessary run-time overhead.
27882 gl_saved_libs
=$LIBS
27883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing eaccess" >&5
27884 $as_echo_n "checking for library containing eaccess... " >&6; }
27885 if test "${ac_cv_search_eaccess+set}" = set; then :
27886 $as_echo_n "(cached) " >&6
27888 ac_func_search_save_LIBS
=$LIBS
27889 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27890 /* end confdefs.h. */
27892 /* Override any GCC internal prototype to avoid an error.
27893 Use char because int might match the return type of a GCC
27894 builtin and then its argument prototype would still apply. */
27907 for ac_lib
in '' gen
; do
27908 if test -z "$ac_lib"; then
27909 ac_res
="none required"
27912 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
27914 if ac_fn_c_try_link
"$LINENO"; then :
27915 ac_cv_search_eaccess
=$ac_res
27917 rm -f core conftest.err conftest.
$ac_objext \
27919 if test "${ac_cv_search_eaccess+set}" = set; then :
27923 if test "${ac_cv_search_eaccess+set}" = set; then :
27926 ac_cv_search_eaccess
=no
27928 rm conftest.
$ac_ext
27929 LIBS
=$ac_func_search_save_LIBS
27931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_eaccess" >&5
27932 $as_echo "$ac_cv_search_eaccess" >&6; }
27933 ac_res
=$ac_cv_search_eaccess
27934 if test "$ac_res" != no
; then :
27935 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
27936 test "$ac_cv_search_eaccess" = "none required" ||
27937 LIB_EACCESS
=$ac_cv_search_eaccess
27940 for ac_func
in eaccess
27942 ac_fn_c_check_func
"$LINENO" "eaccess" "ac_cv_func_eaccess"
27943 if test "x$ac_cv_func_eaccess" = x
""yes; then :
27944 cat >>confdefs.h
<<_ACEOF
27945 #define HAVE_EACCESS 1
27951 LIBS
=$gl_saved_libs
27959 GNULIB_EUIDACCESS
=1
27965 gl_gnulib_enabled_euidaccess
=true
27966 if test $HAVE_EUIDACCESS = 0; then
27967 func_gl_gnulib_m4code_a9786850e999ae65a836a6041e8e5ed1
27969 func_gl_gnulib_m4code_6099e9737f757db36c47fa9d9f02e88c
27970 if test $HAVE_EUIDACCESS = 0; then
27971 func_gl_gnulib_m4code_stat
27975 func_gl_gnulib_m4code_getdtablesize
()
27977 if ! $gl_gnulib_enabled_getdtablesize; then
27981 if test $ac_cv_func_getdtablesize != yes; then
27982 HAVE_GETDTABLESIZE
=0
27985 if test $HAVE_GETDTABLESIZE = 0; then
27994 gl_LIBOBJS
="$gl_LIBOBJS getdtablesize.$ac_objext"
28003 GNULIB_GETDTABLESIZE
=1
28009 gl_gnulib_enabled_getdtablesize
=true
28012 func_gl_gnulib_m4code_getgroups
()
28014 if ! $gl_gnulib_enabled_getgroups; then
28020 ac_fn_c_check_func
"$LINENO" "getgroups" "ac_cv_func_getgroups"
28021 if test "x$ac_cv_func_getgroups" = x
""yes; then :
28026 # If we don't yet have getgroups, see if it's in -lbsd.
28027 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
28029 if test $ac_cv_func_getgroups = no
; then
28030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getgroups in -lbsd" >&5
28031 $as_echo_n "checking for getgroups in -lbsd... " >&6; }
28032 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then :
28033 $as_echo_n "(cached) " >&6
28035 ac_check_lib_save_LIBS
=$LIBS
28037 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28038 /* end confdefs.h. */
28040 /* Override any GCC internal prototype to avoid an error.
28041 Use char because int might match the return type of a GCC
28042 builtin and then its argument prototype would still apply. */
28050 return getgroups ();
28055 if ac_fn_c_try_link
"$LINENO"; then :
28056 ac_cv_lib_bsd_getgroups
=yes
28058 ac_cv_lib_bsd_getgroups
=no
28060 rm -f core conftest.err conftest.
$ac_objext \
28061 conftest
$ac_exeext conftest.
$ac_ext
28062 LIBS
=$ac_check_lib_save_LIBS
28064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_getgroups" >&5
28065 $as_echo "$ac_cv_lib_bsd_getgroups" >&6; }
28066 if test "x$ac_cv_lib_bsd_getgroups" = x
""yes; then :
28067 GETGROUPS_LIB
=-lbsd
28072 # Run the program to test the functionality of the system-supplied
28073 # getgroups function only if there is such a function.
28074 if test $ac_cv_func_getgroups = yes; then
28075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getgroups" >&5
28076 $as_echo_n "checking for working getgroups... " >&6; }
28077 if test "${ac_cv_func_getgroups_works+set}" = set; then :
28078 $as_echo_n "(cached) " >&6
28080 if test "$cross_compiling" = yes; then :
28081 case "$host_os" in # ((
28082 # Guess yes on glibc systems.
28083 *-gnu*) ac_cv_func_getgroups_works
="guessing yes" ;;
28084 # If we don't know, assume the worst.
28085 *) ac_cv_func_getgroups_works
="guessing no" ;;
28089 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28090 /* end confdefs.h. */
28091 $ac_includes_default
28095 /* On Ultrix 4.3, getgroups (0, 0) always fails. */
28096 return getgroups (0, 0) == -1;
28102 if ac_fn_c_try_run
"$LINENO"; then :
28103 ac_cv_func_getgroups_works
=yes
28105 ac_cv_func_getgroups_works
=no
28107 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
28108 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
28113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getgroups_works" >&5
28114 $as_echo "$ac_cv_func_getgroups_works" >&6; }
28116 ac_cv_func_getgroups_works
=no
28118 case "$ac_cv_func_getgroups_works" in
28121 $as_echo "#define HAVE_GETGROUPS 1" >>confdefs.h
28127 if test $ac_cv_func_getgroups != yes; then
28130 if test "$ac_cv_type_getgroups" != gid_t \
28131 ||
{ case "$ac_cv_func_getgroups_works" in
28136 REPLACE_GETGROUPS
=1
28138 $as_echo "#define GETGROUPS_ZERO_BUG 1" >>confdefs.h
28141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getgroups handles negative values" >&5
28142 $as_echo_n "checking whether getgroups handles negative values... " >&6; }
28143 if test "${gl_cv_func_getgroups_works+set}" = set; then :
28144 $as_echo_n "(cached) " >&6
28146 if test "$cross_compiling" = yes; then :
28148 # Guess yes on glibc systems.
28149 *-gnu*) gl_cv_func_getgroups_works
="guessing yes" ;;
28150 # If we don't know, assume the worst.
28151 *) gl_cv_func_getgroups_works
="guessing no" ;;
28155 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28156 /* end confdefs.h. */
28157 $ac_includes_default
28161 int size = getgroups (0, 0);
28162 gid_t *list = malloc (size * sizeof *list);
28163 return getgroups (-1, list) != -1;
28168 if ac_fn_c_try_run
"$LINENO"; then :
28169 gl_cv_func_getgroups_works
=yes
28171 gl_cv_func_getgroups_works
=no
28173 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
28174 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
28178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getgroups_works" >&5
28179 $as_echo "$gl_cv_func_getgroups_works" >&6; }
28180 case "$gl_cv_func_getgroups_works" in
28182 *) REPLACE_GETGROUPS
=1 ;;
28186 test -n "$GETGROUPS_LIB" && LIBS
="$GETGROUPS_LIB $LIBS"
28188 if test $HAVE_GETGROUPS = 0 ||
test $REPLACE_GETGROUPS = 1; then
28197 gl_LIBOBJS
="$gl_LIBOBJS getgroups.$ac_objext"
28211 gl_gnulib_enabled_getgroups
=true
28214 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36
()
28216 if ! $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
28219 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36
=true
28222 func_gl_gnulib_m4code_a9786850e999ae65a836a6041e8e5ed1
()
28224 if ! $gl_gnulib_enabled_a9786850e999ae65a836a6041e8e5ed1; then
28230 ac_fn_c_check_func
"$LINENO" "group_member" "ac_cv_func_group_member"
28231 if test "x$ac_cv_func_group_member" = x
""yes; then :
28235 HAVE_GROUP_MEMBER
=0
28240 if test $HAVE_GROUP_MEMBER = 0; then
28249 gl_LIBOBJS
="$gl_LIBOBJS group-member.$ac_objext"
28260 GNULIB_GROUP_MEMBER
=1
28266 gl_gnulib_enabled_a9786850e999ae65a836a6041e8e5ed1
=true
28267 if test $HAVE_GROUP_MEMBER = 0; then
28268 func_gl_gnulib_m4code_getgroups
28270 if test $HAVE_GROUP_MEMBER = 0; then
28271 func_gl_gnulib_m4code_682e609604ccaac6be382e4ee3a4eaec
28275 func_gl_gnulib_m4code_03e0aaad4cb89ca757653bd367a6ccb7
()
28277 if ! $gl_gnulib_enabled_03e0aaad4cb89ca757653bd367a6ccb7; then
28278 gl_gnulib_enabled_03e0aaad4cb89ca757653bd367a6ccb7
=true
28281 func_gl_gnulib_m4code_pathmax
()
28283 if ! $gl_gnulib_enabled_pathmax; then
28287 gl_gnulib_enabled_pathmax
=true
28290 func_gl_gnulib_m4code_6099e9737f757db36c47fa9d9f02e88c
()
28292 if ! $gl_gnulib_enabled_6099e9737f757db36c47fa9d9f02e88c; then
28293 gl_gnulib_enabled_6099e9737f757db36c47fa9d9f02e88c
=true
28296 func_gl_gnulib_m4code_secure_getenv
()
28298 if ! $gl_gnulib_enabled_secure_getenv; then
28304 if test $ac_cv_func_secure_getenv = no
; then
28305 HAVE_SECURE_GETENV
=0
28308 if test $HAVE_SECURE_GETENV = 0; then
28317 gl_LIBOBJS
="$gl_LIBOBJS secure_getenv.$ac_objext"
28320 for ac_func
in __secure_getenv
28322 ac_fn_c_check_func
"$LINENO" "__secure_getenv" "ac_cv_func___secure_getenv"
28323 if test "x$ac_cv_func___secure_getenv" = x
""yes; then :
28324 cat >>confdefs.h
<<_ACEOF
28325 #define HAVE___SECURE_GETENV 1
28331 if test $ac_cv_func___secure_getenv = no
; then
28332 for ac_func
in issetugid
28334 ac_fn_c_check_func
"$LINENO" "issetugid" "ac_cv_func_issetugid"
28335 if test "x$ac_cv_func_issetugid" = x
""yes; then :
28336 cat >>confdefs.h
<<_ACEOF
28337 #define HAVE_ISSETUGID 1
28351 GNULIB_SECURE_GETENV
=1
28357 gl_gnulib_enabled_secure_getenv
=true
28360 func_gl_gnulib_m4code_stat
()
28362 if ! $gl_gnulib_enabled_stat; then
28366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
28367 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
28368 if test "${gl_cv_func_stat_dir_slash+set}" = set; then :
28369 $as_echo_n "(cached) " >&6
28371 if test "$cross_compiling" = yes; then :
28373 mingw
*) gl_cv_func_stat_dir_slash
="guessing no";;
28374 *) gl_cv_func_stat_dir_slash
="guessing yes";;
28377 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28378 /* end confdefs.h. */
28379 #include <sys/stat.h>
28384 struct stat st; return stat (".", &st) != stat ("./", &st);
28389 if ac_fn_c_try_run
"$LINENO"; then :
28390 gl_cv_func_stat_dir_slash
=yes
28392 gl_cv_func_stat_dir_slash
=no
28394 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
28395 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
28399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
28400 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
28401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
28402 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
28403 if test "${gl_cv_func_stat_file_slash+set}" = set; then :
28404 $as_echo_n "(cached) " >&6
28407 # Assume that if we have lstat, we can also check symlinks.
28408 if test $ac_cv_func_lstat = yes; then
28409 ln -s conftest.tmp conftest.lnk
28411 if test "$cross_compiling" = yes; then :
28413 # Guess yes on glibc systems.
28414 *-gnu*) gl_cv_func_stat_file_slash
="guessing yes" ;;
28415 # If we don't know, assume the worst.
28416 *) gl_cv_func_stat_file_slash
="guessing no" ;;
28420 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28421 /* end confdefs.h. */
28422 #include <sys/stat.h>
28429 if (!stat ("conftest.tmp/", &st))
28432 if (!stat ("conftest.lnk/", &st))
28441 if ac_fn_c_try_run
"$LINENO"; then :
28442 gl_cv_func_stat_file_slash
=yes
28444 gl_cv_func_stat_file_slash
=no
28446 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
28447 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
28450 rm -f conftest.tmp conftest.lnk
28452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
28453 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
28454 case $gl_cv_func_stat_dir_slash in
28455 *no
) REPLACE_STAT
=1
28457 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
28460 case $gl_cv_func_stat_file_slash in
28461 *no
) REPLACE_STAT
=1
28463 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
28467 if test $REPLACE_STAT = 1; then
28476 gl_LIBOBJS
="$gl_LIBOBJS stat.$ac_objext"
28491 gl_gnulib_enabled_stat
=true
28492 if test $REPLACE_STAT = 1; then
28493 func_gl_gnulib_m4code_dosname
28495 if test $REPLACE_STAT = 1; then
28496 func_gl_gnulib_m4code_pathmax
28500 func_gl_gnulib_m4code_strtoll
()
28502 if ! $gl_gnulib_enabled_strtoll; then
28506 if test "$ac_cv_type_long_long_int" = yes; then
28507 for ac_func
in strtoll
28509 ac_fn_c_check_func
"$LINENO" "strtoll" "ac_cv_func_strtoll"
28510 if test "x$ac_cv_func_strtoll" = x
""yes; then :
28511 cat >>confdefs.h
<<_ACEOF
28512 #define HAVE_STRTOLL 1
28518 if test $ac_cv_func_strtoll = no
; then
28523 if test $HAVE_STRTOLL = 0; then
28532 gl_LIBOBJS
="$gl_LIBOBJS strtoll.$ac_objext"
28549 gl_gnulib_enabled_strtoll
=true
28552 func_gl_gnulib_m4code_strtoull
()
28554 if ! $gl_gnulib_enabled_strtoull; then
28558 if test "$ac_cv_type_unsigned_long_long_int" = yes; then
28559 for ac_func
in strtoull
28561 ac_fn_c_check_func
"$LINENO" "strtoull" "ac_cv_func_strtoull"
28562 if test "x$ac_cv_func_strtoull" = x
""yes; then :
28563 cat >>confdefs.h
<<_ACEOF
28564 #define HAVE_STRTOULL 1
28570 if test $ac_cv_func_strtoull = no
; then
28575 if test $HAVE_STRTOULL = 0; then
28584 gl_LIBOBJS
="$gl_LIBOBJS strtoull.$ac_objext"
28601 gl_gnulib_enabled_strtoull
=true
28604 func_gl_gnulib_m4code_tempname
()
28606 if ! $gl_gnulib_enabled_tempname; then
28612 gl_gnulib_enabled_tempname
=true
28613 func_gl_gnulib_m4code_secure_getenv
28616 func_gl_gnulib_m4code_682e609604ccaac6be382e4ee3a4eaec
()
28618 if ! $gl_gnulib_enabled_682e609604ccaac6be382e4ee3a4eaec; then
28619 gl_gnulib_enabled_682e609604ccaac6be382e4ee3a4eaec
=true
28622 if test $HAVE_FACCESSAT = 0; then
28623 func_gl_gnulib_m4code_260941c0e5dc67ec9e87d1fb321c300b
28625 if test $HAVE_FACCESSAT = 0; then
28626 func_gl_gnulib_m4code_dosname
28628 if test $HAVE_FACCESSAT = 0; then
28629 func_gl_gnulib_m4code_euidaccess
28631 if test $HAVE_FACCESSAT = 0; then
28632 func_gl_gnulib_m4code_03e0aaad4cb89ca757653bd367a6ccb7
28634 if test $HAVE_FCNTL = 0 ||
test $REPLACE_FCNTL = 1; then
28635 func_gl_gnulib_m4code_getdtablesize
28637 if test $HAVE_FDOPENDIR = 0; then
28638 func_gl_gnulib_m4code_260941c0e5dc67ec9e87d1fb321c300b
28640 if test $HAVE_FSTATAT = 0 ||
test $REPLACE_FSTATAT = 1; then
28641 func_gl_gnulib_m4code_260941c0e5dc67ec9e87d1fb321c300b
28643 if test $HAVE_FSTATAT = 0 ||
test $REPLACE_FSTATAT = 1; then
28644 func_gl_gnulib_m4code_dosname
28646 if test $HAVE_FSTATAT = 0 ||
test $REPLACE_FSTATAT = 1; then
28647 func_gl_gnulib_m4code_03e0aaad4cb89ca757653bd367a6ccb7
28649 if test $REPLACE_GETOPT = 1; then
28650 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36
28652 if test $REPLACE_LSTAT = 1; then
28653 func_gl_gnulib_m4code_dosname
28655 if test $REPLACE_LSTAT = 1; then
28656 func_gl_gnulib_m4code_stat
28658 if test $HAVE_MKOSTEMP = 0; then
28659 func_gl_gnulib_m4code_tempname
28661 if test $HAVE_READLINK = 0 ||
test $REPLACE_READLINK = 1; then
28662 func_gl_gnulib_m4code_stat
28664 if test $HAVE_READLINKAT = 0; then
28665 func_gl_gnulib_m4code_260941c0e5dc67ec9e87d1fb321c300b
28667 if test $HAVE_READLINKAT = 0; then
28668 func_gl_gnulib_m4code_dosname
28670 if test $HAVE_READLINKAT = 0; then
28671 func_gl_gnulib_m4code_03e0aaad4cb89ca757653bd367a6ccb7
28673 if { test $HAVE_STRTOIMAX = 0 ||
test $REPLACE_STRTOIMAX = 1; } && test $ac_cv_type_long_long_int = yes; then
28674 func_gl_gnulib_m4code_strtoll
28676 if test $ac_cv_func_strtoumax = no
&& test $ac_cv_type_unsigned_long_long_int = yes; then
28677 func_gl_gnulib_m4code_strtoull
28680 if $gl_gnulib_enabled_260941c0e5dc67ec9e87d1fb321c300b; then
28681 gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_TRUE
=
28682 gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_FALSE
='#'
28684 gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_TRUE
='#'
28685 gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_FALSE
=
28688 if $gl_gnulib_enabled_dosname; then
28689 gl_GNULIB_ENABLED_dosname_TRUE
=
28690 gl_GNULIB_ENABLED_dosname_FALSE
='#'
28692 gl_GNULIB_ENABLED_dosname_TRUE
='#'
28693 gl_GNULIB_ENABLED_dosname_FALSE
=
28696 if $gl_gnulib_enabled_euidaccess; then
28697 gl_GNULIB_ENABLED_euidaccess_TRUE
=
28698 gl_GNULIB_ENABLED_euidaccess_FALSE
='#'
28700 gl_GNULIB_ENABLED_euidaccess_TRUE
='#'
28701 gl_GNULIB_ENABLED_euidaccess_FALSE
=
28704 if $gl_gnulib_enabled_getdtablesize; then
28705 gl_GNULIB_ENABLED_getdtablesize_TRUE
=
28706 gl_GNULIB_ENABLED_getdtablesize_FALSE
='#'
28708 gl_GNULIB_ENABLED_getdtablesize_TRUE
='#'
28709 gl_GNULIB_ENABLED_getdtablesize_FALSE
=
28712 if $gl_gnulib_enabled_getgroups; then
28713 gl_GNULIB_ENABLED_getgroups_TRUE
=
28714 gl_GNULIB_ENABLED_getgroups_FALSE
='#'
28716 gl_GNULIB_ENABLED_getgroups_TRUE
='#'
28717 gl_GNULIB_ENABLED_getgroups_FALSE
=
28720 if $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
28721 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE
=
28722 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE
='#'
28724 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE
='#'
28725 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE
=
28728 if $gl_gnulib_enabled_a9786850e999ae65a836a6041e8e5ed1; then
28729 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_TRUE
=
28730 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_FALSE
='#'
28732 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_TRUE
='#'
28733 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_FALSE
=
28736 if $gl_gnulib_enabled_03e0aaad4cb89ca757653bd367a6ccb7; then
28737 gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_TRUE
=
28738 gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_FALSE
='#'
28740 gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_TRUE
='#'
28741 gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_FALSE
=
28744 if $gl_gnulib_enabled_pathmax; then
28745 gl_GNULIB_ENABLED_pathmax_TRUE
=
28746 gl_GNULIB_ENABLED_pathmax_FALSE
='#'
28748 gl_GNULIB_ENABLED_pathmax_TRUE
='#'
28749 gl_GNULIB_ENABLED_pathmax_FALSE
=
28752 if $gl_gnulib_enabled_6099e9737f757db36c47fa9d9f02e88c; then
28753 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_TRUE
=
28754 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_FALSE
='#'
28756 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_TRUE
='#'
28757 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_FALSE
=
28760 if $gl_gnulib_enabled_secure_getenv; then
28761 gl_GNULIB_ENABLED_secure_getenv_TRUE
=
28762 gl_GNULIB_ENABLED_secure_getenv_FALSE
='#'
28764 gl_GNULIB_ENABLED_secure_getenv_TRUE
='#'
28765 gl_GNULIB_ENABLED_secure_getenv_FALSE
=
28768 if $gl_gnulib_enabled_stat; then
28769 gl_GNULIB_ENABLED_stat_TRUE
=
28770 gl_GNULIB_ENABLED_stat_FALSE
='#'
28772 gl_GNULIB_ENABLED_stat_TRUE
='#'
28773 gl_GNULIB_ENABLED_stat_FALSE
=
28776 if $gl_gnulib_enabled_strtoll; then
28777 gl_GNULIB_ENABLED_strtoll_TRUE
=
28778 gl_GNULIB_ENABLED_strtoll_FALSE
='#'
28780 gl_GNULIB_ENABLED_strtoll_TRUE
='#'
28781 gl_GNULIB_ENABLED_strtoll_FALSE
=
28784 if $gl_gnulib_enabled_strtoull; then
28785 gl_GNULIB_ENABLED_strtoull_TRUE
=
28786 gl_GNULIB_ENABLED_strtoull_FALSE
='#'
28788 gl_GNULIB_ENABLED_strtoull_TRUE
='#'
28789 gl_GNULIB_ENABLED_strtoull_FALSE
=
28792 if $gl_gnulib_enabled_tempname; then
28793 gl_GNULIB_ENABLED_tempname_TRUE
=
28794 gl_GNULIB_ENABLED_tempname_FALSE
='#'
28796 gl_GNULIB_ENABLED_tempname_TRUE
='#'
28797 gl_GNULIB_ENABLED_tempname_FALSE
=
28800 if $gl_gnulib_enabled_682e609604ccaac6be382e4ee3a4eaec; then
28801 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_TRUE
=
28802 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_FALSE
='#'
28804 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_TRUE
='#'
28805 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_FALSE
=
28808 # End of code from modules
28829 gl_source_base
='tests'
28830 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
28832 gl_module_indicator_condition
=$gltests_WITNESS
28843 LIBGNU_LIBDEPS
="$gl_libdeps"
28845 LIBGNU_LTLIBDEPS
="$gl_ltlibdeps"
28848 CFLAGS
=$SAVE_CFLAGS
28851 if test "${opsys}" = "mingw32"; then
28852 CPPFLAGS
="$CPPFLAGS -DUSE_CRT_DLL=1 -I $srcdir/nt/inc"
28853 # Remove unneeded switches from the value of CC that goes to Makefiles
28854 CC
=`echo $CC | sed -e "s,$GCC_TEST_OPTIONS,,"`
28858 aix4-2
) LD_SWITCH_SYSTEM_TEMACS
="-Wl,-bnodelcsect" ;;
28861 ## The -headerpad option tells ld (see man page) to leave room at the
28862 ## end of the header for adding load commands. Needed for dumping.
28863 ## 0x690 is the total size of 30 segment load commands (at 56
28864 ## each); under Cocoa 31 commands are required.
28865 if test "$HAVE_NS" = "yes"; then
28866 libs_nsgui
="-framework AppKit"
28867 if test "$NS_IMPL_COCOA" = "yes"; then
28868 libs_nsgui
="$libs_nsgui -framework IOKit"
28870 headerpad_extra
=6C8
28873 headerpad_extra
=690
28875 LD_SWITCH_SYSTEM_TEMACS
="-fno-pie -prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
28877 ## This is here because src/Makefile.in did some extra fiddling around
28878 ## with LD_SWITCH_SYSTEM. It seems cleaner to put this in
28879 ## LD_SWITCH_SYSTEM_TEMACS instead,
28880 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
28881 LD_SWITCH_SYSTEM_TEMACS
="-X $LD_SWITCH_SYSTEM_TEMACS"
28884 ## LD_SWITCH_X_SITE_RPATH is a -rpath option saying where to
28885 ## find X at run-time.
28886 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at the
28887 ## point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_RPATH
28888 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
28889 ## had different values in configure (in ac_link) and src/Makefile.in.
28890 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
28891 gnu
*) LD_SWITCH_SYSTEM_TEMACS
="\$(LD_SWITCH_X_SITE_RPATH)" ;;
28894 ## MinGW64 does not prepend an underscore to symbols, so we must
28895 ## pass a different -entry switch to linker. FIXME: It is better
28896 ## to make the entry points the same by changing unexw32.c.
28897 case "$canonical" in
28898 x86_64-
*-*) LD_SWITCH_SYSTEM_TEMACS
="-Wl,-stack,0x00800000 -Wl,-heap,0x00100000 -Wl,-image-base,0x01000000 -Wl,-entry,_start -Wl,-Map,./temacs.map" ;;
28899 *) LD_SWITCH_SYSTEM_TEMACS
="-Wl,-stack,0x00800000 -Wl,-heap,0x00100000 -Wl,-image-base,0x01000000 -Wl,-entry,__start -Wl,-Map,./temacs.map" ;;
28903 openbsd
) LD_SWITCH_SYSTEM_TEMACS
='-nopie' ;;
28905 *) LD_SWITCH_SYSTEM_TEMACS
= ;;
28908 if test x
$ac_enable_profiling != x
; then
28910 *freebsd | gnu-linux
) ;;
28911 *) LD_SWITCH_SYSTEM_TEMACS
="$LD_SWITCH_SYSTEM_TEMACS -pg" ;;
28917 ## MinGW-specific post-link processing of temacs.
28918 TEMACS_POST_LINK
=":"
28921 if test "${opsys}" = "mingw32"; then
28922 TEMACS_POST_LINK
="\$(MINGW_TEMACS_POST_LINK)"
28923 ADDSECTION
="../nt/addsection\$(EXEEXT)"
28924 ## Preload heap size of temacs.exe in MB.
28925 case "$canonical" in
28926 x86_64-
*-*) EMACS_HEAPSIZE
=42 ;;
28927 *) EMACS_HEAPSIZE
=27 ;;
28935 ## Common for all window systems
28936 if test "$window_system" != "none"; then
28938 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
28940 WINDOW_SYSTEM_OBJ
="fontset.o fringe.o image.o"
28947 #### Report on what we decided to do.
28948 #### Report GTK as a toolkit, even if it doesn't use Xt.
28949 #### It makes printing result more understandable as using GTK sets
28950 #### toolkit_scroll_bars to yes by default.
28951 if test "${HAVE_GTK}" = "yes"; then
28952 USE_X_TOOLKIT
="$USE_GTK_TOOLKIT"
28955 if test $USE_ACL -ne 0; then
28956 acl_summary
="yes $LIB_ACL"
28962 Configured for \`${canonical}'.
28964 Where should the build process find the source code? ${srcdir}
28965 What compiler should emacs be built with? ${CC} ${CFLAGS}
28966 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
28967 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
28968 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
28969 What window system should Emacs use? ${window_system}
28970 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
28972 if test -n "${x_includes}"; then
28973 echo " Where do we find X Windows header files? ${x_includes}"
28975 echo " Where do we find X Windows header files? Standard dirs"
28977 if test -n "${x_libraries}"; then
28978 echo " Where do we find X Windows libraries? ${x_libraries}"
28980 echo " Where do we find X Windows libraries? Standard dirs"
28983 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
28984 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
28985 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
28986 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
28987 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
28988 echo " Does Emacs use -lpng? ${HAVE_PNG}"
28989 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
28990 echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
28992 echo " Does Emacs support sound? ${HAVE_SOUND}"
28994 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
28995 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
28996 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
28997 echo " Does Emacs use GSettings? ${HAVE_GSETTINGS}"
28998 echo " Does Emacs use a file notification library? ${NOTIFY_SUMMARY}"
28999 echo " Does Emacs use access control lists? ${acl_summary}"
29000 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
29001 echo " Does Emacs use -lgnutls? ${HAVE_GNUTLS}"
29002 echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}"
29004 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
29005 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
29006 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
29007 echo " Does Emacs use -lxft? ${HAVE_XFT}"
29008 echo " Does Emacs directly use zlib? ${HAVE_ZLIB}"
29010 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
29013 if test -n "${EMACSDATA}"; then
29014 echo " Environment variable EMACSDATA set to: $EMACSDATA"
29016 if test -n "${EMACSDOC}"; then
29017 echo " Environment variable EMACSDOC set to: $EMACSDOC"
29022 if test "$HAVE_NS" = "yes"; then
29024 echo "You must run \"${MAKE-make} install\" in order to test the built application.
29025 The installed application will go to nextstep/Emacs.app and can be
29026 run or moved from there."
29027 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
29028 echo "The application will be fully self-contained."
29030 echo "The lisp resources for the application will be installed under ${prefix}.
29031 You may need to run \"${MAKE-make} install\" with sudo. The application will fail
29032 to run if these resources are not installed."
29037 if test "${opsys}" = "cygwin"; then
29039 1.5.
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: building Emacs on Cygwin 1.5 is not supported." >&5
29040 $as_echo "$as_me: WARNING: building Emacs on Cygwin 1.5 is not supported." >&2;}
29046 # Remove any trailing slashes in these variables.
29047 test "${prefix}" != NONE
&&
29048 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
29049 test "${exec_prefix}" != NONE
&&
29050 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
29052 if test "$HAVE_NS" = "yes"; then
29053 if test "$NS_IMPL_GNUSTEP" = yes; then
29054 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"
29057 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"
29062 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 nt/Makefile"
29064 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 nt/Makefile"
29067 opt_makefile
=test
/automated
/Makefile
29069 if test -f "$srcdir/$opt_makefile.in"; then
29070 SUBDIR_MAKEFILES
="$SUBDIR_MAKEFILES $opt_makefile"
29071 ac_config_files
="$ac_config_files test/automated/Makefile"
29076 opt_makefile
=admin
/unidata
/Makefile
29078 if test -f "$srcdir/$opt_makefile.in"; then
29079 SUBDIR_MAKEFILES
="$SUBDIR_MAKEFILES $opt_makefile"
29080 ac_config_files
="$ac_config_files admin/unidata/Makefile"
29085 SUBDIR_MAKEFILES_IN
=`echo " ${SUBDIR_MAKEFILES}" | sed -e 's| | $(srcdir)/|g' -e 's|Makefile|Makefile.in|g'`
29089 ac_config_commands
="$ac_config_commands src/epaths.h"
29092 ac_config_commands
="$ac_config_commands src/.gdbinit"
29095 cat >confcache
<<\_ACEOF
29096 # This file is a shell script that caches the results of configure
29097 # tests run on this system so they can be shared between configure
29098 # scripts and configure runs, see configure's option --config-cache.
29099 # It is not useful on other systems. If it contains results you don't
29100 # want to keep, you may remove or edit it.
29102 # config.status only pays attention to the cache file if you give it
29103 # the --recheck option to rerun configure.
29105 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29106 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29107 # following values.
29111 # The following way of writing the cache mishandles newlines in values,
29112 # but we know of no workaround that is simple, portable, and efficient.
29113 # So, we kill variables containing newlines.
29114 # Ultrix sh set writes to stderr and can't be redirected directly,
29115 # and sets the high bit in the cache file unless we assign to the vars.
29117 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
29118 eval ac_val
=\$
$ac_var
29122 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
29123 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
29126 _ | IFS | as_nl
) ;; #(
29127 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
29128 *) { eval $ac_var=; unset $ac_var;} ;;
29134 case $as_nl`(ac_space=' '; set) 2>&1` in #(
29135 *${as_nl}ac_space
=\
*)
29136 # `set' does not quote correctly, so add quotes: double-quote
29137 # substitution turns \\\\ into \\, and sed turns \\ into \.
29140 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29143 # `set' quotes correctly as required by POSIX, so do not add quotes.
29144 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
29153 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29155 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29157 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
29158 if test -w "$cache_file"; then
29159 test "x$cache_file" != "x/dev/null" &&
29160 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
29161 $as_echo "$as_me: updating cache $cache_file" >&6;}
29162 cat confcache
>$cache_file
29164 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
29165 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
29170 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
29171 # Let make expand exec_prefix.
29172 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
29174 DEFS
=-DHAVE_CONFIG_H
29178 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
29179 # 1. Remove the extension, and $U if already installed.
29180 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
29181 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
29182 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
29183 # will be set to the directory where LIBOBJS objects are built.
29184 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
29185 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
29187 LIBOBJS
=$ac_libobjs
29189 LTLIBOBJS
=$ac_ltlibobjs
29192 if test -n "$EXEEXT"; then
29194 am__EXEEXT_FALSE
='#'
29196 am__EXEEXT_TRUE
='#'
29200 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
29201 as_fn_error
"conditional \"AMDEP\" was never defined.
29202 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29204 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
29205 as_fn_error
"conditional \"am__fastdepCC\" was never defined.
29206 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29208 if test -z "${BUILDING_FOR_WINDOWSNT_TRUE}" && test -z "${BUILDING_FOR_WINDOWSNT_FALSE}"; then
29209 as_fn_error
"conditional \"BUILDING_FOR_WINDOWSNT\" was never defined.
29210 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29212 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
29213 as_fn_error
"conditional \"GL_COND_LIBTOOL\" was never defined.
29214 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29216 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
29217 as_fn_error
"conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
29218 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29221 if test -z "${GL_GENERATE_ERRNO_H_TRUE}" && test -z "${GL_GENERATE_ERRNO_H_FALSE}"; then
29222 as_fn_error
"conditional \"GL_GENERATE_ERRNO_H\" was never defined.
29223 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29225 if test -z "${GL_GENERATE_EXECINFO_H_TRUE}" && test -z "${GL_GENERATE_EXECINFO_H_FALSE}"; then
29226 as_fn_error
"conditional \"GL_GENERATE_EXECINFO_H\" was never defined.
29227 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29229 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
29230 as_fn_error
"conditional \"GL_GENERATE_STDINT_H\" was never defined.
29231 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29233 if test -z "${GL_GENERATE_STDALIGN_H_TRUE}" && test -z "${GL_GENERATE_STDALIGN_H_FALSE}"; then
29234 as_fn_error
"conditional \"GL_GENERATE_STDALIGN_H\" was never defined.
29235 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29237 if test -z "${GL_GENERATE_STDARG_H_TRUE}" && test -z "${GL_GENERATE_STDARG_H_FALSE}"; then
29238 as_fn_error
"conditional \"GL_GENERATE_STDARG_H\" was never defined.
29239 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29241 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
29242 as_fn_error
"conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
29243 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29245 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
29246 as_fn_error
"conditional \"GL_GENERATE_STDDEF_H\" was never defined.
29247 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29249 if test -z "${gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_TRUE}" && test -z "${gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_FALSE}"; then
29250 as_fn_error
"conditional \"gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b\" was never defined.
29251 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29253 if test -z "${gl_GNULIB_ENABLED_dosname_TRUE}" && test -z "${gl_GNULIB_ENABLED_dosname_FALSE}"; then
29254 as_fn_error
"conditional \"gl_GNULIB_ENABLED_dosname\" was never defined.
29255 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29257 if test -z "${gl_GNULIB_ENABLED_euidaccess_TRUE}" && test -z "${gl_GNULIB_ENABLED_euidaccess_FALSE}"; then
29258 as_fn_error
"conditional \"gl_GNULIB_ENABLED_euidaccess\" was never defined.
29259 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29261 if test -z "${gl_GNULIB_ENABLED_getdtablesize_TRUE}" && test -z "${gl_GNULIB_ENABLED_getdtablesize_FALSE}"; then
29262 as_fn_error
"conditional \"gl_GNULIB_ENABLED_getdtablesize\" was never defined.
29263 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29265 if test -z "${gl_GNULIB_ENABLED_getgroups_TRUE}" && test -z "${gl_GNULIB_ENABLED_getgroups_FALSE}"; then
29266 as_fn_error
"conditional \"gl_GNULIB_ENABLED_getgroups\" was never defined.
29267 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29269 if test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE}" && test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE}"; then
29270 as_fn_error
"conditional \"gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36\" was never defined.
29271 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29273 if test -z "${gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_TRUE}" && test -z "${gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_FALSE}"; then
29274 as_fn_error
"conditional \"gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1\" was never defined.
29275 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29277 if test -z "${gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_TRUE}" && test -z "${gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_FALSE}"; then
29278 as_fn_error
"conditional \"gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7\" was never defined.
29279 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29281 if test -z "${gl_GNULIB_ENABLED_pathmax_TRUE}" && test -z "${gl_GNULIB_ENABLED_pathmax_FALSE}"; then
29282 as_fn_error
"conditional \"gl_GNULIB_ENABLED_pathmax\" was never defined.
29283 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29285 if test -z "${gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_TRUE}" && test -z "${gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_FALSE}"; then
29286 as_fn_error
"conditional \"gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c\" was never defined.
29287 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29289 if test -z "${gl_GNULIB_ENABLED_secure_getenv_TRUE}" && test -z "${gl_GNULIB_ENABLED_secure_getenv_FALSE}"; then
29290 as_fn_error
"conditional \"gl_GNULIB_ENABLED_secure_getenv\" was never defined.
29291 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29293 if test -z "${gl_GNULIB_ENABLED_stat_TRUE}" && test -z "${gl_GNULIB_ENABLED_stat_FALSE}"; then
29294 as_fn_error
"conditional \"gl_GNULIB_ENABLED_stat\" was never defined.
29295 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29297 if test -z "${gl_GNULIB_ENABLED_strtoll_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoll_FALSE}"; then
29298 as_fn_error
"conditional \"gl_GNULIB_ENABLED_strtoll\" was never defined.
29299 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29301 if test -z "${gl_GNULIB_ENABLED_strtoull_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoull_FALSE}"; then
29302 as_fn_error
"conditional \"gl_GNULIB_ENABLED_strtoull\" was never defined.
29303 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29305 if test -z "${gl_GNULIB_ENABLED_tempname_TRUE}" && test -z "${gl_GNULIB_ENABLED_tempname_FALSE}"; then
29306 as_fn_error
"conditional \"gl_GNULIB_ENABLED_tempname\" was never defined.
29307 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29309 if test -z "${gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_TRUE}" && test -z "${gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_FALSE}"; then
29310 as_fn_error
"conditional \"gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec\" was never defined.
29311 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29316 if test -n "$gl_LIBOBJS"; then
29317 # Remove the extension.
29318 sed_drop_objext
='s/\.o$//;s/\.obj$//'
29319 for i
in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
29320 gl_libobjs
="$gl_libobjs $i.$ac_objext"
29321 gl_ltlibobjs
="$gl_ltlibobjs $i.lo"
29324 gl_LIBOBJS
=$gl_libobjs
29326 gl_LTLIBOBJS
=$gl_ltlibobjs
29332 if test -n "$gltests_LIBOBJS"; then
29333 # Remove the extension.
29334 sed_drop_objext
='s/\.o$//;s/\.obj$//'
29335 for i
in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
29336 gltests_libobjs
="$gltests_libobjs $i.$ac_objext"
29337 gltests_ltlibobjs
="$gltests_ltlibobjs $i.lo"
29340 gltests_LIBOBJS
=$gltests_libobjs
29342 gltests_LTLIBOBJS
=$gltests_ltlibobjs
29346 : ${CONFIG_STATUS=./config.status}
29348 ac_clean_files_save
=$ac_clean_files
29349 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
29350 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
29351 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
29353 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
29355 # Generated by $as_me.
29356 # Run this file to recreate the current configuration.
29357 # Compiler output produced by configure, useful for debugging
29358 # configure, is in config.log if it exists.
29361 ac_cs_recheck=false
29364 SHELL=\${CONFIG_SHELL-$SHELL}
29367 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
29368 ## -------------------- ##
29369 ## M4sh Initialization. ##
29370 ## -------------------- ##
29372 # Be more Bourne compatible
29373 DUALCASE
=1; export DUALCASE
# for MKS sh
29374 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
29377 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
29378 # is contrary to our usage. Disable this feature.
29379 alias -g '${1+"$@"}'='"$@"'
29380 setopt NO_GLOB_SUBST
29382 case `(set -o) 2>/dev/null` in #(
29394 # Printing a long string crashes Solaris 7 /usr/bin/printf.
29395 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
29396 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
29397 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
29398 # Prefer a ksh shell builtin over an external printf program on Solaris,
29399 # but without wasting forks for bash or zsh.
29400 if test -z "$BASH_VERSION$ZSH_VERSION" \
29401 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
29402 as_echo='print
-r --'
29403 as_echo_n='print
-rn --'
29404 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
29405 as_echo='printf %s
\n'
29406 as_echo_n='printf %s
'
29408 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
29409 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
29410 as_echo_n='/usr
/ucb
/echo -n'
29412 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
29413 as_echo_n_body='eval
29417 expr "X$arg" : "X\\(.*\\)$as_nl";
29418 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
29420 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
29422 export as_echo_n_body
29423 as_echo_n='sh
-c $as_echo_n_body as_echo
'
29425 export as_echo_body
29426 as_echo='sh
-c $as_echo_body as_echo
'
29429 # The user is always right.
29430 if test "${PATH_SEPARATOR+set}" != set; then
29432 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
29433 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
29440 # We need space, tab and new line, in precisely that order. Quoting is
29441 # there to prevent editors from complaining about space-tab.
29442 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
29443 # splitting by setting IFS to empty value.)
29446 # Find who we are. Look in the path if we contain no directory separator.
29448 *[\\/]* ) as_myself=$0 ;;
29449 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29450 for as_dir in $PATH
29453 test -z "$as_dir" && as_dir=.
29454 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
29460 # We did not find ourselves, most probably we were run as `sh COMMAND'
29461 # in which case we are not to be found in the path.
29462 if test "x$as_myself" = x
; then
29465 if test ! -f "$as_myself"; then
29466 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
29470 # Unset variables that we do not need and which cause bugs (e.g. in
29471 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
29472 # suppresses any "Segmentation fault" message there. '((' could
29473 # trigger a bug in pdksh 5.2.14.
29474 for as_var
in BASH_ENV ENV MAIL MAILPATH
29475 do eval test x\
${$as_var+set} = xset \
29476 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
29489 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
29492 # as_fn_error ERROR [LINENO LOG_FD]
29493 # ---------------------------------
29494 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
29495 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
29496 # script with status $?, using 1 if that was 0.
29499 as_status
=$?
; test $as_status -eq 0 && as_status
=1
29501 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
29502 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
29504 $as_echo "$as_me: error: $1" >&2
29505 as_fn_exit
$as_status
29509 # as_fn_set_status STATUS
29510 # -----------------------
29511 # Set $? to STATUS, without forking.
29512 as_fn_set_status
()
29515 } # as_fn_set_status
29517 # as_fn_exit STATUS
29518 # -----------------
29519 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
29523 as_fn_set_status
$1
29529 # Portably unset VAR.
29532 { eval $1=; unset $1;}
29534 as_unset
=as_fn_unset
29535 # as_fn_append VAR VALUE
29536 # ----------------------
29537 # Append the text in VALUE to the end of the definition contained in VAR. Take
29538 # advantage of any shell optimizations that allow amortized linear growth over
29539 # repeated appends, instead of the typical quadratic growth present in naive
29541 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
29542 eval 'as_fn_append ()
29553 # as_fn_arith ARG...
29554 # ------------------
29555 # Perform arithmetic evaluation on the ARGs, and store the result in the
29556 # global $as_val. Take advantage of shells that can avoid forks. The arguments
29557 # must be portable across $(()) and expr.
29558 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
29559 eval 'as_fn_arith ()
29566 as_val
=`expr "$@" || test $? -eq 1`
29571 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
29572 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
29578 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
29579 as_basename
=basename
29584 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
29590 as_me
=`$as_basename -- "$0" ||
29591 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29592 X"$0" : 'X\(//\)$' \| \
29593 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
29595 sed '/^.*\/\([^/][^/]*\)\/*$/{
29609 # Avoid depending upon Character Ranges.
29610 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
29611 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29612 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
29613 as_cr_digits
='0123456789'
29614 as_cr_alnum
=$as_cr_Letters$as_cr_digits
29616 ECHO_C
= ECHO_N
= ECHO_T
=
29617 case `echo -n x` in #(((((
29619 case `echo 'xy\c'` in
29620 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
29622 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
29629 rm -f conf$$ conf$$.exe conf$$.
file
29630 if test -d conf$$.dir
; then
29631 rm -f conf$$.dir
/conf$$.
file
29634 mkdir conf$$.dir
2>/dev
/null
29636 if (echo >conf$$.
file) 2>/dev
/null
; then
29637 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
29639 # ... but there are two gotchas:
29640 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
29641 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
29642 # In both cases, we have to default to `cp -p'.
29643 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
29645 elif ln conf$$.
file conf$$
2>/dev
/null
; then
29653 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
29654 rmdir conf$$.dir
2>/dev
/null
29659 # Create "$as_dir" as a directory, including parents if necessary.
29664 -*) as_dir
=.
/$as_dir;;
29666 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
29670 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
29671 *) as_qdir
=$as_dir;;
29673 as_dirs
="'$as_qdir' $as_dirs"
29674 as_dir
=`$as_dirname -- "$as_dir" ||
29675 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29676 X"$as_dir" : 'X\(//\)[^/]' \| \
29677 X"$as_dir" : 'X\(//\)$' \| \
29678 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
29679 $as_echo X"$as_dir" |
29680 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29684 /^X\(\/\/\)[^/].*/{
29697 test -d "$as_dir" && break
29699 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
29700 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
29704 if mkdir
-p .
2>/dev
/null
; then
29705 as_mkdir_p
='mkdir -p "$as_dir"'
29707 test -d .
/-p && rmdir .
/-p
29711 if test -x / >/dev
/null
2>&1; then
29712 as_test_x
='test -x'
29714 if ls -dL / >/dev
/null
2>&1; then
29721 if test -d "$1"; then
29727 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
29728 ???[sx]*):;;*)false;;esac;fi
29732 as_executable_p
=$as_test_x
29734 # Sed expression to map a string onto a valid CPP name.
29735 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
29737 # Sed expression to map a string onto a valid variable name.
29738 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
29742 ## ----------------------------------- ##
29743 ## Main body of $CONFIG_STATUS script. ##
29744 ## ----------------------------------- ##
29746 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
29748 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
29749 # Save the log message, to keep $0 and so on meaningful, and to
29750 # report actual input values of CONFIG_FILES etc. instead of their
29751 # values after options handling.
29753 This file was extended by emacs $as_me 24.3.50, which was
29754 generated by GNU Autoconf 2.65. Invocation command line was
29756 CONFIG_FILES = $CONFIG_FILES
29757 CONFIG_HEADERS = $CONFIG_HEADERS
29758 CONFIG_LINKS = $CONFIG_LINKS
29759 CONFIG_COMMANDS = $CONFIG_COMMANDS
29762 on `(hostname || uname -n) 2>/dev/null | sed 1q`
29767 case $ac_config_files in *"
29768 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
29771 case $ac_config_headers in *"
29772 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
29776 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29777 # Files that config.status was made for.
29778 config_files="$ac_config_files"
29779 config_headers="$ac_config_headers"
29780 config_commands="$ac_config_commands"
29784 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
29786 \`$as_me' instantiates files and other configuration actions
29787 from templates according to the current configuration. Unless the files
29788 and actions are specified as TAGs, all are instantiated by default.
29790 Usage: $0 [OPTION]... [TAG]...
29792 -h, --help print this help, then exit
29793 -V, --version print version number and configuration settings, then exit
29794 --config print configuration, then exit
29795 -q, --quiet, --silent
29796 do not print progress messages
29797 -d, --debug don't remove temporary files
29798 --recheck update $as_me by reconfiguring in the same conditions
29799 --file=FILE[:TEMPLATE]
29800 instantiate the configuration file FILE
29801 --header=FILE[:TEMPLATE]
29802 instantiate the configuration header FILE
29804 Configuration files:
29807 Configuration headers:
29810 Configuration commands:
29813 Report bugs to the package provider."
29816 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29817 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
29819 emacs config.status 24.3.50
29820 configured by $0, generated by GNU Autoconf 2.65,
29821 with options \\"\$ac_cs_config\\"
29823 Copyright (C) 2009 Free Software Foundation, Inc.
29824 This config.status script is free software; the Free Software Foundation
29825 gives unlimited permission to copy, distribute and modify it."
29832 test -n "\$AWK" || AWK=awk
29835 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
29836 # The default lists apply if the user does not specify any file.
29842 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
29843 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
29854 # Handling of the options.
29855 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
29857 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
29858 $as_echo "$ac_cs_version"; exit ;;
29859 --config |
--confi |
--conf |
--con |
--co |
--c )
29860 $as_echo "$ac_cs_config"; exit ;;
29861 --debug |
--debu |
--deb |
--de |
--d |
-d )
29863 --file |
--fil |
--fi |
--f )
29866 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29868 as_fn_append CONFIG_FILES
" '$ac_optarg'"
29869 ac_need_defaults
=false
;;
29870 --header |
--heade |
--head |
--hea )
29873 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29875 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
29876 ac_need_defaults
=false
;;
29878 # Conflict between --help and --header
29879 as_fn_error
"ambiguous option: \`$1'
29880 Try \`$0 --help' for more information.";;
29881 --help |
--hel |
-h )
29882 $as_echo "$ac_cs_usage"; exit ;;
29883 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
29884 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
29887 # This is an error.
29888 -*) as_fn_error
"unrecognized option: \`$1'
29889 Try \`$0 --help' for more information." ;;
29891 *) as_fn_append ac_config_targets
" $1"
29892 ac_need_defaults
=false
;;
29898 ac_configure_extra_args
=
29900 if $ac_cs_silent; then
29902 ac_configure_extra_args
="$ac_configure_extra_args --silent"
29906 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29907 if \$ac_cs_recheck; then
29908 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
29910 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
29911 CONFIG_SHELL='$SHELL'
29912 export CONFIG_SHELL
29917 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
29921 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
29922 ## Running $as_me. ##
29928 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29932 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
29933 GCC="$GCC" CPPFLAGS="$CPPFLAGS" opsys="$opsys"
29937 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
29939 # Handling of arguments.
29940 for ac_config_target
in $ac_config_targets
29942 case $ac_config_target in
29943 "src/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
29944 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
29945 "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" ;;
29946 "nextstep/GNUstep/Emacs.base/Resources/Emacs.desktop") CONFIG_FILES
="$CONFIG_FILES nextstep/GNUstep/Emacs.base/Resources/Emacs.desktop:nextstep/templates/Emacs.desktop.in" ;;
29947 "nextstep/Cocoa/Emacs.base/Contents/Info.plist") CONFIG_FILES
="$CONFIG_FILES nextstep/Cocoa/Emacs.base/Contents/Info.plist:nextstep/templates/Info.plist.in" ;;
29948 "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" ;;
29949 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
29950 "lib/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/Makefile" ;;
29951 "lib-src/Makefile") CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile" ;;
29952 "oldXMenu/Makefile") CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
29953 "doc/emacs/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/emacs/Makefile" ;;
29954 "doc/misc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/misc/Makefile" ;;
29955 "doc/lispintro/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispintro/Makefile" ;;
29956 "doc/lispref/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispref/Makefile" ;;
29957 "src/Makefile") CONFIG_FILES
="$CONFIG_FILES src/Makefile" ;;
29958 "lwlib/Makefile") CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
29959 "lisp/Makefile") CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
29960 "leim/Makefile") CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
29961 "nextstep/Makefile") CONFIG_FILES
="$CONFIG_FILES nextstep/Makefile" ;;
29962 "nt/Makefile") CONFIG_FILES
="$CONFIG_FILES nt/Makefile" ;;
29963 "test/automated/Makefile") CONFIG_FILES
="$CONFIG_FILES test/automated/Makefile" ;;
29964 "admin/unidata/Makefile") CONFIG_FILES
="$CONFIG_FILES admin/unidata/Makefile" ;;
29965 "src/epaths.h") CONFIG_COMMANDS
="$CONFIG_COMMANDS src/epaths.h" ;;
29966 "src/.gdbinit") CONFIG_COMMANDS
="$CONFIG_COMMANDS src/.gdbinit" ;;
29968 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
29973 # If the user did not use the arguments to specify the items to instantiate,
29974 # then the envvar interface is used. Set only those that are not.
29975 # We use the long form for the default assignment because of an extremely
29976 # bizarre bug on SunOS 4.1.3.
29977 if $ac_need_defaults; then
29978 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
29979 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
29980 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
29983 # Have a temporary directory for convenience. Make it in the build tree
29984 # simply because there is no reason against having it here, and in addition,
29985 # creating and moving files from /tmp can sometimes cause problems.
29986 # Hook for its removal unless debugging.
29987 # Note that there is a small window in which the directory will not be cleaned:
29988 # after its creation but before its name has been assigned to `$tmp'.
29992 trap 'exit_status=$?
29993 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
29995 trap 'as_fn_exit 1' 1 2 13 15
29997 # Create a (secure) tmp directory for tmp files.
30000 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
30001 test -n "$tmp" && test -d "$tmp"
30004 tmp
=.
/conf$$
-$RANDOM
30005 (umask 077 && mkdir
"$tmp")
30006 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
30008 # Set up the scripts for CONFIG_FILES section.
30009 # No need to generate them if there are no CONFIG_FILES.
30010 # This happens for instance with `./config.status config.h'.
30011 if test -n "$CONFIG_FILES"; then
30013 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
30014 ac_cs_awk_getline
=:
30015 ac_cs_awk_pipe_init
=
30016 ac_cs_awk_read_file
='
30017 while ((getline aline < (F[key])) > 0)
30020 ac_cs_awk_pipe_fini
=
30022 ac_cs_awk_getline
=false
30023 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
30024 ac_cs_awk_read_file
='
30026 print "cat " F[key] " &&"
30027 '$ac_cs_awk_pipe_init
30028 # The final `:' finishes the AND list.
30029 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
30031 ac_cr
=`echo X | tr X '\015'`
30032 # On cygwin, bash can eat \r inside `` if the user requested igncr.
30033 # But we know of no other shell where ac_cr would be empty at this
30034 # point, so we can use a bashism as a fallback.
30035 if test "x$ac_cr" = x
; then
30036 eval ac_cr
=\$
\'\\r
\'
30038 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
30039 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
30042 ac_cs_awk_cr
=$ac_cr
30045 echo 'BEGIN {' >"$tmp/subs1.awk" &&
30048 # Create commands to substitute file output variables.
30050 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
30051 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
30052 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
30055 } >conf$
$files.sh
&&
30056 . .
/conf$
$files.sh ||
30057 as_fn_error
"could not make $CONFIG_STATUS" "$LINENO" 5
30058 rm -f conf$
$files.sh
30061 echo "cat >conf$$subs.awk <<_ACEOF" &&
30062 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
30064 } >conf$$subs.sh ||
30065 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
30066 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
30068 for ac_last_try in false false false false false :; do
30069 . ./conf$$subs.sh ||
30070 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
30072 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
30073 if test $ac_delim_n = $ac_delim_num; then
30075 elif $ac_last_try; then
30076 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
30078 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
30081 rm -f conf$$subs.sh
30083 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30084 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
30088 s/^/S["/; s
/!.
*/"]=/
30098 s/\(.\{148\}\)..*/\1/
30100 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
30105 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
30112 s/\(.\{148\}\)..*/\1/
30114 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
30118 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
30123 ' <conf$$subs.awk | sed '
30128 ' >>$CONFIG_STATUS || ac_write_fail=1
30129 rm -f conf$$subs.awk
30130 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30132 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
30133 for (key in S) S_is_set[key] = 1
30135 \$ac_cs_awk_pipe_init
30139 nfields = split(line, field, "@
")
30141 len = length(field[1])
30142 for (i = 2; i < nfields; i++) {
30144 keylen = length(key)
30145 if (S_is_set[key]) {
30147 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
30148 len += length(value) + length(field[++i])
30153 if (nfields == 3 && !substed) {
30155 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
30156 \$ac_cs_awk_read_file
30162 \$ac_cs_awk_pipe_fini
30165 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30166 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
30167 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
30170 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
30171 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
30174 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30175 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
30176 # trailing colons and then remove the whole line if VPATH becomes empty
30177 # (actually we leave an empty line to preserve line numbers).
30178 if test "x
$srcdir" = x.; then
30179 ac_vpsub='/^[ ]*VPATH[ ]*=/{
30180 s/:*\$(srcdir):*/:/
30181 s/:*\${srcdir}:*/:/
30183 s/^\([^=]*=[ ]*\):*/\1/
30189 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30190 fi # test -n "$CONFIG_FILES"
30192 # Set up the scripts for CONFIG_HEADERS section.
30193 # No need to generate them if there are no CONFIG_HEADERS.
30194 # This happens for instance with `./config.status Makefile'.
30195 if test -n "$CONFIG_HEADERS"; then
30196 cat >"$tmp/defines.
awk" <<\_ACAWK ||
30200 # Transform confdefs.h into an awk script `defines.awk', embedded as
30201 # here-document in config.status, that substitutes the proper values into
30202 # config.h.in to produce config.h.
30204 # Create a delimiter string that does not exist in confdefs.h, to ease
30205 # handling of long lines.
30207 for ac_last_try in false false :; do
30208 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
30209 if test -z "$ac_t"; then
30211 elif $ac_last_try; then
30212 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
30214 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
30218 # For the awk script, D is an array of macro values keyed by name,
30219 # likewise P contains macro parameters if any. Preserve backslash
30220 # newline sequences.
30222 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
30224 s/.\{148\}/&'"$ac_delim"'/g
30227 s/^[ ]*#[ ]*define[ ][ ]*/ /
30234 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
30236 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
30240 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
30241 D["\
1"]=" \
3\\\\\\n
"\\/p
30243 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
30248 s/.\{148\}/&'"$ac_delim"'/g
30253 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
30256 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
30258 ' <confdefs.h | sed '
30259 s/'"$ac_delim"'/"\\\
30260 "/g' >>$CONFIG_STATUS || ac_write_fail=1
30262 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30263 for (key in D) D_is_set[key] = 1
30266 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
30268 split(line, arg, " ")
30269 if (arg[1] == "#") {
30273 defundef
= substr
(arg
[1], 2)
30276 split(mac1
, mac2
, "(") #)
30278 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
30279 if (D_is_set
[macro
]) {
30280 # Preserve the white space surrounding the "#".
30281 print prefix
"define", macro P
[macro
] D
[macro
]
30284 # Replace #undef with comments. This is necessary, for example,
30285 # in the case of _POSIX_SOURCE, which is predefined and required
30286 # on some systems where configure will not decide to define it.
30287 if (defundef
== "undef") {
30288 print
"/*", prefix defundef
, macro
, "*/"
30296 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30297 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
30298 fi # test -n "$CONFIG_HEADERS"
30301 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
30306 :[FHLC
]) ac_mode
=$ac_tag; continue;;
30308 case $ac_mode$ac_tag in
30310 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
30311 :[FH
]-) ac_tag
=-:-;;
30312 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
30329 -) ac_f
="$tmp/stdin";;
30330 *) # Look for the file first in the build tree, then in the source tree
30331 # (if the path is not absolute). The absolute path cannot be DOS-style,
30332 # because $ac_f cannot contain `:'.
30336 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
30338 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
30340 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
30341 as_fn_append ac_file_inputs
" '$ac_f'"
30344 # Let's still pretend it is `configure' which instantiates (i.e., don't
30345 # use $as_me), people would be surprised to read:
30346 # /* config.h. Generated by config.status. */
30347 configure_input
='Generated from '`
30348 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
30350 if test x
"$ac_file" != x-
; then
30351 configure_input
="$ac_file. $configure_input"
30352 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
30353 $as_echo "$as_me: creating $ac_file" >&6;}
30355 # Neutralize special characters interpreted by sed in replacement strings.
30356 case $configure_input in #(
30357 *\
&* |
*\|
* |
*\\* )
30358 ac_sed_conf_input
=`$as_echo "$configure_input" |
30359 sed 's/[\\\\&|]/\\\\&/g'`;; #(
30360 *) ac_sed_conf_input
=$configure_input;;
30364 *:-:* |
*:-) cat >"$tmp/stdin" \
30365 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
30370 ac_dir
=`$as_dirname -- "$ac_file" ||
30371 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30372 X"$ac_file" : 'X\(//\)[^/]' \| \
30373 X"$ac_file" : 'X\(//\)$' \| \
30374 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
30375 $as_echo X"$ac_file" |
30376 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30380 /^X\(\/\/\)[^/].*/{
30393 as_dir
="$ac_dir"; as_fn_mkdir_p
30397 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
30399 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
30400 # A ".." for each directory in $ac_dir_suffix.
30401 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
30402 case $ac_top_builddir_sub in
30403 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
30404 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
30407 ac_abs_top_builddir
=$ac_pwd
30408 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
30409 # for backward compatibility:
30410 ac_top_builddir
=$ac_top_build_prefix
30413 .
) # We are building in place.
30415 ac_top_srcdir
=$ac_top_builddir_sub
30416 ac_abs_top_srcdir
=$ac_pwd ;;
30417 [\\/]* | ?
:[\\/]* ) # Absolute name.
30418 ac_srcdir
=$srcdir$ac_dir_suffix;
30419 ac_top_srcdir
=$srcdir
30420 ac_abs_top_srcdir
=$srcdir ;;
30421 *) # Relative name.
30422 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
30423 ac_top_srcdir
=$ac_top_build_prefix$srcdir
30424 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
30426 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
30436 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
30437 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
30439 ac_MKDIR_P
=$MKDIR_P
30441 [\\/$
]* | ?
:[\\/]* ) ;;
30442 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
30446 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30447 # If the template does not know about datarootdir, expand it.
30448 # FIXME: This hack should be removed a few years after 2.60.
30449 ac_datarootdir_hack
=; ac_datarootdir_seen
=
30460 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
30461 *datarootdir
*) ac_datarootdir_seen
=yes;;
30462 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
30463 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
30464 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
30466 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30467 ac_datarootdir_hack='
30468 s&@datadir@&$datadir&g
30469 s&@docdir@&$docdir&g
30470 s&@infodir@&$infodir&g
30471 s&@localedir@&$localedir&g
30472 s&@mandir@&$mandir&g
30473 s&\\\${datarootdir}&$datarootdir&g' ;;
30477 # Neutralize VPATH when `$srcdir' = `.'.
30478 # Shell code in configure.ac might set extrasub.
30479 # FIXME: do we really want to maintain this feature?
30480 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30481 ac_sed_extra="$ac_vpsub
30484 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30486 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
30487 s|@configure_input@|
$ac_sed_conf_input|
;t t
30488 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
30489 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
30490 s
&@srcdir@
&$ac_srcdir&;t t
30491 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
30492 s
&@top_srcdir@
&$ac_top_srcdir&;t t
30493 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
30494 s
&@builddir@
&$ac_builddir&;t t
30495 s
&@abs_builddir@
&$ac_abs_builddir&;t t
30496 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
30497 s
&@INSTALL@
&$ac_INSTALL&;t t
30498 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
30499 $ac_datarootdir_hack
30501 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
30502 if $ac_cs_awk_getline; then
30503 $AWK -f "$tmp/subs.
awk"
30505 $AWK -f "$tmp/subs.
awk" | $SHELL
30507 || as_fn_error "could not create
$ac_file" "$LINENO" 5
30509 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
30510 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
30511 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
30512 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
30513 which seems to be undefined. Please make sure it is defined." >&5
30514 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
30515 which seems to be undefined. Please make sure it is defined." >&2;}
30519 -) cat "$tmp/out" && rm -f "$tmp/out";;
30520 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
30522 || as_fn_error "could not create $ac_file" "$LINENO" 5
30528 if test x"$ac_file" != x-; then
30530 $as_echo "/* $configure_input */" \
30531 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
30532 } >"$tmp/config.h" \
30533 || as_fn_error "could not create $ac_file" "$LINENO" 5
30534 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
30535 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
30536 $as_echo "$as_me: $ac_file is unchanged" >&6;}
30539 mv "$tmp/config.h" "$ac_file" \
30540 || as_fn_error "could not create $ac_file" "$LINENO" 5
30543 $as_echo "/* $configure_input */" \
30544 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
30545 || as_fn_error "could not create -" "$LINENO" 5
30547 # Compute "$ac_file"'s index
in $config_headers.
30550 for _am_header
in $config_headers :; do
30551 case $_am_header in
30552 $_am_arg |
$_am_arg:* )
30555 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
30558 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
30559 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30560 X"$_am_arg" : 'X\(//\)[^/]' \| \
30561 X"$_am_arg" : 'X\(//\)$' \| \
30562 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
30563 $as_echo X"$_am_arg" |
30564 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30568 /^X\(\/\/\)[^/].*/{
30580 s/.*/./; q'`/stamp-h
$_am_stamp_count
30583 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
30584 $as_echo "$as_me: executing $ac_file commands" >&6;}
30589 case $ac_file$ac_mode in
30590 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
30591 # Autoconf 2.62 quotes --file arguments for eval, but not when files
30592 # are listed without --file. Let's play safe and only enable the eval
30593 # if we detect the quoting.
30594 case $CONFIG_FILES in
30595 *\'*) eval set x
"$CONFIG_FILES" ;;
30596 *) set x
$CONFIG_FILES ;;
30601 # Strip MF so we end up with the name of the file.
30602 mf
=`echo "$mf" | sed -e 's/:.*$//'`
30603 # Check whether this is an Automake generated Makefile or not.
30604 # We used to match only the files named `Makefile.in', but
30605 # some people rename them; so instead we look at the file content.
30606 # Grep'ing the first line is not enough: some people post-process
30607 # each Makefile.in and add a new line on top of each file to say so.
30608 # Grep'ing the whole file is not good either: AIX grep has a line
30609 # limit of 2048, but all sed's we know have understand at least 4000.
30610 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
30611 dirpart
=`$as_dirname -- "$mf" ||
30612 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30613 X"$mf" : 'X\(//\)[^/]' \| \
30614 X"$mf" : 'X\(//\)$' \| \
30615 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
30617 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30621 /^X\(\/\/\)[^/].*/{
30637 # Extract the definition of DEPDIR, am__include, and am__quote
30638 # from the Makefile without running `make'.
30639 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
30640 test -z "$DEPDIR" && continue
30641 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
30642 test -z "am__include" && continue
30643 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
30644 # When using ansi2knr, U may be empty or an underscore; expand it
30645 U
=`sed -n 's/^U = //p' < "$mf"`
30646 # Find all dependency output files, they are included files with
30647 # $(DEPDIR) in their names. We invoke sed twice because it is the
30648 # simplest approach to changing $(DEPDIR) to its actual value in the
30650 for file in `sed -n "
30651 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
30652 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
30653 # Make sure the directory exists.
30654 test -f "$dirpart/$file" && continue
30655 fdir
=`$as_dirname -- "$file" ||
30656 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30657 X"$file" : 'X\(//\)[^/]' \| \
30658 X"$file" : 'X\(//\)$' \| \
30659 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
30660 $as_echo X"$file" |
30661 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30665 /^X\(\/\/\)[^/].*/{
30678 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
30679 # echo "creating $dirpart/$file"
30680 echo '# dummy' > "$dirpart/$file"
30686 if test "${opsys}" = "mingw32"; then
30687 ${MAKE-make} MAKEFILE_NAME
=do-not-make-Makefile epaths-force-w32
30689 ${MAKE-make} MAKEFILE_NAME
=do-not-make-Makefile epaths-force
30693 if test ! -f src
/.gdbinit
&& test -f "$srcdir/src/.gdbinit"; then
30694 echo "source $srcdir/src/.gdbinit" > src
/.gdbinit
30704 ac_clean_files
=$ac_clean_files_save
30706 test $ac_write_fail = 0 ||
30707 as_fn_error
"write failure creating $CONFIG_STATUS" "$LINENO" 5
30710 # configure is writing to config.log, and then calls config.status.
30711 # config.status does its own redirection, appending to config.log.
30712 # Unfortunately, on DOS this fails, as config.log is still kept open
30713 # by configure, so config.status won't be able to write to it; its
30714 # output is simply discarded. So we exec the FD to /dev/null,
30715 # effectively closing config.log, so it can be properly (re)opened and
30716 # appended to by config.status. When coming back to configure, we
30717 # need to make the FD available again.
30718 if test "$no_create" != yes; then
30720 ac_config_status_args
=
30721 test "$silent" = yes &&
30722 ac_config_status_args
="$ac_config_status_args --quiet"
30724 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
30726 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
30727 # would make configure fail if this is the last instruction.
30728 $ac_cs_success || as_fn_exit $?
30730 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
30731 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
30732 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}