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
1416 BUILDING_FOR_WINDOWSNT_FALSE
1417 BUILDING_FOR_WINDOWSNT_TRUE
1453 INSTALL_STRIP_PROGRAM
1495 program_transform_name
1506 ac_subst_files
='deps_frag
1509 enable_option_checking
1532 with_toolkit_scroll_bars
1544 with_file_notification
1547 with_pkg_config_prog
1550 enable_ns_self_contained
1551 enable_locallisppath
1553 enable_check_lisp_object_type
1556 enable_gtk_deprecation_warnings
1557 enable_dependency_tracking
1560 enable_link_time_optimization
1564 ac_precious_vars
='build_alias
1576 # Initialize some variables set by options.
1578 ac_init_version
=false
1579 ac_unrecognized_opts
=
1580 ac_unrecognized_sep
=
1581 # The variables have the same names as the options, with
1582 # dashes changed to underlines.
1583 cache_file
=/dev
/null
1590 program_transform_name
=s
,x
,x
,
1598 # Installation directory options.
1599 # These are left unexpanded so users can "make install exec_prefix=/foo"
1600 # and all the variables that are supposed to be based on exec_prefix
1601 # by default will actually change.
1602 # Use braces instead of parens because sh, perl, etc. also accept them.
1603 # (The list follows the same order as the GNU Coding Standards.)
1604 bindir
='${exec_prefix}/bin'
1605 sbindir
='${exec_prefix}/sbin'
1606 libexecdir
='${exec_prefix}/libexec'
1607 datarootdir
='${prefix}/share'
1608 datadir
='${datarootdir}'
1609 sysconfdir
='${prefix}/etc'
1610 sharedstatedir
='${prefix}/com'
1611 localstatedir
='${prefix}/var'
1612 includedir
='${prefix}/include'
1613 oldincludedir
='/usr/include'
1614 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
1615 infodir
='${datarootdir}/info'
1620 libdir
='${exec_prefix}/lib'
1621 localedir
='${datarootdir}/locale'
1622 mandir
='${datarootdir}/man'
1628 # If the previous option needs an argument, assign it.
1629 if test -n "$ac_prev"; then
1630 eval $ac_prev=\
$ac_option
1636 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1640 # Accept the important Cygnus configure options, so we can diagnose typos.
1642 case $ac_dashdash$ac_option in
1646 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1648 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1649 bindir
=$ac_optarg ;;
1651 -build |
--build |
--buil |
--bui |
--bu)
1652 ac_prev
=build_alias
;;
1653 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1654 build_alias
=$ac_optarg ;;
1656 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1657 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1658 ac_prev
=cache_file
;;
1659 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1660 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1661 cache_file
=$ac_optarg ;;
1663 --config-cache |
-C)
1664 cache_file
=config.cache
;;
1666 -datadir |
--datadir |
--datadi |
--datad)
1668 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1669 datadir
=$ac_optarg ;;
1671 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1672 |
--dataroo |
--dataro |
--datar)
1673 ac_prev
=datarootdir
;;
1674 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1675 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1676 datarootdir
=$ac_optarg ;;
1678 -disable-* |
--disable-*)
1679 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1680 # Reject names that are not valid shell variable names.
1681 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1682 as_fn_error
"invalid feature name: $ac_useropt"
1683 ac_useropt_orig
=$ac_useropt
1684 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1685 case $ac_user_opts in
1687 "enable_
$ac_useropt"
1689 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1690 ac_unrecognized_sep
=', ';;
1692 eval enable_
$ac_useropt=no
;;
1694 -docdir |
--docdir |
--docdi |
--doc |
--do)
1696 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1697 docdir
=$ac_optarg ;;
1699 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1701 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1702 dvidir
=$ac_optarg ;;
1704 -enable-* |
--enable-*)
1705 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1706 # Reject names that are not valid shell variable names.
1707 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1708 as_fn_error
"invalid feature name: $ac_useropt"
1709 ac_useropt_orig
=$ac_useropt
1710 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1711 case $ac_user_opts in
1713 "enable_
$ac_useropt"
1715 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1716 ac_unrecognized_sep
=', ';;
1718 eval enable_
$ac_useropt=\
$ac_optarg ;;
1720 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1721 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1722 |
--exec |
--exe |
--ex)
1723 ac_prev
=exec_prefix
;;
1724 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1725 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1726 |
--exec=* |
--exe=* |
--ex=*)
1727 exec_prefix
=$ac_optarg ;;
1729 -gas |
--gas |
--ga |
--g)
1730 # Obsolete; use --with-gas.
1733 -help |
--help |
--hel |
--he |
-h)
1734 ac_init_help
=long
;;
1735 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1736 ac_init_help
=recursive
;;
1737 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1738 ac_init_help
=short
;;
1740 -host |
--host |
--hos |
--ho)
1741 ac_prev
=host_alias
;;
1742 -host=* |
--host=* |
--hos=* |
--ho=*)
1743 host_alias
=$ac_optarg ;;
1745 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1747 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1749 htmldir
=$ac_optarg ;;
1751 -includedir |
--includedir |
--includedi |
--included |
--include \
1752 |
--includ |
--inclu |
--incl |
--inc)
1753 ac_prev
=includedir
;;
1754 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1755 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1756 includedir
=$ac_optarg ;;
1758 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1760 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1761 infodir
=$ac_optarg ;;
1763 -libdir |
--libdir |
--libdi |
--libd)
1765 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1766 libdir
=$ac_optarg ;;
1768 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1769 |
--libexe |
--libex |
--libe)
1770 ac_prev
=libexecdir
;;
1771 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1772 |
--libexe=* |
--libex=* |
--libe=*)
1773 libexecdir
=$ac_optarg ;;
1775 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1776 ac_prev
=localedir
;;
1777 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1778 localedir
=$ac_optarg ;;
1780 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1781 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1782 ac_prev
=localstatedir
;;
1783 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1784 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1785 localstatedir
=$ac_optarg ;;
1787 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1789 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1790 mandir
=$ac_optarg ;;
1792 -nfp |
--nfp |
--nf)
1793 # Obsolete; use --without-fp.
1796 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1797 |
--no-cr |
--no-c |
-n)
1800 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1801 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1804 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1805 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1806 |
--oldin |
--oldi |
--old |
--ol |
--o)
1807 ac_prev
=oldincludedir
;;
1808 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1809 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1810 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1811 oldincludedir
=$ac_optarg ;;
1813 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1815 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1816 prefix
=$ac_optarg ;;
1818 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1819 |
--program-pre |
--program-pr |
--program-p)
1820 ac_prev
=program_prefix
;;
1821 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1822 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1823 program_prefix
=$ac_optarg ;;
1825 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1826 |
--program-suf |
--program-su |
--program-s)
1827 ac_prev
=program_suffix
;;
1828 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1829 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1830 program_suffix
=$ac_optarg ;;
1832 -program-transform-name |
--program-transform-name \
1833 |
--program-transform-nam |
--program-transform-na \
1834 |
--program-transform-n |
--program-transform- \
1835 |
--program-transform |
--program-transfor \
1836 |
--program-transfo |
--program-transf \
1837 |
--program-trans |
--program-tran \
1838 |
--progr-tra |
--program-tr |
--program-t)
1839 ac_prev
=program_transform_name
;;
1840 -program-transform-name=* |
--program-transform-name=* \
1841 |
--program-transform-nam=* |
--program-transform-na=* \
1842 |
--program-transform-n=* |
--program-transform-=* \
1843 |
--program-transform=* |
--program-transfor=* \
1844 |
--program-transfo=* |
--program-transf=* \
1845 |
--program-trans=* |
--program-tran=* \
1846 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1847 program_transform_name
=$ac_optarg ;;
1849 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1851 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1852 pdfdir
=$ac_optarg ;;
1854 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1856 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1859 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1860 |
-silent |
--silent |
--silen |
--sile |
--sil)
1863 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1865 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1867 sbindir
=$ac_optarg ;;
1869 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1870 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1871 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1873 ac_prev
=sharedstatedir
;;
1874 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1875 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1876 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1878 sharedstatedir
=$ac_optarg ;;
1880 -site |
--site |
--sit)
1882 -site=* |
--site=* |
--sit=*)
1885 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1887 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1888 srcdir
=$ac_optarg ;;
1890 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1891 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1892 ac_prev
=sysconfdir
;;
1893 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1894 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1895 sysconfdir
=$ac_optarg ;;
1897 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1898 ac_prev
=target_alias
;;
1899 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1900 target_alias
=$ac_optarg ;;
1902 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1905 -version |
--version |
--versio |
--versi |
--vers |
-V)
1906 ac_init_version
=: ;;
1909 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1910 # Reject names that are not valid shell variable names.
1911 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1912 as_fn_error
"invalid package name: $ac_useropt"
1913 ac_useropt_orig
=$ac_useropt
1914 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1915 case $ac_user_opts in
1919 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1920 ac_unrecognized_sep
=', ';;
1922 eval with_
$ac_useropt=\
$ac_optarg ;;
1924 -without-* |
--without-*)
1925 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1926 # Reject names that are not valid shell variable names.
1927 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1928 as_fn_error
"invalid package name: $ac_useropt"
1929 ac_useropt_orig
=$ac_useropt
1930 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1931 case $ac_user_opts in
1935 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1936 ac_unrecognized_sep
=', ';;
1938 eval with_
$ac_useropt=no
;;
1941 # Obsolete; use --with-x.
1944 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1945 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1946 ac_prev
=x_includes
;;
1947 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1948 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1949 x_includes
=$ac_optarg ;;
1951 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1952 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1953 ac_prev
=x_libraries
;;
1954 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1955 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1956 x_libraries
=$ac_optarg ;;
1958 -*) as_fn_error
"unrecognized option: \`$ac_option'
1959 Try \`$0 --help' for more information."
1963 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1964 # Reject names that are not valid shell variable names.
1965 case $ac_envvar in #(
1966 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1967 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1969 eval $ac_envvar=\
$ac_optarg
1970 export $ac_envvar ;;
1973 # FIXME: should be removed in autoconf 3.0.
1974 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1975 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1976 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1977 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1983 if test -n "$ac_prev"; then
1984 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1985 as_fn_error
"missing argument to $ac_option"
1988 if test -n "$ac_unrecognized_opts"; then
1989 case $enable_option_checking in
1991 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1992 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1996 # Check all directory arguments for consistency.
1997 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1998 datadir sysconfdir sharedstatedir localstatedir includedir \
1999 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
2000 libdir localedir mandir
2002 eval ac_val
=\$
$ac_var
2003 # Remove trailing slashes.
2006 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
2007 eval $ac_var=\
$ac_val;;
2009 # Be sure to have absolute directory names.
2011 [\\/$
]* | ?
:[\\/]* ) continue;;
2012 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
2014 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
2017 # There might be people who depend on the old broken behavior: `$host'
2018 # used to hold the argument of --host etc.
2019 # FIXME: To remove some day.
2022 target
=$target_alias
2024 # FIXME: To remove some day.
2025 if test "x$host_alias" != x
; then
2026 if test "x$build_alias" = x
; then
2027 cross_compiling
=maybe
2028 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
2029 If a cross compiler is detected then cross compile mode will be used." >&2
2030 elif test "x$build_alias" != "x$host_alias"; then
2036 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
2038 test "$silent" = yes && exec 6>/dev
/null
2041 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
2042 ac_ls_di
=`ls -di .` &&
2043 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
2044 as_fn_error
"working directory cannot be determined"
2045 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
2046 as_fn_error
"pwd does not report name of working directory"
2049 # Find the source files, if location was not specified.
2050 if test -z "$srcdir"; then
2051 ac_srcdir_defaulted
=yes
2052 # Try the directory containing this script, then the parent directory.
2053 ac_confdir
=`$as_dirname -- "$as_myself" ||
2054 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2055 X"$as_myself" : 'X\(//\)[^/]' \| \
2056 X"$as_myself" : 'X\(//\)$' \| \
2057 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
2058 $as_echo X"$as_myself" |
2059 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2077 if test ! -r "$srcdir/$ac_unique_file"; then
2081 ac_srcdir_defaulted
=no
2083 if test ! -r "$srcdir/$ac_unique_file"; then
2084 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
2085 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
2087 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
2089 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
2091 # When building in place, set srcdir=.
2092 if test "$ac_abs_confdir" = "$ac_pwd"; then
2095 # Remove unnecessary trailing slashes from srcdir.
2096 # Double slashes in file names in object file debugging info
2097 # mess up M-x gdb in Emacs.
2099 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
2101 for ac_var
in $ac_precious_vars; do
2102 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
2103 eval ac_env_
${ac_var}_value
=\$
${ac_var}
2104 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
2105 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
2109 # Report the --help message.
2111 if test "$ac_init_help" = "long"; then
2112 # Omit some internal or obsolete options to make the list less imposing.
2113 # This message is too long to be a string in the A/UX 3.1 sh.
2115 \`configure' configures emacs 24.3.50 to adapt to many kinds of systems.
2117 Usage: $0 [OPTION]... [VAR=VALUE]...
2119 To assign environment variables (e.g., CC, CFLAGS...), specify them as
2120 VAR=VALUE. See below for descriptions of some of the useful variables.
2122 Defaults for the options are specified in brackets.
2125 -h, --help display this help and exit
2126 --help=short display options specific to this package
2127 --help=recursive display the short help of all the included packages
2128 -V, --version display version information and exit
2129 -q, --quiet, --silent do not print \`checking...' messages
2130 --cache-file=FILE cache test results in FILE [disabled]
2131 -C, --config-cache alias for \`--cache-file=config.cache'
2132 -n, --no-create do not create output files
2133 --srcdir=DIR find the sources in DIR [configure dir or \`..']
2135 Installation directories:
2136 --prefix=PREFIX install architecture-independent files in PREFIX
2137 [$ac_default_prefix]
2138 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
2141 By default, \`make install' will install all the files in
2142 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
2143 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
2144 for instance \`--prefix=\$HOME'.
2146 For better control, use the options below.
2148 Fine tuning of the installation directories:
2149 --bindir=DIR user executables [EPREFIX/bin]
2150 --sbindir=DIR system admin executables [EPREFIX/sbin]
2151 --libexecdir=DIR program executables [EPREFIX/libexec]
2152 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
2153 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
2154 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
2155 --libdir=DIR object code libraries [EPREFIX/lib]
2156 --includedir=DIR C header files [PREFIX/include]
2157 --oldincludedir=DIR C header files for non-gcc [/usr/include]
2158 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
2159 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
2160 --infodir=DIR info documentation [DATAROOTDIR/info]
2161 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
2162 --mandir=DIR man documentation [DATAROOTDIR/man]
2163 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
2164 --htmldir=DIR html documentation [DOCDIR]
2165 --dvidir=DIR dvi documentation [DOCDIR]
2166 --pdfdir=DIR pdf documentation [DOCDIR]
2167 --psdir=DIR ps documentation [DOCDIR]
2173 --program-prefix=PREFIX prepend PREFIX to installed program names
2174 --program-suffix=SUFFIX append SUFFIX to installed program names
2175 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
2178 --x-includes=DIR X include files are
in DIR
2179 --x-libraries=DIR X library files are
in DIR
2182 --build=BUILD configure
for building on BUILD
[guessed
]
2183 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
2187 if test -n "$ac_init_help"; then
2188 case $ac_init_help in
2189 short | recursive
) echo "Configuration of emacs 24.3.50:";;
2194 --disable-option-checking ignore unrecognized
--enable/--with options
2195 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
2196 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
2197 --disable-ns-self-contained
2198 disable self contained build under NeXTstep
2199 --enable-locallisppath=PATH
2200 directories Emacs should search
for lisp files
2201 specific to this site
2202 --enable-checking[=LIST
]
2203 enable expensive run-time checks. With LIST
, enable
2204 only specific categories of checks. Categories are
:
2205 all
,yes,no. Flags are
: stringbytes
, stringoverrun
,
2206 stringfreelist
, xmallocoverrun
, conslist
, glyphs
2207 --enable-check-lisp-object-type
2208 enable compile
time checks
for the Lisp_Object data
2209 type. This is useful
for development
for catching
2210 certain types of bugs.
2211 --enable-profiling build emacs with low-level
, gprof profiling support.
2212 Mainly useful
for debugging Emacs itself. May not
2213 work on all platforms. Stops profiler.el working.
2214 --enable-autodepend automatically generate dependencies to .h-files.
2215 Requires GNU Make and Gcc. Enabled
if GNU Make and
2217 --enable-gtk-deprecation-warnings
2218 Show Gtk
+/Gdk deprecation warnings
for Gtk
+ >= 3.0
2219 --disable-dependency-tracking speeds up one-time build
2220 --enable-dependency-tracking do not reject slow dependency extractors
2221 --disable-largefile omit support
for large files
2222 --enable-gcc-warnings turn on lots of GCC warnings
/errors. This is
2223 intended
for developers
, and may generate false
2224 alarms when used with older or non-GNU development
2226 --enable-link-time-optimization
2227 build emacs with link-time optimization. This is
2228 supported only
for GCC since
4.5.0.
2229 --disable-acl do not support ACLs
2232 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
2233 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
2234 --without-all omit almost all features and build small executable
2235 with minimal dependencies
2236 --without-pop don
't support POP mail retrieval with movemail
2237 --with-kerberos support Kerberos-authenticated POP
2238 --with-kerberos5 support Kerberos version 5 authenticated POP
2239 --with-hesiod support Hesiod to get the POP server host
2240 --with-mmdf support MMDF mailboxes
2241 --with-mail-unlink unlink, rather than empty, mail spool after reading
2242 --with-mailhost=HOSTNAME
2243 string giving default POP mail host
2244 --with-sound=VALUE compile with sound support (VALUE one of: yes,
2245 ossaudio, alsa, no; default yes). Only for
2246 GNU/Linux, FreeBSD, NetBSD, MinGW.
2247 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes or gtk, gtk2,
2248 gtk3, lucid or athena, motif, no)
2249 --with-wide-int prefer wide Emacs integers (typically 62-bit)
2250 --without-xpm don't compile with XPM image support
2251 --without-jpeg don
't compile with JPEG image support
2252 --without-tiff don't compile with TIFF image support
2253 --without-gif don
't compile with GIF image support
2254 --without-png don't compile with PNG image support
2255 --without-rsvg don
't compile with SVG image support
2256 --without-xml2 don't compile with XML parsing support
2257 --without-imagemagick don
't compile with ImageMagick image support
2258 --without-xft don't use XFT
for anti aliased fonts
2259 --without-libotf don
't use libotf for OpenType font support
2260 --without-m17n-flt don't use m17n-flt
for text shaping
2261 --without-toolkit-scroll-bars
2262 don
't use Motif or Xaw3d scroll bars
2263 --without-xaw3d don't use Xaw3d
2264 --without-xim don
't use X11 XIM
2265 --with-ns use NeXTstep (Cocoa or GNUstep) windowing system
2266 --with-w32 use native MS Windows GUI in a Cygwin build
2267 --without-gpm don't use
-lgpm for mouse support on a GNU
/Linux
2269 --without-dbus don
't compile with D-Bus support
2270 --without-gconf don't compile with GConf support
2271 --without-gsettings don
't compile with GSettings support
2272 --without-selinux don't compile with SELinux support
2273 --without-gnutls don
't use -lgnutls for SSL/TLS support
2274 --without-zlib don't compile with zlib decompression support
2275 --with-file-notification=LIB
2276 use a
file notification library
(LIB one of
: yes,
2277 gfile
, inotify
, w32
, no
)
2278 --without-makeinfo don
't require makeinfo for building manuals
2279 --without-compress-info don't
compress the installed Info pages
2280 --with-pkg-config-prog=FILENAME
2281 file name of pkg-config
for finding GTK and librsvg
2282 --with-gameuser=USER user
for shared game score files
2283 --with-gnustep-conf=FILENAME
2284 name of GNUstep.conf
; default
$GNUSTEP_CONFIG_FILE,
2285 or
/etc
/GNUstep
/GNUstep.conf
2286 --with-x use the X Window System
2288 Some influential environment variables
:
2289 CC C compiler
command
2290 CFLAGS C compiler flags
2291 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
2292 nonstandard directory
<lib dir
>
2293 LIBS libraries to pass to the linker
, e.g.
-l<library
>
2294 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
2295 you have headers
in a nonstandard directory
<include dir
>
2297 XMKMF Path to xmkmf
, Makefile generator
for X Window System
2299 Use these variables to override the choices made by
`configure' or to help
2300 it to find libraries and programs with nonstandard names/locations.
2302 Report bugs to the package provider.
2307 if test "$ac_init_help" = "recursive"; then
2308 # If there are subdirs, report their specific --help.
2309 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2310 test -d "$ac_dir" ||
2311 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2316 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2318 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
2319 # A ".." for each directory in $ac_dir_suffix.
2320 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
2321 case $ac_top_builddir_sub in
2322 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2323 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2326 ac_abs_top_builddir=$ac_pwd
2327 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2328 # for backward compatibility:
2329 ac_top_builddir=$ac_top_build_prefix
2332 .) # We are building in place.
2334 ac_top_srcdir=$ac_top_builddir_sub
2335 ac_abs_top_srcdir=$ac_pwd ;;
2336 [\\/]* | ?:[\\/]* ) # Absolute name.
2337 ac_srcdir=$srcdir$ac_dir_suffix;
2338 ac_top_srcdir=$srcdir
2339 ac_abs_top_srcdir=$srcdir ;;
2341 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2342 ac_top_srcdir=$ac_top_build_prefix$srcdir
2343 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2345 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2347 cd "$ac_dir" || { ac_status=$?; continue; }
2348 # Check for guested configure.
2349 if test -f "$ac_srcdir/configure.gnu"; then
2351 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2352 elif test -f "$ac_srcdir/configure"; then
2354 $SHELL "$ac_srcdir/configure" --help=recursive
2356 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2358 cd "$ac_pwd" || { ac_status=$?; break; }
2362 test -n "$ac_init_help" && exit $ac_status
2363 if $ac_init_version; then
2365 emacs configure 24.3.50
2366 generated by GNU Autoconf 2.65
2368 Copyright (C) 2009 Free Software Foundation, Inc.
2369 This configure script is free software; the Free Software Foundation
2370 gives unlimited permission to copy, distribute and modify it.
2375 ## ------------------------ ##
2376 ## Autoconf initialization. ##
2377 ## ------------------------ ##
2379 # ac_fn_c_try_compile LINENO
2380 # --------------------------
2381 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2382 ac_fn_c_try_compile ()
2384 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2385 rm -f conftest.$ac_objext
2386 if { { ac_try="$ac_compile"
2388 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2389 *) ac_try_echo
=$ac_try;;
2391 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2392 $as_echo "$ac_try_echo"; } >&5
2393 (eval "$ac_compile") 2>conftest.err
2395 if test -s conftest.err
; then
2396 grep -v '^ *+' conftest.err
>conftest.er1
2397 cat conftest.er1
>&5
2398 mv -f conftest.er1 conftest.err
2400 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2401 test $ac_status = 0; } && {
2402 test -z "$ac_c_werror_flag" ||
2403 test ! -s conftest.err
2404 } && test -s conftest.
$ac_objext; then :
2407 $as_echo "$as_me: failed program was:" >&5
2408 sed 's/^/| /' conftest.
$ac_ext >&5
2412 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2413 as_fn_set_status
$ac_retval
2415 } # ac_fn_c_try_compile
2417 # ac_fn_c_try_cpp LINENO
2418 # ----------------------
2419 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2422 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2423 if { { ac_try
="$ac_cpp conftest.$ac_ext"
2425 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2426 *) ac_try_echo=$ac_try;;
2428 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2429 $as_echo "$ac_try_echo"; } >&5
2430 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2432 if test -s conftest.err; then
2433 grep -v '^ *+' conftest.err >conftest.er1
2434 cat conftest.er1 >&5
2435 mv -f conftest.er1 conftest.err
2437 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2438 test $ac_status = 0; } >/dev/null && {
2439 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2440 test ! -s conftest.err
2444 $as_echo "$as_me: failed program was:" >&5
2445 sed 's/^/| /' conftest.$ac_ext >&5
2449 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2450 as_fn_set_status $ac_retval
2454 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2455 # -------------------------------------------------------
2456 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2457 # the include files in INCLUDES and setting the cache variable VAR
2459 ac_fn_c_check_header_mongrel ()
2461 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2462 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2464 $as_echo_n "checking for $2... " >&6; }
2465 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2466 $as_echo_n "(cached) " >&6
2469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2470 $as_echo "$ac_res" >&6; }
2472 # Is the header compilable?
2473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2474 $as_echo_n "checking $2 usability... " >&6; }
2475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2476 /* end confdefs.h. */
2480 if ac_fn_c_try_compile "$LINENO"; then :
2481 ac_header_compiler=yes
2483 ac_header_compiler=no
2485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2487 $as_echo "$ac_header_compiler" >&6; }
2489 # Is the header present?
2490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2491 $as_echo_n "checking $2 presence... " >&6; }
2492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2493 /* end confdefs.h. */
2496 if ac_fn_c_try_cpp "$LINENO"; then :
2497 ac_header_preproc=yes
2499 ac_header_preproc=no
2501 rm -f conftest.err conftest.$ac_ext
2502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2503 $as_echo "$ac_header_preproc" >&6; }
2505 # So? What about this header?
2506 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2508 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2509 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2510 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2511 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2514 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2515 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2516 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2517 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2518 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2519 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2520 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2521 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2522 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2523 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2527 $as_echo_n "checking for $2... " >&6; }
2528 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2529 $as_echo_n "(cached) " >&6
2531 eval "$3=\$ac_header_compiler"
2534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2535 $as_echo "$ac_res" >&6; }
2537 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2539 } # ac_fn_c_check_header_mongrel
2541 # ac_fn_c_try_run LINENO
2542 # ----------------------
2543 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2544 # that executables *can* be run.
2547 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2548 if { { ac_try="$ac_link"
2550 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2551 *) ac_try_echo
=$ac_try;;
2553 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2554 $as_echo "$ac_try_echo"; } >&5
2555 (eval "$ac_link") 2>&5
2557 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2558 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
2559 { { case "(($ac_try" in
2560 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2561 *) ac_try_echo=$ac_try;;
2563 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2564 $as_echo "$ac_try_echo"; } >&5
2565 (eval "$ac_try") 2>&5
2567 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2568 test $ac_status = 0; }; }; then :
2571 $as_echo "$as_me: program exited with status $ac_status" >&5
2572 $as_echo "$as_me: failed program was:" >&5
2573 sed 's/^/| /' conftest.$ac_ext >&5
2575 ac_retval=$ac_status
2577 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2578 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2579 as_fn_set_status $ac_retval
2583 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2584 # -------------------------------------------------------
2585 # Tests whether HEADER exists and can be compiled using the include files in
2586 # INCLUDES, setting the cache variable VAR accordingly.
2587 ac_fn_c_check_header_compile ()
2589 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2591 $as_echo_n "checking for $2... " >&6; }
2592 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2593 $as_echo_n "(cached) " >&6
2595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2596 /* end confdefs.h. */
2600 if ac_fn_c_try_compile "$LINENO"; then :
2605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2609 $as_echo "$ac_res" >&6; }
2610 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2612 } # ac_fn_c_check_header_compile
2614 # ac_fn_c_try_link LINENO
2615 # -----------------------
2616 # Try to link conftest.$ac_ext, and return whether this succeeded.
2619 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2620 rm -f conftest.$ac_objext conftest$ac_exeext
2621 if { { ac_try="$ac_link"
2623 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2624 *) ac_try_echo
=$ac_try;;
2626 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2627 $as_echo "$ac_try_echo"; } >&5
2628 (eval "$ac_link") 2>conftest.err
2630 if test -s conftest.err
; then
2631 grep -v '^ *+' conftest.err
>conftest.er1
2632 cat conftest.er1
>&5
2633 mv -f conftest.er1 conftest.err
2635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2636 test $ac_status = 0; } && {
2637 test -z "$ac_c_werror_flag" ||
2638 test ! -s conftest.err
2639 } && test -s conftest
$ac_exeext && {
2640 test "$cross_compiling" = yes ||
2641 $as_test_x conftest
$ac_exeext
2645 $as_echo "$as_me: failed program was:" >&5
2646 sed 's/^/| /' conftest.
$ac_ext >&5
2650 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2651 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2652 # interfere with the next link command; also delete a directory that is
2653 # left behind by Apple's compiler. We do this before executing the actions.
2654 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2655 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2656 as_fn_set_status
$ac_retval
2658 } # ac_fn_c_try_link
2660 # ac_fn_c_check_decl LINENO SYMBOL VAR
2661 # ------------------------------------
2662 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2663 ac_fn_c_check_decl
()
2665 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2667 $as_echo_n "checking whether $2 is declared... " >&6; }
2668 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2669 $as_echo_n "(cached) " >&6
2671 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2672 /* end confdefs.h. */
2685 if ac_fn_c_try_compile
"$LINENO"; then :
2690 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2694 $as_echo "$ac_res" >&6; }
2695 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2697 } # ac_fn_c_check_decl
2699 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2700 # ----------------------------------------------
2701 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2702 ac_fn_c_check_header_preproc
()
2704 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2706 $as_echo_n "checking for $2... " >&6; }
2707 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2708 $as_echo_n "(cached) " >&6
2710 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2711 /* end confdefs.h. */
2714 if ac_fn_c_try_cpp
"$LINENO"; then :
2719 rm -f conftest.err conftest.
$ac_ext
2722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2723 $as_echo "$ac_res" >&6; }
2724 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2726 } # ac_fn_c_check_header_preproc
2728 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2729 # ----------------------------------------------------
2730 # Tries to find if the field MEMBER exists in type AGGR, after including
2731 # INCLUDES, setting cache variable VAR accordingly.
2732 ac_fn_c_check_member
()
2734 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2736 $as_echo_n "checking for $2.$3... " >&6; }
2737 if { as_var
=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2738 $as_echo_n "(cached) " >&6
2740 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2741 /* end confdefs.h. */
2753 if ac_fn_c_try_compile
"$LINENO"; then :
2756 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2757 /* end confdefs.h. */
2763 if (sizeof ac_aggr.$3)
2769 if ac_fn_c_try_compile
"$LINENO"; then :
2774 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2776 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2780 $as_echo "$ac_res" >&6; }
2781 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2783 } # ac_fn_c_check_member
2785 # ac_fn_c_check_func LINENO FUNC VAR
2786 # ----------------------------------
2787 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2788 ac_fn_c_check_func
()
2790 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2792 $as_echo_n "checking for $2... " >&6; }
2793 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2794 $as_echo_n "(cached) " >&6
2796 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2797 /* end confdefs.h. */
2798 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2799 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2800 #define $2 innocuous_$2
2802 /* System header to define __stub macros and hopefully few prototypes,
2803 which can conflict with char $2 (); below.
2804 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2805 <limits.h> exists even on freestanding compilers. */
2808 # include <limits.h>
2810 # include <assert.h>
2815 /* Override any GCC internal prototype to avoid an error.
2816 Use char because int might match the return type of a GCC
2817 builtin and then its argument prototype would still apply. */
2822 /* The GNU C library defines this for functions which it implements
2823 to always fail with ENOSYS. Some functions are actually named
2824 something starting with __ and the normal name is an alias. */
2825 #if defined __stub_$2 || defined __stub___$2
2837 if ac_fn_c_try_link
"$LINENO"; then :
2842 rm -f core conftest.err conftest.
$ac_objext \
2843 conftest
$ac_exeext conftest.
$ac_ext
2846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2847 $as_echo "$ac_res" >&6; }
2848 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2850 } # ac_fn_c_check_func
2852 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2853 # -------------------------------------------
2854 # Tests whether TYPE exists after having included INCLUDES, setting cache
2855 # variable VAR accordingly.
2856 ac_fn_c_check_type
()
2858 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2860 $as_echo_n "checking for $2... " >&6; }
2861 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2862 $as_echo_n "(cached) " >&6
2865 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2866 /* end confdefs.h. */
2877 if ac_fn_c_try_compile
"$LINENO"; then :
2878 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2879 /* end confdefs.h. */
2890 if ac_fn_c_try_compile
"$LINENO"; then :
2895 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2897 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2901 $as_echo "$ac_res" >&6; }
2902 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2904 } # ac_fn_c_check_type
2906 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2907 # --------------------------------------------
2908 # Tries to find the compile-time value of EXPR in a program that includes
2909 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2911 ac_fn_c_compute_int
()
2913 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2914 if test "$cross_compiling" = yes; then
2915 # Depending upon the size, compute the lo and hi bounds.
2916 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2917 /* end confdefs.h. */
2922 static int test_array [1 - 2 * !(($2) >= 0)];
2929 if ac_fn_c_try_compile
"$LINENO"; then :
2932 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2933 /* end confdefs.h. */
2938 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2945 if ac_fn_c_try_compile
"$LINENO"; then :
2946 ac_hi
=$ac_mid; break
2948 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2949 if test $ac_lo -le $ac_mid; then
2953 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2955 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2958 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2959 /* end confdefs.h. */
2964 static int test_array [1 - 2 * !(($2) < 0)];
2971 if ac_fn_c_try_compile
"$LINENO"; then :
2974 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2975 /* end confdefs.h. */
2980 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2987 if ac_fn_c_try_compile
"$LINENO"; then :
2988 ac_lo
=$ac_mid; break
2990 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2991 if test $ac_mid -le $ac_hi; then
2995 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2997 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3002 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3004 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3005 # Binary search between lo and hi bounds.
3006 while test "x$ac_lo" != "x$ac_hi"; do
3007 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
3008 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3009 /* end confdefs.h. */
3014 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
3021 if ac_fn_c_try_compile
"$LINENO"; then :
3024 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
3026 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3029 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
3033 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3034 /* end confdefs.h. */
3036 static long int longval () { return $2; }
3037 static unsigned long int ulongval () { return $2; }
3044 FILE *f = fopen ("conftest.val", "w");
3049 long int i = longval ();
3052 fprintf (f, "%ld", i);
3056 unsigned long int i = ulongval ();
3059 fprintf (f, "%lu", i);
3061 /* Do not output a trailing newline, as this causes \r\n confusion
3062 on some platforms. */
3063 return ferror (f) || fclose (f) != 0;
3069 if ac_fn_c_try_run
"$LINENO"; then :
3070 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
3074 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
3075 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
3079 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
3080 as_fn_set_status
$ac_retval
3082 } # ac_fn_c_compute_int
3083 cat >config.log
<<_ACEOF
3084 This file contains any messages produced by compilers while
3085 running configure, to aid debugging if configure makes a mistake.
3087 It was created by emacs $as_me 24.3.50, which was
3088 generated by GNU Autoconf 2.65. Invocation command line was
3100 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3101 uname -m = `(uname -m) 2>/dev/null || echo unknown`
3102 uname -r = `(uname -r) 2>/dev/null || echo unknown`
3103 uname -s = `(uname -s) 2>/dev/null || echo unknown`
3104 uname -v = `(uname -v) 2>/dev/null || echo unknown`
3106 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3107 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3109 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3110 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3111 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3112 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3113 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3114 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3115 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3119 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3123 test -z "$as_dir" && as_dir
=.
3124 $as_echo "PATH: $as_dir"
3140 # Keep a trace of the command line.
3141 # Strip out --no-create and --no-recursion so they do not pile up.
3142 # Strip out --silent because we don't want to record it for future runs.
3143 # Also quote any args containing shell meta-characters.
3144 # Make two passes to allow for proper duplicate-argument suppression.
3148 ac_must_keep_next
=false
3154 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
3155 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
3156 |
-silent |
--silent |
--silen |
--sile |
--sil)
3159 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3162 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
3164 as_fn_append ac_configure_args1
" '$ac_arg'"
3165 if test $ac_must_keep_next = true
; then
3166 ac_must_keep_next
=false
# Got value, back to normal.
3169 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
3170 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
3171 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
3172 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
3173 case "$ac_configure_args0 " in
3174 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3177 -* ) ac_must_keep_next
=true
;;
3180 as_fn_append ac_configure_args
" '$ac_arg'"
3185 { ac_configure_args0
=; unset ac_configure_args0
;}
3186 { ac_configure_args1
=; unset ac_configure_args1
;}
3188 # When interrupted or exit'd, cleanup temporary files, and complete
3189 # config.log. We remove comments because anyway the quotes in there
3190 # would cause problems or look ugly.
3191 # WARNING: Use '\'' to represent an apostrophe within the trap.
3192 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3193 trap 'exit_status=$?
3194 # Save into config.log some information that might help in debugging.
3199 ## ---------------- ##
3200 ## Cache variables. ##
3201 ## ---------------- ##
3204 # The following way of writing the cache mishandles newlines in values,
3206 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3207 eval ac_val=\$$ac_var
3211 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3212 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3215 _ | IFS | as_nl) ;; #(
3216 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3217 *) { eval $ac_var=; unset $ac_var;} ;;
3222 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3223 *${as_nl}ac_space=\ *)
3225 "s/'\''/'\''\\\\'\'''\''/g;
3226 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3229 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3237 ## ----------------- ##
3238 ## Output variables. ##
3239 ## ----------------- ##
3242 for ac_var in $ac_subst_vars
3244 eval ac_val=\$$ac_var
3246 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3248 $as_echo "$ac_var='\''$ac_val'\''"
3252 if test -n "$ac_subst_files"; then
3254 ## ------------------- ##
3255 ## File substitutions. ##
3256 ## ------------------- ##
3259 for ac_var
in $ac_subst_files
3261 eval ac_val
=\$
$ac_var
3263 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3265 $as_echo "$ac_var='\''$ac_val'\''"
3270 if test -s confdefs.h; then
3280 test "$ac_signal" != 0 &&
3281 $as_echo "$as_me: caught signal $ac_signal"
3282 $as_echo "$as_me: exit $exit_status"
3284 rm -f core *.core core.conftest.* &&
3285 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3288 for ac_signal
in 1 2 13 15; do
3289 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3293 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3294 rm -f -r conftest
* confdefs.h
3296 $as_echo "/* confdefs.h */" > confdefs.h
3298 # Predefined preprocessor variables.
3300 cat >>confdefs.h
<<_ACEOF
3301 #define PACKAGE_NAME "$PACKAGE_NAME"
3304 cat >>confdefs.h
<<_ACEOF
3305 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3308 cat >>confdefs.h
<<_ACEOF
3309 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3312 cat >>confdefs.h
<<_ACEOF
3313 #define PACKAGE_STRING "$PACKAGE_STRING"
3316 cat >>confdefs.h
<<_ACEOF
3317 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3320 cat >>confdefs.h
<<_ACEOF
3321 #define PACKAGE_URL "$PACKAGE_URL"
3325 # Let the site file select an alternate cache file if it wants to.
3326 # Prefer an explicitly selected file to automatically selected ones.
3329 if test -n "$CONFIG_SITE"; then
3330 ac_site_file1
=$CONFIG_SITE
3331 elif test "x$prefix" != xNONE
; then
3332 ac_site_file1
=$prefix/share
/config.site
3333 ac_site_file2
=$prefix/etc
/config.site
3335 ac_site_file1
=$ac_default_prefix/share
/config.site
3336 ac_site_file2
=$ac_default_prefix/etc
/config.site
3338 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
3340 test "x$ac_site_file" = xNONE
&& continue
3341 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
3342 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3343 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3344 sed 's/^/| /' "$ac_site_file" >&5
3349 if test -r "$cache_file"; then
3350 # Some versions of bash will fail to source /dev/null (special files
3351 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3352 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
3353 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3354 $as_echo "$as_me: loading cache $cache_file" >&6;}
3356 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
3357 *) .
"./$cache_file";;
3361 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3362 $as_echo "$as_me: creating cache $cache_file" >&6;}
3366 as_fn_append ac_header_list
" sys/systeminfo.h"
3367 as_fn_append ac_header_list
" coff.h"
3368 as_fn_append ac_header_list
" pty.h"
3369 as_fn_append ac_header_list
" sys/resource.h"
3370 as_fn_append ac_header_list
" sys/utsname.h"
3371 as_fn_append ac_header_list
" pwd.h"
3372 as_fn_append ac_header_list
" utmp.h"
3373 as_fn_append ac_header_list
" util.h"
3374 as_fn_append ac_header_list
" sys/socket.h"
3375 as_fn_append ac_header_list
" stdlib.h"
3376 as_fn_append ac_header_list
" unistd.h"
3377 as_fn_append ac_header_list
" sys/param.h"
3378 as_fn_append ac_header_list
" pthread.h"
3379 as_fn_append ac_header_list
" malloc/malloc.h"
3380 as_fn_append ac_header_list
" maillock.h"
3381 as_fn_append ac_header_list
" sys/un.h"
3382 as_fn_append ac_func_list
" tzset"
3383 as_fn_append ac_func_list
" readlinkat"
3384 as_fn_append ac_header_list
" dirent.h"
3385 as_fn_append ac_header_list
" execinfo.h"
3386 as_fn_append ac_func_list
" faccessat"
3387 as_fn_append ac_func_list
" fcntl"
3388 as_fn_append ac_func_list
" fdopendir"
3389 as_fn_append ac_header_list
" stdio_ext.h"
3390 as_fn_append ac_func_list
" fstatat"
3391 as_fn_append ac_func_list
" fsync"
3392 gl_getopt_required
=GNU
3393 as_fn_append ac_header_list
" getopt.h"
3394 as_fn_append ac_func_list
" gettimeofday"
3395 as_fn_append ac_func_list
" nanotime"
3396 as_fn_append ac_header_list
" sys/time.h"
3397 as_fn_append ac_header_list
" wchar.h"
3398 as_fn_append ac_header_list
" stdint.h"
3399 as_fn_append ac_header_list
" inttypes.h"
3400 as_fn_append ac_func_list
" lstat"
3401 as_fn_append ac_func_list
" mkostemp"
3402 as_fn_append ac_func_list
" pipe2"
3403 as_fn_append ac_header_list
" sys/select.h"
3404 as_fn_append ac_func_list
" pselect"
3405 as_fn_append ac_func_list
" pthread_sigmask"
3406 as_fn_append ac_func_list
" readlink"
3407 as_fn_append ac_func_list
" strtoimax"
3408 as_fn_append ac_func_list
" strtoumax"
3409 as_fn_append ac_func_list
" symlink"
3410 as_fn_append ac_header_list
" sys/stat.h"
3411 as_fn_append ac_func_list
" localtime_r"
3412 as_fn_append ac_header_list
" utime.h"
3413 as_fn_append ac_func_list
" futimes"
3414 as_fn_append ac_func_list
" futimesat"
3415 as_fn_append ac_func_list
" futimens"
3416 as_fn_append ac_func_list
" utimensat"
3417 as_fn_append ac_func_list
" lutimes"
3418 as_fn_append ac_func_list
" getdtablesize"
3419 as_fn_append ac_func_list
" secure_getenv"
3420 # Check that the precious variables saved in the cache have kept the same
3422 ac_cache_corrupted
=false
3423 for ac_var
in $ac_precious_vars; do
3424 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
3425 eval ac_new_set
=\
$ac_env_${ac_var}_set
3426 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
3427 eval ac_new_val
=\
$ac_env_${ac_var}_value
3428 case $ac_old_set,$ac_new_set in
3430 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3431 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3432 ac_cache_corrupted
=: ;;
3434 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3435 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3436 ac_cache_corrupted
=: ;;
3439 if test "x$ac_old_val" != "x$ac_new_val"; then
3440 # differences in whitespace do not lead to failure.
3441 ac_old_val_w
=`echo x $ac_old_val`
3442 ac_new_val_w
=`echo x $ac_new_val`
3443 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3444 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3445 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3446 ac_cache_corrupted
=:
3448 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3449 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3450 eval $ac_var=\
$ac_old_val
3452 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3453 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3454 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3455 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3458 # Pass precious variables to config.status.
3459 if test "$ac_new_set" = set; then
3461 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3462 *) ac_arg
=$ac_var=$ac_new_val ;;
3464 case " $ac_configure_args " in
3465 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3466 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
3470 if $ac_cache_corrupted; then
3471 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3472 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3473 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3474 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3475 as_fn_error
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3477 ## -------------------- ##
3478 ## Main body of script. ##
3479 ## -------------------- ##
3482 ac_cpp
='$CPP $CPPFLAGS'
3483 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3484 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3485 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3489 emacs_config_options
="$@"
3490 ## Add some environment variables, if they were passed via the environment
3491 ## rather than on the command-line.
3492 for var
in CFLAGS CPPFLAGS LDFLAGS
; do
3493 case "$emacs_config_options" in
3494 *$var=*) continue ;;
3497 test x
"$val" = x
&& continue
3498 emacs_config_options
="${emacs_config_options}${emacs_config_options:+ }$var=\"$val\""
3501 ac_config_headers
="$ac_config_headers src/config.h:src/config.in"
3505 for ac_dir
in build-aux
"$srcdir"/build-aux
; do
3506 for ac_t
in install-sh
install.sh shtool
; do
3507 if test -f "$ac_dir/$ac_t"; then
3509 ac_install_sh
="$ac_aux_dir/$ac_t -c"
3514 if test -z "$ac_aux_dir"; then
3515 as_fn_error
"cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
3518 # These three variables are undocumented and unsupported,
3519 # and are intended to be withdrawn in a future Autoconf release.
3520 # They can cause serious problems if a builder's source tree is in a directory
3521 # whose full name contains unusual characters.
3522 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3523 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3524 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3527 am__api_version
='1.11'
3529 # Find a good install program. We prefer a C program (faster),
3530 # so one script is as good as another. But avoid the broken or
3531 # incompatible versions:
3532 # SysV /etc/install, /usr/sbin/install
3533 # SunOS /usr/etc/install
3534 # IRIX /sbin/install
3536 # AmigaOS /C/install, which installs bootblocks on floppy discs
3537 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3538 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3539 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3540 # OS/2's system install, which has a completely different semantic
3541 # ./install, which can be erroneously created by make from ./install.sh.
3542 # Reject install programs that cannot install multiple files.
3543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3544 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3545 if test -z "$INSTALL"; then
3546 if test "${ac_cv_path_install+set}" = set; then :
3547 $as_echo_n "(cached) " >&6
3549 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3553 test -z "$as_dir" && as_dir
=.
3554 # Account for people who put trailing slashes in PATH elements.
3555 case $as_dir/ in #((
3556 .
/ | .
// |
/[cC
]/* | \
3557 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
3558 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
3561 # OSF1 and SCO ODT 3.0 have their own names for install.
3562 # Don't use installbsd from OSF since it installs stuff as root
3564 for ac_prog
in ginstall scoinst
install; do
3565 for ac_exec_ext
in '' $ac_executable_extensions; do
3566 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3567 if test $ac_prog = install &&
3568 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3569 # AIX install. It has an incompatible calling convention.
3571 elif test $ac_prog = install &&
3572 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3573 # program-specific install script used by HP pwplus--don't use.
3576 rm -rf conftest.one conftest.two conftest.dir
3577 echo one
> conftest.one
3578 echo two
> conftest.two
3580 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
3581 test -s conftest.one
&& test -s conftest.two
&&
3582 test -s conftest.dir
/conftest.one
&&
3583 test -s conftest.dir
/conftest.two
3585 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
3598 rm -rf conftest.one conftest.two conftest.dir
3601 if test "${ac_cv_path_install+set}" = set; then
3602 INSTALL
=$ac_cv_path_install
3604 # As a last resort, use the slow shell script. Don't cache a
3605 # value for INSTALL within a source directory, because that will
3606 # break other packages using the cache if that directory is
3607 # removed, or if the value is a relative name.
3608 INSTALL
=$ac_install_sh
3611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3612 $as_echo "$INSTALL" >&6; }
3614 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3615 # It thinks the first close brace ends the variable substitution.
3616 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3618 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3620 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3623 $as_echo_n "checking whether build environment is sane... " >&6; }
3626 echo timestamp
> conftest.
file
3627 # Reject unsafe characters in $srcdir or the absolute working directory
3628 # name. Accept space and tab only in the latter.
3632 *[\\\"\
#\$\&\'\`$am_lf]*)
3633 as_fn_error
"unsafe absolute working directory name" "$LINENO" 5;;
3636 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
3637 as_fn_error
"unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3640 # Do `set' in a subshell so we don't clobber the current shell's
3641 # arguments. Must try -L first in case configure is actually a
3642 # symlink; some systems play weird games with the mod time of symlinks
3643 # (eg FreeBSD returns the mod time of the symlink's containing
3646 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3647 if test "$*" = "X"; then
3649 set X
`ls -t "$srcdir/configure" conftest.file`
3652 if test "$*" != "X $srcdir/configure conftest.file" \
3653 && test "$*" != "X conftest.file $srcdir/configure"; then
3655 # If neither matched, then we have a broken ls. This can happen
3656 # if, for instance, CONFIG_SHELL is bash and it inherits a
3657 # broken ls alias from the environment. This has actually
3658 # happened. Such a system could not be considered "sane".
3659 as_fn_error
"ls -t appears to fail. Make sure there is not a broken
3660 alias in your environment" "$LINENO" 5
3663 test "$2" = conftest.
file
3669 as_fn_error
"newly created file is older than distributed files!
3670 Check your system clock" "$LINENO" 5
3672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3673 $as_echo "yes" >&6; }
3674 test "$program_prefix" != NONE
&&
3675 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
3676 # Use a double $ so make ignores it.
3677 test "$program_suffix" != NONE
&&
3678 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
3679 # Double any \ or $.
3680 # By default was `s,x,x', remove it if useless.
3681 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
3682 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
3684 # expand $ac_aux_dir to an absolute path
3685 am_aux_dir
=`cd $ac_aux_dir && pwd`
3687 if test x
"${MISSING+set}" != xset
; then
3690 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
3692 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
3695 # Use eval to expand $SHELL
3696 if eval "$MISSING --run true"; then
3697 am_missing_run
="$MISSING --run "
3700 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3701 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3704 if test x
"${install_sh}" != xset
; then
3707 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
3709 install_sh
="\${SHELL} $am_aux_dir/install-sh"
3713 # Installed binaries are usually stripped using `strip' when the user
3714 # run `make install-strip'. However `strip' might not be the right
3715 # tool to use in cross-compilation environments, therefore Automake
3716 # will honor the `STRIP' environment variable to overrule this program.
3717 if test "$cross_compiling" != no
; then
3718 if test -n "$ac_tool_prefix"; then
3719 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3720 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
3721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3722 $as_echo_n "checking for $ac_word... " >&6; }
3723 if test "${ac_cv_prog_STRIP+set}" = set; then :
3724 $as_echo_n "(cached) " >&6
3726 if test -n "$STRIP"; then
3727 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
3729 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3733 test -z "$as_dir" && as_dir
=.
3734 for ac_exec_ext
in '' $ac_executable_extensions; do
3735 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3736 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
3737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3746 STRIP
=$ac_cv_prog_STRIP
3747 if test -n "$STRIP"; then
3748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3749 $as_echo "$STRIP" >&6; }
3751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3752 $as_echo "no" >&6; }
3757 if test -z "$ac_cv_prog_STRIP"; then
3759 # Extract the first word of "strip", so it can be a program name with args.
3760 set dummy strip
; ac_word
=$2
3761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3762 $as_echo_n "checking for $ac_word... " >&6; }
3763 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3764 $as_echo_n "(cached) " >&6
3766 if test -n "$ac_ct_STRIP"; then
3767 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
3769 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3773 test -z "$as_dir" && as_dir
=.
3774 for ac_exec_ext
in '' $ac_executable_extensions; do
3775 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3776 ac_cv_prog_ac_ct_STRIP
="strip"
3777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3786 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
3787 if test -n "$ac_ct_STRIP"; then
3788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3789 $as_echo "$ac_ct_STRIP" >&6; }
3791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3792 $as_echo "no" >&6; }
3795 if test "x$ac_ct_STRIP" = x
; then
3798 case $cross_compiling:$ac_tool_warned in
3800 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3801 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3802 ac_tool_warned
=yes ;;
3807 STRIP
="$ac_cv_prog_STRIP"
3811 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
3813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3814 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3815 if test -z "$MKDIR_P"; then
3816 if test "${ac_cv_path_mkdir+set}" = set; then :
3817 $as_echo_n "(cached) " >&6
3819 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3820 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
3823 test -z "$as_dir" && as_dir
=.
3824 for ac_prog
in mkdir gmkdir
; do
3825 for ac_exec_ext
in '' $ac_executable_extensions; do
3826 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } ||
continue
3827 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3828 'mkdir (GNU coreutils) '* | \
3829 'mkdir (coreutils) '* | \
3830 'mkdir (fileutils) '4.1*)
3831 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
3841 test -d .
/--version && rmdir .
/--version
3842 if test "${ac_cv_path_mkdir+set}" = set; then
3843 MKDIR_P
="$ac_cv_path_mkdir -p"
3845 # As a last resort, use the slow shell script. Don't cache a
3846 # value for MKDIR_P within a source directory, because that will
3847 # break other packages using the cache if that directory is
3848 # removed, or if the value is a relative name.
3849 MKDIR_P
="$ac_install_sh -d"
3852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3853 $as_echo "$MKDIR_P" >&6; }
3857 [\\/$
]* | ?
:[\\/]*) ;;
3858 */*) mkdir_p
="\$(top_builddir)/$mkdir_p" ;;
3861 for ac_prog
in gawk mawk nawk
awk
3863 # Extract the first word of "$ac_prog", so it can be a program name with args.
3864 set dummy
$ac_prog; ac_word
=$2
3865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3866 $as_echo_n "checking for $ac_word... " >&6; }
3867 if test "${ac_cv_prog_AWK+set}" = set; then :
3868 $as_echo_n "(cached) " >&6
3870 if test -n "$AWK"; then
3871 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
3873 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3877 test -z "$as_dir" && as_dir
=.
3878 for ac_exec_ext
in '' $ac_executable_extensions; do
3879 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3880 ac_cv_prog_AWK
="$ac_prog"
3881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3891 if test -n "$AWK"; then
3892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3893 $as_echo "$AWK" >&6; }
3895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3896 $as_echo "no" >&6; }
3900 test -n "$AWK" && break
3903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3904 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3906 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3907 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3908 $as_echo_n "(cached) " >&6
3910 cat >conftest.
make <<\_ACEOF
3913 @
echo '@@@%%%=$(MAKE)=@@@%%%'
3915 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3916 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3918 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
3920 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
3924 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
3925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3926 $as_echo "yes" >&6; }
3929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3930 $as_echo "no" >&6; }
3931 SET_MAKE
="MAKE=${MAKE-make}"
3934 rm -rf .tst
2>/dev
/null
3935 mkdir .tst
2>/dev
/null
3936 if test -d .tst
; then
3941 rmdir .tst
2>/dev
/null
3943 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3944 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3945 # is not polluted with repeated "-I."
3946 am__isrc
=' -I$(srcdir)'
3947 # test to see if srcdir already configured
3948 if test -f $srcdir/config.status
; then
3949 as_fn_error
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3953 # test whether we have cygpath
3954 if test -z "$CYGPATH_W"; then
3955 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
3956 CYGPATH_W
='cygpath -w'
3963 # Define the identity of the package.
3968 cat >>confdefs.h
<<_ACEOF
3969 #define PACKAGE "$PACKAGE"
3973 cat >>confdefs.h
<<_ACEOF
3974 #define VERSION "$VERSION"
3977 # Some tools Automake needs.
3979 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3982 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
3985 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3988 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
3991 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
3993 # We need awk for the "check" target. The system "awk" is bad on
3995 # Always define AMTAR for backward compatibility.
3997 AMTAR
=${AMTAR-"${am_missing_run}tar"}
3999 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
4008 lispdir
='${datadir}/emacs/${version}/lisp'
4009 leimdir
='${datadir}/emacs/${version}/leim'
4010 standardlisppath
='${lispdir}:${leimdir}'
4011 locallisppath
='${datadir}/emacs/${version}/site-lisp:'\
4012 '${datadir}/emacs/site-lisp'
4013 lisppath
='${locallisppath}:${standardlisppath}'
4014 etcdir
='${datadir}/emacs/${version}/etc'
4015 archlibdir
='${libexecdir}/emacs/${version}/${configuration}'
4016 etcdocdir
='${datadir}/emacs/${version}/etc'
4017 gamedir
='${localstatedir}/games/emacs'
4020 # Check whether --with-all was given.
4021 if test "${with_all+set}" = set; then :
4022 withval
=$with_all; with_features
=$withval
4031 # Check whether --with-pop was given.
4032 if test "${with_pop+set}" = set; then :
4035 with_pop
=$with_features
4038 if test "$with_pop" = yes; then
4039 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
4044 # Check whether --with-kerberos was given.
4045 if test "${with_kerberos+set}" = set; then :
4046 withval
=$with_kerberos;
4051 if test "$with_kerberos" != no
; then
4052 $as_echo "#define KERBEROS 1" >>confdefs.h
4057 # Check whether --with-kerberos5 was given.
4058 if test "${with_kerberos5+set}" = set; then :
4059 withval
=$with_kerberos5;
4064 if test "${with_kerberos5}" != no
; then
4065 if test "${with_kerberos}" = no
; then
4067 $as_echo "#define KERBEROS 1" >>confdefs.h
4071 $as_echo "#define KERBEROS5 1" >>confdefs.h
4076 # Check whether --with-hesiod was given.
4077 if test "${with_hesiod+set}" = set; then :
4078 withval
=$with_hesiod;
4083 if test "$with_hesiod" != no
; then
4085 $as_echo "#define HESIOD 1" >>confdefs.h
4090 # Check whether --with-mmdf was given.
4091 if test "${with_mmdf+set}" = set; then :
4097 if test "$with_mmdf" != no
; then
4099 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
4104 # Check whether --with-mail-unlink was given.
4105 if test "${with_mail_unlink+set}" = set; then :
4106 withval
=$with_mail_unlink;
4111 if test "$with_mail_unlink" != no
; then
4113 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
4118 # Check whether --with-mailhost was given.
4119 if test "${with_mailhost+set}" = set; then :
4120 withval
=$with_mailhost;
4121 cat >>confdefs.h
<<_ACEOF
4122 #define MAILHOST "$withval"
4129 # Check whether --with-sound was given.
4130 if test "${with_sound+set}" = set; then :
4131 withval
=$with_sound; case "${withval}" in
4132 yes|no|ossaudio|alsa
) val
=$withval ;;
4133 *) as_fn_error
"\`--with-sound=$withval' is invalid;
4134 this option's value should be \`yes', \`no', \`ossaudio', or \`alsa'." "$LINENO" 5
4140 with_sound
=$with_features
4145 # Check whether --with-x-toolkit was given.
4146 if test "${with_x_toolkit+set}" = set; then :
4147 withval
=$with_x_toolkit; case "${withval}" in
4148 y | ye |
yes ) val
=gtk
;;
4150 l | lu | luc | luci | lucid
) val
=lucid
;;
4151 a |
at | ath | athe | athen | athena
) val
=athena
;;
4152 m | mo | mot | moti | motif
) val
=motif
;;
4153 g | gt | gtk
) val
=gtk
;;
4157 as_fn_error
"\`--with-x-toolkit=$withval' is invalid;
4158 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk',
4159 \`gtk2' or \`gtk3'. \`yes' and \`gtk' are synonyms.
4160 \`athena' and \`lucid' are synonyms." "$LINENO" 5
4169 # Check whether --with-wide-int was given.
4170 if test "${with_wide_int+set}" = set; then :
4171 withval
=$with_wide_int;
4176 if test "$with_wide_int" = yes; then
4178 $as_echo "#define WIDE_EMACS_INT 1" >>confdefs.h
4183 # Check whether --with-xpm was given.
4184 if test "${with_xpm+set}" = set; then :
4187 with_xpm
=$with_features
4191 # Check whether --with-jpeg was given.
4192 if test "${with_jpeg+set}" = set; then :
4195 with_jpeg
=$with_features
4199 # Check whether --with-tiff was given.
4200 if test "${with_tiff+set}" = set; then :
4203 with_tiff
=$with_features
4207 # Check whether --with-gif was given.
4208 if test "${with_gif+set}" = set; then :
4211 with_gif
=$with_features
4215 # Check whether --with-png was given.
4216 if test "${with_png+set}" = set; then :
4219 with_png
=$with_features
4223 # Check whether --with-rsvg was given.
4224 if test "${with_rsvg+set}" = set; then :
4227 with_rsvg
=$with_features
4231 # Check whether --with-xml2 was given.
4232 if test "${with_xml2+set}" = set; then :
4235 with_xml2
=$with_features
4239 # Check whether --with-imagemagick was given.
4240 if test "${with_imagemagick+set}" = set; then :
4241 withval
=$with_imagemagick;
4243 with_imagemagick
=$with_features
4248 # Check whether --with-xft was given.
4249 if test "${with_xft+set}" = set; then :
4252 with_xft
=$with_features
4256 # Check whether --with-libotf was given.
4257 if test "${with_libotf+set}" = set; then :
4258 withval
=$with_libotf;
4260 with_libotf
=$with_features
4264 # Check whether --with-m17n-flt was given.
4265 if test "${with_m17n_flt+set}" = set; then :
4266 withval
=$with_m17n_flt;
4268 with_m17n_flt
=$with_features
4273 # Check whether --with-toolkit-scroll-bars was given.
4274 if test "${with_toolkit_scroll_bars+set}" = set; then :
4275 withval
=$with_toolkit_scroll_bars;
4277 with_toolkit_scroll_bars
=$with_features
4281 # Check whether --with-xaw3d was given.
4282 if test "${with_xaw3d+set}" = set; then :
4283 withval
=$with_xaw3d;
4285 with_xaw3d
=$with_features
4289 # Check whether --with-xim was given.
4290 if test "${with_xim+set}" = set; then :
4293 with_xim
=$with_features
4297 # Check whether --with-ns was given.
4298 if test "${with_ns+set}" = set; then :
4305 # Check whether --with-w32 was given.
4306 if test "${with_w32+set}" = set; then :
4314 # Check whether --with-gpm was given.
4315 if test "${with_gpm+set}" = set; then :
4318 with_gpm
=$with_features
4322 # Check whether --with-dbus was given.
4323 if test "${with_dbus+set}" = set; then :
4326 with_dbus
=$with_features
4330 # Check whether --with-gconf was given.
4331 if test "${with_gconf+set}" = set; then :
4332 withval
=$with_gconf;
4334 with_gconf
=$with_features
4338 # Check whether --with-gsettings was given.
4339 if test "${with_gsettings+set}" = set; then :
4340 withval
=$with_gsettings;
4342 with_gsettings
=$with_features
4346 # Check whether --with-selinux was given.
4347 if test "${with_selinux+set}" = set; then :
4348 withval
=$with_selinux;
4350 with_selinux
=$with_features
4354 # Check whether --with-gnutls was given.
4355 if test "${with_gnutls+set}" = set; then :
4356 withval
=$with_gnutls;
4358 with_gnutls
=$with_features
4362 # Check whether --with-zlib was given.
4363 if test "${with_zlib+set}" = set; then :
4366 with_zlib
=$with_features
4371 # Check whether --with-file-notification was given.
4372 if test "${with_file_notification+set}" = set; then :
4373 withval
=$with_file_notification; case "${withval}" in
4374 y | ye |
yes ) val
=yes ;;
4376 g | gf | gfi | gfil | gfile
) val
=gfile
;;
4377 i |
in | ino | inot | inoti | inotif | inotify
) val
=inotify
;;
4378 w | w3 | w32
) val
=w32
;;
4379 * ) as_fn_error
"\`--with-file-notification=$withval' is invalid;
4380 this option's value should be \`yes', \`no', \`gfile', \`inotify' or \`w32'.
4381 \`yes' is a synonym for \`w32' on MS-Windows, for \`no' on Nextstep,
4382 otherwise for the first of \`gfile' or \`inotify' that is usable." "$LINENO" 5
4385 with_file_notification
=$val
4388 with_file_notification
=$with_features
4392 ## For the times when you want to build Emacs but don't have
4393 ## a suitable makeinfo, and can live without the manuals.
4395 # Check whether --with-makeinfo was given.
4396 if test "${with_makeinfo+set}" = set; then :
4397 withval
=$with_makeinfo;
4399 with_makeinfo
=$with_features
4403 ## Makefile.in needs the cache file name.
4406 ## This is an option because I do not know if all info/man support
4407 ## compressed files, nor how to test if they do so.
4409 # Check whether --with-compress-info was given.
4410 if test "${with_compress_info+set}" = set; then :
4411 withval
=$with_compress_info;
4413 with_compress_info
=$with_features
4416 if test $with_compress_info = yes; then
4424 # Check whether --with-pkg-config-prog was given.
4425 if test "${with_pkg_config_prog+set}" = set; then :
4426 withval
=$with_pkg_config_prog;
4429 if test "X${with_pkg_config_prog}" != X
; then
4430 if test "${with_pkg_config_prog}" != yes; then
4431 PKG_CONFIG
="${with_pkg_config_prog}"
4436 # Check whether --with-gameuser was given.
4437 if test "${with_gameuser+set}" = set; then :
4438 withval
=$with_gameuser;
4441 test "X${with_gameuser}" != X
&& test "${with_gameuser}" != yes \
4442 && gameuser
="${with_gameuser}"
4443 test "X$gameuser" = X
&& gameuser
=games
4446 # Check whether --with-gnustep-conf was given.
4447 if test "${with_gnustep_conf+set}" = set; then :
4448 withval
=$with_gnustep_conf;
4451 test "X${with_gnustep_conf}" != X
&& test "${with_gnustep_conf}" != yes && \
4452 GNUSTEP_CONFIG_FILE
="${with_gnustep_conf}"
4453 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
4454 GNUSTEP_CONFIG_FILE
=/etc
/GNUstep
/GNUstep.conf
4456 # Check whether --enable-ns-self-contained was given.
4457 if test "${enable_ns_self_contained+set}" = set; then :
4458 enableval
=$enable_ns_self_contained; EN_NS_SELF_CONTAINED
=$enableval
4460 EN_NS_SELF_CONTAINED
=yes
4464 # Check whether --enable-locallisppath was given.
4465 if test "${enable_locallisppath+set}" = set; then :
4466 enableval
=$enable_locallisppath; if test "${enableval}" = "no"; then
4468 elif test "${enableval}" != "yes"; then
4469 locallisppath
=${enableval}
4474 # Check whether --enable-checking was given.
4475 if test "${enable_checking+set}" = set; then :
4476 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
4479 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
4480 for check
in $ac_checking_flags
4483 # these set all the flags to specific states
4484 yes) ac_enable_checking
=1 ;;
4485 no
) ac_enable_checking
= ;
4486 ac_gc_check_stringbytes
= ;
4487 ac_gc_check_string_overrun
= ;
4488 ac_gc_check_string_free_list
= ;
4489 ac_xmalloc_overrun
= ;
4490 ac_gc_check_cons_list
= ;
4492 all
) ac_enable_checking
=1 ;
4493 ac_gc_check_stringbytes
=1 ;
4494 ac_gc_check_string_overrun
=1 ;
4495 ac_gc_check_string_free_list
=1 ;
4496 ac_xmalloc_overrun
=1 ;
4497 ac_gc_check_cons_list
=1 ;
4498 ac_glyphs_debug
=1 ;;
4499 # these enable particular checks
4500 stringbytes
) ac_gc_check_stringbytes
=1 ;;
4501 stringoverrun
) ac_gc_check_string_overrun
=1 ;;
4502 stringfreelist
) ac_gc_check_string_free_list
=1 ;;
4503 xmallocoverrun
) ac_xmalloc_overrun
=1 ;;
4504 conslist
) ac_gc_check_cons_list
=1 ;;
4505 glyphs
) ac_glyphs_debug
=1 ;;
4506 *) as_fn_error
"unknown check category $check" "$LINENO" 5 ;;
4511 if test x
$ac_enable_checking != x
; then
4513 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
4516 if test x
$ac_gc_check_stringbytes != x
; then
4518 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
4521 if test x
$ac_gc_check_string_overrun != x
; then
4523 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
4526 if test x
$ac_gc_check_string_free_list != x
; then
4528 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
4531 if test x
$ac_xmalloc_overrun != x
; then
4533 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
4536 if test x
$ac_gc_check_cons_list != x
; then
4538 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
4541 if test x
$ac_glyphs_debug != x
; then
4543 $as_echo "#define GLYPH_DEBUG 1" >>confdefs.h
4547 # Check whether --enable-check-lisp-object-type was given.
4548 if test "${enable_check_lisp_object_type+set}" = set; then :
4549 enableval
=$enable_check_lisp_object_type; if test "${enableval}" != "no"; then
4551 $as_echo "#define CHECK_LISP_OBJECT_TYPE 1" >>confdefs.h
4558 # Check whether --enable-profiling was given.
4559 if test "${enable_profiling+set}" = set; then :
4560 enableval
=$enable_profiling; ac_enable_profiling
="${enableval}"
4563 if test x
$ac_enable_profiling != x
; then
4564 PROFILING_CFLAGS
="-DPROFILING=1 -pg"
4570 # Check whether --enable-autodepend was given.
4571 if test "${enable_autodepend+set}" = set; then :
4572 enableval
=$enable_autodepend; ac_enable_autodepend
="${enableval}"
4574 ac_enable_autodepend
=yes
4578 # Check whether --enable-gtk-deprecation-warnings was given.
4579 if test "${enable_gtk_deprecation_warnings+set}" = set; then :
4580 enableval
=$enable_gtk_deprecation_warnings; ac_enable_gtk_deprecation_warnings
="${enableval}"
4584 #### Make srcdir absolute, if it isn't already. It's important to
4585 #### avoid running the file name through pwd unnecessarily, since pwd can
4586 #### give you automounter prefixes, which can go away. We do all this
4587 #### so Emacs can find its files when run uninstalled.
4588 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
4591 [\\/]* | ?
:[\\/]*) ;;
4593 ## We may be able to use the $PWD environment variable to make this
4594 ## absolute. But sometimes PWD is inaccurate.
4595 ## Note: we used to use $PWD at the end instead of `pwd`,
4596 ## but that tested only for a well-formed and valid PWD,
4597 ## it did not object when PWD was well-formed and valid but just wrong.
4598 if test ".$PWD" != "." && test ".`(cd "$PWD" ; sh -c pwd)`" = ".`pwd`" ;
4602 srcdir
=`(cd "$srcdir"; pwd)`
4605 * ) srcdir
=`(cd "$srcdir"; pwd)` ;;
4608 ### Canonicalize the configuration name.
4610 # Make sure we can run config.sub.
4611 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
4612 as_fn_error
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4615 $as_echo_n "checking build system type... " >&6; }
4616 if test "${ac_cv_build+set}" = set; then :
4617 $as_echo_n "(cached) " >&6
4619 ac_build_alias
=$build_alias
4620 test "x$ac_build_alias" = x
&&
4621 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
4622 test "x$ac_build_alias" = x
&&
4623 as_fn_error
"cannot guess build type; you must specify one" "$LINENO" 5
4624 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4625 as_fn_error
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4629 $as_echo "$ac_cv_build" >&6; }
4630 case $ac_cv_build in
4632 *) as_fn_error
"invalid value of canonical build" "$LINENO" 5;;
4635 ac_save_IFS
=$IFS; IFS
='-'
4641 # Remember, the first character of IFS is used to create $*,
4642 # except with old shells:
4645 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
4648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4649 $as_echo_n "checking host system type... " >&6; }
4650 if test "${ac_cv_host+set}" = set; then :
4651 $as_echo_n "(cached) " >&6
4653 if test "x$host_alias" = x
; then
4654 ac_cv_host
=$ac_cv_build
4656 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4657 as_fn_error
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4662 $as_echo "$ac_cv_host" >&6; }
4665 *) as_fn_error
"invalid value of canonical host" "$LINENO" 5;;
4668 ac_save_IFS
=$IFS; IFS
='-'
4674 # Remember, the first character of IFS is used to create $*,
4675 # except with old shells:
4678 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
4682 configuration
=${host_alias-${build_alias-$host}}
4686 ### If you add support for a new configuration, add code to this
4687 ### switch statement to recognize your configuration name and select
4688 ### the appropriate operating system file.
4690 ### You would hope that you could choose an s/*.h
4691 ### file based on the operating system portion. However, it turns out
4692 ### that each s/*.h file is pretty manufacturer-specific.
4693 ### So we basically have to have a special case for each
4694 ### configuration name.
4696 ### As far as handling version numbers on operating systems is
4697 ### concerned, make sure things will fail in a fixable way. If
4698 ### /etc/MACHINES doesn't say anything about version numbers, be
4699 ### prepared to handle anything reasonably. If version numbers
4700 ### matter, be sure /etc/MACHINES says something about it.
4702 opsys
='' unported
=no
4703 case "${canonical}" in
4705 ## GNU/Linux and similar ports
4720 ## FreeBSD kernel + glibc based userland
4735 ## Apple Darwin / Mac OS X
4737 case "${canonical}" in
4744 ## Use fink packages if available.
4745 ## FIXME find a better way to do this: http://debbugs.gnu.org/11507
4746 ## if test -d /sw/include && test -d /sw/lib; then
4747 ## GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
4748 ## NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
4757 ## HP 9000 series 700 and 800, running HP/UX
4758 hppa
*-hp-hpux10.2
* )
4761 hppa
*-hp-hpux1[1-9]* )
4763 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
4767 rs6000-ibm-aix4.
[23]* )
4770 powerpc-ibm-aix4.
[23]* )
4773 rs6000-ibm-aix
[56]* )
4776 powerpc-ibm-aix
[56]* )
4780 ## Silicon Graphics machines
4784 # Without defining _LANGUAGE_C, things get masked out in the headers
4785 # so that, for instance, grepping for `free' in stdlib.h fails and
4786 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
4787 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
4792 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* \
4793 | x86_64-
*-solaris2* | x86_64-
*-sunos5*)
4794 case "${canonical}" in
4796 amd64-
*-*|x86_64-
*-*) ;;
4800 case "${canonical}" in
4801 *-sunos5.6
* |
*-solaris2.6
* )
4805 *-sunos5.
[7-9]* |
*-solaris2.
[7-9]* )
4807 emacs_check_sunpro_c
=yes
4809 *-sunos5* |
*-solaris* )
4811 emacs_check_sunpro_c
=yes
4814 ## Watch out for a compiler that we know will not work.
4815 case "${canonical}" in
4816 *-solaris* |
*-sunos5* )
4817 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
4818 ## /usr/ucb/cc doesn't work;
4819 ## we should find some other compiler that does work.
4827 ## Intel 386 machines where we don't care about the manufacturer.
4829 case "${canonical}" in
4830 *-darwin* ) opsys
=darwin
;;
4833 # MinGW overrides and adds some system headers in nt/inc.
4834 GCC_TEST_OPTIONS
="-I $srcdir/nt/inc"
4836 *-sysv4.2uw
* ) opsys
=unixware
;;
4837 *-sysv5uw* ) opsys
=unixware
;;
4838 *-sysv5OpenUNIX* ) opsys
=unixware
;;
4839 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
4848 ### If the code above didn't choose an operating system, just choose
4849 ### an operating system based on the configuration name. You really
4850 ### only want to use this when you have no idea what the right
4851 ### operating system is; if you know what operating systems a machine
4852 ### runs, it's cleaner to make it explicit in the case statement
4854 if test x
"${opsys}" = x
; then
4855 case "${canonical}" in
4856 *-gnu* ) opsys
=gnu
;;
4865 if test $unported = yes; then
4866 as_fn_error
"Emacs hasn't been ported to \`${canonical}' systems.
4867 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
4871 #### Choose a compiler.
4874 ac_cpp
='$CPP $CPPFLAGS'
4875 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4876 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4877 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4878 if test -n "$ac_tool_prefix"; then
4879 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4880 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4882 $as_echo_n "checking for $ac_word... " >&6; }
4883 if test "${ac_cv_prog_CC+set}" = set; then :
4884 $as_echo_n "(cached) " >&6
4886 if test -n "$CC"; then
4887 ac_cv_prog_CC
="$CC" # Let the user override the test.
4889 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4893 test -z "$as_dir" && as_dir
=.
4894 for ac_exec_ext
in '' $ac_executable_extensions; do
4895 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4896 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
4897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4907 if test -n "$CC"; then
4908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4909 $as_echo "$CC" >&6; }
4911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4912 $as_echo "no" >&6; }
4917 if test -z "$ac_cv_prog_CC"; then
4919 # Extract the first word of "gcc", so it can be a program name with args.
4920 set dummy gcc
; ac_word
=$2
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4922 $as_echo_n "checking for $ac_word... " >&6; }
4923 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4924 $as_echo_n "(cached) " >&6
4926 if test -n "$ac_ct_CC"; then
4927 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4929 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4933 test -z "$as_dir" && as_dir
=.
4934 for ac_exec_ext
in '' $ac_executable_extensions; do
4935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4936 ac_cv_prog_ac_ct_CC
="gcc"
4937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4946 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4947 if test -n "$ac_ct_CC"; then
4948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4949 $as_echo "$ac_ct_CC" >&6; }
4951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4952 $as_echo "no" >&6; }
4955 if test "x$ac_ct_CC" = x
; then
4958 case $cross_compiling:$ac_tool_warned in
4960 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4961 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4962 ac_tool_warned
=yes ;;
4970 if test -z "$CC"; then
4971 if test -n "$ac_tool_prefix"; then
4972 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4973 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
4974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4975 $as_echo_n "checking for $ac_word... " >&6; }
4976 if test "${ac_cv_prog_CC+set}" = set; then :
4977 $as_echo_n "(cached) " >&6
4979 if test -n "$CC"; then
4980 ac_cv_prog_CC
="$CC" # Let the user override the test.
4982 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4986 test -z "$as_dir" && as_dir
=.
4987 for ac_exec_ext
in '' $ac_executable_extensions; do
4988 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4989 ac_cv_prog_CC
="${ac_tool_prefix}cc"
4990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5000 if test -n "$CC"; then
5001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5002 $as_echo "$CC" >&6; }
5004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5005 $as_echo "no" >&6; }
5011 if test -z "$CC"; then
5012 # Extract the first word of "cc", so it can be a program name with args.
5013 set dummy cc
; ac_word
=$2
5014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5015 $as_echo_n "checking for $ac_word... " >&6; }
5016 if test "${ac_cv_prog_CC+set}" = set; then :
5017 $as_echo_n "(cached) " >&6
5019 if test -n "$CC"; then
5020 ac_cv_prog_CC
="$CC" # Let the user override the test.
5023 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5027 test -z "$as_dir" && as_dir
=.
5028 for ac_exec_ext
in '' $ac_executable_extensions; do
5029 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5030 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5031 ac_prog_rejected
=yes
5035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5042 if test $ac_prog_rejected = yes; then
5043 # We found a bogon in the path, so make sure we never use it.
5044 set dummy
$ac_cv_prog_CC
5046 if test $# != 0; then
5047 # We chose a different compiler from the bogus one.
5048 # However, it has the same basename, so the bogon will be chosen
5049 # first if we set CC to just the basename; use the full file name.
5051 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
5057 if test -n "$CC"; then
5058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5059 $as_echo "$CC" >&6; }
5061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5062 $as_echo "no" >&6; }
5067 if test -z "$CC"; then
5068 if test -n "$ac_tool_prefix"; then
5069 for ac_prog
in cl.exe
5071 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5072 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
5073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5074 $as_echo_n "checking for $ac_word... " >&6; }
5075 if test "${ac_cv_prog_CC+set}" = set; then :
5076 $as_echo_n "(cached) " >&6
5078 if test -n "$CC"; then
5079 ac_cv_prog_CC
="$CC" # Let the user override the test.
5081 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5085 test -z "$as_dir" && as_dir
=.
5086 for ac_exec_ext
in '' $ac_executable_extensions; do
5087 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5088 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
5089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5099 if test -n "$CC"; then
5100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5101 $as_echo "$CC" >&6; }
5103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5104 $as_echo "no" >&6; }
5108 test -n "$CC" && break
5111 if test -z "$CC"; then
5113 for ac_prog
in cl.exe
5115 # Extract the first word of "$ac_prog", so it can be a program name with args.
5116 set dummy
$ac_prog; ac_word
=$2
5117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5118 $as_echo_n "checking for $ac_word... " >&6; }
5119 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5120 $as_echo_n "(cached) " >&6
5122 if test -n "$ac_ct_CC"; then
5123 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
5125 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5129 test -z "$as_dir" && as_dir
=.
5130 for ac_exec_ext
in '' $ac_executable_extensions; do
5131 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5132 ac_cv_prog_ac_ct_CC
="$ac_prog"
5133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5142 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
5143 if test -n "$ac_ct_CC"; then
5144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5145 $as_echo "$ac_ct_CC" >&6; }
5147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5148 $as_echo "no" >&6; }
5152 test -n "$ac_ct_CC" && break
5155 if test "x$ac_ct_CC" = x
; then
5158 case $cross_compiling:$ac_tool_warned in
5160 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5161 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5162 ac_tool_warned
=yes ;;
5171 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5172 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5173 as_fn_error
"no acceptable C compiler found in \$PATH
5174 See \`config.log' for more details." "$LINENO" 5; }
5176 # Provide some information about the compiler.
5177 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5180 for ac_option
in --version -v -V -qversion; do
5181 { { ac_try
="$ac_compiler $ac_option >&5"
5183 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5184 *) ac_try_echo=$ac_try;;
5186 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5187 $as_echo "$ac_try_echo"; } >&5
5188 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5190 if test -s conftest.err; then
5192 ... rest of stderr output deleted ...
5193 10q' conftest.err >conftest.er1
5194 cat conftest.er1 >&5
5196 rm -f conftest.er1 conftest.err
5197 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5198 test $ac_status = 0; }
5201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5202 /* end confdefs.h. */
5212 ac_clean_files_save=$ac_clean_files
5213 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
5214 # Try to create an executable without -o first, disregard a.out.
5215 # It will help us diagnose broken compilers, and finding out an intuition
5217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
5218 $as_echo_n "checking whether the C compiler works... " >&6; }
5219 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
5221 # The possible output files:
5222 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
5225 for ac_file in $ac_files
5228 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5229 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
5234 if { { ac_try="$ac_link_default"
5236 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5237 *) ac_try_echo
=$ac_try;;
5239 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5240 $as_echo "$ac_try_echo"; } >&5
5241 (eval "$ac_link_default") 2>&5
5243 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5244 test $ac_status = 0; }; then :
5245 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
5246 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
5247 # in a Makefile. We should not override ac_cv_exeext if it was cached,
5248 # so that the user can short-circuit this test for compilers unknown to
5250 for ac_file
in $ac_files ''
5252 test -f "$ac_file" ||
continue
5254 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
5257 # We found the default executable, but exeext='' is most
5261 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
5263 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
5265 # We set ac_cv_exeext here because the later test for it is not
5266 # safe: cross compilers may not add the suffix if given an `-o'
5267 # argument, so we may need to know it at that point already.
5268 # Even if this section looks crufty: it has the advantage of
5275 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
5280 if test -z "$ac_file"; then :
5281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5282 $as_echo "no" >&6; }
5283 $as_echo "$as_me: failed program was:" >&5
5284 sed 's/^/| /' conftest.
$ac_ext >&5
5286 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5287 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5288 { as_fn_set_status
77
5289 as_fn_error
"C compiler cannot create executables
5290 See \`config.log' for more details." "$LINENO" 5; }; }
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5293 $as_echo "yes" >&6; }
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5296 $as_echo_n "checking for C compiler default output file name... " >&6; }
5297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5298 $as_echo "$ac_file" >&6; }
5299 ac_exeext
=$ac_cv_exeext
5301 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
5302 ac_clean_files
=$ac_clean_files_save
5303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5304 $as_echo_n "checking for suffix of executables... " >&6; }
5305 if { { ac_try
="$ac_link"
5307 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5308 *) ac_try_echo=$ac_try;;
5310 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5311 $as_echo "$ac_try_echo"; } >&5
5312 (eval "$ac_link") 2>&5
5314 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5315 test $ac_status = 0; }; then :
5316 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
5317 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
5318 # work properly (i.e., refer to `conftest.exe'), while it won't with
5320 for ac_file
in conftest.exe conftest conftest.
*; do
5321 test -f "$ac_file" ||
continue
5323 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
5324 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
5330 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5331 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5332 as_fn_error
"cannot compute suffix of executables: cannot compile and link
5333 See \`config.log' for more details." "$LINENO" 5; }
5335 rm -f conftest conftest
$ac_cv_exeext
5336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5337 $as_echo "$ac_cv_exeext" >&6; }
5339 rm -f conftest.
$ac_ext
5340 EXEEXT
=$ac_cv_exeext
5342 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5343 /* end confdefs.h. */
5348 FILE *f = fopen ("conftest.out", "w");
5349 return ferror (f) || fclose (f) != 0;
5355 ac_clean_files
="$ac_clean_files conftest.out"
5356 # Check that the compiler produces executables we can run. If not, either
5357 # the compiler is broken, or we cross compile.
5358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5359 $as_echo_n "checking whether we are cross compiling... " >&6; }
5360 if test "$cross_compiling" != yes; then
5361 { { ac_try
="$ac_link"
5363 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5364 *) ac_try_echo=$ac_try;;
5366 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5367 $as_echo "$ac_try_echo"; } >&5
5368 (eval "$ac_link") 2>&5
5370 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5371 test $ac_status = 0; }
5372 if { ac_try='./conftest$ac_cv_exeext'
5373 { { case "(($ac_try" in
5374 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5375 *) ac_try_echo
=$ac_try;;
5377 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5378 $as_echo "$ac_try_echo"; } >&5
5379 (eval "$ac_try") 2>&5
5381 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5382 test $ac_status = 0; }; }; then
5385 if test "$cross_compiling" = maybe
; then
5388 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5389 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5390 as_fn_error
"cannot run C compiled programs.
5391 If you meant to cross compile, use \`--host'.
5392 See \`config.log' for more details." "$LINENO" 5; }
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5397 $as_echo "$cross_compiling" >&6; }
5399 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
5400 ac_clean_files
=$ac_clean_files_save
5401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5402 $as_echo_n "checking for suffix of object files... " >&6; }
5403 if test "${ac_cv_objext+set}" = set; then :
5404 $as_echo_n "(cached) " >&6
5406 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5407 /* end confdefs.h. */
5417 rm -f conftest.o conftest.obj
5418 if { { ac_try
="$ac_compile"
5420 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5421 *) ac_try_echo=$ac_try;;
5423 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5424 $as_echo "$ac_try_echo"; } >&5
5425 (eval "$ac_compile") 2>&5
5427 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5428 test $ac_status = 0; }; then :
5429 for ac_file in conftest.o conftest.obj conftest.*; do
5430 test -f "$ac_file" || continue;
5432 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5433 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5438 $as_echo "$as_me: failed program was:" >&5
5439 sed 's/^/| /' conftest.$ac_ext >&5
5441 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5442 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5443 as_fn_error "cannot compute suffix of object files
: cannot compile
5444 See \
`config.log' for more details." "$LINENO" 5; }
5446 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5449 $as_echo "$ac_cv_objext" >&6; }
5450 OBJEXT=$ac_cv_objext
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5453 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5454 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5455 $as_echo_n "(cached) " >&6
5457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5458 /* end confdefs.h. */
5471 if ac_fn_c_try_compile "$LINENO"; then :
5476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5477 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5481 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5482 if test $ac_compiler_gnu = yes; then
5487 ac_test_CFLAGS=${CFLAGS+set}
5488 ac_save_CFLAGS=$CFLAGS
5489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5490 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5491 if test "${ac_cv_prog_cc_g+set}" = set; then :
5492 $as_echo_n "(cached) " >&6
5494 ac_save_c_werror_flag=$ac_c_werror_flag
5495 ac_c_werror_flag=yes
5498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5499 /* end confdefs.h. */
5509 if ac_fn_c_try_compile "$LINENO"; then :
5513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5514 /* end confdefs.h. */
5524 if ac_fn_c_try_compile "$LINENO"; then :
5527 ac_c_werror_flag=$ac_save_c_werror_flag
5529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5530 /* end confdefs.h. */
5540 if ac_fn_c_try_compile "$LINENO"; then :
5543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5548 ac_c_werror_flag=$ac_save_c_werror_flag
5550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5551 $as_echo "$ac_cv_prog_cc_g" >&6; }
5552 if test "$ac_test_CFLAGS" = set; then
5553 CFLAGS=$ac_save_CFLAGS
5554 elif test $ac_cv_prog_cc_g = yes; then
5555 if test "$GCC" = yes; then
5561 if test "$GCC" = yes; then
5567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5568 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5569 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5570 $as_echo_n "(cached) " >&6
5572 ac_cv_prog_cc_c89=no
5574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5575 /* end confdefs.h. */
5578 #include <sys/types.h>
5579 #include <sys/stat.h>
5580 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5581 struct buf { int x; };
5582 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5583 static char *e (p, i)
5589 static char *f (char * (*g) (char **, int), char **p, ...)
5594 s = g (p, va_arg (v,int));
5599 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5600 function prototypes and stuff, but not '\xHH' hex character constants.
5601 These don't provoke an error unfortunately, instead are silently treated
5602 as 'x'. The following induces an error, until -std is added to get
5603 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5604 array size at least. It's necessary to write '\x00'==0 to get something
5605 that's true only with -std. */
5606 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5608 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5609 inside strings and character constants. */
5611 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5613 int test (int i, double x);
5614 struct s1 {int (*f) (int a);};
5615 struct s2 {int (*f) (double a);};
5616 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5622 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5627 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5628 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5630 CC="$ac_save_CC $ac_arg"
5631 if ac_fn_c_try_compile "$LINENO"; then :
5632 ac_cv_prog_cc_c89=$ac_arg
5634 rm -f core conftest.err conftest.$ac_objext
5635 test "x$ac_cv_prog_cc_c89" != "xno" && break
5637 rm -f conftest.$ac_ext
5642 case "x$ac_cv_prog_cc_c89" in
5644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5645 $as_echo "none needed" >&6; } ;;
5647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5648 $as_echo "unsupported" >&6; } ;;
5650 CC="$CC $ac_cv_prog_cc_c89"
5651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5652 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5654 if test "x$ac_cv_prog_cc_c89" != xno; then :
5659 ac_cpp='$CPP $CPPFLAGS'
5660 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5661 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5662 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5663 DEPDIR="${am__leading_dot}deps"
5665 ac_config_commands="$ac_config_commands depfiles"
5668 am_make=${MAKE-make}
5669 cat > confinc << 'END'
5671 @echo this is the am__doit target
5674 # If we don't find an include directive, just comment out the code.
5675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5676 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5680 # First try GNU make style include.
5681 echo "include confinc" > confmf
5682 # Ignore all kinds of additional output from `make'.
5683 case `$am_make -s -f confmf 2> /dev/null` in #(
5684 *the\ am__doit\ target*)
5690 # Now try BSD make style include.
5691 if test "$am__include" = "#"; then
5692 echo '.include
"confinc"' > confmf
5693 case `$am_make -s -f confmf 2> /dev/null` in #(
5694 *the\ am__doit\ target*)
5695 am__include=.include
5703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5704 $as_echo "$_am_result" >&6; }
5705 rm -f confinc confmf
5707 # Check whether --enable-dependency-tracking was given.
5708 if test "${enable_dependency_tracking+set}" = set; then :
5709 enableval=$enable_dependency_tracking;
5712 if test "x$enable_dependency_tracking" != xno; then
5713 am_depcomp="$ac_aux_dir/depcomp"
5716 if test "x$enable_dependency_tracking" != xno
; then
5726 depcc
="$CC" am_compiler_list
=
5728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5729 $as_echo_n "checking dependency style of $depcc... " >&6; }
5730 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5731 $as_echo_n "(cached) " >&6
5733 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5734 # We make a subdir and do the tests there. Otherwise we can end up
5735 # making bogus files that we don't know about and never remove. For
5736 # instance it was reported that on HP-UX the gcc test will end up
5737 # making a dummy file named `D' -- because `-MD' means `put the output
5740 # Copy depcomp to subdir because otherwise we won't find it if we're
5741 # using a relative directory.
5742 cp "$am_depcomp" conftest.dir
5744 # We will build objects and dependencies in a subdirectory because
5745 # it helps to detect inapplicable dependency modes. For instance
5746 # both Tru64's cc and ICC support -MD to output dependencies as a
5747 # side effect of compilation, but ICC will put the dependencies in
5748 # the current directory while Tru64 will put them in the object
5752 am_cv_CC_dependencies_compiler_type
=none
5753 if test "$am_compiler_list" = ""; then
5754 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5757 case " $depcc " in #(
5758 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
5761 for depmode
in $am_compiler_list; do
5762 # Setup a source with many dependencies, because some compilers
5763 # like to wrap large dependency lists on column 80 (with \), and
5764 # we should not choose a depcomp mode which is confused by this.
5766 # We need to recreate these files for each test, as the compiler may
5767 # overwrite some of them when testing with obscure command lines.
5768 # This happens at least with the AIX C compiler.
5770 for i
in 1 2 3 4 5 6; do
5771 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
5772 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5773 # Solaris 8's {/usr,}/bin/sh.
5774 touch sub
/conftst
$i.h
5776 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5778 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5779 # mode. It turns out that the SunPro C++ compiler does not properly
5780 # handle `-M -o', and we need to detect this. Also, some Intel
5781 # versions had trouble with output in subdirs
5782 am__obj
=sub
/conftest.
${OBJEXT-o}
5783 am__minus_obj
="-o $am__obj"
5786 # This depmode causes a compiler race in universal mode.
5787 test "$am__universal" = false ||
continue
5790 # after this tag, mechanisms are not by side-effect, so they'll
5791 # only be used when explicitly requested
5792 if test "x$enable_dependency_tracking" = xyes
; then
5798 msvisualcpp | msvcmsys
)
5799 # This compiler won't grok `-c -o', but also, the minuso test has
5800 # not run yet. These depmodes are late enough in the game, and
5801 # so weak that their functioning should not be impacted.
5802 am__obj
=conftest.
${OBJEXT-o}
5807 if depmode
=$depmode \
5808 source=sub
/conftest.c object
=$am__obj \
5809 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
5810 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
5811 >/dev
/null
2>conftest.err
&&
5812 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
5813 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
5814 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
5815 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
5816 # icc doesn't choke on unknown options, it will just issue warnings
5817 # or remarks (even with -Werror). So we grep stderr for any message
5818 # that says an option was ignored or not supported.
5819 # When given -MP, icc 7.0 and 7.1 complain thusly:
5820 # icc: Command line warning: ignoring option '-M'; no argument required
5821 # The diagnosis changed in icc 8.0:
5822 # icc: Command line remark: option '-MP' not supported
5823 if (grep 'ignoring option' conftest.err ||
5824 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
5825 am_cv_CC_dependencies_compiler_type
=$depmode
5834 am_cv_CC_dependencies_compiler_type
=none
5838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5839 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5840 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
5843 test "x$enable_dependency_tracking" != xno \
5844 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
5846 am__fastdepCC_FALSE
='#'
5848 am__fastdepCC_TRUE
='#'
5849 am__fastdepCC_FALSE
=
5853 if test "x$CC" != xcc
; then
5854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5855 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5858 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5860 set dummy
$CC; ac_cc
=`$as_echo "$2" |
5861 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5862 if { as_var
=ac_cv_prog_cc_
${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
5863 $as_echo_n "(cached) " >&6
5865 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5866 /* end confdefs.h. */
5876 # Make sure it works both with $CC and with simple cc.
5877 # We do the test twice because some compilers refuse to overwrite an
5878 # existing .o file with -o, though they will create one.
5879 ac_try
='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5881 if { { case "(($ac_try" in
5882 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5883 *) ac_try_echo=$ac_try;;
5885 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5886 $as_echo "$ac_try_echo"; } >&5
5887 (eval "$ac_try") 2>&5
5889 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5890 test $ac_status = 0; } &&
5891 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5892 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5893 *) ac_try_echo
=$ac_try;;
5895 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5896 $as_echo "$ac_try_echo"; } >&5
5897 (eval "$ac_try") 2>&5
5899 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5900 test $ac_status = 0; };
5902 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
5903 if test "x$CC" != xcc
; then
5904 # Test first that cc exists at all.
5905 if { ac_try
='cc -c conftest.$ac_ext >&5'
5906 { { case "(($ac_try" in
5907 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5908 *) ac_try_echo=$ac_try;;
5910 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5911 $as_echo "$ac_try_echo"; } >&5
5912 (eval "$ac_try") 2>&5
5914 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5915 test $ac_status = 0; }; }; then
5916 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5918 if { { case "(($ac_try" in
5919 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5920 *) ac_try_echo
=$ac_try;;
5922 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5923 $as_echo "$ac_try_echo"; } >&5
5924 (eval "$ac_try") 2>&5
5926 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5927 test $ac_status = 0; } &&
5928 test -f conftest2.
$ac_objext && { { 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; };
5942 # cc exists but doesn't like -o.
5943 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5948 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5950 rm -f core conftest*
5953 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5955 $as_echo "yes" >&6; }
5957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5958 $as_echo "no" >&6; }
5960 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5964 # FIXME: we rely on the cache variable name because
5965 # there is no other way.
5967 am_cc=`echo $2 |
sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5968 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5969 if test "$am_t" != yes; then
5970 # Losing compiler, so override with the script.
5971 # FIXME: It is wrong to rewrite CC.
5972 # But if we don't then we get into trouble of one sort or another.
5973 # A longer-term fix would be to have automake use am__CC in this case,
5974 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5975 CC="$am_aux_dir/compile $CC"
5980 if test x$GCC = xyes; then
5981 test "x$GCC_TEST_OPTIONS" != x && CC="$CC $GCC_TEST_OPTIONS"
5983 test "x$NON_GCC_TEST_OPTIONS" != x && CC="$CC $NON_GCC_TEST_OPTIONS"
5986 if test "x$opsys" = "xmingw32"; then
5987 BUILDING_FOR_WINDOWSNT_TRUE=
5988 BUILDING_FOR_WINDOWSNT_FALSE='#'
5990 BUILDING_FOR_WINDOWSNT_TRUE='#'
5991 BUILDING_FOR_WINDOWSNT_FALSE=
5995 # Avoid gnulib's tests for HAVE_WORKING_O_NOATIME and HAVE_WORKING_O_NOFOLLOW,
5996 # as we don't use them.
5998 # Avoid gnulib's threadlib module, as we do threads our own way.
6001 # Initialize gnulib right after choosing the compiler.
6004 ac_cpp='$CPP $CPPFLAGS'
6005 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6006 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6007 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6009 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6010 # On Suns, sometimes $CPP names a directory.
6011 if test -n "$CPP" && test -d "$CPP"; then
6014 if test -z "$CPP"; then
6015 if test "${ac_cv_prog_CPP+set}" = set; then :
6016 $as_echo_n "(cached) " >&6
6018 # Double quotes because CPP needs to be expanded
6019 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6022 for ac_c_preproc_warn_flag in '' yes
6024 # Use a header file that comes with gcc, so configuring glibc
6025 # with a fresh cross-compiler works.
6026 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6027 # <limits.h> exists even on freestanding compilers.
6028 # On the NeXT, cc -E runs the code through the compiler's parser,
6029 # not just through cpp. "Syntax error" is here to catch this case.
6030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6031 /* end confdefs.h. */
6033 # include <limits.h>
6035 # include <assert.h>
6039 if ac_fn_c_try_cpp "$LINENO"; then :
6042 # Broken: fails on valid input.
6045 rm -f conftest.err conftest.$ac_ext
6047 # OK, works on sane cases. Now check whether nonexistent headers
6048 # can be detected and how.
6049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6050 /* end confdefs.h. */
6051 #include <ac_nonexistent.h>
6053 if ac_fn_c_try_cpp "$LINENO"; then :
6054 # Broken: success on invalid input.
6057 # Passes both tests.
6061 rm -f conftest.err conftest.$ac_ext
6064 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6065 rm -f conftest.err conftest.
$ac_ext
6066 if $ac_preproc_ok; then :
6078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6079 $as_echo "$CPP" >&6; }
6081 for ac_c_preproc_warn_flag
in '' yes
6083 # Use a header file that comes with gcc, so configuring glibc
6084 # with a fresh cross-compiler works.
6085 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6086 # <limits.h> exists even on freestanding compilers.
6087 # On the NeXT, cc -E runs the code through the compiler's parser,
6088 # not just through cpp. "Syntax error" is here to catch this case.
6089 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6090 /* end confdefs.h. */
6092 # include <limits.h>
6094 # include <assert.h>
6098 if ac_fn_c_try_cpp
"$LINENO"; then :
6101 # Broken: fails on valid input.
6104 rm -f conftest.err conftest.
$ac_ext
6106 # OK, works on sane cases. Now check whether nonexistent headers
6107 # can be detected and how.
6108 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6109 /* end confdefs.h. */
6110 #include <ac_nonexistent.h>
6112 if ac_fn_c_try_cpp
"$LINENO"; then :
6113 # Broken: success on invalid input.
6116 # Passes both tests.
6120 rm -f conftest.err conftest.
$ac_ext
6123 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6124 rm -f conftest.err conftest.
$ac_ext
6125 if $ac_preproc_ok; then :
6128 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6129 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6130 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
6131 See \`config.log' for more details." "$LINENO" 5; }
6135 ac_cpp
='$CPP $CPPFLAGS'
6136 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6137 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6138 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6142 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6143 if test "${ac_cv_path_GREP+set}" = set; then :
6144 $as_echo_n "(cached) " >&6
6146 if test -z "$GREP"; then
6147 ac_path_GREP_found
=false
6148 # Loop through the user's path and test for each of PROGNAME-LIST
6149 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6150 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
6153 test -z "$as_dir" && as_dir
=.
6154 for ac_prog
in grep ggrep
; do
6155 for ac_exec_ext
in '' $ac_executable_extensions; do
6156 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
6157 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
6158 # Check for GNU ac_path_GREP and select it if it is found.
6159 # Check for GNU $ac_path_GREP
6160 case `"$ac_path_GREP" --version 2>&1` in
6162 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
6165 $as_echo_n 0123456789 >"conftest.in"
6168 cat "conftest.in" "conftest.in" >"conftest.tmp"
6169 mv "conftest.tmp" "conftest.in"
6170 cp "conftest.in" "conftest.nl"
6171 $as_echo 'GREP' >> "conftest.nl"
6172 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
6173 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
6174 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
6175 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6176 # Best one so far, save it but keep looking for a better one
6177 ac_cv_path_GREP
="$ac_path_GREP"
6178 ac_path_GREP_max
=$ac_count
6180 # 10*(2^10) chars as input seems more than enough
6181 test $ac_count -gt 10 && break
6183 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
6186 $ac_path_GREP_found && break 3
6191 if test -z "$ac_cv_path_GREP"; then
6192 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6195 ac_cv_path_GREP
=$GREP
6199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6200 $as_echo "$ac_cv_path_GREP" >&6; }
6201 GREP
="$ac_cv_path_GREP"
6204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6205 $as_echo_n "checking for egrep... " >&6; }
6206 if test "${ac_cv_path_EGREP+set}" = set; then :
6207 $as_echo_n "(cached) " >&6
6209 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
6210 then ac_cv_path_EGREP
="$GREP -E"
6212 if test -z "$EGREP"; then
6213 ac_path_EGREP_found
=false
6214 # Loop through the user's path and test for each of PROGNAME-LIST
6215 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6216 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
6219 test -z "$as_dir" && as_dir
=.
6220 for ac_prog
in egrep; do
6221 for ac_exec_ext
in '' $ac_executable_extensions; do
6222 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
6223 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
6224 # Check for GNU ac_path_EGREP and select it if it is found.
6225 # Check for GNU $ac_path_EGREP
6226 case `"$ac_path_EGREP" --version 2>&1` in
6228 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
6231 $as_echo_n 0123456789 >"conftest.in"
6234 cat "conftest.in" "conftest.in" >"conftest.tmp"
6235 mv "conftest.tmp" "conftest.in"
6236 cp "conftest.in" "conftest.nl"
6237 $as_echo 'EGREP' >> "conftest.nl"
6238 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
6239 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
6240 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
6241 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6242 # Best one so far, save it but keep looking for a better one
6243 ac_cv_path_EGREP
="$ac_path_EGREP"
6244 ac_path_EGREP_max
=$ac_count
6246 # 10*(2^10) chars as input seems more than enough
6247 test $ac_count -gt 10 && break
6249 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
6252 $ac_path_EGREP_found && break 3
6257 if test -z "$ac_cv_path_EGREP"; then
6258 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6261 ac_cv_path_EGREP
=$EGREP
6266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6267 $as_echo "$ac_cv_path_EGREP" >&6; }
6268 EGREP
="$ac_cv_path_EGREP"
6273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
6274 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
6275 if test "${gl_cv_c_amsterdam_compiler+set}" = set; then :
6276 $as_echo_n "(cached) " >&6
6279 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6280 /* end confdefs.h. */
6287 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6288 $EGREP "Amsterdam" >/dev
/null
2>&1; then :
6289 gl_cv_c_amsterdam_compiler
=yes
6291 gl_cv_c_amsterdam_compiler
=no
6297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
6298 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
6299 if test -z "$AR"; then
6300 if test $gl_cv_c_amsterdam_compiler = yes; then
6302 if test -z "$ARFLAGS"; then
6306 if test -n "$ac_tool_prefix"; then
6307 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6308 set dummy
${ac_tool_prefix}ar; ac_word
=$2
6309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6310 $as_echo_n "checking for $ac_word... " >&6; }
6311 if test "${ac_cv_prog_AR+set}" = set; then :
6312 $as_echo_n "(cached) " >&6
6314 if test -n "$AR"; then
6315 ac_cv_prog_AR
="$AR" # Let the user override the test.
6317 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6321 test -z "$as_dir" && as_dir
=.
6322 for ac_exec_ext
in '' $ac_executable_extensions; do
6323 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6324 ac_cv_prog_AR
="${ac_tool_prefix}ar"
6325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6335 if test -n "$AR"; then
6336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6337 $as_echo "$AR" >&6; }
6339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6340 $as_echo "no" >&6; }
6345 if test -z "$ac_cv_prog_AR"; then
6347 # Extract the first word of "ar", so it can be a program name with args.
6348 set dummy
ar; ac_word
=$2
6349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6350 $as_echo_n "checking for $ac_word... " >&6; }
6351 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6352 $as_echo_n "(cached) " >&6
6354 if test -n "$ac_ct_AR"; then
6355 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
6357 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6361 test -z "$as_dir" && as_dir
=.
6362 for ac_exec_ext
in '' $ac_executable_extensions; do
6363 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6364 ac_cv_prog_ac_ct_AR
="ar"
6365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6374 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
6375 if test -n "$ac_ct_AR"; then
6376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6377 $as_echo "$ac_ct_AR" >&6; }
6379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6380 $as_echo "no" >&6; }
6383 if test "x$ac_ct_AR" = x
; then
6386 case $cross_compiling:$ac_tool_warned in
6388 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6389 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6390 ac_tool_warned
=yes ;;
6398 if test -z "$ARFLAGS"; then
6403 if test -z "$ARFLAGS"; then
6409 if test -z "$RANLIB"; then
6410 if test $gl_cv_c_amsterdam_compiler = yes; then
6413 if test -n "$ac_tool_prefix"; then
6414 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6415 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
6416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6417 $as_echo_n "checking for $ac_word... " >&6; }
6418 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6419 $as_echo_n "(cached) " >&6
6421 if test -n "$RANLIB"; then
6422 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
6424 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6428 test -z "$as_dir" && as_dir
=.
6429 for ac_exec_ext
in '' $ac_executable_extensions; do
6430 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6431 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
6432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6441 RANLIB
=$ac_cv_prog_RANLIB
6442 if test -n "$RANLIB"; then
6443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6444 $as_echo "$RANLIB" >&6; }
6446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6447 $as_echo "no" >&6; }
6452 if test -z "$ac_cv_prog_RANLIB"; then
6453 ac_ct_RANLIB
=$RANLIB
6454 # Extract the first word of "ranlib", so it can be a program name with args.
6455 set dummy ranlib
; ac_word
=$2
6456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6457 $as_echo_n "checking for $ac_word... " >&6; }
6458 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6459 $as_echo_n "(cached) " >&6
6461 if test -n "$ac_ct_RANLIB"; then
6462 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
6464 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6468 test -z "$as_dir" && as_dir
=.
6469 for ac_exec_ext
in '' $ac_executable_extensions; do
6470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6471 ac_cv_prog_ac_ct_RANLIB
="ranlib"
6472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6481 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
6482 if test -n "$ac_ct_RANLIB"; then
6483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6484 $as_echo "$ac_ct_RANLIB" >&6; }
6486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6487 $as_echo "no" >&6; }
6490 if test "x$ac_ct_RANLIB" = x
; then
6493 case $cross_compiling:$ac_tool_warned in
6495 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6496 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6497 ac_tool_warned
=yes ;;
6499 RANLIB
=$ac_ct_RANLIB
6502 RANLIB
="$ac_cv_prog_RANLIB"
6509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6510 $as_echo_n "checking for ANSI C header files... " >&6; }
6511 if test "${ac_cv_header_stdc+set}" = set; then :
6512 $as_echo_n "(cached) " >&6
6514 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6515 /* end confdefs.h. */
6529 if ac_fn_c_try_compile
"$LINENO"; then :
6530 ac_cv_header_stdc
=yes
6532 ac_cv_header_stdc
=no
6534 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6536 if test $ac_cv_header_stdc = yes; then
6537 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6538 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6539 /* end confdefs.h. */
6543 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6544 $EGREP "memchr" >/dev
/null
2>&1; then :
6547 ac_cv_header_stdc
=no
6553 if test $ac_cv_header_stdc = yes; then
6554 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6555 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6556 /* end confdefs.h. */
6560 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6561 $EGREP "free" >/dev
/null
2>&1; then :
6564 ac_cv_header_stdc
=no
6570 if test $ac_cv_header_stdc = yes; then
6571 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6572 if test "$cross_compiling" = yes; then :
6575 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6576 /* end confdefs.h. */
6579 #if ((' ' & 0x0FF) == 0x020)
6580 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6581 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6583 # define ISLOWER(c) \
6584 (('a' <= (c) && (c) <= 'i') \
6585 || ('j' <= (c) && (c) <= 'r') \
6586 || ('s' <= (c) && (c) <= 'z'))
6587 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6590 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6595 for (i = 0; i < 256; i++)
6596 if (XOR (islower (i), ISLOWER (i))
6597 || toupper (i) != TOUPPER (i))
6602 if ac_fn_c_try_run
"$LINENO"; then :
6605 ac_cv_header_stdc
=no
6607 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6608 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6614 $as_echo "$ac_cv_header_stdc" >&6; }
6615 if test $ac_cv_header_stdc = yes; then
6617 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6621 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6622 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
6623 inttypes.h stdint.h unistd.h
6625 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6626 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6628 eval as_val
=\$
$as_ac_Header
6629 if test "x$as_val" = x
""yes; then :
6630 cat >>confdefs.h
<<_ACEOF
6631 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6640 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
6641 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
6648 if test "$MINIX" = yes; then
6650 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6653 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6656 $as_echo "#define _MINIX 1" >>confdefs.h
6659 $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
6664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6665 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6666 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
6667 $as_echo_n "(cached) " >&6
6669 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6670 /* end confdefs.h. */
6672 # define __EXTENSIONS__ 1
6673 $ac_includes_default
6682 if ac_fn_c_try_compile
"$LINENO"; then :
6683 ac_cv_safe_to_define___extensions__
=yes
6685 ac_cv_safe_to_define___extensions__
=no
6687 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6690 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6691 test $ac_cv_safe_to_define___extensions__ = yes &&
6692 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6694 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6696 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
6698 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6700 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6702 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
6705 $as_echo_n "checking whether _XOPEN_SOURCE should be defined... " >&6; }
6706 if test "${ac_cv_should_define__xopen_source+set}" = set; then :
6707 $as_echo_n "(cached) " >&6
6709 ac_cv_should_define__xopen_source
=no
6710 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6711 /* end confdefs.h. */
6723 if ac_fn_c_try_compile
"$LINENO"; then :
6726 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6727 /* end confdefs.h. */
6729 #define _XOPEN_SOURCE 500
6740 if ac_fn_c_try_compile
"$LINENO"; then :
6741 ac_cv_should_define__xopen_source
=yes
6743 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6745 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
6748 $as_echo "$ac_cv_should_define__xopen_source" >&6; }
6749 test $ac_cv_should_define__xopen_source = yes &&
6750 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
6759 # Check whether --enable-largefile was given.
6760 if test "${enable_largefile+set}" = set; then :
6761 enableval
=$enable_largefile;
6764 if test "$enable_largefile" != no
; then
6766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6767 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6768 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
6769 $as_echo_n "(cached) " >&6
6771 ac_cv_sys_largefile_CC
=no
6772 if test "$GCC" != yes; then
6775 # IRIX 6.2 and later do not support large files by default,
6776 # so use the C compiler's -n32 option if that helps.
6777 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6778 /* end confdefs.h. */
6779 #include <sys/types.h>
6780 /* Check that off_t can represent 2**63 - 1 correctly.
6781 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6782 since some C++ compilers masquerading as C compilers
6783 incorrectly reject 9223372036854775807. */
6784 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6785 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6786 && LARGE_OFF_T % 2147483647 == 1)
6796 if ac_fn_c_try_compile
"$LINENO"; then :
6799 rm -f core conftest.err conftest.
$ac_objext
6801 if ac_fn_c_try_compile
"$LINENO"; then :
6802 ac_cv_sys_largefile_CC
=' -n32'; break
6804 rm -f core conftest.err conftest.
$ac_objext
6808 rm -f conftest.
$ac_ext
6811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6812 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6813 if test "$ac_cv_sys_largefile_CC" != no
; then
6814 CC
=$CC$ac_cv_sys_largefile_CC
6817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6818 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6819 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
6820 $as_echo_n "(cached) " >&6
6823 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6824 /* end confdefs.h. */
6825 #include <sys/types.h>
6826 /* Check that off_t can represent 2**63 - 1 correctly.
6827 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6828 since some C++ compilers masquerading as C compilers
6829 incorrectly reject 9223372036854775807. */
6830 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6831 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6832 && LARGE_OFF_T % 2147483647 == 1)
6842 if ac_fn_c_try_compile
"$LINENO"; then :
6843 ac_cv_sys_file_offset_bits
=no
; break
6845 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6846 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6847 /* end confdefs.h. */
6848 #define _FILE_OFFSET_BITS 64
6849 #include <sys/types.h>
6850 /* Check that off_t can represent 2**63 - 1 correctly.
6851 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6852 since some C++ compilers masquerading as C compilers
6853 incorrectly reject 9223372036854775807. */
6854 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6855 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6856 && LARGE_OFF_T % 2147483647 == 1)
6866 if ac_fn_c_try_compile
"$LINENO"; then :
6867 ac_cv_sys_file_offset_bits
=64; break
6869 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6870 ac_cv_sys_file_offset_bits
=unknown
6874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6875 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6876 case $ac_cv_sys_file_offset_bits in #(
6879 cat >>confdefs.h
<<_ACEOF
6880 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6885 if test $ac_cv_sys_file_offset_bits = unknown
; then
6886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6887 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6888 if test "${ac_cv_sys_large_files+set}" = set; then :
6889 $as_echo_n "(cached) " >&6
6892 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6893 /* end confdefs.h. */
6894 #include <sys/types.h>
6895 /* Check that off_t can represent 2**63 - 1 correctly.
6896 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6897 since some C++ compilers masquerading as C compilers
6898 incorrectly reject 9223372036854775807. */
6899 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6900 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6901 && LARGE_OFF_T % 2147483647 == 1)
6911 if ac_fn_c_try_compile
"$LINENO"; then :
6912 ac_cv_sys_large_files
=no
; break
6914 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6915 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6916 /* end confdefs.h. */
6917 #define _LARGE_FILES 1
6918 #include <sys/types.h>
6919 /* Check that off_t can represent 2**63 - 1 correctly.
6920 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6921 since some C++ compilers masquerading as C compilers
6922 incorrectly reject 9223372036854775807. */
6923 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6924 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6925 && LARGE_OFF_T % 2147483647 == 1)
6935 if ac_fn_c_try_compile
"$LINENO"; then :
6936 ac_cv_sys_large_files
=1; break
6938 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6939 ac_cv_sys_large_files
=unknown
6943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6944 $as_echo "$ac_cv_sys_large_files" >&6; }
6945 case $ac_cv_sys_large_files in #(
6948 cat >>confdefs.h
<<_ACEOF
6949 #define _LARGE_FILES $ac_cv_sys_large_files
6957 $as_echo "#define _DARWIN_USE_64_BIT_INODE 1" >>confdefs.h
6961 case $ac_cv_prog_cc_stdc in #(
6963 ac_cv_prog_cc_c99
=no
; ac_cv_prog_cc_c89
=no
;; #(
6965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
6966 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
6967 if test "${ac_cv_prog_cc_c99+set}" = set; then :
6968 $as_echo_n "(cached) " >&6
6970 ac_cv_prog_cc_c99
=no
6972 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6973 /* end confdefs.h. */
6975 #include <stdbool.h>
6980 // Check varargs macros. These examples are taken from C99 6.10.3.5.
6981 #define debug(...) fprintf (stderr, __VA_ARGS__)
6982 #define showlist(...) puts (#__VA_ARGS__)
6983 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6985 test_varargs_macros (void)
6990 debug ("X = %d\n", x);
6991 showlist (The first, second, and third items.);
6992 report (x>y, "x is %d but y is %d", x, y);
6995 // Check long long types.
6996 #define BIG64 18446744073709551615ull
6997 #define BIG32 4294967295ul
6998 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7000 your preprocessor is broken;
7004 your preprocessor is broken;
7006 static long long int bignum = -9223372036854775807LL;
7007 static unsigned long long int ubignum = BIG64;
7009 struct incomplete_array
7017 const wchar_t *name;
7021 typedef const char *ccp;
7024 test_restrict (ccp restrict text)
7026 // See if C++-style comments work.
7027 // Iterate through items via the restricted pointer.
7028 // Also check for declarations in for loops.
7029 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7034 // Check varargs and va_copy.
7036 test_varargs (const char *format, ...)
7039 va_start (args, format);
7041 va_copy (args_copy, args);
7052 str = va_arg (args_copy, const char *);
7055 number = va_arg (args_copy, int);
7058 fnumber = va_arg (args_copy, double);
7073 _Bool success = false;
7076 if (test_restrict ("String literal") == 0)
7078 char *restrict newvar = "Another string";
7081 test_varargs ("s, d' f .", "string", 65, 34.234);
7082 test_varargs_macros ();
7084 // Check flexible array members.
7085 struct incomplete_array *ia =
7086 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7088 for (int i = 0; i < ia->datasize; ++i)
7089 ia->data[i] = i * 1.234;
7091 // Check named initializers.
7092 struct named_init ni = {
7094 .name = L"Test wide string",
7095 .average = 543.34343,
7100 int dynamic_array[ni.number];
7101 dynamic_array[ni.number - 1] = 543;
7103 // work around unused variable warnings
7104 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7105 || dynamic_array[ni.number - 1] != 543);
7111 for ac_arg
in '' -std=gnu99
-std=c99
-c99 -AC99 -xc99=all
-qlanglvl=extc99
7113 CC
="$ac_save_CC $ac_arg"
7114 if ac_fn_c_try_compile
"$LINENO"; then :
7115 ac_cv_prog_cc_c99
=$ac_arg
7117 rm -f core conftest.err conftest.
$ac_objext
7118 test "x$ac_cv_prog_cc_c99" != "xno" && break
7120 rm -f conftest.
$ac_ext
7125 case "x$ac_cv_prog_cc_c99" in
7127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7128 $as_echo "none needed" >&6; } ;;
7130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7131 $as_echo "unsupported" >&6; } ;;
7133 CC
="$CC $ac_cv_prog_cc_c99"
7134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
7135 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7137 if test "x$ac_cv_prog_cc_c99" != xno
; then :
7138 ac_cv_prog_cc_stdc
=$ac_cv_prog_cc_c99
7140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
7141 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
7142 if test "${ac_cv_prog_cc_c89+set}" = set; then :
7143 $as_echo_n "(cached) " >&6
7145 ac_cv_prog_cc_c89
=no
7147 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7148 /* end confdefs.h. */
7151 #include <sys/types.h>
7152 #include <sys/stat.h>
7153 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
7154 struct buf { int x; };
7155 FILE * (*rcsopen) (struct buf *, struct stat *, int);
7156 static char *e (p, i)
7162 static char *f (char * (*g) (char **, int), char **p, ...)
7167 s = g (p, va_arg (v,int));
7172 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
7173 function prototypes and stuff, but not '\xHH' hex character constants.
7174 These don't provoke an error unfortunately, instead are silently treated
7175 as 'x'. The following induces an error, until -std is added to get
7176 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
7177 array size at least. It's necessary to write '\x00'==0 to get something
7178 that's true only with -std. */
7179 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
7181 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
7182 inside strings and character constants. */
7184 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
7186 int test (int i, double x);
7187 struct s1 {int (*f) (int a);};
7188 struct s2 {int (*f) (double a);};
7189 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7195 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
7200 for ac_arg
in '' -qlanglvl=extc89
-qlanglvl=ansi
-std \
7201 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7203 CC
="$ac_save_CC $ac_arg"
7204 if ac_fn_c_try_compile
"$LINENO"; then :
7205 ac_cv_prog_cc_c89
=$ac_arg
7207 rm -f core conftest.err conftest.
$ac_objext
7208 test "x$ac_cv_prog_cc_c89" != "xno" && break
7210 rm -f conftest.
$ac_ext
7215 case "x$ac_cv_prog_cc_c89" in
7217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7218 $as_echo "none needed" >&6; } ;;
7220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7221 $as_echo "unsupported" >&6; } ;;
7223 CC
="$CC $ac_cv_prog_cc_c89"
7224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
7225 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
7227 if test "x$ac_cv_prog_cc_c89" != xno
; then :
7228 ac_cv_prog_cc_stdc
=$ac_cv_prog_cc_c89
7230 ac_cv_prog_cc_stdc
=no
7236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
7237 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
7238 if test "${ac_cv_prog_cc_stdc+set}" = set; then :
7239 $as_echo_n "(cached) " >&6
7242 case $ac_cv_prog_cc_stdc in #(
7244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7245 $as_echo "unsupported" >&6; } ;; #(
7247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7248 $as_echo "none needed" >&6; } ;; #(
7250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
7251 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
7256 # Code from module alloca-opt:
7257 # Code from module allocator:
7258 # Code from module at-internal:
7259 # Code from module binary-io:
7260 # Code from module c-ctype:
7261 # Code from module c-strcase:
7262 # Code from module careadlinkat:
7263 # Code from module clock-time:
7264 # Code from module close-stream:
7265 # Code from module crypto/md5:
7266 # Code from module crypto/sha1:
7267 # Code from module crypto/sha256:
7268 # Code from module crypto/sha512:
7269 # Code from module dirent:
7270 # Code from module dosname:
7271 # Code from module dtoastr:
7272 # Code from module dtotimespec:
7273 # Code from module dup2:
7274 # Code from module environ:
7275 # Code from module errno:
7276 # Code from module euidaccess:
7277 # Code from module execinfo:
7278 # Code from module extensions:
7280 # Code from module extern-inline:
7281 # Code from module faccessat:
7282 # Code from module fcntl:
7283 # Code from module fcntl-h:
7284 # Code from module fdatasync:
7285 # Code from module fdopendir:
7286 # Code from module filemode:
7287 # Code from module fpending:
7288 # Code from module fstatat:
7289 # Code from module fsync:
7290 # Code from module getdtablesize:
7291 # Code from module getgroups:
7292 # Code from module getloadavg:
7293 # Code from module getopt-gnu:
7294 # Code from module getopt-posix:
7295 # Code from module gettext-h:
7296 # Code from module gettime:
7297 # Code from module gettimeofday:
7298 # Code from module group-member:
7299 # Code from module include_next:
7300 # Code from module intprops:
7301 # Code from module inttypes-incomplete:
7302 # Code from module largefile:
7304 # Code from module lstat:
7305 # Code from module manywarnings:
7306 # Code from module memrchr:
7307 # Code from module mkostemp:
7308 # Code from module mktime:
7309 # Code from module multiarch:
7310 # Code from module nocrash:
7311 # Code from module openat-h:
7312 # Code from module pathmax:
7313 # Code from module pipe2:
7314 # Code from module pselect:
7315 # Code from module pthread_sigmask:
7316 # Code from module putenv:
7317 # Code from module qacl:
7318 # Code from module readlink:
7319 # Code from module readlinkat:
7320 # Code from module root-uid:
7321 # Code from module secure_getenv:
7322 # Code from module sig2str:
7323 # Code from module signal-h:
7324 # Code from module snippet/_Noreturn:
7325 # Code from module snippet/arg-nonnull:
7326 # Code from module snippet/c++defs:
7327 # Code from module snippet/warn-on-use:
7328 # Code from module socklen:
7329 # Code from module ssize_t:
7330 # Code from module stat:
7331 # Code from module stat-time:
7332 # Code from module stdalign:
7333 # Code from module stdarg:
7337 # Code from module stdbool:
7338 # Code from module stddef:
7339 # Code from module stdint:
7340 # Code from module stdio:
7341 # Code from module stdlib:
7342 # Code from module strftime:
7343 # Code from module string:
7344 # Code from module strtoimax:
7345 # Code from module strtoll:
7346 # Code from module strtoull:
7347 # Code from module strtoumax:
7348 # Code from module symlink:
7349 # Code from module sys_select:
7350 # Code from module sys_stat:
7351 # Code from module sys_time:
7352 # Code from module tempname:
7353 # Code from module time:
7354 # Code from module time_r:
7355 # Code from module timer-time:
7356 # Code from module timespec:
7357 # Code from module timespec-add:
7358 # Code from module timespec-sub:
7359 # Code from module u64:
7360 # Code from module unistd:
7361 # Code from module unsetenv:
7362 # Code from module utimens:
7363 # Code from module verify:
7364 # Code from module warnings:
7365 # Code from module xalloc-oversized:
7368 if test "$ac_test_CFLAGS" != set; then
7369 # It's helpful to have C macros available to GDB, so prefer -g3 to -g
7370 # if -g3 works and the user does not specify CFLAGS.
7371 # This test must follow gl_EARLY; otherwise AC_LINK_IFELSE complains.
7374 emacs_g3_CFLAGS
='-g3';;
7376 emacs_g3_CFLAGS
='-g3 -O2';;
7378 emacs_g3_CFLAGS
='';;
7380 if test -n "$emacs_g3_CFLAGS"; then
7381 emacs_save_CFLAGS
=$CFLAGS
7382 CFLAGS
=$emacs_g3_CFLAGS
7383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts $emacs_g3_CFLAGS" >&5
7384 $as_echo_n "checking whether $CC accepts $emacs_g3_CFLAGS... " >&6; }
7385 if test "${emacs_cv_prog_cc_g3+set}" = set; then :
7386 $as_echo_n "(cached) " >&6
7388 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7389 /* end confdefs.h. */
7399 if ac_fn_c_try_link
"$LINENO"; then :
7400 emacs_cv_prog_cc_g3
=yes
7402 emacs_cv_prog_cc_g3
=no
7404 rm -f core conftest.err conftest.
$ac_objext \
7405 conftest
$ac_exeext conftest.
$ac_ext
7407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_prog_cc_g3" >&5
7408 $as_echo "$emacs_cv_prog_cc_g3" >&6; }
7409 if test $emacs_cv_prog_cc_g3 != yes; then
7410 CFLAGS
=$emacs_save_CFLAGS
7412 if test $opsys = mingw32
; then
7413 CFLAGS
="$CFLAGS -gdwarf-2"
7420 # No optimization flag was inferred for this non-GCC compiler.
7421 # Try -O. This is needed for xlc on AIX; see Bug#14258.
7422 emacs_save_CFLAGS
=$CFLAGS
7423 test -z "$CFLAGS" || CFLAGS
="$CFLAGS "
7425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -O" >&5
7426 $as_echo_n "checking whether $CC accepts -O... " >&6; }
7427 if test "${emacs_cv_prog_cc_o+set}" = set; then :
7428 $as_echo_n "(cached) " >&6
7430 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7431 /* end confdefs.h. */
7441 if ac_fn_c_try_link
"$LINENO"; then :
7442 emacs_cv_prog_cc_o
=yes
7444 emacs_cv_prog_cc_o
=no
7446 rm -f core conftest.err conftest.
$ac_objext \
7447 conftest
$ac_exeext conftest.
$ac_ext
7449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_prog_cc_o" >&5
7450 $as_echo "$emacs_cv_prog_cc_o" >&6; }
7451 if test $emacs_cv_prog_cc_o != yes; then
7452 CFLAGS
=$emacs_save_CFLAGS
7457 # Check whether --enable-gcc-warnings was given.
7458 if test "${enable_gcc_warnings+set}" = set; then :
7459 enableval
=$enable_gcc_warnings; case $enableval in
7461 *) as_fn_error
"bad value $enableval for gcc-warnings option" "$LINENO" 5 ;;
7463 gl_gcc_warnings
=$enableval
7470 # Check whether --enable-link-time-optimization was given.
7471 if test "${enable_link_time_optimization+set}" = set; then :
7472 enableval
=$enable_link_time_optimization; if test "${enableval}" != "no"; then
7473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether link-time optimization is supported" >&5
7474 $as_echo_n "checking whether link-time optimization is supported... " >&6; }
7476 if test x
$GCC = xyes
; then
7477 CPUS
=`getconf _NPROCESSORS_ONLN 2>/dev/null`
7478 if test x
$CPUS != x
; then
7484 CFLAGS
="$CFLAGS $LTO"
7485 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7486 /* end confdefs.h. */
7496 if ac_fn_c_try_compile
"$LINENO"; then :
7497 ac_lto_supported
=yes
7501 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7502 CFLAGS
="$old_CFLAGS"
7504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_lto_supported" >&5
7505 $as_echo "$ac_lto_supported" >&6; }
7506 if test "$ac_lto_supported" = "yes"; then
7507 CFLAGS
="$CFLAGS $LTO"
7513 # gl_GCC_VERSION_IFELSE([major], [minor], [run-if-found], [run-if-not-found])
7514 # ------------------------------------------------
7515 # If $CPP is gcc-MAJOR.MINOR or newer, then run RUN-IF-FOUND.
7516 # Otherwise, run RUN-IF-NOT-FOUND.
7519 # When compiling with GCC, prefer -isystem to -I when including system
7520 # include files, to avoid generating useless diagnostics for the files.
7521 if test "$gl_gcc_warnings" != yes; then
7526 # This, $nw, is the list of warnings we disable.
7529 case $with_x_toolkit in
7530 lucid | athena | motif
)
7531 # Old toolkits mishandle 'const'.
7532 nw
="$nw -Wwrite-strings"
7535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Werror -Wunknown-warning-option" >&5
7536 $as_echo_n "checking whether C compiler handles -Werror -Wunknown-warning-option... " >&6; }
7537 if test "${gl_cv_warn_c__Werror__Wunknown_warning_option+set}" = set; then :
7538 $as_echo_n "(cached) " >&6
7541 gl_save_compiler_FLAGS
="$CFLAGS"
7542 as_fn_append CFLAGS
" $gl_unknown_warnings_are_errors -Werror -Wunknown-warning-option"
7543 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7544 /* end confdefs.h. */
7554 if ac_fn_c_try_compile
"$LINENO"; then :
7555 gl_cv_warn_c__Werror__Wunknown_warning_option
=yes
7557 gl_cv_warn_c__Werror__Wunknown_warning_option
=no
7559 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7560 CFLAGS
="$gl_save_compiler_FLAGS"
7563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Werror__Wunknown_warning_option" >&5
7564 $as_echo "$gl_cv_warn_c__Werror__Wunknown_warning_option" >&6; }
7565 if test "x$gl_cv_warn_c__Werror__Wunknown_warning_option" = x
""yes; then :
7566 gl_unknown_warnings_are_errors
='-Wunknown-warning-option -Werror'
7568 gl_unknown_warnings_are_errors
=
7572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Werror" >&5
7573 $as_echo_n "checking whether C compiler handles -Werror... " >&6; }
7574 if test "${gl_cv_warn_c__Werror+set}" = set; then :
7575 $as_echo_n "(cached) " >&6
7578 gl_save_compiler_FLAGS
="$CFLAGS"
7579 as_fn_append CFLAGS
" $gl_unknown_warnings_are_errors -Werror"
7580 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7581 /* end confdefs.h. */
7591 if ac_fn_c_try_compile
"$LINENO"; then :
7592 gl_cv_warn_c__Werror
=yes
7594 gl_cv_warn_c__Werror
=no
7596 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7597 CFLAGS
="$gl_save_compiler_FLAGS"
7600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Werror" >&5
7601 $as_echo "$gl_cv_warn_c__Werror" >&6; }
7602 if test "x$gl_cv_warn_c__Werror" = x
""yes; then :
7603 as_fn_append WERROR_CFLAGS
" -Werror"
7611 nw
="$nw -Wsystem-headers" # Don't let system headers trigger warnings
7612 nw
="$nw -Woverlength-strings" # Not a problem these days
7613 nw
="$nw -Wlogical-op" # any use of fwrite provokes this
7614 nw
="$nw -Wformat-nonliteral" # we do this a lot
7615 nw
="$nw -Wvla" # warnings in gettext.h
7616 nw
="$nw -Wnested-externs" # use of XARGMATCH/verify_function__
7617 nw
="$nw -Wswitch-default" # Too many warnings for now
7618 nw
="$nw -Winline" # OK to ignore 'inline'
7619 nw
="$nw -Wjump-misses-init" # We sometimes safely jump over init.
7620 nw
="$nw -Wstrict-overflow" # OK to optimize assuming that
7621 # signed overflow has undefined behavior
7622 nw
="$nw -Wsync-nand" # irrelevant here, and provokes ObjC warning
7623 nw
="$nw -Wunsafe-loop-optimizations" # OK to suppress unsafe optimizations
7624 nw
="$nw -Wbad-function-cast" # These casts are no worse than others.
7626 # Emacs doesn't care about shadowing; see
7627 # <http://lists.gnu.org/archive/html/emacs-diffs/2011-11/msg00265.html>.
7630 # Emacs's use of alloca inhibits protecting the stack.
7631 nw
="$nw -Wstack-protector"
7633 # The following line should be removable at some point.
7634 nw
="$nw -Wsuggest-attribute=pure"
7636 # clang is unduly picky about some things.
7637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler is clang" >&5
7638 $as_echo_n "checking whether the compiler is clang... " >&6; }
7639 if test "${emacs_cv_clang+set}" = set; then :
7640 $as_echo_n "(cached) " >&6
7642 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7643 /* end confdefs.h. */
7657 if ac_fn_c_try_compile
"$LINENO"; then :
7662 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_clang" >&5
7665 $as_echo "$emacs_cv_clang" >&6; }
7666 if test $emacs_cv_clang = yes; then
7667 nw
="$nw -Wcast-align"
7672 if test -n "$GCC"; then
7674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is supported" >&5
7675 $as_echo_n "checking whether -Wno-missing-field-initializers is supported... " >&6; }
7676 if test "${gl_cv_cc_nomfi_supported+set}" = set; then :
7677 $as_echo_n "(cached) " >&6
7680 gl_save_CFLAGS
="$CFLAGS"
7681 CFLAGS
="$CFLAGS -W -Werror -Wno-missing-field-initializers"
7682 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7683 /* end confdefs.h. */
7693 if ac_fn_c_try_compile
"$LINENO"; then :
7694 gl_cv_cc_nomfi_supported
=yes
7696 gl_cv_cc_nomfi_supported
=no
7698 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7699 CFLAGS
="$gl_save_CFLAGS"
7702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_supported" >&5
7703 $as_echo "$gl_cv_cc_nomfi_supported" >&6; }
7705 if test "$gl_cv_cc_nomfi_supported" = yes; then
7706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is needed" >&5
7707 $as_echo_n "checking whether -Wno-missing-field-initializers is needed... " >&6; }
7708 if test "${gl_cv_cc_nomfi_needed+set}" = set; then :
7709 $as_echo_n "(cached) " >&6
7712 gl_save_CFLAGS
="$CFLAGS"
7713 CFLAGS
="$CFLAGS -W -Werror"
7714 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7715 /* end confdefs.h. */
7718 typedef struct { int a; int b; } s_t;
7730 if ac_fn_c_try_compile
"$LINENO"; then :
7731 gl_cv_cc_nomfi_needed
=no
7733 gl_cv_cc_nomfi_needed
=yes
7735 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7736 CFLAGS
="$gl_save_CFLAGS"
7740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_needed" >&5
7741 $as_echo "$gl_cv_cc_nomfi_needed" >&6; }
7744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wuninitialized is supported" >&5
7745 $as_echo_n "checking whether -Wuninitialized is supported... " >&6; }
7746 if test "${gl_cv_cc_uninitialized_supported+set}" = set; then :
7747 $as_echo_n "(cached) " >&6
7750 gl_save_CFLAGS
="$CFLAGS"
7751 CFLAGS
="$CFLAGS -Werror -Wuninitialized"
7752 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7753 /* end confdefs.h. */
7763 if ac_fn_c_try_compile
"$LINENO"; then :
7764 gl_cv_cc_uninitialized_supported
=yes
7766 gl_cv_cc_uninitialized_supported
=no
7768 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7769 CFLAGS
="$gl_save_CFLAGS"
7772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_uninitialized_supported" >&5
7773 $as_echo "$gl_cv_cc_uninitialized_supported" >&6; }
7777 # List all gcc warning categories.
7779 for gl_manywarn_item
in \
7783 -Waggressive-loop-optimizations \
7787 -Wbad-function-cast \
7788 -Wbuiltin-macro-redefined \
7794 -Wcoverage-mismatch \
7797 -Wdeprecated-declarations \
7798 -Wdisabled-optimization \
7800 -Wdouble-promotion \
7805 -Wformat-contains-nul \
7806 -Wformat-extra-args \
7807 -Wformat-nonliteral \
7810 -Wformat-zero-length \
7811 -Wfree-nonheap-object \
7812 -Wignored-qualifiers \
7814 -Wimplicit-function-declaration \
7818 -Wint-to-pointer-cast \
7819 -Winvalid-memory-model \
7821 -Wjump-misses-init \
7824 -Wmaybe-uninitialized \
7826 -Wmissing-declarations \
7827 -Wmissing-field-initializers \
7828 -Wmissing-include-dirs \
7829 -Wmissing-parameter-type \
7830 -Wmissing-prototypes \
7837 -Wold-style-declaration \
7838 -Wold-style-definition \
7840 -Woverlength-strings \
7843 -Wpacked-bitfield-compat \
7847 -Wpointer-to-int-cast \
7849 -Wreturn-local-addr \
7853 -Wsizeof-pointer-memaccess \
7857 -Wstrict-prototypes \
7858 -Wsuggest-attribute=const \
7859 -Wsuggest-attribute=format \
7860 -Wsuggest-attribute=noreturn \
7861 -Wsuggest-attribute=pure \
7871 -Wunsafe-loop-optimizations \
7873 -Wunused-but-set-parameter \
7874 -Wunused-but-set-variable \
7877 -Wunused-local-typedefs \
7879 -Wunused-parameter \
7885 -Wvector-operation-performance \
7887 -Wvolatile-register-var \
7891 gl_manywarn_set
="$gl_manywarn_set $gl_manywarn_item"
7894 # Disable specific options as needed.
7895 if test "$gl_cv_cc_nomfi_needed" = yes; then
7896 gl_manywarn_set
="$gl_manywarn_set -Wno-missing-field-initializers"
7899 if test "$gl_cv_cc_uninitialized_supported" = no
; then
7900 gl_manywarn_set
="$gl_manywarn_set -Wno-uninitialized"
7911 *" $gl_warn_item "*)
7914 gl_warn_set
="$gl_warn_set $gl_warn_item"
7922 as_gl_Warn
=`$as_echo "gl_cv_warn_c_$w" | $as_tr_sh`
7923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles $w" >&5
7924 $as_echo_n "checking whether C compiler handles $w... " >&6; }
7925 if { as_var
=$as_gl_Warn; eval "test \"\${$as_var+set}\" = set"; }; then :
7926 $as_echo_n "(cached) " >&6
7929 gl_save_compiler_FLAGS
="$CFLAGS"
7930 as_fn_append CFLAGS
" $gl_unknown_warnings_are_errors $w"
7931 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7932 /* end confdefs.h. */
7942 if ac_fn_c_try_compile
"$LINENO"; then :
7943 eval "$as_gl_Warn=yes"
7945 eval "$as_gl_Warn=no"
7947 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7948 CFLAGS
="$gl_save_compiler_FLAGS"
7951 eval ac_res
=\$
$as_gl_Warn
7952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7953 $as_echo "$ac_res" >&6; }
7954 eval as_val
=\$
$as_gl_Warn
7955 if test "x$as_val" = x
""yes; then :
7956 as_fn_append WARN_CFLAGS
" $w"
7962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-missing-field-initializers" >&5
7963 $as_echo_n "checking whether C compiler handles -Wno-missing-field-initializers... " >&6; }
7964 if test "${gl_cv_warn_c__Wno_missing_field_initializers+set}" = set; then :
7965 $as_echo_n "(cached) " >&6
7968 gl_save_compiler_FLAGS
="$CFLAGS"
7969 as_fn_append CFLAGS
" $gl_unknown_warnings_are_errors -Wno-missing-field-initializers"
7970 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7971 /* end confdefs.h. */
7981 if ac_fn_c_try_compile
"$LINENO"; then :
7982 gl_cv_warn_c__Wno_missing_field_initializers
=yes
7984 gl_cv_warn_c__Wno_missing_field_initializers
=no
7986 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7987 CFLAGS
="$gl_save_compiler_FLAGS"
7990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_missing_field_initializers" >&5
7991 $as_echo "$gl_cv_warn_c__Wno_missing_field_initializers" >&6; }
7992 if test "x$gl_cv_warn_c__Wno_missing_field_initializers" = x
""yes; then :
7993 as_fn_append WARN_CFLAGS
" -Wno-missing-field-initializers"
7998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-sign-compare" >&5
7999 $as_echo_n "checking whether C compiler handles -Wno-sign-compare... " >&6; }
8000 if test "${gl_cv_warn_c__Wno_sign_compare+set}" = set; then :
8001 $as_echo_n "(cached) " >&6
8004 gl_save_compiler_FLAGS
="$CFLAGS"
8005 as_fn_append CFLAGS
" $gl_unknown_warnings_are_errors -Wno-sign-compare"
8006 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8007 /* end confdefs.h. */
8017 if ac_fn_c_try_compile
"$LINENO"; then :
8018 gl_cv_warn_c__Wno_sign_compare
=yes
8020 gl_cv_warn_c__Wno_sign_compare
=no
8022 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8023 CFLAGS
="$gl_save_compiler_FLAGS"
8026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_sign_compare" >&5
8027 $as_echo "$gl_cv_warn_c__Wno_sign_compare" >&6; }
8028 if test "x$gl_cv_warn_c__Wno_sign_compare" = x
""yes; then :
8029 as_fn_append WARN_CFLAGS
" -Wno-sign-compare"
8032 # Too many warnings for now
8034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-type-limits" >&5
8035 $as_echo_n "checking whether C compiler handles -Wno-type-limits... " >&6; }
8036 if test "${gl_cv_warn_c__Wno_type_limits+set}" = set; then :
8037 $as_echo_n "(cached) " >&6
8040 gl_save_compiler_FLAGS
="$CFLAGS"
8041 as_fn_append CFLAGS
" $gl_unknown_warnings_are_errors -Wno-type-limits"
8042 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8043 /* end confdefs.h. */
8053 if ac_fn_c_try_compile
"$LINENO"; then :
8054 gl_cv_warn_c__Wno_type_limits
=yes
8056 gl_cv_warn_c__Wno_type_limits
=no
8058 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8059 CFLAGS
="$gl_save_compiler_FLAGS"
8062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_type_limits" >&5
8063 $as_echo "$gl_cv_warn_c__Wno_type_limits" >&6; }
8064 if test "x$gl_cv_warn_c__Wno_type_limits" = x
""yes; then :
8065 as_fn_append WARN_CFLAGS
" -Wno-type-limits"
8068 # Too many warnings for now
8070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-switch" >&5
8071 $as_echo_n "checking whether C compiler handles -Wno-switch... " >&6; }
8072 if test "${gl_cv_warn_c__Wno_switch+set}" = set; then :
8073 $as_echo_n "(cached) " >&6
8076 gl_save_compiler_FLAGS
="$CFLAGS"
8077 as_fn_append CFLAGS
" $gl_unknown_warnings_are_errors -Wno-switch"
8078 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8079 /* end confdefs.h. */
8089 if ac_fn_c_try_compile
"$LINENO"; then :
8090 gl_cv_warn_c__Wno_switch
=yes
8092 gl_cv_warn_c__Wno_switch
=no
8094 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8095 CFLAGS
="$gl_save_compiler_FLAGS"
8098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_switch" >&5
8099 $as_echo "$gl_cv_warn_c__Wno_switch" >&6; }
8100 if test "x$gl_cv_warn_c__Wno_switch" = x
""yes; then :
8101 as_fn_append WARN_CFLAGS
" -Wno-switch"
8104 # Too many warnings for now
8106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-unused-parameter" >&5
8107 $as_echo_n "checking whether C compiler handles -Wno-unused-parameter... " >&6; }
8108 if test "${gl_cv_warn_c__Wno_unused_parameter+set}" = set; then :
8109 $as_echo_n "(cached) " >&6
8112 gl_save_compiler_FLAGS
="$CFLAGS"
8113 as_fn_append CFLAGS
" $gl_unknown_warnings_are_errors -Wno-unused-parameter"
8114 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8115 /* end confdefs.h. */
8125 if ac_fn_c_try_compile
"$LINENO"; then :
8126 gl_cv_warn_c__Wno_unused_parameter
=yes
8128 gl_cv_warn_c__Wno_unused_parameter
=no
8130 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8131 CFLAGS
="$gl_save_compiler_FLAGS"
8134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_unused_parameter" >&5
8135 $as_echo "$gl_cv_warn_c__Wno_unused_parameter" >&6; }
8136 if test "x$gl_cv_warn_c__Wno_unused_parameter" = x
""yes; then :
8137 as_fn_append WARN_CFLAGS
" -Wno-unused-parameter"
8140 # Too many warnings for now
8142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-format-nonliteral" >&5
8143 $as_echo_n "checking whether C compiler handles -Wno-format-nonliteral... " >&6; }
8144 if test "${gl_cv_warn_c__Wno_format_nonliteral+set}" = set; then :
8145 $as_echo_n "(cached) " >&6
8148 gl_save_compiler_FLAGS
="$CFLAGS"
8149 as_fn_append CFLAGS
" $gl_unknown_warnings_are_errors -Wno-format-nonliteral"
8150 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8151 /* end confdefs.h. */
8161 if ac_fn_c_try_compile
"$LINENO"; then :
8162 gl_cv_warn_c__Wno_format_nonliteral
=yes
8164 gl_cv_warn_c__Wno_format_nonliteral
=no
8166 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8167 CFLAGS
="$gl_save_compiler_FLAGS"
8170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_format_nonliteral" >&5
8171 $as_echo "$gl_cv_warn_c__Wno_format_nonliteral" >&6; }
8172 if test "x$gl_cv_warn_c__Wno_format_nonliteral" = x
""yes; then :
8173 as_fn_append WARN_CFLAGS
" -Wno-format-nonliteral"
8178 # In spite of excluding -Wlogical-op above, it is enabled, as of
8179 # gcc 4.5.0 20090517.
8181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-logical-op" >&5
8182 $as_echo_n "checking whether C compiler handles -Wno-logical-op... " >&6; }
8183 if test "${gl_cv_warn_c__Wno_logical_op+set}" = set; then :
8184 $as_echo_n "(cached) " >&6
8187 gl_save_compiler_FLAGS
="$CFLAGS"
8188 as_fn_append CFLAGS
" $gl_unknown_warnings_are_errors -Wno-logical-op"
8189 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8190 /* end confdefs.h. */
8200 if ac_fn_c_try_compile
"$LINENO"; then :
8201 gl_cv_warn_c__Wno_logical_op
=yes
8203 gl_cv_warn_c__Wno_logical_op
=no
8205 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8206 CFLAGS
="$gl_save_compiler_FLAGS"
8209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_logical_op" >&5
8210 $as_echo "$gl_cv_warn_c__Wno_logical_op" >&6; }
8211 if test "x$gl_cv_warn_c__Wno_logical_op" = x
""yes; then :
8212 as_fn_append WARN_CFLAGS
" -Wno-logical-op"
8217 # More things that clang is unduly picky about.
8218 if test $emacs_cv_clang = yes; then
8220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-format-extra-args" >&5
8221 $as_echo_n "checking whether C compiler handles -Wno-format-extra-args... " >&6; }
8222 if test "${gl_cv_warn_c__Wno_format_extra_args+set}" = set; then :
8223 $as_echo_n "(cached) " >&6
8226 gl_save_compiler_FLAGS
="$CFLAGS"
8227 as_fn_append CFLAGS
" $gl_unknown_warnings_are_errors -Wno-format-extra-args"
8228 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8229 /* end confdefs.h. */
8239 if ac_fn_c_try_compile
"$LINENO"; then :
8240 gl_cv_warn_c__Wno_format_extra_args
=yes
8242 gl_cv_warn_c__Wno_format_extra_args
=no
8244 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8245 CFLAGS
="$gl_save_compiler_FLAGS"
8248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_format_extra_args" >&5
8249 $as_echo "$gl_cv_warn_c__Wno_format_extra_args" >&6; }
8250 if test "x$gl_cv_warn_c__Wno_format_extra_args" = x
""yes; then :
8251 as_fn_append WARN_CFLAGS
" -Wno-format-extra-args"
8256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-tautological-constant-out-of-range-compare" >&5
8257 $as_echo_n "checking whether C compiler handles -Wno-tautological-constant-out-of-range-compare... " >&6; }
8258 if test "${gl_cv_warn_c__Wno_tautological_constant_out_of_range_compare+set}" = set; then :
8259 $as_echo_n "(cached) " >&6
8262 gl_save_compiler_FLAGS
="$CFLAGS"
8263 as_fn_append CFLAGS
" $gl_unknown_warnings_are_errors -Wno-tautological-constant-out-of-range-compare"
8264 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8265 /* end confdefs.h. */
8275 if ac_fn_c_try_compile
"$LINENO"; then :
8276 gl_cv_warn_c__Wno_tautological_constant_out_of_range_compare
=yes
8278 gl_cv_warn_c__Wno_tautological_constant_out_of_range_compare
=no
8280 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8281 CFLAGS
="$gl_save_compiler_FLAGS"
8284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_tautological_constant_out_of_range_compare" >&5
8285 $as_echo "$gl_cv_warn_c__Wno_tautological_constant_out_of_range_compare" >&6; }
8286 if test "x$gl_cv_warn_c__Wno_tautological_constant_out_of_range_compare" = x
""yes; then :
8287 as_fn_append WARN_CFLAGS
" -Wno-tautological-constant-out-of-range-compare"
8292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-unused-command-line-argument" >&5
8293 $as_echo_n "checking whether C compiler handles -Wno-unused-command-line-argument... " >&6; }
8294 if test "${gl_cv_warn_c__Wno_unused_command_line_argument+set}" = set; then :
8295 $as_echo_n "(cached) " >&6
8298 gl_save_compiler_FLAGS
="$CFLAGS"
8299 as_fn_append CFLAGS
" $gl_unknown_warnings_are_errors -Wno-unused-command-line-argument"
8300 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8301 /* end confdefs.h. */
8311 if ac_fn_c_try_compile
"$LINENO"; then :
8312 gl_cv_warn_c__Wno_unused_command_line_argument
=yes
8314 gl_cv_warn_c__Wno_unused_command_line_argument
=no
8316 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8317 CFLAGS
="$gl_save_compiler_FLAGS"
8320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_unused_command_line_argument" >&5
8321 $as_echo "$gl_cv_warn_c__Wno_unused_command_line_argument" >&6; }
8322 if test "x$gl_cv_warn_c__Wno_unused_command_line_argument" = x
""yes; then :
8323 as_fn_append WARN_CFLAGS
" -Wno-unused-command-line-argument"
8328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-unused-value" >&5
8329 $as_echo_n "checking whether C compiler handles -Wno-unused-value... " >&6; }
8330 if test "${gl_cv_warn_c__Wno_unused_value+set}" = set; then :
8331 $as_echo_n "(cached) " >&6
8334 gl_save_compiler_FLAGS
="$CFLAGS"
8335 as_fn_append CFLAGS
" $gl_unknown_warnings_are_errors -Wno-unused-value"
8336 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8337 /* end confdefs.h. */
8347 if ac_fn_c_try_compile
"$LINENO"; then :
8348 gl_cv_warn_c__Wno_unused_value
=yes
8350 gl_cv_warn_c__Wno_unused_value
=no
8352 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8353 CFLAGS
="$gl_save_compiler_FLAGS"
8356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_unused_value" >&5
8357 $as_echo "$gl_cv_warn_c__Wno_unused_value" >&6; }
8358 if test "x$gl_cv_warn_c__Wno_unused_value" = x
""yes; then :
8359 as_fn_append WARN_CFLAGS
" -Wno-unused-value"
8366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -fdiagnostics-show-option" >&5
8367 $as_echo_n "checking whether C compiler handles -fdiagnostics-show-option... " >&6; }
8368 if test "${gl_cv_warn_c__fdiagnostics_show_option+set}" = set; then :
8369 $as_echo_n "(cached) " >&6
8372 gl_save_compiler_FLAGS
="$CFLAGS"
8373 as_fn_append CFLAGS
" $gl_unknown_warnings_are_errors -fdiagnostics-show-option"
8374 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8375 /* end confdefs.h. */
8385 if ac_fn_c_try_compile
"$LINENO"; then :
8386 gl_cv_warn_c__fdiagnostics_show_option
=yes
8388 gl_cv_warn_c__fdiagnostics_show_option
=no
8390 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8391 CFLAGS
="$gl_save_compiler_FLAGS"
8394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__fdiagnostics_show_option" >&5
8395 $as_echo "$gl_cv_warn_c__fdiagnostics_show_option" >&6; }
8396 if test "x$gl_cv_warn_c__fdiagnostics_show_option" = x
""yes; then :
8397 as_fn_append WARN_CFLAGS
" -fdiagnostics-show-option"
8402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -funit-at-a-time" >&5
8403 $as_echo_n "checking whether C compiler handles -funit-at-a-time... " >&6; }
8404 if test "${gl_cv_warn_c__funit_at_a_time+set}" = set; then :
8405 $as_echo_n "(cached) " >&6
8408 gl_save_compiler_FLAGS
="$CFLAGS"
8409 as_fn_append CFLAGS
" $gl_unknown_warnings_are_errors -funit-at-a-time"
8410 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8411 /* end confdefs.h. */
8421 if ac_fn_c_try_compile
"$LINENO"; then :
8422 gl_cv_warn_c__funit_at_a_time
=yes
8424 gl_cv_warn_c__funit_at_a_time
=no
8426 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8427 CFLAGS
="$gl_save_compiler_FLAGS"
8430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__funit_at_a_time" >&5
8431 $as_echo "$gl_cv_warn_c__funit_at_a_time" >&6; }
8432 if test "x$gl_cv_warn_c__funit_at_a_time" = x
""yes; then :
8433 as_fn_append WARN_CFLAGS
" -funit-at-a-time"
8439 $as_echo "#define lint 1" >>confdefs.h
8443 $as_echo "#define GNULIB_PORTCHECK 1" >>confdefs.h
8446 # We use a slightly smaller set of warning options for lib/.
8447 # Remove the following and save the result in GNULIB_WARN_CFLAGS.
8449 nw
="$nw -Wunused-macros"
8453 set x
$WARN_CFLAGS; shift
8457 *" $gl_warn_item "*)
8460 gl_warn_set
="$gl_warn_set $gl_warn_item"
8464 GNULIB_WARN_CFLAGS
=$gl_warn_set
8474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works for files in the same directory" >&5
8475 $as_echo_n "checking whether ln -s works for files in the same directory... " >&6; }
8476 rm -f conf$$ conf$$.
file
8478 LN_S_FILEONLY
='cp -p'
8480 if (echo >conf$$.
file) 2>/dev
/null
; then
8481 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
8482 LN_S_FILEONLY
='ln -s'
8483 elif ln conf$$.
file conf$$
2>/dev
/null
; then
8488 rm -f conf$$ conf$$.
file
8490 if test "$LN_S_FILEONLY" = "ln -s"; then
8491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8492 $as_echo "yes" >&6; }
8494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S_FILEONLY" >&5
8495 $as_echo "no, using $LN_S_FILEONLY" >&6; }
8501 if test "$opsys" = "mingw32"; then
8505 # Extract the first word of "install-info", so it can be a program name with args.
8506 set dummy install-info
; ac_word
=$2
8507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8508 $as_echo_n "checking for $ac_word... " >&6; }
8509 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
8510 $as_echo_n "(cached) " >&6
8512 case $INSTALL_INFO in
8514 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
8517 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8518 for as_dir
in $PATH$PATH_SEPARATOR/usr
/sbin
$PATH_SEPARATOR/sbin
8521 test -z "$as_dir" && as_dir
=.
8522 for ac_exec_ext
in '' $ac_executable_extensions; do
8523 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8524 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
8525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8532 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
8536 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
8537 if test -n "$INSTALL_INFO"; then
8538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
8539 $as_echo "$INSTALL_INFO" >&6; }
8541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8542 $as_echo "no" >&6; }
8546 # Extract the first word of "gzip", so it can be a program name with args.
8547 set dummy
gzip; ac_word
=$2
8548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8549 $as_echo_n "checking for $ac_word... " >&6; }
8550 if test "${ac_cv_path_GZIP_PROG+set}" = set; then :
8551 $as_echo_n "(cached) " >&6
8555 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
8558 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8562 test -z "$as_dir" && as_dir
=.
8563 for ac_exec_ext
in '' $ac_executable_extensions; do
8564 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8565 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
8566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8576 GZIP_PROG
=$ac_cv_path_GZIP_PROG
8577 if test -n "$GZIP_PROG"; then
8578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
8579 $as_echo "$GZIP_PROG" >&6; }
8581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8582 $as_echo "no" >&6; }
8587 if test $opsys = gnu-linux
; then
8588 # Extract the first word of "paxctl", so it can be a program name with args.
8589 set dummy paxctl
; ac_word
=$2
8590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8591 $as_echo_n "checking for $ac_word... " >&6; }
8592 if test "${ac_cv_path_PAXCTL+set}" = set; then :
8593 $as_echo_n "(cached) " >&6
8597 ac_cv_path_PAXCTL
="$PAXCTL" # Let the user override the test with a path.
8600 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8601 for as_dir
in $PATH$PATH_SEPARATOR/sbin
$PATH_SEPARATOR/usr
/sbin
8604 test -z "$as_dir" && as_dir
=.
8605 for ac_exec_ext
in '' $ac_executable_extensions; do
8606 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8607 ac_cv_path_PAXCTL
="$as_dir/$ac_word$ac_exec_ext"
8608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8618 PAXCTL
=$ac_cv_path_PAXCTL
8619 if test -n "$PAXCTL"; then
8620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PAXCTL" >&5
8621 $as_echo "$PAXCTL" >&6; }
8623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8624 $as_echo "no" >&6; }
8628 if test "X$PAXCTL" != X
; then
8629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether binaries have a PT_PAX_FLAGS header" >&5
8630 $as_echo_n "checking whether binaries have a PT_PAX_FLAGS header... " >&6; }
8631 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8632 /* end confdefs.h. */
8642 if ac_fn_c_try_link
"$LINENO"; then :
8643 if $PAXCTL -v conftest
$EXEEXT >/dev
/null
2>&1; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8644 $as_echo "yes" >&6; }
8645 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8646 $as_echo "no" >&6; }; PAXCTL
=""; fi
8648 rm -f core conftest.err conftest.
$ac_objext \
8649 conftest
$ac_exeext conftest.
$ac_ext
8653 ## Need makeinfo >= 4.7 (?) to build the manuals.
8654 # Extract the first word of "makeinfo", so it can be a program name with args.
8655 set dummy makeinfo
; ac_word
=$2
8656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8657 $as_echo_n "checking for $ac_word... " >&6; }
8658 if test "${ac_cv_path_MAKEINFO+set}" = set; then :
8659 $as_echo_n "(cached) " >&6
8663 ac_cv_path_MAKEINFO
="$MAKEINFO" # Let the user override the test with a path.
8666 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8670 test -z "$as_dir" && as_dir
=.
8671 for ac_exec_ext
in '' $ac_executable_extensions; do
8672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8673 ac_cv_path_MAKEINFO
="$as_dir/$ac_word$ac_exec_ext"
8674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8681 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO
="no"
8685 MAKEINFO
=$ac_cv_path_MAKEINFO
8686 if test -n "$MAKEINFO"; then
8687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8688 $as_echo "$MAKEINFO" >&6; }
8690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8691 $as_echo "no" >&6; }
8695 if test "$MAKEINFO" != "no"; then
8697 $MAKEINFO --version 2> /dev/null |
8698 $EGREP 'texinfo[^0-9]*([1-4][0-9]+|[5-9]|4\.[7-9]|4\.[1-6][0-9]+)'
8704 ## Makeinfo is unusual. For a released Emacs, the manuals are
8705 ## pre-built, and not deleted by the normal clean rules. makeinfo is
8706 ## therefore in the category of "special tools" not normally required, which
8707 ## configure does not have to check for (eg autoconf itself).
8708 ## In a Bazaar checkout on the other hand, the manuals are not included.
8709 ## So makeinfo is a requirement to build from Bazaar, and configure
8710 ## should test for it as it does for any other build requirement.
8711 ## We use the presence of $srcdir/info/emacs to distinguish a release,
8712 ## with pre-built manuals, from a Bazaar checkout.
8715 if test "$MAKEINFO" = "no"; then
8717 if test "x${with_makeinfo}" = "xno"; then
8719 elif test ! -e "$srcdir/info/emacs" && test ! -e "$srcdir/info/emacs.info"; then
8720 as_fn_error
"You do not seem to have makeinfo >= 4.7, and your
8721 source tree does not seem to have pre-built manuals in the \`info' directory.
8722 Either install a suitable version of makeinfo, or re-run configure
8723 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
8729 INFO_OPTS
=--no-split
8734 if test x
$GCC = xyes
; then
8735 test "x$GCC_LINK_TEST_OPTIONS" != x
&& \
8736 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
8738 test "x$NON_GCC_LINK_TEST_OPTIONS" != x
&& \
8739 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
8743 late_LDFLAGS
=$LDFLAGS
8744 if test x
$GCC = xyes
; then
8745 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
8747 LDFLAGS
="$LDFLAGS -znocombreloc"
8750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
8751 $as_echo_n "checking for -znocombreloc... " >&6; }
8752 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8753 /* end confdefs.h. */
8763 if ac_fn_c_try_link
"$LINENO"; then :
8764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8765 $as_echo "yes" >&6; }
8767 LDFLAGS
=$late_LDFLAGS
8768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8769 $as_echo "no" >&6; }
8771 rm -f core conftest.err conftest.
$ac_objext \
8772 conftest
$ac_exeext conftest.
$ac_ext
8775 test "x$CANNOT_DUMP" = "x" && CANNOT_DUMP
=no
8777 your-opsys-here
) CANNOT_DUMP
=yes ;;
8780 test "$CANNOT_DUMP" = "yes" && \
8782 $as_echo "#define CANNOT_DUMP 1" >>confdefs.h
8788 UNEXEC_OBJ
=unexelf.o
8790 # MSDOS uses unexcoff.o
8792 UNEXEC_OBJ
=unexaix.o
8798 UNEXEC_OBJ
=unexmacosx.o
8801 UNEXEC_OBJ
=unexhp9k800.o
8804 UNEXEC_OBJ
=unexw32.o
8807 # Use the Solaris dldump() function, called from unexsol.c, to dump
8808 # emacs, instead of the generic ELF dump code found in unexelf.c.
8809 # The resulting binary has a complete symbol table, and is better
8810 # for debugging and other observability tools (debuggers, pstack, etc).
8812 # If you encounter a problem using dldump(), please consider sending
8813 # a message to the OpenSolaris tools-linking mailing list:
8814 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
8816 # It is likely that dldump() works with older Solaris too, but this has
8817 # not been tested, so for now this change is for Solaris 10 or newer.
8818 UNEXEC_OBJ
=unexsol.o
8825 ## Let `ld' find image libs and similar things in /usr/local/lib.
8826 ## The system compiler, GCC, has apparently been modified to not
8827 ## look there, contrary to what a stock GCC would do.
8828 ### It's not our place to do this. See bug#10313#17.
8829 ### LD_SWITCH_SYSTEM=-L/usr/local/lib
8834 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
8835 case $host_cpu in mips
*) LD_SWITCH_SYSTEM
="-G 0";; esac
8839 ### It's not our place to do this. See bug#10313#17.
8840 ### LD_SWITCH_SYSTEM="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
8845 ## Han Boetes <han@boetes.org> says this is necessary,
8846 ## otherwise Emacs dumps core on elf systems.
8847 LD_SWITCH_SYSTEM
="-Z"
8852 ac_link
="$ac_link $LD_SWITCH_SYSTEM"
8854 ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_RPATH,
8855 ## which has not been defined yet. When this was handled with cpp,
8856 ## it was expanded to null when configure sourced the s/*.h file.
8857 ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
8858 ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
8859 ## (or somesuch), but because it is supposed to go at the _front_
8860 ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
8861 ## Compare with the gnu-linux case below, which added to the end
8862 ## of LD_SWITCH_SYSTEM, and so can instead go at the front of
8863 ## LD_SWITCH_SYSTEM_TEMACS.
8866 LD_SWITCH_SYSTEM
="\$(LD_SWITCH_X_SITE_RPATH) $LD_SWITCH_SYSTEM" ;;
8873 ac_fn_c_check_decl
"$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
8874 if test "x$ac_cv_have_decl___ELF__" = x
""yes; then :
8878 if test "$ac_cv_have_decl___ELF__" = "yes"; then
8879 ## With ELF, make sure that all common symbols get allocated to in the
8880 ## data section. Otherwise, the dump of temacs may miss variables in
8881 ## the shared library that have been initialized. For example, with
8882 ## GNU libc, __malloc_initialized would normally be resolved to the
8883 ## shared library's .bss section, which is fatal.
8884 if test "x$GCC" = "xyes"; then
8885 C_SWITCH_MACHINE
="-fno-common"
8887 as_fn_error
"What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
8890 UNEXEC_OBJ
=unexalpha.o
8899 ## Some programs in src produce warnings saying certain subprograms
8900 ## are too complex and need a MAXMEM value greater than 2000 for
8901 ## additional optimization. --nils@exp-math.uni-essen.de
8902 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
8903 C_SWITCH_SYSTEM
="-ma -qmaxmem=4000"
8904 test "$opsys" = "mingw32" && C_SWITCH_SYSTEM
="-mtune=pentium4"
8905 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
8906 ## It is redundant in glibc2, since we define _GNU_SOURCE.
8912 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
8913 aix4-2
) LIBS_SYSTEM
="-lrts -lIM -liconv" ;;
8915 freebsd|dragonfly
) LIBS_SYSTEM
="-lutil" ;;
8917 hpux
*) LIBS_SYSTEM
="-l:libdld.sl" ;;
8919 sol2
*) LIBS_SYSTEM
="-lsocket -lnsl" ;;
8921 ## Motif needs -lgen.
8922 unixware
) LIBS_SYSTEM
="-lsocket -lnsl -lelf -lgen" ;;
8927 ### Make sure subsequent tests use flags consistent with the build flags.
8929 if test x
"${OVERRIDE_CPPFLAGS}" != x
; then
8930 CPPFLAGS
="${OVERRIDE_CPPFLAGS}"
8932 CPPFLAGS
="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
8935 # Suppress obsolescent Autoconf test for size_t; Emacs assumes C89 or better.
8937 # Likewise for obsolescent test for uid_t, gid_t; Emacs assumes them.
8942 SYSTEM_TYPE
=`echo $opsys | sed -e 's/[0-9].*//' -e 's|-|/|'`
8949 ## Adding -lm confuses the dynamic linker, so omit it.
8952 freebsd | dragonfly
)
8953 SYSTEM_TYPE
=berkeley-unix
8955 gnu-linux | gnu-kfreebsd
)
8957 hpux10-20 | hpux11
)
8961 SYSTEM_TYPE
=windows-nt
8964 SYSTEM_TYPE
=berkeley-unix
8968 SYSTEM_TYPE
=usg-unix-v
8975 cat >>confdefs.h
<<_ACEOF
8976 #define SYSTEM_TYPE "$SYSTEM_TYPE"
8981 pre_PKG_CONFIG_CFLAGS
=$CFLAGS
8982 pre_PKG_CONFIG_LIBS
=$LIBS
8984 # Extract the first word of "pkg-config", so it can be a program name with args.
8985 set dummy pkg-config
; ac_word
=$2
8986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8987 $as_echo_n "checking for $ac_word... " >&6; }
8988 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8989 $as_echo_n "(cached) " >&6
8993 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
8996 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9000 test -z "$as_dir" && as_dir
=.
9001 for ac_exec_ext
in '' $ac_executable_extensions; do
9002 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9003 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
9004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9011 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
9015 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
9016 if test -n "$PKG_CONFIG"; then
9017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9018 $as_echo "$PKG_CONFIG" >&6; }
9020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9021 $as_echo "no" >&6; }
9029 if test "${with_sound}" != "no"; then
9030 # Sound support for GNU/Linux, the free BSDs, and MinGW.
9031 for ac_header
in machine
/soundcard.h sys
/soundcard.h soundcard.h
9033 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9034 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "
9036 #define WIN32_LEAN_AND_MEAN
9037 #include <windows.h>
9041 eval as_val
=\$
$as_ac_Header
9042 if test "x$as_val" = x
""yes; then :
9043 cat >>confdefs.h
<<_ACEOF
9044 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9046 have_sound_header
=yes
9051 if test "${with_sound}" = "ossaudio" ||
test "${with_sound}" = "yes"; then
9052 # Emulation library used on NetBSD.
9053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
9054 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
9055 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
9056 $as_echo_n "(cached) " >&6
9058 ac_check_lib_save_LIBS
=$LIBS
9059 LIBS
="-lossaudio $LIBS"
9060 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9061 /* end confdefs.h. */
9063 /* Override any GCC internal prototype to avoid an error.
9064 Use char because int might match the return type of a GCC
9065 builtin and then its argument prototype would still apply. */
9073 return _oss_ioctl ();
9078 if ac_fn_c_try_link
"$LINENO"; then :
9079 ac_cv_lib_ossaudio__oss_ioctl
=yes
9081 ac_cv_lib_ossaudio__oss_ioctl
=no
9083 rm -f core conftest.err conftest.
$ac_objext \
9084 conftest
$ac_exeext conftest.
$ac_ext
9085 LIBS
=$ac_check_lib_save_LIBS
9087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
9088 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
9089 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x
""yes; then :
9095 test "${with_sound}" = "ossaudio" && test -z "$LIBSOUND" && \
9096 as_fn_error
"ossaudio sound support requested but not found." "$LINENO" 5
9100 if test "${with_sound}" = "alsa" ||
test "${with_sound}" = "yes"; then
9102 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
9106 if test "$PKG_CONFIG" = "no" ; then
9109 PKG_CONFIG_MIN_VERSION
=0.9.0
9110 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
9112 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
9114 if "$PKG_CONFIG" --exists "$ALSA_MODULES" 2>&5 &&
9115 ALSA_CFLAGS
=`"$PKG_CONFIG" --cflags "$ALSA_MODULES" 2>&5` &&
9116 ALSA_LIBS
=`"$PKG_CONFIG" --libs "$ALSA_MODULES" 2>&5`; then
9123 ALSA_CFLAGS
=`$as_echo "$ALSA_CFLAGS" | sed -e "$edit_cflags"`
9124 ALSA_LIBS
=`$as_echo "$ALSA_LIBS" | sed -e 's,///*,/,g'`
9125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$ALSA_CFLAGS' LIBS='$ALSA_LIBS'" >&5
9126 $as_echo "yes CFLAGS='$ALSA_CFLAGS' LIBS='$ALSA_LIBS'" >&6; }
9129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9130 $as_echo "no" >&6; }
9133 ## If we have a custom action on failure, don't print errors, but
9134 ## do set a variable so people can do so. Do it in a subshell
9135 ## to capture any diagnostics in invoking pkg-config.
9136 ALSA_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "$ALSA_MODULES") 2>&1`
9143 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9144 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9148 if test $succeeded = yes; then
9154 if test $HAVE_ALSA = yes; then
9155 SAVE_CFLAGS
="$CFLAGS"
9157 CFLAGS
="$ALSA_CFLAGS $CFLAGS"
9158 LIBS
="$ALSA_LIBS $LIBS"
9159 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9160 /* end confdefs.h. */
9161 #include <asoundlib.h>
9165 snd_lib_error_set_handler (0);
9170 if ac_fn_c_try_compile
"$LINENO"; then :
9171 emacs_alsa_normal
=yes
9173 emacs_alsa_normal
=no
9175 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9176 if test "$emacs_alsa_normal" != yes; then
9177 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9178 /* end confdefs.h. */
9179 #include <alsa/asoundlib.h>
9183 snd_lib_error_set_handler (0);
9188 if ac_fn_c_try_compile
"$LINENO"; then :
9189 emacs_alsa_subdir
=yes
9191 emacs_alsa_subdir
=no
9193 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9194 if test "$emacs_alsa_subdir" != yes; then
9195 as_fn_error
"pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
9197 ALSA_CFLAGS
="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
9200 CFLAGS
="$SAVE_CFLAGS"
9202 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
9203 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
9205 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
9207 elif test "${with_sound}" = "alsa"; then
9208 as_fn_error
"ALSA sound support requested but not found." "$LINENO" 5
9211 if test x
$have_sound_header = xyes ||
test $HAVE_ALSA = yes; then
9213 gnu-linux|freebsd|netbsd|mingw32
)
9215 $as_echo "#define HAVE_SOUND 1" >>confdefs.h
9228 for ac_header
in $ac_header_list
9230 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9231 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9233 eval as_val
=\$
$as_ac_Header
9234 if test "x$as_val" = x
""yes; then :
9235 cat >>confdefs.h
<<_ACEOF
9236 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
9262 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
9263 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9264 /* end confdefs.h. */
9265 #include <sys/personality.h>
9269 personality (PER_LINUX32)
9274 if ac_fn_c_try_compile
"$LINENO"; then :
9275 emacs_cv_personality_linux32
=yes
9277 emacs_cv_personality_linux32
=no
9279 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
9281 $as_echo "$emacs_cv_personality_linux32" >&6; }
9283 if test $emacs_cv_personality_linux32 = yes; then
9285 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
9289 for ac_header
in term.h
9291 ac_fn_c_check_header_preproc
"$LINENO" "term.h" "ac_cv_header_term_h"
9292 if test "x$ac_cv_header_term_h" = x
""yes; then :
9293 cat >>confdefs.h
<<_ACEOF
9294 #define HAVE_TERM_H 1
9301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
9302 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
9303 if test "${ac_cv_header_time+set}" = set; then :
9304 $as_echo_n "(cached) " >&6
9306 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9307 /* end confdefs.h. */
9308 #include <sys/types.h>
9309 #include <sys/time.h>
9315 if ((struct tm *) 0)
9321 if ac_fn_c_try_compile
"$LINENO"; then :
9322 ac_cv_header_time
=yes
9324 ac_cv_header_time
=no
9326 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
9329 $as_echo "$ac_cv_header_time" >&6; }
9330 if test $ac_cv_header_time = yes; then
9332 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
9336 ac_fn_c_check_decl
"$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "#include <signal.h>
9339 if test "x$ac_cv_have_decl_sys_siglist" = x
""yes; then :
9345 cat >>confdefs.h
<<_ACEOF
9346 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
9349 if test $ac_cv_have_decl_sys_siglist != yes; then
9350 # For Tru64, at least:
9351 ac_fn_c_check_decl
"$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "#include <signal.h>
9354 if test "x$ac_cv_have_decl___sys_siglist" = x
""yes; then :
9360 cat >>confdefs.h
<<_ACEOF
9361 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
9365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
9366 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
9367 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
9368 $as_echo_n "(cached) " >&6
9370 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9371 /* end confdefs.h. */
9372 #include <sys/types.h>
9373 #include <sys/wait.h>
9375 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
9378 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9386 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9391 if ac_fn_c_try_compile
"$LINENO"; then :
9392 ac_cv_header_sys_wait_h
=yes
9394 ac_cv_header_sys_wait_h
=no
9396 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
9399 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
9400 if test $ac_cv_header_sys_wait_h = yes; then
9402 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
9410 for ac_header
in net
/if.h
9412 ac_fn_c_check_header_compile
"$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
9413 #if HAVE_SYS_SOCKET_H
9414 #include <sys/socket.h>
9417 if test "x$ac_cv_header_net_if_h" = x
""yes; then :
9418 cat >>confdefs.h
<<_ACEOF
9419 #define HAVE_NET_IF_H 1
9426 for ac_header
in ifaddrs.h
9428 ac_fn_c_check_header_compile
"$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default
9429 #if HAVE_SYS_SOCKET_H
9430 #include <sys/socket.h>
9433 if test "x$ac_cv_header_ifaddrs_h" = x
""yes; then :
9434 cat >>confdefs.h
<<_ACEOF
9435 #define HAVE_IFADDRS_H 1
9442 for ac_header
in net
/if_dl.h
9444 ac_fn_c_check_header_compile
"$LINENO" "net/if_dl.h" "ac_cv_header_net_if_dl_h" "$ac_includes_default
9445 #if HAVE_SYS_SOCKET_H
9446 #include <sys/socket.h>
9449 if test "x$ac_cv_header_net_if_dl_h" = x
""yes; then :
9450 cat >>confdefs.h
<<_ACEOF
9451 #define HAVE_NET_IF_DL_H 1
9459 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
9460 #if HAVE_SYS_SOCKET_H
9461 #include <sys/socket.h>
9467 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x
""yes; then :
9469 cat >>confdefs.h
<<_ACEOF
9470 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
9475 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
9476 #if HAVE_SYS_SOCKET_H
9477 #include <sys/socket.h>
9483 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x
""yes; then :
9485 cat >>confdefs.h
<<_ACEOF
9486 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
9491 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
9492 #if HAVE_SYS_SOCKET_H
9493 #include <sys/socket.h>
9499 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x
""yes; then :
9501 cat >>confdefs.h
<<_ACEOF
9502 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
9507 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
9508 #if HAVE_SYS_SOCKET_H
9509 #include <sys/socket.h>
9515 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x
""yes; then :
9517 cat >>confdefs.h
<<_ACEOF
9518 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
9523 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
9524 #if HAVE_SYS_SOCKET_H
9525 #include <sys/socket.h>
9531 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x
""yes; then :
9533 cat >>confdefs.h
<<_ACEOF
9534 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
9539 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_addr.sa_len" "ac_cv_member_struct_ifreq_ifr_addr_sa_len" "$ac_includes_default
9540 #if HAVE_SYS_SOCKET_H
9541 #include <sys/socket.h>
9547 if test "x$ac_cv_member_struct_ifreq_ifr_addr_sa_len" = x
""yes; then :
9549 cat >>confdefs.h
<<_ACEOF
9550 #define HAVE_STRUCT_IFREQ_IFR_ADDR_SA_LEN 1
9562 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
9563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
9564 $as_echo_n "checking whether we are using GNU Make... " >&6; }
9566 testval
=`${MAKE-make} --version 2>/dev/null | grep 'GNU Make'`
9567 if test "x$testval" != x
; then
9570 ac_enable_autodepend
=no
9572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
9573 $as_echo "$HAVE_GNU_MAKE" >&6; }
9574 if test $HAVE_GNU_MAKE = yes; then
9575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
9576 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
9577 SAVE_CFLAGS
="$CFLAGS"
9578 CFLAGS
="$CFLAGS -MMD -MF deps.d -MP"
9579 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9580 /* end confdefs.h. */
9590 if ac_fn_c_try_compile
"$LINENO"; then :
9593 ac_enable_autodepend
=no
9595 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9596 CFLAGS
="$SAVE_CFLAGS"
9597 test -f deps.d || ac_enable_autodepend
=no
9599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
9600 $as_echo "$ac_enable_autodepend" >&6; }
9602 if test $ac_enable_autodepend = yes; then
9603 DEPFLAGS
='-MMD -MF ${DEPDIR}/$*.d -MP'
9604 ## MKDIR_P is documented (see AC_PROG_MKDIR_P) to be parallel-safe.
9605 MKDEPDIR
='${MKDIR_P} ${DEPDIR}'
9606 deps_frag
=autodeps.mk
9609 deps_frag
=$srcdir/src
/$deps_frag
9615 lisp_frag
=$srcdir/src
/lisp.mk
9619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
9620 $as_echo_n "checking for long file names... " >&6; }
9621 if test "${ac_cv_sys_long_file_names+set}" = set; then :
9622 $as_echo_n "(cached) " >&6
9624 ac_cv_sys_long_file_names
=yes
9625 # Test for long file names in all the places we know might matter:
9626 # . the current directory, where building will happen
9627 # $prefix/lib where we will be installing things
9628 # $exec_prefix/lib likewise
9629 # $TMPDIR if set, where it might want to write temporary files
9630 # /tmp where it might want to write temporary files
9633 for ac_dir
in .
"$TMPDIR" /tmp
/var
/tmp
/usr
/tmp
"$prefix/lib" "$exec_prefix/lib"; do
9634 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9635 # in the usual case where exec_prefix is '${prefix}'.
9637 . |
/* | ?
:[\\/]*) ;; #(
9640 test -w "$ac_dir/." ||
continue # It is less confusing to not echo anything here.
9641 ac_xdir
=$ac_dir/cf$$
9642 (umask 077 && mkdir
"$ac_xdir" 2>/dev
/null
) ||
continue
9643 ac_tf1
=$ac_xdir/conftest9012345
9644 ac_tf2
=$ac_xdir/conftest9012346
9645 touch "$ac_tf1" 2>/dev
/null
&& test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9646 ac_cv_sys_long_file_names
=no
9647 rm -f -r "$ac_xdir" 2>/dev
/null
9648 test $ac_cv_sys_long_file_names = no
&& break
9651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
9652 $as_echo "$ac_cv_sys_long_file_names" >&6; }
9653 if test $ac_cv_sys_long_file_names = yes; then
9655 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
9660 #### Choose a window system.
9662 ## We leave window_system equal to none if
9663 ## we end up building without one. Any new window system should
9664 ## set window_system to an appropriate value and add objects to
9665 ## window-system-specific substs.
9668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
9669 $as_echo_n "checking for X... " >&6; }
9672 # Check whether --with-x was given.
9673 if test "${with_x+set}" = set; then :
9677 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9678 if test "x$with_x" = xno
; then
9679 # The user explicitly disabled X.
9682 case $x_includes,$x_libraries in #(
9683 *\'*) as_fn_error
"cannot use X directory names containing '" "$LINENO" 5;; #(
9684 *,NONE | NONE
,*) if test "${ac_cv_have_x+set}" = set; then :
9685 $as_echo_n "(cached) " >&6
9687 # One or both of the vars are not set, and there is no cached value.
9688 ac_x_includes
=no ac_x_libraries
=no
9689 rm -f -r conftest.dir
9690 if mkdir conftest.dir
; then
9692 cat >Imakefile
<<'_ACEOF'
9694 @echo incroot='${INCROOT}'
9696 @echo usrlibdir='${USRLIBDIR}'
9698 @echo libdir='${LIBDIR}'
9700 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
9701 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9702 for ac_var
in incroot usrlibdir libdir
; do
9703 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9705 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9706 for ac_extension
in a so sl dylib la dll
; do
9707 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9708 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9709 ac_im_usrlibdir
=$ac_im_libdir; break
9712 # Screen out bogus values from the imake configuration. They are
9713 # bogus both because they are the default anyway, and because
9714 # using them would break gcc on systems where it needs fixed includes.
9715 case $ac_im_incroot in
9716 /usr
/include
) ac_x_includes
= ;;
9717 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
9719 case $ac_im_usrlibdir in
9720 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
9721 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
9725 rm -f -r conftest.dir
9728 # Standard set of common directories for X headers.
9729 # Check X11 before X11Rn because it is often a symlink to the current release.
9743 /usr/local/X11/include
9744 /usr/local/X11R7/include
9745 /usr/local/X11R6/include
9746 /usr/local/X11R5/include
9747 /usr/local/X11R4/include
9749 /usr/local/include/X11
9750 /usr/local/include/X11R7
9751 /usr/local/include/X11R6
9752 /usr/local/include/X11R5
9753 /usr/local/include/X11R4
9757 /usr/XFree86/include/X11
9761 /usr/unsupported/include
9763 /usr/local/x11r5/include
9764 /usr/lpp/Xamples/include
9766 /usr/openwin/include
9767 /usr/openwin/share/include'
9769 if test "$ac_x_includes" = no
; then
9770 # Guess where to find include files, by looking for Xlib.h.
9771 # First, try using that file with no special directory specified.
9772 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9773 /* end confdefs.h. */
9774 #include <X11/Xlib.h>
9776 if ac_fn_c_try_cpp
"$LINENO"; then :
9777 # We can compile using X headers with no special include directory.
9780 for ac_dir
in $ac_x_header_dirs; do
9781 if test -r "$ac_dir/X11/Xlib.h"; then
9782 ac_x_includes
=$ac_dir
9787 rm -f conftest.err conftest.
$ac_ext
9788 fi # $ac_x_includes = no
9790 if test "$ac_x_libraries" = no
; then
9791 # Check for the libraries.
9792 # See if we find them without any special options.
9793 # Don't add to $LIBS permanently.
9796 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9797 /* end confdefs.h. */
9798 #include <X11/Xlib.h>
9807 if ac_fn_c_try_link
"$LINENO"; then :
9809 # We can link X programs with no special library path.
9813 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9815 # Don't even attempt the hair of trying to link an X program!
9816 for ac_extension
in a so sl dylib la dll
; do
9817 if test -r "$ac_dir/libX11.$ac_extension"; then
9818 ac_x_libraries
=$ac_dir
9824 rm -f core conftest.err conftest.
$ac_objext \
9825 conftest
$ac_exeext conftest.
$ac_ext
9826 fi # $ac_x_libraries = no
9828 case $ac_x_includes,$ac_x_libraries in #(
9830 # Didn't find X, or a directory has "'" in its name.
9831 ac_cv_have_x
="have_x=no";; #(
9833 # Record where we found X for the cache.
9834 ac_cv_have_x
="have_x=yes\
9835 ac_x_includes='$ac_x_includes'\
9836 ac_x_libraries='$ac_x_libraries'"
9842 eval "$ac_cv_have_x"
9845 if test "$have_x" != yes; then
9846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
9847 $as_echo "$have_x" >&6; }
9850 # If each of the values was on the command line, it overrides each guess.
9851 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
9852 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
9853 # Update the cache value to reflect the command line values.
9854 ac_cv_have_x
="have_x=yes\
9855 ac_x_includes='$x_includes'\
9856 ac_x_libraries='$x_libraries'"
9857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
9858 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
9861 if test "$no_x" != yes; then
9865 LD_SWITCH_X_SITE_RPATH
=
9866 if test "${x_libraries}" != NONE
; then
9867 if test -n "${x_libraries}"; then
9868 LD_SWITCH_X_SITE
=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9869 LD_SWITCH_X_SITE_RPATH
=-Wl,-rpath,`echo ${x_libraries} | sed -e "s/:/ -Wl,-rpath,/g"`
9871 x_default_search_path
=""
9872 x_search_path
=${x_libraries}
9873 if test -z "${x_search_path}"; then
9874 x_search_path
=/usr
/lib
9876 for x_library
in `echo ${x_search_path}: | \
9877 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9879 ${x_library}/X11/%L/%T/%N%C%S:\
9880 ${x_library}/X11/%l/%T/%N%C%S:\
9881 ${x_library}/X11/%T/%N%C%S:\
9882 ${x_library}/X11/%L/%T/%N%S:\
9883 ${x_library}/X11/%l/%T/%N%S:\
9884 ${x_library}/X11/%T/%N%S"
9885 if test x
"${x_default_search_path}" = x
; then
9886 x_default_search_path
=${x_search_path}
9888 x_default_search_path
="${x_search_path}:${x_default_search_path}"
9894 if test "${x_includes}" != NONE
&& test -n "${x_includes}"; then
9895 C_SWITCH_X_SITE
="$isystem"`echo ${x_includes} | sed -e "s/:/ $isystem/g"`
9898 if test x
"${x_includes}" = x
; then
9899 bitmapdir
=/usr
/include
/X11
/bitmaps
9901 # accumulate include directories that have X11 bitmap subdirectories
9903 for bmd
in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9904 if test -d "${bmd}/X11/bitmaps"; then
9905 bmd_acc
="${bmd_acc}:${bmd}/X11/bitmaps"
9907 if test -d "${bmd}/bitmaps"; then
9908 bmd_acc
="${bmd_acc}:${bmd}/bitmaps"
9911 if test ${bmd_acc} != "dummyval"; then
9912 bitmapdir
=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9919 tmp_CPPFLAGS
="$CPPFLAGS"
9920 tmp_CFLAGS
="$CFLAGS"
9921 CPPFLAGS
="$CPPFLAGS -x objective-c"
9922 CFLAGS
="$CFLAGS -x objective-c"
9925 if test "${with_ns}" != no
; then
9926 if test "${opsys}" = darwin
; then
9928 ns_appdir
=`pwd`/nextstep
/Emacs.app
9929 ns_appbindir
=${ns_appdir}/Contents
/MacOS
9930 ns_appresdir
=${ns_appdir}/Contents
/Resources
9931 ns_appsrc
=Cocoa
/Emacs.base
9932 elif test -f $GNUSTEP_CONFIG_FILE; then
9934 ns_appdir
=`pwd`/nextstep
/Emacs.app
9935 ns_appbindir
=${ns_appdir}
9936 ns_appresdir
=${ns_appdir}/Resources
9937 ns_appsrc
=GNUstep
/Emacs.base
9938 GNUSTEP_SYSTEM_HEADERS
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9939 GNUSTEP_SYSTEM_LIBRARIES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9940 GNUSTEP_LOCAL_HEADERS
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
9941 GNUSTEP_LOCAL_LIBRARIES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
9942 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
9943 GNUSTEP_LOCAL_HEADERS
="-I${GNUSTEP_LOCAL_HEADERS}"
9944 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
9945 GNUSTEP_LOCAL_LIBRARIES
="-L${GNUSTEP_LOCAL_LIBRARIES}"
9946 CPPFLAGS
="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9947 CFLAGS
="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9948 LDFLAGS
="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
9949 LIBS_GNUSTEP
="-lgnustep-gui -lgnustep-base -lobjc -lpthread"
9950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS" >&5
9951 $as_echo_n "checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS... " >&6; }
9952 if test "${emacs_cv_objc_exceptions+set}" = set; then :
9953 $as_echo_n "(cached) " >&6
9955 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9956 /* end confdefs.h. */
9957 #include <GNUstepBase/GSConfig.h>
9961 #if defined BASE_NATIVE_OBJC_EXCEPTIONS && BASE_NATIVE_OBJC_EXCEPTIONS > 0
9970 if ac_fn_c_try_compile
"$LINENO"; then :
9971 emacs_cv_objc_exceptions
=yes
9973 emacs_cv_objc_exceptions
=no
9975 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_objc_exceptions" >&5
9978 $as_echo "$emacs_cv_objc_exceptions" >&6; }
9979 if test $emacs_cv_objc_exceptions = yes; then
9981 $as_echo "#define _NATIVE_OBJC_EXCEPTIONS 1" >>confdefs.h
9983 GNU_OBJC_CFLAGS
="-fobjc-exceptions"
9987 CFLAGS
="$CFLAGS $GNU_OBJC_CFLAGS"
9989 ac_fn_c_check_header_mongrel
"$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
9990 if test "x$ac_cv_header_AppKit_AppKit_h" = x
""yes; then :
9993 as_fn_error
"\`--with-ns' was specified, but the include
9994 files are missing or cannot be compiled." "$LINENO" 5
9999 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10000 /* end confdefs.h. */
10001 #include <AppKit/AppKit.h>
10006 #ifdef MAC_OS_X_VERSION_MAX_ALLOWED
10007 #if MAC_OS_X_VERSION_MAX_ALLOWED >= 1040
10010 #error "OSX 10.4 or newer required"
10018 if ac_fn_c_try_compile
"$LINENO"; then :
10019 ns_osx_have_104
=yes
10023 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10024 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10025 /* end confdefs.h. */
10026 #include <Foundation/NSObjCRuntime.h>
10035 if ac_fn_c_try_compile
"$LINENO"; then :
10036 ns_have_nsinteger
=yes
10038 ns_have_nsinteger
=no
10040 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10041 if test $ns_osx_have_104 = no
; then
10042 as_fn_error
"\`OSX 10.4 or newer is required'" "$LINENO" 5;
10044 if test $ns_have_nsinteger = yes; then
10046 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
10053 INSTALL_ARCH_INDEP_EXTRA
=install-etc
10054 ns_self_contained
=no
10057 if test "${HAVE_NS}" = yes; then
10058 if test "$with_toolkit_scroll_bars" = "no"; then
10059 as_fn_error
"Non-toolkit scroll bars are not implemented for Nextstep." "$LINENO" 5
10062 window_system
=nextstep
10063 # set up packaging dirs
10064 if test "${EN_NS_SELF_CONTAINED}" = yes; then
10065 ns_self_contained
=yes
10066 prefix
=${ns_appresdir}
10067 exec_prefix
=${ns_appbindir}
10068 libexecdir
="\${ns_appbindir}/libexec"
10069 archlibdir
="\${ns_appbindir}/libexec"
10070 etcdocdir
="\${ns_appresdir}/etc"
10071 etcdir
="\${ns_appresdir}/etc"
10072 infodir
="\${ns_appresdir}/info"
10073 mandir
="\${ns_appresdir}/man"
10074 lispdir
="\${ns_appresdir}/lisp"
10075 leimdir
="\${ns_appresdir}/leim"
10076 INSTALL_ARCH_INDEP_EXTRA
=
10078 NS_OBJC_OBJ
="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o"
10080 CFLAGS
="$tmp_CFLAGS"
10081 CPPFLAGS
="$tmp_CPPFLAGS"
10096 if test "${with_w32}" != no
; then
10099 ac_fn_c_check_header_mongrel
"$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
10100 if test "x$ac_cv_header_windows_h" = x
""yes; then :
10103 as_fn_error
"\`--with-w32' was specified, but windows.h
10104 cannot be found." "$LINENO" 5
10110 ## Using --with-w32 with MinGW is a no-op, but we allow it.
10113 as_fn_error
"Using w32 with an autotools build is only supported for Cygwin and MinGW32." "$LINENO" 5
10118 if test "${opsys}" = "mingw32"; then
10119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Windows API headers are recent enough" >&5
10120 $as_echo_n "checking whether Windows API headers are recent enough... " >&6; }
10121 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10122 /* end confdefs.h. */
10124 #include <windows.h>
10129 PIMAGE_NT_HEADERS pHeader;
10130 PIMAGE_SECTION_HEADER pSection = IMAGE_FIRST_SECTION(pHeader)
10135 if ac_fn_c_try_compile
"$LINENO"; then :
10136 emacs_cv_w32api
=yes
10141 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_w32api" >&5
10143 $as_echo "$emacs_cv_w32api" >&6; }
10144 if test "${emacs_cv_w32api}" = "no"; then
10145 as_fn_error
"the Windows API headers are too old to support this build." "$LINENO" 5
10156 if test "${HAVE_W32}" = "yes"; then
10158 $as_echo "#define HAVE_NTGUI 1" >>confdefs.h
10160 if test -n "$ac_tool_prefix"; then
10161 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
10162 set dummy
${ac_tool_prefix}windres
; ac_word
=$2
10163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10164 $as_echo_n "checking for $ac_word... " >&6; }
10165 if test "${ac_cv_prog_WINDRES+set}" = set; then :
10166 $as_echo_n "(cached) " >&6
10168 if test -n "$WINDRES"; then
10169 ac_cv_prog_WINDRES
="$WINDRES" # Let the user override the test.
10171 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10172 for as_dir
in $PATH
10175 test -z "$as_dir" && as_dir
=.
10176 for ac_exec_ext
in '' $ac_executable_extensions; do
10177 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10178 ac_cv_prog_WINDRES
="${ac_tool_prefix}windres"
10179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10188 WINDRES
=$ac_cv_prog_WINDRES
10189 if test -n "$WINDRES"; then
10190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
10191 $as_echo "$WINDRES" >&6; }
10193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10194 $as_echo "no" >&6; }
10199 if test -z "$ac_cv_prog_WINDRES"; then
10200 ac_ct_WINDRES
=$WINDRES
10201 # Extract the first word of "windres", so it can be a program name with args.
10202 set dummy windres
; ac_word
=$2
10203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10204 $as_echo_n "checking for $ac_word... " >&6; }
10205 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then :
10206 $as_echo_n "(cached) " >&6
10208 if test -n "$ac_ct_WINDRES"; then
10209 ac_cv_prog_ac_ct_WINDRES
="$ac_ct_WINDRES" # Let the user override the test.
10211 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10212 for as_dir
in $PATH
10215 test -z "$as_dir" && as_dir
=.
10216 for ac_exec_ext
in '' $ac_executable_extensions; do
10217 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10218 ac_cv_prog_ac_ct_WINDRES
="windres"
10219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10228 ac_ct_WINDRES
=$ac_cv_prog_ac_ct_WINDRES
10229 if test -n "$ac_ct_WINDRES"; then
10230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
10231 $as_echo "$ac_ct_WINDRES" >&6; }
10233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10234 $as_echo "no" >&6; }
10237 if test "x$ac_ct_WINDRES" = x
; then
10238 WINDRES
="as_fn_error "No resource compiler found.
" "$LINENO" 5"
10240 case $cross_compiling:$ac_tool_warned in
10242 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10243 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10244 ac_tool_warned
=yes ;;
10246 WINDRES
=$ac_ct_WINDRES
10249 WINDRES
="$ac_cv_prog_WINDRES"
10252 W32_OBJ
="w32fns.o w32menu.o w32reg.o w32font.o w32term.o"
10253 W32_OBJ
="$W32_OBJ w32xfns.o w32select.o w32uniscribe.o"
10254 EMACSRES
="emacs.res"
10255 case "$canonical" in
10256 x86_64-
*-*) EMACS_MANIFEST
="emacs-x64.manifest" ;;
10257 *) EMACS_MANIFEST
="emacs-x86.manifest" ;;
10259 UPDATE_MANIFEST
=update-game-score.exe.manifest
10260 if test "${opsys}" = "cygwin"; then
10261 W32_LIBS
="$W32_LIBS -lkernel32 -luser32 -lgdi32 -lole32 -lcomdlg32"
10262 W32_LIBS
="$W32_LIBS -lusp10 -lcomctl32 -lwinspool"
10263 # Tell the linker that emacs.res is an object (which we compile from
10264 # the rc file), not a linker script.
10265 W32_RES_LINK
="-Wl,emacs.res"
10267 W32_OBJ
="$W32_OBJ w32.o w32console.o w32heap.o w32inevt.o w32proc.o"
10268 W32_LIBS
="$W32_LIBS -lwinmm -lgdi32 -lcomdlg32"
10269 W32_LIBS
="$W32_LIBS -lmpr -lwinspool -lole32 -lcomctl32 -lusp10"
10270 W32_RES_LINK
="\$(EMACSRES)"
10271 CLIENTRES
="emacsclient.res"
10272 CLIENTW
="emacsclientw\$(EXEEXT)"
10273 FIRSTFILE_OBJ
=firstfile.o
10276 LIBS_ECLIENT
="-lcomctl32"
10277 LIB_WSOCK32
="-lwsock32"
10278 NTLIB
="ntlib.$ac_objext"
10279 XARGS_LIMIT
="-s 10000"
10298 if test "${HAVE_W32}" = "yes"; then
10303 ## $window_system is now set to the window system we will
10311 case "${window_system}" in
10315 term_header
=xterm.h
10316 case "${with_x_toolkit}" in
10317 athena | lucid
) USE_X_TOOLKIT
=LUCID
;;
10318 motif
) USE_X_TOOLKIT
=MOTIF
;;
10320 term_header
=gtkutil.h
10321 USE_X_TOOLKIT
=none
;;
10322 gtk2
) with_gtk2
=yes
10323 term_header
=gtkutil.h
10324 USE_X_TOOLKIT
=none
;;
10325 gtk3
) with_gtk3
=yes
10326 term_header
=gtkutil.h
10327 USE_X_TOOLKIT
=none
;;
10328 no
) USE_X_TOOLKIT
=none
;;
10329 * ) USE_X_TOOLKIT
=maybe
;;
10333 term_header
=nsterm.h
10336 term_header
=w32term.h
10340 if test "$window_system" = none
&& test "X$with_x" != "Xno"; then
10341 # Extract the first word of "X", so it can be a program name with args.
10342 set dummy X
; ac_word
=$2
10343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10344 $as_echo_n "checking for $ac_word... " >&6; }
10345 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then :
10346 $as_echo_n "(cached) " >&6
10348 if test -n "$HAVE_XSERVER"; then
10349 ac_cv_prog_HAVE_XSERVER
="$HAVE_XSERVER" # Let the user override the test.
10351 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10352 for as_dir
in $PATH
10355 test -z "$as_dir" && as_dir
=.
10356 for ac_exec_ext
in '' $ac_executable_extensions; do
10357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10358 ac_cv_prog_HAVE_XSERVER
="true"
10359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10366 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER
="false"
10369 HAVE_XSERVER
=$ac_cv_prog_HAVE_XSERVER
10370 if test -n "$HAVE_XSERVER"; then
10371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
10372 $as_echo "$HAVE_XSERVER" >&6; }
10374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10375 $as_echo "no" >&6; }
10379 if test "$HAVE_XSERVER" = true ||
10380 test -n "$DISPLAY" ||
10381 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
10382 as_fn_error
"You seem to be running X, but no X development libraries
10383 were found. You should install the relevant development files for X
10384 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
10385 sure you have development files for image handling, i.e.
10386 tiff, gif, jpeg, png and xpm.
10387 If you are sure you want Emacs compiled without X window support, pass
10389 to configure." "$LINENO" 5
10393 ### If we're using X11, we should use the X menu package.
10395 case ${HAVE_X11} in
10396 yes ) HAVE_MENUS
=yes ;;
10399 # Does the opsystem file prohibit the use of the GNU malloc?
10400 # Assume not, until told otherwise.
10403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc is Doug Lea style" >&5
10404 $as_echo_n "checking whether malloc is Doug Lea style... " >&6; }
10405 if test "${emacs_cv_var_doug_lea_malloc+set}" = set; then :
10406 $as_echo_n "(cached) " >&6
10408 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10409 /* end confdefs.h. */
10410 #include <malloc.h>
10411 static void hook (void) {}
10415 malloc_set_state (malloc_get_state ());
10416 __after_morecore_hook = hook;
10417 __malloc_initialize_hook = hook;
10422 if ac_fn_c_try_link
"$LINENO"; then :
10423 emacs_cv_var_doug_lea_malloc
=yes
10425 emacs_cv_var_doug_lea_malloc
=no
10427 rm -f core conftest.err conftest.
$ac_objext \
10428 conftest
$ac_exeext conftest.
$ac_ext
10430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var_doug_lea_malloc" >&5
10431 $as_echo "$emacs_cv_var_doug_lea_malloc" >&6; }
10432 doug_lea_malloc
=$emacs_cv_var_doug_lea_malloc
10437 ## darwin ld insists on the use of malloc routines in the System framework.
10438 darwin|sol2-10
) system_malloc
=yes ;;
10441 if test "${system_malloc}" = "yes"; then
10443 $as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
10446 GNU_MALLOC_reason
="
10447 (The GNU allocators don't work with this system configuration.)"
10451 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ
=gmalloc.o
10452 VMLIMIT_OBJ
=vm-limit.o
10454 for ac_header
in sys
/vlimit.h
10456 ac_fn_c_check_header_mongrel
"$LINENO" "sys/vlimit.h" "ac_cv_header_sys_vlimit_h" "$ac_includes_default"
10457 if test "x$ac_cv_header_sys_vlimit_h" = x
""yes; then :
10458 cat >>confdefs.h
<<_ACEOF
10459 #define HAVE_SYS_VLIMIT_H 1
10466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for data_start" >&5
10467 $as_echo_n "checking for data_start... " >&6; }
10468 if test "${emacs_cv_data_start+set}" = set; then :
10469 $as_echo_n "(cached) " >&6
10471 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10472 /* end confdefs.h. */
10473 extern char data_start[]; char ch;
10477 return data_start < &ch;
10482 if ac_fn_c_try_link
"$LINENO"; then :
10483 emacs_cv_data_start
=yes
10485 emacs_cv_data_start
=no
10487 rm -f core conftest.err conftest.
$ac_objext \
10488 conftest
$ac_exeext conftest.
$ac_ext
10490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_data_start" >&5
10491 $as_echo "$emacs_cv_data_start" >&6; }
10492 if test $emacs_cv_data_start = yes; then
10494 $as_echo "#define HAVE_DATA_START 1" >>confdefs.h
10501 if test "$doug_lea_malloc" = "yes" ; then
10502 if test "$GNU_MALLOC" = yes ; then
10503 GNU_MALLOC_reason
="
10504 (Using Doug Lea's new malloc from the GNU C Library.)"
10507 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
10510 ## Use mmap directly for allocating larger buffers.
10511 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
10512 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
10513 ## Does the AC_FUNC_MMAP test below make this check unnecessary?
10515 gnu
*) REL_ALLOC
=no
;;
10519 if test x
"${REL_ALLOC}" = x
; then
10520 REL_ALLOC
=${GNU_MALLOC}
10523 use_mmap_for_buffers
=no
10525 cygwin|freebsd|irix6-5
) use_mmap_for_buffers
=yes ;;
10535 for ac_func
in getpagesize
10537 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
10538 if test "x$ac_cv_func_getpagesize" = x
""yes; then :
10539 cat >>confdefs.h
<<_ACEOF
10540 #define HAVE_GETPAGESIZE 1
10546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
10547 $as_echo_n "checking for working mmap... " >&6; }
10548 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
10549 $as_echo_n "(cached) " >&6
10551 if test "$cross_compiling" = yes; then :
10552 ac_cv_func_mmap_fixed_mapped
=no
10554 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10555 /* end confdefs.h. */
10556 $ac_includes_default
10557 /* malloc might have been renamed as rpl_malloc. */
10560 /* Thanks to Mike Haertel and Jim Avera for this test.
10561 Here is a matrix of mmap possibilities:
10562 mmap private not fixed
10563 mmap private fixed at somewhere currently unmapped
10564 mmap private fixed at somewhere already mapped
10565 mmap shared not fixed
10566 mmap shared fixed at somewhere currently unmapped
10567 mmap shared fixed at somewhere already mapped
10568 For private mappings, we should verify that changes cannot be read()
10569 back from the file, nor mmap's back from the file at a different
10570 address. (There have been systems where private was not correctly
10571 implemented like the infamous i386 svr4.0, and systems where the
10572 VM page cache was not coherent with the file system buffer cache
10573 like early versions of FreeBSD and possibly contemporary NetBSD.)
10574 For shared mappings, we should conversely verify that changes get
10575 propagated back to all the places they're supposed to be.
10577 Grep wants private fixed already mapped.
10578 The main things grep needs to know about mmap are:
10579 * does it exist and is it safe to write into the mmap'd area
10580 * how to use it (BSD variants) */
10583 #include <sys/mman.h>
10585 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10589 /* This mess was copied from the GNU getpagesize.h. */
10590 #ifndef HAVE_GETPAGESIZE
10591 # ifdef _SC_PAGESIZE
10592 # define getpagesize() sysconf(_SC_PAGESIZE)
10593 # else /* no _SC_PAGESIZE */
10594 # ifdef HAVE_SYS_PARAM_H
10595 # include <sys/param.h>
10596 # ifdef EXEC_PAGESIZE
10597 # define getpagesize() EXEC_PAGESIZE
10598 # else /* no EXEC_PAGESIZE */
10600 # define getpagesize() NBPG * CLSIZE
10603 # endif /* no CLSIZE */
10604 # else /* no NBPG */
10606 # define getpagesize() NBPC
10607 # else /* no NBPC */
10609 # define getpagesize() PAGESIZE
10610 # endif /* PAGESIZE */
10611 # endif /* no NBPC */
10612 # endif /* no NBPG */
10613 # endif /* no EXEC_PAGESIZE */
10614 # else /* no HAVE_SYS_PARAM_H */
10615 # define getpagesize() 8192 /* punt totally */
10616 # endif /* no HAVE_SYS_PARAM_H */
10617 # endif /* no _SC_PAGESIZE */
10619 #endif /* no HAVE_GETPAGESIZE */
10624 char *data, *data2, *data3;
10625 const char *cdata2;
10629 pagesize = getpagesize ();
10631 /* First, make a file with some known garbage in it. */
10632 data = (char *) malloc (pagesize);
10635 for (i = 0; i < pagesize; ++i)
10636 *(data + i) = rand ();
10638 fd = creat ("conftest.mmap", 0600);
10641 if (write (fd, data, pagesize) != pagesize)
10645 /* Next, check that the tail of a page is zero-filled. File must have
10646 non-zero length, otherwise we risk SIGBUS for entire page. */
10647 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
10651 if (write (fd2, cdata2, 1) != 1)
10653 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
10654 if (data2 == MAP_FAILED)
10656 for (i = 0; i < pagesize; ++i)
10660 if (munmap (data2, pagesize))
10663 /* Next, try to mmap the file at a fixed address which already has
10664 something else allocated at it. If we can, also make sure that
10665 we see the same garbage. */
10666 fd = open ("conftest.mmap", O_RDWR);
10669 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10670 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10672 for (i = 0; i < pagesize; ++i)
10673 if (*(data + i) != *(data2 + i))
10676 /* Finally, make sure that changes to the mapped area do not
10677 percolate back to the file as seen by read(). (This is a bug on
10678 some variants of i386 svr4.0.) */
10679 for (i = 0; i < pagesize; ++i)
10680 *(data2 + i) = *(data2 + i) + 1;
10681 data3 = (char *) malloc (pagesize);
10684 if (read (fd, data3, pagesize) != pagesize)
10686 for (i = 0; i < pagesize; ++i)
10687 if (*(data + i) != *(data3 + i))
10693 if ac_fn_c_try_run
"$LINENO"; then :
10694 ac_cv_func_mmap_fixed_mapped
=yes
10696 ac_cv_func_mmap_fixed_mapped
=no
10698 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10699 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
10704 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
10705 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10707 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
10710 rm -f conftest.mmap conftest.txt
10712 if test $use_mmap_for_buffers = yes; then
10714 $as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
10719 LIBS
="$LIBS_SYSTEM $LIBS"
10721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
10722 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
10723 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
10724 $as_echo_n "(cached) " >&6
10726 ac_check_lib_save_LIBS
=$LIBS
10727 LIBS
="-ldnet $LIBS"
10728 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10729 /* end confdefs.h. */
10731 /* Override any GCC internal prototype to avoid an error.
10732 Use char because int might match the return type of a GCC
10733 builtin and then its argument prototype would still apply. */
10741 return dnet_ntoa ();
10746 if ac_fn_c_try_link
"$LINENO"; then :
10747 ac_cv_lib_dnet_dnet_ntoa
=yes
10749 ac_cv_lib_dnet_dnet_ntoa
=no
10751 rm -f core conftest.err conftest.
$ac_objext \
10752 conftest
$ac_exeext conftest.
$ac_ext
10753 LIBS
=$ac_check_lib_save_LIBS
10755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10756 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10757 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x
""yes; then :
10758 cat >>confdefs.h
<<_ACEOF
10759 #define HAVE_LIBDNET 1
10762 LIBS
="-ldnet $LIBS"
10767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
10768 $as_echo_n "checking for main in -lXbsd... " >&6; }
10769 if test "${ac_cv_lib_Xbsd_main+set}" = set; then :
10770 $as_echo_n "(cached) " >&6
10772 ac_check_lib_save_LIBS
=$LIBS
10773 LIBS
="-lXbsd $LIBS"
10774 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10775 /* end confdefs.h. */
10786 if ac_fn_c_try_link
"$LINENO"; then :
10787 ac_cv_lib_Xbsd_main
=yes
10789 ac_cv_lib_Xbsd_main
=no
10791 rm -f core conftest.err conftest.
$ac_objext \
10792 conftest
$ac_exeext conftest.
$ac_ext
10793 LIBS
=$ac_check_lib_save_LIBS
10795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
10796 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
10797 if test "x$ac_cv_lib_Xbsd_main" = x
""yes; then :
10798 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -lXbsd"
10806 if test "$ac_cv_header_pthread_h"; then
10807 if test "$GMALLOC_OBJ" = gmalloc.o
; then
10808 emacs_pthread_function
=pthread_atfork
10810 emacs_pthread_function
=pthread_self
10812 as_ac_Lib
=`$as_echo "ac_cv_lib_pthread_$emacs_pthread_function" | $as_tr_sh`
10813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $emacs_pthread_function in -lpthread" >&5
10814 $as_echo_n "checking for $emacs_pthread_function in -lpthread... " >&6; }
10815 if { as_var
=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
10816 $as_echo_n "(cached) " >&6
10818 ac_check_lib_save_LIBS
=$LIBS
10819 LIBS
="-lpthread $LIBS"
10820 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10821 /* end confdefs.h. */
10823 /* Override any GCC internal prototype to avoid an error.
10824 Use char because int might match the return type of a GCC
10825 builtin and then its argument prototype would still apply. */
10829 char $emacs_pthread_function ();
10833 return $emacs_pthread_function ();
10838 if ac_fn_c_try_link
"$LINENO"; then :
10839 eval "$as_ac_Lib=yes"
10841 eval "$as_ac_Lib=no"
10843 rm -f core conftest.err conftest.
$ac_objext \
10844 conftest
$ac_exeext conftest.
$ac_ext
10845 LIBS
=$ac_check_lib_save_LIBS
10847 eval ac_res
=\$
$as_ac_Lib
10848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10849 $as_echo "$ac_res" >&6; }
10850 eval as_val
=\$
$as_ac_Lib
10851 if test "x$as_val" = x
""yes; then :
10856 if test "$HAVE_PTHREAD" = yes; then
10857 case "${canonical}" in
10859 *) LIB_PTHREAD
="-lpthread"
10860 LIBS
="$LIB_PTHREAD $LIBS" ;;
10863 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
10868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
10869 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
10870 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then :
10871 $as_echo_n "(cached) " >&6
10873 ac_check_lib_save_LIBS
=$LIBS
10874 LIBS
="-lpthreads $LIBS"
10875 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10876 /* end confdefs.h. */
10878 /* Override any GCC internal prototype to avoid an error.
10879 Use char because int might match the return type of a GCC
10880 builtin and then its argument prototype would still apply. */
10888 return cma_open ();
10893 if ac_fn_c_try_link
"$LINENO"; then :
10894 ac_cv_lib_pthreads_cma_open
=yes
10896 ac_cv_lib_pthreads_cma_open
=no
10898 rm -f core conftest.err conftest.
$ac_objext \
10899 conftest
$ac_exeext conftest.
$ac_ext
10900 LIBS
=$ac_check_lib_save_LIBS
10902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
10903 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
10904 if test "x$ac_cv_lib_pthreads_cma_open" = x
""yes; then :
10905 cat >>confdefs.h
<<_ACEOF
10906 #define HAVE_LIBPTHREADS 1
10909 LIBS
="-lpthreads $LIBS"
10914 ## Note: when using cpp in s/aix4.2.h, this definition depended on
10915 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
10916 ## the system file was sourced. Hence the value of LIBS_SYSTEM
10917 ## added to LIBS in configure would never contain the pthreads part,
10918 ## but the value used in Makefiles might. FIXME?
10920 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
10921 ## be harmless on older versions of X where it happens to exist.
10922 test "$opsys" = "aix4-2" && \
10923 test $ac_cv_lib_pthreads_cma_open = yes && \
10924 LIBS_SYSTEM
="$LIBS_SYSTEM -lpthreads"
10929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
10930 $as_echo_n "checking for -bbigtoc option... " >&6; }
10931 if test "${gdb_cv_bigtoc+set}" = set; then :
10932 $as_echo_n "(cached) " >&6
10936 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
10937 *) gdb_cv_bigtoc
=-bbigtoc ;;
10940 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
10941 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10942 /* end confdefs.h. */
10952 if ac_fn_c_try_link
"$LINENO"; then :
10957 rm -f core conftest.err conftest.
$ac_objext \
10958 conftest
$ac_exeext conftest.
$ac_ext
10961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
10962 $as_echo "$gdb_cv_bigtoc" >&6; }
10966 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10967 # used for the tests that follow. We set them back to REAL_CFLAGS and
10968 # REAL_CPPFLAGS later on.
10970 REAL_CFLAGS
="$CFLAGS"
10971 REAL_CPPFLAGS
="$CPPFLAGS"
10973 if test "${HAVE_X11}" = "yes"; then
10974 DEFS
="$C_SWITCH_X_SITE $DEFS"
10975 LDFLAGS
="$LDFLAGS $LD_SWITCH_X_SITE"
10977 CFLAGS
="$C_SWITCH_X_SITE $CFLAGS"
10978 CPPFLAGS
="$C_SWITCH_X_SITE $CPPFLAGS"
10980 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10981 # This is handled by LD_SWITCH_X_SITE_RPATH during the real build,
10982 # but it's more convenient here to set LD_RUN_PATH since this
10983 # also works on hosts that don't understand LD_SWITCH_X_SITE_RPATH.
10984 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
10985 LD_RUN_PATH
=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10989 if test "${opsys}" = "gnu-linux"; then
10990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
10991 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
10992 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10993 /* end confdefs.h. */
10998 XOpenDisplay ("foo");
11003 if ac_fn_c_try_link
"$LINENO"; then :
11004 xgnu_linux_first_failure
=no
11006 xgnu_linux_first_failure
=yes
11008 rm -f core conftest.err conftest.
$ac_objext \
11009 conftest
$ac_exeext conftest.
$ac_ext
11010 if test "${xgnu_linux_first_failure}" = "yes"; then
11011 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
11012 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
11013 OLD_CPPFLAGS
="$CPPFLAGS"
11015 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
11016 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
11017 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
11018 LIBS
="$LIBS -b i486-linuxaout"
11019 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11020 /* end confdefs.h. */
11025 XOpenDisplay ("foo");
11030 if ac_fn_c_try_link
"$LINENO"; then :
11031 xgnu_linux_second_failure
=no
11033 xgnu_linux_second_failure
=yes
11035 rm -f core conftest.err conftest.
$ac_objext \
11036 conftest
$ac_exeext conftest.
$ac_ext
11037 if test "${xgnu_linux_second_failure}" = "yes"; then
11038 # If we get the same failure with -b, there is no use adding -b.
11039 # So take it out. This plays safe.
11040 LD_SWITCH_X_SITE
="$OLD_LD_SWITCH_X_SITE"
11041 C_SWITCH_X_SITE
="$OLD_C_SWITCH_X_SITE"
11042 CPPFLAGS
="$OLD_CPPFLAGS"
11044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11045 $as_echo "no" >&6; }
11047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11048 $as_echo "yes" >&6; }
11051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11052 $as_echo "no" >&6; }
11056 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
11057 # header files included from there.
11058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
11059 $as_echo_n "checking for Xkb... " >&6; }
11060 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11061 /* end confdefs.h. */
11062 #include <X11/Xlib.h>
11063 #include <X11/XKBlib.h>
11067 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
11072 if ac_fn_c_try_link
"$LINENO"; then :
11077 rm -f core conftest.err conftest.
$ac_objext \
11078 conftest
$ac_exeext conftest.
$ac_ext
11079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
11080 $as_echo "$emacs_xkb" >&6; }
11081 if test $emacs_xkb = yes; then
11083 $as_echo "#define HAVE_XKB 1" >>confdefs.h
11087 for ac_func
in XrmSetDatabase XScreenResourceString \
11088 XScreenNumberOfScreen
11090 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11091 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11092 eval as_val
=\$
$as_ac_var
11093 if test "x$as_val" = x
""yes; then :
11094 cat >>confdefs.h
<<_ACEOF
11095 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11103 if test "${window_system}" = "x11"; then
11104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
11105 $as_echo_n "checking X11 version 6... " >&6; }
11106 if test "${emacs_cv_x11_version_6+set}" = set; then :
11107 $as_echo_n "(cached) " >&6
11109 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11110 /* end confdefs.h. */
11111 #include <X11/Xlib.h>
11115 #if XlibSpecificationRelease < 6
11123 if ac_fn_c_try_link
"$LINENO"; then :
11124 emacs_cv_x11_version_6
=yes
11126 emacs_cv_x11_version_6
=no
11128 rm -f core conftest.err conftest.
$ac_objext \
11129 conftest
$ac_exeext conftest.
$ac_ext
11132 if test $emacs_cv_x11_version_6 = yes; then
11133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
11134 $as_echo "6 or newer" >&6; }
11136 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
11139 $as_echo "#define HAVE_X_I18N 1" >>confdefs.h
11141 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
11146 $as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
11151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
11152 $as_echo "before 6" >&6; }
11157 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
11159 if test "${HAVE_X11}" = "yes" || test "${HAVE_NS}" = "yes" || test "${opsys}" = "mingw32"; then
11160 if test "${with_rsvg}" != "no"; then
11161 RSVG_REQUIRED
=2.11.0
11162 RSVG_MODULE
="librsvg-2.0 >= $RSVG_REQUIRED"
11167 if test "$PKG_CONFIG" = "no" ; then
11170 PKG_CONFIG_MIN_VERSION
=0.9.0
11171 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
11173 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
11175 if "$PKG_CONFIG" --exists "$RSVG_MODULE" 2>&5 &&
11176 RSVG_CFLAGS
=`"$PKG_CONFIG" --cflags "$RSVG_MODULE" 2>&5` &&
11177 RSVG_LIBS
=`"$PKG_CONFIG" --libs "$RSVG_MODULE" 2>&5`; then
11184 RSVG_CFLAGS
=`$as_echo "$RSVG_CFLAGS" | sed -e "$edit_cflags"`
11185 RSVG_LIBS
=`$as_echo "$RSVG_LIBS" | sed -e 's,///*,/,g'`
11186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$RSVG_CFLAGS' LIBS='$RSVG_LIBS'" >&5
11187 $as_echo "yes CFLAGS='$RSVG_CFLAGS' LIBS='$RSVG_LIBS'" >&6; }
11190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11191 $as_echo "no" >&6; }
11194 ## If we have a custom action on failure, don't print errors, but
11195 ## do set a variable so people can do so. Do it in a subshell
11196 ## to capture any diagnostics in invoking pkg-config.
11197 RSVG_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "$RSVG_MODULE") 2>&1`
11204 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11205 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11209 if test $succeeded = yes; then
11218 if test $HAVE_RSVG = yes; then
11220 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
11222 CFLAGS
="$CFLAGS $RSVG_CFLAGS"
11223 LIBS
="$RSVG_LIBS $LIBS"
11228 HAVE_IMAGEMAGICK
=no
11229 if test "${HAVE_X11}" = "yes" ||
test "${HAVE_NS}" = "yes"; then
11230 if test "${with_imagemagick}" != "no"; then
11231 ## 6.2.8 is the earliest version known to work, but earlier versions
11232 ## might work - let us know if you find one.
11233 ## 6.0.7 does not work. See bug#7955.
11234 ## 6.8.2 makes Emacs crash; see Bug#13867.
11235 IMAGEMAGICK_MODULE
="Wand >= 6.2.8 Wand != 6.8.2"
11239 if test "$PKG_CONFIG" = "no" ; then
11242 PKG_CONFIG_MIN_VERSION
=0.9.0
11243 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
11245 $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
11247 if "$PKG_CONFIG" --exists "$IMAGEMAGICK_MODULE" 2>&5 &&
11248 IMAGEMAGICK_CFLAGS
=`"$PKG_CONFIG" --cflags "$IMAGEMAGICK_MODULE" 2>&5` &&
11249 IMAGEMAGICK_LIBS
=`"$PKG_CONFIG" --libs "$IMAGEMAGICK_MODULE" 2>&5`; then
11256 IMAGEMAGICK_CFLAGS
=`$as_echo "$IMAGEMAGICK_CFLAGS" | sed -e "$edit_cflags"`
11257 IMAGEMAGICK_LIBS
=`$as_echo "$IMAGEMAGICK_LIBS" | sed -e 's,///*,/,g'`
11258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$IMAGEMAGICK_CFLAGS' LIBS='$IMAGEMAGICK_LIBS'" >&5
11259 $as_echo "yes CFLAGS='$IMAGEMAGICK_CFLAGS' LIBS='$IMAGEMAGICK_LIBS'" >&6; }
11262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11263 $as_echo "no" >&6; }
11264 IMAGEMAGICK_CFLAGS
=""
11265 IMAGEMAGICK_LIBS
=""
11266 ## If we have a custom action on failure, don't print errors, but
11267 ## do set a variable so people can do so. Do it in a subshell
11268 ## to capture any diagnostics in invoking pkg-config.
11269 IMAGEMAGICK_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "$IMAGEMAGICK_MODULE") 2>&1`
11276 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11277 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11281 if test $succeeded = yes; then
11282 HAVE_IMAGEMAGICK
=yes
11290 if test $HAVE_IMAGEMAGICK = yes; then
11292 $as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
11294 CFLAGS
="$CFLAGS $IMAGEMAGICK_CFLAGS"
11295 LIBS
="$IMAGEMAGICK_LIBS $LIBS"
11296 for ac_func
in MagickExportImagePixels MagickMergeImageLayers
11298 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11299 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11300 eval as_val
=\$
$as_ac_var
11301 if test "x$as_val" = x
""yes; then :
11302 cat >>confdefs.h
<<_ACEOF
11303 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11316 gtk_term_header
=$term_header
11319 if test "${opsys}" != "mingw32"; then
11320 if test "${with_gtk3}" = "yes" ||
test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "maybe"; then
11323 GTK_MODULES
="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11328 if test "$PKG_CONFIG" = "no" ; then
11331 PKG_CONFIG_MIN_VERSION
=0.9.0
11332 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
11334 $as_echo_n "checking for $GTK_MODULES... " >&6; }
11336 if "$PKG_CONFIG" --exists "$GTK_MODULES" 2>&5 &&
11337 GTK_CFLAGS
=`"$PKG_CONFIG" --cflags "$GTK_MODULES" 2>&5` &&
11338 GTK_LIBS
=`"$PKG_CONFIG" --libs "$GTK_MODULES" 2>&5`; then
11345 GTK_CFLAGS
=`$as_echo "$GTK_CFLAGS" | sed -e "$edit_cflags"`
11346 GTK_LIBS
=`$as_echo "$GTK_LIBS" | sed -e 's,///*,/,g'`
11347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&5
11348 $as_echo "yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&6; }
11351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11352 $as_echo "no" >&6; }
11355 ## If we have a custom action on failure, don't print errors, but
11356 ## do set a variable so people can do so. Do it in a subshell
11357 ## to capture any diagnostics in invoking pkg-config.
11358 GTK_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "$GTK_MODULES") 2>&1`
11365 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11366 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11370 if test $succeeded = yes; then
11376 if test "$pkg_check_gtk" = "no" && test "$with_gtk3" = "yes"; then
11377 as_fn_error
"$GTK_PKG_ERRORS" "$LINENO" 5
11379 if test "$pkg_check_gtk" = "yes"; then
11381 $as_echo "#define HAVE_GTK3 1" >>confdefs.h
11383 GTK_OBJ
=emacsgtkfixed.o
11384 gtk_term_header
=gtkutil.h
11385 USE_GTK_TOOLKIT
="GTK3"
11386 if test "x$ac_enable_gtk_deprecation_warnings" = x
; then
11387 GTK_CFLAGS
="$GTK_CFLAGS -DGDK_DISABLE_DEPRECATION_WARNINGS"
11388 GTK_CFLAGS
="$GTK_CFLAGS -DGLIB_DISABLE_DEPRECATION_WARNINGS"
11392 gtk3_pkg_errors
="$GTK_PKG_ERRORS "
11396 if test "${with_gtk2}" = "yes" ||
test "$check_gtk2" = "yes"; then
11399 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11404 if test "$PKG_CONFIG" = "no" ; then
11407 PKG_CONFIG_MIN_VERSION
=0.9.0
11408 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
11410 $as_echo_n "checking for $GTK_MODULES... " >&6; }
11412 if "$PKG_CONFIG" --exists "$GTK_MODULES" 2>&5 &&
11413 GTK_CFLAGS
=`"$PKG_CONFIG" --cflags "$GTK_MODULES" 2>&5` &&
11414 GTK_LIBS
=`"$PKG_CONFIG" --libs "$GTK_MODULES" 2>&5`; then
11421 GTK_CFLAGS
=`$as_echo "$GTK_CFLAGS" | sed -e "$edit_cflags"`
11422 GTK_LIBS
=`$as_echo "$GTK_LIBS" | sed -e 's,///*,/,g'`
11423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&5
11424 $as_echo "yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&6; }
11427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11428 $as_echo "no" >&6; }
11431 ## If we have a custom action on failure, don't print errors, but
11432 ## do set a variable so people can do so. Do it in a subshell
11433 ## to capture any diagnostics in invoking pkg-config.
11434 GTK_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "$GTK_MODULES") 2>&1`
11441 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11442 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11446 if test $succeeded = yes; then
11452 if test "$pkg_check_gtk" = "no" &&
11453 { test "$with_gtk" = yes ||
test "$with_gtk2" = "yes"; }
11455 as_fn_error
"$gtk3_pkg_errors$GTK_PKG_ERRORS" "$LINENO" 5
11457 test "$pkg_check_gtk" = "yes" && USE_GTK_TOOLKIT
="GTK2"
11461 if test x
"$pkg_check_gtk" = xyes
; then
11465 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
11466 CFLAGS
="$CFLAGS $GTK_CFLAGS"
11467 LIBS
="$GTK_LIBS $LIBS"
11468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GTK compiles" >&5
11469 $as_echo_n "checking whether GTK compiles... " >&6; }
11471 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11472 /* end confdefs.h. */
11473 /* Check the Gtk and Glib APIs. */
11474 #include <gtk/gtk.h>
11475 #include <glib-object.h>
11477 callback (GObject *go, GParamSpec *spec, gpointer user_data)
11484 GtkSettings *gs = 0;
11485 /* Use G_CALLBACK to make sure function pointers can be cast to void *;
11486 strict C prohibits this. Use gtk_main_iteration to test that the
11487 libraries are there. */
11488 if (g_signal_handler_find (G_OBJECT (gs), G_SIGNAL_MATCH_FUNC,
11489 0, 0, 0, G_CALLBACK (callback), 0))
11490 gtk_main_iteration ();
11496 if ac_fn_c_try_link
"$LINENO"; then :
11499 rm -f core conftest.err conftest.
$ac_objext \
11500 conftest
$ac_exeext conftest.
$ac_ext
11501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_COMPILES" >&5
11502 $as_echo "$GTK_COMPILES" >&6; }
11503 if test "${GTK_COMPILES}" != "yes"; then
11505 if test "$USE_X_TOOLKIT" != "maybe"; then
11506 as_fn_error
"Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
11511 $as_echo "#define USE_GTK 1" >>confdefs.h
11513 GTK_OBJ
="gtkutil.o $GTK_OBJ"
11514 term_header
=$gtk_term_header
11516 if "$PKG_CONFIG" --atleast-version=2.10 gtk
+-2.0
; then
11519 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
11520 closing open displays. This is no problem if you just use
11521 one display, but if you use more than one and close one of them
11522 Emacs may crash." >&5
11523 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
11524 closing open displays. This is no problem if you just use
11525 one display, but if you use more than one and close one of them
11526 Emacs may crash." >&2;}
11535 if test "${HAVE_GTK}" = "yes"; then
11537 if test "$with_toolkit_scroll_bars" != no
; then
11538 with_toolkit_scroll_bars
=yes
11541 HAVE_GTK_FILE_SELECTION
=no
11542 ac_fn_c_check_decl
"$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
11543 #include <gtk/gtk.h>
11545 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x
""yes; then :
11546 HAVE_GTK_FILE_SELECTION
=yes
11548 HAVE_GTK_FILE_SELECTION
=no
11551 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
11552 for ac_func
in gtk_file_selection_new
11554 ac_fn_c_check_func
"$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
11555 if test "x$ac_cv_func_gtk_file_selection_new" = x
""yes; then :
11556 cat >>confdefs.h
<<_ACEOF
11557 #define HAVE_GTK_FILE_SELECTION_NEW 1
11565 HAVE_GTK_HANDLE_BOX
=no
11566 ac_fn_c_check_decl
"$LINENO" "GTK_TYPE_HANDLE_BOX" "ac_cv_have_decl_GTK_TYPE_HANDLE_BOX" "$ac_includes_default
11567 #include <gtk/gtk.h>
11569 if test "x$ac_cv_have_decl_GTK_TYPE_HANDLE_BOX" = x
""yes; then :
11570 HAVE_GTK_HANDLE_BOX
=yes
11572 HAVE_GTK_HANDLE_BOX
=no
11575 if test "$HAVE_GTK_HANDLE_BOX" = yes; then
11576 for ac_func
in gtk_handle_box_new
11578 ac_fn_c_check_func
"$LINENO" "gtk_handle_box_new" "ac_cv_func_gtk_handle_box_new"
11579 if test "x$ac_cv_func_gtk_handle_box_new" = x
""yes; then :
11580 cat >>confdefs.h
<<_ACEOF
11581 #define HAVE_GTK_HANDLE_BOX_NEW 1
11589 HAVE_GTK_TEAROFF_MENU_ITEM
=no
11590 ac_fn_c_check_decl
"$LINENO" "GTK_TYPE_TEAROFF_MENU_ITEM" "ac_cv_have_decl_GTK_TYPE_TEAROFF_MENU_ITEM" "$ac_includes_default
11591 #include <gtk/gtk.h>
11593 if test "x$ac_cv_have_decl_GTK_TYPE_TEAROFF_MENU_ITEM" = x
""yes; then :
11594 HAVE_GTK_TEAROFF_MENU_ITEM
=yes
11596 HAVE_GTK_TEAROFF_MENU_ITEM
=no
11599 if test "$HAVE_GTK_TEAROFF_MENU_ITEM" = yes; then
11600 for ac_func
in gtk_tearoff_menu_item_new
11602 ac_fn_c_check_func
"$LINENO" "gtk_tearoff_menu_item_new" "ac_cv_func_gtk_tearoff_menu_item_new"
11603 if test "x$ac_cv_func_gtk_tearoff_menu_item_new" = x
""yes; then :
11604 cat >>confdefs.h
<<_ACEOF
11605 #define HAVE_GTK_TEAROFF_MENU_ITEM_NEW 1
11613 for ac_func
in gtk_widget_get_window gtk_widget_set_has_window \
11614 gtk_dialog_get_action_area gtk_widget_get_sensitive \
11615 gtk_widget_get_mapped gtk_adjustment_get_page_size \
11616 gtk_orientable_set_orientation \
11617 gtk_window_set_has_resize_grip
11619 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11620 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11621 eval as_val
=\$
$as_ac_var
11622 if test "x$as_val" = x
""yes; then :
11623 cat >>confdefs.h
<<_ACEOF
11624 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11631 term_header
=gtkutil.h
11636 if test "${with_dbus}" = "yes"; then
11640 if test "$PKG_CONFIG" = "no" ; then
11643 PKG_CONFIG_MIN_VERSION
=0.9.0
11644 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
11646 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
11648 if "$PKG_CONFIG" --exists "dbus-1 >= 1.0" 2>&5 &&
11649 DBUS_CFLAGS
=`"$PKG_CONFIG" --cflags "dbus-1 >= 1.0" 2>&5` &&
11650 DBUS_LIBS
=`"$PKG_CONFIG" --libs "dbus-1 >= 1.0" 2>&5`; then
11657 DBUS_CFLAGS
=`$as_echo "$DBUS_CFLAGS" | sed -e "$edit_cflags"`
11658 DBUS_LIBS
=`$as_echo "$DBUS_LIBS" | sed -e 's,///*,/,g'`
11659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$DBUS_CFLAGS' LIBS='$DBUS_LIBS'" >&5
11660 $as_echo "yes CFLAGS='$DBUS_CFLAGS' LIBS='$DBUS_LIBS'" >&6; }
11663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11664 $as_echo "no" >&6; }
11667 ## If we have a custom action on failure, don't print errors, but
11668 ## do set a variable so people can do so. Do it in a subshell
11669 ## to capture any diagnostics in invoking pkg-config.
11670 DBUS_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "dbus-1 >= 1.0") 2>&1`
11677 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11678 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11682 if test $succeeded = yes; then
11688 if test "$HAVE_DBUS" = yes; then
11689 LIBS
="$LIBS $DBUS_LIBS"
11691 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
11693 for ac_func
in dbus_watch_get_unix_fd \
11694 dbus_type_is_valid \
11695 dbus_validate_bus_name \
11696 dbus_validate_path \
11697 dbus_validate_interface \
11698 dbus_validate_member
11700 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11701 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11702 eval as_val
=\$
$as_ac_var
11703 if test "x$as_val" = x
""yes; then :
11704 cat >>confdefs.h
<<_ACEOF
11705 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11711 DBUS_OBJ
=dbusbind.o
11717 if test "${HAVE_X11}" = "yes" && test "${with_gsettings}" = "yes"; then
11721 if test "$PKG_CONFIG" = "no" ; then
11724 PKG_CONFIG_MIN_VERSION
=0.9.0
11725 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gio-2.0 >= 2.26" >&5
11727 $as_echo_n "checking for gio-2.0 >= 2.26... " >&6; }
11729 if "$PKG_CONFIG" --exists "gio-2.0 >= 2.26" 2>&5 &&
11730 GSETTINGS_CFLAGS
=`"$PKG_CONFIG" --cflags "gio-2.0 >= 2.26" 2>&5` &&
11731 GSETTINGS_LIBS
=`"$PKG_CONFIG" --libs "gio-2.0 >= 2.26" 2>&5`; then
11738 GSETTINGS_CFLAGS
=`$as_echo "$GSETTINGS_CFLAGS" | sed -e "$edit_cflags"`
11739 GSETTINGS_LIBS
=`$as_echo "$GSETTINGS_LIBS" | sed -e 's,///*,/,g'`
11740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GSETTINGS_CFLAGS' LIBS='$GSETTINGS_LIBS'" >&5
11741 $as_echo "yes CFLAGS='$GSETTINGS_CFLAGS' LIBS='$GSETTINGS_LIBS'" >&6; }
11744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11745 $as_echo "no" >&6; }
11746 GSETTINGS_CFLAGS
=""
11748 ## If we have a custom action on failure, don't print errors, but
11749 ## do set a variable so people can do so. Do it in a subshell
11750 ## to capture any diagnostics in invoking pkg-config.
11751 GSETTINGS_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "gio-2.0 >= 2.26") 2>&1`
11758 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11759 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11763 if test $succeeded = yes; then
11769 if test "$HAVE_GSETTINGS" = "yes"; then
11771 $as_echo "#define HAVE_GSETTINGS 1" >>confdefs.h
11773 SETTINGS_CFLAGS
="$GSETTINGS_CFLAGS"
11774 SETTINGS_LIBS
="$GSETTINGS_LIBS"
11779 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
11783 if test "$PKG_CONFIG" = "no" ; then
11786 PKG_CONFIG_MIN_VERSION
=0.9.0
11787 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
11789 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
11791 if "$PKG_CONFIG" --exists "gconf-2.0 >= 2.13" 2>&5 &&
11792 GCONF_CFLAGS
=`"$PKG_CONFIG" --cflags "gconf-2.0 >= 2.13" 2>&5` &&
11793 GCONF_LIBS
=`"$PKG_CONFIG" --libs "gconf-2.0 >= 2.13" 2>&5`; then
11800 GCONF_CFLAGS
=`$as_echo "$GCONF_CFLAGS" | sed -e "$edit_cflags"`
11801 GCONF_LIBS
=`$as_echo "$GCONF_LIBS" | sed -e 's,///*,/,g'`
11802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GCONF_CFLAGS' LIBS='$GCONF_LIBS'" >&5
11803 $as_echo "yes CFLAGS='$GCONF_CFLAGS' LIBS='$GCONF_LIBS'" >&6; }
11806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11807 $as_echo "no" >&6; }
11810 ## If we have a custom action on failure, don't print errors, but
11811 ## do set a variable so people can do so. Do it in a subshell
11812 ## to capture any diagnostics in invoking pkg-config.
11813 GCONF_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "gconf-2.0 >= 2.13") 2>&1`
11820 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11821 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11825 if test $succeeded = yes; then
11831 if test "$HAVE_GCONF" = yes; then
11833 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
11835 SETTINGS_CFLAGS
="$SETTINGS_CFLAGS $GCONF_CFLAGS"
11836 SETTINGS_LIBS
="$SETTINGS_LIBS $GCONF_LIBS"
11840 if test "$HAVE_GSETTINGS" = "yes" ||
test "$HAVE_GCONF" = "yes"; then
11844 if test "$PKG_CONFIG" = "no" ; then
11847 PKG_CONFIG_MIN_VERSION
=0.9.0
11848 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gobject-2.0 >= 2.0" >&5
11850 $as_echo_n "checking for gobject-2.0 >= 2.0... " >&6; }
11852 if "$PKG_CONFIG" --exists "gobject-2.0 >= 2.0" 2>&5 &&
11853 GOBJECT_CFLAGS
=`"$PKG_CONFIG" --cflags "gobject-2.0 >= 2.0" 2>&5` &&
11854 GOBJECT_LIBS
=`"$PKG_CONFIG" --libs "gobject-2.0 >= 2.0" 2>&5`; then
11861 GOBJECT_CFLAGS
=`$as_echo "$GOBJECT_CFLAGS" | sed -e "$edit_cflags"`
11862 GOBJECT_LIBS
=`$as_echo "$GOBJECT_LIBS" | sed -e 's,///*,/,g'`
11863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GOBJECT_CFLAGS' LIBS='$GOBJECT_LIBS'" >&5
11864 $as_echo "yes CFLAGS='$GOBJECT_CFLAGS' LIBS='$GOBJECT_LIBS'" >&6; }
11867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11868 $as_echo "no" >&6; }
11871 ## If we have a custom action on failure, don't print errors, but
11872 ## do set a variable so people can do so. Do it in a subshell
11873 ## to capture any diagnostics in invoking pkg-config.
11874 GOBJECT_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "gobject-2.0 >= 2.0") 2>&1`
11881 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11882 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11886 if test $succeeded = yes; then
11892 if test "$HAVE_GOBJECT" = "yes"; then
11893 SETTINGS_CFLAGS
="$SETTINGS_CFLAGS $GOBJECT_CFLAGS"
11894 SETTINGS_LIBS
="$SETTINGS_LIBS $GOBJECT_LIBS"
11896 SAVE_CFLAGS
="$CFLAGS"
11898 CFLAGS
="$SETTINGS_CFLAGS $CFLAGS"
11899 LIBS
="$SETTINGS_LIBS $LIBS"
11900 for ac_func
in g_type_init
11902 ac_fn_c_check_func
"$LINENO" "g_type_init" "ac_cv_func_g_type_init"
11903 if test "x$ac_cv_func_g_type_init" = x
""yes; then :
11904 cat >>confdefs.h
<<_ACEOF
11905 #define HAVE_G_TYPE_INIT 1
11911 CFLAGS
="$SAVE_CFLAGS"
11920 if test "${with_selinux}" = "yes"; then
11921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
11922 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
11923 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then :
11924 $as_echo_n "(cached) " >&6
11926 ac_check_lib_save_LIBS
=$LIBS
11927 LIBS
="-lselinux $LIBS"
11928 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11929 /* end confdefs.h. */
11931 /* Override any GCC internal prototype to avoid an error.
11932 Use char because int might match the return type of a GCC
11933 builtin and then its argument prototype would still apply. */
11937 char lgetfilecon ();
11941 return lgetfilecon ();
11946 if ac_fn_c_try_link
"$LINENO"; then :
11947 ac_cv_lib_selinux_lgetfilecon
=yes
11949 ac_cv_lib_selinux_lgetfilecon
=no
11951 rm -f core conftest.err conftest.
$ac_objext \
11952 conftest
$ac_exeext conftest.
$ac_ext
11953 LIBS
=$ac_check_lib_save_LIBS
11955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
11956 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
11957 if test "x$ac_cv_lib_selinux_lgetfilecon" = x
""yes; then :
11958 HAVE_LIBSELINUX
=yes
11963 if test "$HAVE_LIBSELINUX" = yes; then
11965 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
11967 LIBSELINUX_LIBS
=-lselinux
11973 if test "${with_gnutls}" = "yes" ; then
11977 if test "$PKG_CONFIG" = "no" ; then
11980 PKG_CONFIG_MIN_VERSION
=0.9.0
11981 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.6.6" >&5
11983 $as_echo_n "checking for gnutls >= 2.6.6... " >&6; }
11985 if "$PKG_CONFIG" --exists "gnutls >= 2.6.6" 2>&5 &&
11986 LIBGNUTLS_CFLAGS
=`"$PKG_CONFIG" --cflags "gnutls >= 2.6.6" 2>&5` &&
11987 LIBGNUTLS_LIBS
=`"$PKG_CONFIG" --libs "gnutls >= 2.6.6" 2>&5`; then
11994 LIBGNUTLS_CFLAGS
=`$as_echo "$LIBGNUTLS_CFLAGS" | sed -e "$edit_cflags"`
11995 LIBGNUTLS_LIBS
=`$as_echo "$LIBGNUTLS_LIBS" | sed -e 's,///*,/,g'`
11996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBGNUTLS_CFLAGS' LIBS='$LIBGNUTLS_LIBS'" >&5
11997 $as_echo "yes CFLAGS='$LIBGNUTLS_CFLAGS' LIBS='$LIBGNUTLS_LIBS'" >&6; }
12000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12001 $as_echo "no" >&6; }
12002 LIBGNUTLS_CFLAGS
=""
12004 ## If we have a custom action on failure, don't print errors, but
12005 ## do set a variable so people can do so. Do it in a subshell
12006 ## to capture any diagnostics in invoking pkg-config.
12007 LIBGNUTLS_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "gnutls >= 2.6.6") 2>&1`
12014 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12015 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12019 if test $succeeded = yes; then
12025 if test "${HAVE_GNUTLS}" = "yes"; then
12027 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
12031 # Windows loads GnuTLS dynamically
12032 if test "${opsys}" = "mingw32"; then
12035 CFLAGS
="$CFLAGS $LIBGNUTLS_CFLAGS"
12036 LIBS
="$LIBGNUTLS_LIBS $LIBS"
12046 if test "${with_ns}" = yes && test ${with_file_notification} = yes; then
12047 with_file_notification
=no
12050 case $with_file_notification,$opsys in
12051 w32
,* |
yes,mingw32
)
12052 ac_fn_c_check_header_mongrel
"$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
12053 if test "x$ac_cv_header_windows_h" = x
""yes; then :
12058 if test "$ac_cv_header_windows_h" = yes ; then
12060 $as_echo "#define HAVE_W32NOTIFY 1" >>confdefs.h
12062 NOTIFY_OBJ
=w32notify.o
12063 NOTIFY_SUMMARY
="yes (w32)"
12067 case $with_file_notification,$NOTIFY_OBJ in
12072 if test "$PKG_CONFIG" = "no" ; then
12073 HAVE_GFILENOTIFY
=no
12075 PKG_CONFIG_MIN_VERSION
=0.9.0
12076 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gio-2.0 >= 2.24" >&5
12078 $as_echo_n "checking for gio-2.0 >= 2.24... " >&6; }
12080 if "$PKG_CONFIG" --exists "gio-2.0 >= 2.24" 2>&5 &&
12081 GFILENOTIFY_CFLAGS
=`"$PKG_CONFIG" --cflags "gio-2.0 >= 2.24" 2>&5` &&
12082 GFILENOTIFY_LIBS
=`"$PKG_CONFIG" --libs "gio-2.0 >= 2.24" 2>&5`; then
12089 GFILENOTIFY_CFLAGS
=`$as_echo "$GFILENOTIFY_CFLAGS" | sed -e "$edit_cflags"`
12090 GFILENOTIFY_LIBS
=`$as_echo "$GFILENOTIFY_LIBS" | sed -e 's,///*,/,g'`
12091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GFILENOTIFY_CFLAGS' LIBS='$GFILENOTIFY_LIBS'" >&5
12092 $as_echo "yes CFLAGS='$GFILENOTIFY_CFLAGS' LIBS='$GFILENOTIFY_LIBS'" >&6; }
12095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12096 $as_echo "no" >&6; }
12097 GFILENOTIFY_CFLAGS
=""
12098 GFILENOTIFY_LIBS
=""
12099 ## If we have a custom action on failure, don't print errors, but
12100 ## do set a variable so people can do so. Do it in a subshell
12101 ## to capture any diagnostics in invoking pkg-config.
12102 GFILENOTIFY_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "gio-2.0 >= 2.24") 2>&1`
12109 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12110 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12114 if test $succeeded = yes; then
12115 HAVE_GFILENOTIFY
=yes
12117 HAVE_GFILENOTIFY
=no
12120 if test "$HAVE_GFILENOTIFY" = "yes"; then
12122 $as_echo "#define HAVE_GFILENOTIFY 1" >>confdefs.h
12124 NOTIFY_OBJ
=gfilenotify.o
12125 NOTIFY_SUMMARY
="yes -lgio (gfile)"
12129 case $with_file_notification,$NOTIFY_OBJ in
12131 ac_fn_c_check_header_mongrel
"$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
12132 if test "x$ac_cv_header_sys_inotify_h" = x
""yes; then :
12137 if test "$ac_cv_header_sys_inotify_h" = yes ; then
12138 ac_fn_c_check_func
"$LINENO" "inotify_init1" "ac_cv_func_inotify_init1"
12139 if test "x$ac_cv_func_inotify_init1" = x
""yes; then :
12143 if test "$ac_cv_func_inotify_init1" = yes; then
12145 $as_echo "#define HAVE_INOTIFY 1" >>confdefs.h
12147 NOTIFY_OBJ
=inotify.o
12148 NOTIFY_SUMMARY
="yes -lglibc (inotify)"
12153 case $with_file_notification,$NOTIFY_OBJ in
12154 yes,* | no
,* |
*,?
*) ;;
12155 *) as_fn_error
"File notification \`$with_file_notification' requested but requirements not found." "$LINENO" 5 ;;
12158 if test -n "$NOTIFY_OBJ"; then
12160 $as_echo "#define USE_FILE_NOTIFY 1" >>confdefs.h
12169 if test x
"${USE_X_TOOLKIT}" = xmaybe ||
test x
"${USE_X_TOOLKIT}" = xLUCID
; then
12170 if test "$with_xaw3d" != no
; then
12171 if test "${emacs_cv_xaw3d+set}" = set; then :
12172 $as_echo_n "(cached) " >&6
12174 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12175 /* end confdefs.h. */
12177 #include <X11/Intrinsic.h>
12178 #include <X11/Xaw3d/Simple.h>
12187 if ac_fn_c_try_link
"$LINENO"; then :
12188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XawScrollbarSetThumb in -lXaw3d" >&5
12189 $as_echo_n "checking for XawScrollbarSetThumb in -lXaw3d... " >&6; }
12190 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then :
12191 $as_echo_n "(cached) " >&6
12193 ac_check_lib_save_LIBS
=$LIBS
12194 LIBS
="-lXaw3d $LIBS"
12195 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12196 /* end confdefs.h. */
12198 /* Override any GCC internal prototype to avoid an error.
12199 Use char because int might match the return type of a GCC
12200 builtin and then its argument prototype would still apply. */
12204 char XawScrollbarSetThumb ();
12208 return XawScrollbarSetThumb ();
12213 if ac_fn_c_try_link
"$LINENO"; then :
12214 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=yes
12216 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=no
12218 rm -f core conftest.err conftest.
$ac_objext \
12219 conftest
$ac_exeext conftest.
$ac_ext
12220 LIBS
=$ac_check_lib_save_LIBS
12222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
12223 $as_echo "$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
12224 if test "x$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" = x
""yes; then :
12233 rm -f core conftest.err conftest.
$ac_objext \
12234 conftest
$ac_exeext conftest.
$ac_ext
12240 if test $emacs_cv_xaw3d = yes; then
12241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
12242 $as_echo_n "checking for xaw3d... " >&6; }
12243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
12244 $as_echo "yes; using Lucid toolkit" >&6; }
12245 USE_X_TOOLKIT
=LUCID
12249 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
12252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
12253 $as_echo_n "checking for xaw3d... " >&6; }
12254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12255 $as_echo "no" >&6; }
12256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
12257 $as_echo_n "checking for libXaw... " >&6; }
12258 if test "${emacs_cv_xaw+set}" = set; then :
12259 $as_echo_n "(cached) " >&6
12261 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12262 /* end confdefs.h. */
12264 #include <X11/Intrinsic.h>
12265 #include <X11/Xaw/Simple.h>
12274 if ac_fn_c_try_link
"$LINENO"; then :
12279 rm -f core conftest.err conftest.
$ac_objext \
12280 conftest
$ac_exeext conftest.
$ac_ext
12283 if test $emacs_cv_xaw = yes; then
12284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
12285 $as_echo "yes; using Lucid toolkit" >&6; }
12286 USE_X_TOOLKIT
=LUCID
12288 elif test x
"${USE_X_TOOLKIT}" = xLUCID
; then
12289 as_fn_error
"Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
12291 as_fn_error
"No X toolkit could be found.
12292 If you are sure you want Emacs compiled without an X toolkit, pass
12293 --with-x-toolkit=no
12294 to configure. Otherwise, install the development libraries for the toolkit
12295 that you want to use (e.g. Gtk+) and re-run configure." "$LINENO" 5
12300 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
12303 if test "${USE_X_TOOLKIT}" != "none"; then
12304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
12305 $as_echo_n "checking X11 toolkit version... " >&6; }
12306 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then :
12307 $as_echo_n "(cached) " >&6
12309 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12310 /* end confdefs.h. */
12311 #include <X11/Intrinsic.h>
12315 #if XtSpecificationRelease < 6
12323 if ac_fn_c_try_link
"$LINENO"; then :
12324 emacs_cv_x11_toolkit_version_6
=yes
12326 emacs_cv_x11_toolkit_version_6
=no
12328 rm -f core conftest.err conftest.
$ac_objext \
12329 conftest
$ac_exeext conftest.
$ac_ext
12332 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
12333 if test $emacs_cv_x11_toolkit_version_6 = yes; then
12334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
12335 $as_echo "6 or newer" >&6; }
12337 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
12339 LIBXTR6
="-lSM -lICE"
12341 ## Use libw.a along with X11R6 Xt.
12342 unixware
) LIBXTR6
="$LIBXTR6 -lw" ;;
12345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
12346 $as_echo "before 6" >&6; }
12350 if test x
$HAVE_X11XTR6 = xyes
; then
12351 LIBS
="-lXt -lSM -lICE $LIBS"
12355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
12356 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
12357 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then :
12358 $as_echo_n "(cached) " >&6
12360 ac_check_lib_save_LIBS
=$LIBS
12362 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12363 /* end confdefs.h. */
12365 /* Override any GCC internal prototype to avoid an error.
12366 Use char because int might match the return type of a GCC
12367 builtin and then its argument prototype would still apply. */
12371 char XmuConvertStandardSelection ();
12375 return XmuConvertStandardSelection ();
12380 if ac_fn_c_try_link
"$LINENO"; then :
12381 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
12383 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
12385 rm -f core conftest.err conftest.
$ac_objext \
12386 conftest
$ac_exeext conftest.
$ac_ext
12387 LIBS
=$ac_check_lib_save_LIBS
12389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
12390 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
12391 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x
""yes; then :
12392 cat >>confdefs.h
<<_ACEOF
12393 #define HAVE_LIBXMU 1
12400 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
12406 ## These systems don't supply Xmu.
12408 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU
=
12416 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
12417 if test "${HAVE_X11}" = "yes"; then
12418 if test "${USE_X_TOOLKIT}" != "none"; then
12419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
12420 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
12421 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
12422 $as_echo_n "(cached) " >&6
12424 ac_check_lib_save_LIBS
=$LIBS
12425 LIBS
="-lXext $LIBS"
12426 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12427 /* end confdefs.h. */
12429 /* Override any GCC internal prototype to avoid an error.
12430 Use char because int might match the return type of a GCC
12431 builtin and then its argument prototype would still apply. */
12435 char XShapeQueryExtension ();
12439 return XShapeQueryExtension ();
12444 if ac_fn_c_try_link
"$LINENO"; then :
12445 ac_cv_lib_Xext_XShapeQueryExtension
=yes
12447 ac_cv_lib_Xext_XShapeQueryExtension
=no
12449 rm -f core conftest.err conftest.
$ac_objext \
12450 conftest
$ac_exeext conftest.
$ac_ext
12451 LIBS
=$ac_check_lib_save_LIBS
12453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12454 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12455 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x
""yes; then :
12456 cat >>confdefs.h
<<_ACEOF
12457 #define HAVE_LIBXEXT 1
12460 LIBS
="-lXext $LIBS"
12468 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12469 # OpenMotif may be installed in such a way on some GNU/Linux systems.
12470 if test -d /usr
/include
/openmotif
; then
12471 CPPFLAGS
="-I/usr/include/openmotif $CPPFLAGS"
12472 emacs_cv_openmotif
=yes
12473 case "$canonical" in
12474 x86_64-
*-linux-gnu* | powerpc64-
*-linux-gnu* | sparc64-
*-linux-gnu*)
12475 test -d /usr
/lib64
/openmotif
&& LDFLAGS
="-L/usr/lib64/openmotif $LDFLAGS"
12478 test -d /usr
/lib
/openmotif
&& LDFLAGS
="-L/usr/lib/openmotif $LDFLAGS"
12481 emacs_cv_openmotif
=no
12483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for (Open)Motif version 2.1" >&5
12484 $as_echo_n "checking for (Open)Motif version 2.1... " >&6; }
12485 if test "${emacs_cv_motif_version_2_1+set}" = set; then :
12486 $as_echo_n "(cached) " >&6
12488 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12489 /* end confdefs.h. */
12494 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12497 Motif version prior to 2.1.
12503 if ac_fn_c_try_compile
"$LINENO"; then :
12504 emacs_cv_motif_version_2_1
=yes
12506 emacs_cv_motif_version_2_1
=no
12508 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
12511 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
12512 if test $emacs_cv_motif_version_2_1 = yes; then
12513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
12514 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
12515 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then :
12516 $as_echo_n "(cached) " >&6
12518 ac_check_lib_save_LIBS
=$LIBS
12520 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12521 /* end confdefs.h. */
12523 /* Override any GCC internal prototype to avoid an error.
12524 Use char because int might match the return type of a GCC
12525 builtin and then its argument prototype would still apply. */
12529 char XpCreateContext ();
12533 return XpCreateContext ();
12538 if ac_fn_c_try_link
"$LINENO"; then :
12539 ac_cv_lib_Xp_XpCreateContext
=yes
12541 ac_cv_lib_Xp_XpCreateContext
=no
12543 rm -f core conftest.err conftest.
$ac_objext \
12544 conftest
$ac_exeext conftest.
$ac_ext
12545 LIBS
=$ac_check_lib_save_LIBS
12547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12548 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
12549 if test "x$ac_cv_lib_Xp_XpCreateContext" = x
""yes; then :
12553 if test x
$emacs_cv_openmotif = xyes
; then
12554 REAL_CPPFLAGS
="-I/usr/include/openmotif $REAL_CPPFLAGS"
12557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
12558 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
12559 if test "${emacs_cv_lesstif+set}" = set; then :
12560 $as_echo_n "(cached) " >&6
12562 # We put this in CFLAGS temporarily to precede other -I options
12563 # that might be in CFLAGS temporarily.
12564 # We put this in CPPFLAGS where it precedes the other -I options.
12565 OLD_CPPFLAGS
=$CPPFLAGS
12567 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12568 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12569 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12570 /* end confdefs.h. */
12571 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12580 if ac_fn_c_try_compile
"$LINENO"; then :
12581 emacs_cv_lesstif
=yes
12583 emacs_cv_lesstif
=no
12585 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
12588 $as_echo "$emacs_cv_lesstif" >&6; }
12589 if test $emacs_cv_lesstif = yes; then
12590 # Make sure this -I option remains in CPPFLAGS after it is set
12591 # back to REAL_CPPFLAGS.
12592 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12593 # have those other -I options anyway. Ultimately, having this
12594 # directory ultimately in CPPFLAGS will be enough.
12595 REAL_CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12596 LDFLAGS
="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12599 CPPFLAGS
=$OLD_CPPFLAGS
12602 ac_fn_c_check_header_mongrel
"$LINENO" "Xm/BulletinB.h" "ac_cv_header_Xm_BulletinB_h" "$ac_includes_default"
12603 if test "x$ac_cv_header_Xm_BulletinB_h" = x
""yes; then :
12606 as_fn_error
"Motif toolkit requested but requirements not found." "$LINENO" 5
12613 USE_TOOLKIT_SCROLL_BARS
=no
12614 if test "${with_toolkit_scroll_bars}" != "no"; then
12615 if test "${USE_X_TOOLKIT}" != "none"; then
12616 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12617 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12620 USE_TOOLKIT_SCROLL_BARS
=yes
12621 elif test "${HAVE_XAW3D}" = "yes" ||
test "${USE_X_TOOLKIT}" = "LUCID"; then
12622 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12624 USE_TOOLKIT_SCROLL_BARS
=yes
12626 elif test "${HAVE_GTK}" = "yes"; then
12627 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12629 USE_TOOLKIT_SCROLL_BARS
=yes
12630 elif test "${HAVE_NS}" = "yes"; then
12631 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12633 USE_TOOLKIT_SCROLL_BARS
=yes
12634 elif test "${HAVE_W32}" = "yes"; then
12635 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12637 USE_TOOLKIT_SCROLL_BARS
=yes
12641 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12642 /* end confdefs.h. */
12644 #include <X11/Xlib.h>
12645 #include <X11/Xresource.h>
12654 if ac_fn_c_try_compile
"$LINENO"; then :
12657 $as_echo "#define HAVE_XIM 1" >>confdefs.h
12662 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12665 if test "${with_xim}" != "no"; then
12667 $as_echo "#define USE_XIM 1" >>confdefs.h
12672 if test "${HAVE_XIM}" != "no"; then
12673 late_CFLAGS
=$CFLAGS
12674 if test "$GCC" = yes; then
12675 CFLAGS
="$CFLAGS --pedantic-errors"
12677 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12678 /* end confdefs.h. */
12680 #include <X11/Xlib.h>
12681 #include <X11/Xresource.h>
12690 XPointer *client_data;
12692 /* If we're not using GCC, it's probably not XFree86, and this is
12693 probably right, but we can't use something like --pedantic-errors. */
12694 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12695 char*, XIMProc, XPointer*);
12697 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12703 if ac_fn_c_try_compile
"$LINENO"; then :
12704 emacs_cv_arg6_star
=yes
12706 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12707 if test "$emacs_cv_arg6_star" = yes; then
12708 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
12711 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
12714 CFLAGS
=$late_CFLAGS
12717 ### Start of font-backend (under any platform) section.
12718 # (nothing here yet -- this is a placeholder)
12719 ### End of font-backend (under any platform) section.
12721 ### Start of font-backend (under X11) section.
12722 if test "${HAVE_X11}" = "yes"; then
12726 if test "$PKG_CONFIG" = "no" ; then
12729 PKG_CONFIG_MIN_VERSION
=0.9.0
12730 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
12732 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
12734 if "$PKG_CONFIG" --exists "fontconfig >= 2.2.0" 2>&5 &&
12735 FONTCONFIG_CFLAGS
=`"$PKG_CONFIG" --cflags "fontconfig >= 2.2.0" 2>&5` &&
12736 FONTCONFIG_LIBS
=`"$PKG_CONFIG" --libs "fontconfig >= 2.2.0" 2>&5`; then
12743 FONTCONFIG_CFLAGS
=`$as_echo "$FONTCONFIG_CFLAGS" | sed -e "$edit_cflags"`
12744 FONTCONFIG_LIBS
=`$as_echo "$FONTCONFIG_LIBS" | sed -e 's,///*,/,g'`
12745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$FONTCONFIG_CFLAGS' LIBS='$FONTCONFIG_LIBS'" >&5
12746 $as_echo "yes CFLAGS='$FONTCONFIG_CFLAGS' LIBS='$FONTCONFIG_LIBS'" >&6; }
12749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12750 $as_echo "no" >&6; }
12751 FONTCONFIG_CFLAGS
=""
12753 ## If we have a custom action on failure, don't print errors, but
12754 ## do set a variable so people can do so. Do it in a subshell
12755 ## to capture any diagnostics in invoking pkg-config.
12756 FONTCONFIG_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "fontconfig >= 2.2.0") 2>&1`
12763 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12764 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12768 if test $succeeded = yes; then
12775 ## Use -lXft if available, unless `--with-xft=no'.
12777 if test "${HAVE_FC}" = "no" ||
test "x${with_x}" = "xno"; then
12780 if test "x${with_xft}" != "xno"; then
12785 if test "$PKG_CONFIG" = "no" ; then
12788 PKG_CONFIG_MIN_VERSION
=0.9.0
12789 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
12791 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
12793 if "$PKG_CONFIG" --exists "xft >= 0.13.0" 2>&5 &&
12794 XFT_CFLAGS
=`"$PKG_CONFIG" --cflags "xft >= 0.13.0" 2>&5` &&
12795 XFT_LIBS
=`"$PKG_CONFIG" --libs "xft >= 0.13.0" 2>&5`; then
12802 XFT_CFLAGS
=`$as_echo "$XFT_CFLAGS" | sed -e "$edit_cflags"`
12803 XFT_LIBS
=`$as_echo "$XFT_LIBS" | sed -e 's,///*,/,g'`
12804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$XFT_CFLAGS' LIBS='$XFT_LIBS'" >&5
12805 $as_echo "yes CFLAGS='$XFT_CFLAGS' LIBS='$XFT_LIBS'" >&6; }
12808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12809 $as_echo "no" >&6; }
12812 ## If we have a custom action on failure, don't print errors, but
12813 ## do set a variable so people can do so. Do it in a subshell
12814 ## to capture any diagnostics in invoking pkg-config.
12815 XFT_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "xft >= 0.13.0") 2>&1`
12822 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12823 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12827 if test $succeeded = yes; then
12833 ## Because xftfont.c uses XRenderQueryExtension, we also
12834 ## need to link to -lXrender.
12836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
12837 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
12838 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
12839 $as_echo_n "(cached) " >&6
12841 ac_check_lib_save_LIBS
=$LIBS
12842 LIBS
="-lXrender $LIBS"
12843 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12844 /* end confdefs.h. */
12846 /* Override any GCC internal prototype to avoid an error.
12847 Use char because int might match the return type of a GCC
12848 builtin and then its argument prototype would still apply. */
12852 char XRenderQueryExtension ();
12856 return XRenderQueryExtension ();
12861 if ac_fn_c_try_link
"$LINENO"; then :
12862 ac_cv_lib_Xrender_XRenderQueryExtension
=yes
12864 ac_cv_lib_Xrender_XRenderQueryExtension
=no
12866 rm -f core conftest.err conftest.
$ac_objext \
12867 conftest
$ac_exeext conftest.
$ac_ext
12868 LIBS
=$ac_check_lib_save_LIBS
12870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
12871 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
12872 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x
""yes; then :
12876 if test "$HAVE_XFT" != no
&& test "$HAVE_XRENDER" != no
; then
12877 OLD_CPPFLAGS
="$CPPFLAGS"
12878 OLD_CFLAGS
="$CFLAGS"
12880 CPPFLAGS
="$CPPFLAGS $XFT_CFLAGS"
12881 CFLAGS
="$CFLAGS $XFT_CFLAGS"
12882 XFT_LIBS
="-lXrender $XFT_LIBS"
12883 LIBS
="$XFT_LIBS $LIBS"
12884 ac_fn_c_check_header_compile
"$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "#include <X11/X.h>
12886 if test "x$ac_cv_header_X11_Xft_Xft_h" = x
""yes; then :
12887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
12888 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
12889 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then :
12890 $as_echo_n "(cached) " >&6
12892 ac_check_lib_save_LIBS
=$LIBS
12893 LIBS
="-lXft $XFT_LIBS $LIBS"
12894 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12895 /* end confdefs.h. */
12897 /* Override any GCC internal prototype to avoid an error.
12898 Use char because int might match the return type of a GCC
12899 builtin and then its argument prototype would still apply. */
12903 char XftFontOpen ();
12907 return XftFontOpen ();
12912 if ac_fn_c_try_link
"$LINENO"; then :
12913 ac_cv_lib_Xft_XftFontOpen
=yes
12915 ac_cv_lib_Xft_XftFontOpen
=no
12917 rm -f core conftest.err conftest.
$ac_objext \
12918 conftest
$ac_exeext conftest.
$ac_ext
12919 LIBS
=$ac_check_lib_save_LIBS
12921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
12922 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
12923 if test "x$ac_cv_lib_Xft_XftFontOpen" = x
""yes; then :
12931 if test "${HAVE_XFT}" = "yes"; then
12933 $as_echo "#define HAVE_XFT 1" >>confdefs.h
12936 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $XFT_CFLAGS"
12938 CPPFLAGS
="$OLD_CPPFLAGS"
12939 CFLAGS
="$OLD_CFLAGS"
12941 fi # "${HAVE_XFT}" = "yes"
12942 fi # "$HAVE_XFT" != no
12943 fi # "x${with_xft}" != "xno"
12945 ## We used to allow building with FreeType and without Xft.
12946 ## However, the ftx font backend driver is not in good shape.
12947 if test "$HAVE_XFT" != "yes"; then
12954 if test "$PKG_CONFIG" = "no" ; then
12957 PKG_CONFIG_MIN_VERSION
=0.9.0
12958 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype2" >&5
12960 $as_echo_n "checking for freetype2... " >&6; }
12962 if "$PKG_CONFIG" --exists "freetype2" 2>&5 &&
12963 FREETYPE_CFLAGS
=`"$PKG_CONFIG" --cflags "freetype2" 2>&5` &&
12964 FREETYPE_LIBS
=`"$PKG_CONFIG" --libs "freetype2" 2>&5`; then
12971 FREETYPE_CFLAGS
=`$as_echo "$FREETYPE_CFLAGS" | sed -e "$edit_cflags"`
12972 FREETYPE_LIBS
=`$as_echo "$FREETYPE_LIBS" | sed -e 's,///*,/,g'`
12973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$FREETYPE_CFLAGS' LIBS='$FREETYPE_LIBS'" >&5
12974 $as_echo "yes CFLAGS='$FREETYPE_CFLAGS' LIBS='$FREETYPE_LIBS'" >&6; }
12977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12978 $as_echo "no" >&6; }
12981 ## If we have a custom action on failure, don't print errors, but
12982 ## do set a variable so people can do so. Do it in a subshell
12983 ## to capture any diagnostics in invoking pkg-config.
12984 FREETYPE_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "freetype2") 2>&1`
12991 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12992 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12996 if test $succeeded = yes; then
13003 test "$HAVE_FREETYPE" = "no" && as_fn_error
"libxft requires libfreetype" "$LINENO" 5
13007 if test "${HAVE_FREETYPE}" = "yes"; then
13009 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
13011 if test "${with_libotf}" != "no"; then
13015 if test "$PKG_CONFIG" = "no" ; then
13018 PKG_CONFIG_MIN_VERSION
=0.9.0
13019 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
13021 $as_echo_n "checking for libotf... " >&6; }
13023 if "$PKG_CONFIG" --exists "libotf" 2>&5 &&
13024 LIBOTF_CFLAGS
=`"$PKG_CONFIG" --cflags "libotf" 2>&5` &&
13025 LIBOTF_LIBS
=`"$PKG_CONFIG" --libs "libotf" 2>&5`; then
13032 LIBOTF_CFLAGS
=`$as_echo "$LIBOTF_CFLAGS" | sed -e "$edit_cflags"`
13033 LIBOTF_LIBS
=`$as_echo "$LIBOTF_LIBS" | sed -e 's,///*,/,g'`
13034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBOTF_CFLAGS' LIBS='$LIBOTF_LIBS'" >&5
13035 $as_echo "yes CFLAGS='$LIBOTF_CFLAGS' LIBS='$LIBOTF_LIBS'" >&6; }
13038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13039 $as_echo "no" >&6; }
13042 ## If we have a custom action on failure, don't print errors, but
13043 ## do set a variable so people can do so. Do it in a subshell
13044 ## to capture any diagnostics in invoking pkg-config.
13045 LIBOTF_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "libotf") 2>&1`
13052 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13053 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13057 if test $succeeded = yes; then
13063 if test "$HAVE_LIBOTF" = "yes"; then
13065 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
13067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
13068 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
13069 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then :
13070 $as_echo_n "(cached) " >&6
13072 ac_check_lib_save_LIBS
=$LIBS
13074 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13075 /* end confdefs.h. */
13077 /* Override any GCC internal prototype to avoid an error.
13078 Use char because int might match the return type of a GCC
13079 builtin and then its argument prototype would still apply. */
13083 char OTF_get_variation_glyphs ();
13087 return OTF_get_variation_glyphs ();
13092 if ac_fn_c_try_link
"$LINENO"; then :
13093 ac_cv_lib_otf_OTF_get_variation_glyphs
=yes
13095 ac_cv_lib_otf_OTF_get_variation_glyphs
=no
13097 rm -f core conftest.err conftest.
$ac_objext \
13098 conftest
$ac_exeext conftest.
$ac_ext
13099 LIBS
=$ac_check_lib_save_LIBS
13101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
13102 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
13103 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x
""yes; then :
13104 HAVE_OTF_GET_VARIATION_GLYPHS
=yes
13106 HAVE_OTF_GET_VARIATION_GLYPHS
=no
13109 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
13111 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
13119 if test "${HAVE_LIBOTF}" = yes; then
13120 if test "${with_m17n_flt}" != "no"; then
13124 if test "$PKG_CONFIG" = "no" ; then
13127 PKG_CONFIG_MIN_VERSION
=0.9.0
13128 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
13130 $as_echo_n "checking for m17n-flt... " >&6; }
13132 if "$PKG_CONFIG" --exists "m17n-flt" 2>&5 &&
13133 M17N_FLT_CFLAGS
=`"$PKG_CONFIG" --cflags "m17n-flt" 2>&5` &&
13134 M17N_FLT_LIBS
=`"$PKG_CONFIG" --libs "m17n-flt" 2>&5`; then
13141 M17N_FLT_CFLAGS
=`$as_echo "$M17N_FLT_CFLAGS" | sed -e "$edit_cflags"`
13142 M17N_FLT_LIBS
=`$as_echo "$M17N_FLT_LIBS" | sed -e 's,///*,/,g'`
13143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$M17N_FLT_CFLAGS' LIBS='$M17N_FLT_LIBS'" >&5
13144 $as_echo "yes CFLAGS='$M17N_FLT_CFLAGS' LIBS='$M17N_FLT_LIBS'" >&6; }
13147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13148 $as_echo "no" >&6; }
13151 ## If we have a custom action on failure, don't print errors, but
13152 ## do set a variable so people can do so. Do it in a subshell
13153 ## to capture any diagnostics in invoking pkg-config.
13154 M17N_FLT_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "m17n-flt") 2>&1`
13161 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13162 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13166 if test $succeeded = yes; then
13172 if test "$HAVE_M17N_FLT" = "yes"; then
13174 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
13186 ### End of font-backend (under X11) section.
13197 ### Use -lXpm if available, unless `--with-xpm=no'.
13198 ### mingw32 doesn't use -lXpm, since it loads the library dynamically.
13201 if test "${HAVE_W32}" = "yes" && test "${opsys}" = "cygwin"; then
13202 if test "${with_xpm}" != "no"; then
13203 SAVE_CPPFLAGS
="$CPPFLAGS"
13204 SAVE_LDFLAGS
="$LDFLAGS"
13205 CPPFLAGS
="$CPPFLAGS -I/usr/include/noX"
13206 LDFLAGS
="$LDFLAGS -L/usr/lib/noX"
13207 ac_fn_c_check_header_mongrel
"$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
13208 if test "x$ac_cv_header_X11_xpm_h" = x
""yes; then :
13209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToImage in -lXpm" >&5
13210 $as_echo_n "checking for XpmReadFileToImage in -lXpm... " >&6; }
13211 if test "${ac_cv_lib_Xpm_XpmReadFileToImage+set}" = set; then :
13212 $as_echo_n "(cached) " >&6
13214 ac_check_lib_save_LIBS
=$LIBS
13216 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13217 /* end confdefs.h. */
13219 /* Override any GCC internal prototype to avoid an error.
13220 Use char because int might match the return type of a GCC
13221 builtin and then its argument prototype would still apply. */
13225 char XpmReadFileToImage ();
13229 return XpmReadFileToImage ();
13234 if ac_fn_c_try_link
"$LINENO"; then :
13235 ac_cv_lib_Xpm_XpmReadFileToImage
=yes
13237 ac_cv_lib_Xpm_XpmReadFileToImage
=no
13239 rm -f core conftest.err conftest.
$ac_objext \
13240 conftest
$ac_exeext conftest.
$ac_ext
13241 LIBS
=$ac_check_lib_save_LIBS
13243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToImage" >&5
13244 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToImage" >&6; }
13245 if test "x$ac_cv_lib_Xpm_XpmReadFileToImage" = x
""yes; then :
13252 if test "${HAVE_XPM}" = "yes"; then
13253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
13254 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
13255 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13256 /* end confdefs.h. */
13257 #include "X11/xpm.h"
13258 #ifndef XpmReturnAllocPixels
13259 no_return_alloc_pixels
13263 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13264 $EGREP "no_return_alloc_pixels" >/dev
/null
2>&1; then :
13272 if test "${HAVE_XPM}" = "yes"; then
13273 REAL_CPPFLAGS
="$REAL_CPPFLAGS -I/usr/include/noX"
13274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13275 $as_echo "yes" >&6; }
13277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13278 $as_echo "no" >&6; }
13279 CPPFLAGS
="$SAVE_CPPFLAGS"
13280 LDFLAGS
="$SAVE_LDFLAGS"
13285 if test "${HAVE_XPM}" = "yes"; then
13287 $as_echo "#define HAVE_XPM 1" >>confdefs.h
13293 if test "${HAVE_X11}" = "yes"; then
13294 if test "${with_xpm}" != "no"; then
13295 ac_fn_c_check_header_mongrel
"$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
13296 if test "x$ac_cv_header_X11_xpm_h" = x
""yes; then :
13297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
13298 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
13299 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then :
13300 $as_echo_n "(cached) " >&6
13302 ac_check_lib_save_LIBS
=$LIBS
13303 LIBS
="-lXpm -lX11 $LIBS"
13304 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13305 /* end confdefs.h. */
13307 /* Override any GCC internal prototype to avoid an error.
13308 Use char because int might match the return type of a GCC
13309 builtin and then its argument prototype would still apply. */
13313 char XpmReadFileToPixmap ();
13317 return XpmReadFileToPixmap ();
13322 if ac_fn_c_try_link
"$LINENO"; then :
13323 ac_cv_lib_Xpm_XpmReadFileToPixmap
=yes
13325 ac_cv_lib_Xpm_XpmReadFileToPixmap
=no
13327 rm -f core conftest.err conftest.
$ac_objext \
13328 conftest
$ac_exeext conftest.
$ac_ext
13329 LIBS
=$ac_check_lib_save_LIBS
13331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
13332 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
13333 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x
""yes; then :
13340 if test "${HAVE_XPM}" = "yes"; then
13341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
13342 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
13343 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13344 /* end confdefs.h. */
13345 #include "X11/xpm.h"
13346 #ifndef XpmReturnAllocPixels
13347 no_return_alloc_pixels
13351 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13352 $EGREP "no_return_alloc_pixels" >/dev
/null
2>&1; then :
13360 if test "${HAVE_XPM}" = "yes"; then
13361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13362 $as_echo "yes" >&6; }
13364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13365 $as_echo "no" >&6; }
13370 if test "${HAVE_XPM}" = "yes"; then
13372 $as_echo "#define HAVE_XPM 1" >>confdefs.h
13378 ### FIXME: Perhaps regroup to minimize code duplication due to MinGW's
13379 ### slightly different requirements wrt image libraries (it doesn't
13380 ### use -lXpm because it loads the xpm shared library dynamically at
13382 if test "${opsys}" = "mingw32"; then
13383 if test "${with_xpm}" != "no"; then
13384 ac_fn_c_check_header_compile
"$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "
13387 if test "x$ac_cv_header_X11_xpm_h" = x
""yes; then :
13396 if test "${HAVE_XPM}" = "yes"; then
13398 $as_echo "#define HAVE_XPM 1" >>confdefs.h
13405 ### Use -ljpeg if available, unless `--with-jpeg=no'.
13406 ### mingw32 doesn't use -ljpeg, since it loads the library dynamically.
13409 if test "${opsys}" = "mingw32"; then
13410 if test "${with_jpeg}" != "no"; then
13411 ac_fn_c_check_header_mongrel
"$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
13412 if test "x$ac_cv_header_jerror_h" = x
""yes; then :
13420 if test "${HAVE_JPEG}" = "yes"; then
13421 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
13423 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13424 /* end confdefs.h. */
13425 #include <jpeglib.h>
13426 version=JPEG_LIB_VERSION
13429 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13430 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev
/null
2>&1; then :
13431 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
13434 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
13435 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13441 elif test "${HAVE_X11}" = "yes" ||
test "${HAVE_W32}" = "yes"; then
13442 if test "${with_jpeg}" != "no"; then
13443 ac_fn_c_check_header_mongrel
"$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
13444 if test "x$ac_cv_header_jerror_h" = x
""yes; then :
13445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
13446 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
13447 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then :
13448 $as_echo_n "(cached) " >&6
13450 ac_check_lib_save_LIBS
=$LIBS
13451 LIBS
="-ljpeg $LIBS"
13452 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13453 /* end confdefs.h. */
13455 /* Override any GCC internal prototype to avoid an error.
13456 Use char because int might match the return type of a GCC
13457 builtin and then its argument prototype would still apply. */
13461 char jpeg_destroy_compress ();
13465 return jpeg_destroy_compress ();
13470 if ac_fn_c_try_link
"$LINENO"; then :
13471 ac_cv_lib_jpeg_jpeg_destroy_compress
=yes
13473 ac_cv_lib_jpeg_jpeg_destroy_compress
=no
13475 rm -f core conftest.err conftest.
$ac_objext \
13476 conftest
$ac_exeext conftest.
$ac_ext
13477 LIBS
=$ac_check_lib_save_LIBS
13479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13480 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13481 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x
""yes; then :
13490 if test "${HAVE_JPEG}" = "yes"; then
13491 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
13493 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13494 /* end confdefs.h. */
13495 #include <jpeglib.h>
13496 version=JPEG_LIB_VERSION
13499 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13500 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev
/null
2>&1; then :
13501 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
13504 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
13505 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13511 if test "${HAVE_JPEG}" = "yes"; then
13517 ### Use -lpng if available, unless `--with-png=no'.
13518 ### mingw32 doesn't use -lpng, since it loads the library dynamically.
13521 if test "${opsys}" = "mingw32"; then
13522 if test "${with_png}" != "no"; then
13523 ac_fn_c_check_header_mongrel
"$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
13524 if test "x$ac_cv_header_png_h" = x
""yes; then :
13532 if test "${HAVE_PNG}" = "yes"; then
13534 $as_echo "#define HAVE_PNG 1" >>confdefs.h
13537 ac_fn_c_check_decl
"$LINENO" "png_longjmp" "ac_cv_have_decl_png_longjmp" "#ifdef HAVE_LIBPNG_PNG_H
13538 # include <libpng/png.h>
13544 if test "x$ac_cv_have_decl_png_longjmp" = x
""yes; then :
13548 $as_echo "#define PNG_DEPSTRUCT /**/" >>confdefs.h
13553 elif test "${HAVE_X11}" = "yes" ||
test "${HAVE_W32}" = "yes"; then
13554 if test "${with_png}" != "no"; then
13555 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13556 # in /usr/include/libpng.
13557 for ac_header
in png.h libpng
/png.h
13559 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13560 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13561 eval as_val
=\$
$as_ac_Header
13562 if test "x$as_val" = x
""yes; then :
13563 cat >>confdefs.h
<<_ACEOF
13564 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13571 if test "$ac_cv_header_png_h" = yes ||
test "$ac_cv_header_libpng_png_h" = yes ; then
13572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
13573 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
13574 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then :
13575 $as_echo_n "(cached) " >&6
13577 ac_check_lib_save_LIBS
=$LIBS
13578 LIBS
="-lpng -lz -lm $LIBS"
13579 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13580 /* end confdefs.h. */
13582 /* Override any GCC internal prototype to avoid an error.
13583 Use char because int might match the return type of a GCC
13584 builtin and then its argument prototype would still apply. */
13588 char png_get_channels ();
13592 return png_get_channels ();
13597 if ac_fn_c_try_link
"$LINENO"; then :
13598 ac_cv_lib_png_png_get_channels
=yes
13600 ac_cv_lib_png_png_get_channels
=no
13602 rm -f core conftest.err conftest.
$ac_objext \
13603 conftest
$ac_exeext conftest.
$ac_ext
13604 LIBS
=$ac_check_lib_save_LIBS
13606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
13607 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
13608 if test "x$ac_cv_lib_png_png_get_channels" = x
""yes; then :
13615 if test "${HAVE_PNG}" = "yes"; then
13617 $as_echo "#define HAVE_PNG 1" >>confdefs.h
13619 LIBPNG
="-lpng -lz -lm"
13621 ac_fn_c_check_decl
"$LINENO" "png_longjmp" "ac_cv_have_decl_png_longjmp" "#ifdef HAVE_LIBPNG_PNG_H
13622 # include <libpng/png.h>
13628 if test "x$ac_cv_have_decl_png_longjmp" = x
""yes; then :
13632 $as_echo "#define PNG_DEPSTRUCT /**/" >>confdefs.h
13642 if test "${with_zlib}" != "no"; then
13644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inflateEnd" >&5
13645 $as_echo_n "checking for library containing inflateEnd... " >&6; }
13646 if test "${ac_cv_search_inflateEnd+set}" = set; then :
13647 $as_echo_n "(cached) " >&6
13649 ac_func_search_save_LIBS
=$LIBS
13650 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13651 /* end confdefs.h. */
13653 /* Override any GCC internal prototype to avoid an error.
13654 Use char because int might match the return type of a GCC
13655 builtin and then its argument prototype would still apply. */
13659 char inflateEnd ();
13663 return inflateEnd ();
13668 for ac_lib
in '' z
; do
13669 if test -z "$ac_lib"; then
13670 ac_res
="none required"
13673 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
13675 if ac_fn_c_try_link
"$LINENO"; then :
13676 ac_cv_search_inflateEnd
=$ac_res
13678 rm -f core conftest.err conftest.
$ac_objext \
13680 if test "${ac_cv_search_inflateEnd+set}" = set; then :
13684 if test "${ac_cv_search_inflateEnd+set}" = set; then :
13687 ac_cv_search_inflateEnd
=no
13689 rm conftest.
$ac_ext
13690 LIBS
=$ac_func_search_save_LIBS
13692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inflateEnd" >&5
13693 $as_echo "$ac_cv_search_inflateEnd" >&6; }
13694 ac_res
=$ac_cv_search_inflateEnd
13695 if test "$ac_res" != no
; then :
13696 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
13701 case $ac_cv_search_inflateEnd in
13702 -*) LIBZ
=$ac_cv_search_inflateEnd ;;
13705 if test "${HAVE_ZLIB}" = "yes"; then
13707 $as_echo "#define HAVE_ZLIB 1" >>confdefs.h
13709 ### mingw32 doesn't use -lz, since it loads the library dynamically.
13710 if test "${opsys}" = "mingw32"; then
13717 ### Use -ltiff if available, unless `--with-tiff=no'.
13718 ### mingw32 doesn't use -ltiff, since it loads the library dynamically.
13721 if test "${opsys}" = "mingw32"; then
13722 if test "${with_tiff}" != "no"; then
13723 ac_fn_c_check_header_mongrel
"$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
13724 if test "x$ac_cv_header_tiffio_h" = x
""yes; then :
13732 if test "${HAVE_TIFF}" = "yes"; then
13734 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
13737 elif test "${HAVE_X11}" = "yes" ||
test "${HAVE_W32}" = "yes"; then
13738 if test "${with_tiff}" != "no"; then
13739 ac_fn_c_check_header_mongrel
"$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
13740 if test "x$ac_cv_header_tiffio_h" = x
""yes; then :
13742 # At least one tiff package requires the jpeg library.
13743 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
13744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
13745 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
13746 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then :
13747 $as_echo_n "(cached) " >&6
13749 ac_check_lib_save_LIBS
=$LIBS
13750 LIBS
="-ltiff $tifflibs $LIBS"
13751 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13752 /* end confdefs.h. */
13754 /* Override any GCC internal prototype to avoid an error.
13755 Use char because int might match the return type of a GCC
13756 builtin and then its argument prototype would still apply. */
13760 char TIFFGetVersion ();
13764 return TIFFGetVersion ();
13769 if ac_fn_c_try_link
"$LINENO"; then :
13770 ac_cv_lib_tiff_TIFFGetVersion
=yes
13772 ac_cv_lib_tiff_TIFFGetVersion
=no
13774 rm -f core conftest.err conftest.
$ac_objext \
13775 conftest
$ac_exeext conftest.
$ac_ext
13776 LIBS
=$ac_check_lib_save_LIBS
13778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
13779 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
13780 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x
""yes; then :
13789 if test "${HAVE_TIFF}" = "yes"; then
13791 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
13798 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
13799 ### mingw32 doesn't use -lgif/-lungif, since it loads the library dynamically.
13802 if test "${opsys}" = "mingw32"; then
13803 if test "${with_gif}" != "no"; then
13804 ac_fn_c_check_header_mongrel
"$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
13805 if test "x$ac_cv_header_gif_lib_h" = x
""yes; then :
13813 if test "${HAVE_GIF}" = "yes"; then
13815 $as_echo "#define HAVE_GIF 1" >>confdefs.h
13818 elif test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no" \
13819 ||
test "${HAVE_W32}" = "yes"; then
13820 ac_fn_c_check_header_mongrel
"$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
13821 if test "x$ac_cv_header_gif_lib_h" = x
""yes; then :
13822 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
13823 # Earlier versions can crash Emacs.
13824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
13825 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
13826 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then :
13827 $as_echo_n "(cached) " >&6
13829 ac_check_lib_save_LIBS
=$LIBS
13831 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13832 /* end confdefs.h. */
13834 /* Override any GCC internal prototype to avoid an error.
13835 Use char because int might match the return type of a GCC
13836 builtin and then its argument prototype would still apply. */
13840 char EGifPutExtensionLast ();
13844 return EGifPutExtensionLast ();
13849 if ac_fn_c_try_link
"$LINENO"; then :
13850 ac_cv_lib_gif_EGifPutExtensionLast
=yes
13852 ac_cv_lib_gif_EGifPutExtensionLast
=no
13854 rm -f core conftest.err conftest.
$ac_objext \
13855 conftest
$ac_exeext conftest.
$ac_ext
13856 LIBS
=$ac_check_lib_save_LIBS
13858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
13859 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
13860 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x
""yes; then :
13870 if test "$HAVE_GIF" = yes; then
13872 elif test "$HAVE_GIF" = maybe
; then
13873 # If gif_lib.h but no libgif, try libungif.
13874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
13875 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
13876 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then :
13877 $as_echo_n "(cached) " >&6
13879 ac_check_lib_save_LIBS
=$LIBS
13880 LIBS
="-lungif $LIBS"
13881 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13882 /* end confdefs.h. */
13884 /* Override any GCC internal prototype to avoid an error.
13885 Use char because int might match the return type of a GCC
13886 builtin and then its argument prototype would still apply. */
13890 char EGifPutExtensionLast ();
13894 return EGifPutExtensionLast ();
13899 if ac_fn_c_try_link
"$LINENO"; then :
13900 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
13902 ac_cv_lib_ungif_EGifPutExtensionLast
=no
13904 rm -f core conftest.err conftest.
$ac_objext \
13905 conftest
$ac_exeext conftest.
$ac_ext
13906 LIBS
=$ac_check_lib_save_LIBS
13908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
13909 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
13910 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x
""yes; then :
13916 test "$HAVE_GIF" = yes && LIBGIF
=-lungif
13919 if test "${HAVE_GIF}" = "yes"; then
13921 $as_echo "#define HAVE_GIF 1" >>confdefs.h
13927 if test "${HAVE_X11}" = "yes"; then
13930 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
13931 MISSING
="libXpm" && WITH_NO
="--with-xpm=no"
13932 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
13933 MISSING
="$MISSING libjpeg" && WITH_NO
="$WITH_NO --with-jpeg=no"
13934 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
13935 MISSING
="$MISSING libpng" && WITH_NO
="$WITH_NO --with-png=no"
13936 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
13937 MISSING
="$MISSING libgif/libungif" && WITH_NO
="$WITH_NO --with-gif=no"
13938 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
13939 MISSING
="$MISSING libtiff" && WITH_NO
="$WITH_NO --with-tiff=no"
13941 if test "X${MISSING}" != X
; then
13942 as_fn_error
"The following required libraries were not found:
13944 Maybe some development libraries/packages are missing?
13945 If you don't want to link with them give
13947 as options to configure" "$LINENO" 5
13951 ### Use -lgpm if available, unless `--with-gpm=no'.
13954 if test "${with_gpm}" != "no"; then
13955 ac_fn_c_check_header_mongrel
"$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
13956 if test "x$ac_cv_header_gpm_h" = x
""yes; then :
13957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
13958 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
13959 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then :
13960 $as_echo_n "(cached) " >&6
13962 ac_check_lib_save_LIBS
=$LIBS
13964 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13965 /* end confdefs.h. */
13967 /* Override any GCC internal prototype to avoid an error.
13968 Use char because int might match the return type of a GCC
13969 builtin and then its argument prototype would still apply. */
13977 return Gpm_Open ();
13982 if ac_fn_c_try_link
"$LINENO"; then :
13983 ac_cv_lib_gpm_Gpm_Open
=yes
13985 ac_cv_lib_gpm_Gpm_Open
=no
13987 rm -f core conftest.err conftest.
$ac_objext \
13988 conftest
$ac_exeext conftest.
$ac_ext
13989 LIBS
=$ac_check_lib_save_LIBS
13991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
13992 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
13993 if test "x$ac_cv_lib_gpm_Gpm_Open" = x
""yes; then :
14001 if test "${HAVE_GPM}" = "yes"; then
14003 $as_echo "#define HAVE_GPM 1" >>confdefs.h
14015 ### Use NeXTstep API to implement GUI.
14016 if test "${HAVE_NS}" = "yes"; then
14018 $as_echo "#define HAVE_NS 1" >>confdefs.h
14020 if test "${NS_IMPL_COCOA}" = "yes"; then
14022 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
14025 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
14027 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
14029 # See also .m.o rule in Makefile.in */
14030 # FIXME: are all these flags really needed? Document here why. */
14031 GNUSTEP_CFLAGS
="-D_REENTRANT -fPIC -fno-strict-aliasing -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
14032 ## Extra CFLAGS applied to src/*.m files.
14033 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"
14035 # We also have mouse menus.
14040 if test "${HAVE_W32}" = "yes"; then
14044 ### Use session management (-lSM -lICE) if available
14047 if test "${HAVE_X11}" = "yes"; then
14048 ac_fn_c_check_header_mongrel
"$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
14049 if test "x$ac_cv_header_X11_SM_SMlib_h" = x
""yes; then :
14050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
14051 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
14052 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then :
14053 $as_echo_n "(cached) " >&6
14055 ac_check_lib_save_LIBS
=$LIBS
14056 LIBS
="-lSM -lICE $LIBS"
14057 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14058 /* end confdefs.h. */
14060 /* Override any GCC internal prototype to avoid an error.
14061 Use char because int might match the return type of a GCC
14062 builtin and then its argument prototype would still apply. */
14066 char SmcOpenConnection ();
14070 return SmcOpenConnection ();
14075 if ac_fn_c_try_link
"$LINENO"; then :
14076 ac_cv_lib_SM_SmcOpenConnection
=yes
14078 ac_cv_lib_SM_SmcOpenConnection
=no
14080 rm -f core conftest.err conftest.
$ac_objext \
14081 conftest
$ac_exeext conftest.
$ac_ext
14082 LIBS
=$ac_check_lib_save_LIBS
14084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
14085 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
14086 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x
""yes; then :
14094 if test "${HAVE_X_SM}" = "yes"; then
14096 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
14098 LIBXSM
="-lSM -lICE"
14101 *) LIBS
="$LIBXSM $LIBS" ;;
14107 ### Use XRandr (-lXrandr) if available
14109 if test "${HAVE_X11}" = "yes"; then
14110 XRANDR_REQUIRED
=1.2.2
14111 XRANDR_MODULES
="xrandr >= $XRANDR_REQUIRED"
14115 if test "$PKG_CONFIG" = "no" ; then
14118 PKG_CONFIG_MIN_VERSION
=0.9.0
14119 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $XRANDR_MODULES" >&5
14121 $as_echo_n "checking for $XRANDR_MODULES... " >&6; }
14123 if "$PKG_CONFIG" --exists "$XRANDR_MODULES" 2>&5 &&
14124 XRANDR_CFLAGS
=`"$PKG_CONFIG" --cflags "$XRANDR_MODULES" 2>&5` &&
14125 XRANDR_LIBS
=`"$PKG_CONFIG" --libs "$XRANDR_MODULES" 2>&5`; then
14132 XRANDR_CFLAGS
=`$as_echo "$XRANDR_CFLAGS" | sed -e "$edit_cflags"`
14133 XRANDR_LIBS
=`$as_echo "$XRANDR_LIBS" | sed -e 's,///*,/,g'`
14134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$XRANDR_CFLAGS' LIBS='$XRANDR_LIBS'" >&5
14135 $as_echo "yes CFLAGS='$XRANDR_CFLAGS' LIBS='$XRANDR_LIBS'" >&6; }
14138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14139 $as_echo "no" >&6; }
14142 ## If we have a custom action on failure, don't print errors, but
14143 ## do set a variable so people can do so. Do it in a subshell
14144 ## to capture any diagnostics in invoking pkg-config.
14145 XRANDR_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "$XRANDR_MODULES") 2>&1`
14152 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14153 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14157 if test $succeeded = yes; then
14163 if test $HAVE_XRANDR = no
; then
14164 # Test old way in case pkg-config doesn't have it (older machines).
14165 ac_fn_c_check_header_mongrel
"$LINENO" "X11/extensions/Xrandr.h" "ac_cv_header_X11_extensions_Xrandr_h" "$ac_includes_default"
14166 if test "x$ac_cv_header_X11_extensions_Xrandr_h" = x
""yes; then :
14167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRRGetScreenResources in -lXrandr" >&5
14168 $as_echo_n "checking for XRRGetScreenResources in -lXrandr... " >&6; }
14169 if test "${ac_cv_lib_Xrandr_XRRGetScreenResources+set}" = set; then :
14170 $as_echo_n "(cached) " >&6
14172 ac_check_lib_save_LIBS
=$LIBS
14173 LIBS
="-lXrandr $LIBS"
14174 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14175 /* end confdefs.h. */
14177 /* Override any GCC internal prototype to avoid an error.
14178 Use char because int might match the return type of a GCC
14179 builtin and then its argument prototype would still apply. */
14183 char XRRGetScreenResources ();
14187 return XRRGetScreenResources ();
14192 if ac_fn_c_try_link
"$LINENO"; then :
14193 ac_cv_lib_Xrandr_XRRGetScreenResources
=yes
14195 ac_cv_lib_Xrandr_XRRGetScreenResources
=no
14197 rm -f core conftest.err conftest.
$ac_objext \
14198 conftest
$ac_exeext conftest.
$ac_ext
14199 LIBS
=$ac_check_lib_save_LIBS
14201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrandr_XRRGetScreenResources" >&5
14202 $as_echo "$ac_cv_lib_Xrandr_XRRGetScreenResources" >&6; }
14203 if test "x$ac_cv_lib_Xrandr_XRRGetScreenResources" = x
""yes; then :
14210 if test $HAVE_XRANDR = yes; then
14211 XRANDR_LIBS
=-lXrandr
14215 if test $HAVE_XRANDR = yes; then
14216 SAVE_CFLAGS
="$CFLAGS"
14218 CFLAGS
="$XRANDR_CFLAGS $CFLAGS"
14219 LIBS
="$XRANDR_LIBS $LIBS"
14220 for ac_func
in XRRGetOutputPrimary XRRGetScreenResourcesCurrent
14222 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14223 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
14224 eval as_val
=\$
$as_ac_var
14225 if test "x$as_val" = x
""yes; then :
14226 cat >>confdefs.h
<<_ACEOF
14227 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14233 CFLAGS
="$SAVE_CFLAGS"
14237 $as_echo "#define HAVE_XRANDR 1" >>confdefs.h
14242 ### Use Xinerama (-lXinerama) if available
14244 if test "${HAVE_X11}" = "yes"; then
14245 XINERAMA_REQUIRED
=1.0.2
14246 XINERAMA_MODULES
="xinerama >= $XINERAMA_REQUIRED"
14250 if test "$PKG_CONFIG" = "no" ; then
14253 PKG_CONFIG_MIN_VERSION
=0.9.0
14254 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $XINERAMA_MODULES" >&5
14256 $as_echo_n "checking for $XINERAMA_MODULES... " >&6; }
14258 if "$PKG_CONFIG" --exists "$XINERAMA_MODULES" 2>&5 &&
14259 XINERAMA_CFLAGS
=`"$PKG_CONFIG" --cflags "$XINERAMA_MODULES" 2>&5` &&
14260 XINERAMA_LIBS
=`"$PKG_CONFIG" --libs "$XINERAMA_MODULES" 2>&5`; then
14267 XINERAMA_CFLAGS
=`$as_echo "$XINERAMA_CFLAGS" | sed -e "$edit_cflags"`
14268 XINERAMA_LIBS
=`$as_echo "$XINERAMA_LIBS" | sed -e 's,///*,/,g'`
14269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$XINERAMA_CFLAGS' LIBS='$XINERAMA_LIBS'" >&5
14270 $as_echo "yes CFLAGS='$XINERAMA_CFLAGS' LIBS='$XINERAMA_LIBS'" >&6; }
14273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14274 $as_echo "no" >&6; }
14277 ## If we have a custom action on failure, don't print errors, but
14278 ## do set a variable so people can do so. Do it in a subshell
14279 ## to capture any diagnostics in invoking pkg-config.
14280 XINERAMA_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "$XINERAMA_MODULES") 2>&1`
14287 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14288 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14292 if test $succeeded = yes; then
14298 if test $HAVE_XINERAMA = no
; then
14299 # Test old way in case pkg-config doesn't have it (older machines).
14300 ac_fn_c_check_header_mongrel
"$LINENO" "X11/extensions/Xinerama.h" "ac_cv_header_X11_extensions_Xinerama_h" "$ac_includes_default"
14301 if test "x$ac_cv_header_X11_extensions_Xinerama_h" = x
""yes; then :
14302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XineramaQueryExtension in -lXinerama" >&5
14303 $as_echo_n "checking for XineramaQueryExtension in -lXinerama... " >&6; }
14304 if test "${ac_cv_lib_Xinerama_XineramaQueryExtension+set}" = set; then :
14305 $as_echo_n "(cached) " >&6
14307 ac_check_lib_save_LIBS
=$LIBS
14308 LIBS
="-lXinerama $LIBS"
14309 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14310 /* end confdefs.h. */
14312 /* Override any GCC internal prototype to avoid an error.
14313 Use char because int might match the return type of a GCC
14314 builtin and then its argument prototype would still apply. */
14318 char XineramaQueryExtension ();
14322 return XineramaQueryExtension ();
14327 if ac_fn_c_try_link
"$LINENO"; then :
14328 ac_cv_lib_Xinerama_XineramaQueryExtension
=yes
14330 ac_cv_lib_Xinerama_XineramaQueryExtension
=no
14332 rm -f core conftest.err conftest.
$ac_objext \
14333 conftest
$ac_exeext conftest.
$ac_ext
14334 LIBS
=$ac_check_lib_save_LIBS
14336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xinerama_XineramaQueryExtension" >&5
14337 $as_echo "$ac_cv_lib_Xinerama_XineramaQueryExtension" >&6; }
14338 if test "x$ac_cv_lib_Xinerama_XineramaQueryExtension" = x
""yes; then :
14345 if test $HAVE_XINERAMA = yes; then
14346 XINERAMA_LIBS
=-lXinerama
14350 if test $HAVE_XINERAMA = yes; then
14352 $as_echo "#define HAVE_XINERAMA 1" >>confdefs.h
14358 ### Use libxml (-lxml2) if available
14359 ### mingw32 doesn't use -lxml2, since it loads the library dynamically.
14361 if test "${with_xml2}" != "no"; then
14362 ### I'm not sure what the version number should be, so I just guessed.
14366 if test "$PKG_CONFIG" = "no" ; then
14369 PKG_CONFIG_MIN_VERSION
=0.9.0
14370 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.6.17" >&5
14372 $as_echo_n "checking for libxml-2.0 > 2.6.17... " >&6; }
14374 if "$PKG_CONFIG" --exists "libxml-2.0 > 2.6.17" 2>&5 &&
14375 LIBXML2_CFLAGS
=`"$PKG_CONFIG" --cflags "libxml-2.0 > 2.6.17" 2>&5` &&
14376 LIBXML2_LIBS
=`"$PKG_CONFIG" --libs "libxml-2.0 > 2.6.17" 2>&5`; then
14383 LIBXML2_CFLAGS
=`$as_echo "$LIBXML2_CFLAGS" | sed -e "$edit_cflags"`
14384 LIBXML2_LIBS
=`$as_echo "$LIBXML2_LIBS" | sed -e 's,///*,/,g'`
14385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBXML2_CFLAGS' LIBS='$LIBXML2_LIBS'" >&5
14386 $as_echo "yes CFLAGS='$LIBXML2_CFLAGS' LIBS='$LIBXML2_LIBS'" >&6; }
14389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14390 $as_echo "no" >&6; }
14393 ## If we have a custom action on failure, don't print errors, but
14394 ## do set a variable so people can do so. Do it in a subshell
14395 ## to capture any diagnostics in invoking pkg-config.
14396 LIBXML2_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "libxml-2.0 > 2.6.17") 2>&1`
14403 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14404 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14408 if test $succeeded = yes; then
14414 # Built-in libxml2 on OS X 10.8 lacks libxml-2.0.pc.
14415 if test "${HAVE_LIBXML2}" != "yes" -a "$opsys" = "darwin"; then
14416 SAVE_CPPFLAGS
="$CPPFLAGS"
14417 CPPFLAGS
="$CPPFLAGS -I/usr/include/libxml2"
14418 ac_fn_c_check_header_mongrel
"$LINENO" "libxml/HTMLparser.h" "ac_cv_header_libxml_HTMLparser_h" "$ac_includes_default"
14419 if test "x$ac_cv_header_libxml_HTMLparser_h" = x
""yes; then :
14420 ac_fn_c_check_decl
"$LINENO" "HTML_PARSE_RECOVER" "ac_cv_have_decl_HTML_PARSE_RECOVER" "#include <libxml/HTMLparser.h>
14422 if test "x$ac_cv_have_decl_HTML_PARSE_RECOVER" = x
""yes; then :
14429 CPPFLAGS
="$SAVE_CPPFLAGS"
14430 if test "${HAVE_LIBXML2}" = "yes"; then
14431 LIBXML2_LIBS
="-lxml2"
14432 LIBXML2_CFLAGS
="-I/usr/include/libxml2"
14435 if test "${HAVE_LIBXML2}" = "yes"; then
14436 if test "${opsys}" != "mingw32"; then
14437 LIBS
="$LIBXML2_LIBS $LIBS"
14438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5
14439 $as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; }
14440 if test "${ac_cv_lib_xml2_htmlReadMemory+set}" = set; then :
14441 $as_echo_n "(cached) " >&6
14443 ac_check_lib_save_LIBS
=$LIBS
14444 LIBS
="-lxml2 $LIBS"
14445 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14446 /* end confdefs.h. */
14448 /* Override any GCC internal prototype to avoid an error.
14449 Use char because int might match the return type of a GCC
14450 builtin and then its argument prototype would still apply. */
14454 char htmlReadMemory ();
14458 return htmlReadMemory ();
14463 if ac_fn_c_try_link
"$LINENO"; then :
14464 ac_cv_lib_xml2_htmlReadMemory
=yes
14466 ac_cv_lib_xml2_htmlReadMemory
=no
14468 rm -f core conftest.err conftest.
$ac_objext \
14469 conftest
$ac_exeext conftest.
$ac_ext
14470 LIBS
=$ac_check_lib_save_LIBS
14472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5
14473 $as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; }
14474 if test "x$ac_cv_lib_xml2_htmlReadMemory" = x
""yes; then :
14483 if test "${HAVE_LIBXML2}" = "yes"; then
14485 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
14496 # If netdb.h doesn't declare h_errno, we must declare it by hand.
14497 # On MinGW, that is provided by nt/inc/sys/socket.h and w32.c.
14498 if test "${opsys}" = "mingw32"; then
14499 emacs_cv_netdb_declares_h_errno
=yes
14501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
14502 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
14503 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then :
14504 $as_echo_n "(cached) " >&6
14506 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14507 /* end confdefs.h. */
14517 if ac_fn_c_try_link
"$LINENO"; then :
14518 emacs_cv_netdb_declares_h_errno
=yes
14520 emacs_cv_netdb_declares_h_errno
=no
14522 rm -f core conftest.err conftest.
$ac_objext \
14523 conftest
$ac_exeext conftest.
$ac_ext
14525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
14526 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
14527 if test $emacs_cv_netdb_declares_h_errno = yes; then
14529 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
14533 # sqrt and other floating-point functions such as fmod and frexp
14534 # are found in -lm on most systems, but mingw32 doesn't use -lm.
14535 if test "${opsys}" != "mingw32"; then
14536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
14537 $as_echo_n "checking for sqrt in -lm... " >&6; }
14538 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
14539 $as_echo_n "(cached) " >&6
14541 ac_check_lib_save_LIBS
=$LIBS
14543 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14544 /* end confdefs.h. */
14546 /* Override any GCC internal prototype to avoid an error.
14547 Use char because int might match the return type of a GCC
14548 builtin and then its argument prototype would still apply. */
14561 if ac_fn_c_try_link
"$LINENO"; then :
14562 ac_cv_lib_m_sqrt
=yes
14564 ac_cv_lib_m_sqrt
=no
14566 rm -f core conftest.err conftest.
$ac_objext \
14567 conftest
$ac_exeext conftest.
$ac_ext
14568 LIBS
=$ac_check_lib_save_LIBS
14570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
14571 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
14572 if test "x$ac_cv_lib_m_sqrt" = x
""yes; then :
14573 cat >>confdefs.h
<<_ACEOF
14574 #define HAVE_LIBM 1
14583 # Check for mail-locking functions in a "mail" library. Probably this should
14584 # have the same check as for liblockfile below.
14585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
14586 $as_echo_n "checking for maillock in -lmail... " >&6; }
14587 if test "${ac_cv_lib_mail_maillock+set}" = set; then :
14588 $as_echo_n "(cached) " >&6
14590 ac_check_lib_save_LIBS
=$LIBS
14591 LIBS
="-lmail $LIBS"
14592 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14593 /* end confdefs.h. */
14595 /* Override any GCC internal prototype to avoid an error.
14596 Use char because int might match the return type of a GCC
14597 builtin and then its argument prototype would still apply. */
14605 return maillock ();
14610 if ac_fn_c_try_link
"$LINENO"; then :
14611 ac_cv_lib_mail_maillock
=yes
14613 ac_cv_lib_mail_maillock
=no
14615 rm -f core conftest.err conftest.
$ac_objext \
14616 conftest
$ac_exeext conftest.
$ac_ext
14617 LIBS
=$ac_check_lib_save_LIBS
14619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
14620 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
14621 if test "x$ac_cv_lib_mail_maillock" = x
""yes; then :
14627 if test $have_mail = yes; then
14629 LIBS
="$LIBS_MAIL $LIBS"
14631 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
14636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
14637 $as_echo_n "checking for maillock in -llockfile... " >&6; }
14638 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then :
14639 $as_echo_n "(cached) " >&6
14641 ac_check_lib_save_LIBS
=$LIBS
14642 LIBS
="-llockfile $LIBS"
14643 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14644 /* end confdefs.h. */
14646 /* Override any GCC internal prototype to avoid an error.
14647 Use char because int might match the return type of a GCC
14648 builtin and then its argument prototype would still apply. */
14656 return maillock ();
14661 if ac_fn_c_try_link
"$LINENO"; then :
14662 ac_cv_lib_lockfile_maillock
=yes
14664 ac_cv_lib_lockfile_maillock
=no
14666 rm -f core conftest.err conftest.
$ac_objext \
14667 conftest
$ac_exeext conftest.
$ac_ext
14668 LIBS
=$ac_check_lib_save_LIBS
14670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
14671 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
14672 if test "x$ac_cv_lib_lockfile_maillock" = x
""yes; then :
14678 if test $have_lockfile = yes; then
14679 LIBS_MAIL
=-llockfile
14680 LIBS
="$LIBS_MAIL $LIBS"
14682 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
14685 # If we have the shared liblockfile, assume we must use it for mail
14686 # locking (e.g. Debian). If we couldn't link against liblockfile
14687 # (no liblockfile.a installed), ensure that we don't need to.
14688 # Extract the first word of "liblockfile.so", so it can be a program name with args.
14689 set dummy liblockfile.so
; ac_word
=$2
14690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14691 $as_echo_n "checking for $ac_word... " >&6; }
14692 if test "${ac_cv_prog_liblockfile+set}" = set; then :
14693 $as_echo_n "(cached) " >&6
14695 if test -n "$liblockfile"; then
14696 ac_cv_prog_liblockfile
="$liblockfile" # Let the user override the test.
14698 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14699 as_dummy
="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
14700 for as_dir
in $as_dummy
14703 test -z "$as_dir" && as_dir
=.
14704 for ac_exec_ext
in '' $ac_executable_extensions; do
14705 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14706 ac_cv_prog_liblockfile
="yes"
14707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14714 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile
="no"
14717 liblockfile
=$ac_cv_prog_liblockfile
14718 if test -n "$liblockfile"; then
14719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
14720 $as_echo "$liblockfile" >&6; }
14722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14723 $as_echo "no" >&6; }
14727 if test $ac_cv_prog_liblockfile = yes; then
14728 as_fn_error
"Shared liblockfile found but can't link against it.
14729 This probably means that movemail could lose mail.
14730 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
14738 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
14739 ## interlock access to the mail spool. The alternative is a lock file named
14740 ## /usr/spool/mail/$USER.lock.
14743 aix4-2
) mail_lock
="lockf" ;;
14745 gnu|freebsd|dragonfly|netbsd|openbsd|darwin|irix6-5
) mail_lock
="flock" ;;
14747 ## On GNU/Linux systems, both methods are used by various mail programs.
14748 ## I assume most people are using newer mailers that have heard of flock.
14749 ## Change this if you need to.
14750 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
14751 ## configure gets the right answers, and that means *NOT* using flock.
14752 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
14753 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
14754 ## Debian maintainer hasn't provided a clean fix for Emacs.
14755 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
14756 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
14757 ## correct logic. -- fx
14758 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
14759 ## liblockfile is a Free Software replacement for libmail, used on
14760 ## Debian systems and elsewhere. -rfr.
14763 if test $have_mail = yes ||
test $have_lockfile = yes; then
14764 test $ac_cv_header_maillock_h = yes && mail_lock
=no
14769 mail_lock
="none-needed" ;;
14773 case "$mail_lock" in
14775 $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
14779 $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
14784 *) BLESSMAIL_TARGET
="need-blessmail" ;;
14789 for ac_func
in accept4 gethostname \
14790 getrusage get_current_dir_name \
14792 select getpagesize setlocale \
14793 getrlimit setrlimit shutdown getaddrinfo \
14794 strsignal setitimer \
14795 sendto recvfrom getsockname getpeername getifaddrs freeifaddrs \
14796 gai_strerror getline getdelim sync \
14797 difftime posix_memalign \
14798 getpwent endpwent getgrent endgrent \
14800 cfmakeraw cfsetspeed copysign __executable_start log2
14802 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14803 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
14804 eval as_val
=\$
$as_ac_var
14805 if test "x$as_val" = x
""yes; then :
14806 cat >>confdefs.h
<<_ACEOF
14807 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14814 ## Eric Backus <ericb@lsid.hp.com> says, HP-UX 9.x on HP 700 machines
14815 ## has a broken `rint' in some library versions including math library
14816 ## version number A.09.05.
14817 ## You can fix the math library by installing patch number PHSS_4630.
14818 ## But we can fix it more reliably for Emacs by just not using rint.
14819 ## We also skip HAVE_RANDOM - see comments in src/conf_post.h.
14822 *) for ac_func
in random rint
14824 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14825 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
14826 eval as_val
=\$
$as_ac_var
14827 if test "x$as_val" = x
""yes; then :
14828 cat >>confdefs.h
<<_ACEOF
14829 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unwind_init" >&5
14838 $as_echo_n "checking for __builtin_unwind_init... " >&6; }
14839 if test "${emacs_cv_func___builtin_unwind_init+set}" = set; then :
14840 $as_echo_n "(cached) " >&6
14842 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14843 /* end confdefs.h. */
14848 __builtin_unwind_init ();
14853 if ac_fn_c_try_link
"$LINENO"; then :
14854 emacs_cv_func___builtin_unwind_init
=yes
14856 emacs_cv_func___builtin_unwind_init
=no
14858 rm -f core conftest.err conftest.
$ac_objext \
14859 conftest
$ac_exeext conftest.
$ac_ext
14861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func___builtin_unwind_init" >&5
14862 $as_echo "$emacs_cv_func___builtin_unwind_init" >&6; }
14863 if test $emacs_cv_func___builtin_unwind_init = yes; then
14865 $as_echo "#define HAVE___BUILTIN_UNWIND_INIT 1" >>confdefs.h
14873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
14874 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
14875 if test "${ac_cv_sys_largefile_source+set}" = set; then :
14876 $as_echo_n "(cached) " >&6
14879 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14880 /* end confdefs.h. */
14881 #include <sys/types.h> /* for off_t */
14886 int (*fp) (FILE *, off_t, int) = fseeko;
14887 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
14892 if ac_fn_c_try_link
"$LINENO"; then :
14893 ac_cv_sys_largefile_source
=no
; break
14895 rm -f core conftest.err conftest.
$ac_objext \
14896 conftest
$ac_exeext conftest.
$ac_ext
14897 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14898 /* end confdefs.h. */
14899 #define _LARGEFILE_SOURCE 1
14900 #include <sys/types.h> /* for off_t */
14905 int (*fp) (FILE *, off_t, int) = fseeko;
14906 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
14911 if ac_fn_c_try_link
"$LINENO"; then :
14912 ac_cv_sys_largefile_source
=1; break
14914 rm -f core conftest.err conftest.
$ac_objext \
14915 conftest
$ac_exeext conftest.
$ac_ext
14916 ac_cv_sys_largefile_source
=unknown
14920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
14921 $as_echo "$ac_cv_sys_largefile_source" >&6; }
14922 case $ac_cv_sys_largefile_source in #(
14925 cat >>confdefs.h
<<_ACEOF
14926 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
14932 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
14933 # in glibc 2.1.3, but that breaks too many other things.
14934 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
14935 if test $ac_cv_sys_largefile_source != unknown
; then
14937 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
14943 for ac_func
in grantpt
14945 ac_fn_c_check_func
"$LINENO" "grantpt" "ac_cv_func_grantpt"
14946 if test "x$ac_cv_func_grantpt" = x
""yes; then :
14947 cat >>confdefs.h
<<_ACEOF
14948 #define HAVE_GRANTPT 1
14955 # PTY-related GNU extensions.
14956 for ac_func
in getpt posix_openpt
14958 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14959 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
14960 eval as_val
=\$
$as_ac_var
14961 if test "x$as_val" = x
""yes; then :
14962 cat >>confdefs.h
<<_ACEOF
14963 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14970 # Check this now, so that we will NOT find the above functions in ncurses.
14971 # That is because we have not set up to link ncurses in lib-src.
14972 # It's better to believe a function is not available
14973 # than to expect to find it in ncurses.
14974 # Also we need tputs and friends to be able to build at all.
14975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
14976 $as_echo_n "checking for library containing tputs... " >&6; }
14977 # Run a test program that contains a call to tputs, a call that is
14978 # never executed. This tests whether a pre-'main' dynamic linker
14979 # works with the library. It's too much trouble to actually call
14980 # tputs in the test program, due to portability hassles. When
14981 # cross-compiling, assume the test program will run if it links.
14983 if test "${opsys}" = "mingw32"; then
14984 msg
='none required'
14986 # Maybe curses should be tried earlier?
14987 # See http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9736#35
14988 for tputs_library
in '' tinfo ncurses terminfo termcap curses
; do
14990 if test -z "$tputs_library"; then
14992 msg
='none required'
14994 LIBS_TERMCAP
=-l$tputs_library
14996 LIBS
="$LIBS_TERMCAP $LIBS"
14998 if test "$cross_compiling" = yes; then :
14999 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15000 /* end confdefs.h. */
15002 extern void tputs (const char *, int, int (*)(int));
15003 int main (int argc, char **argv)
15006 tputs (argv[0], 0, 0);
15011 if ac_fn_c_try_link
"$LINENO"; then :
15016 rm -f core conftest.err conftest.
$ac_objext \
15017 conftest
$ac_exeext conftest.
$ac_ext
15019 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15020 /* end confdefs.h. */
15022 extern void tputs (const char *, int, int (*)(int));
15023 int main (int argc, char **argv)
15026 tputs (argv[0], 0, 0);
15031 if ac_fn_c_try_run
"$LINENO"; then :
15036 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15037 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15041 if test "X$msg" != Xno
; then
15046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5
15047 $as_echo "$msg" >&6; }
15048 if test "X$msg" = Xno
; then
15049 as_fn_error
"The required function \`tputs' was not found in any library.
15050 The following libraries were tried (in order):
15051 libtinfo, libncurses, libterminfo, libtermcap, libcurses
15052 Please try installing whichever of these libraries is most appropriate
15053 for your system, together with its header files.
15054 For example, a libncurses-dev(el) or similar package." "$LINENO" 5
15057 ## Use termcap instead of terminfo?
15058 ## Only true for: freebsd < 40000, ms-w32, msdos, netbsd < 599002500.
15060 ## FIXME? In the cases below where we unconditionally set
15061 ## LIBS_TERMCAP="-lncurses", this overrides LIBS_TERMCAP = -ltinfo,
15062 ## if that was found above to have tputs.
15063 ## Should we use the gnu* logic everywhere?
15065 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
15066 ## The ncurses library has been moved out of the System framework in
15067 ## Mac OS X 10.2. So if configure detects it, set the command-line
15068 ## option to use it.
15069 darwin
) LIBS_TERMCAP
="-lncurses" ;;
15071 gnu
*) test -z "$LIBS_TERMCAP" && LIBS_TERMCAP
="-lncurses" ;;
15074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
15075 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
15076 if test "${emacs_cv_freebsd_terminfo+set}" = set; then :
15077 $as_echo_n "(cached) " >&6
15079 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15080 /* end confdefs.h. */
15081 #include <osreldate.h>
15085 #if __FreeBSD_version < 400000
15093 if ac_fn_c_try_link
"$LINENO"; then :
15094 emacs_cv_freebsd_terminfo
=yes
15096 emacs_cv_freebsd_terminfo
=no
15098 rm -f core conftest.err conftest.
$ac_objext \
15099 conftest
$ac_exeext conftest.
$ac_ext
15103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
15104 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
15106 if test $emacs_cv_freebsd_terminfo = yes; then
15107 LIBS_TERMCAP
="-lncurses"
15110 LIBS_TERMCAP
="-ltermcap"
15120 if test "x$LIBS_TERMCAP" != "x-lterminfo"; then
15122 LIBS_TERMCAP
="-ltermcap"
15126 openbsd | dragonfly
) LIBS_TERMCAP
="-lncurses" ;;
15128 ## hpux: Make sure we get select from libc rather than from libcurses
15129 ## because libcurses on HPUX 10.10 has a broken version of select.
15130 ## We used to use -lc -lcurses, but this may be cleaner.
15131 ## FIXME? But TERMINFO = yes on hpux (it used to be explicitly
15132 # set that way, now it uses the default). Isn't this a contradiction?
15133 hpux
*) LIBS_TERMCAP
="-ltermcap" ;;
15137 TERMCAP_OBJ
=tparam.o
15138 if test $TERMINFO = yes; then
15140 $as_echo "#define TERMINFO 1" >>confdefs.h
15142 TERMCAP_OBJ
=terminfo.o
15144 if test "X$LIBS_TERMCAP" = "X-lncurses"; then
15146 $as_echo "#define USE_NCURSES 1" >>confdefs.h
15153 # Do we have res_init, for detecting changes in /etc/resolv.conf?
15154 # On Darwin, res_init appears not to be useful: see bug#562 and
15155 # http://lists.gnu.org/archive/html/emacs-devel/2007-11/msg01467.html
15158 if test $opsys != darwin
; then
15160 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15161 /* end confdefs.h. */
15162 #include <netinet/in.h>
15163 #include <arpa/nameser.h>
15164 #include <resolv.h>
15173 if ac_fn_c_try_link
"$LINENO"; then :
15178 rm -f core conftest.err conftest.
$ac_objext \
15179 conftest
$ac_exeext conftest.
$ac_ext
15180 if test "$have_res_init" = no
; then
15182 LIBS
="$LIBS -lresolv"
15183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
15184 $as_echo_n "checking for res_init with -lresolv... " >&6; }
15185 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15186 /* end confdefs.h. */
15187 #include <netinet/in.h>
15188 #include <arpa/nameser.h>
15189 #include <resolv.h>
15198 if ac_fn_c_try_link
"$LINENO"; then :
15203 rm -f core conftest.err conftest.
$ac_objext \
15204 conftest
$ac_exeext conftest.
$ac_ext
15205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
15206 $as_echo "$have_res_init" >&6; }
15207 if test "$have_res_init" = yes ; then
15213 if test "$have_res_init" = yes; then
15215 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
15219 # Do we need the Hesiod library to provide the support routines?
15221 if test "$with_hesiod" != no
; then
15222 # Don't set $LIBS here -- see comments above. FIXME which comments?
15223 ac_fn_c_check_func
"$LINENO" "res_send" "ac_cv_func_res_send"
15224 if test "x$ac_cv_func_res_send" = x
""yes; then :
15227 ac_fn_c_check_func
"$LINENO" "__res_send" "ac_cv_func___res_send"
15228 if test "x$ac_cv_func___res_send" = x
""yes; then :
15231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
15232 $as_echo_n "checking for res_send in -lresolv... " >&6; }
15233 if test "${ac_cv_lib_resolv_res_send+set}" = set; then :
15234 $as_echo_n "(cached) " >&6
15236 ac_check_lib_save_LIBS
=$LIBS
15237 LIBS
="-lresolv $LIBS"
15238 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15239 /* end confdefs.h. */
15241 /* Override any GCC internal prototype to avoid an error.
15242 Use char because int might match the return type of a GCC
15243 builtin and then its argument prototype would still apply. */
15251 return res_send ();
15256 if ac_fn_c_try_link
"$LINENO"; then :
15257 ac_cv_lib_resolv_res_send
=yes
15259 ac_cv_lib_resolv_res_send
=no
15261 rm -f core conftest.err conftest.
$ac_objext \
15262 conftest
$ac_exeext conftest.
$ac_ext
15263 LIBS
=$ac_check_lib_save_LIBS
15265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
15266 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
15267 if test "x$ac_cv_lib_resolv_res_send" = x
""yes; then :
15270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
15271 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
15272 if test "${ac_cv_lib_resolv___res_send+set}" = set; then :
15273 $as_echo_n "(cached) " >&6
15275 ac_check_lib_save_LIBS
=$LIBS
15276 LIBS
="-lresolv $LIBS"
15277 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15278 /* end confdefs.h. */
15280 /* Override any GCC internal prototype to avoid an error.
15281 Use char because int might match the return type of a GCC
15282 builtin and then its argument prototype would still apply. */
15286 char __res_send ();
15290 return __res_send ();
15295 if ac_fn_c_try_link
"$LINENO"; then :
15296 ac_cv_lib_resolv___res_send
=yes
15298 ac_cv_lib_resolv___res_send
=no
15300 rm -f core conftest.err conftest.
$ac_objext \
15301 conftest
$ac_exeext conftest.
$ac_ext
15302 LIBS
=$ac_check_lib_save_LIBS
15304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
15305 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
15306 if test "x$ac_cv_lib_resolv___res_send" = x
""yes; then :
15316 if test "$resolv" = yes ; then
15321 ac_fn_c_check_func
"$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
15322 if test "x$ac_cv_func_hes_getmailhost" = x
""yes; then :
15325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
15326 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
15327 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then :
15328 $as_echo_n "(cached) " >&6
15330 ac_check_lib_save_LIBS
=$LIBS
15331 LIBS
="-lhesiod $RESOLVLIB $LIBS"
15332 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15333 /* end confdefs.h. */
15335 /* Override any GCC internal prototype to avoid an error.
15336 Use char because int might match the return type of a GCC
15337 builtin and then its argument prototype would still apply. */
15341 char hes_getmailhost ();
15345 return hes_getmailhost ();
15350 if ac_fn_c_try_link
"$LINENO"; then :
15351 ac_cv_lib_hesiod_hes_getmailhost
=yes
15353 ac_cv_lib_hesiod_hes_getmailhost
=no
15355 rm -f core conftest.err conftest.
$ac_objext \
15356 conftest
$ac_exeext conftest.
$ac_ext
15357 LIBS
=$ac_check_lib_save_LIBS
15359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
15360 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
15361 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x
""yes; then :
15370 if test x
"$hesiod" = xyes
; then
15376 # Do we need libresolv (due to res_init or Hesiod)?
15377 if test "$resolv" = yes && test $opsys != darwin
; then
15384 # These tell us which Kerberos-related libraries to use.
15391 if test "${with_kerberos}" != no
; then
15392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
15393 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
15394 if test "${ac_cv_lib_com_err_com_err+set}" = set; then :
15395 $as_echo_n "(cached) " >&6
15397 ac_check_lib_save_LIBS
=$LIBS
15398 LIBS
="-lcom_err $LIBS"
15399 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15400 /* end confdefs.h. */
15402 /* Override any GCC internal prototype to avoid an error.
15403 Use char because int might match the return type of a GCC
15404 builtin and then its argument prototype would still apply. */
15417 if ac_fn_c_try_link
"$LINENO"; then :
15418 ac_cv_lib_com_err_com_err
=yes
15420 ac_cv_lib_com_err_com_err
=no
15422 rm -f core conftest.err conftest.
$ac_objext \
15423 conftest
$ac_exeext conftest.
$ac_ext
15424 LIBS
=$ac_check_lib_save_LIBS
15426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
15427 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
15428 if test "x$ac_cv_lib_com_err_com_err" = x
""yes; then :
15434 if test $have_com_err = yes; then
15435 COM_ERRLIB
=-lcom_err
15436 LIBS
="$COM_ERRLIB $LIBS"
15438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
15439 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
15440 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then :
15441 $as_echo_n "(cached) " >&6
15443 ac_check_lib_save_LIBS
=$LIBS
15444 LIBS
="-lcrypto $LIBS"
15445 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15446 /* end confdefs.h. */
15448 /* Override any GCC internal prototype to avoid an error.
15449 Use char because int might match the return type of a GCC
15450 builtin and then its argument prototype would still apply. */
15454 char mit_des_cbc_encrypt ();
15458 return mit_des_cbc_encrypt ();
15463 if ac_fn_c_try_link
"$LINENO"; then :
15464 ac_cv_lib_crypto_mit_des_cbc_encrypt
=yes
15466 ac_cv_lib_crypto_mit_des_cbc_encrypt
=no
15468 rm -f core conftest.err conftest.
$ac_objext \
15469 conftest
$ac_exeext conftest.
$ac_ext
15470 LIBS
=$ac_check_lib_save_LIBS
15472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
15473 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
15474 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x
""yes; then :
15480 if test $have_crypto = yes; then
15482 LIBS
="$CRYPTOLIB $LIBS"
15484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
15485 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
15486 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then :
15487 $as_echo_n "(cached) " >&6
15489 ac_check_lib_save_LIBS
=$LIBS
15490 LIBS
="-lk5crypto $LIBS"
15491 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15492 /* end confdefs.h. */
15494 /* Override any GCC internal prototype to avoid an error.
15495 Use char because int might match the return type of a GCC
15496 builtin and then its argument prototype would still apply. */
15500 char mit_des_cbc_encrypt ();
15504 return mit_des_cbc_encrypt ();
15509 if ac_fn_c_try_link
"$LINENO"; then :
15510 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=yes
15512 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=no
15514 rm -f core conftest.err conftest.
$ac_objext \
15515 conftest
$ac_exeext conftest.
$ac_ext
15516 LIBS
=$ac_check_lib_save_LIBS
15518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
15519 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
15520 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x
""yes; then :
15526 if test $have_k5crypto = yes; then
15527 CRYPTOLIB
=-lk5crypto
15528 LIBS
="$CRYPTOLIB $LIBS"
15530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
15531 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
15532 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then :
15533 $as_echo_n "(cached) " >&6
15535 ac_check_lib_save_LIBS
=$LIBS
15536 LIBS
="-lkrb5 $LIBS"
15537 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15538 /* end confdefs.h. */
15540 /* Override any GCC internal prototype to avoid an error.
15541 Use char because int might match the return type of a GCC
15542 builtin and then its argument prototype would still apply. */
15546 char krb5_init_context ();
15550 return krb5_init_context ();
15555 if ac_fn_c_try_link
"$LINENO"; then :
15556 ac_cv_lib_krb5_krb5_init_context
=yes
15558 ac_cv_lib_krb5_krb5_init_context
=no
15560 rm -f core conftest.err conftest.
$ac_objext \
15561 conftest
$ac_exeext conftest.
$ac_ext
15562 LIBS
=$ac_check_lib_save_LIBS
15564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
15565 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
15566 if test "x$ac_cv_lib_krb5_krb5_init_context" = x
""yes; then :
15572 if test $have_krb5=yes; then
15574 LIBS
="$KRB5LIB $LIBS"
15576 if test "${with_kerberos5}" = no
; then
15577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
15578 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
15579 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
15580 $as_echo_n "(cached) " >&6
15582 ac_check_lib_save_LIBS
=$LIBS
15583 LIBS
="-ldes425 $LIBS"
15584 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15585 /* end confdefs.h. */
15587 /* Override any GCC internal prototype to avoid an error.
15588 Use char because int might match the return type of a GCC
15589 builtin and then its argument prototype would still apply. */
15593 char des_cbc_encrypt ();
15597 return des_cbc_encrypt ();
15602 if ac_fn_c_try_link
"$LINENO"; then :
15603 ac_cv_lib_des425_des_cbc_encrypt
=yes
15605 ac_cv_lib_des425_des_cbc_encrypt
=no
15607 rm -f core conftest.err conftest.
$ac_objext \
15608 conftest
$ac_exeext conftest.
$ac_ext
15609 LIBS
=$ac_check_lib_save_LIBS
15611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
15612 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
15613 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x
""yes; then :
15619 if test $have_des425 = yes; then
15621 LIBS
="$DESLIB $LIBS"
15623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
15624 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
15625 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
15626 $as_echo_n "(cached) " >&6
15628 ac_check_lib_save_LIBS
=$LIBS
15630 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15631 /* end confdefs.h. */
15633 /* Override any GCC internal prototype to avoid an error.
15634 Use char because int might match the return type of a GCC
15635 builtin and then its argument prototype would still apply. */
15639 char des_cbc_encrypt ();
15643 return des_cbc_encrypt ();
15648 if ac_fn_c_try_link
"$LINENO"; then :
15649 ac_cv_lib_des_des_cbc_encrypt
=yes
15651 ac_cv_lib_des_des_cbc_encrypt
=no
15653 rm -f core conftest.err conftest.
$ac_objext \
15654 conftest
$ac_exeext conftest.
$ac_ext
15655 LIBS
=$ac_check_lib_save_LIBS
15657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
15658 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
15659 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x
""yes; then :
15665 if test $have_des = yes; then
15667 LIBS
="$DESLIB $LIBS"
15670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
15671 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
15672 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then :
15673 $as_echo_n "(cached) " >&6
15675 ac_check_lib_save_LIBS
=$LIBS
15676 LIBS
="-lkrb4 $LIBS"
15677 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15678 /* end confdefs.h. */
15680 /* Override any GCC internal prototype to avoid an error.
15681 Use char because int might match the return type of a GCC
15682 builtin and then its argument prototype would still apply. */
15686 char krb_get_cred ();
15690 return krb_get_cred ();
15695 if ac_fn_c_try_link
"$LINENO"; then :
15696 ac_cv_lib_krb4_krb_get_cred
=yes
15698 ac_cv_lib_krb4_krb_get_cred
=no
15700 rm -f core conftest.err conftest.
$ac_objext \
15701 conftest
$ac_exeext conftest.
$ac_ext
15702 LIBS
=$ac_check_lib_save_LIBS
15704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
15705 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
15706 if test "x$ac_cv_lib_krb4_krb_get_cred" = x
""yes; then :
15712 if test $have_krb4 = yes; then
15714 LIBS
="$KRB4LIB $LIBS"
15716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
15717 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
15718 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then :
15719 $as_echo_n "(cached) " >&6
15721 ac_check_lib_save_LIBS
=$LIBS
15723 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15724 /* end confdefs.h. */
15726 /* Override any GCC internal prototype to avoid an error.
15727 Use char because int might match the return type of a GCC
15728 builtin and then its argument prototype would still apply. */
15732 char krb_get_cred ();
15736 return krb_get_cred ();
15741 if ac_fn_c_try_link
"$LINENO"; then :
15742 ac_cv_lib_krb_krb_get_cred
=yes
15744 ac_cv_lib_krb_krb_get_cred
=no
15746 rm -f core conftest.err conftest.
$ac_objext \
15747 conftest
$ac_exeext conftest.
$ac_ext
15748 LIBS
=$ac_check_lib_save_LIBS
15750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
15751 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
15752 if test "x$ac_cv_lib_krb_krb_get_cred" = x
""yes; then :
15758 if test $have_krb = yes; then
15760 LIBS
="$KRB4LIB $LIBS"
15765 if test "${with_kerberos5}" != no
; then
15766 for ac_header
in krb5.h
15768 ac_fn_c_check_header_mongrel
"$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
15769 if test "x$ac_cv_header_krb5_h" = x
""yes; then :
15770 cat >>confdefs.h
<<_ACEOF
15771 #define HAVE_KRB5_H 1
15773 ac_fn_c_check_member
"$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
15775 if test "x$ac_cv_member_krb5_error_text" = x
""yes; then :
15777 cat >>confdefs.h
<<_ACEOF
15778 #define HAVE_KRB5_ERROR_TEXT 1
15783 ac_fn_c_check_member
"$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
15785 if test "x$ac_cv_member_krb5_error_e_text" = x
""yes; then :
15787 cat >>confdefs.h
<<_ACEOF
15788 #define HAVE_KRB5_ERROR_E_TEXT 1
15799 for ac_header
in krb.h
15801 ac_fn_c_check_header_mongrel
"$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
15802 if test "x$ac_cv_header_krb_h" = x
""yes; then :
15803 cat >>confdefs.h
<<_ACEOF
15804 #define HAVE_KRB_H 1
15808 for ac_header
in kerberosIV
/krb.h
15810 ac_fn_c_check_header_mongrel
"$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
15811 if test "x$ac_cv_header_kerberosIV_krb_h" = x
""yes; then :
15812 cat >>confdefs.h
<<_ACEOF
15813 #define HAVE_KERBEROSIV_KRB_H 1
15817 for ac_header
in kerberos
/krb.h
15819 ac_fn_c_check_header_mongrel
"$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
15820 if test "x$ac_cv_header_kerberos_krb_h" = x
""yes; then :
15821 cat >>confdefs.h
<<_ACEOF
15822 #define HAVE_KERBEROS_KRB_H 1
15838 for ac_header
in com_err.h
15840 ac_fn_c_check_header_mongrel
"$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
15841 if test "x$ac_cv_header_com_err_h" = x
""yes; then :
15842 cat >>confdefs.h
<<_ACEOF
15843 #define HAVE_COM_ERR_H 1
15861 for ac_func
in $ac_func_list
15863 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15864 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
15865 eval as_val
=\$
$as_ac_var
15866 if test "x$as_val" = x
""yes; then :
15867 cat >>confdefs.h
<<_ACEOF
15868 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
15878 $as_echo_n "checking whether localtime caches TZ... " >&6; }
15879 if test "${emacs_cv_localtime_cache+set}" = set; then :
15880 $as_echo_n "(cached) " >&6
15882 if test x
$ac_cv_func_tzset = xyes
; then
15883 if test "$cross_compiling" = yes; then :
15884 # If we have tzset, assume the worst when cross-compiling.
15885 emacs_cv_localtime_cache
=yes
15887 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15888 /* end confdefs.h. */
15890 char TZ_GMT0[] = "TZ=GMT0";
15891 char TZ_PST8[] = "TZ=PST8";
15894 time_t now = time ((time_t *) 0);
15895 int hour_GMT0, hour_unset;
15896 if (putenv (TZ_GMT0) != 0)
15898 hour_GMT0 = localtime (&now)->tm_hour;
15900 hour_unset = localtime (&now)->tm_hour;
15901 if (putenv (TZ_PST8) != 0)
15903 if (localtime (&now)->tm_hour == hour_GMT0)
15906 if (localtime (&now)->tm_hour != hour_unset)
15911 if ac_fn_c_try_run
"$LINENO"; then :
15912 emacs_cv_localtime_cache
=no
15914 emacs_cv_localtime_cache
=yes
15916 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15917 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15921 # If we lack tzset, report that localtime does not cache TZ,
15922 # since we can't invalidate the cache if we don't have tzset.
15923 emacs_cv_localtime_cache
=no
15926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
15927 $as_echo "$emacs_cv_localtime_cache" >&6; }
15928 if test $emacs_cv_localtime_cache = yes; then
15930 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
15935 ac_fn_c_check_func
"$LINENO" "socket" "ac_cv_func_socket"
15936 if test "x$ac_cv_func_socket" = x
""yes; then :
15942 if test $ok_so_far = yes; then
15943 ac_fn_c_check_header_mongrel
"$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
15944 if test "x$ac_cv_header_netinet_in_h" = x
""yes; then :
15952 if test $ok_so_far = yes; then
15953 ac_fn_c_check_header_mongrel
"$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
15954 if test "x$ac_cv_header_arpa_inet_h" = x
""yes; then :
15962 if test $ok_so_far = yes; then
15964 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
15969 *-solaris2.4 |
*-solaris2.4.
*)
15970 : ${ac_cv_func_vfork_works=no};;
15973 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
15974 if test "x$ac_cv_type_pid_t" = x
""yes; then :
15978 cat >>confdefs.h
<<_ACEOF
15984 for ac_header
in vfork.h
15986 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
15987 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
15988 cat >>confdefs.h
<<_ACEOF
15989 #define HAVE_VFORK_H 1
15996 for ac_func
in fork vfork
15998 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15999 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
16000 eval as_val
=\$
$as_ac_var
16001 if test "x$as_val" = x
""yes; then :
16002 cat >>confdefs.h
<<_ACEOF
16003 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16009 if test "x$ac_cv_func_fork" = xyes
; then
16010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
16011 $as_echo_n "checking for working fork... " >&6; }
16012 if test "${ac_cv_func_fork_works+set}" = set; then :
16013 $as_echo_n "(cached) " >&6
16015 if test "$cross_compiling" = yes; then :
16016 ac_cv_func_fork_works
=cross
16018 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16019 /* end confdefs.h. */
16020 $ac_includes_default
16025 /* By Ruediger Kuhlmann. */
16026 return fork () < 0;
16032 if ac_fn_c_try_run
"$LINENO"; then :
16033 ac_cv_func_fork_works
=yes
16035 ac_cv_func_fork_works
=no
16037 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16038 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
16043 $as_echo "$ac_cv_func_fork_works" >&6; }
16046 ac_cv_func_fork_works
=$ac_cv_func_fork
16048 if test "x$ac_cv_func_fork_works" = xcross
; then
16050 *-*-amigaos* |
*-*-msdosdjgpp*)
16051 # Override, as these systems have only a dummy fork() stub
16052 ac_cv_func_fork_works
=no
16055 ac_cv_func_fork_works
=yes
16058 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
16059 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
16061 ac_cv_func_vfork_works
=$ac_cv_func_vfork
16062 if test "x$ac_cv_func_vfork" = xyes
; then
16063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
16064 $as_echo_n "checking for working vfork... " >&6; }
16065 if test "${ac_cv_func_vfork_works+set}" = set; then :
16066 $as_echo_n "(cached) " >&6
16068 if test "$cross_compiling" = yes; then :
16069 ac_cv_func_vfork_works
=cross
16071 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16072 /* end confdefs.h. */
16073 /* Thanks to Paul Eggert for this test. */
16074 $ac_includes_default
16075 #include <sys/wait.h>
16076 #ifdef HAVE_VFORK_H
16077 # include <vfork.h>
16079 /* On some sparc systems, changes by the child to local and incoming
16080 argument registers are propagated back to the parent. The compiler
16081 is told about this with #include <vfork.h>, but some compilers
16082 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
16083 static variable whose address is put into a register that is
16084 clobbered by the vfork. */
16087 sparc_address_test (int arg)
16089 sparc_address_test (arg) int arg;
16092 static pid_t child;
16110 pid_t parent = getpid ();
16113 sparc_address_test (0);
16118 /* Here is another test for sparc vfork register problems. This
16119 test uses lots of local variables, at least as many local
16120 variables as main has allocated so far including compiler
16121 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
16122 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
16123 reuse the register of parent for one of the local variables,
16124 since it will think that parent can't possibly be used any more
16125 in this routine. Assigning to the local variable will thus
16126 munge parent in the parent process. */
16128 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
16129 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
16130 /* Convince the compiler that p..p7 are live; otherwise, it might
16131 use the same hardware register for all 8 local variables. */
16132 if (p != p1 || p != p2 || p != p3 || p != p4
16133 || p != p5 || p != p6 || p != p7)
16136 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
16137 from child file descriptors. If the child closes a descriptor
16138 before it execs or exits, this munges the parent's descriptor
16139 as well. Test for this by closing stdout in the child. */
16140 _exit(close(fileno(stdout)) != 0);
16145 while (wait(&status) != child)
16148 /* Was there some problem with vforking? */
16151 /* Did the child fail? (This shouldn't happen.) */
16154 /* Did the vfork/compiler bug occur? */
16155 || parent != getpid()
16157 /* Did the file descriptor bug occur? */
16158 || fstat(fileno(stdout), &st) != 0
16163 if ac_fn_c_try_run
"$LINENO"; then :
16164 ac_cv_func_vfork_works
=yes
16166 ac_cv_func_vfork_works
=no
16168 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16169 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
16174 $as_echo "$ac_cv_func_vfork_works" >&6; }
16177 if test "x$ac_cv_func_fork_works" = xcross
; then
16178 ac_cv_func_vfork_works
=$ac_cv_func_vfork
16179 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
16180 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
16183 if test "x$ac_cv_func_vfork_works" = xyes
; then
16185 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
16189 $as_echo "#define vfork fork" >>confdefs.h
16192 if test "x$ac_cv_func_fork_works" = xyes
; then
16194 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
16199 for ac_func
in snprintf
16201 ac_fn_c_check_func
"$LINENO" "snprintf" "ac_cv_func_snprintf"
16202 if test "x$ac_cv_func_snprintf" = x
""yes; then :
16203 cat >>confdefs.h
<<_ACEOF
16204 #define HAVE_SNPRINTF 1
16212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GLib is linked in" >&5
16213 $as_echo_n "checking whether GLib is linked in... " >&6; }
16214 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16215 /* end confdefs.h. */
16221 g_print ("Hello world");
16226 if ac_fn_c_try_link
"$LINENO"; then :
16231 rm -f core conftest.err conftest.
$ac_objext \
16232 conftest
$ac_exeext conftest.
$ac_ext
16233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $links_glib" >&5
16234 $as_echo "$links_glib" >&6; }
16235 if test "${links_glib}" = "yes"; then
16237 $as_echo "#define HAVE_GLIB 1" >>confdefs.h
16239 if test "$HAVE_NS" = no
;then
16240 XGSELOBJ
=xgselect.o
16245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
16246 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
16247 if test "${emacs_cv_langinfo_codeset+set}" = set; then :
16248 $as_echo_n "(cached) " >&6
16250 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16251 /* end confdefs.h. */
16252 #include <langinfo.h>
16256 char* cs = nl_langinfo(CODESET);
16261 if ac_fn_c_try_link
"$LINENO"; then :
16262 emacs_cv_langinfo_codeset
=yes
16264 emacs_cv_langinfo_codeset
=no
16266 rm -f core conftest.err conftest.
$ac_objext \
16267 conftest
$ac_exeext conftest.
$ac_ext
16270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
16271 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
16272 if test $emacs_cv_langinfo_codeset = yes; then
16274 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
16278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
16279 $as_echo_n "checking for mbstate_t... " >&6; }
16280 if test "${ac_cv_type_mbstate_t+set}" = set; then :
16281 $as_echo_n "(cached) " >&6
16283 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16284 /* end confdefs.h. */
16285 $ac_includes_default
16286 # include <wchar.h>
16290 mbstate_t x; return sizeof x;
16295 if ac_fn_c_try_compile
"$LINENO"; then :
16296 ac_cv_type_mbstate_t
=yes
16298 ac_cv_type_mbstate_t
=no
16300 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
16303 $as_echo "$ac_cv_type_mbstate_t" >&6; }
16304 if test $ac_cv_type_mbstate_t = yes; then
16306 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
16310 $as_echo "#define mbstate_t int" >>confdefs.h
16314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
16315 $as_echo_n "checking for C restricted array declarations... " >&6; }
16316 if test "${emacs_cv_c_restrict_arr+set}" = set; then :
16317 $as_echo_n "(cached) " >&6
16319 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16320 /* end confdefs.h. */
16321 void fred (int x[__restrict]);
16330 if ac_fn_c_try_compile
"$LINENO"; then :
16331 emacs_cv_c_restrict_arr
=yes
16333 emacs_cv_c_restrict_arr
=no
16335 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
16338 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
16339 if test "$emacs_cv_c_restrict_arr" = yes; then
16341 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
16346 if test "${opsys}" != "mingw32"; then
16348 $as_echo "#define AMPERSAND_FULL_NAME 1" >>confdefs.h
16353 $as_echo "#define CLASH_DETECTION 1" >>confdefs.h
16356 ## Note: PTYs are broken on darwin <6. Use at your own risk.
16357 if test "${opsys}" != "mingw32"; then
16359 $as_echo "#define HAVE_PTYS 1" >>confdefs.h
16364 $as_echo "#define HAVE_SOCKETS 1" >>confdefs.h
16370 if test "${opsys}" = "mingw32"; then
16371 $as_echo "#define NULL_DEVICE \"NUL:\"" >>confdefs.h
16374 $as_echo "#define NULL_DEVICE \"/dev/null\"" >>confdefs.h
16379 if test "${opsys}" = "mingw32"; then
16380 $as_echo "#define SEPCHAR ';'" >>confdefs.h
16383 $as_echo "#define SEPCHAR ':'" >>confdefs.h
16388 $as_echo "#define subprocesses 1" >>confdefs.h
16392 $as_echo "#define USER_FULL_NAME pw->pw_gecos" >>confdefs.h
16397 $as_echo "#define DIRECTORY_SEP '/'" >>confdefs.h
16400 if test "${opsys}" = "mingw32"; then
16402 $as_echo "#define IS_DEVICE_SEP(_c_) ((_c_) == ':')" >>confdefs.h
16406 $as_echo "#define IS_DIRECTORY_SEP(_c_) ((_c_) == '/' || (_c_) == '\\\\')" >>confdefs.h
16410 $as_echo "#define IS_ANY_SEP(_c_) (IS_DIRECTORY_SEP (_c_) || IS_DEVICE_SEP(_c_))" >>confdefs.h
16414 $as_echo "#define IS_DEVICE_SEP(_c_) 0" >>confdefs.h
16418 $as_echo "#define IS_DIRECTORY_SEP(_c_) ((_c_) == DIRECTORY_SEP)" >>confdefs.h
16422 $as_echo "#define IS_ANY_SEP(_c_) (IS_DIRECTORY_SEP (_c_))" >>confdefs.h
16430 if test x
$ac_cv_lib_Xmu_XmuConvertStandardSelection != xyes
; then
16431 $as_echo "#define NO_EDITRES 1" >>confdefs.h
16437 $as_echo "#define NO_EDITRES 1" >>confdefs.h
16444 irix6-5 | sol2
* | unixware
)
16446 $as_echo "#define NSIG_MINIMUM 32" >>confdefs.h
16451 emacs_broken_SIGIO
=no
16454 hpux
* | irix6-5 | openbsd | sol2
* | unixware | gnu-kfreebsd
)
16455 emacs_broken_SIGIO
=yes
16460 $as_echo "#define BROKEN_GET_CURRENT_DIR_NAME 1" >>confdefs.h
16466 $as_echo "#define BROKEN_PTY_READ_AFTER_EAGAIN 1" >>confdefs.h
16474 $as_echo "#define HAVE_PROCFS 1" >>confdefs.h
16480 darwin | dragonfly | freebsd | netbsd | openbsd
)
16482 $as_echo "#define DONT_REOPEN_PTY 1" >>confdefs.h
16488 netbsd | openbsd
) sound_device
="/dev/audio" ;;
16489 *) sound_device
="/dev/dsp" ;;
16493 cat >>confdefs.h
<<_ACEOF
16494 #define DEFAULT_SOUND_DEVICE "$sound_device"
16500 darwin | gnu-linux | gnu-kfreebsd
)
16502 $as_echo "#define INTERRUPT_INPUT 1" >>confdefs.h
16509 cygwin|gnu|gnu-linux|gnu-kfreebsd|irix6-5|freebsd|netbsd|openbsd
)
16511 $as_echo "#define NARROWPROTO 1" >>confdefs.h
16525 $as_echo "#define PTY_ITERATION int c; for (c = 0; !c ; c++)" >>confdefs.h
16527 $as_echo "#define PTY_NAME_SPRINTF strcpy (pty_name, \"/dev/ptc\");" >>confdefs.h
16529 $as_echo "#define PTY_TTY_NAME_SPRINTF strcpy (pty_name, ttyname (fd));" >>confdefs.h
16534 $as_echo "#define PTY_ITERATION int i; for (i = 0; i < 1; i++)" >>confdefs.h
16536 $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
16538 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
16540 $as_echo "#define PTY_TTY_NAME_SPRINTF /**/" >>confdefs.h
16545 $as_echo "#define PTY_ITERATION int i; for (i = 0; i < 1; i++)" >>confdefs.h
16547 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
16549 $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
16551 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
16553 $as_echo "#define PTY_TTY_NAME_SPRINTF /**/" >>confdefs.h
16558 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
16562 gnu-linux | gnu-kfreebsd | dragonfly | freebsd | netbsd
)
16563 if test "x$ac_cv_func_grantpt" = xyes
; then
16565 $as_echo "#define UNIX98_PTYS 1" >>confdefs.h
16567 $as_echo "#define PTY_ITERATION int i; for (i = 0; i < 1; i++)" >>confdefs.h
16569 $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
16571 if test "x$ac_cv_func_posix_openpt" = xyes
; then
16572 $as_echo "#define PTY_OPEN fd = posix_openpt (O_RDWR | O_CLOEXEC | O_NOCTTY)" >>confdefs.h
16574 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
16576 elif test "x$ac_cv_func_getpt" = xyes
; then
16577 $as_echo "#define PTY_OPEN fd = getpt ()" >>confdefs.h
16579 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
16582 $as_echo "#define PTY_NAME_SPRINTF strcpy (pty_name, \"/dev/ptmx\");" >>confdefs.h
16586 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
16592 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
16594 $as_echo "#define PTY_NAME_SPRINTF sprintf (pty_name, \"/dev/ptym/pty%c%x\", c, i);" >>confdefs.h
16596 $as_echo "#define PTY_TTY_NAME_SPRINTF sprintf (pty_name, \"/dev/pty/tty%c%x\", c, i);" >>confdefs.h
16601 $as_echo "#define PTY_ITERATION /**/" >>confdefs.h
16603 $as_echo "#define FIRST_PTY_LETTER 'q'" >>confdefs.h
16605 $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
16607 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
16609 $as_echo "#define PTY_TTY_NAME_SPRINTF /**/" >>confdefs.h
16614 $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
16619 $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
16627 $as_echo "#define FIRST_PTY_LETTER 'z'" >>confdefs.h
16629 $as_echo "#define PTY_NAME_SPRINTF strcpy (pty_name, \"/dev/ptmx\");" >>confdefs.h
16632 $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
16641 aix4-2 | cygwin | gnu | irix6-5 | dragonfly | freebsd | netbsd | openbsd | darwin
)
16642 $as_echo "#define SIGNALS_VIA_CHARACTERS 1" >>confdefs.h
16646 gnu-linux | gnu-kfreebsd
)
16648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signals via characters" >&5
16649 $as_echo_n "checking for signals via characters... " >&6; }
16650 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16651 /* end confdefs.h. */
16653 #include <linux/version.h>
16654 #if LINUX_VERSION_CODE < 0x20400
16655 # error "Linux version too old"
16666 if ac_fn_c_try_cpp
"$LINENO"; then :
16667 emacs_signals_via_chars
=yes
16669 emacs_signals_via_chars
=no
16671 rm -f conftest.err conftest.
$ac_ext
16673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_signals_via_chars" >&5
16674 $as_echo "$emacs_signals_via_chars" >&6; }
16675 test $emacs_signals_via_chars = yes && $as_echo "#define SIGNALS_VIA_CHARACTERS 1" >>confdefs.h
16685 $as_echo "#define DATA_SEG_BITS 0x20000000" >>confdefs.h
16689 $as_echo "#define DATA_SEG_BITS 0x40000000" >>confdefs.h
16693 $as_echo "#define DATA_SEG_BITS 0x10000000" >>confdefs.h
16702 darwin
) $as_echo "#define TAB3 OXTABS" >>confdefs.h
16705 gnu | dragonfly | freebsd | netbsd | openbsd
)
16707 $as_echo "#define TABDLY OXTABS" >>confdefs.h
16709 $as_echo "#define TAB3 OXTABS" >>confdefs.h
16713 gnu-linux | gnu-kfreebsd
)
16714 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16715 /* end confdefs.h. */
16729 if ac_fn_c_try_cpp
"$LINENO"; then :
16731 $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
16734 rm -f conftest.err conftest.
$ac_ext
16739 $as_echo "#define RUN_TIME_REMAP 1" >>confdefs.h
16749 gnu-linux | gnu-kfreebsd
)
16750 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16751 /* end confdefs.h. */
16753 #if defined __i386__ || defined __sparc__ || defined __mc68000__ \
16754 || defined __alpha__ || defined __mips__ || defined __s390__ \
16755 || defined __arm__ || defined __powerpc__ || defined __amd64__ \
16756 || defined __ia64__ || defined __sh__
16759 # error "setjmp not known to work on this arch"
16770 if ac_fn_c_try_cpp
"$LINENO"; then :
16771 $as_echo "#define GC_SETJMP_WORKS 1" >>confdefs.h
16774 rm -f conftest.err conftest.
$ac_ext
16779 if test x
$GCC = xyes
; then
16780 $as_echo "#define GC_SETJMP_WORKS 1" >>confdefs.h
16784 dragonfly | freebsd | netbsd | openbsd | irix6-5 | sol2
* )
16785 $as_echo "#define GC_SETJMP_WORKS 1" >>confdefs.h
16790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _setjmp" >&5
16791 $as_echo_n "checking for _setjmp... " >&6; }
16792 if test "${emacs_cv_func__setjmp+set}" = set; then :
16793 $as_echo_n "(cached) " >&6
16795 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16796 /* end confdefs.h. */
16797 #include <setjmp.h>
16799 # define _longjmp longjmp
16812 if ac_fn_c_try_link
"$LINENO"; then :
16813 emacs_cv_func__setjmp
=yes
16815 emacs_cv_func__setjmp
=no
16817 rm -f core conftest.err conftest.
$ac_objext \
16818 conftest
$ac_exeext conftest.
$ac_ext
16820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func__setjmp" >&5
16821 $as_echo "$emacs_cv_func__setjmp" >&6; }
16822 if test $emacs_cv_func__setjmp = yes; then
16824 $as_echo "#define HAVE__SETJMP 1" >>confdefs.h
16827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
16828 $as_echo_n "checking for sigsetjmp... " >&6; }
16829 if test "${emacs_cv_func_sigsetjmp+set}" = set; then :
16830 $as_echo_n "(cached) " >&6
16832 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16833 /* end confdefs.h. */
16834 #include <setjmp.h>
16840 if (! sigsetjmp (j, 1))
16846 if ac_fn_c_try_link
"$LINENO"; then :
16847 emacs_cv_func_sigsetjmp
=yes
16849 emacs_cv_func_sigsetjmp
=no
16851 rm -f core conftest.err conftest.
$ac_objext \
16852 conftest
$ac_exeext conftest.
$ac_ext
16854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func_sigsetjmp" >&5
16855 $as_echo "$emacs_cv_func_sigsetjmp" >&6; }
16856 if test $emacs_cv_func_sigsetjmp = yes; then
16858 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
16866 $as_echo "#define TIOCSIGSEND TIOCSIGNAL" >>confdefs.h
16875 $as_echo "#define XOS_NEEDS_TIME_H 1" >>confdefs.h
16888 $as_echo "#define USG /**/" >>confdefs.h
16890 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16891 /* end confdefs.h. */
16894 # error "_AIX not defined"
16905 if ac_fn_c_try_cpp
"$LINENO"; then :
16909 $as_echo "#define _AIX /**/" >>confdefs.h
16912 rm -f conftest.err conftest.
$ac_ext
16917 $as_echo "#define CYGWIN 1" >>confdefs.h
16923 $as_echo "#define DARWIN_OS /**/" >>confdefs.h
16927 gnu-linux | gnu-kfreebsd
)
16928 $as_echo "#define USG /**/" >>confdefs.h
16931 $as_echo "#define GNU_LINUX /**/" >>confdefs.h
16936 $as_echo "#define USG /**/" >>confdefs.h
16939 $as_echo "#define HPUX /**/" >>confdefs.h
16944 $as_echo "#define USG /**/" >>confdefs.h
16946 $as_echo "#define USG5_4 /**/" >>confdefs.h
16949 $as_echo "#define IRIX6_5 /**/" >>confdefs.h
16954 $as_echo "#define DOS_NT /**/" >>confdefs.h
16957 $as_echo "#define WINDOWSNT 1" >>confdefs.h
16959 if test "x$ac_enable_checking" != "x" ; then
16961 $as_echo "#define EMACSDEBUG 1" >>confdefs.h
16967 $as_echo "#define USG /**/" >>confdefs.h
16969 $as_echo "#define USG5_4 /**/" >>confdefs.h
16972 $as_echo "#define SOLARIS2 /**/" >>confdefs.h
16977 $as_echo "#define USG /**/" >>confdefs.h
16979 $as_echo "#define USG5_4 /**/" >>confdefs.h
16984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable FIONREAD" >&5
16985 $as_echo_n "checking for usable FIONREAD... " >&6; }
16986 if test "${emacs_cv_usable_FIONREAD+set}" = set; then :
16987 $as_echo_n "(cached) " >&6
16991 emacs_cv_usable_FIONREAD
=no
16995 emacs_cv_usable_FIONREAD
=yes
16999 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17000 /* end confdefs.h. */
17001 #include <sys/types.h>
17002 #include <sys/ioctl.h>
17004 # include <sys/filio.h>
17010 int foo = ioctl (0, FIONREAD, &foo);
17015 if ac_fn_c_try_compile
"$LINENO"; then :
17016 emacs_cv_usable_FIONREAD
=yes
17018 emacs_cv_usable_FIONREAD
=no
17020 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_usable_FIONREAD" >&5
17025 $as_echo "$emacs_cv_usable_FIONREAD" >&6; }
17026 if test $emacs_cv_usable_FIONREAD = yes; then
17028 $as_echo "#define USABLE_FIONREAD 1" >>confdefs.h
17031 if test $emacs_broken_SIGIO = no
; then
17032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable SIGIO" >&5
17033 $as_echo_n "checking for usable SIGIO... " >&6; }
17034 if test "${emacs_cv_usable_SIGIO+set}" = set; then :
17035 $as_echo_n "(cached) " >&6
17037 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17038 /* end confdefs.h. */
17040 #include <signal.h>
17045 int foo = SIGIO | F_SETFL | FASYNC;
17050 if ac_fn_c_try_compile
"$LINENO"; then :
17051 emacs_cv_usable_SIGIO
=yes
17053 emacs_cv_usable_SIGIO
=no
17055 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_usable_SIGIO" >&5
17058 $as_echo "$emacs_cv_usable_SIGIO" >&6; }
17059 if test $emacs_cv_usable_SIGIO = yes; then
17061 $as_echo "#define USABLE_SIGIO 1" >>confdefs.h
17071 $as_echo "#define G_SLICE_ALWAYS_MALLOC 1" >>confdefs.h
17077 $as_echo "#define USG_SUBTTY_WORKS 1" >>confdefs.h
17083 $as_echo "#define PREFER_VSUSP 1" >>confdefs.h
17089 $as_echo "#define _STRUCTURED_PROC 1" >>confdefs.h
17094 # Set up the CFLAGS for real compilation, so we can substitute it.
17095 CFLAGS
="$REAL_CFLAGS"
17096 CPPFLAGS
="$REAL_CPPFLAGS"
17098 ## Hack to detect a buggy GCC version.
17099 if test "x$GCC" = xyes \
17100 && test x
"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
17101 && test x
"`echo $CFLAGS | grep '\-O[23]'`" != x \
17102 && test x
"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x
; then
17103 as_fn_error
"GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
17106 version
=$PACKAGE_VERSION
17108 copyright
="Copyright (C) 2013 Free Software Foundation, Inc."
17110 cat >>confdefs.h
<<_ACEOF
17111 #define COPYRIGHT "$copyright"
17116 ### Specify what sort of things we'll be editing into Makefile and config.h.
17117 ### Use configuration here uncanonicalized to avoid exceeding size limits.
17143 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
17144 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
17145 ## end of LIBX_BASE, but nothing ever set it.
17150 ## Used in lwlib/Makefile.in.
17159 if test -n "${term_header}"; then
17161 cat >>confdefs.h
<<_ACEOF
17162 #define TERM_HEADER "${term_header}"
17168 cat >>confdefs.h
<<_ACEOF
17169 #define EMACS_CONFIGURATION "${canonical}"
17172 emacs_config_options
=`echo "$emacs_config_options " | sed -e 's/--no-create //' -e 's/--no-recursion //' -e 's/ *$//' -e "s/\"/'/g" -e 's/\\\\/\\\\\\\\/g'`
17174 cat >>confdefs.h
<<_ACEOF
17175 #define EMACS_CONFIG_OPTIONS "${emacs_config_options}"
17182 $as_echo "#define config_opsysfile <ms-w32.h>" >>confdefs.h
17190 if test "${HAVE_X_WINDOWS}" = "yes" ; then
17192 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
17195 XOBJ
="xterm.o xfns.o xselect.o xrdb.o xsmfns.o xsettings.o"
17197 if test "$HAVE_XFT" = "yes"; then
17198 FONT_OBJ
="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
17199 elif test "$HAVE_FREETYPE" = "yes"; then
17200 FONT_OBJ
="$FONT_OBJ ftfont.o ftxfont.o"
17210 if test "${USE_X_TOOLKIT}" != "none" ; then
17211 WIDGET_OBJ
=widget.o
17213 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
17215 if test "${USE_X_TOOLKIT}" = "LUCID"; then
17217 $as_echo "#define USE_LUCID 1" >>confdefs.h
17219 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
17221 $as_echo "#define USE_MOTIF 1" >>confdefs.h
17226 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
17227 MOTIF_LIBW
="$MOTIF_LIBW -lXpm"
17231 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
17232 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
17233 MOTIF_LIBW
="MOTIF_LIBW -lXimp"
17237 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
17238 MOTIF_LIBW
="$MOTIF_LIBW -li18n"
17241 MOTIF_LIBW
="$MOTIF_LIBW $LIBXP"
17247 case "$USE_X_TOOLKIT" in
17248 MOTIF
) TOOLKIT_LIBW
="$MOTIF_LIBW" ;;
17249 LUCID
) TOOLKIT_LIBW
="$LUCID_LIBW" ;;
17250 none
) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW
="$GTK_LIBS" ;;
17254 if test "${opsys}" != "mingw32"; then
17255 if test "$USE_X_TOOLKIT" = "none"; then
17256 LIBXT_OTHER
="\$(LIBXSM)"
17257 OLDXMENU_TARGET
="really-oldXMenu"
17259 LIBXT_OTHER
="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
17260 OLDXMENU_TARGET
="really-lwlib"
17265 ## The X Menu stuff is present in the X10 distribution, but missing
17266 ## from X11. If we have X10, just use the installed library;
17267 ## otherwise, use our own copy.
17268 if test "${HAVE_X11}" = "yes" ; then
17270 $as_echo "#define HAVE_X11 1" >>confdefs.h
17273 if test "$USE_X_TOOLKIT" = "none"; then
17274 OLDXMENU
="\${oldXMenudir}/libXMenu11.a"
17276 OLDXMENU
="\${lwlibdir}/liblw.a"
17278 LIBXMENU
="\$(OLDXMENU)"
17279 LIBX_OTHER
="\$(LIBXT) \$(LIBX_EXTRA)"
17280 OLDXMENU_DEPS
="\${OLDXMENU} ../src/\${OLDXMENU}"
17282 ## For a syntactically valid Makefile; not actually used for anything.
17283 ## See comments in src/Makefile.in.
17285 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
17286 if test "${HAVE_X_WINDOWS}" = "yes"; then
17295 if test "$HAVE_GTK" = "yes" ||
test "$HAVE_MENUS" != "yes"; then
17308 if test "${HAVE_MENUS}" = "yes" ; then
17310 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
17314 if test "${GNU_MALLOC}" = "yes" ; then
17316 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
17321 if test "${REL_ALLOC}" = "yes" ; then
17323 $as_echo "#define REL_ALLOC 1" >>confdefs.h
17326 test "$system_malloc" != "yes" && RALLOC_OBJ
=ralloc.o
17330 if test "$opsys" = "cygwin"; then
17331 CYGWIN_OBJ
="sheap.o cygw32.o"
17332 ## Cygwin differs because of its unexec().
17334 POST_ALLOC_OBJ
=lastfile.o
17335 elif test "$opsys" = "mingw32"; then
17338 POST_ALLOC_OBJ
=lastfile.o
17341 PRE_ALLOC_OBJ
=lastfile.o
17348 # Configure gnulib. Although this does not affect CFLAGS or LIBS permanently.
17349 # it temporarily reverts them to their pre-pkg-config values,
17350 # because gnulib needs to work with both src (which uses the
17351 # pkg-config stuff) and lib-src (which does not). For example, gnulib
17352 # may need to determine whether LIB_CLOCK_GETTIME should contain -lrt,
17353 # and it therefore needs to run in an environment where LIBS does not
17354 # already contain -lrt merely because 'pkg-config --libs' printed '-lrt'
17355 # for some package unrelated to lib-src.
17356 SAVE_CFLAGS
=$CFLAGS
17358 CFLAGS
=$pre_PKG_CONFIG_CFLAGS
17359 LIBS
="$LIB_PTHREAD $pre_PKG_CONFIG_LIBS"
17371 LIBC_FATAL_STDERR_
=1
17372 export LIBC_FATAL_STDERR_
17374 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
17375 # for constant arguments. Useless!
17376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
17377 $as_echo_n "checking for working alloca.h... " >&6; }
17378 if test "${ac_cv_working_alloca_h+set}" = set; then :
17379 $as_echo_n "(cached) " >&6
17381 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17382 /* end confdefs.h. */
17383 #include <alloca.h>
17387 char *p = (char *) alloca (2 * sizeof (int));
17393 if ac_fn_c_try_link
"$LINENO"; then :
17394 ac_cv_working_alloca_h
=yes
17396 ac_cv_working_alloca_h
=no
17398 rm -f core conftest.err conftest.
$ac_objext \
17399 conftest
$ac_exeext conftest.
$ac_ext
17401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
17402 $as_echo "$ac_cv_working_alloca_h" >&6; }
17403 if test $ac_cv_working_alloca_h = yes; then
17405 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
17409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
17410 $as_echo_n "checking for alloca... " >&6; }
17411 if test "${ac_cv_func_alloca_works+set}" = set; then :
17412 $as_echo_n "(cached) " >&6
17414 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17415 /* end confdefs.h. */
17417 # define alloca __builtin_alloca
17420 # include <malloc.h>
17421 # define alloca _alloca
17423 # ifdef HAVE_ALLOCA_H
17424 # include <alloca.h>
17429 # ifndef alloca /* predefined by HP cc +Olibcalls */
17440 char *p = (char *) alloca (1);
17446 if ac_fn_c_try_link
"$LINENO"; then :
17447 ac_cv_func_alloca_works
=yes
17449 ac_cv_func_alloca_works
=no
17451 rm -f core conftest.err conftest.
$ac_objext \
17452 conftest
$ac_exeext conftest.
$ac_ext
17454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
17455 $as_echo "$ac_cv_func_alloca_works" >&6; }
17457 if test $ac_cv_func_alloca_works = yes; then
17459 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
17462 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
17463 # that cause trouble. Some versions do not even contain alloca or
17464 # contain a buggy version. If you still want to use their alloca,
17465 # use ar to extract alloca.o from them instead of compiling alloca.c.
17471 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
17473 $as_echo "#define C_ALLOCA 1" >>confdefs.h
17476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 'alloca.c' needs Cray hooks" >&5
17477 $as_echo_n "checking whether 'alloca.c' needs Cray hooks... " >&6; }
17478 if test "${ac_cv_os_cray+set}" = set; then :
17479 $as_echo_n "(cached) " >&6
17481 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17482 /* end confdefs.h. */
17483 #if defined CRAY && ! defined CRAY2
17490 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17491 $EGREP "webecray" >/dev
/null
2>&1; then :
17499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
17500 $as_echo "$ac_cv_os_cray" >&6; }
17501 if test $ac_cv_os_cray = yes; then
17502 for ac_func
in _getb67 GETB67 getb67
; do
17503 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17504 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
17505 eval as_val
=\$
$as_ac_var
17506 if test "x$as_val" = x
""yes; then :
17508 cat >>confdefs.h
<<_ACEOF
17509 #define CRAY_STACKSEG_END $ac_func
17518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
17519 $as_echo_n "checking stack direction for C alloca... " >&6; }
17520 if test "${ac_cv_c_stack_direction+set}" = set; then :
17521 $as_echo_n "(cached) " >&6
17523 if test "$cross_compiling" = yes; then :
17524 ac_cv_c_stack_direction
=0
17526 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17527 /* end confdefs.h. */
17528 $ac_includes_default
17530 find_stack_direction (int *addr, int depth)
17532 int dir, dummy = 0;
17535 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
17536 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
17537 return dir + dummy;
17541 main (int argc, char **argv)
17543 return find_stack_direction (0, argc + !argv + 20) < 0;
17546 if ac_fn_c_try_run
"$LINENO"; then :
17547 ac_cv_c_stack_direction
=1
17549 ac_cv_c_stack_direction
=-1
17551 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17552 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
17557 $as_echo "$ac_cv_c_stack_direction" >&6; }
17558 cat >>confdefs.h
<<_ACEOF
17559 #define STACK_DIRECTION $ac_cv_c_stack_direction
17568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
17569 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
17570 if test "${ac_cv_c_bigendian+set}" = set; then :
17571 $as_echo_n "(cached) " >&6
17573 ac_cv_c_bigendian
=unknown
17574 # See if we're dealing with a universal compiler.
17575 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17576 /* end confdefs.h. */
17577 #ifndef __APPLE_CC__
17578 not a universal capable compiler
17583 if ac_fn_c_try_compile
"$LINENO"; then :
17585 # Check for potential -arch flags. It is not universal unless
17586 # there are at least two -arch flags with different values.
17589 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
17590 if test -n "$ac_prev"; then
17592 i?
86 | x86_64 | ppc | ppc64
)
17593 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
17596 ac_cv_c_bigendian
=universal
17602 elif test "x$ac_word" = "x-arch"; then
17607 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17608 if test $ac_cv_c_bigendian = unknown
; then
17609 # See if sys/param.h defines the BYTE_ORDER macro.
17610 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17611 /* end confdefs.h. */
17612 #include <sys/types.h>
17613 #include <sys/param.h>
17618 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
17619 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
17621 bogus endian macros
17628 if ac_fn_c_try_compile
"$LINENO"; then :
17629 # It does; now see whether it defined to BIG_ENDIAN or not.
17630 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17631 /* end confdefs.h. */
17632 #include <sys/types.h>
17633 #include <sys/param.h>
17638 #if BYTE_ORDER != BIG_ENDIAN
17646 if ac_fn_c_try_compile
"$LINENO"; then :
17647 ac_cv_c_bigendian
=yes
17649 ac_cv_c_bigendian
=no
17651 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17653 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17655 if test $ac_cv_c_bigendian = unknown
; then
17656 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
17657 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17658 /* end confdefs.h. */
17659 #include <limits.h>
17664 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
17665 bogus endian macros
17672 if ac_fn_c_try_compile
"$LINENO"; then :
17673 # It does; now see whether it defined to _BIG_ENDIAN or not.
17674 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17675 /* end confdefs.h. */
17676 #include <limits.h>
17681 #ifndef _BIG_ENDIAN
17689 if ac_fn_c_try_compile
"$LINENO"; then :
17690 ac_cv_c_bigendian
=yes
17692 ac_cv_c_bigendian
=no
17694 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17696 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17698 if test $ac_cv_c_bigendian = unknown
; then
17699 # Compile a test program.
17700 if test "$cross_compiling" = yes; then :
17701 # Try to guess by grepping values from an object file.
17702 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17703 /* end confdefs.h. */
17704 short int ascii_mm[] =
17705 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
17706 short int ascii_ii[] =
17707 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
17708 int use_ascii (int i) {
17709 return ascii_mm[i] + ascii_ii[i];
17711 short int ebcdic_ii[] =
17712 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
17713 short int ebcdic_mm[] =
17714 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
17715 int use_ebcdic (int i) {
17716 return ebcdic_mm[i] + ebcdic_ii[i];
17723 return use_ascii (foo) == use_ebcdic (foo);
17728 if ac_fn_c_try_compile
"$LINENO"; then :
17729 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
17730 ac_cv_c_bigendian
=yes
17732 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
17733 if test "$ac_cv_c_bigendian" = unknown
; then
17734 ac_cv_c_bigendian
=no
17736 # finding both strings is unlikely to happen, but who knows?
17737 ac_cv_c_bigendian
=unknown
17741 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17743 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17744 /* end confdefs.h. */
17745 $ac_includes_default
17750 /* Are we little or big endian? From Harbison&Steele. */
17754 char c[sizeof (long int)];
17757 return u.c[sizeof (long int) - 1] == 1;
17763 if ac_fn_c_try_run
"$LINENO"; then :
17764 ac_cv_c_bigendian
=no
17766 ac_cv_c_bigendian
=yes
17768 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17769 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
17775 $as_echo "$ac_cv_c_bigendian" >&6; }
17776 case $ac_cv_c_bigendian in #(
17778 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
17784 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
17788 as_fn_error
"unknown endianness
17789 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
17801 GNULIB_EUIDACCESS
=0;
17802 GNULIB_FACCESSAT
=0;
17805 GNULIB_FDATASYNC
=0;
17807 GNULIB_FTRUNCATE
=0;
17809 GNULIB_GETDOMAINNAME
=0;
17810 GNULIB_GETDTABLESIZE
=0;
17811 GNULIB_GETGROUPS
=0;
17812 GNULIB_GETHOSTNAME
=0;
17814 GNULIB_GETLOGIN_R
=0;
17815 GNULIB_GETPAGESIZE
=0;
17816 GNULIB_GETUSERSHELL
=0;
17817 GNULIB_GROUP_MEMBER
=0;
17829 GNULIB_READLINKAT
=0;
17831 GNULIB_SETHOSTNAME
=0;
17834 GNULIB_SYMLINKAT
=0;
17835 GNULIB_TTYNAME_R
=0;
17836 GNULIB_UNISTD_H_NONBLOCKING
=0;
17837 GNULIB_UNISTD_H_SIGPIPE
=0;
17852 HAVE_GETDTABLESIZE
=1;
17854 HAVE_GETHOSTNAME
=1;
17856 HAVE_GETPAGESIZE
=1;
17857 HAVE_GROUP_MEMBER
=1;
17867 HAVE_SETHOSTNAME
=1;
17873 HAVE_DECL_ENVIRON
=1;
17874 HAVE_DECL_FCHDIR
=1;
17875 HAVE_DECL_FDATASYNC
=1;
17876 HAVE_DECL_GETDOMAINNAME
=1;
17877 HAVE_DECL_GETLOGIN_R
=1;
17878 HAVE_DECL_GETPAGESIZE
=1;
17879 HAVE_DECL_GETUSERSHELL
=1;
17880 HAVE_DECL_SETHOSTNAME
=1;
17881 HAVE_DECL_TTYNAME_R
=1;
17883 HAVE_SYS_PARAM_H
=0;
17888 REPLACE_FCHOWNAT
=0;
17889 REPLACE_FTRUNCATE
=0;
17891 REPLACE_GETDOMAINNAME
=0;
17892 REPLACE_GETLOGIN_R
=0;
17893 REPLACE_GETGROUPS
=0;
17894 REPLACE_GETPAGESIZE
=0;
17903 REPLACE_READLINK
=0;
17907 REPLACE_TTYNAME_R
=0;
17909 REPLACE_UNLINKAT
=0;
17912 UNISTD_H_HAVE_WINSOCK2_H
=0;
17913 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
=0;
17919 GNULIB_REWINDDIR
=0;
17922 GNULIB_FDOPENDIR
=0;
17924 GNULIB_ALPHASORT
=0;
17930 HAVE_DECL_FDOPENDIR
=1;
17935 REPLACE_CLOSEDIR
=0;
17937 REPLACE_FDOPENDIR
=0;
17941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
17942 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
17943 if test "${gl_cv_have_include_next+set}" = set; then :
17944 $as_echo_n "(cached) " >&6
17946 rm -rf conftestd1a conftestd1b conftestd2
17947 mkdir conftestd1a conftestd1b conftestd2
17948 cat <<EOF > conftestd1a/conftest.h
17949 #define DEFINED_IN_CONFTESTD1
17950 #include_next <conftest.h>
17951 #ifdef DEFINED_IN_CONFTESTD2
17954 #error "include_next doesn't work"
17957 cat <<EOF > conftestd1b/conftest.h
17958 #define DEFINED_IN_CONFTESTD1
17960 #include_next <conftest.h>
17961 #ifdef DEFINED_IN_CONFTESTD2
17964 #error "include_next doesn't work"
17967 cat <<EOF > conftestd2/conftest.h
17968 #ifndef DEFINED_IN_CONFTESTD1
17969 #error "include_next test doesn't work"
17971 #define DEFINED_IN_CONFTESTD2
17973 gl_save_CPPFLAGS
="$CPPFLAGS"
17974 CPPFLAGS
="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
17975 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17976 /* end confdefs.h. */
17977 #include <conftest.h>
17979 if ac_fn_c_try_compile
"$LINENO"; then :
17980 gl_cv_have_include_next
=yes
17982 CPPFLAGS
="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
17983 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17984 /* end confdefs.h. */
17985 #include <conftest.h>
17987 if ac_fn_c_try_compile
"$LINENO"; then :
17988 gl_cv_have_include_next
=buggy
17990 gl_cv_have_include_next
=no
17992 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17995 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17996 CPPFLAGS
="$gl_save_CPPFLAGS"
17997 rm -rf conftestd1a conftestd1b conftestd2
18000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
18001 $as_echo "$gl_cv_have_include_next" >&6; }
18002 PRAGMA_SYSTEM_HEADER
=
18003 if test $gl_cv_have_include_next = yes; then
18004 INCLUDE_NEXT
=include_next
18005 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include_next
18006 if test -n "$GCC"; then
18007 PRAGMA_SYSTEM_HEADER
='#pragma GCC system_header'
18010 if test $gl_cv_have_include_next = buggy
; then
18011 INCLUDE_NEXT
=include
18012 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include_next
18014 INCLUDE_NEXT
=include
18015 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include
18021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
18022 $as_echo_n "checking whether system header files limit the line length... " >&6; }
18023 if test "${gl_cv_pragma_columns+set}" = set; then :
18024 $as_echo_n "(cached) " >&6
18026 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18027 /* end confdefs.h. */
18034 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18035 $EGREP "choke me" >/dev
/null
2>&1; then :
18036 gl_cv_pragma_columns
=yes
18038 gl_cv_pragma_columns
=no
18044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
18045 $as_echo "$gl_cv_pragma_columns" >&6; }
18046 if test $gl_cv_pragma_columns = yes; then
18047 PRAGMA_COLUMNS
="#pragma COLUMNS 10000"
18056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtold conforms to C99" >&5
18057 $as_echo_n "checking whether strtold conforms to C99... " >&6; }
18058 if test "${gl_cv_func_c99_strtold+set}" = set; then :
18059 $as_echo_n "(cached) " >&6
18061 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18062 /* end confdefs.h. */
18063 /* On HP-UX before 11.23, strtold returns a struct instead of
18064 long double. Reject implementations like that, by requiring
18065 compatibility with the C99 prototype. */
18066 #include <stdlib.h>
18067 static long double (*p) (char const *, char **) = strtold;
18069 test (char const *nptr, char **endptr)
18072 r = strtold (nptr, endptr);
18078 return test ("1.0", NULL) != 1 || p ("1.0", NULL) != 1;
18083 if ac_fn_c_try_link
"$LINENO"; then :
18084 gl_cv_func_c99_strtold
=yes
18086 gl_cv_func_c99_strtold
=no
18088 rm -f core conftest.err conftest.
$ac_objext \
18089 conftest
$ac_exeext conftest.
$ac_ext
18091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_c99_strtold" >&5
18092 $as_echo "$gl_cv_func_c99_strtold" >&6; }
18093 if test $gl_cv_func_c99_strtold = yes; then
18095 $as_echo "#define HAVE_C99_STRTOLD 1" >>confdefs.h
18106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if environ is properly declared" >&5
18107 $as_echo_n "checking if environ is properly declared... " >&6; }
18108 if test "${gt_cv_var_environ_declaration+set}" = set; then :
18109 $as_echo_n "(cached) " >&6
18112 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18113 /* end confdefs.h. */
18115 #include <unistd.h>
18117 /* mingw, BeOS, Haiku declare environ in <stdlib.h>, not in <unistd.h>. */
18118 #include <stdlib.h>
18120 extern struct { int foo; } environ;
18129 if ac_fn_c_try_compile
"$LINENO"; then :
18130 gt_cv_var_environ_declaration
=no
18132 gt_cv_var_environ_declaration
=yes
18134 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_var_environ_declaration" >&5
18138 $as_echo "$gt_cv_var_environ_declaration" >&6; }
18139 if test $gt_cv_var_environ_declaration = yes; then
18141 $as_echo "#define HAVE_ENVIRON_DECL 1" >>confdefs.h
18146 if test $gt_cv_var_environ_declaration != yes; then
18147 HAVE_DECL_ENVIRON
=0
18152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5
18153 $as_echo_n "checking for complete errno.h... " >&6; }
18154 if test "${gl_cv_header_errno_h_complete+set}" = set; then :
18155 $as_echo_n "(cached) " >&6
18158 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18159 /* end confdefs.h. */
18162 #if !defined ETXTBSY
18165 #if !defined ENOMSG
18171 #if !defined ENOLINK
18174 #if !defined EPROTO
18177 #if !defined EMULTIHOP
18180 #if !defined EBADMSG
18183 #if !defined EOVERFLOW
18186 #if !defined ENOTSUP
18189 #if !defined ENETRESET
18192 #if !defined ECONNABORTED
18195 #if !defined ESTALE
18198 #if !defined EDQUOT
18201 #if !defined ECANCELED
18204 #if !defined EOWNERDEAD
18207 #if !defined ENOTRECOVERABLE
18210 #if !defined EILSEQ
18215 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18216 $EGREP "booboo" >/dev
/null
2>&1; then :
18217 gl_cv_header_errno_h_complete
=no
18219 gl_cv_header_errno_h_complete
=yes
18225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5
18226 $as_echo "$gl_cv_header_errno_h_complete" >&6; }
18227 if test $gl_cv_header_errno_h_complete = yes; then
18238 if test $gl_cv_have_include_next = yes; then
18239 gl_cv_next_errno_h
='<'errno.h
'>'
18241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5
18242 $as_echo_n "checking absolute name of <errno.h>... " >&6; }
18243 if test "${gl_cv_next_errno_h+set}" = set; then :
18244 $as_echo_n "(cached) " >&6
18247 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18248 /* end confdefs.h. */
18253 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
18254 *) gl_absname_cpp
="$ac_cpp" ;;
18259 gl_dirsep_regex
='[/\\]'
18262 gl_dirsep_regex
='\/'
18265 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
18267 gl_header_literal_regex
=`echo 'errno.h' \
18268 | sed -e "$gl_make_literal_regex_sed"`
18269 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18270 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18275 gl_cv_next_errno_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18276 sed -n "$gl_absolute_header_sed"`'"'
18280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5
18281 $as_echo "$gl_cv_next_errno_h" >&6; }
18283 NEXT_ERRNO_H
=$gl_cv_next_errno_h
18285 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
18286 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18287 gl_next_as_first_directive
='<'errno.h
'>'
18289 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18290 gl_next_as_first_directive
=$gl_cv_next_errno_h
18292 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
=$gl_next_as_first_directive
18300 if test -n "$ERRNO_H"; then
18301 GL_GENERATE_ERRNO_H_TRUE
=
18302 GL_GENERATE_ERRNO_H_FALSE
='#'
18304 GL_GENERATE_ERRNO_H_TRUE
='#'
18305 GL_GENERATE_ERRNO_H_FALSE
=
18309 if test -n "$ERRNO_H"; then
18310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5
18311 $as_echo_n "checking for EMULTIHOP value... " >&6; }
18312 if test "${gl_cv_header_errno_h_EMULTIHOP+set}" = set; then :
18313 $as_echo_n "(cached) " >&6
18316 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18317 /* end confdefs.h. */
18325 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18326 $EGREP "yes" >/dev
/null
2>&1; then :
18327 gl_cv_header_errno_h_EMULTIHOP
=yes
18329 gl_cv_header_errno_h_EMULTIHOP
=no
18333 if test $gl_cv_header_errno_h_EMULTIHOP = no
; then
18334 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18335 /* end confdefs.h. */
18337 #define _XOPEN_SOURCE_EXTENDED 1
18344 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18345 $EGREP "yes" >/dev
/null
2>&1; then :
18346 gl_cv_header_errno_h_EMULTIHOP
=hidden
18350 if test $gl_cv_header_errno_h_EMULTIHOP = hidden
; then
18351 if ac_fn_c_compute_int
"$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP" "
18352 #define _XOPEN_SOURCE_EXTENDED 1
18354 /* The following two lines are a workaround against an autoconf-2.52 bug. */
18356 #include <stdlib.h>
18365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
18366 $as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
18367 case $gl_cv_header_errno_h_EMULTIHOP in
18369 EMULTIHOP_HIDDEN
=0; EMULTIHOP_VALUE
=
18372 EMULTIHOP_HIDDEN
=1; EMULTIHOP_VALUE
="$gl_cv_header_errno_h_EMULTIHOP"
18380 if test -n "$ERRNO_H"; then
18381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5
18382 $as_echo_n "checking for ENOLINK value... " >&6; }
18383 if test "${gl_cv_header_errno_h_ENOLINK+set}" = set; then :
18384 $as_echo_n "(cached) " >&6
18387 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18388 /* end confdefs.h. */
18396 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18397 $EGREP "yes" >/dev
/null
2>&1; then :
18398 gl_cv_header_errno_h_ENOLINK
=yes
18400 gl_cv_header_errno_h_ENOLINK
=no
18404 if test $gl_cv_header_errno_h_ENOLINK = no
; then
18405 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18406 /* end confdefs.h. */
18408 #define _XOPEN_SOURCE_EXTENDED 1
18415 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18416 $EGREP "yes" >/dev
/null
2>&1; then :
18417 gl_cv_header_errno_h_ENOLINK
=hidden
18421 if test $gl_cv_header_errno_h_ENOLINK = hidden
; then
18422 if ac_fn_c_compute_int
"$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK" "
18423 #define _XOPEN_SOURCE_EXTENDED 1
18425 /* The following two lines are a workaround against an autoconf-2.52 bug. */
18427 #include <stdlib.h>
18436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5
18437 $as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
18438 case $gl_cv_header_errno_h_ENOLINK in
18440 ENOLINK_HIDDEN
=0; ENOLINK_VALUE
=
18443 ENOLINK_HIDDEN
=1; ENOLINK_VALUE
="$gl_cv_header_errno_h_ENOLINK"
18451 if test -n "$ERRNO_H"; then
18452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5
18453 $as_echo_n "checking for EOVERFLOW value... " >&6; }
18454 if test "${gl_cv_header_errno_h_EOVERFLOW+set}" = set; then :
18455 $as_echo_n "(cached) " >&6
18458 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18459 /* end confdefs.h. */
18467 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18468 $EGREP "yes" >/dev
/null
2>&1; then :
18469 gl_cv_header_errno_h_EOVERFLOW
=yes
18471 gl_cv_header_errno_h_EOVERFLOW
=no
18475 if test $gl_cv_header_errno_h_EOVERFLOW = no
; then
18476 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18477 /* end confdefs.h. */
18479 #define _XOPEN_SOURCE_EXTENDED 1
18486 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18487 $EGREP "yes" >/dev
/null
2>&1; then :
18488 gl_cv_header_errno_h_EOVERFLOW
=hidden
18492 if test $gl_cv_header_errno_h_EOVERFLOW = hidden
; then
18493 if ac_fn_c_compute_int
"$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW" "
18494 #define _XOPEN_SOURCE_EXTENDED 1
18496 /* The following two lines are a workaround against an autoconf-2.52 bug. */
18498 #include <stdlib.h>
18507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
18508 $as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
18509 case $gl_cv_header_errno_h_EOVERFLOW in
18511 EOVERFLOW_HIDDEN
=0; EOVERFLOW_VALUE
=
18514 EOVERFLOW_HIDDEN
=1; EOVERFLOW_VALUE
="$gl_cv_header_errno_h_EOVERFLOW"
18531 GNULIB_NONBLOCKING
=0;
18543 ac_fn_c_check_type
"$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
18544 if test "x$ac_cv_type_mode_t" = x
""yes; then :
18548 cat >>confdefs.h
<<_ACEOF
18554 ac_fn_c_check_decl
"$LINENO" "fdatasync" "ac_cv_have_decl_fdatasync" "$ac_includes_default"
18555 if test "x$ac_cv_have_decl_fdatasync" = x
""yes; then :
18561 cat >>confdefs.h
<<_ACEOF
18562 #define HAVE_DECL_FDATASYNC $ac_have_decl
18567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_dm_mode in struct stat" >&5
18568 $as_echo_n "checking for st_dm_mode in struct stat... " >&6; }
18569 if test "${ac_cv_struct_st_dm_mode+set}" = set; then :
18570 $as_echo_n "(cached) " >&6
18572 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18573 /* end confdefs.h. */
18575 #include <sys/types.h>
18576 #include <sys/stat.h>
18580 struct stat s; s.st_dm_mode;
18585 if ac_fn_c_try_compile
"$LINENO"; then :
18586 ac_cv_struct_st_dm_mode
=yes
18588 ac_cv_struct_st_dm_mode
=no
18590 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_st_dm_mode" >&5
18593 $as_echo "$ac_cv_struct_st_dm_mode" >&6; }
18595 if test $ac_cv_struct_st_dm_mode = yes; then
18597 $as_echo "#define HAVE_ST_DM_MODE 1" >>confdefs.h
18602 ac_fn_c_check_decl
"$LINENO" "strmode" "ac_cv_have_decl_strmode" "$ac_includes_default"
18603 if test "x$ac_cv_have_decl_strmode" = x
""yes; then :
18609 cat >>confdefs.h
<<_ACEOF
18610 #define HAVE_DECL_STRMODE $ac_have_decl
18628 GNULIB_UTIMENSAT
=0;
18642 REPLACE_FUTIMENS
=0;
18648 REPLACE_UTIMENSAT
=0;
18651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
18652 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
18653 if test "${gl_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
18654 $as_echo_n "(cached) " >&6
18656 rm -f conftest.sym conftest.
file
18657 echo >conftest.
file
18658 if test "$as_ln_s" = "ln -s" && ln -s conftest.
file conftest.sym
; then
18659 if test "$cross_compiling" = yes; then :
18661 # Guess yes on glibc systems.
18662 *-gnu*) gl_cv_func_lstat_dereferences_slashed_symlink
="guessing yes" ;;
18663 # If we don't know, assume the worst.
18664 *) gl_cv_func_lstat_dereferences_slashed_symlink
="guessing no" ;;
18668 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18669 /* end confdefs.h. */
18670 $ac_includes_default
18675 /* Linux will dereference the symlink and fail, as required by
18676 POSIX. That is better in the sense that it means we will not
18677 have to compile and use the lstat wrapper. */
18678 return lstat ("conftest.sym/", &sbuf) == 0;
18684 if ac_fn_c_try_run
"$LINENO"; then :
18685 gl_cv_func_lstat_dereferences_slashed_symlink
=yes
18687 gl_cv_func_lstat_dereferences_slashed_symlink
=no
18689 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18690 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18694 # If the 'ln -s' command failed, then we probably don't even
18695 # have an lstat function.
18696 gl_cv_func_lstat_dereferences_slashed_symlink
="guessing no"
18698 rm -f conftest.sym conftest.
file
18701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
18702 $as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
18703 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
18706 cat >>confdefs.h
<<_ACEOF
18707 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
18720 GNULIB_CALLOC_POSIX
=0;
18721 GNULIB_CANONICALIZE_FILE_NAME
=0;
18722 GNULIB_GETLOADAVG
=0;
18723 GNULIB_GETSUBOPT
=0;
18725 GNULIB_MALLOC_POSIX
=0;
18729 GNULIB_MKOSTEMPS
=0;
18732 GNULIB_POSIX_OPENPT
=0;
18734 GNULIB_PTSNAME_R
=0;
18738 GNULIB_REALLOC_POSIX
=0;
18741 GNULIB_SECURE_GETENV
=0;
18746 GNULIB_SYSTEM_POSIX
=0;
18752 HAVE_CANONICALIZE_FILE_NAME
=1;
18753 HAVE_DECL_GETLOADAVG
=1;
18761 HAVE_POSIX_OPENPT
=1;
18769 HAVE_SECURE_GETENV
=1;
18771 HAVE_DECL_SETENV
=1;
18775 HAVE_STRUCT_RANDOM_DATA
=1;
18776 HAVE_SYS_LOADAVG_H
=0;
18778 HAVE_DECL_UNSETENV
=1;
18780 REPLACE_CANONICALIZE_FILE_NAME
=0;
18785 REPLACE_PTSNAME_R
=0;
18787 REPLACE_RANDOM_R
=0;
18789 REPLACE_REALPATH
=0;
18792 REPLACE_UNSETENV
=0;
18810 if test $gl_cv_have_include_next = yes; then
18811 gl_cv_next_getopt_h
='<'getopt.h
'>'
18813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
18814 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
18815 if test "${gl_cv_next_getopt_h+set}" = set; then :
18816 $as_echo_n "(cached) " >&6
18819 if test $ac_cv_header_getopt_h = yes; then
18822 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18823 /* end confdefs.h. */
18824 #include <getopt.h>
18828 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
18829 *) gl_absname_cpp
="$ac_cpp" ;;
18834 gl_dirsep_regex
='[/\\]'
18837 gl_dirsep_regex
='\/'
18840 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
18842 gl_header_literal_regex
=`echo 'getopt.h' \
18843 | sed -e "$gl_make_literal_regex_sed"`
18844 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18845 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18850 gl_cv_next_getopt_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18851 sed -n "$gl_absolute_header_sed"`'"'
18853 gl_cv_next_getopt_h
='<'getopt.h
'>'
18858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
18859 $as_echo "$gl_cv_next_getopt_h" >&6; }
18861 NEXT_GETOPT_H
=$gl_cv_next_getopt_h
18863 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
18864 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18865 gl_next_as_first_directive
='<'getopt.h
'>'
18867 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18868 gl_next_as_first_directive
=$gl_cv_next_getopt_h
18870 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
=$gl_next_as_first_directive
18875 if test $ac_cv_header_getopt_h = yes; then
18884 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
18885 for ac_header
in getopt.h
18887 ac_fn_c_check_header_mongrel
"$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
18888 if test "x$ac_cv_header_getopt_h" = x
""yes; then :
18889 cat >>confdefs.h
<<_ACEOF
18890 #define HAVE_GETOPT_H 1
18894 gl_replace_getopt
=yes
18901 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
18902 for ac_func
in getopt_long_only
18904 ac_fn_c_check_func
"$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
18905 if test "x$ac_cv_func_getopt_long_only" = x
""yes; then :
18906 cat >>confdefs.h
<<_ACEOF
18907 #define HAVE_GETOPT_LONG_ONLY 1
18911 gl_replace_getopt
=yes
18917 if test -z "$gl_replace_getopt"; then
18918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
18919 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
18920 if test "${gl_cv_func_getopt_posix+set}" = set; then :
18921 $as_echo_n "(cached) " >&6
18924 if test $cross_compiling = no
; then
18925 if test "$cross_compiling" = yes; then :
18926 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18927 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18928 as_fn_error
"cannot run test program while cross compiling
18929 See \`config.log' for more details." "$LINENO" 5; }
18931 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18932 /* end confdefs.h. */
18934 #include <unistd.h>
18935 #include <stdlib.h>
18936 #include <string.h>
18941 static char program[] = "program";
18942 static char a[] = "-a";
18943 static char foo[] = "foo";
18944 static char bar[] = "bar";
18945 char *argv[] = { program, a, foo, bar, NULL };
18948 c = getopt (4, argv, "ab");
18951 c = getopt (4, argv, "ab");
18954 if (!(optind == 2))
18960 if ac_fn_c_try_run
"$LINENO"; then :
18961 gl_cv_func_getopt_posix
=maybe
18963 gl_cv_func_getopt_posix
=no
18965 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18966 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18969 if test $gl_cv_func_getopt_posix = maybe
; then
18970 if test "$cross_compiling" = yes; then :
18971 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18972 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18973 as_fn_error
"cannot run test program while cross compiling
18974 See \`config.log' for more details." "$LINENO" 5; }
18976 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18977 /* end confdefs.h. */
18979 #include <unistd.h>
18980 #include <stdlib.h>
18981 #include <string.h>
18986 static char program[] = "program";
18987 static char donald[] = "donald";
18988 static char p[] = "-p";
18989 static char billy[] = "billy";
18990 static char duck[] = "duck";
18991 static char a[] = "-a";
18992 static char bar[] = "bar";
18993 char *argv[] = { program, donald, p, billy, duck, a, bar, NULL };
18996 c = getopt (7, argv, "+abp:q:");
18999 if (!(strcmp (argv[0], "program") == 0))
19001 if (!(strcmp (argv[1], "donald") == 0))
19003 if (!(strcmp (argv[2], "-p") == 0))
19005 if (!(strcmp (argv[3], "billy") == 0))
19007 if (!(strcmp (argv[4], "duck") == 0))
19009 if (!(strcmp (argv[5], "-a") == 0))
19011 if (!(strcmp (argv[6], "bar") == 0))
19013 if (!(optind == 1))
19019 if ac_fn_c_try_run
"$LINENO"; then :
19020 gl_cv_func_getopt_posix
=maybe
19022 gl_cv_func_getopt_posix
=no
19024 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19025 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19029 if test $gl_cv_func_getopt_posix = maybe
; then
19030 if test "$cross_compiling" = yes; then :
19031 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19032 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19033 as_fn_error
"cannot run test program while cross compiling
19034 See \`config.log' for more details." "$LINENO" 5; }
19036 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19037 /* end confdefs.h. */
19039 #include <unistd.h>
19040 #include <stdlib.h>
19041 #include <string.h>
19046 static char program[] = "program";
19047 static char ab[] = "-ab";
19048 char *argv[3] = { program, ab, NULL };
19049 if (getopt (2, argv, "ab:") != 'a')
19051 if (getopt (2, argv, "ab:") != '?')
19061 if ac_fn_c_try_run
"$LINENO"; then :
19062 gl_cv_func_getopt_posix
=yes
19064 gl_cv_func_getopt_posix
=no
19066 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19067 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19073 darwin
* | aix
* | mingw
*) gl_cv_func_getopt_posix
="guessing no";;
19074 *) gl_cv_func_getopt_posix
="guessing yes";;
19079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
19080 $as_echo "$gl_cv_func_getopt_posix" >&6; }
19081 case "$gl_cv_func_getopt_posix" in
19082 *no
) gl_replace_getopt
=yes ;;
19086 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
19087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
19088 $as_echo_n "checking for working GNU getopt function... " >&6; }
19089 if test "${gl_cv_func_getopt_gnu+set}" = set; then :
19090 $as_echo_n "(cached) " >&6
19092 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
19093 # optstring is necessary for programs like m4 that have POSIX-mandated
19094 # semantics for supporting options interspersed with files.
19095 # Also, since getopt_long is a GNU extension, we require optind=0.
19096 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
19097 # so take care to revert to the correct (non-)export state.
19098 gl_awk_probe
='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
19099 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
19100 xx
) gl_had_POSIXLY_CORRECT
=exported
;;
19101 x
) gl_had_POSIXLY_CORRECT
=yes ;;
19102 *) gl_had_POSIXLY_CORRECT
= ;;
19105 export POSIXLY_CORRECT
19106 if test "$cross_compiling" = yes; then :
19107 gl_cv_func_getopt_gnu
="guessing no"
19110 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19111 /* end confdefs.h. */
19112 #include <getopt.h>
19113 #include <stddef.h>
19114 #include <string.h>
19116 #include <stdlib.h>
19117 #if defined __MACH__ && defined __APPLE__
19118 /* Avoid a crash on Mac OS X. */
19119 #include <mach/mach.h>
19120 #include <mach/mach_error.h>
19121 #include <mach/thread_status.h>
19122 #include <mach/exception.h>
19123 #include <mach/task.h>
19124 #include <pthread.h>
19125 /* The exception port on which our thread listens. */
19126 static mach_port_t our_exception_port;
19127 /* The main function of the thread listening for exceptions of type
19130 mach_exception_thread (void *arg)
19132 /* Buffer for a message to be received. */
19134 mach_msg_header_t head;
19135 mach_msg_body_t msgh_body;
19138 mach_msg_return_t retval;
19139 /* Wait for a message on the exception port. */
19140 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
19141 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
19142 if (retval != MACH_MSG_SUCCESS)
19147 nocrash_init (void)
19149 mach_port_t self = mach_task_self ();
19150 /* Allocate a port on which the thread shall listen for exceptions. */
19151 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
19153 /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
19154 if (mach_port_insert_right (self, our_exception_port, our_exception_port,
19155 MACH_MSG_TYPE_MAKE_SEND)
19157 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
19159 exception_mask_t mask = EXC_MASK_BAD_ACCESS;
19160 /* Create the thread listening on the exception port. */
19161 pthread_attr_t attr;
19163 if (pthread_attr_init (&attr) == 0
19164 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
19165 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
19166 pthread_attr_destroy (&attr);
19167 /* Replace the exception port info for these exceptions with our own.
19168 Note that we replace the exception port for the entire task, not only
19169 for a particular thread. This has the effect that when our exception
19170 port gets the message, the thread specific exception port has already
19171 been asked, and we don't need to bother about it.
19172 See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
19173 task_set_exception_ports (self, mask, our_exception_port,
19174 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
19179 #elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
19180 /* Avoid a crash on native Windows. */
19181 #define WIN32_LEAN_AND_MEAN
19182 #include <windows.h>
19183 #include <winerror.h>
19185 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
19187 switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
19189 case EXCEPTION_ACCESS_VIOLATION:
19190 case EXCEPTION_IN_PAGE_ERROR:
19191 case EXCEPTION_STACK_OVERFLOW:
19192 case EXCEPTION_GUARD_PAGE:
19193 case EXCEPTION_PRIV_INSTRUCTION:
19194 case EXCEPTION_ILLEGAL_INSTRUCTION:
19195 case EXCEPTION_DATATYPE_MISALIGNMENT:
19196 case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
19197 case EXCEPTION_NONCONTINUABLE_EXCEPTION:
19200 return EXCEPTION_CONTINUE_SEARCH;
19203 nocrash_init (void)
19205 SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
19208 /* Avoid a crash on POSIX systems. */
19209 #include <signal.h>
19210 /* A POSIX signal handler. */
19212 exception_handler (int sig)
19217 nocrash_init (void)
19220 signal (SIGSEGV, exception_handler);
19223 signal (SIGBUS, exception_handler);
19237 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
19238 and fails on Mac OS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
19239 OSF/1 5.1, Solaris 10. */
19241 static char conftest[] = "conftest";
19242 static char plus[] = "-+";
19243 char *argv[3] = { conftest, plus, NULL };
19245 if (getopt (2, argv, "+a") != '?')
19248 /* This code succeeds on glibc 2.8, mingw,
19249 and fails on Mac OS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
19250 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
19252 static char program[] = "program";
19253 static char p[] = "-p";
19254 static char foo[] = "foo";
19255 static char bar[] = "bar";
19256 char *argv[] = { program, p, foo, bar, NULL };
19259 if (getopt (4, argv, "p::") != 'p')
19261 else if (optarg != NULL)
19263 else if (getopt (4, argv, "p::") != -1)
19265 else if (optind != 2)
19268 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
19270 static char program[] = "program";
19271 static char foo[] = "foo";
19272 static char p[] = "-p";
19273 char *argv[] = { program, foo, p, NULL };
19275 if (getopt (3, argv, "-p") != 1)
19277 else if (getopt (3, argv, "-p") != 'p')
19280 /* This code fails on glibc 2.11. */
19282 static char program[] = "program";
19283 static char b[] = "-b";
19284 static char a[] = "-a";
19285 char *argv[] = { program, b, a, NULL };
19286 optind = opterr = 0;
19287 if (getopt (3, argv, "+:a:b") != 'b')
19289 else if (getopt (3, argv, "+:a:b") != ':')
19292 /* This code dumps core on glibc 2.14. */
19294 static char program[] = "program";
19295 static char w[] = "-W";
19296 static char dummy[] = "dummy";
19297 char *argv[] = { program, w, dummy, NULL };
19298 optind = opterr = 1;
19299 if (getopt (3, argv, "W;") != 'W')
19308 if ac_fn_c_try_run
"$LINENO"; then :
19309 gl_cv_func_getopt_gnu
=yes
19311 gl_cv_func_getopt_gnu
=no
19313 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19314 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19317 case $gl_had_POSIXLY_CORRECT in
19319 yes) { POSIXLY_CORRECT
=; unset POSIXLY_CORRECT
;}; POSIXLY_CORRECT
=1 ;;
19320 *) { POSIXLY_CORRECT
=; unset POSIXLY_CORRECT
;} ;;
19324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
19325 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
19326 if test "$gl_cv_func_getopt_gnu" != yes; then
19327 gl_replace_getopt
=yes
19329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt_long function" >&5
19330 $as_echo_n "checking for working GNU getopt_long function... " >&6; }
19331 if test "${gl_cv_func_getopt_long_gnu+set}" = set; then :
19332 $as_echo_n "(cached) " >&6
19334 if test "$cross_compiling" = yes; then :
19336 openbsd
*) gl_cv_func_getopt_long_gnu
="guessing no";;
19337 *) gl_cv_func_getopt_long_gnu
="guessing yes";;
19341 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19342 /* end confdefs.h. */
19343 #include <getopt.h>
19344 #include <stddef.h>
19345 #include <string.h>
19350 static const struct option long_options[] =
19352 { "xtremely-",no_argument, NULL, 1003 },
19353 { "xtra", no_argument, NULL, 1001 },
19354 { "xtreme", no_argument, NULL, 1002 },
19355 { "xtremely", no_argument, NULL, 1003 },
19356 { NULL, 0, NULL, 0 }
19358 /* This code fails on OpenBSD 5.0. */
19360 static char program[] = "program";
19361 static char xtremel[] = "--xtremel";
19362 char *argv[] = { program, xtremel, NULL };
19364 optind = 1; opterr = 0;
19365 if (getopt_long (2, argv, "", long_options, &option_index) != 1003)
19374 if ac_fn_c_try_run
"$LINENO"; then :
19375 gl_cv_func_getopt_long_gnu
=yes
19377 gl_cv_func_getopt_long_gnu
=no
19379 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19380 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_long_gnu" >&5
19386 $as_echo "$gl_cv_func_getopt_long_gnu" >&6; }
19387 case "$gl_cv_func_getopt_long_gnu" in
19389 *) gl_replace_getopt
=yes ;;
19400 if test -n "$gl_replace_getopt"; then
19404 if test $REPLACE_GETOPT = 1; then
19408 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
19414 ac_fn_c_check_decl
"$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
19415 if test "x$ac_cv_have_decl_getenv" = x
""yes; then :
19421 cat >>confdefs.h
<<_ACEOF
19422 #define HAVE_DECL_GETENV $ac_have_decl
19430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
19431 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
19432 if test "${ac_cv_c_restrict+set}" = set; then :
19433 $as_echo_n "(cached) " >&6
19435 ac_cv_c_restrict
=no
19436 # The order here caters to the fact that C++ does not require restrict.
19437 for ac_kw
in __restrict __restrict__ _Restrict restrict
; do
19438 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19439 /* end confdefs.h. */
19440 typedef int * int_ptr;
19441 int foo (int_ptr $ac_kw ip) {
19448 int * $ac_kw t = s;
19455 if ac_fn_c_try_compile
"$LINENO"; then :
19456 ac_cv_c_restrict
=$ac_kw
19458 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19459 test "$ac_cv_c_restrict" != no
&& break
19463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
19464 $as_echo "$ac_cv_c_restrict" >&6; }
19466 case $ac_cv_c_restrict in
19468 no
) $as_echo "#define restrict /**/" >>confdefs.h
19470 *) cat >>confdefs.h
<<_ACEOF
19471 #define restrict $ac_cv_c_restrict
19477 GNULIB_GETTIMEOFDAY
=0;
19478 HAVE_GETTIMEOFDAY
=1;
19479 HAVE_STRUCT_TIMEVAL
=1;
19481 REPLACE_GETTIMEOFDAY
=0;
19482 REPLACE_STRUCT_TIMEVAL
=0;
19499 if test $gl_cv_have_include_next = yes; then
19500 gl_cv_next_sys_time_h
='<'sys
/time.h
'>'
19502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/time.h>" >&5
19503 $as_echo_n "checking absolute name of <sys/time.h>... " >&6; }
19504 if test "${gl_cv_next_sys_time_h+set}" = set; then :
19505 $as_echo_n "(cached) " >&6
19508 if test $ac_cv_header_sys_time_h = yes; then
19511 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19512 /* end confdefs.h. */
19513 #include <sys/time.h>
19517 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
19518 *) gl_absname_cpp
="$ac_cpp" ;;
19523 gl_dirsep_regex
='[/\\]'
19526 gl_dirsep_regex
='\/'
19529 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
19531 gl_header_literal_regex
=`echo 'sys/time.h' \
19532 | sed -e "$gl_make_literal_regex_sed"`
19533 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19534 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19539 gl_cv_next_sys_time_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19540 sed -n "$gl_absolute_header_sed"`'"'
19542 gl_cv_next_sys_time_h
='<'sys
/time.h
'>'
19547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_time_h" >&5
19548 $as_echo "$gl_cv_next_sys_time_h" >&6; }
19550 NEXT_SYS_TIME_H
=$gl_cv_next_sys_time_h
19552 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
19553 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19554 gl_next_as_first_directive
='<'sys
/time.h
'>'
19556 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19557 gl_next_as_first_directive
=$gl_cv_next_sys_time_h
19559 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
=$gl_next_as_first_directive
19565 if test $ac_cv_header_sys_time_h != yes; then
19573 if test $ac_cv_header_sys_socket_h != yes; then
19574 for ac_header
in winsock2.h
19576 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
19577 if test "x$ac_cv_header_winsock2_h" = x
""yes; then :
19578 cat >>confdefs.h
<<_ACEOF
19579 #define HAVE_WINSOCK2_H 1
19587 if test "$ac_cv_header_winsock2_h" = yes; then
19589 UNISTD_H_HAVE_WINSOCK2_H
=1
19590 SYS_IOCTL_H_HAVE_WINSOCK2_H
=1
19596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
19597 $as_echo_n "checking for struct timeval... " >&6; }
19598 if test "${gl_cv_sys_struct_timeval+set}" = set; then :
19599 $as_echo_n "(cached) " >&6
19601 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19602 /* end confdefs.h. */
19603 #if HAVE_SYS_TIME_H
19604 #include <sys/time.h>
19607 #if HAVE_WINSOCK2_H
19608 # include <winsock2.h>
19614 static struct timeval x; x.tv_sec = x.tv_usec;
19619 if ac_fn_c_try_compile
"$LINENO"; then :
19620 gl_cv_sys_struct_timeval
=yes
19622 gl_cv_sys_struct_timeval
=no
19624 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval" >&5
19628 $as_echo "$gl_cv_sys_struct_timeval" >&6; }
19629 if test $gl_cv_sys_struct_timeval != yes; then
19630 HAVE_STRUCT_TIMEVAL
=0
19632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wide-enough struct timeval.tv_sec member" >&5
19633 $as_echo_n "checking for wide-enough struct timeval.tv_sec member... " >&6; }
19634 if test "${gl_cv_sys_struct_timeval_tv_sec+set}" = set; then :
19635 $as_echo_n "(cached) " >&6
19637 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19638 /* end confdefs.h. */
19639 #if HAVE_SYS_TIME_H
19640 #include <sys/time.h>
19643 #if HAVE_WINSOCK2_H
19644 # include <winsock2.h>
19650 static struct timeval x;
19651 typedef int verify_tv_sec_type[
19652 sizeof (time_t) <= sizeof x.tv_sec ? 1 : -1
19659 if ac_fn_c_try_compile
"$LINENO"; then :
19660 gl_cv_sys_struct_timeval_tv_sec
=yes
19662 gl_cv_sys_struct_timeval_tv_sec
=no
19664 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval_tv_sec" >&5
19668 $as_echo "$gl_cv_sys_struct_timeval_tv_sec" >&6; }
19669 if test $gl_cv_sys_struct_timeval_tv_sec != yes; then
19670 REPLACE_STRUCT_TIMEVAL
=1
19680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
19681 $as_echo_n "checking for unsigned long long int... " >&6; }
19682 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
19683 $as_echo_n "(cached) " >&6
19685 ac_cv_type_unsigned_long_long_int
=yes
19686 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
19687 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19688 /* end confdefs.h. */
19690 /* For now, do not test the preprocessor; as of 2007 there are too many
19691 implementations with broken preprocessors. Perhaps this can
19692 be revisited in 2012. In the meantime, code should not expect
19693 #if to work with literals wider than 32 bits. */
19694 /* Test literals. */
19695 long long int ll = 9223372036854775807ll;
19696 long long int nll = -9223372036854775807LL;
19697 unsigned long long int ull = 18446744073709551615ULL;
19698 /* Test constant expressions. */
19699 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
19701 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
19707 /* Test availability of runtime routines for shift and division. */
19708 long long int llmax = 9223372036854775807ll;
19709 unsigned long long int ullmax = 18446744073709551615ull;
19710 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
19711 | (llmax / ll) | (llmax % ll)
19712 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
19713 | (ullmax / ull) | (ullmax % ull));
19719 if ac_fn_c_try_link
"$LINENO"; then :
19722 ac_cv_type_unsigned_long_long_int
=no
19724 rm -f core conftest.err conftest.
$ac_objext \
19725 conftest
$ac_exeext conftest.
$ac_ext
19728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
19729 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
19730 if test $ac_cv_type_unsigned_long_long_int = yes; then
19732 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
19738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
19739 $as_echo_n "checking for long long int... " >&6; }
19740 if test "${ac_cv_type_long_long_int+set}" = set; then :
19741 $as_echo_n "(cached) " >&6
19743 ac_cv_type_long_long_int
=yes
19744 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
19745 ac_cv_type_long_long_int
=$ac_cv_type_unsigned_long_long_int
19746 if test $ac_cv_type_long_long_int = yes; then
19747 if test "$cross_compiling" = yes; then :
19750 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19751 /* end confdefs.h. */
19752 #include <limits.h>
19755 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
19756 # define LLONG_MAX (HALF - 1 + HALF)
19761 long long int n = 1;
19765 long long int m = n << i;
19768 if (LLONG_MAX / 2 < m)
19776 if ac_fn_c_try_run
"$LINENO"; then :
19779 ac_cv_type_long_long_int
=no
19781 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19782 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
19789 $as_echo "$ac_cv_type_long_long_int" >&6; }
19790 if test $ac_cv_type_long_long_int = yes; then
19792 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
19801 gl_cv_c_multiarch
=no
19802 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19803 /* end confdefs.h. */
19804 #ifndef __APPLE_CC__
19805 not a universal capable compiler
19810 if ac_fn_c_try_compile
"$LINENO"; then :
19814 for word
in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
19815 if test -n "$prev"; then
19817 i?
86 | x86_64 | ppc | ppc64
)
19818 if test -z "$arch" ||
test "$arch" = "$word"; then
19821 gl_cv_c_multiarch
=yes
19827 if test "x$word" = "x-arch"; then
19834 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19835 if test $gl_cv_c_multiarch = yes; then
19836 APPLE_UNIVERSAL_BUILD
=1
19838 APPLE_UNIVERSAL_BUILD
=0
19845 if test $ac_cv_type_long_long_int = yes; then
19846 HAVE_LONG_LONG_INT
=1
19848 HAVE_LONG_LONG_INT
=0
19852 if test $ac_cv_type_unsigned_long_long_int = yes; then
19853 HAVE_UNSIGNED_LONG_LONG_INT
=1
19855 HAVE_UNSIGNED_LONG_LONG_INT
=0
19860 if test $ac_cv_header_wchar_h = yes; then
19867 if test $ac_cv_header_inttypes_h = yes; then
19874 if test $ac_cv_header_sys_types_h = yes; then
19890 if test $gl_cv_have_include_next = yes; then
19891 gl_cv_next_stdint_h
='<'stdint.h
'>'
19893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
19894 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
19895 if test "${gl_cv_next_stdint_h+set}" = set; then :
19896 $as_echo_n "(cached) " >&6
19899 if test $ac_cv_header_stdint_h = yes; then
19902 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19903 /* end confdefs.h. */
19904 #include <stdint.h>
19908 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
19909 *) gl_absname_cpp
="$ac_cpp" ;;
19914 gl_dirsep_regex
='[/\\]'
19917 gl_dirsep_regex
='\/'
19920 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
19922 gl_header_literal_regex
=`echo 'stdint.h' \
19923 | sed -e "$gl_make_literal_regex_sed"`
19924 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19925 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19930 gl_cv_next_stdint_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19931 sed -n "$gl_absolute_header_sed"`'"'
19933 gl_cv_next_stdint_h
='<'stdint.h
'>'
19938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
19939 $as_echo "$gl_cv_next_stdint_h" >&6; }
19941 NEXT_STDINT_H
=$gl_cv_next_stdint_h
19943 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
19944 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19945 gl_next_as_first_directive
='<'stdint.h
'>'
19947 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19948 gl_next_as_first_directive
=$gl_cv_next_stdint_h
19950 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
=$gl_next_as_first_directive
19955 if test $ac_cv_header_stdint_h = yes; then
19962 if test $ac_cv_header_stdint_h = yes; then
19963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
19964 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
19965 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
19966 $as_echo_n "(cached) " >&6
19968 gl_cv_header_working_stdint_h
=no
19969 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19970 /* end confdefs.h. */
19973 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
19974 #include <stdint.h>
19975 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
19976 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
19977 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
19981 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19982 included before <wchar.h>. */
19983 #include <stddef.h>
19984 #include <signal.h>
19986 # include <stdio.h>
19988 # include <wchar.h>
19993 int8_t a1 = INT8_MAX;
19994 int8_t a1min = INT8_MIN;
19997 int16_t a2 = INT16_MAX;
19998 int16_t a2min = INT16_MIN;
20001 int32_t a3 = INT32_MAX;
20002 int32_t a3min = INT32_MIN;
20005 int64_t a4 = INT64_MAX;
20006 int64_t a4min = INT64_MIN;
20009 uint8_t b1 = UINT8_MAX;
20011 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
20014 uint16_t b2 = UINT16_MAX;
20017 uint32_t b3 = UINT32_MAX;
20020 uint64_t b4 = UINT64_MAX;
20022 int_least8_t c1 = INT8_C (0x7f);
20023 int_least8_t c1max = INT_LEAST8_MAX;
20024 int_least8_t c1min = INT_LEAST8_MIN;
20025 int_least16_t c2 = INT16_C (0x7fff);
20026 int_least16_t c2max = INT_LEAST16_MAX;
20027 int_least16_t c2min = INT_LEAST16_MIN;
20028 int_least32_t c3 = INT32_C (0x7fffffff);
20029 int_least32_t c3max = INT_LEAST32_MAX;
20030 int_least32_t c3min = INT_LEAST32_MIN;
20031 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
20032 int_least64_t c4max = INT_LEAST64_MAX;
20033 int_least64_t c4min = INT_LEAST64_MIN;
20034 uint_least8_t d1 = UINT8_C (0xff);
20035 uint_least8_t d1max = UINT_LEAST8_MAX;
20036 uint_least16_t d2 = UINT16_C (0xffff);
20037 uint_least16_t d2max = UINT_LEAST16_MAX;
20038 uint_least32_t d3 = UINT32_C (0xffffffff);
20039 uint_least32_t d3max = UINT_LEAST32_MAX;
20040 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
20041 uint_least64_t d4max = UINT_LEAST64_MAX;
20042 int_fast8_t e1 = INT_FAST8_MAX;
20043 int_fast8_t e1min = INT_FAST8_MIN;
20044 int_fast16_t e2 = INT_FAST16_MAX;
20045 int_fast16_t e2min = INT_FAST16_MIN;
20046 int_fast32_t e3 = INT_FAST32_MAX;
20047 int_fast32_t e3min = INT_FAST32_MIN;
20048 int_fast64_t e4 = INT_FAST64_MAX;
20049 int_fast64_t e4min = INT_FAST64_MIN;
20050 uint_fast8_t f1 = UINT_FAST8_MAX;
20051 uint_fast16_t f2 = UINT_FAST16_MAX;
20052 uint_fast32_t f3 = UINT_FAST32_MAX;
20053 uint_fast64_t f4 = UINT_FAST64_MAX;
20055 intptr_t g = INTPTR_MAX;
20056 intptr_t gmin = INTPTR_MIN;
20059 uintptr_t h = UINTPTR_MAX;
20061 intmax_t i = INTMAX_MAX;
20062 uintmax_t j = UINTMAX_MAX;
20064 #include <limits.h> /* for CHAR_BIT */
20065 #define TYPE_MINIMUM(t) \
20066 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
20067 #define TYPE_MAXIMUM(t) \
20068 ((t) ((t) 0 < (t) -1 \
20070 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
20073 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
20074 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
20076 /* Detect bug in FreeBSD 6.0 / ia64. */
20077 int check_SIG_ATOMIC:
20078 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
20079 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
20081 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
20083 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
20084 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
20086 /* Detect bug in mingw. */
20088 WINT_MIN == TYPE_MINIMUM (wint_t)
20089 && WINT_MAX == TYPE_MAXIMUM (wint_t)
20092 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
20094 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
20095 int check_UINT16_C:
20096 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
20098 /* Detect bugs in OpenBSD 3.9 stdint.h. */
20100 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
20103 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
20106 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
20109 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
20111 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
20112 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
20113 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
20114 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
20115 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
20116 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
20117 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
20118 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
20119 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
20120 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
20121 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
20132 if ac_fn_c_try_compile
"$LINENO"; then :
20133 if test "$cross_compiling" = yes; then :
20134 gl_cv_header_working_stdint_h
=yes
20137 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20138 /* end confdefs.h. */
20141 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
20142 #include <stdint.h>
20145 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20146 included before <wchar.h>. */
20147 #include <stddef.h>
20148 #include <signal.h>
20150 # include <stdio.h>
20152 # include <wchar.h>
20157 #include <string.h>
20158 #define MVAL(macro) MVAL1(macro)
20159 #define MVAL1(expression) #expression
20160 static const char *macro_values[] =
20194 for (mv = macro_values; *mv != NULL; mv++)
20196 const char *value = *mv;
20197 /* Test whether it looks like a cast expression. */
20198 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
20199 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
20200 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
20201 || strncmp (value, "((int)"/*)*/, 6) == 0
20202 || strncmp (value, "((signed short)"/*)*/, 15) == 0
20203 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
20204 return mv - macro_values + 1;
20212 if ac_fn_c_try_run
"$LINENO"; then :
20213 gl_cv_header_working_stdint_h
=yes
20215 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20216 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20221 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
20225 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
20227 if test "$gl_cv_header_working_stdint_h" = yes; then
20230 for ac_header
in sys
/inttypes.h sys
/bitypes.h
20232 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20233 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20234 eval as_val
=\$
$as_ac_Header
20235 if test "x$as_val" = x
""yes; then :
20236 cat >>confdefs.h
<<_ACEOF
20237 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20244 if test $ac_cv_header_sys_inttypes_h = yes; then
20245 HAVE_SYS_INTTYPES_H
=1
20247 HAVE_SYS_INTTYPES_H
=0
20250 if test $ac_cv_header_sys_bitypes_h = yes; then
20251 HAVE_SYS_BITYPES_H
=1
20253 HAVE_SYS_BITYPES_H
=0
20259 if test $APPLE_UNIVERSAL_BUILD = 0; then
20262 for gltype
in ptrdiff_t size_t
; do
20263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
20264 $as_echo_n "checking for bit size of $gltype... " >&6; }
20265 if { as_var
=gl_cv_bitsizeof_
${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
20266 $as_echo_n "(cached) " >&6
20268 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
20269 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20270 included before <wchar.h>. */
20271 #include <stddef.h>
20272 #include <signal.h>
20274 # include <stdio.h>
20276 # include <wchar.h>
20279 #include <limits.h>"; then :
20285 eval gl_cv_bitsizeof_
${gltype}=\
$result
20288 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
20289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20290 $as_echo "$ac_res" >&6; }
20291 eval result
=\
$gl_cv_bitsizeof_${gltype}
20292 if test $result = unknown
; then
20295 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
20296 cat >>confdefs.h
<<_ACEOF
20297 #define BITSIZEOF_${GLTYPE} $result
20300 eval BITSIZEOF_
${GLTYPE}=\
$result
20307 for gltype
in sig_atomic_t wchar_t wint_t
; do
20308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
20309 $as_echo_n "checking for bit size of $gltype... " >&6; }
20310 if { as_var
=gl_cv_bitsizeof_
${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
20311 $as_echo_n "(cached) " >&6
20313 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
20314 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20315 included before <wchar.h>. */
20316 #include <stddef.h>
20317 #include <signal.h>
20319 # include <stdio.h>
20321 # include <wchar.h>
20324 #include <limits.h>"; then :
20330 eval gl_cv_bitsizeof_
${gltype}=\
$result
20333 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
20334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20335 $as_echo "$ac_res" >&6; }
20336 eval result
=\
$gl_cv_bitsizeof_${gltype}
20337 if test $result = unknown
; then
20340 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
20341 cat >>confdefs.h
<<_ACEOF
20342 #define BITSIZEOF_${GLTYPE} $result
20345 eval BITSIZEOF_
${GLTYPE}=\
$result
20351 for gltype
in sig_atomic_t wchar_t wint_t
; do
20352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
20353 $as_echo_n "checking whether $gltype is signed... " >&6; }
20354 if { as_var
=gl_cv_type_
${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
20355 $as_echo_n "(cached) " >&6
20357 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20358 /* end confdefs.h. */
20360 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20361 included before <wchar.h>. */
20362 #include <stddef.h>
20363 #include <signal.h>
20365 # include <stdio.h>
20367 # include <wchar.h>
20370 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
20379 if ac_fn_c_try_compile
"$LINENO"; then :
20384 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20385 eval gl_cv_type_
${gltype}_signed
=\
$result
20388 eval ac_res
=\
$gl_cv_type_${gltype}_signed
20389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20390 $as_echo "$ac_res" >&6; }
20391 eval result
=\
$gl_cv_type_${gltype}_signed
20392 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
20393 if test "$result" = yes; then
20394 cat >>confdefs.h
<<_ACEOF
20395 #define HAVE_SIGNED_${GLTYPE} 1
20398 eval HAVE_SIGNED_
${GLTYPE}=1
20400 eval HAVE_SIGNED_
${GLTYPE}=0
20405 gl_cv_type_ptrdiff_t_signed
=yes
20406 gl_cv_type_size_t_signed
=no
20407 if test $APPLE_UNIVERSAL_BUILD = 0; then
20410 for gltype
in ptrdiff_t size_t
; do
20411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
20412 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
20413 if { as_var
=gl_cv_type_
${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
20414 $as_echo_n "(cached) " >&6
20416 eval gl_cv_type_
${gltype}_suffix
=no
20417 eval result
=\
$gl_cv_type_${gltype}_signed
20418 if test "$result" = yes; then
20423 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
20425 '') gltype1
='int';;
20426 l
) gltype1
='long int';;
20427 ll
) gltype1
='long long int';;
20428 i64
) gltype1
='__int64';;
20429 u
) gltype1
='unsigned int';;
20430 ul
) gltype1
='unsigned long int';;
20431 ull
) gltype1
='unsigned long long int';;
20432 ui64
)gltype1
='unsigned __int64';;
20434 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20435 /* end confdefs.h. */
20437 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20438 included before <wchar.h>. */
20439 #include <stddef.h>
20440 #include <signal.h>
20442 # include <stdio.h>
20444 # include <wchar.h>
20447 extern $gltype foo;
20448 extern $gltype1 foo;
20457 if ac_fn_c_try_compile
"$LINENO"; then :
20458 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
20460 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20461 eval result
=\
$gl_cv_type_${gltype}_suffix
20462 test "$result" != no
&& break
20465 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
20466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20467 $as_echo "$ac_res" >&6; }
20468 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
20469 eval result
=\
$gl_cv_type_${gltype}_suffix
20470 test "$result" = no
&& result
=
20471 eval ${GLTYPE}_SUFFIX
=\
$result
20472 cat >>confdefs.h
<<_ACEOF
20473 #define ${GLTYPE}_SUFFIX $result
20482 for gltype
in sig_atomic_t wchar_t wint_t
; do
20483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
20484 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
20485 if { as_var
=gl_cv_type_
${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
20486 $as_echo_n "(cached) " >&6
20488 eval gl_cv_type_
${gltype}_suffix
=no
20489 eval result
=\
$gl_cv_type_${gltype}_signed
20490 if test "$result" = yes; then
20495 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
20497 '') gltype1
='int';;
20498 l
) gltype1
='long int';;
20499 ll
) gltype1
='long long int';;
20500 i64
) gltype1
='__int64';;
20501 u
) gltype1
='unsigned int';;
20502 ul
) gltype1
='unsigned long int';;
20503 ull
) gltype1
='unsigned long long int';;
20504 ui64
)gltype1
='unsigned __int64';;
20506 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20507 /* end confdefs.h. */
20509 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20510 included before <wchar.h>. */
20511 #include <stddef.h>
20512 #include <signal.h>
20514 # include <stdio.h>
20516 # include <wchar.h>
20519 extern $gltype foo;
20520 extern $gltype1 foo;
20529 if ac_fn_c_try_compile
"$LINENO"; then :
20530 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
20532 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20533 eval result
=\
$gl_cv_type_${gltype}_suffix
20534 test "$result" != no
&& break
20537 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
20538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20539 $as_echo "$ac_res" >&6; }
20540 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
20541 eval result
=\
$gl_cv_type_${gltype}_suffix
20542 test "$result" = no
&& result
=
20543 eval ${GLTYPE}_SUFFIX
=\
$result
20544 cat >>confdefs.h
<<_ACEOF
20545 #define ${GLTYPE}_SUFFIX $result
20552 if test $BITSIZEOF_WINT_T -lt 32; then
20553 BITSIZEOF_WINT_T
=32
20559 if test -n "$STDINT_H"; then
20560 GL_GENERATE_STDINT_H_TRUE
=
20561 GL_GENERATE_STDINT_H_FALSE
='#'
20563 GL_GENERATE_STDINT_H_TRUE
='#'
20564 GL_GENERATE_STDINT_H_FALSE
=
20573 GNULIB_STRTOIMAX
=0;
20574 GNULIB_STRTOUMAX
=0;
20575 HAVE_DECL_IMAXABS
=1;
20576 HAVE_DECL_IMAXDIV
=1;
20577 HAVE_DECL_STRTOIMAX
=1;
20578 HAVE_DECL_STRTOUMAX
=1;
20579 REPLACE_STRTOIMAX
=0;
20580 INT32_MAX_LT_INTMAX_MAX
=1;
20581 INT64_MAX_EQ_LONG_MAX
='defined _LP64';
20582 PRI_MACROS_BROKEN
=0;
20583 PRIPTR_PREFIX
=__PRIPTR_PREFIX
;
20584 UINT32_MAX_LT_UINTMAX_MAX
=1;
20585 UINT64_MAX_EQ_ULONG_MAX
='defined _LP64';
20601 if test $gl_cv_have_include_next = yes; then
20602 gl_cv_next_inttypes_h
='<'inttypes.h
'>'
20604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
20605 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
20606 if test "${gl_cv_next_inttypes_h+set}" = set; then :
20607 $as_echo_n "(cached) " >&6
20610 if test $ac_cv_header_inttypes_h = yes; then
20613 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20614 /* end confdefs.h. */
20615 #include <inttypes.h>
20619 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
20620 *) gl_absname_cpp
="$ac_cpp" ;;
20625 gl_dirsep_regex
='[/\\]'
20628 gl_dirsep_regex
='\/'
20631 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
20633 gl_header_literal_regex
=`echo 'inttypes.h' \
20634 | sed -e "$gl_make_literal_regex_sed"`
20635 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
20636 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
20641 gl_cv_next_inttypes_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20642 sed -n "$gl_absolute_header_sed"`'"'
20644 gl_cv_next_inttypes_h
='<'inttypes.h
'>'
20649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
20650 $as_echo "$gl_cv_next_inttypes_h" >&6; }
20652 NEXT_INTTYPES_H
=$gl_cv_next_inttypes_h
20654 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
20655 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20656 gl_next_as_first_directive
='<'inttypes.h
'>'
20658 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20659 gl_next_as_first_directive
=$gl_cv_next_inttypes_h
20661 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
=$gl_next_as_first_directive
20675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5
20676 $as_echo_n "checking for 64-bit off_t... " >&6; }
20677 if test "${gl_cv_type_off_t_64+set}" = set; then :
20678 $as_echo_n "(cached) " >&6
20680 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20681 /* end confdefs.h. */
20682 #include <sys/types.h>
20683 int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1];
20693 if ac_fn_c_try_compile
"$LINENO"; then :
20694 gl_cv_type_off_t_64
=yes
20696 gl_cv_type_off_t_64
=no
20698 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5
20702 $as_echo "$gl_cv_type_off_t_64" >&6; }
20703 if test $gl_cv_type_off_t_64 = no
; then
20704 WINDOWS_64_BIT_OFF_T
=1
20706 WINDOWS_64_BIT_OFF_T
=0
20708 WINDOWS_64_BIT_ST_SIZE
=1
20711 WINDOWS_64_BIT_OFF_T
=0
20712 WINDOWS_64_BIT_ST_SIZE
=0
20725 GNULIB_RAWMEMCHR
=0;
20728 GNULIB_STRCHRNUL
=0;
20736 GNULIB_STRCASESTR
=0;
20743 GNULIB_MBSCASECMP
=0;
20744 GNULIB_MBSNCASECMP
=0;
20745 GNULIB_MBSPCASECMP
=0;
20746 GNULIB_MBSCASESTR
=0;
20753 GNULIB_STRERROR_R
=0;
20754 GNULIB_STRSIGNAL
=0;
20755 GNULIB_STRVERSCMP
=0;
20760 HAVE_DECL_MEMMEM
=1;
20762 HAVE_DECL_MEMRCHR
=1;
20767 HAVE_DECL_STRDUP
=1;
20768 HAVE_DECL_STRNDUP
=1;
20769 HAVE_DECL_STRNLEN
=1;
20773 HAVE_DECL_STRTOK_R
=1;
20774 HAVE_DECL_STRERROR_R
=1;
20775 HAVE_DECL_STRSIGNAL
=1;
20782 REPLACE_STRCASESTR
=0;
20783 REPLACE_STRCHRNUL
=0;
20784 REPLACE_STRERROR
=0;
20785 REPLACE_STRERROR_R
=0;
20789 REPLACE_STRSIGNAL
=0;
20790 REPLACE_STRTOK_R
=0;
20791 UNDEFINE_STRTOK_R
=0;
20793 ac_fn_c_check_decl
"$LINENO" "memrchr" "ac_cv_have_decl_memrchr" "$ac_includes_default"
20794 if test "x$ac_cv_have_decl_memrchr" = x
""yes; then :
20800 cat >>confdefs.h
<<_ACEOF
20801 #define HAVE_DECL_MEMRCHR $ac_have_decl
20808 GNULIB_NANOSLEEP
=0;
20812 HAVE_DECL_LOCALTIME_R
=1;
20816 REPLACE_LOCALTIME_R
=GNULIB_PORTCHECK
;
20817 REPLACE_MKTIME
=GNULIB_PORTCHECK
;
20818 REPLACE_NANOSLEEP
=GNULIB_PORTCHECK
;
20819 REPLACE_TIMEGM
=GNULIB_PORTCHECK
;
20821 ac_fn_c_check_decl
"$LINENO" "alarm" "ac_cv_have_decl_alarm" "$ac_includes_default"
20822 if test "x$ac_cv_have_decl_alarm" = x
""yes; then :
20828 cat >>confdefs.h
<<_ACEOF
20829 #define HAVE_DECL_ALARM $ac_have_decl
20846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/select.h> is self-contained" >&5
20847 $as_echo_n "checking whether <sys/select.h> is self-contained... " >&6; }
20848 if test "${gl_cv_header_sys_select_h_selfcontained+set}" = set; then :
20849 $as_echo_n "(cached) " >&6
20852 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20853 /* end confdefs.h. */
20854 #include <sys/select.h>
20863 if ac_fn_c_try_compile
"$LINENO"; then :
20864 gl_cv_header_sys_select_h_selfcontained
=yes
20866 gl_cv_header_sys_select_h_selfcontained
=no
20868 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20869 if test $gl_cv_header_sys_select_h_selfcontained = yes; then
20870 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20871 /* end confdefs.h. */
20872 #include <sys/select.h>
20876 int memset; int bzero;
20882 if ac_fn_c_try_compile
"$LINENO"; then :
20883 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20884 /* end confdefs.h. */
20885 #include <sys/select.h>
20891 #define memset nonexistent_memset
20896 void *memset (void *, int, unsigned long);
20898 #define bzero nonexistent_bzero
20903 void bzero (void *, unsigned long);
20912 if ac_fn_c_try_link
"$LINENO"; then :
20915 gl_cv_header_sys_select_h_selfcontained
=no
20917 rm -f core conftest.err conftest.
$ac_objext \
20918 conftest
$ac_exeext conftest.
$ac_ext
20921 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_selfcontained" >&5
20926 $as_echo "$gl_cv_header_sys_select_h_selfcontained" >&6; }
20936 if test $gl_cv_have_include_next = yes; then
20937 gl_cv_next_sys_select_h
='<'sys
/select.h
'>'
20939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/select.h>" >&5
20940 $as_echo_n "checking absolute name of <sys/select.h>... " >&6; }
20941 if test "${gl_cv_next_sys_select_h+set}" = set; then :
20942 $as_echo_n "(cached) " >&6
20945 if test $ac_cv_header_sys_select_h = yes; then
20948 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20949 /* end confdefs.h. */
20950 #include <sys/select.h>
20954 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
20955 *) gl_absname_cpp
="$ac_cpp" ;;
20960 gl_dirsep_regex
='[/\\]'
20963 gl_dirsep_regex
='\/'
20966 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
20968 gl_header_literal_regex
=`echo 'sys/select.h' \
20969 | sed -e "$gl_make_literal_regex_sed"`
20970 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
20971 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
20976 gl_cv_next_sys_select_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20977 sed -n "$gl_absolute_header_sed"`'"'
20979 gl_cv_next_sys_select_h
='<'sys
/select.h
'>'
20984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_select_h" >&5
20985 $as_echo "$gl_cv_next_sys_select_h" >&6; }
20987 NEXT_SYS_SELECT_H
=$gl_cv_next_sys_select_h
20989 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
20990 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20991 gl_next_as_first_directive
='<'sys
/select.h
'>'
20993 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20994 gl_next_as_first_directive
=$gl_cv_next_sys_select_h
20996 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H
=$gl_next_as_first_directive
21001 if test $ac_cv_header_sys_select_h = yes; then
21002 HAVE_SYS_SELECT_H
=1
21004 HAVE_SYS_SELECT_H
=0
21011 if test $ac_cv_header_sys_socket_h != yes; then
21012 for ac_header
in winsock2.h
21014 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
21015 if test "x$ac_cv_header_winsock2_h" = x
""yes; then :
21016 cat >>confdefs.h
<<_ACEOF
21017 #define HAVE_WINSOCK2_H 1
21025 if test "$ac_cv_header_winsock2_h" = yes; then
21027 UNISTD_H_HAVE_WINSOCK2_H
=1
21028 SYS_IOCTL_H_HAVE_WINSOCK2_H
=1
21040 GNULIB_PTHREAD_SIGMASK
=0;
21042 GNULIB_SIGNAL_H_SIGPIPE
=0;
21043 GNULIB_SIGPROCMASK
=0;
21044 GNULIB_SIGACTION
=0;
21045 HAVE_POSIX_SIGNALBLOCKING
=1;
21046 HAVE_PTHREAD_SIGMASK
=1;
21051 HAVE_STRUCT_SIGACTION_SA_SIGACTION
=1;
21053 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
=1;
21055 HAVE_SIGHANDLER_T
=1;
21056 REPLACE_PTHREAD_SIGMASK
=0;
21065 ac_fn_c_check_type
"$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
21066 #include <signal.h>
21067 /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */
21068 #include <sys/types.h>
21071 if test "x$ac_cv_type_sigset_t" = x
""yes; then :
21073 cat >>confdefs.h
<<_ACEOF
21074 #define HAVE_SIGSET_T 1
21077 gl_cv_type_sigset_t
=yes
21079 gl_cv_type_sigset_t
=no
21082 if test $gl_cv_type_sigset_t != yes; then
21088 if test $ac_cv_header_sys_socket_h = no
; then
21089 for ac_header
in ws2tcpip.h
21091 ac_fn_c_check_header_mongrel
"$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
21092 if test "x$ac_cv_header_ws2tcpip_h" = x
""yes; then :
21093 cat >>confdefs.h
<<_ACEOF
21094 #define HAVE_WS2TCPIP_H 1
21103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
21104 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
21105 if test "${ac_cv_header_stdbool_h+set}" = set; then :
21106 $as_echo_n "(cached) " >&6
21108 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21109 /* end confdefs.h. */
21111 #include <stdbool.h>
21113 "error: bool is not defined"
21116 "error: false is not defined"
21119 "error: false is not 0"
21122 "error: true is not defined"
21125 "error: true is not 1"
21127 #ifndef __bool_true_false_are_defined
21128 "error: __bool_true_false_are_defined is not defined"
21131 struct s { _Bool s: 1; _Bool t; } s;
21133 char a[true == 1 ? 1 : -1];
21134 char b[false == 0 ? 1 : -1];
21135 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
21136 char d[(bool) 0.5 == true ? 1 : -1];
21137 /* See body of main program for 'e'. */
21138 char f[(_Bool) 0.0 == false ? 1 : -1];
21140 char h[sizeof (_Bool)];
21141 char i[sizeof s.t];
21142 enum { j = false, k = true, l = false * true, m = true * 256 };
21143 /* The following fails for
21144 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
21146 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
21147 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
21148 /* Catch a bug in an HP-UX C compiler. See
21149 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
21150 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
21162 /* Refer to every declared value, to avoid compiler optimizations. */
21163 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
21164 + !m + !n + !o + !p + !q + !pq);
21170 if ac_fn_c_try_compile
"$LINENO"; then :
21171 ac_cv_header_stdbool_h
=yes
21173 ac_cv_header_stdbool_h
=no
21175 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
21178 $as_echo "$ac_cv_header_stdbool_h" >&6; }
21179 ac_fn_c_check_type
"$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
21180 if test "x$ac_cv_type__Bool" = x
""yes; then :
21182 cat >>confdefs.h
<<_ACEOF
21183 #define HAVE__BOOL 1
21195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
21196 $as_echo_n "checking for wchar_t... " >&6; }
21197 if test "${gt_cv_c_wchar_t+set}" = set; then :
21198 $as_echo_n "(cached) " >&6
21200 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21201 /* end confdefs.h. */
21202 #include <stddef.h>
21203 wchar_t foo = (wchar_t)'\0';
21212 if ac_fn_c_try_compile
"$LINENO"; then :
21213 gt_cv_c_wchar_t
=yes
21217 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
21220 $as_echo "$gt_cv_c_wchar_t" >&6; }
21221 if test $gt_cv_c_wchar_t = yes; then
21223 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
21236 GNULIB_FPRINTF_POSIX
=0;
21252 GNULIB_OBSTACK_PRINTF
=0;
21253 GNULIB_OBSTACK_PRINTF_POSIX
=0;
21258 GNULIB_PRINTF_POSIX
=0;
21267 GNULIB_SPRINTF_POSIX
=0;
21268 GNULIB_STDIO_H_NONBLOCKING
=0;
21269 GNULIB_STDIO_H_SIGPIPE
=0;
21271 GNULIB_VASPRINTF
=0;
21276 GNULIB_VFPRINTF_POSIX
=0;
21278 GNULIB_VPRINTF_POSIX
=0;
21279 GNULIB_VSNPRINTF
=0;
21280 GNULIB_VSPRINTF_POSIX
=0;
21281 HAVE_DECL_FPURGE
=1;
21282 HAVE_DECL_FSEEKO
=1;
21283 HAVE_DECL_FTELLO
=1;
21284 HAVE_DECL_GETDELIM
=1;
21285 HAVE_DECL_GETLINE
=1;
21286 HAVE_DECL_OBSTACK_PRINTF
=1;
21287 HAVE_DECL_SNPRINTF
=1;
21288 HAVE_DECL_VSNPRINTF
=1;
21309 REPLACE_GETDELIM
=0;
21311 REPLACE_OBSTACK_PRINTF
=0;
21317 REPLACE_RENAMEAT
=0;
21318 REPLACE_SNPRINTF
=0;
21320 REPLACE_STDIO_READ_FUNCS
=0;
21321 REPLACE_STDIO_WRITE_FUNCS
=0;
21323 REPLACE_VASPRINTF
=0;
21324 REPLACE_VDPRINTF
=0;
21325 REPLACE_VFPRINTF
=0;
21327 REPLACE_VSNPRINTF
=0;
21328 REPLACE_VSPRINTF
=0;
21330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
21331 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
21332 if test "${ac_cv_struct_tm+set}" = set; then :
21333 $as_echo_n "(cached) " >&6
21335 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21336 /* end confdefs.h. */
21337 #include <sys/types.h>
21344 int *p = &tm.tm_sec;
21350 if ac_fn_c_try_compile
"$LINENO"; then :
21351 ac_cv_struct_tm
=time.h
21353 ac_cv_struct_tm
=sys
/time.h
21355 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
21358 $as_echo "$ac_cv_struct_tm" >&6; }
21359 if test $ac_cv_struct_tm = sys
/time.h
; then
21361 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
21365 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
21366 #include <$ac_cv_struct_tm>
21369 if test "x$ac_cv_member_struct_tm_tm_zone" = x
""yes; then :
21371 cat >>confdefs.h
<<_ACEOF
21372 #define HAVE_STRUCT_TM_TM_ZONE 1
21378 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21380 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
21383 ac_fn_c_check_decl
"$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
21385 if test "x$ac_cv_have_decl_tzname" = x
""yes; then :
21391 cat >>confdefs.h
<<_ACEOF
21392 #define HAVE_DECL_TZNAME $ac_have_decl
21395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
21396 $as_echo_n "checking for tzname... " >&6; }
21397 if test "${ac_cv_var_tzname+set}" = set; then :
21398 $as_echo_n "(cached) " >&6
21400 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21401 /* end confdefs.h. */
21403 #if !HAVE_DECL_TZNAME
21404 extern char *tzname[];
21410 return tzname[0][0];
21415 if ac_fn_c_try_link
"$LINENO"; then :
21416 ac_cv_var_tzname
=yes
21418 ac_cv_var_tzname
=no
21420 rm -f core conftest.err conftest.
$ac_objext \
21421 conftest
$ac_exeext conftest.
$ac_ext
21423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
21424 $as_echo "$ac_cv_var_tzname" >&6; }
21425 if test $ac_cv_var_tzname = yes; then
21427 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
21433 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
21435 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x
""yes; then :
21437 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
21453 if test $gl_cv_have_include_next = yes; then
21454 gl_cv_next_string_h
='<'string.h
'>'
21456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
21457 $as_echo_n "checking absolute name of <string.h>... " >&6; }
21458 if test "${gl_cv_next_string_h+set}" = set; then :
21459 $as_echo_n "(cached) " >&6
21462 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21463 /* end confdefs.h. */
21464 #include <string.h>
21468 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
21469 *) gl_absname_cpp
="$ac_cpp" ;;
21474 gl_dirsep_regex
='[/\\]'
21477 gl_dirsep_regex
='\/'
21480 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
21482 gl_header_literal_regex
=`echo 'string.h' \
21483 | sed -e "$gl_make_literal_regex_sed"`
21484 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21485 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21490 gl_cv_next_string_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21491 sed -n "$gl_absolute_header_sed"`'"'
21495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
21496 $as_echo "$gl_cv_next_string_h" >&6; }
21498 NEXT_STRING_H
=$gl_cv_next_string_h
21500 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
21501 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21502 gl_next_as_first_directive
='<'string.h
'>'
21504 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21505 gl_next_as_first_directive
=$gl_cv_next_string_h
21507 NEXT_AS_FIRST_DIRECTIVE_STRING_H
=$gl_next_as_first_directive
21517 ac_fn_c_check_decl
"$LINENO" "strtoimax" "ac_cv_have_decl_strtoimax" "$ac_includes_default"
21518 if test "x$ac_cv_have_decl_strtoimax" = x
""yes; then :
21524 cat >>confdefs.h
<<_ACEOF
21525 #define HAVE_DECL_STRTOIMAX $ac_have_decl
21530 ac_fn_c_check_decl
"$LINENO" "strtoumax" "ac_cv_have_decl_strtoumax" "$ac_includes_default"
21531 if test "x$ac_cv_have_decl_strtoumax" = x
""yes; then :
21537 cat >>confdefs.h
<<_ACEOF
21538 #define HAVE_DECL_STRTOUMAX $ac_have_decl
21543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
21544 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
21545 if test "${ac_cv_header_stat_broken+set}" = set; then :
21546 $as_echo_n "(cached) " >&6
21548 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21549 /* end confdefs.h. */
21550 #include <sys/types.h>
21551 #include <sys/stat.h>
21553 #if defined S_ISBLK && defined S_IFDIR
21554 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
21557 #if defined S_ISBLK && defined S_IFCHR
21558 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
21561 #if defined S_ISLNK && defined S_IFREG
21562 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
21565 #if defined S_ISSOCK && defined S_IFREG
21566 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
21570 if ac_fn_c_try_compile
"$LINENO"; then :
21571 ac_cv_header_stat_broken
=no
21573 ac_cv_header_stat_broken
=yes
21575 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
21578 $as_echo "$ac_cv_header_stat_broken" >&6; }
21579 if test $ac_cv_header_stat_broken = yes; then
21581 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
21589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
21590 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
21591 if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then :
21592 $as_echo_n "(cached) " >&6
21594 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21595 /* end confdefs.h. */
21601 static struct timespec x; x.tv_sec = x.tv_nsec;
21606 if ac_fn_c_try_compile
"$LINENO"; then :
21607 gl_cv_sys_struct_timespec_in_time_h
=yes
21609 gl_cv_sys_struct_timespec_in_time_h
=no
21611 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
21614 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
21616 TIME_H_DEFINES_STRUCT_TIMESPEC
=0
21617 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
=0
21618 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
=0
21619 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
21620 TIME_H_DEFINES_STRUCT_TIMESPEC
=1
21622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
21623 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
21624 if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then :
21625 $as_echo_n "(cached) " >&6
21627 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21628 /* end confdefs.h. */
21629 #include <sys/time.h>
21634 static struct timespec x; x.tv_sec = x.tv_nsec;
21639 if ac_fn_c_try_compile
"$LINENO"; then :
21640 gl_cv_sys_struct_timespec_in_sys_time_h
=yes
21642 gl_cv_sys_struct_timespec_in_sys_time_h
=no
21644 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
21647 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
21648 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
21649 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
=1
21651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
21652 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
21653 if test "${gl_cv_sys_struct_timespec_in_pthread_h+set}" = set; then :
21654 $as_echo_n "(cached) " >&6
21656 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21657 /* end confdefs.h. */
21658 #include <pthread.h>
21663 static struct timespec x; x.tv_sec = x.tv_nsec;
21668 if ac_fn_c_try_compile
"$LINENO"; then :
21669 gl_cv_sys_struct_timespec_in_pthread_h
=yes
21671 gl_cv_sys_struct_timespec_in_pthread_h
=no
21673 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
21676 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
21677 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
21678 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
=1
21697 if test $gl_cv_have_include_next = yes; then
21698 gl_cv_next_time_h
='<'time.h
'>'
21700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
21701 $as_echo_n "checking absolute name of <time.h>... " >&6; }
21702 if test "${gl_cv_next_time_h+set}" = set; then :
21703 $as_echo_n "(cached) " >&6
21706 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21707 /* end confdefs.h. */
21712 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
21713 *) gl_absname_cpp
="$ac_cpp" ;;
21718 gl_dirsep_regex
='[/\\]'
21721 gl_dirsep_regex
='\/'
21724 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
21726 gl_header_literal_regex
=`echo 'time.h' \
21727 | sed -e "$gl_make_literal_regex_sed"`
21728 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21729 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21734 gl_cv_next_time_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21735 sed -n "$gl_absolute_header_sed"`'"'
21739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
21740 $as_echo "$gl_cv_next_time_h" >&6; }
21742 NEXT_TIME_H
=$gl_cv_next_time_h
21744 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
21745 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21746 gl_next_as_first_directive
='<'time.h
'>'
21748 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21749 gl_next_as_first_directive
=$gl_cv_next_time_h
21751 NEXT_AS_FIRST_DIRECTIVE_TIME_H
=$gl_next_as_first_directive
21766 ac_fn_c_check_decl
"$LINENO" "unsetenv" "ac_cv_have_decl_unsetenv" "$ac_includes_default"
21767 if test "x$ac_cv_have_decl_unsetenv" = x
""yes; then :
21773 cat >>confdefs.h
<<_ACEOF
21774 #define HAVE_DECL_UNSETENV $ac_have_decl
21778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the utimes function works" >&5
21779 $as_echo_n "checking whether the utimes function works... " >&6; }
21780 if test "${gl_cv_func_working_utimes+set}" = set; then :
21781 $as_echo_n "(cached) " >&6
21784 if test "$cross_compiling" = yes; then :
21785 gl_cv_func_working_utimes
=no
21787 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21788 /* end confdefs.h. */
21790 #include <sys/types.h>
21791 #include <sys/stat.h>
21793 #include <sys/time.h>
21795 #include <unistd.h>
21796 #include <stdlib.h>
21801 inorder (time_t a, time_t b, time_t c)
21803 return a <= b && b <= c;
21810 char const *file = "conftest.utimes";
21811 static struct timeval timeval[2] = {{9, 10}, {999999, 999999}};
21813 /* Test whether utimes() essentially works. */
21816 FILE *f = fopen (file, "w");
21819 else if (fclose (f) != 0)
21821 else if (utimes (file, timeval) != 0)
21823 else if (lstat (file, &sbuf) != 0)
21825 else if (!(sbuf.st_atime == timeval[0].tv_sec
21826 && sbuf.st_mtime == timeval[1].tv_sec))
21828 if (unlink (file) != 0)
21832 /* Test whether utimes() with a NULL argument sets the file's timestamp
21833 to the current time. Use 'fstat' as well as 'time' to
21834 determine the "current" time, to accommodate NFS file systems
21835 if there is a time skew between the host and the NFS server. */
21837 int fd = open (file, O_WRONLY|O_CREAT, 0644);
21843 struct stat st0, st1, st2;
21844 if (time (&t0) == (time_t) -1)
21846 else if (fstat (fd, &st0) != 0)
21848 else if (utimes (file, timeval) != 0)
21850 else if (utimes (file, NULL) != 0)
21852 else if (fstat (fd, &st1) != 0)
21854 else if (write (fd, "\n", 1) != 1)
21856 else if (fstat (fd, &st2) != 0)
21858 else if (time (&t2) == (time_t) -1)
21862 int m_ok_POSIX = inorder (t0, st1.st_mtime, t2);
21863 int m_ok_NFS = inorder (st0.st_mtime, st1.st_mtime, st2.st_mtime);
21864 if (! (st1.st_atime == st1.st_mtime))
21866 if (! (m_ok_POSIX || m_ok_NFS))
21869 if (close (fd) != 0)
21872 if (unlink (file) != 0)
21876 /* Test whether utimes() with a NULL argument works on read-only files. */
21878 int fd = open (file, O_WRONLY|O_CREAT, 0444);
21881 else if (close (fd) != 0)
21883 else if (utimes (file, NULL) != 0)
21885 if (unlink (file) != 0)
21893 if ac_fn_c_try_run
"$LINENO"; then :
21894 gl_cv_func_working_utimes
=yes
21896 gl_cv_func_working_utimes
=no
21898 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21899 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_utimes" >&5
21904 $as_echo "$gl_cv_func_working_utimes" >&6; }
21906 if test $gl_cv_func_working_utimes = yes; then
21908 $as_echo "#define HAVE_WORKING_UTIMES 1" >>confdefs.h
21916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
21917 $as_echo_n "checking for struct utimbuf... " >&6; }
21918 if test "${gl_cv_sys_struct_utimbuf+set}" = set; then :
21919 $as_echo_n "(cached) " >&6
21921 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21922 /* end confdefs.h. */
21923 #if HAVE_SYS_TIME_H
21924 #include <sys/time.h>
21927 #ifdef HAVE_UTIME_H
21934 static struct utimbuf x; x.actime = x.modtime;
21939 if ac_fn_c_try_compile
"$LINENO"; then :
21940 gl_cv_sys_struct_utimbuf
=yes
21942 gl_cv_sys_struct_utimbuf
=no
21944 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_utimbuf" >&5
21947 $as_echo "$gl_cv_sys_struct_utimbuf" >&6; }
21949 if test $gl_cv_sys_struct_utimbuf = yes; then
21951 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
21965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5
21966 $as_echo_n "checking type of array argument to getgroups... " >&6; }
21967 if test "${ac_cv_type_getgroups+set}" = set; then :
21968 $as_echo_n "(cached) " >&6
21970 if test "$cross_compiling" = yes; then :
21971 ac_cv_type_getgroups
=cross
21973 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21974 /* end confdefs.h. */
21975 /* Thanks to Mike Rendell for this test. */
21976 $ac_includes_default
21979 #define MAX(x, y) ((x) > (y) ? (x) : (y))
21984 gid_t gidset[NGID];
21986 union { gid_t gval; long int lval; } val;
21989 for (i = 0; i < NGID; i++)
21990 gidset[i] = val.gval;
21991 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
21993 /* Exit non-zero if getgroups seems to require an array of ints. This
21994 happens when gid_t is short int but getgroups modifies an array
21996 return n > 0 && gidset[n] != val.gval;
21999 if ac_fn_c_try_run
"$LINENO"; then :
22000 ac_cv_type_getgroups
=gid_t
22002 ac_cv_type_getgroups
=int
22004 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22005 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22008 if test $ac_cv_type_getgroups = cross
; then
22009 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22010 /* end confdefs.h. */
22011 #include <unistd.h>
22014 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22015 $EGREP "getgroups.*int.*gid_t" >/dev
/null
2>&1; then :
22016 ac_cv_type_getgroups
=gid_t
22018 ac_cv_type_getgroups
=int
22024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5
22025 $as_echo "$ac_cv_type_getgroups" >&6; }
22027 cat >>confdefs.h
<<_ACEOF
22028 #define GETGROUPS_T $ac_cv_type_getgroups
22039 GL_COND_LIBTOOL_TRUE
=
22040 GL_COND_LIBTOOL_FALSE
='#'
22042 GL_COND_LIBTOOL_TRUE
='#'
22043 GL_COND_LIBTOOL_FALSE
=
22046 gl_cond_libtool
=false
22059 gl_source_base
='lib'
22062 if test $ac_cv_func_alloca_works = no
; then
22066 # Define an additional variable used in the Makefile substitution.
22067 if test $ac_cv_working_alloca_h = yes; then
22068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
22069 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
22070 if test "${gl_cv_rpl_alloca+set}" = set; then :
22071 $as_echo_n "(cached) " >&6
22074 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22075 /* end confdefs.h. */
22077 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
22082 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22083 $EGREP "Need own alloca" >/dev
/null
2>&1; then :
22084 gl_cv_rpl_alloca
=yes
22086 gl_cv_rpl_alloca
=no
22092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
22093 $as_echo "$gl_cv_rpl_alloca" >&6; }
22094 if test $gl_cv_rpl_alloca = yes; then
22096 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
22106 if test -n "$ALLOCA_H"; then
22107 GL_GENERATE_ALLOCA_H_TRUE
=
22108 GL_GENERATE_ALLOCA_H_FALSE
='#'
22110 GL_GENERATE_ALLOCA_H_TRUE
='#'
22111 GL_GENERATE_ALLOCA_H_FALSE
=
22119 # Solaris 2.5.1 needs -lposix4 to get the clock_gettime function.
22120 # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
22122 # Save and restore LIBS so e.g., -lrt, isn't added to it. Otherwise, *all*
22123 # programs in the package would end up linked with that potentially-shared
22124 # library, inducing unnecessary run-time overhead.
22127 gl_saved_libs
=$LIBS
22128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
22129 $as_echo_n "checking for library containing clock_gettime... " >&6; }
22130 if test "${ac_cv_search_clock_gettime+set}" = set; then :
22131 $as_echo_n "(cached) " >&6
22133 ac_func_search_save_LIBS
=$LIBS
22134 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22135 /* end confdefs.h. */
22137 /* Override any GCC internal prototype to avoid an error.
22138 Use char because int might match the return type of a GCC
22139 builtin and then its argument prototype would still apply. */
22143 char clock_gettime ();
22147 return clock_gettime ();
22152 for ac_lib
in '' rt posix4
; do
22153 if test -z "$ac_lib"; then
22154 ac_res
="none required"
22157 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
22159 if ac_fn_c_try_link
"$LINENO"; then :
22160 ac_cv_search_clock_gettime
=$ac_res
22162 rm -f core conftest.err conftest.
$ac_objext \
22164 if test "${ac_cv_search_clock_gettime+set}" = set; then :
22168 if test "${ac_cv_search_clock_gettime+set}" = set; then :
22171 ac_cv_search_clock_gettime
=no
22173 rm conftest.
$ac_ext
22174 LIBS
=$ac_func_search_save_LIBS
22176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
22177 $as_echo "$ac_cv_search_clock_gettime" >&6; }
22178 ac_res
=$ac_cv_search_clock_gettime
22179 if test "$ac_res" != no
; then :
22180 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
22181 test "$ac_cv_search_clock_gettime" = "none required" ||
22182 LIB_CLOCK_GETTIME
=$ac_cv_search_clock_gettime
22185 for ac_func
in clock_gettime clock_settime
22187 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22188 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
22189 eval as_val
=\$
$as_ac_var
22190 if test "x$as_val" = x
""yes; then :
22191 cat >>confdefs.h
<<_ACEOF
22192 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22198 LIBS
=$gl_saved_libs
22205 cat >>confdefs.h
<<_ACEOF
22206 #define GNULIB_CLOSE_STREAM 1
22236 if test $gl_cv_have_include_next = yes; then
22237 gl_cv_next_dirent_h
='<'dirent.h
'>'
22239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <dirent.h>" >&5
22240 $as_echo_n "checking absolute name of <dirent.h>... " >&6; }
22241 if test "${gl_cv_next_dirent_h+set}" = set; then :
22242 $as_echo_n "(cached) " >&6
22245 if test $ac_cv_header_dirent_h = yes; then
22248 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22249 /* end confdefs.h. */
22250 #include <dirent.h>
22254 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
22255 *) gl_absname_cpp
="$ac_cpp" ;;
22260 gl_dirsep_regex
='[/\\]'
22263 gl_dirsep_regex
='\/'
22266 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
22268 gl_header_literal_regex
=`echo 'dirent.h' \
22269 | sed -e "$gl_make_literal_regex_sed"`
22270 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22271 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22276 gl_cv_next_dirent_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22277 sed -n "$gl_absolute_header_sed"`'"'
22279 gl_cv_next_dirent_h
='<'dirent.h
'>'
22284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_dirent_h" >&5
22285 $as_echo "$gl_cv_next_dirent_h" >&6; }
22287 NEXT_DIRENT_H
=$gl_cv_next_dirent_h
22289 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
22290 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22291 gl_next_as_first_directive
='<'dirent.h
'>'
22293 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22294 gl_next_as_first_directive
=$gl_cv_next_dirent_h
22296 NEXT_AS_FIRST_DIRECTIVE_DIRENT_H
=$gl_next_as_first_directive
22301 if test $ac_cv_header_dirent_h = yes; then
22316 $as_echo "#define HAVE_DUP2 1" >>confdefs.h
22319 if test $HAVE_DUP2 = 1; then
22320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5
22321 $as_echo_n "checking whether dup2 works... " >&6; }
22322 if test "${gl_cv_func_dup2_works+set}" = set; then :
22323 $as_echo_n "(cached) " >&6
22325 if test "$cross_compiling" = yes; then :
22327 mingw
*) # on this platform, dup2 always returns 0 for success
22328 gl_cv_func_dup2_works
="guessing no" ;;
22329 cygwin
*) # on cygwin 1.5.x, dup2(1,1) returns 0
22330 gl_cv_func_dup2_works
="guessing no" ;;
22331 linux
*) # On linux between 2008-07-27 and 2009-05-11, dup2 of a
22332 # closed fd may yield -EBADF instead of -1 / errno=EBADF.
22333 gl_cv_func_dup2_works
="guessing no" ;;
22334 freebsd
*) # on FreeBSD 6.1, dup2(1,1000000) gives EMFILE, not EBADF.
22335 gl_cv_func_dup2_works
="guessing no" ;;
22336 haiku
*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC.
22337 gl_cv_func_dup2_works
="guessing no" ;;
22338 *) gl_cv_func_dup2_works
="guessing yes" ;;
22341 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22342 /* end confdefs.h. */
22344 #include <unistd.h>
22352 if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1)
22355 if (dup2 (1, 1) == 0)
22358 if (fcntl (1, F_GETFD) != FD_CLOEXEC)
22362 if (dup2 (0, 0) != -1)
22364 /* Many gnulib modules require POSIX conformance of EBADF. */
22365 if (dup2 (2, 1000000) == -1 && errno != EBADF)
22367 /* Flush out a cygwin core dump. */
22368 if (dup2 (2, -1) != -1 || errno != EBADF)
22377 if ac_fn_c_try_run
"$LINENO"; then :
22378 gl_cv_func_dup2_works
=yes
22380 gl_cv_func_dup2_works
=no
22382 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22383 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5
22389 $as_echo "$gl_cv_func_dup2_works" >&6; }
22390 case "$gl_cv_func_dup2_works" in
22399 if test $HAVE_DUP2 = 0 ||
test $REPLACE_DUP2 = 1; then
22408 gl_LIBOBJS
="$gl_LIBOBJS dup2.$ac_objext"
22440 EXECINFO_H
='execinfo.h'
22442 if test $ac_cv_header_execinfo_h = yes; then
22443 gl_saved_libs
=$LIBS
22444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing backtrace_symbols_fd" >&5
22445 $as_echo_n "checking for library containing backtrace_symbols_fd... " >&6; }
22446 if test "${ac_cv_search_backtrace_symbols_fd+set}" = set; then :
22447 $as_echo_n "(cached) " >&6
22449 ac_func_search_save_LIBS
=$LIBS
22450 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22451 /* end confdefs.h. */
22453 /* Override any GCC internal prototype to avoid an error.
22454 Use char because int might match the return type of a GCC
22455 builtin and then its argument prototype would still apply. */
22459 char backtrace_symbols_fd ();
22463 return backtrace_symbols_fd ();
22468 for ac_lib
in '' execinfo
; do
22469 if test -z "$ac_lib"; then
22470 ac_res
="none required"
22473 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
22475 if ac_fn_c_try_link
"$LINENO"; then :
22476 ac_cv_search_backtrace_symbols_fd
=$ac_res
22478 rm -f core conftest.err conftest.
$ac_objext \
22480 if test "${ac_cv_search_backtrace_symbols_fd+set}" = set; then :
22484 if test "${ac_cv_search_backtrace_symbols_fd+set}" = set; then :
22487 ac_cv_search_backtrace_symbols_fd
=no
22489 rm conftest.
$ac_ext
22490 LIBS
=$ac_func_search_save_LIBS
22492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_backtrace_symbols_fd" >&5
22493 $as_echo "$ac_cv_search_backtrace_symbols_fd" >&6; }
22494 ac_res
=$ac_cv_search_backtrace_symbols_fd
22495 if test "$ac_res" != no
; then :
22496 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
22497 test "$ac_cv_search_backtrace_symbols_fd" = "none required" ||
22498 LIB_EXECINFO
=$ac_cv_search_backtrace_symbols_fd
22501 LIBS
=$gl_saved_libs
22502 test "$ac_cv_search_backtrace_symbols_fd" = no || EXECINFO_H
=''
22505 if test -n "$EXECINFO_H"; then
22514 gl_LIBOBJS
="$gl_LIBOBJS execinfo.$ac_objext"
22520 if test -n "$EXECINFO_H"; then
22521 GL_GENERATE_EXECINFO_H_TRUE
=
22522 GL_GENERATE_EXECINFO_H_FALSE
='#'
22524 GL_GENERATE_EXECINFO_H_TRUE
='#'
22525 GL_GENERATE_EXECINFO_H_FALSE
=
22536 if test $ac_cv_func_faccessat = no
; then
22540 if test $HAVE_FACCESSAT = 0; then
22549 gl_LIBOBJS
="$gl_LIBOBJS faccessat.$ac_objext"
22552 for ac_func
in access
22554 ac_fn_c_check_func
"$LINENO" "access" "ac_cv_func_access"
22555 if test "x$ac_cv_func_access" = x
""yes; then :
22556 cat >>confdefs.h
<<_ACEOF
22557 #define HAVE_ACCESS 1
22567 cat >>confdefs.h
<<_ACEOF
22568 #define GNULIB_FACCESSAT 1
22588 if test $ac_cv_func_fcntl = no
; then
22592 if test $ac_cv_func_fcntl = no
; then
22599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fcntl handles F_DUPFD correctly" >&5
22600 $as_echo_n "checking whether fcntl handles F_DUPFD correctly... " >&6; }
22601 if test "${gl_cv_func_fcntl_f_dupfd_works+set}" = set; then :
22602 $as_echo_n "(cached) " >&6
22604 if test "$cross_compiling" = yes; then :
22605 # Guess that it works on glibc systems
22606 case $host_os in #((
22607 *-gnu*) gl_cv_func_fcntl_f_dupfd_works
="guessing yes";;
22608 *) gl_cv_func_fcntl_f_dupfd_works
="guessing no";;
22611 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22612 /* end confdefs.h. */
22621 if (fcntl (0, F_DUPFD, -1) != -1) result |= 1;
22622 if (errno != EINVAL) result |= 2;
22629 if ac_fn_c_try_run
"$LINENO"; then :
22630 gl_cv_func_fcntl_f_dupfd_works
=yes
22632 gl_cv_func_fcntl_f_dupfd_works
=no
22634 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22635 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fcntl_f_dupfd_works" >&5
22640 $as_echo "$gl_cv_func_fcntl_f_dupfd_works" >&6; }
22641 case $gl_cv_func_fcntl_f_dupfd_works in
22646 if test $ac_cv_func_fcntl = no
; then
22653 $as_echo "#define FCNTL_DUPFD_BUGGY 1" >>confdefs.h
22657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fcntl understands F_DUPFD_CLOEXEC" >&5
22658 $as_echo_n "checking whether fcntl understands F_DUPFD_CLOEXEC... " >&6; }
22659 if test "${gl_cv_func_fcntl_f_dupfd_cloexec+set}" = set; then :
22660 $as_echo_n "(cached) " >&6
22662 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22663 /* end confdefs.h. */
22666 #ifndef F_DUPFD_CLOEXEC
22678 if ac_fn_c_try_compile
"$LINENO"; then :
22679 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22680 /* end confdefs.h. */
22683 /* The Linux kernel only added F_DUPFD_CLOEXEC in 2.6.24, so we always replace
22684 it to support the semantics on older kernels that failed with EINVAL. */
22696 if ac_fn_c_try_compile
"$LINENO"; then :
22697 gl_cv_func_fcntl_f_dupfd_cloexec
=yes
22699 gl_cv_func_fcntl_f_dupfd_cloexec
="needs runtime check"
22701 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22703 gl_cv_func_fcntl_f_dupfd_cloexec
=no
22705 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fcntl_f_dupfd_cloexec" >&5
22708 $as_echo "$gl_cv_func_fcntl_f_dupfd_cloexec" >&6; }
22709 if test "$gl_cv_func_fcntl_f_dupfd_cloexec" != yes; then
22713 if test $ac_cv_func_fcntl = no
; then
22723 if test $HAVE_FCNTL = 0 ||
test $REPLACE_FCNTL = 1; then
22732 gl_LIBOBJS
="$gl_LIBOBJS fcntl.$ac_objext"
22757 if test $gl_cv_have_include_next = yes; then
22758 gl_cv_next_fcntl_h
='<'fcntl.h
'>'
22760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <fcntl.h>" >&5
22761 $as_echo_n "checking absolute name of <fcntl.h>... " >&6; }
22762 if test "${gl_cv_next_fcntl_h+set}" = set; then :
22763 $as_echo_n "(cached) " >&6
22766 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22767 /* end confdefs.h. */
22772 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
22773 *) gl_absname_cpp
="$ac_cpp" ;;
22778 gl_dirsep_regex
='[/\\]'
22781 gl_dirsep_regex
='\/'
22784 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
22786 gl_header_literal_regex
=`echo 'fcntl.h' \
22787 | sed -e "$gl_make_literal_regex_sed"`
22788 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22789 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22794 gl_cv_next_fcntl_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22795 sed -n "$gl_absolute_header_sed"`'"'
22799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_fcntl_h" >&5
22800 $as_echo "$gl_cv_next_fcntl_h" >&6; }
22802 NEXT_FCNTL_H
=$gl_cv_next_fcntl_h
22804 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
22805 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22806 gl_next_as_first_directive
='<'fcntl.h
'>'
22808 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22809 gl_next_as_first_directive
=$gl_cv_next_fcntl_h
22811 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H
=$gl_next_as_first_directive
22830 if test $ac_cv_have_decl_fdatasync = no
; then
22831 HAVE_DECL_FDATASYNC
=0
22832 for ac_func
in fdatasync
22834 ac_fn_c_check_func
"$LINENO" "fdatasync" "ac_cv_func_fdatasync"
22835 if test "x$ac_cv_func_fdatasync" = x
""yes; then :
22836 cat >>confdefs.h
<<_ACEOF
22837 #define HAVE_FDATASYNC 1
22843 if test $ac_cv_func_fdatasync = no
; then
22847 gl_saved_libs
=$LIBS
22848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fdatasync" >&5
22849 $as_echo_n "checking for library containing fdatasync... " >&6; }
22850 if test "${ac_cv_search_fdatasync+set}" = set; then :
22851 $as_echo_n "(cached) " >&6
22853 ac_func_search_save_LIBS
=$LIBS
22854 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22855 /* end confdefs.h. */
22857 /* Override any GCC internal prototype to avoid an error.
22858 Use char because int might match the return type of a GCC
22859 builtin and then its argument prototype would still apply. */
22867 return fdatasync ();
22872 for ac_lib
in '' rt posix4
; do
22873 if test -z "$ac_lib"; then
22874 ac_res
="none required"
22877 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
22879 if ac_fn_c_try_link
"$LINENO"; then :
22880 ac_cv_search_fdatasync
=$ac_res
22882 rm -f core conftest.err conftest.
$ac_objext \
22884 if test "${ac_cv_search_fdatasync+set}" = set; then :
22888 if test "${ac_cv_search_fdatasync+set}" = set; then :
22891 ac_cv_search_fdatasync
=no
22893 rm conftest.
$ac_ext
22894 LIBS
=$ac_func_search_save_LIBS
22896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fdatasync" >&5
22897 $as_echo "$ac_cv_search_fdatasync" >&6; }
22898 ac_res
=$ac_cv_search_fdatasync
22899 if test "$ac_res" != no
; then :
22900 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
22901 test "$ac_cv_search_fdatasync" = "none required" ||
22902 LIB_FDATASYNC
=$ac_cv_search_fdatasync
22905 LIBS
=$gl_saved_libs
22908 if test $HAVE_FDATASYNC = 0; then
22917 gl_LIBOBJS
="$gl_LIBOBJS fdatasync.$ac_objext"
22936 ac_fn_c_check_decl
"$LINENO" "fdopendir" "ac_cv_have_decl_fdopendir" "
22937 #include <dirent.h>
22940 if test "x$ac_cv_have_decl_fdopendir" = x
""yes; then :
22946 cat >>confdefs.h
<<_ACEOF
22947 #define HAVE_DECL_FDOPENDIR $ac_have_decl
22949 if test $ac_have_decl = 1; then :
22952 HAVE_DECL_FDOPENDIR
=0
22956 if test $ac_cv_func_fdopendir = no
; then
22959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fdopendir works" >&5
22960 $as_echo_n "checking whether fdopendir works... " >&6; }
22961 if test "${gl_cv_func_fdopendir_works+set}" = set; then :
22962 $as_echo_n "(cached) " >&6
22964 if test "$cross_compiling" = yes; then :
22966 # Guess yes on glibc systems.
22967 *-gnu*) gl_cv_func_fdopendir_works
="guessing yes" ;;
22968 # If we don't know, assume the worst.
22969 *) gl_cv_func_fdopendir_works
="guessing no" ;;
22973 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22974 /* end confdefs.h. */
22976 #include <dirent.h>
22978 #include <unistd.h>
22979 #if !HAVE_DECL_FDOPENDIR
22981 # ifdef __cplusplus
22984 DIR *fdopendir (int);
22991 int fd = open ("conftest.c", O_RDONLY);
22992 if (fd < 0) result |= 1;
22993 if (fdopendir (fd)) result |= 2;
22994 if (close (fd)) result |= 4;
23000 if ac_fn_c_try_run
"$LINENO"; then :
23001 gl_cv_func_fdopendir_works
=yes
23003 gl_cv_func_fdopendir_works
=no
23005 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23006 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fdopendir_works" >&5
23011 $as_echo "$gl_cv_func_fdopendir_works" >&6; }
23012 case "$gl_cv_func_fdopendir_works" in
23015 REPLACE_FDOPENDIR
=1
23020 if test $HAVE_FDOPENDIR = 0 ||
test $REPLACE_FDOPENDIR = 1; then
23029 gl_LIBOBJS
="$gl_LIBOBJS fdopendir.$ac_objext"
23045 cat >>confdefs.h
<<_ACEOF
23046 #define GNULIB_FDOPENDIR 1
23056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __fpending" >&5
23057 $as_echo_n "checking for __fpending... " >&6; }
23058 if test "${gl_cv_func___fpending+set}" = set; then :
23059 $as_echo_n "(cached) " >&6
23062 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23063 /* end confdefs.h. */
23065 #if HAVE_STDIO_EXT_H
23066 # include <stdio_ext.h>
23072 return ! __fpending (stdin);
23077 if ac_fn_c_try_link
"$LINENO"; then :
23078 gl_cv_func___fpending
=yes
23080 gl_cv_func___fpending
=no
23082 rm -f core conftest.err conftest.
$ac_objext \
23083 conftest
$ac_exeext conftest.
$ac_ext
23086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func___fpending" >&5
23087 $as_echo "$gl_cv_func___fpending" >&6; }
23089 if test $gl_cv_func___fpending = no
; then
23098 gl_LIBOBJS
="$gl_LIBOBJS fpending.$ac_objext"
23101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to determine the number of pending output bytes on a stream" >&5
23102 $as_echo_n "checking how to determine the number of pending output bytes on a stream... " >&6; }
23103 if test "${ac_cv_sys_pending_output_n_bytes+set}" = set; then :
23104 $as_echo_n "(cached) " >&6
23110 'fp->_IO_write_ptr - fp->_IO_write_base' \
23112 '# traditional Unix' \
23113 'fp->_ptr - fp->_base' \
23116 'fp->_p - fp->_bf._base' \
23118 '# SCO, Unixware' \
23119 '(fp->__ptr ? fp->__ptr - fp->__base : 0)' \
23122 '(fp->_Mode & 0x2000 /*_MWRITE*/ ? fp->_Next - fp->_Buf : 0)' \
23125 'fp->__bufp - fp->__buffer' \
23127 '# old glibc iostream?' \
23128 'fp->_pptr - fp->_pbase' \
23131 'fp->_ptr - fp->_buffer' \
23134 'fp->_ptr - fp->_buf' \
23137 'fp->wp - fp->buf' \
23140 '(*fp)->_ptr - (*fp)->_base' \
23142 '# e.g., DGUX R4.11; the info is not available' \
23146 # Skip each embedded comment.
23147 case "$ac_expr" in '#'*) continue;; esac
23149 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23150 /* end confdefs.h. */
23155 FILE *fp = stdin; (void) ($ac_expr);
23160 if ac_fn_c_try_compile
"$LINENO"; then :
23164 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23165 test "$fp_done" = yes && break
23168 ac_cv_sys_pending_output_n_bytes
=$ac_expr
23172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_pending_output_n_bytes" >&5
23173 $as_echo "$ac_cv_sys_pending_output_n_bytes" >&6; }
23175 cat >>confdefs.h
<<_ACEOF
23176 #define PENDING_OUTPUT_N_BYTES $ac_cv_sys_pending_output_n_bytes
23187 if test $ac_cv_func_fstatat = no
; then
23190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fstatat (..., 0) works" >&5
23191 $as_echo_n "checking whether fstatat (..., 0) works... " >&6; }
23192 if test "${gl_cv_func_fstatat_zero_flag+set}" = set; then :
23193 $as_echo_n "(cached) " >&6
23195 if test "$cross_compiling" = yes; then :
23197 aix
*) gl_cv_func_fstatat_zero_flag
="guessing no";;
23198 *) gl_cv_func_fstatat_zero_flag
="guessing yes";;
23202 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23203 /* end confdefs.h. */
23206 #include <sys/stat.h>
23211 return fstatat (AT_FDCWD, ".", &a, 0) != 0;
23215 if ac_fn_c_try_run
"$LINENO"; then :
23216 gl_cv_func_fstatat_zero_flag
=yes
23218 gl_cv_func_fstatat_zero_flag
=no
23220 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23221 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fstatat_zero_flag" >&5
23227 $as_echo "$gl_cv_func_fstatat_zero_flag" >&6; }
23229 case $gl_cv_func_fstatat_zero_flag+$gl_cv_func_lstat_dereferences_slashed_symlink in
23231 *) REPLACE_FSTATAT
=1
23232 case $gl_cv_func_fstatat_zero_flag in
23235 $as_echo "#define HAVE_WORKING_FSTATAT_ZERO_FLAG 1" >>confdefs.h
23243 if test $HAVE_FSTATAT = 0 ||
test $REPLACE_FSTATAT = 1; then
23252 gl_LIBOBJS
="$gl_LIBOBJS fstatat.$ac_objext"
23269 if test $ac_cv_func_fsync = no
; then
23273 if test $HAVE_FSYNC = 0; then
23282 gl_LIBOBJS
="$gl_LIBOBJS fsync.$ac_objext"
23299 # Persuade glibc <stdlib.h> to declare getloadavg().
23304 # getloadvg is present in libc on glibc >= 2.2, Mac OS X, FreeBSD >= 2.0,
23305 # NetBSD >= 0.9, OpenBSD >= 2.0, Solaris >= 7.
23307 ac_fn_c_check_func
"$LINENO" "getloadavg" "ac_cv_func_getloadavg"
23308 if test "x$ac_cv_func_getloadavg" = x
""yes; then :
23311 gl_func_getloadavg_done
=no
23313 # Some systems with -lutil have (and need) -lkvm as well, some do not.
23314 # On Solaris, -lkvm requires nlist from -lelf, so check that first
23315 # to get the right answer into the cache.
23316 # For kstat on solaris, we need to test for libelf and libkvm to force the
23317 # definition of SVR4 below.
23318 if test $gl_func_getloadavg_done = no
; then
23319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
23320 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
23321 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then :
23322 $as_echo_n "(cached) " >&6
23324 ac_check_lib_save_LIBS
=$LIBS
23326 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23327 /* end confdefs.h. */
23329 /* Override any GCC internal prototype to avoid an error.
23330 Use char because int might match the return type of a GCC
23331 builtin and then its argument prototype would still apply. */
23339 return elf_begin ();
23344 if ac_fn_c_try_link
"$LINENO"; then :
23345 ac_cv_lib_elf_elf_begin
=yes
23347 ac_cv_lib_elf_elf_begin
=no
23349 rm -f core conftest.err conftest.
$ac_objext \
23350 conftest
$ac_exeext conftest.
$ac_ext
23351 LIBS
=$ac_check_lib_save_LIBS
23353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
23354 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
23355 if test "x$ac_cv_lib_elf_elf_begin" = x
""yes; then :
23359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
23360 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
23361 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then :
23362 $as_echo_n "(cached) " >&6
23364 ac_check_lib_save_LIBS
=$LIBS
23366 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23367 /* end confdefs.h. */
23369 /* Override any GCC internal prototype to avoid an error.
23370 Use char because int might match the return type of a GCC
23371 builtin and then its argument prototype would still apply. */
23379 return kvm_open ();
23384 if ac_fn_c_try_link
"$LINENO"; then :
23385 ac_cv_lib_kvm_kvm_open
=yes
23387 ac_cv_lib_kvm_kvm_open
=no
23389 rm -f core conftest.err conftest.
$ac_objext \
23390 conftest
$ac_exeext conftest.
$ac_ext
23391 LIBS
=$ac_check_lib_save_LIBS
23393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
23394 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
23395 if test "x$ac_cv_lib_kvm_kvm_open" = x
""yes; then :
23399 # Check for the 4.4BSD definition of getloadavg.
23400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
23401 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
23402 if test "${ac_cv_lib_util_getloadavg+set}" = set; then :
23403 $as_echo_n "(cached) " >&6
23405 ac_check_lib_save_LIBS
=$LIBS
23406 LIBS
="-lutil $LIBS"
23407 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23408 /* end confdefs.h. */
23410 /* Override any GCC internal prototype to avoid an error.
23411 Use char because int might match the return type of a GCC
23412 builtin and then its argument prototype would still apply. */
23416 char getloadavg ();
23420 return getloadavg ();
23425 if ac_fn_c_try_link
"$LINENO"; then :
23426 ac_cv_lib_util_getloadavg
=yes
23428 ac_cv_lib_util_getloadavg
=no
23430 rm -f core conftest.err conftest.
$ac_objext \
23431 conftest
$ac_exeext conftest.
$ac_ext
23432 LIBS
=$ac_check_lib_save_LIBS
23434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
23435 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
23436 if test "x$ac_cv_lib_util_getloadavg" = x
""yes; then :
23437 LIBS
="-lutil $LIBS" gl_func_getloadavg_done
=yes
23442 if test $gl_func_getloadavg_done = no
; then
23443 # There is a commonly available library for RS/6000 AIX.
23444 # Since it is not a standard part of AIX, it might be installed locally.
23445 gl_getloadavg_LIBS
=$LIBS
23446 LIBS
="-L/usr/local/lib $LIBS"
23447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
23448 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
23449 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then :
23450 $as_echo_n "(cached) " >&6
23452 ac_check_lib_save_LIBS
=$LIBS
23453 LIBS
="-lgetloadavg $LIBS"
23454 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23455 /* end confdefs.h. */
23457 /* Override any GCC internal prototype to avoid an error.
23458 Use char because int might match the return type of a GCC
23459 builtin and then its argument prototype would still apply. */
23463 char getloadavg ();
23467 return getloadavg ();
23472 if ac_fn_c_try_link
"$LINENO"; then :
23473 ac_cv_lib_getloadavg_getloadavg
=yes
23475 ac_cv_lib_getloadavg_getloadavg
=no
23477 rm -f core conftest.err conftest.
$ac_objext \
23478 conftest
$ac_exeext conftest.
$ac_ext
23479 LIBS
=$ac_check_lib_save_LIBS
23481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
23482 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
23483 if test "x$ac_cv_lib_getloadavg_getloadavg" = x
""yes; then :
23484 LIBS
="-lgetloadavg $LIBS" gl_func_getloadavg_done
=yes
23486 LIBS
=$gl_getloadavg_LIBS
23491 # Set up the replacement function if necessary.
23492 if test $gl_func_getloadavg_done = no
; then
23495 # Solaris has libkstat which does not require root.
23496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
23497 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
23498 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
23499 $as_echo_n "(cached) " >&6
23501 ac_check_lib_save_LIBS
=$LIBS
23502 LIBS
="-lkstat $LIBS"
23503 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23504 /* end confdefs.h. */
23506 /* Override any GCC internal prototype to avoid an error.
23507 Use char because int might match the return type of a GCC
23508 builtin and then its argument prototype would still apply. */
23512 char kstat_open ();
23516 return kstat_open ();
23521 if ac_fn_c_try_link
"$LINENO"; then :
23522 ac_cv_lib_kstat_kstat_open
=yes
23524 ac_cv_lib_kstat_kstat_open
=no
23526 rm -f core conftest.err conftest.
$ac_objext \
23527 conftest
$ac_exeext conftest.
$ac_ext
23528 LIBS
=$ac_check_lib_save_LIBS
23530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
23531 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
23532 if test "x$ac_cv_lib_kstat_kstat_open" = x
""yes; then :
23533 cat >>confdefs.h
<<_ACEOF
23534 #define HAVE_LIBKSTAT 1
23537 LIBS
="-lkstat $LIBS"
23541 test $ac_cv_lib_kstat_kstat_open = yes && gl_func_getloadavg_done
=yes
23543 # AIX has libperfstat which does not require root
23544 if test $gl_func_getloadavg_done = no
; then
23545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perfstat_cpu_total in -lperfstat" >&5
23546 $as_echo_n "checking for perfstat_cpu_total in -lperfstat... " >&6; }
23547 if test "${ac_cv_lib_perfstat_perfstat_cpu_total+set}" = set; then :
23548 $as_echo_n "(cached) " >&6
23550 ac_check_lib_save_LIBS
=$LIBS
23551 LIBS
="-lperfstat $LIBS"
23552 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23553 /* end confdefs.h. */
23555 /* Override any GCC internal prototype to avoid an error.
23556 Use char because int might match the return type of a GCC
23557 builtin and then its argument prototype would still apply. */
23561 char perfstat_cpu_total ();
23565 return perfstat_cpu_total ();
23570 if ac_fn_c_try_link
"$LINENO"; then :
23571 ac_cv_lib_perfstat_perfstat_cpu_total
=yes
23573 ac_cv_lib_perfstat_perfstat_cpu_total
=no
23575 rm -f core conftest.err conftest.
$ac_objext \
23576 conftest
$ac_exeext conftest.
$ac_ext
23577 LIBS
=$ac_check_lib_save_LIBS
23579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_perfstat_perfstat_cpu_total" >&5
23580 $as_echo "$ac_cv_lib_perfstat_perfstat_cpu_total" >&6; }
23581 if test "x$ac_cv_lib_perfstat_perfstat_cpu_total" = x
""yes; then :
23582 cat >>confdefs.h
<<_ACEOF
23583 #define HAVE_LIBPERFSTAT 1
23586 LIBS
="-lperfstat $LIBS"
23590 test $ac_cv_lib_perfstat_perfstat_cpu_total = yes && gl_func_getloadavg_done
=yes
23593 if test $gl_func_getloadavg_done = no
; then
23594 ac_fn_c_check_header_mongrel
"$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
23595 if test "x$ac_cv_header_sys_dg_sys_info_h" = x
""yes; then :
23596 gl_func_getloadavg_done
=yes
23598 $as_echo "#define DGUX 1" >>confdefs.h
23600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
23601 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
23602 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then :
23603 $as_echo_n "(cached) " >&6
23605 ac_check_lib_save_LIBS
=$LIBS
23607 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23608 /* end confdefs.h. */
23610 /* Override any GCC internal prototype to avoid an error.
23611 Use char because int might match the return type of a GCC
23612 builtin and then its argument prototype would still apply. */
23616 char dg_sys_info ();
23620 return dg_sys_info ();
23625 if ac_fn_c_try_link
"$LINENO"; then :
23626 ac_cv_lib_dgc_dg_sys_info
=yes
23628 ac_cv_lib_dgc_dg_sys_info
=no
23630 rm -f core conftest.err conftest.
$ac_objext \
23631 conftest
$ac_exeext conftest.
$ac_ext
23632 LIBS
=$ac_check_lib_save_LIBS
23634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
23635 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
23636 if test "x$ac_cv_lib_dgc_dg_sys_info" = x
""yes; then :
23637 cat >>confdefs.h
<<_ACEOF
23638 #define HAVE_LIBDGC 1
23653 if test "x$gl_save_LIBS" = x
; then
23654 GETLOADAVG_LIBS
=$LIBS
23656 GETLOADAVG_LIBS
=`echo "$LIBS" | sed "s!$gl_save_LIBS!!"`
23661 # Test whether the system declares getloadavg. Solaris has the function
23662 # but declares it in <sys/loadavg.h>, not <stdlib.h>.
23663 for ac_header
in sys
/loadavg.h
23665 ac_fn_c_check_header_mongrel
"$LINENO" "sys/loadavg.h" "ac_cv_header_sys_loadavg_h" "$ac_includes_default"
23666 if test "x$ac_cv_header_sys_loadavg_h" = x
""yes; then :
23667 cat >>confdefs.h
<<_ACEOF
23668 #define HAVE_SYS_LOADAVG_H 1
23675 if test $ac_cv_header_sys_loadavg_h = yes; then
23676 HAVE_SYS_LOADAVG_H
=1
23678 HAVE_SYS_LOADAVG_H
=0
23680 ac_fn_c_check_decl
"$LINENO" "getloadavg" "ac_cv_have_decl_getloadavg" "#if HAVE_SYS_LOADAVG_H
23681 # include <sys/loadavg.h>
23683 #include <stdlib.h>
23685 if test "x$ac_cv_have_decl_getloadavg" = x
""yes; then :
23688 HAVE_DECL_GETLOADAVG
=0
23692 if test $HAVE_GETLOADAVG = 0; then
23701 gl_LIBOBJS
="$gl_LIBOBJS getloadavg.$ac_objext"
23704 # Figure out what our getloadavg.c needs.
23708 # On HPUX9, an unprivileged user can get load averages this way.
23709 if test $gl_func_getloadavg_done = no
; then
23710 for ac_func
in pstat_getdynamic
23712 ac_fn_c_check_func
"$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
23713 if test "x$ac_cv_func_pstat_getdynamic" = x
""yes; then :
23714 cat >>confdefs.h
<<_ACEOF
23715 #define HAVE_PSTAT_GETDYNAMIC 1
23717 gl_func_getloadavg_done
=yes
23723 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
23724 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
23725 # Irix 4.0.5F has the header but not the library.
23726 if test $gl_func_getloadavg_done = no
&& test "$ac_cv_lib_elf_elf_begin" = yes \
23727 && test "$ac_cv_lib_kvm_kvm_open" = yes; then
23728 gl_func_getloadavg_done
=yes
23730 $as_echo "#define SVR4 1" >>confdefs.h
23734 if test $gl_func_getloadavg_done = no
; then
23735 ac_fn_c_check_header_mongrel
"$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
23736 if test "x$ac_cv_header_inq_stats_cpustats_h" = x
""yes; then :
23737 gl_func_getloadavg_done
=yes
23739 $as_echo "#define UMAX 1" >>confdefs.h
23742 $as_echo "#define UMAX4_3 1" >>confdefs.h
23749 if test $gl_func_getloadavg_done = no
; then
23750 ac_fn_c_check_header_mongrel
"$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
23751 if test "x$ac_cv_header_sys_cpustats_h" = x
""yes; then :
23752 gl_func_getloadavg_done
=yes; $as_echo "#define UMAX 1" >>confdefs.h
23759 if test $gl_func_getloadavg_done = no
; then
23760 for ac_header
in mach
/mach.h
23762 ac_fn_c_check_header_mongrel
"$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
23763 if test "x$ac_cv_header_mach_mach_h" = x
""yes; then :
23764 cat >>confdefs.h
<<_ACEOF
23765 #define HAVE_MACH_MACH_H 1
23774 for ac_header
in nlist.h
23776 ac_fn_c_check_header_mongrel
"$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
23777 if test "x$ac_cv_header_nlist_h" = x
""yes; then :
23778 cat >>confdefs.h
<<_ACEOF
23779 #define HAVE_NLIST_H 1
23781 ac_fn_c_check_member
"$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
23783 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x
""yes; then :
23785 cat >>confdefs.h
<<_ACEOF
23786 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
23792 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23793 /* end confdefs.h. */
23799 #ifdef HAVE_STRUCT_NLIST_N_UN_N_NAME
23800 x.n_un.n_name = "";
23808 if ac_fn_c_try_link
"$LINENO"; then :
23810 $as_echo "#define N_NAME_POINTER 1" >>confdefs.h
23813 rm -f core conftest.err conftest.
$ac_objext \
23814 conftest
$ac_exeext conftest.
$ac_ext
23826 GNULIB_GETLOADAVG
=1
23837 if test $REPLACE_GETOPT = 1; then
23846 gl_LIBOBJS
="$gl_LIBOBJS getopt.$ac_objext"
23856 gl_LIBOBJS
="$gl_LIBOBJS getopt1.$ac_objext"
23861 GNULIB_GL_UNISTD_H_GETOPT
=1
23871 if test -n "$gl_replace_getopt"; then
23875 if test $REPLACE_GETOPT = 1; then
23879 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
23885 if test $REPLACE_GETOPT = 1; then
23894 gl_LIBOBJS
="$gl_LIBOBJS getopt.$ac_objext"
23904 gl_LIBOBJS
="$gl_LIBOBJS getopt1.$ac_objext"
23909 GNULIB_GL_UNISTD_H_GETOPT
=1
23923 gl_gettimeofday_timezone
=void
23924 if test $ac_cv_func_gettimeofday != yes; then
23925 HAVE_GETTIMEOFDAY
=0
23930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday clobbers localtime buffer" >&5
23931 $as_echo_n "checking whether gettimeofday clobbers localtime buffer... " >&6; }
23932 if test "${gl_cv_func_gettimeofday_clobber+set}" = set; then :
23933 $as_echo_n "(cached) " >&6
23935 if test "$cross_compiling" = yes; then :
23936 # When cross-compiling:
23938 # Guess all is fine on glibc systems.
23939 *-gnu*) gl_cv_func_gettimeofday_clobber
="guessing no" ;;
23940 # If we don't know, assume the worst.
23941 *) gl_cv_func_gettimeofday_clobber
="guessing yes" ;;
23945 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23946 /* end confdefs.h. */
23947 #include <string.h>
23948 #include <sys/time.h>
23950 #include <stdlib.h>
23958 struct tm saved_lt;
23960 lt = localtime (&t);
23962 gettimeofday (&tv, NULL);
23963 return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0;
23969 if ac_fn_c_try_run
"$LINENO"; then :
23970 gl_cv_func_gettimeofday_clobber
=no
23972 gl_cv_func_gettimeofday_clobber
=yes
23974 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23975 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_clobber" >&5
23980 $as_echo "$gl_cv_func_gettimeofday_clobber" >&6; }
23982 case "$gl_cv_func_gettimeofday_clobber" in
23984 REPLACE_GETTIMEOFDAY
=1
23987 $as_echo "#define gmtime rpl_gmtime" >>confdefs.h
23990 $as_echo "#define localtime rpl_localtime" >>confdefs.h
23994 $as_echo "#define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1" >>confdefs.h
23999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday with POSIX signature" >&5
24000 $as_echo_n "checking for gettimeofday with POSIX signature... " >&6; }
24001 if test "${gl_cv_func_gettimeofday_posix_signature+set}" = set; then :
24002 $as_echo_n "(cached) " >&6
24004 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24005 /* end confdefs.h. */
24006 #include <sys/time.h>
24008 int gettimeofday (struct timeval *restrict, void *restrict);
24013 /* glibc uses struct timezone * rather than the POSIX void *
24014 if _GNU_SOURCE is defined. However, since the only portable
24015 use of gettimeofday uses NULL as the second parameter, and
24016 since the glibc definition is actually more typesafe, it is
24017 not worth wrapping this to get a compliant signature. */
24018 int (*f) (struct timeval *restrict, void *restrict)
24021 return !(x | c.tv_sec | c.tv_usec);
24027 if ac_fn_c_try_compile
"$LINENO"; then :
24028 gl_cv_func_gettimeofday_posix_signature
=yes
24030 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24031 /* end confdefs.h. */
24032 #include <sys/time.h>
24033 int gettimeofday (struct timeval *restrict, struct timezone *restrict);
24043 if ac_fn_c_try_compile
"$LINENO"; then :
24044 gl_cv_func_gettimeofday_posix_signature
=almost
24046 gl_cv_func_gettimeofday_posix_signature
=no
24048 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24050 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_posix_signature" >&5
24053 $as_echo "$gl_cv_func_gettimeofday_posix_signature" >&6; }
24054 if test $gl_cv_func_gettimeofday_posix_signature = almost
; then
24055 gl_gettimeofday_timezone
='struct timezone'
24056 elif test $gl_cv_func_gettimeofday_posix_signature != yes; then
24057 REPLACE_GETTIMEOFDAY
=1
24059 if test $REPLACE_STRUCT_TIMEVAL = 1; then
24060 REPLACE_GETTIMEOFDAY
=1
24065 cat >>confdefs.h
<<_ACEOF
24066 #define GETTIMEOFDAY_TIMEZONE $gl_gettimeofday_timezone
24070 if test $HAVE_GETTIMEOFDAY = 0 ||
test $REPLACE_GETTIMEOFDAY = 1; then
24079 gl_LIBOBJS
="$gl_LIBOBJS gettimeofday.$ac_objext"
24082 for ac_header
in sys
/timeb.h
24084 ac_fn_c_check_header_mongrel
"$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
24085 if test "x$ac_cv_header_sys_timeb_h" = x
""yes; then :
24086 cat >>confdefs.h
<<_ACEOF
24087 #define HAVE_SYS_TIMEB_H 1
24094 for ac_func
in _ftime
24096 ac_fn_c_check_func
"$LINENO" "_ftime" "ac_cv_func__ftime"
24097 if test "x$ac_cv_func__ftime" = x
""yes; then :
24098 cat >>confdefs.h
<<_ACEOF
24099 #define HAVE__FTIME 1
24112 GNULIB_GETTIMEOFDAY
=1
24123 if test $ac_cv_func_lstat = yes; then
24125 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
24134 if test $REPLACE_LSTAT = 1; then
24143 gl_LIBOBJS
="$gl_LIBOBJS lstat.$ac_objext"
24163 if test $ac_cv_have_decl_memrchr = no
; then
24164 HAVE_DECL_MEMRCHR
=0
24167 for ac_func
in memrchr
24169 ac_fn_c_check_func
"$LINENO" "memrchr" "ac_cv_func_memrchr"
24170 if test "x$ac_cv_func_memrchr" = x
""yes; then :
24171 cat >>confdefs.h
<<_ACEOF
24172 #define HAVE_MEMRCHR 1
24179 if test $ac_cv_func_memrchr = no
; then
24188 gl_LIBOBJS
="$gl_LIBOBJS memrchr.$ac_objext"
24209 if test $ac_cv_func_mkostemp != yes; then
24213 if test $HAVE_MKOSTEMP = 0; then
24222 gl_LIBOBJS
="$gl_LIBOBJS mkostemp.$ac_objext"
24229 cat >>confdefs.h
<<_ACEOF
24230 #define GNULIB_MKOSTEMP 1
24251 if test $APPLE_UNIVERSAL_BUILD = 1; then
24252 # A universal build on Apple Mac OS X platforms.
24253 # The test result would be 'yes' in 32-bit mode and 'no' in 64-bit mode.
24254 # But we need a configuration result that is valid in both modes.
24255 gl_cv_func_working_mktime
=no
24257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
24258 $as_echo_n "checking for working mktime... " >&6; }
24259 if test "${gl_cv_func_working_mktime+set}" = set; then :
24260 $as_echo_n "(cached) " >&6
24262 if test "$cross_compiling" = yes; then :
24263 gl_cv_func_working_mktime
=no
24265 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24266 /* end confdefs.h. */
24267 /* Test program from Paul Eggert and Tony Leneis. */
24268 #include <limits.h>
24269 #include <stdlib.h>
24272 #ifdef HAVE_UNISTD_H
24273 # include <unistd.h>
24276 #if HAVE_DECL_ALARM
24277 # include <signal.h>
24280 /* Work around redefinition to rpl_putenv by other config tests. */
24283 static time_t time_t_max;
24284 static time_t time_t_min;
24286 /* Values we'll use to set the TZ environment variable. */
24287 static char *tz_strings[] = {
24288 (char *) 0, "TZ=GMT0", "TZ=JST-9",
24289 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
24291 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
24293 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
24294 Based on a problem report from Andreas Jaeger. */
24296 spring_forward_gap ()
24298 /* glibc (up to about 1998-10-07) failed this test. */
24301 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
24302 instead of "TZ=America/Vancouver" in order to detect the bug even
24303 on systems that don't support the Olson extension, or don't have the
24304 full zoneinfo tables installed. */
24305 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
24314 return mktime (&tm) != (time_t) -1;
24318 mktime_test1 (time_t now)
24321 return ! (lt = localtime (&now)) || mktime (lt) == now;
24325 mktime_test (time_t now)
24327 return (mktime_test1 (now)
24328 && mktime_test1 ((time_t) (time_t_max - now))
24329 && mktime_test1 ((time_t) (time_t_min + now)));
24335 /* Based on code from Ariel Faigon. */
24345 return tm.tm_mon == 2 && tm.tm_mday == 31;
24349 bigtime_test (int j)
24353 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
24354 now = mktime (&tm);
24355 if (now != (time_t) -1)
24357 struct tm *lt = localtime (&now);
24359 && lt->tm_year == tm.tm_year
24360 && lt->tm_mon == tm.tm_mon
24361 && lt->tm_mday == tm.tm_mday
24362 && lt->tm_hour == tm.tm_hour
24363 && lt->tm_min == tm.tm_min
24364 && lt->tm_sec == tm.tm_sec
24365 && lt->tm_yday == tm.tm_yday
24366 && lt->tm_wday == tm.tm_wday
24367 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
24368 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
24377 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
24378 ignoring leap seconds. */
24379 unsigned long int answer = 2527315200UL;
24383 tm.tm_year = 2050 - 1900;
24386 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
24389 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
24390 instead of "TZ=America/Vancouver" in order to detect the bug even
24391 on systems that don't support the Olson extension, or don't have the
24392 full zoneinfo tables installed. */
24393 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
24397 /* Check that the result is either a failure, or close enough
24398 to the correct answer that we can assume the discrepancy is
24399 due to leap seconds. */
24400 return (t == (time_t) -1
24401 || (0 < t && answer - 120 <= t && t <= answer + 120));
24410 int time_t_signed_magnitude = (time_t) ~ (time_t) 0 < (time_t) -1;
24411 int time_t_signed = ! ((time_t) 0 < (time_t) -1);
24413 #if HAVE_DECL_ALARM
24414 /* This test makes some buggy mktime implementations loop.
24415 Give up after 60 seconds; a mktime slower than that
24416 isn't worth using anyway. */
24417 signal (SIGALRM, SIG_DFL);
24421 time_t_max = (! time_t_signed
24423 : ((((time_t) 1 << (sizeof (time_t) * CHAR_BIT - 2)) - 1)
24425 time_t_min = (! time_t_signed
24427 : time_t_signed_magnitude
24431 delta = time_t_max / 997; /* a suitable prime number */
24432 for (i = 0; i < N_STRINGS; i++)
24435 putenv (tz_strings[i]);
24437 for (t = 0; t <= time_t_max - delta && (result & 1) == 0; t += delta)
24438 if (! mktime_test (t))
24440 if ((result & 2) == 0
24441 && ! (mktime_test ((time_t) 1)
24442 && mktime_test ((time_t) (60 * 60))
24443 && mktime_test ((time_t) (60 * 60 * 24))))
24446 for (j = 1; (result & 4) == 0; j <<= 1)
24448 if (! bigtime_test (j))
24450 if (INT_MAX / 2 < j)
24453 if ((result & 8) == 0 && ! bigtime_test (INT_MAX))
24456 if (! irix_6_4_bug ())
24458 if (! spring_forward_gap ())
24460 if (! year_2050_test ())
24465 if ac_fn_c_try_run
"$LINENO"; then :
24466 gl_cv_func_working_mktime
=yes
24468 gl_cv_func_working_mktime
=no
24470 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24471 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_mktime" >&5
24477 $as_echo "$gl_cv_func_working_mktime" >&6; }
24479 if test $gl_cv_func_working_mktime = no
; then
24485 if test $REPLACE_MKTIME = 1; then
24494 gl_LIBOBJS
="$gl_LIBOBJS mktime.$ac_objext"
24516 if test $ac_cv_func_pipe2 != yes; then
24536 if test $ac_cv_func_pselect = yes; then
24537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether signature of pselect conforms to POSIX" >&5
24538 $as_echo_n "checking whether signature of pselect conforms to POSIX... " >&6; }
24539 if test "${gl_cv_sig_pselect+set}" = set; then :
24540 $as_echo_n "(cached) " >&6
24542 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24543 /* end confdefs.h. */
24544 #include <sys/select.h>
24549 int (*p) (int, fd_set *, fd_set *, fd_set *restrict,
24550 struct timespec const *restrict,
24551 sigset_t const *restrict) = pselect;
24557 if ac_fn_c_try_link
"$LINENO"; then :
24558 gl_cv_sig_pselect
=yes
24560 gl_cv_sig_pselect
=no
24562 rm -f core conftest.err conftest.
$ac_objext \
24563 conftest
$ac_exeext conftest.
$ac_ext
24565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sig_pselect" >&5
24566 $as_echo "$gl_cv_sig_pselect" >&6; }
24568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pselect detects invalid fds" >&5
24569 $as_echo_n "checking whether pselect detects invalid fds... " >&6; }
24570 if test "${gl_cv_func_pselect_detects_ebadf+set}" = set; then :
24571 $as_echo_n "(cached) " >&6
24574 if test "$cross_compiling" = yes; then :
24577 # Guess yes on glibc systems.
24578 *-gnu*) gl_cv_func_pselect_detects_ebadf
="guessing yes" ;;
24579 # If we don't know, assume the worst.
24580 *) gl_cv_func_pselect_detects_ebadf
="guessing no" ;;
24584 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24585 /* end confdefs.h. */
24587 #include <sys/types.h>
24588 #include <sys/time.h>
24589 #if HAVE_SYS_SELECT_H
24590 # include <sys/select.h>
24592 #include <unistd.h>
24604 struct timespec timeout;
24605 timeout.tv_sec = 0;
24606 timeout.tv_nsec = 5000;
24607 return pselect (17, &set, NULL, NULL, &timeout, NULL) != -1 || errno != EBADF;
24613 if ac_fn_c_try_run
"$LINENO"; then :
24614 gl_cv_func_pselect_detects_ebadf
=yes
24616 gl_cv_func_pselect_detects_ebadf
=no
24618 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24619 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pselect_detects_ebadf" >&5
24625 $as_echo "$gl_cv_func_pselect_detects_ebadf" >&6; }
24626 case $gl_cv_func_pselect_detects_ebadf in
24628 *) REPLACE_PSELECT
=1 ;;
24632 if test $ac_cv_func_pselect = no ||
test $gl_cv_sig_pselect = no
; then
24636 if test $HAVE_PSELECT = 0 ||
test $REPLACE_PSELECT = 1; then
24645 gl_LIBOBJS
="$gl_LIBOBJS pselect.$ac_objext"
24663 LIB_PTHREAD_SIGMASK
=
24668 if test "$gl_threads_api" = posix
; then
24669 if test $ac_cv_func_pthread_sigmask = yes; then
24672 if test -n "$LIBMULTITHREAD"; then
24673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_sigmask in $LIBMULTITHREAD" >&5
24674 $as_echo_n "checking for pthread_sigmask in $LIBMULTITHREAD... " >&6; }
24675 if test "${gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD+set}" = set; then :
24676 $as_echo_n "(cached) " >&6
24678 gl_save_LIBS
="$LIBS"
24679 LIBS
="$LIBS $LIBMULTITHREAD"
24680 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24681 /* end confdefs.h. */
24682 #include <pthread.h>
24683 #include <signal.h>
24688 return pthread_sigmask (0, (sigset_t *) 0, (sigset_t *) 0);
24694 if ac_fn_c_try_link
"$LINENO"; then :
24695 gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD
=yes
24697 gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD
=no
24699 rm -f core conftest.err conftest.
$ac_objext \
24700 conftest
$ac_exeext conftest.
$ac_ext
24701 LIBS
="$gl_save_LIBS"
24704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD" >&5
24705 $as_echo "$gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD" >&6; }
24706 if test $gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD = yes; then
24707 LIB_PTHREAD_SIGMASK
="$LIBMULTITHREAD"
24709 HAVE_PTHREAD_SIGMASK
=0
24712 HAVE_PTHREAD_SIGMASK
=0
24716 if test $ac_cv_func_pthread_sigmask = yes; then
24717 REPLACE_PTHREAD_SIGMASK
=1
24719 HAVE_PTHREAD_SIGMASK
=0
24726 if test $HAVE_PTHREAD_SIGMASK = 1; then
24729 if test -z "$LIB_PTHREAD_SIGMASK"; then
24730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask works without -lpthread" >&5
24731 $as_echo_n "checking whether pthread_sigmask works without -lpthread... " >&6; }
24732 if test "${gl_cv_func_pthread_sigmask_in_libc_works+set}" = set; then :
24733 $as_echo_n "(cached) " >&6
24736 if test "$cross_compiling" = yes; then :
24739 freebsd
* | hpux
* | solaris | solaris2.
[2-9]*)
24740 gl_cv_func_pthread_sigmask_in_libc_works
="guessing no";;
24742 gl_cv_func_pthread_sigmask_in_libc_works
="guessing yes";;
24746 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24747 /* end confdefs.h. */
24749 #include <pthread.h>
24750 #include <signal.h>
24751 #include <stddef.h>
24755 sigemptyset (&set);
24756 return pthread_sigmask (1729, &set, NULL) != 0;
24759 if ac_fn_c_try_run
"$LINENO"; then :
24760 gl_cv_func_pthread_sigmask_in_libc_works
=no
24762 gl_cv_func_pthread_sigmask_in_libc_works
=yes
24764 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24765 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_in_libc_works" >&5
24771 $as_echo "$gl_cv_func_pthread_sigmask_in_libc_works" >&6; }
24772 case "$gl_cv_func_pthread_sigmask_in_libc_works" in
24774 REPLACE_PTHREAD_SIGMASK
=1
24776 $as_echo "#define PTHREAD_SIGMASK_INEFFECTIVE 1" >>confdefs.h
24782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask returns error numbers" >&5
24783 $as_echo_n "checking whether pthread_sigmask returns error numbers... " >&6; }
24784 if test "${gl_cv_func_pthread_sigmask_return_works+set}" = set; then :
24785 $as_echo_n "(cached) " >&6
24788 gl_save_LIBS
="$LIBS"
24789 LIBS
="$LIBS $LIB_PTHREAD_SIGMASK"
24790 if test "$cross_compiling" = yes; then :
24793 gl_cv_func_pthread_sigmask_return_works
="guessing no";;
24795 gl_cv_func_pthread_sigmask_return_works
="guessing yes";;
24799 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24800 /* end confdefs.h. */
24802 #include <pthread.h>
24803 #include <signal.h>
24804 #include <stddef.h>
24808 sigemptyset (&set);
24809 if (pthread_sigmask (1729, &set, NULL) == -1)
24814 if ac_fn_c_try_run
"$LINENO"; then :
24815 gl_cv_func_pthread_sigmask_return_works
=yes
24817 gl_cv_func_pthread_sigmask_return_works
=no
24819 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24820 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24823 LIBS
="$gl_save_LIBS"
24826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_return_works" >&5
24827 $as_echo "$gl_cv_func_pthread_sigmask_return_works" >&6; }
24828 case "$gl_cv_func_pthread_sigmask_return_works" in
24830 REPLACE_PTHREAD_SIGMASK
=1
24832 $as_echo "#define PTHREAD_SIGMASK_FAILS_WITH_ERRNO 1" >>confdefs.h
24837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask unblocks signals correctly" >&5
24838 $as_echo_n "checking whether pthread_sigmask unblocks signals correctly... " >&6; }
24839 if test "${gl_cv_func_pthread_sigmask_unblock_works+set}" = set; then :
24840 $as_echo_n "(cached) " >&6
24845 gl_cv_func_pthread_sigmask_unblock_works
="guessing no";;
24847 gl_cv_func_pthread_sigmask_unblock_works
="guessing yes";;
24849 gl_save_LIBS
="$LIBS"
24850 LIBS
="$LIBS $LIBMULTITHREAD"
24851 if test "$cross_compiling" = yes; then :
24854 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24855 /* end confdefs.h. */
24857 #include <pthread.h>
24858 #include <signal.h>
24860 #include <stdlib.h>
24861 #include <unistd.h>
24862 static volatile int sigint_occurred;
24864 sigint_handler (int sig)
24871 int pid = getpid ();
24873 signal (SIGINT, sigint_handler);
24874 sigemptyset (&set);
24875 sigaddset (&set, SIGINT);
24876 if (!(pthread_sigmask (SIG_BLOCK, &set, NULL) == 0))
24878 sprintf (command, "sh -c 'sleep 1; kill -%d %d' &", SIGINT, pid);
24879 if (!(system (command) == 0))
24882 if (!(sigint_occurred == 0))
24884 if (!(pthread_sigmask (SIG_UNBLOCK, &set, NULL) == 0))
24886 if (!(sigint_occurred == 1)) /* This fails on IRIX. */
24891 if ac_fn_c_try_run
"$LINENO"; then :
24894 gl_cv_func_pthread_sigmask_unblock_works
=no
24896 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24897 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24900 LIBS
="$gl_save_LIBS"
24903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_unblock_works" >&5
24904 $as_echo "$gl_cv_func_pthread_sigmask_unblock_works" >&6; }
24905 case "$gl_cv_func_pthread_sigmask_unblock_works" in
24907 REPLACE_PTHREAD_SIGMASK
=1
24909 $as_echo "#define PTHREAD_SIGMASK_UNBLOCK_BUG 1" >>confdefs.h
24915 if test $HAVE_PTHREAD_SIGMASK = 0 ||
test $REPLACE_PTHREAD_SIGMASK = 1; then
24924 gl_LIBOBJS
="$gl_LIBOBJS pthread_sigmask.$ac_objext"
24927 if test $HAVE_PTHREAD_SIGMASK = 1; then
24929 $as_echo "#define HAVE_PTHREAD_SIGMASK 1" >>confdefs.h
24939 GNULIB_PTHREAD_SIGMASK
=1
24947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for putenv compatible with GNU and SVID" >&5
24948 $as_echo_n "checking for putenv compatible with GNU and SVID... " >&6; }
24949 if test "${gl_cv_func_svid_putenv+set}" = set; then :
24950 $as_echo_n "(cached) " >&6
24952 if test "$cross_compiling" = yes; then :
24954 # Guess yes on glibc systems.
24955 *-gnu*) gl_cv_func_svid_putenv
="guessing yes" ;;
24956 # If we don't know, assume the worst.
24957 *) gl_cv_func_svid_putenv
="guessing no" ;;
24961 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24962 /* end confdefs.h. */
24963 $ac_includes_default
24968 /* Put it in env. */
24969 if (putenv ("CONFTEST_putenv=val"))
24972 /* Try to remove it. */
24973 if (putenv ("CONFTEST_putenv"))
24976 /* Make sure it was deleted. */
24977 if (getenv ("CONFTEST_putenv") != 0)
24986 if ac_fn_c_try_run
"$LINENO"; then :
24987 gl_cv_func_svid_putenv
=yes
24989 gl_cv_func_svid_putenv
=no
24991 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24992 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_svid_putenv" >&5
24998 $as_echo "$gl_cv_func_svid_putenv" >&6; }
24999 case "$gl_cv_func_svid_putenv" in
25006 if test $REPLACE_PUTENV = 1; then
25015 gl_LIBOBJS
="$gl_LIBOBJS putenv.$ac_objext"
25018 ac_fn_c_check_decl
"$LINENO" "_putenv" "ac_cv_have_decl__putenv" "$ac_includes_default"
25019 if test "x$ac_cv_have_decl__putenv" = x
""yes; then :
25025 cat >>confdefs.h
<<_ACEOF
25026 #define HAVE_DECL__PUTENV $ac_have_decl
25043 # Check whether --enable-acl was given.
25044 if test "${enable_acl+set}" = set; then :
25045 enableval
=$enable_acl;
25053 if test "x$enable_acl" != "xno"; then
25054 for ac_header
in sys
/acl.h
25056 ac_fn_c_check_header_mongrel
"$LINENO" "sys/acl.h" "ac_cv_header_sys_acl_h" "$ac_includes_default"
25057 if test "x$ac_cv_header_sys_acl_h" = x
""yes; then :
25058 cat >>confdefs.h
<<_ACEOF
25059 #define HAVE_SYS_ACL_H 1
25066 if test $ac_cv_header_sys_acl_h = yes; then
25069 if test $use_acl = 0; then
25070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing acl_get_file" >&5
25071 $as_echo_n "checking for library containing acl_get_file... " >&6; }
25072 if test "${ac_cv_search_acl_get_file+set}" = set; then :
25073 $as_echo_n "(cached) " >&6
25075 ac_func_search_save_LIBS
=$LIBS
25076 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25077 /* end confdefs.h. */
25079 /* Override any GCC internal prototype to avoid an error.
25080 Use char because int might match the return type of a GCC
25081 builtin and then its argument prototype would still apply. */
25085 char acl_get_file ();
25089 return acl_get_file ();
25094 for ac_lib
in '' acl pacl
; do
25095 if test -z "$ac_lib"; then
25096 ac_res
="none required"
25099 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
25101 if ac_fn_c_try_link
"$LINENO"; then :
25102 ac_cv_search_acl_get_file
=$ac_res
25104 rm -f core conftest.err conftest.
$ac_objext \
25106 if test "${ac_cv_search_acl_get_file+set}" = set; then :
25110 if test "${ac_cv_search_acl_get_file+set}" = set; then :
25113 ac_cv_search_acl_get_file
=no
25115 rm conftest.
$ac_ext
25116 LIBS
=$ac_func_search_save_LIBS
25118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_acl_get_file" >&5
25119 $as_echo "$ac_cv_search_acl_get_file" >&6; }
25120 ac_res
=$ac_cv_search_acl_get_file
25121 if test "$ac_res" != no
; then :
25122 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
25123 if test "$ac_cv_search_acl_get_file" != "none required"; then
25124 LIB_ACL
=$ac_cv_search_acl_get_file
25126 for ac_func
in acl_get_file acl_get_fd acl_set_file acl_set_fd \
25127 acl_free acl_from_mode acl_from_text \
25128 acl_delete_def_file acl_extended_file \
25129 acl_delete_fd_np acl_delete_file_np \
25130 acl_copy_ext_native acl_create_entry_np \
25131 acl_to_short_text acl_free_text
25133 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25134 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
25135 eval as_val
=\$
$as_ac_var
25136 if test "x$as_val" = x
""yes; then :
25137 cat >>confdefs.h
<<_ACEOF
25138 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25144 # If the acl_get_file bug is detected, don't enable the ACL support.
25146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working acl_get_file" >&5
25147 $as_echo_n "checking for working acl_get_file... " >&6; }
25148 if test "${gl_cv_func_working_acl_get_file+set}" = set; then :
25149 $as_echo_n "(cached) " >&6
25151 if test "$cross_compiling" = yes; then :
25152 gl_cv_func_working_acl_get_file
=cross-compiling
25154 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25155 /* end confdefs.h. */
25156 #include <sys/types.h>
25157 #include <sys/acl.h>
25163 if (!acl_get_file (".", ACL_TYPE_ACCESS) && errno == ENOENT)
25171 if ac_fn_c_try_run
"$LINENO"; then :
25172 gl_cv_func_working_acl_get_file
=yes
25174 gl_cv_func_working_acl_get_file
=no
25176 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
25177 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
25181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_acl_get_file" >&5
25182 $as_echo "$gl_cv_func_working_acl_get_file" >&6; }
25184 if test $gl_cv_func_working_acl_get_file = yes; then :
25188 if test $use_acl = 1; then
25189 for ac_header
in acl
/libacl.h
25191 ac_fn_c_check_header_mongrel
"$LINENO" "acl/libacl.h" "ac_cv_header_acl_libacl_h" "$ac_includes_default"
25192 if test "x$ac_cv_header_acl_libacl_h" = x
""yes; then :
25193 cat >>confdefs.h
<<_ACEOF
25194 #define HAVE_ACL_LIBACL_H 1
25209 for ac_func
in acl_entries
25211 ac_fn_c_check_func
"$LINENO" "acl_entries" "ac_cv_func_acl_entries"
25212 if test "x$ac_cv_func_acl_entries" = x
""yes; then :
25213 cat >>confdefs.h
<<_ACEOF
25214 #define HAVE_ACL_ENTRIES 1
25219 gl_LIBOBJS
="$gl_LIBOBJS $ac_func.$ac_objext"
25225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_FIRST_ENTRY" >&5
25226 $as_echo_n "checking for ACL_FIRST_ENTRY... " >&6; }
25227 if test "${gl_cv_acl_ACL_FIRST_ENTRY+set}" = set; then :
25228 $as_echo_n "(cached) " >&6
25230 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25231 /* end confdefs.h. */
25232 #include <sys/types.h>
25233 #include <sys/acl.h>
25234 int type = ACL_FIRST_ENTRY;
25243 if ac_fn_c_try_compile
"$LINENO"; then :
25244 gl_cv_acl_ACL_FIRST_ENTRY
=yes
25246 gl_cv_acl_ACL_FIRST_ENTRY
=no
25248 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_acl_ACL_FIRST_ENTRY" >&5
25251 $as_echo "$gl_cv_acl_ACL_FIRST_ENTRY" >&6; }
25252 if test $gl_cv_acl_ACL_FIRST_ENTRY = yes; then
25254 $as_echo "#define HAVE_ACL_FIRST_ENTRY 1" >>confdefs.h
25257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_EXTENDED" >&5
25258 $as_echo_n "checking for ACL_TYPE_EXTENDED... " >&6; }
25259 if test "${gl_cv_acl_ACL_TYPE_EXTENDED+set}" = set; then :
25260 $as_echo_n "(cached) " >&6
25262 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25263 /* end confdefs.h. */
25264 #include <sys/types.h>
25265 #include <sys/acl.h>
25266 int type = ACL_TYPE_EXTENDED;
25275 if ac_fn_c_try_compile
"$LINENO"; then :
25276 gl_cv_acl_ACL_TYPE_EXTENDED
=yes
25278 gl_cv_acl_ACL_TYPE_EXTENDED
=no
25280 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_acl_ACL_TYPE_EXTENDED" >&5
25283 $as_echo "$gl_cv_acl_ACL_TYPE_EXTENDED" >&6; }
25284 if test $gl_cv_acl_ACL_TYPE_EXTENDED = yes; then
25286 $as_echo "#define HAVE_ACL_TYPE_EXTENDED 1" >>confdefs.h
25297 if test $use_acl = 0; then
25298 for ac_func
in facl
25300 ac_fn_c_check_func
"$LINENO" "facl" "ac_cv_func_facl"
25301 if test "x$ac_cv_func_facl" = x
""yes; then :
25302 cat >>confdefs.h
<<_ACEOF
25303 #define HAVE_FACL 1
25309 if test $ac_cv_func_facl = yes; then
25310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing acl_trivial" >&5
25311 $as_echo_n "checking for library containing acl_trivial... " >&6; }
25312 if test "${ac_cv_search_acl_trivial+set}" = set; then :
25313 $as_echo_n "(cached) " >&6
25315 ac_func_search_save_LIBS
=$LIBS
25316 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25317 /* end confdefs.h. */
25319 /* Override any GCC internal prototype to avoid an error.
25320 Use char because int might match the return type of a GCC
25321 builtin and then its argument prototype would still apply. */
25325 char acl_trivial ();
25329 return acl_trivial ();
25334 for ac_lib
in '' sec
; do
25335 if test -z "$ac_lib"; then
25336 ac_res
="none required"
25339 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
25341 if ac_fn_c_try_link
"$LINENO"; then :
25342 ac_cv_search_acl_trivial
=$ac_res
25344 rm -f core conftest.err conftest.
$ac_objext \
25346 if test "${ac_cv_search_acl_trivial+set}" = set; then :
25350 if test "${ac_cv_search_acl_trivial+set}" = set; then :
25353 ac_cv_search_acl_trivial
=no
25355 rm conftest.
$ac_ext
25356 LIBS
=$ac_func_search_save_LIBS
25358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_acl_trivial" >&5
25359 $as_echo "$ac_cv_search_acl_trivial" >&6; }
25360 ac_res
=$ac_cv_search_acl_trivial
25361 if test "$ac_res" != no
; then :
25362 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
25363 if test "$ac_cv_search_acl_trivial" != "none required"; then
25364 LIB_ACL
=$ac_cv_search_acl_trivial
25369 for ac_func
in acl_trivial
25371 ac_fn_c_check_func
"$LINENO" "acl_trivial" "ac_cv_func_acl_trivial"
25372 if test "x$ac_cv_func_acl_trivial" = x
""yes; then :
25373 cat >>confdefs.h
<<_ACEOF
25374 #define HAVE_ACL_TRIVIAL 1
25384 if test $use_acl = 0; then
25385 for ac_func
in getacl
25387 ac_fn_c_check_func
"$LINENO" "getacl" "ac_cv_func_getacl"
25388 if test "x$ac_cv_func_getacl" = x
""yes; then :
25389 cat >>confdefs.h
<<_ACEOF
25390 #define HAVE_GETACL 1
25396 if test $ac_cv_func_getacl = yes; then
25399 for ac_header
in aclv.h
25401 ac_fn_c_check_header_compile
"$LINENO" "aclv.h" "ac_cv_header_aclv_h" "#include <sys/types.h>
25403 if test "x$ac_cv_header_aclv_h" = x
""yes; then :
25404 cat >>confdefs.h
<<_ACEOF
25405 #define HAVE_ACLV_H 1
25414 if test $use_acl = 0; then
25415 for ac_func
in aclx_get
25417 ac_fn_c_check_func
"$LINENO" "aclx_get" "ac_cv_func_aclx_get"
25418 if test "x$ac_cv_func_aclx_get" = x
""yes; then :
25419 cat >>confdefs.h
<<_ACEOF
25420 #define HAVE_ACLX_GET 1
25426 if test $ac_cv_func_aclx_get = yes; then
25431 if test $use_acl = 0 ||
test "$ac_cv_func_aclx_get" = yes; then
25432 for ac_func
in statacl
25434 ac_fn_c_check_func
"$LINENO" "statacl" "ac_cv_func_statacl"
25435 if test "x$ac_cv_func_statacl" = x
""yes; then :
25436 cat >>confdefs.h
<<_ACEOF
25437 #define HAVE_STATACL 1
25443 if test $ac_cv_func_statacl = yes; then
25448 if test $use_acl = 0; then
25449 for ac_func
in aclsort
25451 ac_fn_c_check_func
"$LINENO" "aclsort" "ac_cv_func_aclsort"
25452 if test "x$ac_cv_func_aclsort" = x
""yes; then :
25453 cat >>confdefs.h
<<_ACEOF
25454 #define HAVE_ACLSORT 1
25460 if test $ac_cv_func_aclsort = yes; then
25467 if test "x$enable_acl$use_acl" = "xyes0"; then
25468 as_fn_error
"ACLs enabled but support not detected" "$LINENO" 5
25469 elif test "x$enable_acl$use_acl" = "xauto0"; then
25470 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libacl development library was not found or not usable." >&5
25471 $as_echo "$as_me: WARNING: libacl development library was not found or not usable." >&2;}
25472 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: emacs will be built without ACL support." >&5
25473 $as_echo "$as_me: WARNING: emacs will be built without ACL support." >&2;}
25478 cat >>confdefs.h
<<_ACEOF
25479 #define USE_ACL $use_acl
25488 if test $ac_cv_func_readlink = no
; then
25491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
25492 $as_echo_n "checking whether readlink signature is correct... " >&6; }
25493 if test "${gl_cv_decl_readlink_works+set}" = set; then :
25494 $as_echo_n "(cached) " >&6
25496 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25497 /* end confdefs.h. */
25498 #include <unistd.h>
25499 /* Cause compilation failure if original declaration has wrong type. */
25500 ssize_t readlink (const char *, char *, size_t);
25509 if ac_fn_c_try_compile
"$LINENO"; then :
25510 gl_cv_decl_readlink_works
=yes
25512 gl_cv_decl_readlink_works
=no
25514 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
25517 $as_echo "$gl_cv_decl_readlink_works" >&6; }
25518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
25519 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
25520 if test "${gl_cv_func_readlink_works+set}" = set; then :
25521 $as_echo_n "(cached) " >&6
25523 # We have readlink, so assume ln -s works.
25524 ln -s conftest.no-such conftest.link
25525 ln -s conftest.link conftest.lnk2
25526 if test "$cross_compiling" = yes; then :
25528 # Guess yes on glibc systems.
25529 *-gnu*) gl_cv_func_readlink_works
="guessing yes" ;;
25530 # If we don't know, assume the worst.
25531 *) gl_cv_func_readlink_works
="guessing no" ;;
25535 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25536 /* end confdefs.h. */
25537 #include <unistd.h>
25543 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
25548 if ac_fn_c_try_run
"$LINENO"; then :
25549 gl_cv_func_readlink_works
=yes
25551 gl_cv_func_readlink_works
=no
25553 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
25554 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
25557 rm -f conftest.link conftest.lnk2
25559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
25560 $as_echo "$gl_cv_func_readlink_works" >&6; }
25561 case "$gl_cv_func_readlink_works" in
25563 if test "$gl_cv_decl_readlink_works" != yes; then
25569 $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
25576 if test $HAVE_READLINK = 0 ||
test $REPLACE_READLINK = 1; then
25585 gl_LIBOBJS
="$gl_LIBOBJS readlink.$ac_objext"
25606 if test $ac_cv_func_readlinkat = no
; then
25610 if test $HAVE_READLINKAT = 0; then
25619 gl_LIBOBJS
="$gl_LIBOBJS readlinkat.$ac_objext"
25627 GNULIB_READLINKAT
=1
25634 for ac_func
in sig2str
25636 ac_fn_c_check_func
"$LINENO" "sig2str" "ac_cv_func_sig2str"
25637 if test "x$ac_cv_func_sig2str" = x
""yes; then :
25638 cat >>confdefs.h
<<_ACEOF
25639 #define HAVE_SIG2STR 1
25646 if test $ac_cv_func_sig2str = no
; then
25655 gl_LIBOBJS
="$gl_LIBOBJS sig2str.$ac_objext"
25672 if test $gl_cv_have_include_next = yes; then
25673 gl_cv_next_signal_h
='<'signal.h
'>'
25675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
25676 $as_echo_n "checking absolute name of <signal.h>... " >&6; }
25677 if test "${gl_cv_next_signal_h+set}" = set; then :
25678 $as_echo_n "(cached) " >&6
25681 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25682 /* end confdefs.h. */
25683 #include <signal.h>
25687 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
25688 *) gl_absname_cpp
="$ac_cpp" ;;
25693 gl_dirsep_regex
='[/\\]'
25696 gl_dirsep_regex
='\/'
25699 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
25701 gl_header_literal_regex
=`echo 'signal.h' \
25702 | sed -e "$gl_make_literal_regex_sed"`
25703 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
25704 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
25709 gl_cv_next_signal_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
25710 sed -n "$gl_absolute_header_sed"`'"'
25714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
25715 $as_echo "$gl_cv_next_signal_h" >&6; }
25717 NEXT_SIGNAL_H
=$gl_cv_next_signal_h
25719 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
25720 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
25721 gl_next_as_first_directive
='<'signal.h
'>'
25723 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
25724 gl_next_as_first_directive
=$gl_cv_next_signal_h
25726 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
=$gl_next_as_first_directive
25732 # AIX declares sig_atomic_t to already include volatile, and C89 compilers
25733 # then choke on 'volatile sig_atomic_t'. C99 requires that it compile.
25734 ac_fn_c_check_type
"$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
25735 #include <signal.h>
25738 if test "x$ac_cv_type_volatile_sig_atomic_t" = x
""yes; then :
25741 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
=0
25750 ac_fn_c_check_type
"$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
25751 #include <signal.h>
25754 if test "x$ac_cv_type_sighandler_t" = x
""yes; then :
25757 HAVE_SIGHANDLER_T
=0
25763 ac_fn_c_check_type
"$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
25764 /* <sys/types.h> is not needed according to POSIX, but the
25765 <sys/socket.h> in i386-unknown-freebsd4.10 and
25766 powerpc-apple-darwin5.5 required it. */
25767 #include <sys/types.h>
25768 #if HAVE_SYS_SOCKET_H
25769 # include <sys/socket.h>
25770 #elif HAVE_WS2TCPIP_H
25771 # include <ws2tcpip.h>
25775 if test "x$ac_cv_type_socklen_t" = x
""yes; then :
25778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
25779 $as_echo_n "checking for socklen_t equivalent... " >&6; }
25780 if test "${gl_cv_socklen_t_equiv+set}" = set; then :
25781 $as_echo_n "(cached) " >&6
25783 # Systems have either "struct sockaddr *" or
25784 # "void *" as the second argument to getpeername
25785 gl_cv_socklen_t_equiv
=
25786 for arg2
in "struct sockaddr" void
; do
25787 for t
in int size_t
"unsigned int" "long int" "unsigned long int"; do
25788 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25789 /* end confdefs.h. */
25790 #include <sys/types.h>
25791 #include <sys/socket.h>
25793 int getpeername (int, $arg2 *, $t *);
25798 getpeername (0, 0, &len);
25803 if ac_fn_c_try_compile
"$LINENO"; then :
25804 gl_cv_socklen_t_equiv
="$t"
25806 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25807 test "$gl_cv_socklen_t_equiv" != "" && break
25809 test "$gl_cv_socklen_t_equiv" != "" && break
25814 if test "$gl_cv_socklen_t_equiv" = ""; then
25815 as_fn_error
"Cannot find a type to use in place of socklen_t" "$LINENO" 5
25817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
25818 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
25820 cat >>confdefs.h
<<_ACEOF
25821 #define socklen_t $gl_cv_socklen_t_equiv
25827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
25828 $as_echo_n "checking for ssize_t... " >&6; }
25829 if test "${gt_cv_ssize_t+set}" = set; then :
25830 $as_echo_n "(cached) " >&6
25832 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25833 /* end confdefs.h. */
25834 #include <sys/types.h>
25838 int x = sizeof (ssize_t *) + sizeof (ssize_t);
25844 if ac_fn_c_try_compile
"$LINENO"; then :
25849 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
25852 $as_echo "$gt_cv_ssize_t" >&6; }
25853 if test $gt_cv_ssize_t = no
; then
25855 $as_echo "#define ssize_t int" >>confdefs.h
25863 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>
25864 #include <sys/stat.h>
25866 if test "x$ac_cv_member_struct_stat_st_atim_tv_nsec" = x
""yes; then :
25868 cat >>confdefs.h
<<_ACEOF
25869 #define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1
25872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat.st_atim is of type struct timespec" >&5
25873 $as_echo_n "checking whether struct stat.st_atim is of type struct timespec... " >&6; }
25874 if test "${ac_cv_typeof_struct_stat_st_atim_is_struct_timespec+set}" = set; then :
25875 $as_echo_n "(cached) " >&6
25877 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25878 /* end confdefs.h. */
25880 #include <sys/types.h>
25881 #include <sys/stat.h>
25882 #if HAVE_SYS_TIME_H
25883 # include <sys/time.h>
25886 struct timespec ts;
25899 if ac_fn_c_try_compile
"$LINENO"; then :
25900 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec
=yes
25902 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec
=no
25904 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&5
25907 $as_echo "$ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&6; }
25908 if test $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec = yes; then
25910 $as_echo "#define TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC 1" >>confdefs.h
25914 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>
25915 #include <sys/stat.h>
25917 if test "x$ac_cv_member_struct_stat_st_atimespec_tv_nsec" = x
""yes; then :
25919 cat >>confdefs.h
<<_ACEOF
25920 #define HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC 1
25925 ac_fn_c_check_member
"$LINENO" "struct stat" "st_atimensec" "ac_cv_member_struct_stat_st_atimensec" "#include <sys/types.h>
25926 #include <sys/stat.h>
25928 if test "x$ac_cv_member_struct_stat_st_atimensec" = x
""yes; then :
25930 cat >>confdefs.h
<<_ACEOF
25931 #define HAVE_STRUCT_STAT_ST_ATIMENSEC 1
25936 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>
25937 #include <sys/stat.h>
25939 if test "x$ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" = x
""yes; then :
25941 cat >>confdefs.h
<<_ACEOF
25942 #define HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC 1
25958 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>
25959 #include <sys/stat.h>
25961 if test "x$ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" = x
""yes; then :
25963 cat >>confdefs.h
<<_ACEOF
25964 #define HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC 1
25969 ac_fn_c_check_member
"$LINENO" "struct stat" "st_birthtimensec" "ac_cv_member_struct_stat_st_birthtimensec" "#include <sys/types.h>
25970 #include <sys/stat.h>
25972 if test "x$ac_cv_member_struct_stat_st_birthtimensec" = x
""yes; then :
25974 cat >>confdefs.h
<<_ACEOF
25975 #define HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC 1
25980 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>
25981 #include <sys/stat.h>
25983 if test "x$ac_cv_member_struct_stat_st_birthtim_tv_nsec" = x
""yes; then :
25985 cat >>confdefs.h
<<_ACEOF
25986 #define HAVE_STRUCT_STAT_ST_BIRTHTIM_TV_NSEC 1
25998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdalign.h" >&5
25999 $as_echo_n "checking for working stdalign.h... " >&6; }
26000 if test "${gl_cv_header_working_stdalign_h+set}" = set; then :
26001 $as_echo_n "(cached) " >&6
26003 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26004 /* end confdefs.h. */
26005 #include <stdalign.h>
26006 #include <stddef.h>
26008 /* Test that alignof yields a result consistent with offsetof.
26009 This catches GCC bug 52023
26010 <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023>. */
26012 template <class t> struct alignof_helper { char a; t b; };
26013 # define ao(type) offsetof (alignof_helper<type>, b)
26015 # define ao(type) offsetof (struct { char a; type b; }, b)
26017 char test_double[ao (double) % _Alignof (double) == 0 ? 1 : -1];
26018 char test_long[ao (long int) % _Alignof (long int) == 0 ? 1 : -1];
26019 char test_alignof[alignof (double) == _Alignof (double) ? 1 : -1];
26021 /* Test _Alignas only on platforms where gnulib can help. */
26023 ((defined __cplusplus && 201103 <= __cplusplus) \
26024 || __GNUC__ || __IBMC__ || __IBMCPP__ || __ICC \
26025 || 0x5110 <= __SUNPRO_C || 1300 <= _MSC_VER)
26026 struct alignas_test { char c; char alignas (8) alignas_8; };
26027 char test_alignas[offsetof (struct alignas_test, alignas_8) == 8
26039 if ac_fn_c_try_compile
"$LINENO"; then :
26040 gl_cv_header_working_stdalign_h
=yes
26042 gl_cv_header_working_stdalign_h
=no
26044 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdalign_h" >&5
26047 $as_echo "$gl_cv_header_working_stdalign_h" >&6; }
26049 if test $gl_cv_header_working_stdalign_h = yes; then
26052 STDALIGN_H
='stdalign.h'
26056 if test -n "$STDALIGN_H"; then
26057 GL_GENERATE_STDALIGN_H_TRUE
=
26058 GL_GENERATE_STDALIGN_H_FALSE
='#'
26060 GL_GENERATE_STDALIGN_H_TRUE
='#'
26061 GL_GENERATE_STDALIGN_H_FALSE
=
26067 NEXT_STDARG_H
='<stdarg.h>'
26068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
26069 $as_echo_n "checking for va_copy... " >&6; }
26070 if test "${gl_cv_func_va_copy+set}" = set; then :
26071 $as_echo_n "(cached) " >&6
26074 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26075 /* end confdefs.h. */
26076 #include <stdarg.h>
26082 void (*func) (va_list, va_list) = va_copy;
26089 if ac_fn_c_try_compile
"$LINENO"; then :
26090 gl_cv_func_va_copy
=yes
26092 gl_cv_func_va_copy
=no
26094 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_va_copy" >&5
26098 $as_echo "$gl_cv_func_va_copy" >&6; }
26099 if test $gl_cv_func_va_copy = no
; then
26100 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26101 /* end confdefs.h. */
26102 #if defined _AIX && !defined __GNUC__
26107 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26108 $EGREP "vaccine" >/dev
/null
2>&1; then :
26115 if test $gl_aixcc = yes; then
26125 if test $gl_cv_have_include_next = yes; then
26126 gl_cv_next_stdarg_h
='<'stdarg.h
'>'
26128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdarg.h>" >&5
26129 $as_echo_n "checking absolute name of <stdarg.h>... " >&6; }
26130 if test "${gl_cv_next_stdarg_h+set}" = set; then :
26131 $as_echo_n "(cached) " >&6
26134 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26135 /* end confdefs.h. */
26136 #include <stdarg.h>
26140 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
26141 *) gl_absname_cpp
="$ac_cpp" ;;
26146 gl_dirsep_regex
='[/\\]'
26149 gl_dirsep_regex
='\/'
26152 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
26154 gl_header_literal_regex
=`echo 'stdarg.h' \
26155 | sed -e "$gl_make_literal_regex_sed"`
26156 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
26157 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
26162 gl_cv_next_stdarg_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
26163 sed -n "$gl_absolute_header_sed"`'"'
26167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdarg_h" >&5
26168 $as_echo "$gl_cv_next_stdarg_h" >&6; }
26170 NEXT_STDARG_H
=$gl_cv_next_stdarg_h
26172 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
26173 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
26174 gl_next_as_first_directive
='<'stdarg.h
'>'
26176 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
26177 gl_next_as_first_directive
=$gl_cv_next_stdarg_h
26179 NEXT_AS_FIRST_DIRECTIVE_STDARG_H
=$gl_next_as_first_directive
26184 if test "$gl_cv_next_stdarg_h" = '""'; then
26185 gl_cv_next_stdarg_h
='"///usr/include/stdarg.h"'
26186 NEXT_STDARG_H
="$gl_cv_next_stdarg_h"
26190 saved_as_echo_n
="$as_echo_n"
26192 if test "${gl_cv_func___va_copy+set}" = set; then :
26193 $as_echo_n "(cached) " >&6
26196 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26197 /* end confdefs.h. */
26198 #include <stdarg.h>
26211 if ac_fn_c_try_compile
"$LINENO"; then :
26212 gl_cv_func___va_copy
=yes
26214 gl_cv_func___va_copy
=no
26216 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26219 as_echo_n
="$saved_as_echo_n"
26221 if test $gl_cv_func___va_copy = yes; then
26223 $as_echo "#define va_copy __va_copy" >>confdefs.h
26228 $as_echo "#define va_copy gl_va_copy" >>confdefs.h
26234 if test -n "$STDARG_H"; then
26235 GL_GENERATE_STDARG_H_TRUE
=
26236 GL_GENERATE_STDARG_H_FALSE
='#'
26238 GL_GENERATE_STDARG_H_TRUE
='#'
26239 GL_GENERATE_STDARG_H_FALSE
=
26247 # Define two additional variables used in the Makefile substitution.
26249 if test "$ac_cv_header_stdbool_h" = yes; then
26252 STDBOOL_H
='stdbool.h'
26255 if test -n "$STDBOOL_H"; then
26256 GL_GENERATE_STDBOOL_H_TRUE
=
26257 GL_GENERATE_STDBOOL_H_FALSE
='#'
26259 GL_GENERATE_STDBOOL_H_TRUE
='#'
26260 GL_GENERATE_STDBOOL_H_FALSE
=
26264 if test "$ac_cv_type__Bool" = yes; then
26275 if test $gt_cv_c_wchar_t = no
; then
26279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
26280 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
26281 if test "${gl_cv_decl_null_works+set}" = set; then :
26282 $as_echo_n "(cached) " >&6
26284 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26285 /* end confdefs.h. */
26286 #include <stddef.h>
26287 int test[2 * (sizeof NULL == sizeof (void *)) -1];
26297 if ac_fn_c_try_compile
"$LINENO"; then :
26298 gl_cv_decl_null_works
=yes
26300 gl_cv_decl_null_works
=no
26302 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
26305 $as_echo "$gl_cv_decl_null_works" >&6; }
26306 if test $gl_cv_decl_null_works = no
; then
26311 if test -n "$STDDEF_H"; then
26312 GL_GENERATE_STDDEF_H_TRUE
=
26313 GL_GENERATE_STDDEF_H_FALSE
='#'
26315 GL_GENERATE_STDDEF_H_TRUE
='#'
26316 GL_GENERATE_STDDEF_H_FALSE
=
26319 if test -n "$STDDEF_H"; then
26328 if test $gl_cv_have_include_next = yes; then
26329 gl_cv_next_stddef_h
='<'stddef.h
'>'
26331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
26332 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
26333 if test "${gl_cv_next_stddef_h+set}" = set; then :
26334 $as_echo_n "(cached) " >&6
26337 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26338 /* end confdefs.h. */
26339 #include <stddef.h>
26343 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
26344 *) gl_absname_cpp
="$ac_cpp" ;;
26349 gl_dirsep_regex
='[/\\]'
26352 gl_dirsep_regex
='\/'
26355 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
26357 gl_header_literal_regex
=`echo 'stddef.h' \
26358 | sed -e "$gl_make_literal_regex_sed"`
26359 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
26360 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
26365 gl_cv_next_stddef_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
26366 sed -n "$gl_absolute_header_sed"`'"'
26370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
26371 $as_echo "$gl_cv_next_stddef_h" >&6; }
26373 NEXT_STDDEF_H
=$gl_cv_next_stddef_h
26375 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
26376 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
26377 gl_next_as_first_directive
='<'stddef.h
'>'
26379 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
26380 gl_next_as_first_directive
=$gl_cv_next_stddef_h
26382 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
=$gl_next_as_first_directive
26400 if test $gl_cv_have_include_next = yes; then
26401 gl_cv_next_stdio_h
='<'stdio.h
'>'
26403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
26404 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
26405 if test "${gl_cv_next_stdio_h+set}" = set; then :
26406 $as_echo_n "(cached) " >&6
26409 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26410 /* end confdefs.h. */
26415 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
26416 *) gl_absname_cpp
="$ac_cpp" ;;
26421 gl_dirsep_regex
='[/\\]'
26424 gl_dirsep_regex
='\/'
26427 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
26429 gl_header_literal_regex
=`echo 'stdio.h' \
26430 | sed -e "$gl_make_literal_regex_sed"`
26431 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
26432 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
26437 gl_cv_next_stdio_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
26438 sed -n "$gl_absolute_header_sed"`'"'
26442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
26443 $as_echo "$gl_cv_next_stdio_h" >&6; }
26445 NEXT_STDIO_H
=$gl_cv_next_stdio_h
26447 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
26448 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
26449 gl_next_as_first_directive
='<'stdio.h
'>'
26451 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
26452 gl_next_as_first_directive
=$gl_cv_next_stdio_h
26454 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
=$gl_next_as_first_directive
26463 cat >>confdefs.h
<<_ACEOF
26464 #define GNULIB_FSCANF 1
26471 cat >>confdefs.h
<<_ACEOF
26472 #define GNULIB_SCANF 1
26508 if test $gl_cv_have_include_next = yes; then
26509 gl_cv_next_stdlib_h
='<'stdlib.h
'>'
26511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
26512 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
26513 if test "${gl_cv_next_stdlib_h+set}" = set; then :
26514 $as_echo_n "(cached) " >&6
26517 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26518 /* end confdefs.h. */
26519 #include <stdlib.h>
26523 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
26524 *) gl_absname_cpp
="$ac_cpp" ;;
26529 gl_dirsep_regex
='[/\\]'
26532 gl_dirsep_regex
='\/'
26535 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
26537 gl_header_literal_regex
=`echo 'stdlib.h' \
26538 | sed -e "$gl_make_literal_regex_sed"`
26539 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
26540 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
26545 gl_cv_next_stdlib_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
26546 sed -n "$gl_absolute_header_sed"`'"'
26550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
26551 $as_echo "$gl_cv_next_stdlib_h" >&6; }
26553 NEXT_STDLIB_H
=$gl_cv_next_stdlib_h
26555 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
26556 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
26557 gl_next_as_first_directive
='<'stdlib.h
'>'
26559 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
26560 gl_next_as_first_directive
=$gl_cv_next_stdlib_h
26562 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
=$gl_next_as_first_directive
26572 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
26580 $as_echo "#define my_strftime nstrftime" >>confdefs.h
26592 if test "$ac_cv_have_decl_strtoimax" != yes; then
26593 HAVE_DECL_STRTOIMAX
=0
26596 if test $ac_cv_func_strtoimax = yes; then
26598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtoimax works" >&5
26599 $as_echo_n "checking whether strtoimax works... " >&6; }
26600 if test "${gl_cv_func_strtoimax+set}" = set; then :
26601 $as_echo_n "(cached) " >&6
26603 if test "$cross_compiling" = yes; then :
26605 # Guess no on AIX 5.
26606 aix5
*) gl_cv_func_strtoimax
="guessing no" ;;
26607 # Guess yes otherwise.
26608 *) gl_cv_func_strtoimax
="guessing yes" ;;
26612 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26613 /* end confdefs.h. */
26616 #include <string.h>
26617 #include <inttypes.h>
26620 if (sizeof (intmax_t) > sizeof (int))
26622 const char *s = "4294967295";
26626 res = strtoimax (s, &p, 10);
26627 if (p != s + strlen (s))
26631 if (res != (intmax_t) 65535 * (intmax_t) 65537)
26636 const char *s = "2147483647";
26640 res = strtoimax (s, &p, 10);
26641 if (p != s + strlen (s))
26645 if (res != 2147483647)
26652 if ac_fn_c_try_run
"$LINENO"; then :
26653 gl_cv_func_strtoimax
=yes
26655 gl_cv_func_strtoimax
=no
26657 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
26658 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
26663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strtoimax" >&5
26664 $as_echo "$gl_cv_func_strtoimax" >&6; }
26665 case "$gl_cv_func_strtoimax" in
26666 *no
) REPLACE_STRTOIMAX
=1 ;;
26672 if test $HAVE_STRTOIMAX = 0 ||
test $REPLACE_STRTOIMAX = 1; then
26681 gl_LIBOBJS
="$gl_LIBOBJS strtoimax.$ac_objext"
26684 ac_fn_c_check_decl
"$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
26685 if test "x$ac_cv_have_decl_strtoll" = x
""yes; then :
26691 cat >>confdefs.h
<<_ACEOF
26692 #define HAVE_DECL_STRTOLL $ac_have_decl
26713 if test "$ac_cv_have_decl_strtoumax" != yes; then
26714 HAVE_DECL_STRTOUMAX
=0
26717 if test $ac_cv_func_strtoumax = no
; then
26726 gl_LIBOBJS
="$gl_LIBOBJS strtoumax.$ac_objext"
26729 ac_fn_c_check_decl
"$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
26730 if test "x$ac_cv_have_decl_strtoull" = x
""yes; then :
26736 cat >>confdefs.h
<<_ACEOF
26737 #define HAVE_DECL_STRTOULL $ac_have_decl
26756 if test $ac_cv_func_symlink = no
; then
26759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symlink handles trailing slash correctly" >&5
26760 $as_echo_n "checking whether symlink handles trailing slash correctly... " >&6; }
26761 if test "${gl_cv_func_symlink_works+set}" = set; then :
26762 $as_echo_n "(cached) " >&6
26764 if test "$cross_compiling" = yes; then :
26766 # Guess yes on glibc systems.
26767 *-gnu*) gl_cv_func_symlink_works
="guessing yes" ;;
26768 # If we don't know, assume the worst.
26769 *) gl_cv_func_symlink_works
="guessing no" ;;
26773 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26774 /* end confdefs.h. */
26775 #include <unistd.h>
26781 if (!symlink ("a", "conftest.link/"))
26783 if (symlink ("conftest.f", "conftest.lnk2"))
26785 else if (!symlink ("a", "conftest.lnk2/"))
26793 if ac_fn_c_try_run
"$LINENO"; then :
26794 gl_cv_func_symlink_works
=yes
26796 gl_cv_func_symlink_works
=no
26798 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
26799 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
26802 rm -f conftest.f conftest.link conftest.lnk2
26804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_symlink_works" >&5
26805 $as_echo "$gl_cv_func_symlink_works" >&6; }
26806 case "$gl_cv_func_symlink_works" in
26814 if test $HAVE_SYMLINK = 0 ||
test $REPLACE_SYMLINK = 1; then
26823 gl_LIBOBJS
="$gl_LIBOBJS symlink.$ac_objext"
26840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/select.h> is self-contained" >&5
26841 $as_echo_n "checking whether <sys/select.h> is self-contained... " >&6; }
26842 if test "${gl_cv_header_sys_select_h_selfcontained+set}" = set; then :
26843 $as_echo_n "(cached) " >&6
26846 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26847 /* end confdefs.h. */
26848 #include <sys/select.h>
26857 if ac_fn_c_try_compile
"$LINENO"; then :
26858 gl_cv_header_sys_select_h_selfcontained
=yes
26860 gl_cv_header_sys_select_h_selfcontained
=no
26862 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26863 if test $gl_cv_header_sys_select_h_selfcontained = yes; then
26864 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26865 /* end confdefs.h. */
26866 #include <sys/select.h>
26870 int memset; int bzero;
26876 if ac_fn_c_try_compile
"$LINENO"; then :
26877 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26878 /* end confdefs.h. */
26879 #include <sys/select.h>
26885 #define memset nonexistent_memset
26890 void *memset (void *, int, unsigned long);
26892 #define bzero nonexistent_bzero
26897 void bzero (void *, unsigned long);
26906 if ac_fn_c_try_link
"$LINENO"; then :
26909 gl_cv_header_sys_select_h_selfcontained
=no
26911 rm -f core conftest.err conftest.
$ac_objext \
26912 conftest
$ac_exeext conftest.
$ac_ext
26915 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_selfcontained" >&5
26920 $as_echo "$gl_cv_header_sys_select_h_selfcontained" >&6; }
26930 if test $gl_cv_have_include_next = yes; then
26931 gl_cv_next_sys_select_h
='<'sys
/select.h
'>'
26933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/select.h>" >&5
26934 $as_echo_n "checking absolute name of <sys/select.h>... " >&6; }
26935 if test "${gl_cv_next_sys_select_h+set}" = set; then :
26936 $as_echo_n "(cached) " >&6
26939 if test $ac_cv_header_sys_select_h = yes; then
26942 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26943 /* end confdefs.h. */
26944 #include <sys/select.h>
26948 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
26949 *) gl_absname_cpp
="$ac_cpp" ;;
26954 gl_dirsep_regex
='[/\\]'
26957 gl_dirsep_regex
='\/'
26960 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
26962 gl_header_literal_regex
=`echo 'sys/select.h' \
26963 | sed -e "$gl_make_literal_regex_sed"`
26964 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
26965 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
26970 gl_cv_next_sys_select_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
26971 sed -n "$gl_absolute_header_sed"`'"'
26973 gl_cv_next_sys_select_h
='<'sys
/select.h
'>'
26978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_select_h" >&5
26979 $as_echo "$gl_cv_next_sys_select_h" >&6; }
26981 NEXT_SYS_SELECT_H
=$gl_cv_next_sys_select_h
26983 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
26984 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
26985 gl_next_as_first_directive
='<'sys
/select.h
'>'
26987 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
26988 gl_next_as_first_directive
=$gl_cv_next_sys_select_h
26990 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H
=$gl_next_as_first_directive
26995 if test $ac_cv_header_sys_select_h = yes; then
26996 HAVE_SYS_SELECT_H
=1
26998 HAVE_SYS_SELECT_H
=0
27005 if test $ac_cv_header_sys_socket_h != yes; then
27006 for ac_header
in winsock2.h
27008 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
27009 if test "x$ac_cv_header_winsock2_h" = x
""yes; then :
27010 cat >>confdefs.h
<<_ACEOF
27011 #define HAVE_WINSOCK2_H 1
27019 if test "$ac_cv_header_winsock2_h" = yes; then
27021 UNISTD_H_HAVE_WINSOCK2_H
=1
27022 SYS_IOCTL_H_HAVE_WINSOCK2_H
=1
27046 if test $gl_cv_have_include_next = yes; then
27047 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
27049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
27050 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
27051 if test "${gl_cv_next_sys_stat_h+set}" = set; then :
27052 $as_echo_n "(cached) " >&6
27055 if test $ac_cv_header_sys_stat_h = yes; then
27058 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27059 /* end confdefs.h. */
27060 #include <sys/stat.h>
27064 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
27065 *) gl_absname_cpp
="$ac_cpp" ;;
27070 gl_dirsep_regex
='[/\\]'
27073 gl_dirsep_regex
='\/'
27076 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
27078 gl_header_literal_regex
=`echo 'sys/stat.h' \
27079 | sed -e "$gl_make_literal_regex_sed"`
27080 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
27081 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
27086 gl_cv_next_sys_stat_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
27087 sed -n "$gl_absolute_header_sed"`'"'
27089 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
27094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
27095 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
27097 NEXT_SYS_STAT_H
=$gl_cv_next_sys_stat_h
27099 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
27100 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
27101 gl_next_as_first_directive
='<'sys
/stat.h
'>'
27103 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
27104 gl_next_as_first_directive
=$gl_cv_next_sys_stat_h
27106 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
=$gl_next_as_first_directive
27118 if test $WINDOWS_64_BIT_ST_SIZE = 1; then
27120 $as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h
27124 ac_fn_c_check_type
"$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
27125 #include <sys/stat.h>
27127 if test "x$ac_cv_type_nlink_t" = x
""yes; then :
27131 $as_echo "#define nlink_t int" >>confdefs.h
27152 ac_fn_c_check_decl
"$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "#include <time.h>
27154 if test "x$ac_cv_have_decl_localtime_r" = x
""yes; then :
27160 cat >>confdefs.h
<<_ACEOF
27161 #define HAVE_DECL_LOCALTIME_R $ac_have_decl
27164 if test $ac_cv_have_decl_localtime_r = no
; then
27165 HAVE_DECL_LOCALTIME_R
=0
27169 if test $ac_cv_func_localtime_r = yes; then
27171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
27172 $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
27173 if test "${gl_cv_time_r_posix+set}" = set; then :
27174 $as_echo_n "(cached) " >&6
27176 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27177 /* end confdefs.h. */
27182 /* We don't need to append 'restrict's to the argument types,
27183 even though the POSIX signature has the 'restrict's,
27184 since C99 says they can't affect type compatibility. */
27185 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
27187 /* Check the return type is a pointer.
27188 On HP-UX 10 it is 'int'. */
27189 *localtime_r (0, 0);
27195 if ac_fn_c_try_compile
"$LINENO"; then :
27196 gl_cv_time_r_posix
=yes
27198 gl_cv_time_r_posix
=no
27200 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
27204 $as_echo "$gl_cv_time_r_posix" >&6; }
27205 if test $gl_cv_time_r_posix = yes; then
27206 REPLACE_LOCALTIME_R
=0
27208 REPLACE_LOCALTIME_R
=1
27214 if test $HAVE_LOCALTIME_R = 0 ||
test $REPLACE_LOCALTIME_R = 1; then
27223 gl_LIBOBJS
="$gl_LIBOBJS time_r.$ac_objext"
27247 gl_saved_libs
=$LIBS
27248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing timer_settime" >&5
27249 $as_echo_n "checking for library containing timer_settime... " >&6; }
27250 if test "${ac_cv_search_timer_settime+set}" = set; then :
27251 $as_echo_n "(cached) " >&6
27253 ac_func_search_save_LIBS
=$LIBS
27254 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27255 /* end confdefs.h. */
27257 /* Override any GCC internal prototype to avoid an error.
27258 Use char because int might match the return type of a GCC
27259 builtin and then its argument prototype would still apply. */
27263 char timer_settime ();
27267 return timer_settime ();
27272 for ac_lib
in '' rt posix4
; do
27273 if test -z "$ac_lib"; then
27274 ac_res
="none required"
27277 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
27279 if ac_fn_c_try_link
"$LINENO"; then :
27280 ac_cv_search_timer_settime
=$ac_res
27282 rm -f core conftest.err conftest.
$ac_objext \
27284 if test "${ac_cv_search_timer_settime+set}" = set; then :
27288 if test "${ac_cv_search_timer_settime+set}" = set; then :
27291 ac_cv_search_timer_settime
=no
27293 rm conftest.
$ac_ext
27294 LIBS
=$ac_func_search_save_LIBS
27296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_timer_settime" >&5
27297 $as_echo "$ac_cv_search_timer_settime" >&6; }
27298 ac_res
=$ac_cv_search_timer_settime
27299 if test "$ac_res" != no
; then :
27300 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
27301 test "$ac_cv_search_timer_settime" = "none required" ||
27302 LIB_TIMER_TIME
=$ac_cv_search_timer_settime
27305 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27306 /* end confdefs.h. */
27308 #include <features.h>
27309 #ifdef __GNU_LIBRARY__
27310 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2) || (__GLIBC__ > 2)) \
27311 && !defined __UCLIBC__
27312 Thread emulation available
27317 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27318 $EGREP "Thread" >/dev
/null
2>&1; then :
27319 LIB_TIMER_TIME
="$LIB_TIMER_TIME $LIBMULTITHREAD"
27323 for ac_func
in timer_settime
27325 ac_fn_c_check_func
"$LINENO" "timer_settime" "ac_cv_func_timer_settime"
27326 if test "x$ac_cv_func_timer_settime" = x
""yes; then :
27327 cat >>confdefs.h
<<_ACEOF
27328 #define HAVE_TIMER_SETTIME 1
27334 LIBS
=$gl_saved_libs
27349 if test $gl_cv_have_include_next = yes; then
27350 gl_cv_next_unistd_h
='<'unistd.h
'>'
27352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
27353 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
27354 if test "${gl_cv_next_unistd_h+set}" = set; then :
27355 $as_echo_n "(cached) " >&6
27358 if test $ac_cv_header_unistd_h = yes; then
27361 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27362 /* end confdefs.h. */
27363 #include <unistd.h>
27367 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
27368 *) gl_absname_cpp
="$ac_cpp" ;;
27373 gl_dirsep_regex
='[/\\]'
27376 gl_dirsep_regex
='\/'
27379 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
27381 gl_header_literal_regex
=`echo 'unistd.h' \
27382 | sed -e "$gl_make_literal_regex_sed"`
27383 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
27384 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
27389 gl_cv_next_unistd_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
27390 sed -n "$gl_absolute_header_sed"`'"'
27392 gl_cv_next_unistd_h
='<'unistd.h
'>'
27397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
27398 $as_echo "$gl_cv_next_unistd_h" >&6; }
27400 NEXT_UNISTD_H
=$gl_cv_next_unistd_h
27402 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
27403 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
27404 gl_next_as_first_directive
='<'unistd.h
'>'
27406 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
27407 gl_next_as_first_directive
=$gl_cv_next_unistd_h
27409 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
=$gl_next_as_first_directive
27414 if test $ac_cv_header_unistd_h = yes; then
27430 if test $ac_cv_have_decl_unsetenv = no
; then
27431 HAVE_DECL_UNSETENV
=0
27433 for ac_func
in unsetenv
27435 ac_fn_c_check_func
"$LINENO" "unsetenv" "ac_cv_func_unsetenv"
27436 if test "x$ac_cv_func_unsetenv" = x
""yes; then :
27437 cat >>confdefs.h
<<_ACEOF
27438 #define HAVE_UNSETENV 1
27444 if test $ac_cv_func_unsetenv = no
; then
27448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsetenv() return type" >&5
27449 $as_echo_n "checking for unsetenv() return type... " >&6; }
27450 if test "${gt_cv_func_unsetenv_ret+set}" = set; then :
27451 $as_echo_n "(cached) " >&6
27453 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27454 /* end confdefs.h. */
27457 #define _BSD 1 /* unhide unsetenv declaration in OSF/1 5.1 <stdlib.h> */
27458 #include <stdlib.h>
27463 int unsetenv (const char *name);
27473 if ac_fn_c_try_compile
"$LINENO"; then :
27474 gt_cv_func_unsetenv_ret
='int'
27476 gt_cv_func_unsetenv_ret
='void'
27478 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_unsetenv_ret" >&5
27481 $as_echo "$gt_cv_func_unsetenv_ret" >&6; }
27482 if test $gt_cv_func_unsetenv_ret = 'void'; then
27484 $as_echo "#define VOID_UNSETENV 1" >>confdefs.h
27489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether unsetenv obeys POSIX" >&5
27490 $as_echo_n "checking whether unsetenv obeys POSIX... " >&6; }
27491 if test "${gl_cv_func_unsetenv_works+set}" = set; then :
27492 $as_echo_n "(cached) " >&6
27494 if test "$cross_compiling" = yes; then :
27496 # Guess yes on glibc systems.
27497 *-gnu*) gl_cv_func_unsetenv_works
="guessing yes" ;;
27498 # If we don't know, assume the worst.
27499 *) gl_cv_func_unsetenv_works
="guessing no" ;;
27503 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27504 /* end confdefs.h. */
27506 #include <stdlib.h>
27508 extern char **environ;
27514 char entry1[] = "a=1";
27515 char entry2[] = "b=2";
27516 char *env[] = { entry1, entry2, NULL };
27517 if (putenv ((char *) "a=1")) return 1;
27518 if (putenv (entry2)) return 2;
27521 if (getenv ("a")) return 3;
27522 if (!unsetenv ("") || errno != EINVAL) return 4;
27525 if (!getenv ("a")) return 5;
27528 if (getenv ("a")) return 6;
27534 if ac_fn_c_try_run
"$LINENO"; then :
27535 gl_cv_func_unsetenv_works
=yes
27537 gl_cv_func_unsetenv_works
=no
27539 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
27540 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
27544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_unsetenv_works" >&5
27545 $as_echo "$gl_cv_func_unsetenv_works" >&6; }
27546 case "$gl_cv_func_unsetenv_works" in
27554 if test $HAVE_UNSETENV = 0 ||
test $REPLACE_UNSETENV = 1; then
27563 gl_LIBOBJS
="$gl_LIBOBJS unsetenv.$ac_objext"
27587 if test $ac_cv_func_futimens = no
&& test $ac_cv_func_futimesat = yes; then
27588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether futimesat handles NULL file" >&5
27589 $as_echo_n "checking whether futimesat handles NULL file... " >&6; }
27590 if test "${gl_cv_func_futimesat_works+set}" = set; then :
27591 $as_echo_n "(cached) " >&6
27593 touch conftest.
file
27594 if test "$cross_compiling" = yes; then :
27596 # Guess yes on glibc systems.
27597 *-gnu*) gl_cv_func_futimesat_works
="guessing yes" ;;
27598 # If we don't know, assume the worst.
27599 *) gl_cv_func_futimesat_works
="guessing no" ;;
27603 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27604 /* end confdefs.h. */
27606 #include <stddef.h>
27607 #include <sys/times.h>
27613 int fd = open ("conftest.file", O_RDWR);
27614 if (fd < 0) return 1;
27615 if (futimesat (fd, NULL, NULL)) return 2;
27621 if ac_fn_c_try_run
"$LINENO"; then :
27622 gl_cv_func_futimesat_works
=yes
27624 gl_cv_func_futimesat_works
=no
27626 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
27627 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
27630 rm -f conftest.
file
27632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_futimesat_works" >&5
27633 $as_echo "$gl_cv_func_futimesat_works" >&6; }
27634 case "$gl_cv_func_futimesat_works" in
27638 $as_echo "#define FUTIMESAT_NULL_BUG 1" >>confdefs.h
27644 gl_gnulib_enabled_260941c0e5dc67ec9e87d1fb321c300b
=false
27645 gl_gnulib_enabled_dosname
=false
27646 gl_gnulib_enabled_euidaccess
=false
27647 gl_gnulib_enabled_getdtablesize
=false
27648 gl_gnulib_enabled_getgroups
=false
27649 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36
=false
27650 gl_gnulib_enabled_a9786850e999ae65a836a6041e8e5ed1
=false
27651 gl_gnulib_enabled_03e0aaad4cb89ca757653bd367a6ccb7
=false
27652 gl_gnulib_enabled_pathmax
=false
27653 gl_gnulib_enabled_6099e9737f757db36c47fa9d9f02e88c
=false
27654 gl_gnulib_enabled_secure_getenv
=false
27655 gl_gnulib_enabled_stat
=false
27656 gl_gnulib_enabled_strtoll
=false
27657 gl_gnulib_enabled_strtoull
=false
27658 gl_gnulib_enabled_tempname
=false
27659 gl_gnulib_enabled_682e609604ccaac6be382e4ee3a4eaec
=false
27660 func_gl_gnulib_m4code_260941c0e5dc67ec9e87d1fb321c300b
()
27662 if ! $gl_gnulib_enabled_260941c0e5dc67ec9e87d1fb321c300b; then
27671 gl_LIBOBJS
="$gl_LIBOBJS openat-proc.$ac_objext"
27673 gl_gnulib_enabled_260941c0e5dc67ec9e87d1fb321c300b
=true
27676 func_gl_gnulib_m4code_dosname
()
27678 if ! $gl_gnulib_enabled_dosname; then
27679 gl_gnulib_enabled_dosname
=true
27682 func_gl_gnulib_m4code_euidaccess
()
27684 if ! $gl_gnulib_enabled_euidaccess; then
27690 for ac_func
in euidaccess
27692 ac_fn_c_check_func
"$LINENO" "euidaccess" "ac_cv_func_euidaccess"
27693 if test "x$ac_cv_func_euidaccess" = x
""yes; then :
27694 cat >>confdefs.h
<<_ACEOF
27695 #define HAVE_EUIDACCESS 1
27701 if test $ac_cv_func_euidaccess = no
; then
27705 if test $HAVE_EUIDACCESS = 0; then
27714 gl_LIBOBJS
="$gl_LIBOBJS euidaccess.$ac_objext"
27718 for ac_header
in libgen.h
27720 ac_fn_c_check_header_mongrel
"$LINENO" "libgen.h" "ac_cv_header_libgen_h" "$ac_includes_default"
27721 if test "x$ac_cv_header_libgen_h" = x
""yes; then :
27722 cat >>confdefs.h
<<_ACEOF
27723 #define HAVE_LIBGEN_H 1
27731 ac_fn_c_check_func
"$LINENO" "getgroups" "ac_cv_func_getgroups"
27732 if test "x$ac_cv_func_getgroups" = x
""yes; then :
27737 # If we don't yet have getgroups, see if it's in -lbsd.
27738 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
27740 if test $ac_cv_func_getgroups = no
; then
27741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getgroups in -lbsd" >&5
27742 $as_echo_n "checking for getgroups in -lbsd... " >&6; }
27743 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then :
27744 $as_echo_n "(cached) " >&6
27746 ac_check_lib_save_LIBS
=$LIBS
27748 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27749 /* end confdefs.h. */
27751 /* Override any GCC internal prototype to avoid an error.
27752 Use char because int might match the return type of a GCC
27753 builtin and then its argument prototype would still apply. */
27761 return getgroups ();
27766 if ac_fn_c_try_link
"$LINENO"; then :
27767 ac_cv_lib_bsd_getgroups
=yes
27769 ac_cv_lib_bsd_getgroups
=no
27771 rm -f core conftest.err conftest.
$ac_objext \
27772 conftest
$ac_exeext conftest.
$ac_ext
27773 LIBS
=$ac_check_lib_save_LIBS
27775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_getgroups" >&5
27776 $as_echo "$ac_cv_lib_bsd_getgroups" >&6; }
27777 if test "x$ac_cv_lib_bsd_getgroups" = x
""yes; then :
27778 GETGROUPS_LIB
=-lbsd
27783 # Run the program to test the functionality of the system-supplied
27784 # getgroups function only if there is such a function.
27785 if test $ac_cv_func_getgroups = yes; then
27786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getgroups" >&5
27787 $as_echo_n "checking for working getgroups... " >&6; }
27788 if test "${ac_cv_func_getgroups_works+set}" = set; then :
27789 $as_echo_n "(cached) " >&6
27791 if test "$cross_compiling" = yes; then :
27792 case "$host_os" in # ((
27793 # Guess yes on glibc systems.
27794 *-gnu*) ac_cv_func_getgroups_works
="guessing yes" ;;
27795 # If we don't know, assume the worst.
27796 *) ac_cv_func_getgroups_works
="guessing no" ;;
27800 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27801 /* end confdefs.h. */
27802 $ac_includes_default
27806 /* On Ultrix 4.3, getgroups (0, 0) always fails. */
27807 return getgroups (0, 0) == -1;
27813 if ac_fn_c_try_run
"$LINENO"; then :
27814 ac_cv_func_getgroups_works
=yes
27816 ac_cv_func_getgroups_works
=no
27818 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
27819 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
27824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getgroups_works" >&5
27825 $as_echo "$ac_cv_func_getgroups_works" >&6; }
27827 ac_cv_func_getgroups_works
=no
27829 case "$ac_cv_func_getgroups_works" in
27832 $as_echo "#define HAVE_GETGROUPS 1" >>confdefs.h
27839 # Solaris 9 and 10 need -lgen to get the eaccess function.
27840 # Save and restore LIBS so -lgen isn't added to it. Otherwise, *all*
27841 # programs in the package would end up linked with that potentially-shared
27842 # library, inducing unnecessary run-time overhead.
27845 gl_saved_libs
=$LIBS
27846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing eaccess" >&5
27847 $as_echo_n "checking for library containing eaccess... " >&6; }
27848 if test "${ac_cv_search_eaccess+set}" = set; then :
27849 $as_echo_n "(cached) " >&6
27851 ac_func_search_save_LIBS
=$LIBS
27852 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27853 /* end confdefs.h. */
27855 /* Override any GCC internal prototype to avoid an error.
27856 Use char because int might match the return type of a GCC
27857 builtin and then its argument prototype would still apply. */
27870 for ac_lib
in '' gen
; do
27871 if test -z "$ac_lib"; then
27872 ac_res
="none required"
27875 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
27877 if ac_fn_c_try_link
"$LINENO"; then :
27878 ac_cv_search_eaccess
=$ac_res
27880 rm -f core conftest.err conftest.
$ac_objext \
27882 if test "${ac_cv_search_eaccess+set}" = set; then :
27886 if test "${ac_cv_search_eaccess+set}" = set; then :
27889 ac_cv_search_eaccess
=no
27891 rm conftest.
$ac_ext
27892 LIBS
=$ac_func_search_save_LIBS
27894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_eaccess" >&5
27895 $as_echo "$ac_cv_search_eaccess" >&6; }
27896 ac_res
=$ac_cv_search_eaccess
27897 if test "$ac_res" != no
; then :
27898 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
27899 test "$ac_cv_search_eaccess" = "none required" ||
27900 LIB_EACCESS
=$ac_cv_search_eaccess
27903 for ac_func
in eaccess
27905 ac_fn_c_check_func
"$LINENO" "eaccess" "ac_cv_func_eaccess"
27906 if test "x$ac_cv_func_eaccess" = x
""yes; then :
27907 cat >>confdefs.h
<<_ACEOF
27908 #define HAVE_EACCESS 1
27914 LIBS
=$gl_saved_libs
27922 GNULIB_EUIDACCESS
=1
27928 gl_gnulib_enabled_euidaccess
=true
27929 if test $HAVE_EUIDACCESS = 0; then
27930 func_gl_gnulib_m4code_a9786850e999ae65a836a6041e8e5ed1
27932 func_gl_gnulib_m4code_6099e9737f757db36c47fa9d9f02e88c
27933 if test $HAVE_EUIDACCESS = 0; then
27934 func_gl_gnulib_m4code_stat
27938 func_gl_gnulib_m4code_getdtablesize
()
27940 if ! $gl_gnulib_enabled_getdtablesize; then
27944 if test $ac_cv_func_getdtablesize != yes; then
27945 HAVE_GETDTABLESIZE
=0
27948 if test $HAVE_GETDTABLESIZE = 0; then
27957 gl_LIBOBJS
="$gl_LIBOBJS getdtablesize.$ac_objext"
27966 GNULIB_GETDTABLESIZE
=1
27972 gl_gnulib_enabled_getdtablesize
=true
27975 func_gl_gnulib_m4code_getgroups
()
27977 if ! $gl_gnulib_enabled_getgroups; then
27983 ac_fn_c_check_func
"$LINENO" "getgroups" "ac_cv_func_getgroups"
27984 if test "x$ac_cv_func_getgroups" = x
""yes; then :
27989 # If we don't yet have getgroups, see if it's in -lbsd.
27990 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
27992 if test $ac_cv_func_getgroups = no
; then
27993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getgroups in -lbsd" >&5
27994 $as_echo_n "checking for getgroups in -lbsd... " >&6; }
27995 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then :
27996 $as_echo_n "(cached) " >&6
27998 ac_check_lib_save_LIBS
=$LIBS
28000 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28001 /* end confdefs.h. */
28003 /* Override any GCC internal prototype to avoid an error.
28004 Use char because int might match the return type of a GCC
28005 builtin and then its argument prototype would still apply. */
28013 return getgroups ();
28018 if ac_fn_c_try_link
"$LINENO"; then :
28019 ac_cv_lib_bsd_getgroups
=yes
28021 ac_cv_lib_bsd_getgroups
=no
28023 rm -f core conftest.err conftest.
$ac_objext \
28024 conftest
$ac_exeext conftest.
$ac_ext
28025 LIBS
=$ac_check_lib_save_LIBS
28027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_getgroups" >&5
28028 $as_echo "$ac_cv_lib_bsd_getgroups" >&6; }
28029 if test "x$ac_cv_lib_bsd_getgroups" = x
""yes; then :
28030 GETGROUPS_LIB
=-lbsd
28035 # Run the program to test the functionality of the system-supplied
28036 # getgroups function only if there is such a function.
28037 if test $ac_cv_func_getgroups = yes; then
28038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getgroups" >&5
28039 $as_echo_n "checking for working getgroups... " >&6; }
28040 if test "${ac_cv_func_getgroups_works+set}" = set; then :
28041 $as_echo_n "(cached) " >&6
28043 if test "$cross_compiling" = yes; then :
28044 case "$host_os" in # ((
28045 # Guess yes on glibc systems.
28046 *-gnu*) ac_cv_func_getgroups_works
="guessing yes" ;;
28047 # If we don't know, assume the worst.
28048 *) ac_cv_func_getgroups_works
="guessing no" ;;
28052 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28053 /* end confdefs.h. */
28054 $ac_includes_default
28058 /* On Ultrix 4.3, getgroups (0, 0) always fails. */
28059 return getgroups (0, 0) == -1;
28065 if ac_fn_c_try_run
"$LINENO"; then :
28066 ac_cv_func_getgroups_works
=yes
28068 ac_cv_func_getgroups_works
=no
28070 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
28071 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
28076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getgroups_works" >&5
28077 $as_echo "$ac_cv_func_getgroups_works" >&6; }
28079 ac_cv_func_getgroups_works
=no
28081 case "$ac_cv_func_getgroups_works" in
28084 $as_echo "#define HAVE_GETGROUPS 1" >>confdefs.h
28090 if test $ac_cv_func_getgroups != yes; then
28093 if test "$ac_cv_type_getgroups" != gid_t \
28094 ||
{ case "$ac_cv_func_getgroups_works" in
28099 REPLACE_GETGROUPS
=1
28101 $as_echo "#define GETGROUPS_ZERO_BUG 1" >>confdefs.h
28104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getgroups handles negative values" >&5
28105 $as_echo_n "checking whether getgroups handles negative values... " >&6; }
28106 if test "${gl_cv_func_getgroups_works+set}" = set; then :
28107 $as_echo_n "(cached) " >&6
28109 if test "$cross_compiling" = yes; then :
28111 # Guess yes on glibc systems.
28112 *-gnu*) gl_cv_func_getgroups_works
="guessing yes" ;;
28113 # If we don't know, assume the worst.
28114 *) gl_cv_func_getgroups_works
="guessing no" ;;
28118 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28119 /* end confdefs.h. */
28120 $ac_includes_default
28124 int size = getgroups (0, 0);
28125 gid_t *list = malloc (size * sizeof *list);
28126 return getgroups (-1, list) != -1;
28131 if ac_fn_c_try_run
"$LINENO"; then :
28132 gl_cv_func_getgroups_works
=yes
28134 gl_cv_func_getgroups_works
=no
28136 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
28137 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
28141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getgroups_works" >&5
28142 $as_echo "$gl_cv_func_getgroups_works" >&6; }
28143 case "$gl_cv_func_getgroups_works" in
28145 *) REPLACE_GETGROUPS
=1 ;;
28149 test -n "$GETGROUPS_LIB" && LIBS
="$GETGROUPS_LIB $LIBS"
28151 if test $HAVE_GETGROUPS = 0 ||
test $REPLACE_GETGROUPS = 1; then
28160 gl_LIBOBJS
="$gl_LIBOBJS getgroups.$ac_objext"
28174 gl_gnulib_enabled_getgroups
=true
28177 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36
()
28179 if ! $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
28182 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36
=true
28185 func_gl_gnulib_m4code_a9786850e999ae65a836a6041e8e5ed1
()
28187 if ! $gl_gnulib_enabled_a9786850e999ae65a836a6041e8e5ed1; then
28193 ac_fn_c_check_func
"$LINENO" "group_member" "ac_cv_func_group_member"
28194 if test "x$ac_cv_func_group_member" = x
""yes; then :
28198 HAVE_GROUP_MEMBER
=0
28203 if test $HAVE_GROUP_MEMBER = 0; then
28212 gl_LIBOBJS
="$gl_LIBOBJS group-member.$ac_objext"
28223 GNULIB_GROUP_MEMBER
=1
28229 gl_gnulib_enabled_a9786850e999ae65a836a6041e8e5ed1
=true
28230 if test $HAVE_GROUP_MEMBER = 0; then
28231 func_gl_gnulib_m4code_getgroups
28233 if test $HAVE_GROUP_MEMBER = 0; then
28234 func_gl_gnulib_m4code_682e609604ccaac6be382e4ee3a4eaec
28238 func_gl_gnulib_m4code_03e0aaad4cb89ca757653bd367a6ccb7
()
28240 if ! $gl_gnulib_enabled_03e0aaad4cb89ca757653bd367a6ccb7; then
28241 gl_gnulib_enabled_03e0aaad4cb89ca757653bd367a6ccb7
=true
28244 func_gl_gnulib_m4code_pathmax
()
28246 if ! $gl_gnulib_enabled_pathmax; then
28250 gl_gnulib_enabled_pathmax
=true
28253 func_gl_gnulib_m4code_6099e9737f757db36c47fa9d9f02e88c
()
28255 if ! $gl_gnulib_enabled_6099e9737f757db36c47fa9d9f02e88c; then
28256 gl_gnulib_enabled_6099e9737f757db36c47fa9d9f02e88c
=true
28259 func_gl_gnulib_m4code_secure_getenv
()
28261 if ! $gl_gnulib_enabled_secure_getenv; then
28267 if test $ac_cv_func_secure_getenv = no
; then
28268 HAVE_SECURE_GETENV
=0
28271 if test $HAVE_SECURE_GETENV = 0; then
28280 gl_LIBOBJS
="$gl_LIBOBJS secure_getenv.$ac_objext"
28283 for ac_func
in __secure_getenv
28285 ac_fn_c_check_func
"$LINENO" "__secure_getenv" "ac_cv_func___secure_getenv"
28286 if test "x$ac_cv_func___secure_getenv" = x
""yes; then :
28287 cat >>confdefs.h
<<_ACEOF
28288 #define HAVE___SECURE_GETENV 1
28294 if test $ac_cv_func___secure_getenv = no
; then
28295 for ac_func
in issetugid
28297 ac_fn_c_check_func
"$LINENO" "issetugid" "ac_cv_func_issetugid"
28298 if test "x$ac_cv_func_issetugid" = x
""yes; then :
28299 cat >>confdefs.h
<<_ACEOF
28300 #define HAVE_ISSETUGID 1
28314 GNULIB_SECURE_GETENV
=1
28320 gl_gnulib_enabled_secure_getenv
=true
28323 func_gl_gnulib_m4code_stat
()
28325 if ! $gl_gnulib_enabled_stat; then
28329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
28330 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
28331 if test "${gl_cv_func_stat_dir_slash+set}" = set; then :
28332 $as_echo_n "(cached) " >&6
28334 if test "$cross_compiling" = yes; then :
28336 mingw
*) gl_cv_func_stat_dir_slash
="guessing no";;
28337 *) gl_cv_func_stat_dir_slash
="guessing yes";;
28340 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28341 /* end confdefs.h. */
28342 #include <sys/stat.h>
28347 struct stat st; return stat (".", &st) != stat ("./", &st);
28352 if ac_fn_c_try_run
"$LINENO"; then :
28353 gl_cv_func_stat_dir_slash
=yes
28355 gl_cv_func_stat_dir_slash
=no
28357 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
28358 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
28362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
28363 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
28364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
28365 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
28366 if test "${gl_cv_func_stat_file_slash+set}" = set; then :
28367 $as_echo_n "(cached) " >&6
28370 # Assume that if we have lstat, we can also check symlinks.
28371 if test $ac_cv_func_lstat = yes; then
28372 ln -s conftest.tmp conftest.lnk
28374 if test "$cross_compiling" = yes; then :
28376 # Guess yes on glibc systems.
28377 *-gnu*) gl_cv_func_stat_file_slash
="guessing yes" ;;
28378 # If we don't know, assume the worst.
28379 *) gl_cv_func_stat_file_slash
="guessing no" ;;
28383 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28384 /* end confdefs.h. */
28385 #include <sys/stat.h>
28392 if (!stat ("conftest.tmp/", &st))
28395 if (!stat ("conftest.lnk/", &st))
28404 if ac_fn_c_try_run
"$LINENO"; then :
28405 gl_cv_func_stat_file_slash
=yes
28407 gl_cv_func_stat_file_slash
=no
28409 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
28410 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
28413 rm -f conftest.tmp conftest.lnk
28415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
28416 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
28417 case $gl_cv_func_stat_dir_slash in
28418 *no
) REPLACE_STAT
=1
28420 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
28423 case $gl_cv_func_stat_file_slash in
28424 *no
) REPLACE_STAT
=1
28426 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
28430 if test $REPLACE_STAT = 1; then
28439 gl_LIBOBJS
="$gl_LIBOBJS stat.$ac_objext"
28454 gl_gnulib_enabled_stat
=true
28455 if test $REPLACE_STAT = 1; then
28456 func_gl_gnulib_m4code_dosname
28458 if test $REPLACE_STAT = 1; then
28459 func_gl_gnulib_m4code_pathmax
28463 func_gl_gnulib_m4code_strtoll
()
28465 if ! $gl_gnulib_enabled_strtoll; then
28469 if test "$ac_cv_type_long_long_int" = yes; then
28470 for ac_func
in strtoll
28472 ac_fn_c_check_func
"$LINENO" "strtoll" "ac_cv_func_strtoll"
28473 if test "x$ac_cv_func_strtoll" = x
""yes; then :
28474 cat >>confdefs.h
<<_ACEOF
28475 #define HAVE_STRTOLL 1
28481 if test $ac_cv_func_strtoll = no
; then
28486 if test $HAVE_STRTOLL = 0; then
28495 gl_LIBOBJS
="$gl_LIBOBJS strtoll.$ac_objext"
28512 gl_gnulib_enabled_strtoll
=true
28515 func_gl_gnulib_m4code_strtoull
()
28517 if ! $gl_gnulib_enabled_strtoull; then
28521 if test "$ac_cv_type_unsigned_long_long_int" = yes; then
28522 for ac_func
in strtoull
28524 ac_fn_c_check_func
"$LINENO" "strtoull" "ac_cv_func_strtoull"
28525 if test "x$ac_cv_func_strtoull" = x
""yes; then :
28526 cat >>confdefs.h
<<_ACEOF
28527 #define HAVE_STRTOULL 1
28533 if test $ac_cv_func_strtoull = no
; then
28538 if test $HAVE_STRTOULL = 0; then
28547 gl_LIBOBJS
="$gl_LIBOBJS strtoull.$ac_objext"
28564 gl_gnulib_enabled_strtoull
=true
28567 func_gl_gnulib_m4code_tempname
()
28569 if ! $gl_gnulib_enabled_tempname; then
28575 gl_gnulib_enabled_tempname
=true
28576 func_gl_gnulib_m4code_secure_getenv
28579 func_gl_gnulib_m4code_682e609604ccaac6be382e4ee3a4eaec
()
28581 if ! $gl_gnulib_enabled_682e609604ccaac6be382e4ee3a4eaec; then
28582 gl_gnulib_enabled_682e609604ccaac6be382e4ee3a4eaec
=true
28585 if test $HAVE_FACCESSAT = 0; then
28586 func_gl_gnulib_m4code_260941c0e5dc67ec9e87d1fb321c300b
28588 if test $HAVE_FACCESSAT = 0; then
28589 func_gl_gnulib_m4code_dosname
28591 if test $HAVE_FACCESSAT = 0; then
28592 func_gl_gnulib_m4code_euidaccess
28594 if test $HAVE_FACCESSAT = 0; then
28595 func_gl_gnulib_m4code_03e0aaad4cb89ca757653bd367a6ccb7
28597 if test $HAVE_FCNTL = 0 ||
test $REPLACE_FCNTL = 1; then
28598 func_gl_gnulib_m4code_getdtablesize
28600 if test $HAVE_FDOPENDIR = 0; then
28601 func_gl_gnulib_m4code_260941c0e5dc67ec9e87d1fb321c300b
28603 if test $HAVE_FSTATAT = 0 ||
test $REPLACE_FSTATAT = 1; then
28604 func_gl_gnulib_m4code_260941c0e5dc67ec9e87d1fb321c300b
28606 if test $HAVE_FSTATAT = 0 ||
test $REPLACE_FSTATAT = 1; then
28607 func_gl_gnulib_m4code_dosname
28609 if test $HAVE_FSTATAT = 0 ||
test $REPLACE_FSTATAT = 1; then
28610 func_gl_gnulib_m4code_03e0aaad4cb89ca757653bd367a6ccb7
28612 if test $REPLACE_GETOPT = 1; then
28613 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36
28615 if test $REPLACE_LSTAT = 1; then
28616 func_gl_gnulib_m4code_dosname
28618 if test $REPLACE_LSTAT = 1; then
28619 func_gl_gnulib_m4code_stat
28621 if test $HAVE_MKOSTEMP = 0; then
28622 func_gl_gnulib_m4code_tempname
28624 if test $HAVE_READLINK = 0 ||
test $REPLACE_READLINK = 1; then
28625 func_gl_gnulib_m4code_stat
28627 if test $HAVE_READLINKAT = 0; then
28628 func_gl_gnulib_m4code_260941c0e5dc67ec9e87d1fb321c300b
28630 if test $HAVE_READLINKAT = 0; then
28631 func_gl_gnulib_m4code_dosname
28633 if test $HAVE_READLINKAT = 0; then
28634 func_gl_gnulib_m4code_03e0aaad4cb89ca757653bd367a6ccb7
28636 if { test $HAVE_STRTOIMAX = 0 ||
test $REPLACE_STRTOIMAX = 1; } && test $ac_cv_type_long_long_int = yes; then
28637 func_gl_gnulib_m4code_strtoll
28639 if test $ac_cv_func_strtoumax = no
&& test $ac_cv_type_unsigned_long_long_int = yes; then
28640 func_gl_gnulib_m4code_strtoull
28643 if $gl_gnulib_enabled_260941c0e5dc67ec9e87d1fb321c300b; then
28644 gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_TRUE
=
28645 gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_FALSE
='#'
28647 gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_TRUE
='#'
28648 gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_FALSE
=
28651 if $gl_gnulib_enabled_dosname; then
28652 gl_GNULIB_ENABLED_dosname_TRUE
=
28653 gl_GNULIB_ENABLED_dosname_FALSE
='#'
28655 gl_GNULIB_ENABLED_dosname_TRUE
='#'
28656 gl_GNULIB_ENABLED_dosname_FALSE
=
28659 if $gl_gnulib_enabled_euidaccess; then
28660 gl_GNULIB_ENABLED_euidaccess_TRUE
=
28661 gl_GNULIB_ENABLED_euidaccess_FALSE
='#'
28663 gl_GNULIB_ENABLED_euidaccess_TRUE
='#'
28664 gl_GNULIB_ENABLED_euidaccess_FALSE
=
28667 if $gl_gnulib_enabled_getdtablesize; then
28668 gl_GNULIB_ENABLED_getdtablesize_TRUE
=
28669 gl_GNULIB_ENABLED_getdtablesize_FALSE
='#'
28671 gl_GNULIB_ENABLED_getdtablesize_TRUE
='#'
28672 gl_GNULIB_ENABLED_getdtablesize_FALSE
=
28675 if $gl_gnulib_enabled_getgroups; then
28676 gl_GNULIB_ENABLED_getgroups_TRUE
=
28677 gl_GNULIB_ENABLED_getgroups_FALSE
='#'
28679 gl_GNULIB_ENABLED_getgroups_TRUE
='#'
28680 gl_GNULIB_ENABLED_getgroups_FALSE
=
28683 if $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
28684 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE
=
28685 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE
='#'
28687 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE
='#'
28688 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE
=
28691 if $gl_gnulib_enabled_a9786850e999ae65a836a6041e8e5ed1; then
28692 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_TRUE
=
28693 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_FALSE
='#'
28695 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_TRUE
='#'
28696 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_FALSE
=
28699 if $gl_gnulib_enabled_03e0aaad4cb89ca757653bd367a6ccb7; then
28700 gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_TRUE
=
28701 gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_FALSE
='#'
28703 gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_TRUE
='#'
28704 gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_FALSE
=
28707 if $gl_gnulib_enabled_pathmax; then
28708 gl_GNULIB_ENABLED_pathmax_TRUE
=
28709 gl_GNULIB_ENABLED_pathmax_FALSE
='#'
28711 gl_GNULIB_ENABLED_pathmax_TRUE
='#'
28712 gl_GNULIB_ENABLED_pathmax_FALSE
=
28715 if $gl_gnulib_enabled_6099e9737f757db36c47fa9d9f02e88c; then
28716 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_TRUE
=
28717 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_FALSE
='#'
28719 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_TRUE
='#'
28720 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_FALSE
=
28723 if $gl_gnulib_enabled_secure_getenv; then
28724 gl_GNULIB_ENABLED_secure_getenv_TRUE
=
28725 gl_GNULIB_ENABLED_secure_getenv_FALSE
='#'
28727 gl_GNULIB_ENABLED_secure_getenv_TRUE
='#'
28728 gl_GNULIB_ENABLED_secure_getenv_FALSE
=
28731 if $gl_gnulib_enabled_stat; then
28732 gl_GNULIB_ENABLED_stat_TRUE
=
28733 gl_GNULIB_ENABLED_stat_FALSE
='#'
28735 gl_GNULIB_ENABLED_stat_TRUE
='#'
28736 gl_GNULIB_ENABLED_stat_FALSE
=
28739 if $gl_gnulib_enabled_strtoll; then
28740 gl_GNULIB_ENABLED_strtoll_TRUE
=
28741 gl_GNULIB_ENABLED_strtoll_FALSE
='#'
28743 gl_GNULIB_ENABLED_strtoll_TRUE
='#'
28744 gl_GNULIB_ENABLED_strtoll_FALSE
=
28747 if $gl_gnulib_enabled_strtoull; then
28748 gl_GNULIB_ENABLED_strtoull_TRUE
=
28749 gl_GNULIB_ENABLED_strtoull_FALSE
='#'
28751 gl_GNULIB_ENABLED_strtoull_TRUE
='#'
28752 gl_GNULIB_ENABLED_strtoull_FALSE
=
28755 if $gl_gnulib_enabled_tempname; then
28756 gl_GNULIB_ENABLED_tempname_TRUE
=
28757 gl_GNULIB_ENABLED_tempname_FALSE
='#'
28759 gl_GNULIB_ENABLED_tempname_TRUE
='#'
28760 gl_GNULIB_ENABLED_tempname_FALSE
=
28763 if $gl_gnulib_enabled_682e609604ccaac6be382e4ee3a4eaec; then
28764 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_TRUE
=
28765 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_FALSE
='#'
28767 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_TRUE
='#'
28768 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_FALSE
=
28771 # End of code from modules
28792 gl_source_base
='tests'
28793 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
28795 gl_module_indicator_condition
=$gltests_WITNESS
28806 LIBGNU_LIBDEPS
="$gl_libdeps"
28808 LIBGNU_LTLIBDEPS
="$gl_ltlibdeps"
28811 CFLAGS
=$SAVE_CFLAGS
28814 if test "${opsys}" = "mingw32"; then
28815 CPPFLAGS
="$CPPFLAGS -DUSE_CRT_DLL=1 -I $srcdir/nt/inc"
28816 # Remove unneeded switches from the value of CC that goes to Makefiles
28817 CC
=`echo $CC | sed -e "s,$GCC_TEST_OPTIONS,,"`
28821 aix4-2
) LD_SWITCH_SYSTEM_TEMACS
="-Wl,-bnodelcsect" ;;
28824 ## The -headerpad option tells ld (see man page) to leave room at the
28825 ## end of the header for adding load commands. Needed for dumping.
28826 ## 0x690 is the total size of 30 segment load commands (at 56
28827 ## each); under Cocoa 31 commands are required.
28828 if test "$HAVE_NS" = "yes"; then
28829 libs_nsgui
="-framework AppKit"
28830 if test "$NS_IMPL_COCOA" = "yes"; then
28831 libs_nsgui
="$libs_nsgui -framework IOKit"
28833 headerpad_extra
=6C8
28836 headerpad_extra
=690
28838 LD_SWITCH_SYSTEM_TEMACS
="-fno-pie -prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
28840 ## This is here because src/Makefile.in did some extra fiddling around
28841 ## with LD_SWITCH_SYSTEM. It seems cleaner to put this in
28842 ## LD_SWITCH_SYSTEM_TEMACS instead,
28843 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
28844 LD_SWITCH_SYSTEM_TEMACS
="-X $LD_SWITCH_SYSTEM_TEMACS"
28847 ## LD_SWITCH_X_SITE_RPATH is a -rpath option saying where to
28848 ## find X at run-time.
28849 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at the
28850 ## point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_RPATH
28851 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
28852 ## had different values in configure (in ac_link) and src/Makefile.in.
28853 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
28854 gnu
*) LD_SWITCH_SYSTEM_TEMACS
="\$(LD_SWITCH_X_SITE_RPATH)" ;;
28857 ## MinGW64 does not prepend an underscore to symbols, so we must
28858 ## pass a different -entry switch to linker. FIXME: It is better
28859 ## to make the entry points the same by changing unexw32.c.
28860 case "$canonical" in
28861 x86_64-
*-*) LD_SWITCH_SYSTEM_TEMACS
="-Wl,-stack,0x00800000 -Wl,-heap,0x00100000 -Wl,-image-base,0x01000000 -Wl,-entry,_start -Wl,-Map,./temacs.map" ;;
28862 *) LD_SWITCH_SYSTEM_TEMACS
="-Wl,-stack,0x00800000 -Wl,-heap,0x00100000 -Wl,-image-base,0x01000000 -Wl,-entry,__start -Wl,-Map,./temacs.map" ;;
28866 openbsd
) LD_SWITCH_SYSTEM_TEMACS
='-nopie' ;;
28868 *) LD_SWITCH_SYSTEM_TEMACS
= ;;
28871 if test x
$ac_enable_profiling != x
; then
28873 *freebsd | gnu-linux
) ;;
28874 *) LD_SWITCH_SYSTEM_TEMACS
="$LD_SWITCH_SYSTEM_TEMACS -pg" ;;
28880 ## MinGW-specific post-link processing of temacs.
28881 TEMACS_POST_LINK
=":"
28884 if test "${opsys}" = "mingw32"; then
28885 TEMACS_POST_LINK
="\$(MINGW_TEMACS_POST_LINK)"
28886 ADDSECTION
="../nt/addsection\$(EXEEXT)"
28887 ## Preload heap size of temacs.exe in MB.
28888 case "$canonical" in
28889 x86_64-
*-*) EMACS_HEAPSIZE
=42 ;;
28890 *) EMACS_HEAPSIZE
=27 ;;
28898 ## Common for all window systems
28899 if test "$window_system" != "none"; then
28901 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
28903 WINDOW_SYSTEM_OBJ
="fontset.o fringe.o image.o"
28910 #### Report on what we decided to do.
28911 #### Report GTK as a toolkit, even if it doesn't use Xt.
28912 #### It makes printing result more understandable as using GTK sets
28913 #### toolkit_scroll_bars to yes by default.
28914 if test "${HAVE_GTK}" = "yes"; then
28915 USE_X_TOOLKIT
="$USE_GTK_TOOLKIT"
28918 if test $USE_ACL -ne 0; then
28919 acl_summary
="yes $LIB_ACL"
28925 Configured for \`${canonical}'.
28927 Where should the build process find the source code? ${srcdir}
28928 What compiler should emacs be built with? ${CC} ${CFLAGS}
28929 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
28930 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
28931 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
28932 What window system should Emacs use? ${window_system}
28933 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
28935 if test -n "${x_includes}"; then
28936 echo " Where do we find X Windows header files? ${x_includes}"
28938 echo " Where do we find X Windows header files? Standard dirs"
28940 if test -n "${x_libraries}"; then
28941 echo " Where do we find X Windows libraries? ${x_libraries}"
28943 echo " Where do we find X Windows libraries? Standard dirs"
28946 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
28947 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
28948 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
28949 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
28950 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
28951 echo " Does Emacs use -lpng? ${HAVE_PNG}"
28952 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
28953 echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
28955 echo " Does Emacs support sound? ${HAVE_SOUND}"
28957 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
28958 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
28959 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
28960 echo " Does Emacs use GSettings? ${HAVE_GSETTINGS}"
28961 echo " Does Emacs use a file notification library? ${NOTIFY_SUMMARY}"
28962 echo " Does Emacs use access control lists? ${acl_summary}"
28963 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
28964 echo " Does Emacs use -lgnutls? ${HAVE_GNUTLS}"
28965 echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}"
28967 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
28968 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
28969 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
28970 echo " Does Emacs use -lxft? ${HAVE_XFT}"
28971 echo " Does Emacs directly use zlib? ${HAVE_ZLIB}"
28973 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
28976 if test -n "${EMACSDATA}"; then
28977 echo " Environment variable EMACSDATA set to: $EMACSDATA"
28979 if test -n "${EMACSDOC}"; then
28980 echo " Environment variable EMACSDOC set to: $EMACSDOC"
28985 if test "$HAVE_NS" = "yes"; then
28987 echo "You must run \"${MAKE-make} install\" in order to test the built application.
28988 The installed application will go to nextstep/Emacs.app and can be
28989 run or moved from there."
28990 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
28991 echo "The application will be fully self-contained."
28993 echo "The lisp resources for the application will be installed under ${prefix}.
28994 You may need to run \"${MAKE-make} install\" with sudo. The application will fail
28995 to run if these resources are not installed."
29000 if test "${opsys}" = "cygwin"; then
29002 1.5.
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: building Emacs on Cygwin 1.5 is not supported." >&5
29003 $as_echo "$as_me: WARNING: building Emacs on Cygwin 1.5 is not supported." >&2;}
29009 # Remove any trailing slashes in these variables.
29010 test "${prefix}" != NONE
&&
29011 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
29012 test "${exec_prefix}" != NONE
&&
29013 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
29015 if test "$HAVE_NS" = "yes"; then
29016 if test "$NS_IMPL_GNUSTEP" = yes; then
29017 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"
29020 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"
29025 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"
29027 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"
29030 opt_makefile
=test
/automated
/Makefile
29032 if test -f "$srcdir/$opt_makefile.in"; then
29033 SUBDIR_MAKEFILES
="$SUBDIR_MAKEFILES $opt_makefile"
29034 ac_config_files
="$ac_config_files test/automated/Makefile"
29039 opt_makefile
=admin
/unidata
/Makefile
29041 if test -f "$srcdir/$opt_makefile.in"; then
29042 SUBDIR_MAKEFILES
="$SUBDIR_MAKEFILES $opt_makefile"
29043 ac_config_files
="$ac_config_files admin/unidata/Makefile"
29048 SUBDIR_MAKEFILES_IN
=`echo " ${SUBDIR_MAKEFILES}" | sed -e 's| | $(srcdir)/|g' -e 's|Makefile|Makefile.in|g'`
29052 ac_config_commands
="$ac_config_commands src/epaths.h"
29055 ac_config_commands
="$ac_config_commands src/.gdbinit"
29058 cat >confcache
<<\_ACEOF
29059 # This file is a shell script that caches the results of configure
29060 # tests run on this system so they can be shared between configure
29061 # scripts and configure runs, see configure's option --config-cache.
29062 # It is not useful on other systems. If it contains results you don't
29063 # want to keep, you may remove or edit it.
29065 # config.status only pays attention to the cache file if you give it
29066 # the --recheck option to rerun configure.
29068 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29069 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29070 # following values.
29074 # The following way of writing the cache mishandles newlines in values,
29075 # but we know of no workaround that is simple, portable, and efficient.
29076 # So, we kill variables containing newlines.
29077 # Ultrix sh set writes to stderr and can't be redirected directly,
29078 # and sets the high bit in the cache file unless we assign to the vars.
29080 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
29081 eval ac_val
=\$
$ac_var
29085 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
29086 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
29089 _ | IFS | as_nl
) ;; #(
29090 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
29091 *) { eval $ac_var=; unset $ac_var;} ;;
29097 case $as_nl`(ac_space=' '; set) 2>&1` in #(
29098 *${as_nl}ac_space
=\
*)
29099 # `set' does not quote correctly, so add quotes: double-quote
29100 # substitution turns \\\\ into \\, and sed turns \\ into \.
29103 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29106 # `set' quotes correctly as required by POSIX, so do not add quotes.
29107 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
29116 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29118 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29120 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
29121 if test -w "$cache_file"; then
29122 test "x$cache_file" != "x/dev/null" &&
29123 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
29124 $as_echo "$as_me: updating cache $cache_file" >&6;}
29125 cat confcache
>$cache_file
29127 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
29128 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
29133 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
29134 # Let make expand exec_prefix.
29135 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
29137 DEFS
=-DHAVE_CONFIG_H
29141 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
29142 # 1. Remove the extension, and $U if already installed.
29143 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
29144 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
29145 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
29146 # will be set to the directory where LIBOBJS objects are built.
29147 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
29148 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
29150 LIBOBJS
=$ac_libobjs
29152 LTLIBOBJS
=$ac_ltlibobjs
29155 if test -n "$EXEEXT"; then
29157 am__EXEEXT_FALSE
='#'
29159 am__EXEEXT_TRUE
='#'
29163 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
29164 as_fn_error
"conditional \"AMDEP\" was never defined.
29165 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29167 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
29168 as_fn_error
"conditional \"am__fastdepCC\" was never defined.
29169 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29171 if test -z "${BUILDING_FOR_WINDOWSNT_TRUE}" && test -z "${BUILDING_FOR_WINDOWSNT_FALSE}"; then
29172 as_fn_error
"conditional \"BUILDING_FOR_WINDOWSNT\" was never defined.
29173 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29175 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
29176 as_fn_error
"conditional \"GL_COND_LIBTOOL\" was never defined.
29177 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29179 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
29180 as_fn_error
"conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
29181 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29184 if test -z "${GL_GENERATE_ERRNO_H_TRUE}" && test -z "${GL_GENERATE_ERRNO_H_FALSE}"; then
29185 as_fn_error
"conditional \"GL_GENERATE_ERRNO_H\" was never defined.
29186 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29188 if test -z "${GL_GENERATE_EXECINFO_H_TRUE}" && test -z "${GL_GENERATE_EXECINFO_H_FALSE}"; then
29189 as_fn_error
"conditional \"GL_GENERATE_EXECINFO_H\" was never defined.
29190 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29192 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
29193 as_fn_error
"conditional \"GL_GENERATE_STDINT_H\" was never defined.
29194 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29196 if test -z "${GL_GENERATE_STDALIGN_H_TRUE}" && test -z "${GL_GENERATE_STDALIGN_H_FALSE}"; then
29197 as_fn_error
"conditional \"GL_GENERATE_STDALIGN_H\" was never defined.
29198 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29200 if test -z "${GL_GENERATE_STDARG_H_TRUE}" && test -z "${GL_GENERATE_STDARG_H_FALSE}"; then
29201 as_fn_error
"conditional \"GL_GENERATE_STDARG_H\" was never defined.
29202 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29204 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
29205 as_fn_error
"conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
29206 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29208 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
29209 as_fn_error
"conditional \"GL_GENERATE_STDDEF_H\" was never defined.
29210 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29212 if test -z "${gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_TRUE}" && test -z "${gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_FALSE}"; then
29213 as_fn_error
"conditional \"gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b\" was never defined.
29214 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29216 if test -z "${gl_GNULIB_ENABLED_dosname_TRUE}" && test -z "${gl_GNULIB_ENABLED_dosname_FALSE}"; then
29217 as_fn_error
"conditional \"gl_GNULIB_ENABLED_dosname\" was never defined.
29218 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29220 if test -z "${gl_GNULIB_ENABLED_euidaccess_TRUE}" && test -z "${gl_GNULIB_ENABLED_euidaccess_FALSE}"; then
29221 as_fn_error
"conditional \"gl_GNULIB_ENABLED_euidaccess\" was never defined.
29222 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29224 if test -z "${gl_GNULIB_ENABLED_getdtablesize_TRUE}" && test -z "${gl_GNULIB_ENABLED_getdtablesize_FALSE}"; then
29225 as_fn_error
"conditional \"gl_GNULIB_ENABLED_getdtablesize\" was never defined.
29226 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29228 if test -z "${gl_GNULIB_ENABLED_getgroups_TRUE}" && test -z "${gl_GNULIB_ENABLED_getgroups_FALSE}"; then
29229 as_fn_error
"conditional \"gl_GNULIB_ENABLED_getgroups\" was never defined.
29230 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29232 if test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE}" && test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE}"; then
29233 as_fn_error
"conditional \"gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36\" was never defined.
29234 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29236 if test -z "${gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_TRUE}" && test -z "${gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_FALSE}"; then
29237 as_fn_error
"conditional \"gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1\" was never defined.
29238 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29240 if test -z "${gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_TRUE}" && test -z "${gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_FALSE}"; then
29241 as_fn_error
"conditional \"gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7\" was never defined.
29242 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29244 if test -z "${gl_GNULIB_ENABLED_pathmax_TRUE}" && test -z "${gl_GNULIB_ENABLED_pathmax_FALSE}"; then
29245 as_fn_error
"conditional \"gl_GNULIB_ENABLED_pathmax\" was never defined.
29246 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29248 if test -z "${gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_TRUE}" && test -z "${gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_FALSE}"; then
29249 as_fn_error
"conditional \"gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c\" was never defined.
29250 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29252 if test -z "${gl_GNULIB_ENABLED_secure_getenv_TRUE}" && test -z "${gl_GNULIB_ENABLED_secure_getenv_FALSE}"; then
29253 as_fn_error
"conditional \"gl_GNULIB_ENABLED_secure_getenv\" was never defined.
29254 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29256 if test -z "${gl_GNULIB_ENABLED_stat_TRUE}" && test -z "${gl_GNULIB_ENABLED_stat_FALSE}"; then
29257 as_fn_error
"conditional \"gl_GNULIB_ENABLED_stat\" was never defined.
29258 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29260 if test -z "${gl_GNULIB_ENABLED_strtoll_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoll_FALSE}"; then
29261 as_fn_error
"conditional \"gl_GNULIB_ENABLED_strtoll\" was never defined.
29262 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29264 if test -z "${gl_GNULIB_ENABLED_strtoull_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoull_FALSE}"; then
29265 as_fn_error
"conditional \"gl_GNULIB_ENABLED_strtoull\" was never defined.
29266 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29268 if test -z "${gl_GNULIB_ENABLED_tempname_TRUE}" && test -z "${gl_GNULIB_ENABLED_tempname_FALSE}"; then
29269 as_fn_error
"conditional \"gl_GNULIB_ENABLED_tempname\" was never defined.
29270 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29272 if test -z "${gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_TRUE}" && test -z "${gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_FALSE}"; then
29273 as_fn_error
"conditional \"gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec\" was never defined.
29274 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29279 if test -n "$gl_LIBOBJS"; then
29280 # Remove the extension.
29281 sed_drop_objext
='s/\.o$//;s/\.obj$//'
29282 for i
in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
29283 gl_libobjs
="$gl_libobjs $i.$ac_objext"
29284 gl_ltlibobjs
="$gl_ltlibobjs $i.lo"
29287 gl_LIBOBJS
=$gl_libobjs
29289 gl_LTLIBOBJS
=$gl_ltlibobjs
29295 if test -n "$gltests_LIBOBJS"; then
29296 # Remove the extension.
29297 sed_drop_objext
='s/\.o$//;s/\.obj$//'
29298 for i
in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
29299 gltests_libobjs
="$gltests_libobjs $i.$ac_objext"
29300 gltests_ltlibobjs
="$gltests_ltlibobjs $i.lo"
29303 gltests_LIBOBJS
=$gltests_libobjs
29305 gltests_LTLIBOBJS
=$gltests_ltlibobjs
29309 : ${CONFIG_STATUS=./config.status}
29311 ac_clean_files_save
=$ac_clean_files
29312 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
29313 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
29314 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
29316 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
29318 # Generated by $as_me.
29319 # Run this file to recreate the current configuration.
29320 # Compiler output produced by configure, useful for debugging
29321 # configure, is in config.log if it exists.
29324 ac_cs_recheck=false
29327 SHELL=\${CONFIG_SHELL-$SHELL}
29330 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
29331 ## -------------------- ##
29332 ## M4sh Initialization. ##
29333 ## -------------------- ##
29335 # Be more Bourne compatible
29336 DUALCASE
=1; export DUALCASE
# for MKS sh
29337 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
29340 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
29341 # is contrary to our usage. Disable this feature.
29342 alias -g '${1+"$@"}'='"$@"'
29343 setopt NO_GLOB_SUBST
29345 case `(set -o) 2>/dev/null` in #(
29357 # Printing a long string crashes Solaris 7 /usr/bin/printf.
29358 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
29359 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
29360 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
29361 # Prefer a ksh shell builtin over an external printf program on Solaris,
29362 # but without wasting forks for bash or zsh.
29363 if test -z "$BASH_VERSION$ZSH_VERSION" \
29364 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
29365 as_echo='print
-r --'
29366 as_echo_n='print
-rn --'
29367 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
29368 as_echo='printf %s
\n'
29369 as_echo_n='printf %s
'
29371 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
29372 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
29373 as_echo_n='/usr
/ucb
/echo -n'
29375 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
29376 as_echo_n_body='eval
29380 expr "X$arg" : "X\\(.*\\)$as_nl";
29381 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
29383 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
29385 export as_echo_n_body
29386 as_echo_n='sh
-c $as_echo_n_body as_echo
'
29388 export as_echo_body
29389 as_echo='sh
-c $as_echo_body as_echo
'
29392 # The user is always right.
29393 if test "${PATH_SEPARATOR+set}" != set; then
29395 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
29396 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
29403 # We need space, tab and new line, in precisely that order. Quoting is
29404 # there to prevent editors from complaining about space-tab.
29405 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
29406 # splitting by setting IFS to empty value.)
29409 # Find who we are. Look in the path if we contain no directory separator.
29411 *[\\/]* ) as_myself=$0 ;;
29412 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29413 for as_dir in $PATH
29416 test -z "$as_dir" && as_dir=.
29417 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
29423 # We did not find ourselves, most probably we were run as `sh COMMAND'
29424 # in which case we are not to be found in the path.
29425 if test "x$as_myself" = x
; then
29428 if test ! -f "$as_myself"; then
29429 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
29433 # Unset variables that we do not need and which cause bugs (e.g. in
29434 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
29435 # suppresses any "Segmentation fault" message there. '((' could
29436 # trigger a bug in pdksh 5.2.14.
29437 for as_var
in BASH_ENV ENV MAIL MAILPATH
29438 do eval test x\
${$as_var+set} = xset \
29439 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
29452 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
29455 # as_fn_error ERROR [LINENO LOG_FD]
29456 # ---------------------------------
29457 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
29458 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
29459 # script with status $?, using 1 if that was 0.
29462 as_status
=$?
; test $as_status -eq 0 && as_status
=1
29464 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
29465 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
29467 $as_echo "$as_me: error: $1" >&2
29468 as_fn_exit
$as_status
29472 # as_fn_set_status STATUS
29473 # -----------------------
29474 # Set $? to STATUS, without forking.
29475 as_fn_set_status
()
29478 } # as_fn_set_status
29480 # as_fn_exit STATUS
29481 # -----------------
29482 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
29486 as_fn_set_status
$1
29492 # Portably unset VAR.
29495 { eval $1=; unset $1;}
29497 as_unset
=as_fn_unset
29498 # as_fn_append VAR VALUE
29499 # ----------------------
29500 # Append the text in VALUE to the end of the definition contained in VAR. Take
29501 # advantage of any shell optimizations that allow amortized linear growth over
29502 # repeated appends, instead of the typical quadratic growth present in naive
29504 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
29505 eval 'as_fn_append ()
29516 # as_fn_arith ARG...
29517 # ------------------
29518 # Perform arithmetic evaluation on the ARGs, and store the result in the
29519 # global $as_val. Take advantage of shells that can avoid forks. The arguments
29520 # must be portable across $(()) and expr.
29521 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
29522 eval 'as_fn_arith ()
29529 as_val
=`expr "$@" || test $? -eq 1`
29534 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
29535 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
29541 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
29542 as_basename
=basename
29547 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
29553 as_me
=`$as_basename -- "$0" ||
29554 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29555 X"$0" : 'X\(//\)$' \| \
29556 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
29558 sed '/^.*\/\([^/][^/]*\)\/*$/{
29572 # Avoid depending upon Character Ranges.
29573 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
29574 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29575 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
29576 as_cr_digits
='0123456789'
29577 as_cr_alnum
=$as_cr_Letters$as_cr_digits
29579 ECHO_C
= ECHO_N
= ECHO_T
=
29580 case `echo -n x` in #(((((
29582 case `echo 'xy\c'` in
29583 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
29585 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
29592 rm -f conf$$ conf$$.exe conf$$.
file
29593 if test -d conf$$.dir
; then
29594 rm -f conf$$.dir
/conf$$.
file
29597 mkdir conf$$.dir
2>/dev
/null
29599 if (echo >conf$$.
file) 2>/dev
/null
; then
29600 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
29602 # ... but there are two gotchas:
29603 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
29604 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
29605 # In both cases, we have to default to `cp -p'.
29606 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
29608 elif ln conf$$.
file conf$$
2>/dev
/null
; then
29616 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
29617 rmdir conf$$.dir
2>/dev
/null
29622 # Create "$as_dir" as a directory, including parents if necessary.
29627 -*) as_dir
=.
/$as_dir;;
29629 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
29633 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
29634 *) as_qdir
=$as_dir;;
29636 as_dirs
="'$as_qdir' $as_dirs"
29637 as_dir
=`$as_dirname -- "$as_dir" ||
29638 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29639 X"$as_dir" : 'X\(//\)[^/]' \| \
29640 X"$as_dir" : 'X\(//\)$' \| \
29641 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
29642 $as_echo X"$as_dir" |
29643 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29647 /^X\(\/\/\)[^/].*/{
29660 test -d "$as_dir" && break
29662 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
29663 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
29667 if mkdir
-p .
2>/dev
/null
; then
29668 as_mkdir_p
='mkdir -p "$as_dir"'
29670 test -d .
/-p && rmdir .
/-p
29674 if test -x / >/dev
/null
2>&1; then
29675 as_test_x
='test -x'
29677 if ls -dL / >/dev
/null
2>&1; then
29684 if test -d "$1"; then
29690 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
29691 ???[sx]*):;;*)false;;esac;fi
29695 as_executable_p
=$as_test_x
29697 # Sed expression to map a string onto a valid CPP name.
29698 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
29700 # Sed expression to map a string onto a valid variable name.
29701 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
29705 ## ----------------------------------- ##
29706 ## Main body of $CONFIG_STATUS script. ##
29707 ## ----------------------------------- ##
29709 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
29711 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
29712 # Save the log message, to keep $0 and so on meaningful, and to
29713 # report actual input values of CONFIG_FILES etc. instead of their
29714 # values after options handling.
29716 This file was extended by emacs $as_me 24.3.50, which was
29717 generated by GNU Autoconf 2.65. Invocation command line was
29719 CONFIG_FILES = $CONFIG_FILES
29720 CONFIG_HEADERS = $CONFIG_HEADERS
29721 CONFIG_LINKS = $CONFIG_LINKS
29722 CONFIG_COMMANDS = $CONFIG_COMMANDS
29725 on `(hostname || uname -n) 2>/dev/null | sed 1q`
29730 case $ac_config_files in *"
29731 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
29734 case $ac_config_headers in *"
29735 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
29739 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29740 # Files that config.status was made for.
29741 config_files="$ac_config_files"
29742 config_headers="$ac_config_headers"
29743 config_commands="$ac_config_commands"
29747 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
29749 \`$as_me' instantiates files and other configuration actions
29750 from templates according to the current configuration. Unless the files
29751 and actions are specified as TAGs, all are instantiated by default.
29753 Usage: $0 [OPTION]... [TAG]...
29755 -h, --help print this help, then exit
29756 -V, --version print version number and configuration settings, then exit
29757 --config print configuration, then exit
29758 -q, --quiet, --silent
29759 do not print progress messages
29760 -d, --debug don't remove temporary files
29761 --recheck update $as_me by reconfiguring in the same conditions
29762 --file=FILE[:TEMPLATE]
29763 instantiate the configuration file FILE
29764 --header=FILE[:TEMPLATE]
29765 instantiate the configuration header FILE
29767 Configuration files:
29770 Configuration headers:
29773 Configuration commands:
29776 Report bugs to the package provider."
29779 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29780 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
29782 emacs config.status 24.3.50
29783 configured by $0, generated by GNU Autoconf 2.65,
29784 with options \\"\$ac_cs_config\\"
29786 Copyright (C) 2009 Free Software Foundation, Inc.
29787 This config.status script is free software; the Free Software Foundation
29788 gives unlimited permission to copy, distribute and modify it."
29795 test -n "\$AWK" || AWK=awk
29798 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
29799 # The default lists apply if the user does not specify any file.
29805 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
29806 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
29817 # Handling of the options.
29818 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
29820 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
29821 $as_echo "$ac_cs_version"; exit ;;
29822 --config |
--confi |
--conf |
--con |
--co |
--c )
29823 $as_echo "$ac_cs_config"; exit ;;
29824 --debug |
--debu |
--deb |
--de |
--d |
-d )
29826 --file |
--fil |
--fi |
--f )
29829 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29831 as_fn_append CONFIG_FILES
" '$ac_optarg'"
29832 ac_need_defaults
=false
;;
29833 --header |
--heade |
--head |
--hea )
29836 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29838 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
29839 ac_need_defaults
=false
;;
29841 # Conflict between --help and --header
29842 as_fn_error
"ambiguous option: \`$1'
29843 Try \`$0 --help' for more information.";;
29844 --help |
--hel |
-h )
29845 $as_echo "$ac_cs_usage"; exit ;;
29846 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
29847 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
29850 # This is an error.
29851 -*) as_fn_error
"unrecognized option: \`$1'
29852 Try \`$0 --help' for more information." ;;
29854 *) as_fn_append ac_config_targets
" $1"
29855 ac_need_defaults
=false
;;
29861 ac_configure_extra_args
=
29863 if $ac_cs_silent; then
29865 ac_configure_extra_args
="$ac_configure_extra_args --silent"
29869 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29870 if \$ac_cs_recheck; then
29871 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
29873 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
29874 CONFIG_SHELL='$SHELL'
29875 export CONFIG_SHELL
29880 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
29884 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
29885 ## Running $as_me. ##
29891 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29895 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
29896 GCC="$GCC" CPPFLAGS="$CPPFLAGS" opsys="$opsys"
29900 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
29902 # Handling of arguments.
29903 for ac_config_target
in $ac_config_targets
29905 case $ac_config_target in
29906 "src/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
29907 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
29908 "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" ;;
29909 "nextstep/GNUstep/Emacs.base/Resources/Emacs.desktop") CONFIG_FILES
="$CONFIG_FILES nextstep/GNUstep/Emacs.base/Resources/Emacs.desktop:nextstep/templates/Emacs.desktop.in" ;;
29910 "nextstep/Cocoa/Emacs.base/Contents/Info.plist") CONFIG_FILES
="$CONFIG_FILES nextstep/Cocoa/Emacs.base/Contents/Info.plist:nextstep/templates/Info.plist.in" ;;
29911 "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" ;;
29912 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
29913 "lib/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/Makefile" ;;
29914 "lib-src/Makefile") CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile" ;;
29915 "oldXMenu/Makefile") CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
29916 "doc/emacs/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/emacs/Makefile" ;;
29917 "doc/misc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/misc/Makefile" ;;
29918 "doc/lispintro/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispintro/Makefile" ;;
29919 "doc/lispref/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispref/Makefile" ;;
29920 "src/Makefile") CONFIG_FILES
="$CONFIG_FILES src/Makefile" ;;
29921 "lwlib/Makefile") CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
29922 "lisp/Makefile") CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
29923 "leim/Makefile") CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
29924 "nextstep/Makefile") CONFIG_FILES
="$CONFIG_FILES nextstep/Makefile" ;;
29925 "nt/Makefile") CONFIG_FILES
="$CONFIG_FILES nt/Makefile" ;;
29926 "test/automated/Makefile") CONFIG_FILES
="$CONFIG_FILES test/automated/Makefile" ;;
29927 "admin/unidata/Makefile") CONFIG_FILES
="$CONFIG_FILES admin/unidata/Makefile" ;;
29928 "src/epaths.h") CONFIG_COMMANDS
="$CONFIG_COMMANDS src/epaths.h" ;;
29929 "src/.gdbinit") CONFIG_COMMANDS
="$CONFIG_COMMANDS src/.gdbinit" ;;
29931 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
29936 # If the user did not use the arguments to specify the items to instantiate,
29937 # then the envvar interface is used. Set only those that are not.
29938 # We use the long form for the default assignment because of an extremely
29939 # bizarre bug on SunOS 4.1.3.
29940 if $ac_need_defaults; then
29941 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
29942 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
29943 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
29946 # Have a temporary directory for convenience. Make it in the build tree
29947 # simply because there is no reason against having it here, and in addition,
29948 # creating and moving files from /tmp can sometimes cause problems.
29949 # Hook for its removal unless debugging.
29950 # Note that there is a small window in which the directory will not be cleaned:
29951 # after its creation but before its name has been assigned to `$tmp'.
29955 trap 'exit_status=$?
29956 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
29958 trap 'as_fn_exit 1' 1 2 13 15
29960 # Create a (secure) tmp directory for tmp files.
29963 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
29964 test -n "$tmp" && test -d "$tmp"
29967 tmp
=.
/conf$$
-$RANDOM
29968 (umask 077 && mkdir
"$tmp")
29969 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
29971 # Set up the scripts for CONFIG_FILES section.
29972 # No need to generate them if there are no CONFIG_FILES.
29973 # This happens for instance with `./config.status config.h'.
29974 if test -n "$CONFIG_FILES"; then
29976 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
29977 ac_cs_awk_getline
=:
29978 ac_cs_awk_pipe_init
=
29979 ac_cs_awk_read_file
='
29980 while ((getline aline < (F[key])) > 0)
29983 ac_cs_awk_pipe_fini
=
29985 ac_cs_awk_getline
=false
29986 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
29987 ac_cs_awk_read_file
='
29989 print "cat " F[key] " &&"
29990 '$ac_cs_awk_pipe_init
29991 # The final `:' finishes the AND list.
29992 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
29994 ac_cr
=`echo X | tr X '\015'`
29995 # On cygwin, bash can eat \r inside `` if the user requested igncr.
29996 # But we know of no other shell where ac_cr would be empty at this
29997 # point, so we can use a bashism as a fallback.
29998 if test "x$ac_cr" = x
; then
29999 eval ac_cr
=\$
\'\\r
\'
30001 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
30002 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
30005 ac_cs_awk_cr
=$ac_cr
30008 echo 'BEGIN {' >"$tmp/subs1.awk" &&
30011 # Create commands to substitute file output variables.
30013 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
30014 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
30015 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
30018 } >conf$
$files.sh
&&
30019 . .
/conf$
$files.sh ||
30020 as_fn_error
"could not make $CONFIG_STATUS" "$LINENO" 5
30021 rm -f conf$
$files.sh
30024 echo "cat >conf$$subs.awk <<_ACEOF" &&
30025 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
30027 } >conf$$subs.sh ||
30028 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
30029 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
30031 for ac_last_try in false false false false false :; do
30032 . ./conf$$subs.sh ||
30033 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
30035 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
30036 if test $ac_delim_n = $ac_delim_num; then
30038 elif $ac_last_try; then
30039 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
30041 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
30044 rm -f conf$$subs.sh
30046 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30047 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
30051 s/^/S["/; s
/!.
*/"]=/
30061 s/\(.\{148\}\)..*/\1/
30063 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
30068 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
30075 s/\(.\{148\}\)..*/\1/
30077 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
30081 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
30086 ' <conf$$subs.awk | sed '
30091 ' >>$CONFIG_STATUS || ac_write_fail=1
30092 rm -f conf$$subs.awk
30093 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30095 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
30096 for (key in S) S_is_set[key] = 1
30098 \$ac_cs_awk_pipe_init
30102 nfields = split(line, field, "@
")
30104 len = length(field[1])
30105 for (i = 2; i < nfields; i++) {
30107 keylen = length(key)
30108 if (S_is_set[key]) {
30110 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
30111 len += length(value) + length(field[++i])
30116 if (nfields == 3 && !substed) {
30118 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
30119 \$ac_cs_awk_read_file
30125 \$ac_cs_awk_pipe_fini
30128 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30129 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
30130 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
30133 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
30134 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
30137 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30138 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
30139 # trailing colons and then remove the whole line if VPATH becomes empty
30140 # (actually we leave an empty line to preserve line numbers).
30141 if test "x
$srcdir" = x.; then
30142 ac_vpsub='/^[ ]*VPATH[ ]*=/{
30143 s/:*\$(srcdir):*/:/
30144 s/:*\${srcdir}:*/:/
30146 s/^\([^=]*=[ ]*\):*/\1/
30152 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30153 fi # test -n "$CONFIG_FILES"
30155 # Set up the scripts for CONFIG_HEADERS section.
30156 # No need to generate them if there are no CONFIG_HEADERS.
30157 # This happens for instance with `./config.status Makefile'.
30158 if test -n "$CONFIG_HEADERS"; then
30159 cat >"$tmp/defines.
awk" <<\_ACAWK ||
30163 # Transform confdefs.h into an awk script `defines.awk', embedded as
30164 # here-document in config.status, that substitutes the proper values into
30165 # config.h.in to produce config.h.
30167 # Create a delimiter string that does not exist in confdefs.h, to ease
30168 # handling of long lines.
30170 for ac_last_try in false false :; do
30171 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
30172 if test -z "$ac_t"; then
30174 elif $ac_last_try; then
30175 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
30177 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
30181 # For the awk script, D is an array of macro values keyed by name,
30182 # likewise P contains macro parameters if any. Preserve backslash
30183 # newline sequences.
30185 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
30187 s/.\{148\}/&'"$ac_delim"'/g
30190 s/^[ ]*#[ ]*define[ ][ ]*/ /
30197 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
30199 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
30203 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
30204 D["\
1"]=" \
3\\\\\\n
"\\/p
30206 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
30211 s/.\{148\}/&'"$ac_delim"'/g
30216 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
30219 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
30221 ' <confdefs.h | sed '
30222 s/'"$ac_delim"'/"\\\
30223 "/g' >>$CONFIG_STATUS || ac_write_fail=1
30225 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30226 for (key in D) D_is_set[key] = 1
30229 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
30231 split(line, arg, " ")
30232 if (arg[1] == "#") {
30236 defundef
= substr
(arg
[1], 2)
30239 split(mac1
, mac2
, "(") #)
30241 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
30242 if (D_is_set
[macro
]) {
30243 # Preserve the white space surrounding the "#".
30244 print prefix
"define", macro P
[macro
] D
[macro
]
30247 # Replace #undef with comments. This is necessary, for example,
30248 # in the case of _POSIX_SOURCE, which is predefined and required
30249 # on some systems where configure will not decide to define it.
30250 if (defundef
== "undef") {
30251 print
"/*", prefix defundef
, macro
, "*/"
30259 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30260 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
30261 fi # test -n "$CONFIG_HEADERS"
30264 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
30269 :[FHLC
]) ac_mode
=$ac_tag; continue;;
30271 case $ac_mode$ac_tag in
30273 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
30274 :[FH
]-) ac_tag
=-:-;;
30275 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
30292 -) ac_f
="$tmp/stdin";;
30293 *) # Look for the file first in the build tree, then in the source tree
30294 # (if the path is not absolute). The absolute path cannot be DOS-style,
30295 # because $ac_f cannot contain `:'.
30299 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
30301 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
30303 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
30304 as_fn_append ac_file_inputs
" '$ac_f'"
30307 # Let's still pretend it is `configure' which instantiates (i.e., don't
30308 # use $as_me), people would be surprised to read:
30309 # /* config.h. Generated by config.status. */
30310 configure_input
='Generated from '`
30311 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
30313 if test x
"$ac_file" != x-
; then
30314 configure_input
="$ac_file. $configure_input"
30315 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
30316 $as_echo "$as_me: creating $ac_file" >&6;}
30318 # Neutralize special characters interpreted by sed in replacement strings.
30319 case $configure_input in #(
30320 *\
&* |
*\|
* |
*\\* )
30321 ac_sed_conf_input
=`$as_echo "$configure_input" |
30322 sed 's/[\\\\&|]/\\\\&/g'`;; #(
30323 *) ac_sed_conf_input
=$configure_input;;
30327 *:-:* |
*:-) cat >"$tmp/stdin" \
30328 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
30333 ac_dir
=`$as_dirname -- "$ac_file" ||
30334 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30335 X"$ac_file" : 'X\(//\)[^/]' \| \
30336 X"$ac_file" : 'X\(//\)$' \| \
30337 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
30338 $as_echo X"$ac_file" |
30339 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30343 /^X\(\/\/\)[^/].*/{
30356 as_dir
="$ac_dir"; as_fn_mkdir_p
30360 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
30362 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
30363 # A ".." for each directory in $ac_dir_suffix.
30364 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
30365 case $ac_top_builddir_sub in
30366 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
30367 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
30370 ac_abs_top_builddir
=$ac_pwd
30371 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
30372 # for backward compatibility:
30373 ac_top_builddir
=$ac_top_build_prefix
30376 .
) # We are building in place.
30378 ac_top_srcdir
=$ac_top_builddir_sub
30379 ac_abs_top_srcdir
=$ac_pwd ;;
30380 [\\/]* | ?
:[\\/]* ) # Absolute name.
30381 ac_srcdir
=$srcdir$ac_dir_suffix;
30382 ac_top_srcdir
=$srcdir
30383 ac_abs_top_srcdir
=$srcdir ;;
30384 *) # Relative name.
30385 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
30386 ac_top_srcdir
=$ac_top_build_prefix$srcdir
30387 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
30389 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
30399 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
30400 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
30402 ac_MKDIR_P
=$MKDIR_P
30404 [\\/$
]* | ?
:[\\/]* ) ;;
30405 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
30409 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30410 # If the template does not know about datarootdir, expand it.
30411 # FIXME: This hack should be removed a few years after 2.60.
30412 ac_datarootdir_hack
=; ac_datarootdir_seen
=
30423 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
30424 *datarootdir
*) ac_datarootdir_seen
=yes;;
30425 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
30426 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
30427 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
30429 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30430 ac_datarootdir_hack='
30431 s&@datadir@&$datadir&g
30432 s&@docdir@&$docdir&g
30433 s&@infodir@&$infodir&g
30434 s&@localedir@&$localedir&g
30435 s&@mandir@&$mandir&g
30436 s&\\\${datarootdir}&$datarootdir&g' ;;
30440 # Neutralize VPATH when `$srcdir' = `.'.
30441 # Shell code in configure.ac might set extrasub.
30442 # FIXME: do we really want to maintain this feature?
30443 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30444 ac_sed_extra="$ac_vpsub
30447 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30449 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
30450 s|@configure_input@|
$ac_sed_conf_input|
;t t
30451 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
30452 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
30453 s
&@srcdir@
&$ac_srcdir&;t t
30454 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
30455 s
&@top_srcdir@
&$ac_top_srcdir&;t t
30456 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
30457 s
&@builddir@
&$ac_builddir&;t t
30458 s
&@abs_builddir@
&$ac_abs_builddir&;t t
30459 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
30460 s
&@INSTALL@
&$ac_INSTALL&;t t
30461 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
30462 $ac_datarootdir_hack
30464 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
30465 if $ac_cs_awk_getline; then
30466 $AWK -f "$tmp/subs.
awk"
30468 $AWK -f "$tmp/subs.
awk" | $SHELL
30470 || as_fn_error "could not create
$ac_file" "$LINENO" 5
30472 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
30473 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
30474 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
30475 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
30476 which seems to be undefined. Please make sure it is defined." >&5
30477 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
30478 which seems to be undefined. Please make sure it is defined." >&2;}
30482 -) cat "$tmp/out" && rm -f "$tmp/out";;
30483 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
30485 || as_fn_error "could not create $ac_file" "$LINENO" 5
30491 if test x"$ac_file" != x-; then
30493 $as_echo "/* $configure_input */" \
30494 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
30495 } >"$tmp/config.h" \
30496 || as_fn_error "could not create $ac_file" "$LINENO" 5
30497 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
30498 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
30499 $as_echo "$as_me: $ac_file is unchanged" >&6;}
30502 mv "$tmp/config.h" "$ac_file" \
30503 || as_fn_error "could not create $ac_file" "$LINENO" 5
30506 $as_echo "/* $configure_input */" \
30507 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
30508 || as_fn_error "could not create -" "$LINENO" 5
30510 # Compute "$ac_file"'s index
in $config_headers.
30513 for _am_header
in $config_headers :; do
30514 case $_am_header in
30515 $_am_arg |
$_am_arg:* )
30518 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
30521 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
30522 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30523 X"$_am_arg" : 'X\(//\)[^/]' \| \
30524 X"$_am_arg" : 'X\(//\)$' \| \
30525 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
30526 $as_echo X"$_am_arg" |
30527 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30531 /^X\(\/\/\)[^/].*/{
30543 s/.*/./; q'`/stamp-h
$_am_stamp_count
30546 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
30547 $as_echo "$as_me: executing $ac_file commands" >&6;}
30552 case $ac_file$ac_mode in
30553 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
30554 # Autoconf 2.62 quotes --file arguments for eval, but not when files
30555 # are listed without --file. Let's play safe and only enable the eval
30556 # if we detect the quoting.
30557 case $CONFIG_FILES in
30558 *\'*) eval set x
"$CONFIG_FILES" ;;
30559 *) set x
$CONFIG_FILES ;;
30564 # Strip MF so we end up with the name of the file.
30565 mf
=`echo "$mf" | sed -e 's/:.*$//'`
30566 # Check whether this is an Automake generated Makefile or not.
30567 # We used to match only the files named `Makefile.in', but
30568 # some people rename them; so instead we look at the file content.
30569 # Grep'ing the first line is not enough: some people post-process
30570 # each Makefile.in and add a new line on top of each file to say so.
30571 # Grep'ing the whole file is not good either: AIX grep has a line
30572 # limit of 2048, but all sed's we know have understand at least 4000.
30573 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
30574 dirpart
=`$as_dirname -- "$mf" ||
30575 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30576 X"$mf" : 'X\(//\)[^/]' \| \
30577 X"$mf" : 'X\(//\)$' \| \
30578 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
30580 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30584 /^X\(\/\/\)[^/].*/{
30600 # Extract the definition of DEPDIR, am__include, and am__quote
30601 # from the Makefile without running `make'.
30602 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
30603 test -z "$DEPDIR" && continue
30604 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
30605 test -z "am__include" && continue
30606 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
30607 # When using ansi2knr, U may be empty or an underscore; expand it
30608 U
=`sed -n 's/^U = //p' < "$mf"`
30609 # Find all dependency output files, they are included files with
30610 # $(DEPDIR) in their names. We invoke sed twice because it is the
30611 # simplest approach to changing $(DEPDIR) to its actual value in the
30613 for file in `sed -n "
30614 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
30615 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
30616 # Make sure the directory exists.
30617 test -f "$dirpart/$file" && continue
30618 fdir
=`$as_dirname -- "$file" ||
30619 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30620 X"$file" : 'X\(//\)[^/]' \| \
30621 X"$file" : 'X\(//\)$' \| \
30622 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
30623 $as_echo X"$file" |
30624 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30628 /^X\(\/\/\)[^/].*/{
30641 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
30642 # echo "creating $dirpart/$file"
30643 echo '# dummy' > "$dirpart/$file"
30649 if test "${opsys}" = "mingw32"; then
30650 ${MAKE-make} MAKEFILE_NAME
=do-not-make-Makefile epaths-force-w32
30652 ${MAKE-make} MAKEFILE_NAME
=do-not-make-Makefile epaths-force
30656 if test ! -f src
/.gdbinit
&& test -f "$srcdir/src/.gdbinit"; then
30657 echo "source $srcdir/src/.gdbinit" > src
/.gdbinit
30667 ac_clean_files
=$ac_clean_files_save
30669 test $ac_write_fail = 0 ||
30670 as_fn_error
"write failure creating $CONFIG_STATUS" "$LINENO" 5
30673 # configure is writing to config.log, and then calls config.status.
30674 # config.status does its own redirection, appending to config.log.
30675 # Unfortunately, on DOS this fails, as config.log is still kept open
30676 # by configure, so config.status won't be able to write to it; its
30677 # output is simply discarded. So we exec the FD to /dev/null,
30678 # effectively closing config.log, so it can be properly (re)opened and
30679 # appended to by config.status. When coming back to configure, we
30680 # need to make the FD available again.
30681 if test "$no_create" != yes; then
30683 ac_config_status_args
=
30684 test "$silent" = yes &&
30685 ac_config_status_args
="$ac_config_status_args --quiet"
30687 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
30689 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
30690 # would make configure fail if this is the last instruction.
30691 $ac_cs_success || as_fn_exit $?
30693 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
30694 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
30695 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}