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
608 LD_SWITCH_SYSTEM_TEMACS
612 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_FALSE
613 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_TRUE
614 gl_GNULIB_ENABLED_verify_FALSE
615 gl_GNULIB_ENABLED_verify_TRUE
616 gl_GNULIB_ENABLED_strtoull_FALSE
617 gl_GNULIB_ENABLED_strtoull_TRUE
618 gl_GNULIB_ENABLED_strtoll_FALSE
619 gl_GNULIB_ENABLED_strtoll_TRUE
620 gl_GNULIB_ENABLED_stat_FALSE
621 gl_GNULIB_ENABLED_stat_TRUE
622 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_FALSE
623 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_TRUE
624 gl_GNULIB_ENABLED_pathmax_FALSE
625 gl_GNULIB_ENABLED_pathmax_TRUE
626 gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_FALSE
627 gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_TRUE
628 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_FALSE
629 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_TRUE
630 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE
631 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE
632 gl_GNULIB_ENABLED_getgroups_FALSE
633 gl_GNULIB_ENABLED_getgroups_TRUE
634 gl_GNULIB_ENABLED_euidaccess_FALSE
635 gl_GNULIB_ENABLED_euidaccess_TRUE
636 gl_GNULIB_ENABLED_dosname_FALSE
637 gl_GNULIB_ENABLED_dosname_TRUE
638 gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_FALSE
639 gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_TRUE
645 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
648 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
649 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
650 TIME_H_DEFINES_STRUCT_TIMESPEC
651 NEXT_AS_FIRST_DIRECTIVE_TIME_H
653 WINDOWS_64_BIT_ST_SIZE
654 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
656 NEXT_AS_FIRST_DIRECTIVE_STRING_H
658 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
660 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
669 REPLACE_STDIO_WRITE_FUNCS
670 REPLACE_STDIO_READ_FUNCS
679 REPLACE_OBSTACK_PRINTF
704 HAVE_DECL_OBSTACK_PRINTF
710 GNULIB_VSPRINTF_POSIX
714 GNULIB_VFPRINTF_POSIX
721 GNULIB_STDIO_H_SIGPIPE
722 GNULIB_STDIO_H_NONBLOCKING
737 GNULIB_OBSTACK_PRINTF_POSIX
738 GNULIB_OBSTACK_PRINTF
763 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
765 GL_GENERATE_STDDEF_H_FALSE
766 GL_GENERATE_STDDEF_H_TRUE
771 GL_GENERATE_STDBOOL_H_FALSE
772 GL_GENERATE_STDBOOL_H_TRUE
774 GL_GENERATE_STDARG_H_FALSE
775 GL_GENERATE_STDARG_H_TRUE
777 NEXT_AS_FIRST_DIRECTIVE_STDARG_H
779 GL_GENERATE_STDALIGN_H_FALSE
780 GL_GENERATE_STDALIGN_H_TRUE
782 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
788 REPLACE_PTHREAD_SIGMASK
790 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
791 HAVE_STRUCT_SIGACTION_SA_SIGACTION
797 HAVE_POSIX_SIGNALBLOCKING
800 GNULIB_SIGNAL_H_SIGPIPE
802 GNULIB_PTHREAD_SIGMASK
804 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H
818 HAVE_DECL_LOCALTIME_R
897 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
899 UINT64_MAX_EQ_ULONG_MAX
900 UINT32_MAX_LT_UINTMAX_MAX
903 INT64_MAX_EQ_LONG_MAX
904 INT32_MAX_LT_INTMAX_MAX
914 GL_GENERATE_STDINT_H_FALSE
915 GL_GENERATE_STDINT_H_TRUE
924 HAVE_SIGNED_SIG_ATOMIC_T
927 BITSIZEOF_SIG_ATOMIC_T
930 APPLE_UNIVERSAL_BUILD
934 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
939 HAVE_UNSIGNED_LONG_LONG_INT
942 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
944 REPLACE_STRUCT_TIMEVAL
950 GNULIB_GL_UNISTD_H_GETOPT
953 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
969 REPLACE_CANONICALIZE_FILE_NAME
974 HAVE_STRUCT_RANDOM_DATA
997 HAVE_CANONICALIZE_FILE_NAME
1008 GNULIB_SECURE_GETENV
1011 GNULIB_REALLOC_POSIX
1028 GNULIB_CANONICALIZE_FILE_NAME
1066 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H
1077 GL_GENERATE_EXECINFO_H_FALSE
1078 GL_GENERATE_EXECINFO_H_TRUE
1087 GL_GENERATE_ERRNO_H_FALSE
1088 GL_GENERATE_ERRNO_H_TRUE
1090 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
1093 NEXT_AS_FIRST_DIRECTIVE_DIRENT_H
1096 PRAGMA_SYSTEM_HEADER
1097 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1120 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
1121 UNISTD_H_HAVE_WINSOCK2_H
1142 REPLACE_GETDOMAINNAME
1153 HAVE_DECL_SETHOSTNAME
1154 HAVE_DECL_GETUSERSHELL
1155 HAVE_DECL_GETPAGESIZE
1156 HAVE_DECL_GETLOGIN_R
1157 HAVE_DECL_GETDOMAINNAME
1196 GNULIB_UNISTD_H_SIGPIPE
1197 GNULIB_UNISTD_H_NONBLOCKING
1223 GNULIB_GETDTABLESIZE
1224 GNULIB_GETDOMAINNAME
1241 GL_GENERATE_ALLOCA_H_FALSE
1242 GL_GENERATE_ALLOCA_H_TRUE
1245 GL_COND_LIBTOOL_FALSE
1246 GL_COND_LIBTOOL_TRUE
1277 x_default_search_path
1358 INSTALL_ARCH_INDEP_EXTRA
1360 LD_SWITCH_X_SITE_RPATH
1427 INSTALL_STRIP_PROGRAM
1469 program_transform_name
1480 ac_subst_files
='deps_frag
1483 enable_option_checking
1506 with_toolkit_scroll_bars
1520 with_pkg_config_prog
1523 enable_ns_self_contained
1524 enable_locallisppath
1526 enable_check_lisp_object_type
1529 enable_gtk_deprecation_warnings
1530 enable_dependency_tracking
1533 enable_link_time_optimization
1537 ac_precious_vars
='build_alias
1549 # Initialize some variables set by options.
1551 ac_init_version
=false
1552 ac_unrecognized_opts
=
1553 ac_unrecognized_sep
=
1554 # The variables have the same names as the options, with
1555 # dashes changed to underlines.
1556 cache_file
=/dev
/null
1563 program_transform_name
=s
,x
,x
,
1571 # Installation directory options.
1572 # These are left unexpanded so users can "make install exec_prefix=/foo"
1573 # and all the variables that are supposed to be based on exec_prefix
1574 # by default will actually change.
1575 # Use braces instead of parens because sh, perl, etc. also accept them.
1576 # (The list follows the same order as the GNU Coding Standards.)
1577 bindir
='${exec_prefix}/bin'
1578 sbindir
='${exec_prefix}/sbin'
1579 libexecdir
='${exec_prefix}/libexec'
1580 datarootdir
='${prefix}/share'
1581 datadir
='${datarootdir}'
1582 sysconfdir
='${prefix}/etc'
1583 sharedstatedir
='${prefix}/com'
1584 localstatedir
='${prefix}/var'
1585 includedir
='${prefix}/include'
1586 oldincludedir
='/usr/include'
1587 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
1588 infodir
='${datarootdir}/info'
1593 libdir
='${exec_prefix}/lib'
1594 localedir
='${datarootdir}/locale'
1595 mandir
='${datarootdir}/man'
1601 # If the previous option needs an argument, assign it.
1602 if test -n "$ac_prev"; then
1603 eval $ac_prev=\
$ac_option
1609 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1613 # Accept the important Cygnus configure options, so we can diagnose typos.
1615 case $ac_dashdash$ac_option in
1619 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1621 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1622 bindir
=$ac_optarg ;;
1624 -build |
--build |
--buil |
--bui |
--bu)
1625 ac_prev
=build_alias
;;
1626 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1627 build_alias
=$ac_optarg ;;
1629 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1630 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1631 ac_prev
=cache_file
;;
1632 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1633 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1634 cache_file
=$ac_optarg ;;
1636 --config-cache |
-C)
1637 cache_file
=config.cache
;;
1639 -datadir |
--datadir |
--datadi |
--datad)
1641 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1642 datadir
=$ac_optarg ;;
1644 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1645 |
--dataroo |
--dataro |
--datar)
1646 ac_prev
=datarootdir
;;
1647 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1648 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1649 datarootdir
=$ac_optarg ;;
1651 -disable-* |
--disable-*)
1652 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1653 # Reject names that are not valid shell variable names.
1654 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1655 as_fn_error
"invalid feature name: $ac_useropt"
1656 ac_useropt_orig
=$ac_useropt
1657 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1658 case $ac_user_opts in
1660 "enable_
$ac_useropt"
1662 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1663 ac_unrecognized_sep
=', ';;
1665 eval enable_
$ac_useropt=no
;;
1667 -docdir |
--docdir |
--docdi |
--doc |
--do)
1669 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1670 docdir
=$ac_optarg ;;
1672 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1674 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1675 dvidir
=$ac_optarg ;;
1677 -enable-* |
--enable-*)
1678 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1679 # Reject names that are not valid shell variable names.
1680 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1681 as_fn_error
"invalid feature name: $ac_useropt"
1682 ac_useropt_orig
=$ac_useropt
1683 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1684 case $ac_user_opts in
1686 "enable_
$ac_useropt"
1688 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1689 ac_unrecognized_sep
=', ';;
1691 eval enable_
$ac_useropt=\
$ac_optarg ;;
1693 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1694 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1695 |
--exec |
--exe |
--ex)
1696 ac_prev
=exec_prefix
;;
1697 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1698 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1699 |
--exec=* |
--exe=* |
--ex=*)
1700 exec_prefix
=$ac_optarg ;;
1702 -gas |
--gas |
--ga |
--g)
1703 # Obsolete; use --with-gas.
1706 -help |
--help |
--hel |
--he |
-h)
1707 ac_init_help
=long
;;
1708 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1709 ac_init_help
=recursive
;;
1710 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1711 ac_init_help
=short
;;
1713 -host |
--host |
--hos |
--ho)
1714 ac_prev
=host_alias
;;
1715 -host=* |
--host=* |
--hos=* |
--ho=*)
1716 host_alias
=$ac_optarg ;;
1718 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1720 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1722 htmldir
=$ac_optarg ;;
1724 -includedir |
--includedir |
--includedi |
--included |
--include \
1725 |
--includ |
--inclu |
--incl |
--inc)
1726 ac_prev
=includedir
;;
1727 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1728 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1729 includedir
=$ac_optarg ;;
1731 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1733 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1734 infodir
=$ac_optarg ;;
1736 -libdir |
--libdir |
--libdi |
--libd)
1738 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1739 libdir
=$ac_optarg ;;
1741 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1742 |
--libexe |
--libex |
--libe)
1743 ac_prev
=libexecdir
;;
1744 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1745 |
--libexe=* |
--libex=* |
--libe=*)
1746 libexecdir
=$ac_optarg ;;
1748 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1749 ac_prev
=localedir
;;
1750 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1751 localedir
=$ac_optarg ;;
1753 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1754 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1755 ac_prev
=localstatedir
;;
1756 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1757 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1758 localstatedir
=$ac_optarg ;;
1760 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1762 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1763 mandir
=$ac_optarg ;;
1765 -nfp |
--nfp |
--nf)
1766 # Obsolete; use --without-fp.
1769 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1770 |
--no-cr |
--no-c |
-n)
1773 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1774 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1777 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1778 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1779 |
--oldin |
--oldi |
--old |
--ol |
--o)
1780 ac_prev
=oldincludedir
;;
1781 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1782 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1783 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1784 oldincludedir
=$ac_optarg ;;
1786 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1788 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1789 prefix
=$ac_optarg ;;
1791 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1792 |
--program-pre |
--program-pr |
--program-p)
1793 ac_prev
=program_prefix
;;
1794 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1795 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1796 program_prefix
=$ac_optarg ;;
1798 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1799 |
--program-suf |
--program-su |
--program-s)
1800 ac_prev
=program_suffix
;;
1801 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1802 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1803 program_suffix
=$ac_optarg ;;
1805 -program-transform-name |
--program-transform-name \
1806 |
--program-transform-nam |
--program-transform-na \
1807 |
--program-transform-n |
--program-transform- \
1808 |
--program-transform |
--program-transfor \
1809 |
--program-transfo |
--program-transf \
1810 |
--program-trans |
--program-tran \
1811 |
--progr-tra |
--program-tr |
--program-t)
1812 ac_prev
=program_transform_name
;;
1813 -program-transform-name=* |
--program-transform-name=* \
1814 |
--program-transform-nam=* |
--program-transform-na=* \
1815 |
--program-transform-n=* |
--program-transform-=* \
1816 |
--program-transform=* |
--program-transfor=* \
1817 |
--program-transfo=* |
--program-transf=* \
1818 |
--program-trans=* |
--program-tran=* \
1819 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1820 program_transform_name
=$ac_optarg ;;
1822 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1824 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1825 pdfdir
=$ac_optarg ;;
1827 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1829 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1832 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1833 |
-silent |
--silent |
--silen |
--sile |
--sil)
1836 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1838 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1840 sbindir
=$ac_optarg ;;
1842 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1843 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1844 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1846 ac_prev
=sharedstatedir
;;
1847 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1848 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1849 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1851 sharedstatedir
=$ac_optarg ;;
1853 -site |
--site |
--sit)
1855 -site=* |
--site=* |
--sit=*)
1858 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1860 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1861 srcdir
=$ac_optarg ;;
1863 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1864 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1865 ac_prev
=sysconfdir
;;
1866 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1867 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1868 sysconfdir
=$ac_optarg ;;
1870 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1871 ac_prev
=target_alias
;;
1872 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1873 target_alias
=$ac_optarg ;;
1875 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1878 -version |
--version |
--versio |
--versi |
--vers |
-V)
1879 ac_init_version
=: ;;
1882 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1883 # Reject names that are not valid shell variable names.
1884 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1885 as_fn_error
"invalid package name: $ac_useropt"
1886 ac_useropt_orig
=$ac_useropt
1887 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1888 case $ac_user_opts in
1892 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1893 ac_unrecognized_sep
=', ';;
1895 eval with_
$ac_useropt=\
$ac_optarg ;;
1897 -without-* |
--without-*)
1898 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1899 # Reject names that are not valid shell variable names.
1900 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1901 as_fn_error
"invalid package name: $ac_useropt"
1902 ac_useropt_orig
=$ac_useropt
1903 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1904 case $ac_user_opts in
1908 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1909 ac_unrecognized_sep
=', ';;
1911 eval with_
$ac_useropt=no
;;
1914 # Obsolete; use --with-x.
1917 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1918 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1919 ac_prev
=x_includes
;;
1920 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1921 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1922 x_includes
=$ac_optarg ;;
1924 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1925 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1926 ac_prev
=x_libraries
;;
1927 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1928 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1929 x_libraries
=$ac_optarg ;;
1931 -*) as_fn_error
"unrecognized option: \`$ac_option'
1932 Try \`$0 --help' for more information."
1936 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1937 # Reject names that are not valid shell variable names.
1938 case $ac_envvar in #(
1939 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1940 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1942 eval $ac_envvar=\
$ac_optarg
1943 export $ac_envvar ;;
1946 # FIXME: should be removed in autoconf 3.0.
1947 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1948 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1949 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1950 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1956 if test -n "$ac_prev"; then
1957 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1958 as_fn_error
"missing argument to $ac_option"
1961 if test -n "$ac_unrecognized_opts"; then
1962 case $enable_option_checking in
1964 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1965 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1969 # Check all directory arguments for consistency.
1970 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1971 datadir sysconfdir sharedstatedir localstatedir includedir \
1972 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1973 libdir localedir mandir
1975 eval ac_val
=\$
$ac_var
1976 # Remove trailing slashes.
1979 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1980 eval $ac_var=\
$ac_val;;
1982 # Be sure to have absolute directory names.
1984 [\\/$
]* | ?
:[\\/]* ) continue;;
1985 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1987 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1990 # There might be people who depend on the old broken behavior: `$host'
1991 # used to hold the argument of --host etc.
1992 # FIXME: To remove some day.
1995 target
=$target_alias
1997 # FIXME: To remove some day.
1998 if test "x$host_alias" != x
; then
1999 if test "x$build_alias" = x
; then
2000 cross_compiling
=maybe
2001 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
2002 If a cross compiler is detected then cross compile mode will be used." >&2
2003 elif test "x$build_alias" != "x$host_alias"; then
2009 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
2011 test "$silent" = yes && exec 6>/dev
/null
2014 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
2015 ac_ls_di
=`ls -di .` &&
2016 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
2017 as_fn_error
"working directory cannot be determined"
2018 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
2019 as_fn_error
"pwd does not report name of working directory"
2022 # Find the source files, if location was not specified.
2023 if test -z "$srcdir"; then
2024 ac_srcdir_defaulted
=yes
2025 # Try the directory containing this script, then the parent directory.
2026 ac_confdir
=`$as_dirname -- "$as_myself" ||
2027 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2028 X"$as_myself" : 'X\(//\)[^/]' \| \
2029 X"$as_myself" : 'X\(//\)$' \| \
2030 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
2031 $as_echo X"$as_myself" |
2032 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2050 if test ! -r "$srcdir/$ac_unique_file"; then
2054 ac_srcdir_defaulted
=no
2056 if test ! -r "$srcdir/$ac_unique_file"; then
2057 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
2058 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
2060 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
2062 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
2064 # When building in place, set srcdir=.
2065 if test "$ac_abs_confdir" = "$ac_pwd"; then
2068 # Remove unnecessary trailing slashes from srcdir.
2069 # Double slashes in file names in object file debugging info
2070 # mess up M-x gdb in Emacs.
2072 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
2074 for ac_var
in $ac_precious_vars; do
2075 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
2076 eval ac_env_
${ac_var}_value
=\$
${ac_var}
2077 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
2078 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
2082 # Report the --help message.
2084 if test "$ac_init_help" = "long"; then
2085 # Omit some internal or obsolete options to make the list less imposing.
2086 # This message is too long to be a string in the A/UX 3.1 sh.
2088 \`configure' configures emacs 24.3.50 to adapt to many kinds of systems.
2090 Usage: $0 [OPTION]... [VAR=VALUE]...
2092 To assign environment variables (e.g., CC, CFLAGS...), specify them as
2093 VAR=VALUE. See below for descriptions of some of the useful variables.
2095 Defaults for the options are specified in brackets.
2098 -h, --help display this help and exit
2099 --help=short display options specific to this package
2100 --help=recursive display the short help of all the included packages
2101 -V, --version display version information and exit
2102 -q, --quiet, --silent do not print \`checking...' messages
2103 --cache-file=FILE cache test results in FILE [disabled]
2104 -C, --config-cache alias for \`--cache-file=config.cache'
2105 -n, --no-create do not create output files
2106 --srcdir=DIR find the sources in DIR [configure dir or \`..']
2108 Installation directories:
2109 --prefix=PREFIX install architecture-independent files in PREFIX
2110 [$ac_default_prefix]
2111 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
2114 By default, \`make install' will install all the files in
2115 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
2116 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
2117 for instance \`--prefix=\$HOME'.
2119 For better control, use the options below.
2121 Fine tuning of the installation directories:
2122 --bindir=DIR user executables [EPREFIX/bin]
2123 --sbindir=DIR system admin executables [EPREFIX/sbin]
2124 --libexecdir=DIR program executables [EPREFIX/libexec]
2125 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
2126 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
2127 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
2128 --libdir=DIR object code libraries [EPREFIX/lib]
2129 --includedir=DIR C header files [PREFIX/include]
2130 --oldincludedir=DIR C header files for non-gcc [/usr/include]
2131 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
2132 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
2133 --infodir=DIR info documentation [DATAROOTDIR/info]
2134 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
2135 --mandir=DIR man documentation [DATAROOTDIR/man]
2136 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
2137 --htmldir=DIR html documentation [DOCDIR]
2138 --dvidir=DIR dvi documentation [DOCDIR]
2139 --pdfdir=DIR pdf documentation [DOCDIR]
2140 --psdir=DIR ps documentation [DOCDIR]
2146 --program-prefix=PREFIX prepend PREFIX to installed program names
2147 --program-suffix=SUFFIX append SUFFIX to installed program names
2148 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
2151 --x-includes=DIR X include files are
in DIR
2152 --x-libraries=DIR X library files are
in DIR
2155 --build=BUILD configure
for building on BUILD
[guessed
]
2156 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
2160 if test -n "$ac_init_help"; then
2161 case $ac_init_help in
2162 short | recursive
) echo "Configuration of emacs 24.3.50:";;
2167 --disable-option-checking ignore unrecognized
--enable/--with options
2168 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
2169 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
2170 --disable-ns-self-contained
2171 disable self contained build under NeXTstep
2172 --enable-locallisppath=PATH
2173 directories Emacs should search
for lisp files
2174 specific to this site
2175 --enable-checking[=LIST
]
2176 enable expensive run-time checks. With LIST
, enable
2177 only specific categories of checks. Categories are
:
2178 all
,yes,no. Flags are
: stringbytes
, stringoverrun
,
2179 stringfreelist
, xmallocoverrun
, conslist
, glyphs
2180 --enable-check-lisp-object-type
2181 enable compile
time checks
for the Lisp_Object data
2182 type. This is useful
for development
for catching
2183 certain types of bugs.
2184 --enable-profiling build emacs with low-level
, gprof profiling support.
2185 Mainly useful
for debugging Emacs itself. May not
2186 work on all platforms. Stops profiler.el working.
2187 --enable-autodepend automatically generate dependencies to .h-files.
2188 Requires GNU Make and Gcc. Enabled
if GNU Make and
2190 --enable-gtk-deprecation-warnings
2191 Show Gtk
+/Gdk deprecation warnings
for Gtk
+ >= 3.0
2192 --disable-dependency-tracking speeds up one-time build
2193 --enable-dependency-tracking do not reject slow dependency extractors
2194 --disable-largefile omit support
for large files
2195 --enable-gcc-warnings turn on lots of GCC warnings
/errors. This is
2196 intended
for developers
, and may generate false
2197 alarms when used with older or non-GNU development
2199 --enable-link-time-optimization
2200 build emacs with link-time optimization. This is
2201 supported only
for GCC since
4.5.0.
2202 --disable-acl do not support ACLs
2205 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
2206 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
2207 --without-all omit almost all features and build small executable
2208 with minimal dependencies
2209 --without-pop don
't support POP mail retrieval with movemail
2210 --with-kerberos support Kerberos-authenticated POP
2211 --with-kerberos5 support Kerberos version 5 authenticated POP
2212 --with-hesiod support Hesiod to get the POP server host
2213 --with-mmdf support MMDF mailboxes
2214 --with-mail-unlink unlink, rather than empty, mail spool after reading
2215 --with-mailhost=HOSTNAME
2216 string giving default POP mail host
2217 --without-sound don't compile with sound support
2218 --with-x-toolkit=KIT use an X toolkit
(KIT one of
: yes or gtk
, gtk2
,
2219 gtk3
, lucid or athena
, motif
, no
)
2220 --with-wide-int prefer wide Emacs integers
(typically
62-bit)
2221 --without-xpm don
't compile with XPM image support
2222 --without-jpeg don't compile with JPEG image support
2223 --without-tiff don
't compile with TIFF image support
2224 --without-gif don't compile with GIF image support
2225 --without-png don
't compile with PNG image support
2226 --without-rsvg don't compile with SVG image support
2227 --without-xml2 don
't compile with XML parsing support
2228 --without-imagemagick don't compile with ImageMagick image support
2229 --without-xft don
't use XFT for anti aliased fonts
2230 --without-libotf don't use libotf
for OpenType font support
2231 --without-m17n-flt don
't use m17n-flt for text shaping
2232 --without-toolkit-scroll-bars
2233 don't use Motif or Xaw3d scroll bars
2234 --without-xaw3d don
't use Xaw3d
2235 --without-xim don't use X11 XIM
2236 --with-ns use NeXTstep
(Cocoa or GNUstep
) windowing system
2237 --with-w32 use native MS Windows GUI
2238 --without-gpm don
't use -lgpm for mouse support on a GNU/Linux
2240 --without-dbus don't compile with D-Bus support
2241 --without-gconf don
't compile with GConf support
2242 --without-gsettings don't compile with GSettings support
2243 --without-selinux don
't compile with SELinux support
2244 --without-gnutls don't use
-lgnutls for SSL
/TLS support
2245 --without-inotify don
't compile with inotify (file-watch) support
2246 --without-makeinfo don't require makeinfo
for building manuals
2247 --without-compress-info don
't compress the installed Info pages
2248 --with-pkg-config-prog=FILENAME
2249 file name of pkg-config for finding GTK and librsvg
2250 --with-gameuser=USER user for shared game score files
2251 --with-gnustep-conf=FILENAME
2252 name of GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
2253 or /etc/GNUstep/GNUstep.conf
2254 --with-x use the X Window System
2256 Some influential environment variables:
2257 CC C compiler command
2258 CFLAGS C compiler flags
2259 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2260 nonstandard directory <lib dir>
2261 LIBS libraries to pass to the linker, e.g. -l<library>
2262 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2263 you have headers in a nonstandard directory <include dir>
2265 XMKMF Path to xmkmf, Makefile generator for X Window System
2267 Use these variables to override the choices made by `configure' or to
help
2268 it to
find libraries and programs with nonstandard names
/locations.
2270 Report bugs to the package provider.
2275 if test "$ac_init_help" = "recursive"; then
2276 # If there are subdirs, report their specific --help.
2277 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
2278 test -d "$ac_dir" ||
2279 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
2284 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
2286 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2287 # A ".." for each directory in $ac_dir_suffix.
2288 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2289 case $ac_top_builddir_sub in
2290 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
2291 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
2294 ac_abs_top_builddir
=$ac_pwd
2295 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
2296 # for backward compatibility:
2297 ac_top_builddir
=$ac_top_build_prefix
2300 .
) # We are building in place.
2302 ac_top_srcdir
=$ac_top_builddir_sub
2303 ac_abs_top_srcdir
=$ac_pwd ;;
2304 [\\/]* | ?
:[\\/]* ) # Absolute name.
2305 ac_srcdir
=$srcdir$ac_dir_suffix;
2306 ac_top_srcdir
=$srcdir
2307 ac_abs_top_srcdir
=$srcdir ;;
2309 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
2310 ac_top_srcdir
=$ac_top_build_prefix$srcdir
2311 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
2313 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
2315 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
2316 # Check for guested configure.
2317 if test -f "$ac_srcdir/configure.gnu"; then
2319 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2320 elif test -f "$ac_srcdir/configure"; then
2322 $SHELL "$ac_srcdir/configure" --help=recursive
2324 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2326 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
2330 test -n "$ac_init_help" && exit $ac_status
2331 if $ac_init_version; then
2333 emacs configure
24.3.50
2334 generated by GNU Autoconf
2.65
2336 Copyright
(C
) 2009 Free Software Foundation
, Inc.
2337 This configure
script is free software
; the Free Software Foundation
2338 gives unlimited permission to copy
, distribute and modify it.
2343 ## ------------------------ ##
2344 ## Autoconf initialization. ##
2345 ## ------------------------ ##
2347 # ac_fn_c_try_compile LINENO
2348 # --------------------------
2349 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2350 ac_fn_c_try_compile
()
2352 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2353 rm -f conftest.
$ac_objext
2354 if { { ac_try
="$ac_compile"
2356 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2357 *) ac_try_echo=$ac_try;;
2359 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2360 $as_echo "$ac_try_echo"; } >&5
2361 (eval "$ac_compile") 2>conftest.err
2363 if test -s conftest.err; then
2364 grep -v '^ *+' conftest.err >conftest.er1
2365 cat conftest.er1 >&5
2366 mv -f conftest.er1 conftest.err
2368 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2369 test $ac_status = 0; } && {
2370 test -z "$ac_c_werror_flag" ||
2371 test ! -s conftest.err
2372 } && test -s conftest.$ac_objext; then :
2375 $as_echo "$as_me: failed program was:" >&5
2376 sed 's/^/| /' conftest.$ac_ext >&5
2380 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2381 as_fn_set_status $ac_retval
2383 } # ac_fn_c_try_compile
2385 # ac_fn_c_try_cpp LINENO
2386 # ----------------------
2387 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2390 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2391 if { { ac_try="$ac_cpp conftest.$ac_ext"
2393 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2394 *) ac_try_echo
=$ac_try;;
2396 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2397 $as_echo "$ac_try_echo"; } >&5
2398 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2400 if test -s conftest.err
; then
2401 grep -v '^ *+' conftest.err
>conftest.er1
2402 cat conftest.er1
>&5
2403 mv -f conftest.er1 conftest.err
2405 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2406 test $ac_status = 0; } >/dev
/null
&& {
2407 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2408 test ! -s conftest.err
2412 $as_echo "$as_me: failed program was:" >&5
2413 sed 's/^/| /' conftest.
$ac_ext >&5
2417 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2418 as_fn_set_status
$ac_retval
2422 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2423 # -------------------------------------------------------
2424 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2425 # the include files in INCLUDES and setting the cache variable VAR
2427 ac_fn_c_check_header_mongrel
()
2429 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2430 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2432 $as_echo_n "checking for $2... " >&6; }
2433 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2434 $as_echo_n "(cached) " >&6
2437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2438 $as_echo "$ac_res" >&6; }
2440 # Is the header compilable?
2441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2442 $as_echo_n "checking $2 usability... " >&6; }
2443 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2444 /* end confdefs.h. */
2448 if ac_fn_c_try_compile
"$LINENO"; then :
2449 ac_header_compiler
=yes
2451 ac_header_compiler
=no
2453 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2455 $as_echo "$ac_header_compiler" >&6; }
2457 # Is the header present?
2458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2459 $as_echo_n "checking $2 presence... " >&6; }
2460 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2461 /* end confdefs.h. */
2464 if ac_fn_c_try_cpp
"$LINENO"; then :
2465 ac_header_preproc
=yes
2467 ac_header_preproc
=no
2469 rm -f conftest.err conftest.
$ac_ext
2470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2471 $as_echo "$ac_header_preproc" >&6; }
2473 # So? What about this header?
2474 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2476 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2477 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2478 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2479 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2482 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2483 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2484 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2485 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2486 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2487 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2488 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2489 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2490 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2491 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2495 $as_echo_n "checking for $2... " >&6; }
2496 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2497 $as_echo_n "(cached) " >&6
2499 eval "$3=\$ac_header_compiler"
2502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2503 $as_echo "$ac_res" >&6; }
2505 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2507 } # ac_fn_c_check_header_mongrel
2509 # ac_fn_c_try_run LINENO
2510 # ----------------------
2511 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2512 # that executables *can* be run.
2515 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2516 if { { ac_try
="$ac_link"
2518 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2519 *) ac_try_echo=$ac_try;;
2521 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2522 $as_echo "$ac_try_echo"; } >&5
2523 (eval "$ac_link") 2>&5
2525 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2526 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2527 { { case "(($ac_try" in
2528 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2529 *) ac_try_echo
=$ac_try;;
2531 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2532 $as_echo "$ac_try_echo"; } >&5
2533 (eval "$ac_try") 2>&5
2535 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2536 test $ac_status = 0; }; }; then :
2539 $as_echo "$as_me: program exited with status $ac_status" >&5
2540 $as_echo "$as_me: failed program was:" >&5
2541 sed 's/^/| /' conftest.
$ac_ext >&5
2543 ac_retval
=$ac_status
2545 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2546 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2547 as_fn_set_status
$ac_retval
2551 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2552 # -------------------------------------------------------
2553 # Tests whether HEADER exists and can be compiled using the include files in
2554 # INCLUDES, setting the cache variable VAR accordingly.
2555 ac_fn_c_check_header_compile
()
2557 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2559 $as_echo_n "checking for $2... " >&6; }
2560 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2561 $as_echo_n "(cached) " >&6
2563 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2564 /* end confdefs.h. */
2568 if ac_fn_c_try_compile
"$LINENO"; then :
2573 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2577 $as_echo "$ac_res" >&6; }
2578 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2580 } # ac_fn_c_check_header_compile
2582 # ac_fn_c_try_link LINENO
2583 # -----------------------
2584 # Try to link conftest.$ac_ext, and return whether this succeeded.
2587 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2588 rm -f conftest.
$ac_objext conftest
$ac_exeext
2589 if { { ac_try
="$ac_link"
2591 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2592 *) ac_try_echo=$ac_try;;
2594 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2595 $as_echo "$ac_try_echo"; } >&5
2596 (eval "$ac_link") 2>conftest.err
2598 if test -s conftest.err; then
2599 grep -v '^ *+' conftest.err >conftest.er1
2600 cat conftest.er1 >&5
2601 mv -f conftest.er1 conftest.err
2603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2604 test $ac_status = 0; } && {
2605 test -z "$ac_c_werror_flag" ||
2606 test ! -s conftest.err
2607 } && test -s conftest$ac_exeext && {
2608 test "$cross_compiling" = yes ||
2609 $as_test_x conftest$ac_exeext
2613 $as_echo "$as_me: failed program was:" >&5
2614 sed 's/^/| /' conftest.$ac_ext >&5
2618 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2619 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2620 # interfere with the next link command; also delete a directory that is
2621 # left behind by Apple's compiler. We do this before executing the actions.
2622 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2623 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2624 as_fn_set_status $ac_retval
2626 } # ac_fn_c_try_link
2628 # ac_fn_c_check_decl LINENO SYMBOL VAR
2629 # ------------------------------------
2630 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2631 ac_fn_c_check_decl ()
2633 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2635 $as_echo_n "checking whether $2 is declared... " >&6; }
2636 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2637 $as_echo_n "(cached) " >&6
2639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2640 /* end confdefs.h. */
2653 if ac_fn_c_try_compile "$LINENO"; then :
2658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2662 $as_echo "$ac_res" >&6; }
2663 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2665 } # ac_fn_c_check_decl
2667 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2668 # ----------------------------------------------
2669 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2670 ac_fn_c_check_header_preproc ()
2672 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2674 $as_echo_n "checking for $2... " >&6; }
2675 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2676 $as_echo_n "(cached) " >&6
2678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2679 /* end confdefs.h. */
2682 if ac_fn_c_try_cpp "$LINENO"; then :
2687 rm -f conftest.err conftest.$ac_ext
2690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2691 $as_echo "$ac_res" >&6; }
2692 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2694 } # ac_fn_c_check_header_preproc
2696 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2697 # ----------------------------------------------------
2698 # Tries to find if the field MEMBER exists in type AGGR, after including
2699 # INCLUDES, setting cache variable VAR accordingly.
2700 ac_fn_c_check_member ()
2702 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2704 $as_echo_n "checking for $2.$3... " >&6; }
2705 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2706 $as_echo_n "(cached) " >&6
2708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2709 /* end confdefs.h. */
2721 if ac_fn_c_try_compile "$LINENO"; then :
2724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2725 /* end confdefs.h. */
2731 if (sizeof ac_aggr.$3)
2737 if ac_fn_c_try_compile "$LINENO"; then :
2742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2748 $as_echo "$ac_res" >&6; }
2749 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2751 } # ac_fn_c_check_member
2753 # ac_fn_c_check_func LINENO FUNC VAR
2754 # ----------------------------------
2755 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2756 ac_fn_c_check_func ()
2758 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2760 $as_echo_n "checking for $2... " >&6; }
2761 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2762 $as_echo_n "(cached) " >&6
2764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2765 /* end confdefs.h. */
2766 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2767 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2768 #define $2 innocuous_$2
2770 /* System header to define __stub macros and hopefully few prototypes,
2771 which can conflict with char $2 (); below.
2772 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2773 <limits.h> exists even on freestanding compilers. */
2776 # include <limits.h>
2778 # include <assert.h>
2783 /* Override any GCC internal prototype to avoid an error.
2784 Use char because int might match the return type of a GCC
2785 builtin and then its argument prototype would still apply. */
2790 /* The GNU C library defines this for functions which it implements
2791 to always fail with ENOSYS. Some functions are actually named
2792 something starting with __ and the normal name is an alias. */
2793 #if defined __stub_$2 || defined __stub___$2
2805 if ac_fn_c_try_link "$LINENO"; then :
2810 rm -f core conftest.err conftest.$ac_objext \
2811 conftest$ac_exeext conftest.$ac_ext
2814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2815 $as_echo "$ac_res" >&6; }
2816 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2818 } # ac_fn_c_check_func
2820 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2821 # -------------------------------------------
2822 # Tests whether TYPE exists after having included INCLUDES, setting cache
2823 # variable VAR accordingly.
2824 ac_fn_c_check_type ()
2826 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2828 $as_echo_n "checking for $2... " >&6; }
2829 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2830 $as_echo_n "(cached) " >&6
2833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2834 /* end confdefs.h. */
2845 if ac_fn_c_try_compile "$LINENO"; then :
2846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2847 /* end confdefs.h. */
2858 if ac_fn_c_try_compile "$LINENO"; then :
2863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2869 $as_echo "$ac_res" >&6; }
2870 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2872 } # ac_fn_c_check_type
2874 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2875 # --------------------------------------------
2876 # Tries to find the compile-time value of EXPR in a program that includes
2877 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2879 ac_fn_c_compute_int ()
2881 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2882 if test "$cross_compiling" = yes; then
2883 # Depending upon the size, compute the lo and hi bounds.
2884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2885 /* end confdefs.h. */
2890 static int test_array [1 - 2 * !(($2) >= 0)];
2897 if ac_fn_c_try_compile "$LINENO"; then :
2900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2901 /* end confdefs.h. */
2906 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2913 if ac_fn_c_try_compile "$LINENO"; then :
2914 ac_hi=$ac_mid; break
2916 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2917 if test $ac_lo -le $ac_mid; then
2921 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2927 /* end confdefs.h. */
2932 static int test_array [1 - 2 * !(($2) < 0)];
2939 if ac_fn_c_try_compile "$LINENO"; then :
2942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2943 /* end confdefs.h. */
2948 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2955 if ac_fn_c_try_compile "$LINENO"; then :
2956 ac_lo=$ac_mid; break
2958 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2959 if test $ac_mid -le $ac_hi; then
2963 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2973 # Binary search between lo and hi bounds.
2974 while test "x$ac_lo" != "x$ac_hi"; do
2975 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2977 /* end confdefs.h. */
2982 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2989 if ac_fn_c_try_compile "$LINENO"; then :
2992 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2997 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
3001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3002 /* end confdefs.h. */
3004 static long int longval () { return $2; }
3005 static unsigned long int ulongval () { return $2; }
3012 FILE *f = fopen ("conftest.val", "w");
3017 long int i = longval ();
3020 fprintf (f, "%ld", i);
3024 unsigned long int i = ulongval ();
3027 fprintf (f, "%lu", i);
3029 /* Do not output a trailing newline, as this causes \r\n confusion
3030 on some platforms. */
3031 return ferror (f) || fclose (f) != 0;
3037 if ac_fn_c_try_run "$LINENO"; then :
3038 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
3042 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3043 conftest.$ac_objext conftest.beam conftest.$ac_ext
3047 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
3048 as_fn_set_status $ac_retval
3050 } # ac_fn_c_compute_int
3051 cat >config.log <<_ACEOF
3052 This file contains any messages produced by compilers while
3053 running configure, to aid debugging if configure makes a mistake.
3055 It was created by emacs $as_me 24.3.50, which was
3056 generated by GNU Autoconf 2.65. Invocation command line was
3068 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
3069 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
3070 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
3071 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
3072 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
3074 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
3075 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
3077 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
3078 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
3079 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
3080 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
3081 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
3082 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
3083 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
3087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3091 test -z "$as_dir" && as_dir=.
3092 $as_echo "PATH: $as_dir"
3108 # Keep a trace of the command line.
3109 # Strip out --no-create and --no-recursion so they do not pile up.
3110 # Strip out --silent because we don't want to record it for future runs.
3111 # Also quote any args containing shell meta-characters.
3112 # Make two passes to allow for proper duplicate-argument suppression.
3116 ac_must_keep_next=false
3122 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3123 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3124 | -silent | --silent | --silen | --sile | --sil)
3127 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
3130 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3132 as_fn_append ac_configure_args1 " '$ac_arg'"
3133 if test $ac_must_keep_next = true; then
3134 ac_must_keep_next=false # Got value, back to normal.
3137 *=* | --config-cache | -C | -disable-* | --disable-* \
3138 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3139 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3140 | -with-* | --with-* | -without-* | --without-* | --x)
3141 case "$ac_configure_args0 " in
3142 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3145 -* ) ac_must_keep_next=true ;;
3148 as_fn_append ac_configure_args " '$ac_arg'"
3153 { ac_configure_args0=; unset ac_configure_args0;}
3154 { ac_configure_args1=; unset ac_configure_args1;}
3156 # When interrupted or exit'd, cleanup temporary files, and complete
3157 # config.log. We remove comments because anyway the quotes in there
3158 # would cause problems or look ugly.
3159 # WARNING: Use '\'' to represent an apostrophe within the trap.
3160 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3161 trap 'exit_status=$?
3162 # Save into config.log some information that might help in debugging.
3167 ## ---------------- ##
3168 ## Cache variables. ##
3169 ## ---------------- ##
3172 # The following way of writing the cache mishandles newlines in values,
3174 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
3175 eval ac_val=\$$ac_var
3179 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3180 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3183 _ | IFS | as_nl) ;; #(
3184 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3185 *) { eval $ac_var=; unset $ac_var;} ;;
3190 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
3191 *${as_nl}ac_space=\ *)
3193 "s/'\''/'\''\\\\'\'''\''/g;
3194 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3197 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3205 ## ----------------- ##
3206 ## Output variables. ##
3207 ## ----------------- ##
3210 for ac_var in $ac_subst_vars
3212 eval ac_val=\$$ac_var
3214 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3216 $as_echo "$ac_var='\''$ac_val'\''"
3220 if test -n "$ac_subst_files"; then
3222 ## ------------------- ##
3223 ## File substitutions. ##
3224 ## ------------------- ##
3227 for ac_var in $ac_subst_files
3229 eval ac_val=\$$ac_var
3231 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3233 $as_echo "$ac_var='\''$ac_val'\''"
3238 if test -s confdefs.h; then
3248 test "$ac_signal" != 0 &&
3249 $as_echo "$as_me: caught signal $ac_signal"
3250 $as_echo "$as_me: exit $exit_status"
3252 rm -f core *.core core.conftest.* &&
3253 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3256 for ac_signal in 1 2 13 15; do
3257 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3261 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3262 rm -f -r conftest* confdefs.h
3264 $as_echo "/* confdefs.h */" > confdefs.h
3266 # Predefined preprocessor variables.
3268 cat >>confdefs.h <<_ACEOF
3269 #define PACKAGE_NAME "$PACKAGE_NAME"
3272 cat >>confdefs.h <<_ACEOF
3273 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3276 cat >>confdefs.h <<_ACEOF
3277 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3280 cat >>confdefs.h <<_ACEOF
3281 #define PACKAGE_STRING "$PACKAGE_STRING"
3284 cat >>confdefs.h <<_ACEOF
3285 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3288 cat >>confdefs.h <<_ACEOF
3289 #define PACKAGE_URL "$PACKAGE_URL"
3293 # Let the site file select an alternate cache file if it wants to.
3294 # Prefer an explicitly selected file to automatically selected ones.
3297 if test -n "$CONFIG_SITE"; then
3298 ac_site_file1=$CONFIG_SITE
3299 elif test "x$prefix" != xNONE; then
3300 ac_site_file1=$prefix/share/config.site
3301 ac_site_file2=$prefix/etc/config.site
3303 ac_site_file1=$ac_default_prefix/share/config.site
3304 ac_site_file2=$ac_default_prefix/etc/config.site
3306 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3308 test "x$ac_site_file" = xNONE && continue
3309 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3311 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3312 sed 's/^/| /' "$ac_site_file" >&5
3317 if test -r "$cache_file"; then
3318 # Some versions of bash will fail to source /dev/null (special files
3319 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3320 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3321 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3322 $as_echo "$as_me: loading cache $cache_file" >&6;}
3324 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3325 *) . "./$cache_file";;
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3330 $as_echo "$as_me: creating cache $cache_file" >&6;}
3334 as_fn_append ac_header_list " linux/version.h"
3335 as_fn_append ac_header_list " sys/systeminfo.h"
3336 as_fn_append ac_header_list " coff.h"
3337 as_fn_append ac_header_list " pty.h"
3338 as_fn_append ac_header_list " sys/resource.h"
3339 as_fn_append ac_header_list " sys/utsname.h"
3340 as_fn_append ac_header_list " pwd.h"
3341 as_fn_append ac_header_list " utmp.h"
3342 as_fn_append ac_header_list " util.h"
3343 as_fn_append ac_header_list " sys/socket.h"
3344 as_fn_append ac_header_list " stdlib.h"
3345 as_fn_append ac_header_list " unistd.h"
3346 as_fn_append ac_header_list " sys/param.h"
3347 as_fn_append ac_header_list " pthread.h"
3348 as_fn_append ac_header_list " malloc/malloc.h"
3349 as_fn_append ac_header_list " maillock.h"
3350 as_fn_append ac_header_list " sys/un.h"
3351 as_fn_append ac_func_list " tzset"
3352 as_fn_append ac_func_list " readlinkat"
3353 as_fn_append ac_header_list " dirent.h"
3354 as_fn_append ac_header_list " execinfo.h"
3355 as_fn_append ac_func_list " faccessat"
3356 as_fn_append ac_func_list " fdopendir"
3357 as_fn_append ac_header_list " stdio_ext.h"
3358 as_fn_append ac_func_list " __fpending"
3359 as_fn_append ac_func_list " fstatat"
3360 as_fn_append ac_func_list " fsync"
3361 gl_getopt_required=GNU
3362 as_fn_append ac_header_list " getopt.h"
3363 as_fn_append ac_func_list " gettimeofday"
3364 as_fn_append ac_func_list " nanotime"
3365 as_fn_append ac_header_list " sys/time.h"
3366 as_fn_append ac_header_list " wchar.h"
3367 as_fn_append ac_header_list " stdint.h"
3368 as_fn_append ac_header_list " inttypes.h"
3369 as_fn_append ac_func_list " lstat"
3370 as_fn_append ac_header_list " sys/select.h"
3371 as_fn_append ac_func_list " pselect"
3372 as_fn_append ac_func_list " pthread_sigmask"
3373 as_fn_append ac_func_list " readlink"
3374 as_fn_append ac_func_list " strtoimax"
3375 as_fn_append ac_func_list " strtoumax"
3376 as_fn_append ac_func_list " symlink"
3377 as_fn_append ac_header_list " sys/stat.h"
3378 as_fn_append ac_func_list " localtime_r"
3379 as_fn_append ac_header_list " utime.h"
3380 as_fn_append ac_func_list " futimes"
3381 as_fn_append ac_func_list " futimesat"
3382 as_fn_append ac_func_list " futimens"
3383 as_fn_append ac_func_list " utimensat"
3384 as_fn_append ac_func_list " lutimes"
3385 # Check that the precious variables saved in the cache have kept the same
3387 ac_cache_corrupted=false
3388 for ac_var in $ac_precious_vars; do
3389 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3390 eval ac_new_set=\$ac_env_${ac_var}_set
3391 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3392 eval ac_new_val=\$ac_env_${ac_var}_value
3393 case $ac_old_set,$ac_new_set in
3395 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
3396 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3397 ac_cache_corrupted=: ;;
3399 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
3400 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
3401 ac_cache_corrupted=: ;;
3404 if test "x$ac_old_val" != "x$ac_new_val"; then
3405 # differences in whitespace do not lead to failure.
3406 ac_old_val_w=`echo x
$ac_old_val`
3407 ac_new_val_w=`echo x
$ac_new_val`
3408 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3410 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
3411 ac_cache_corrupted=:
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
3414 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3415 eval $ac_var=\$ac_old_val
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3418 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
3419 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3420 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3423 # Pass precious variables to config.status.
3424 if test "$ac_new_set" = set; then
3426 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
3427 *) ac_arg=$ac_var=$ac_new_val ;;
3429 case " $ac_configure_args " in
3430 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3431 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3435 if $ac_cache_corrupted; then
3436 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
3437 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3438 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3439 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3440 as_fn_error "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
3442 ## -------------------- ##
3443 ## Main body of script. ##
3444 ## -------------------- ##
3447 ac_cpp='$CPP $CPPFLAGS'
3448 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3449 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3450 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3454 emacs_config_options="$@"
3455 ## Add some environment variables, if they were passed via the environment
3456 ## rather than on the command-line.
3457 for var in CFLAGS CPPFLAGS LDFLAGS; do
3458 case "$emacs_config_options" in
3459 *$var=*) continue ;;
3462 test x"$val" = x && continue
3463 emacs_config_options="${emacs_config_options}${emacs_config_options:+ }$var=\"$val\""
3466 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
3470 for ac_dir in build-aux "$srcdir"/build-aux; do
3471 for ac_t in install-sh install.sh shtool; do
3472 if test -f "$ac_dir/$ac_t"; then
3474 ac_install_sh="$ac_aux_dir/$ac_t -c"
3479 if test -z "$ac_aux_dir"; then
3480 as_fn_error "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
3483 # These three variables are undocumented and unsupported,
3484 # and are intended to be withdrawn in a future Autoconf release.
3485 # They can cause serious problems if a builder's source tree is in a directory
3486 # whose full name contains unusual characters.
3487 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3488 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3489 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3492 am__api_version='1.11'
3494 # Find a good install program. We prefer a C program (faster),
3495 # so one script is as good as another. But avoid the broken or
3496 # incompatible versions:
3497 # SysV /etc/install, /usr/sbin/install
3498 # SunOS /usr/etc/install
3499 # IRIX /sbin/install
3501 # AmigaOS /C/install, which installs bootblocks on floppy discs
3502 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3503 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3504 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3505 # OS/2's system install, which has a completely different semantic
3506 # ./install, which can be erroneously created by make from ./install.sh.
3507 # Reject install programs that cannot install multiple files.
3508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3509 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3510 if test -z "$INSTALL"; then
3511 if test "${ac_cv_path_install+set}" = set; then :
3512 $as_echo_n "(cached) " >&6
3514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3518 test -z "$as_dir" && as_dir=.
3519 # Account for people who put trailing slashes in PATH elements.
3520 case $as_dir/ in #((
3521 ./ | .// | /[cC]/* | \
3522 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3523 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3526 # OSF1 and SCO ODT 3.0 have their own names for install.
3527 # Don't use installbsd from OSF since it installs stuff as root
3529 for ac_prog in ginstall scoinst install; do
3530 for ac_exec_ext in '' $ac_executable_extensions; do
3531 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3532 if test $ac_prog = install &&
3533 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3534 # AIX install. It has an incompatible calling convention.
3536 elif test $ac_prog = install &&
3537 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3538 # program-specific install script used by HP pwplus--don't use.
3541 rm -rf conftest.one conftest.two conftest.dir
3542 echo one > conftest.one
3543 echo two > conftest.two
3545 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3546 test -s conftest.one && test -s conftest.two &&
3547 test -s conftest.dir/conftest.one &&
3548 test -s conftest.dir/conftest.two
3550 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3563 rm -rf conftest.one conftest.two conftest.dir
3566 if test "${ac_cv_path_install+set}" = set; then
3567 INSTALL=$ac_cv_path_install
3569 # As a last resort, use the slow shell script. Don't cache a
3570 # value for INSTALL within a source directory, because that will
3571 # break other packages using the cache if that directory is
3572 # removed, or if the value is a relative name.
3573 INSTALL=$ac_install_sh
3576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3577 $as_echo "$INSTALL" >&6; }
3579 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3580 # It thinks the first close brace ends the variable substitution.
3581 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3583 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3585 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3588 $as_echo_n "checking whether build environment is sane... " >&6; }
3591 echo timestamp > conftest.file
3592 # Reject unsafe characters in $srcdir or the absolute working directory
3593 # name. Accept space and tab only in the latter.
3597 *[\\\"\#\$\&\'\`$am_lf]*)
3598 as_fn_error
"unsafe absolute working directory name" "$LINENO" 5;;
3601 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
3602 as_fn_error
"unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3605 # Do `set' in a subshell so we don't clobber the current shell's
3606 # arguments. Must try -L first in case configure is actually a
3607 # symlink; some systems play weird games with the mod time of symlinks
3608 # (eg FreeBSD returns the mod time of the symlink's containing
3611 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3612 if test "$*" = "X"; then
3614 set X
`ls -t "$srcdir/configure" conftest.file`
3617 if test "$*" != "X $srcdir/configure conftest.file" \
3618 && test "$*" != "X conftest.file $srcdir/configure"; then
3620 # If neither matched, then we have a broken ls. This can happen
3621 # if, for instance, CONFIG_SHELL is bash and it inherits a
3622 # broken ls alias from the environment. This has actually
3623 # happened. Such a system could not be considered "sane".
3624 as_fn_error
"ls -t appears to fail. Make sure there is not a broken
3625 alias in your environment" "$LINENO" 5
3628 test "$2" = conftest.
file
3634 as_fn_error
"newly created file is older than distributed files!
3635 Check your system clock" "$LINENO" 5
3637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3638 $as_echo "yes" >&6; }
3639 test "$program_prefix" != NONE
&&
3640 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
3641 # Use a double $ so make ignores it.
3642 test "$program_suffix" != NONE
&&
3643 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
3644 # Double any \ or $.
3645 # By default was `s,x,x', remove it if useless.
3646 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
3647 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
3649 # expand $ac_aux_dir to an absolute path
3650 am_aux_dir
=`cd $ac_aux_dir && pwd`
3652 if test x
"${MISSING+set}" != xset
; then
3655 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
3657 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
3660 # Use eval to expand $SHELL
3661 if eval "$MISSING --run true"; then
3662 am_missing_run
="$MISSING --run "
3665 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3666 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3669 if test x
"${install_sh}" != xset
; then
3672 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
3674 install_sh
="\${SHELL} $am_aux_dir/install-sh"
3678 # Installed binaries are usually stripped using `strip' when the user
3679 # run `make install-strip'. However `strip' might not be the right
3680 # tool to use in cross-compilation environments, therefore Automake
3681 # will honor the `STRIP' environment variable to overrule this program.
3682 if test "$cross_compiling" != no
; then
3683 if test -n "$ac_tool_prefix"; then
3684 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3685 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
3686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3687 $as_echo_n "checking for $ac_word... " >&6; }
3688 if test "${ac_cv_prog_STRIP+set}" = set; then :
3689 $as_echo_n "(cached) " >&6
3691 if test -n "$STRIP"; then
3692 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
3694 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3698 test -z "$as_dir" && as_dir
=.
3699 for ac_exec_ext
in '' $ac_executable_extensions; do
3700 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3701 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
3702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3711 STRIP
=$ac_cv_prog_STRIP
3712 if test -n "$STRIP"; then
3713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3714 $as_echo "$STRIP" >&6; }
3716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3717 $as_echo "no" >&6; }
3722 if test -z "$ac_cv_prog_STRIP"; then
3724 # Extract the first word of "strip", so it can be a program name with args.
3725 set dummy strip
; ac_word
=$2
3726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3727 $as_echo_n "checking for $ac_word... " >&6; }
3728 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3729 $as_echo_n "(cached) " >&6
3731 if test -n "$ac_ct_STRIP"; then
3732 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
3734 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3738 test -z "$as_dir" && as_dir
=.
3739 for ac_exec_ext
in '' $ac_executable_extensions; do
3740 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3741 ac_cv_prog_ac_ct_STRIP
="strip"
3742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3751 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
3752 if test -n "$ac_ct_STRIP"; then
3753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3754 $as_echo "$ac_ct_STRIP" >&6; }
3756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3757 $as_echo "no" >&6; }
3760 if test "x$ac_ct_STRIP" = x
; then
3763 case $cross_compiling:$ac_tool_warned in
3765 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3766 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3767 ac_tool_warned
=yes ;;
3772 STRIP
="$ac_cv_prog_STRIP"
3776 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
3778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3779 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3780 if test -z "$MKDIR_P"; then
3781 if test "${ac_cv_path_mkdir+set}" = set; then :
3782 $as_echo_n "(cached) " >&6
3784 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3785 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
3788 test -z "$as_dir" && as_dir
=.
3789 for ac_prog
in mkdir gmkdir
; do
3790 for ac_exec_ext
in '' $ac_executable_extensions; do
3791 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } ||
continue
3792 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3793 'mkdir (GNU coreutils) '* | \
3794 'mkdir (coreutils) '* | \
3795 'mkdir (fileutils) '4.1*)
3796 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
3806 test -d .
/--version && rmdir .
/--version
3807 if test "${ac_cv_path_mkdir+set}" = set; then
3808 MKDIR_P
="$ac_cv_path_mkdir -p"
3810 # As a last resort, use the slow shell script. Don't cache a
3811 # value for MKDIR_P within a source directory, because that will
3812 # break other packages using the cache if that directory is
3813 # removed, or if the value is a relative name.
3814 MKDIR_P
="$ac_install_sh -d"
3817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3818 $as_echo "$MKDIR_P" >&6; }
3822 [\\/$
]* | ?
:[\\/]*) ;;
3823 */*) mkdir_p
="\$(top_builddir)/$mkdir_p" ;;
3826 for ac_prog
in gawk mawk nawk
awk
3828 # Extract the first word of "$ac_prog", so it can be a program name with args.
3829 set dummy
$ac_prog; ac_word
=$2
3830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3831 $as_echo_n "checking for $ac_word... " >&6; }
3832 if test "${ac_cv_prog_AWK+set}" = set; then :
3833 $as_echo_n "(cached) " >&6
3835 if test -n "$AWK"; then
3836 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
3838 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3842 test -z "$as_dir" && as_dir
=.
3843 for ac_exec_ext
in '' $ac_executable_extensions; do
3844 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3845 ac_cv_prog_AWK
="$ac_prog"
3846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3856 if test -n "$AWK"; then
3857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3858 $as_echo "$AWK" >&6; }
3860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3861 $as_echo "no" >&6; }
3865 test -n "$AWK" && break
3868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3869 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3871 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3872 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3873 $as_echo_n "(cached) " >&6
3875 cat >conftest.
make <<\_ACEOF
3878 @
echo '@@@%%%=$(MAKE)=@@@%%%'
3880 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3881 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3883 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
3885 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
3889 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
3890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3891 $as_echo "yes" >&6; }
3894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3895 $as_echo "no" >&6; }
3896 SET_MAKE
="MAKE=${MAKE-make}"
3899 rm -rf .tst
2>/dev
/null
3900 mkdir .tst
2>/dev
/null
3901 if test -d .tst
; then
3906 rmdir .tst
2>/dev
/null
3908 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3909 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3910 # is not polluted with repeated "-I."
3911 am__isrc
=' -I$(srcdir)'
3912 # test to see if srcdir already configured
3913 if test -f $srcdir/config.status
; then
3914 as_fn_error
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3918 # test whether we have cygpath
3919 if test -z "$CYGPATH_W"; then
3920 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
3921 CYGPATH_W
='cygpath -w'
3928 # Define the identity of the package.
3933 cat >>confdefs.h
<<_ACEOF
3934 #define PACKAGE "$PACKAGE"
3938 cat >>confdefs.h
<<_ACEOF
3939 #define VERSION "$VERSION"
3942 # Some tools Automake needs.
3944 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3947 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
3950 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3953 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
3956 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
3958 # We need awk for the "check" target. The system "awk" is bad on
3960 # Always define AMTAR for backward compatibility.
3962 AMTAR
=${AMTAR-"${am_missing_run}tar"}
3964 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
3973 lispdir
='${datadir}/emacs/${version}/lisp'
3974 leimdir
='${datadir}/emacs/${version}/leim'
3975 standardlisppath
='${lispdir}:${leimdir}'
3976 locallisppath
='${datadir}/emacs/${version}/site-lisp:'\
3977 '${datadir}/emacs/site-lisp'
3978 lisppath
='${locallisppath}:${standardlisppath}'
3979 etcdir
='${datadir}/emacs/${version}/etc'
3980 archlibdir
='${libexecdir}/emacs/${version}/${configuration}'
3981 docdir
='${datadir}/emacs/${version}/etc'
3982 gamedir
='${localstatedir}/games/emacs'
3985 # Check whether --with-all was given.
3986 if test "${with_all+set}" = set; then :
3987 withval
=$with_all; with_features
=$withval
3996 # Check whether --with-pop was given.
3997 if test "${with_pop+set}" = set; then :
4000 with_pop
=$with_features
4003 if test "$with_pop" = yes; then
4004 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
4009 # Check whether --with-kerberos was given.
4010 if test "${with_kerberos+set}" = set; then :
4011 withval
=$with_kerberos;
4016 if test "$with_kerberos" != no
; then
4017 $as_echo "#define KERBEROS 1" >>confdefs.h
4022 # Check whether --with-kerberos5 was given.
4023 if test "${with_kerberos5+set}" = set; then :
4024 withval
=$with_kerberos5;
4029 if test "${with_kerberos5}" != no
; then
4030 if test "${with_kerberos}" = no
; then
4032 $as_echo "#define KERBEROS 1" >>confdefs.h
4036 $as_echo "#define KERBEROS5 1" >>confdefs.h
4041 # Check whether --with-hesiod was given.
4042 if test "${with_hesiod+set}" = set; then :
4043 withval
=$with_hesiod;
4048 if test "$with_hesiod" != no
; then
4050 $as_echo "#define HESIOD 1" >>confdefs.h
4055 # Check whether --with-mmdf was given.
4056 if test "${with_mmdf+set}" = set; then :
4062 if test "$with_mmdf" != no
; then
4064 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
4069 # Check whether --with-mail-unlink was given.
4070 if test "${with_mail_unlink+set}" = set; then :
4071 withval
=$with_mail_unlink;
4076 if test "$with_mail_unlink" != no
; then
4078 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
4083 # Check whether --with-mailhost was given.
4084 if test "${with_mailhost+set}" = set; then :
4085 withval
=$with_mailhost;
4086 cat >>confdefs.h
<<_ACEOF
4087 #define MAILHOST "$withval"
4094 # Check whether --with-sound was given.
4095 if test "${with_sound+set}" = set; then :
4096 withval
=$with_sound;
4098 with_sound
=$with_features
4103 # Check whether --with-x-toolkit was given.
4104 if test "${with_x_toolkit+set}" = set; then :
4105 withval
=$with_x_toolkit; case "${withval}" in
4106 y | ye |
yes ) val
=gtk
;;
4108 l | lu | luc | luci | lucid
) val
=lucid
;;
4109 a |
at | ath | athe | athen | athena
) val
=athena
;;
4110 m | mo | mot | moti | motif
) val
=motif
;;
4111 g | gt | gtk
) val
=gtk
;;
4115 as_fn_error
"\`--with-x-toolkit=$withval' is invalid;
4116 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk',
4117 \`gtk2' or \`gtk3'. \`yes' and \`gtk' are synonyms.
4118 \`athena' and \`lucid' are synonyms." "$LINENO" 5
4127 # Check whether --with-wide-int was given.
4128 if test "${with_wide_int+set}" = set; then :
4129 withval
=$with_wide_int;
4134 if test "$with_wide_int" = yes; then
4136 $as_echo "#define WIDE_EMACS_INT 1" >>confdefs.h
4141 # Check whether --with-xpm was given.
4142 if test "${with_xpm+set}" = set; then :
4145 with_xpm
=$with_features
4149 # Check whether --with-jpeg was given.
4150 if test "${with_jpeg+set}" = set; then :
4153 with_jpeg
=$with_features
4157 # Check whether --with-tiff was given.
4158 if test "${with_tiff+set}" = set; then :
4161 with_tiff
=$with_features
4165 # Check whether --with-gif was given.
4166 if test "${with_gif+set}" = set; then :
4169 with_gif
=$with_features
4173 # Check whether --with-png was given.
4174 if test "${with_png+set}" = set; then :
4177 with_png
=$with_features
4181 # Check whether --with-rsvg was given.
4182 if test "${with_rsvg+set}" = set; then :
4185 with_rsvg
=$with_features
4189 # Check whether --with-xml2 was given.
4190 if test "${with_xml2+set}" = set; then :
4193 with_xml2
=$with_features
4197 # Check whether --with-imagemagick was given.
4198 if test "${with_imagemagick+set}" = set; then :
4199 withval
=$with_imagemagick;
4201 with_imagemagick
=$with_features
4206 # Check whether --with-xft was given.
4207 if test "${with_xft+set}" = set; then :
4210 with_xft
=$with_features
4214 # Check whether --with-libotf was given.
4215 if test "${with_libotf+set}" = set; then :
4216 withval
=$with_libotf;
4218 with_libotf
=$with_features
4222 # Check whether --with-m17n-flt was given.
4223 if test "${with_m17n_flt+set}" = set; then :
4224 withval
=$with_m17n_flt;
4226 with_m17n_flt
=$with_features
4231 # Check whether --with-toolkit-scroll-bars was given.
4232 if test "${with_toolkit_scroll_bars+set}" = set; then :
4233 withval
=$with_toolkit_scroll_bars;
4235 with_toolkit_scroll_bars
=$with_features
4239 # Check whether --with-xaw3d was given.
4240 if test "${with_xaw3d+set}" = set; then :
4241 withval
=$with_xaw3d;
4243 with_xaw3d
=$with_features
4247 # Check whether --with-xim was given.
4248 if test "${with_xim+set}" = set; then :
4251 with_xim
=$with_features
4255 # Check whether --with-ns was given.
4256 if test "${with_ns+set}" = set; then :
4263 # Check whether --with-w32 was given.
4264 if test "${with_w32+set}" = set; then :
4272 # Check whether --with-gpm was given.
4273 if test "${with_gpm+set}" = set; then :
4276 with_gpm
=$with_features
4280 # Check whether --with-dbus was given.
4281 if test "${with_dbus+set}" = set; then :
4284 with_dbus
=$with_features
4288 # Check whether --with-gconf was given.
4289 if test "${with_gconf+set}" = set; then :
4290 withval
=$with_gconf;
4292 with_gconf
=$with_features
4296 # Check whether --with-gsettings was given.
4297 if test "${with_gsettings+set}" = set; then :
4298 withval
=$with_gsettings;
4300 with_gsettings
=$with_features
4304 # Check whether --with-selinux was given.
4305 if test "${with_selinux+set}" = set; then :
4306 withval
=$with_selinux;
4308 with_selinux
=$with_features
4312 # Check whether --with-gnutls was given.
4313 if test "${with_gnutls+set}" = set; then :
4314 withval
=$with_gnutls;
4316 with_gnutls
=$with_features
4320 # Check whether --with-inotify was given.
4321 if test "${with_inotify+set}" = set; then :
4322 withval
=$with_inotify;
4324 with_inotify
=$with_features
4328 ## For the times when you want to build Emacs but don't have
4329 ## a suitable makeinfo, and can live without the manuals.
4331 # Check whether --with-makeinfo was given.
4332 if test "${with_makeinfo+set}" = set; then :
4333 withval
=$with_makeinfo;
4335 with_makeinfo
=$with_features
4339 ## Makefile.in needs the cache file name.
4342 ## This is an option because I do not know if all info/man support
4343 ## compressed files, nor how to test if they do so.
4345 # Check whether --with-compress-info was given.
4346 if test "${with_compress_info+set}" = set; then :
4347 withval
=$with_compress_info;
4349 with_compress_info
=$with_features
4352 if test $with_compress_info = yes; then
4360 # Check whether --with-pkg-config-prog was given.
4361 if test "${with_pkg_config_prog+set}" = set; then :
4362 withval
=$with_pkg_config_prog;
4365 if test "X${with_pkg_config_prog}" != X
; then
4366 if test "${with_pkg_config_prog}" != yes; then
4367 PKG_CONFIG
="${with_pkg_config_prog}"
4372 # Check whether --with-gameuser was given.
4373 if test "${with_gameuser+set}" = set; then :
4374 withval
=$with_gameuser;
4377 test "X${with_gameuser}" != X
&& test "${with_gameuser}" != yes \
4378 && gameuser
="${with_gameuser}"
4379 test "X$gameuser" = X
&& gameuser
=games
4382 # Check whether --with-gnustep-conf was given.
4383 if test "${with_gnustep_conf+set}" = set; then :
4384 withval
=$with_gnustep_conf;
4387 test "X${with_gnustep_conf}" != X
&& test "${with_gnustep_conf}" != yes && \
4388 GNUSTEP_CONFIG_FILE
="${with_gnustep_conf}"
4389 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
4390 GNUSTEP_CONFIG_FILE
=/etc
/GNUstep
/GNUstep.conf
4392 # Check whether --enable-ns-self-contained was given.
4393 if test "${enable_ns_self_contained+set}" = set; then :
4394 enableval
=$enable_ns_self_contained; EN_NS_SELF_CONTAINED
=$enableval
4396 EN_NS_SELF_CONTAINED
=yes
4400 # Check whether --enable-locallisppath was given.
4401 if test "${enable_locallisppath+set}" = set; then :
4402 enableval
=$enable_locallisppath; if test "${enableval}" = "no"; then
4404 elif test "${enableval}" != "yes"; then
4405 locallisppath
=${enableval}
4410 # Check whether --enable-checking was given.
4411 if test "${enable_checking+set}" = set; then :
4412 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
4415 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
4416 for check
in $ac_checking_flags
4419 # these set all the flags to specific states
4420 yes) ac_enable_checking
=1 ;;
4421 no
) ac_enable_checking
= ;
4422 ac_gc_check_stringbytes
= ;
4423 ac_gc_check_string_overrun
= ;
4424 ac_gc_check_string_free_list
= ;
4425 ac_xmalloc_overrun
= ;
4426 ac_gc_check_cons_list
= ;
4428 all
) ac_enable_checking
=1 ;
4429 ac_gc_check_stringbytes
=1 ;
4430 ac_gc_check_string_overrun
=1 ;
4431 ac_gc_check_string_free_list
=1 ;
4432 ac_xmalloc_overrun
=1 ;
4433 ac_gc_check_cons_list
=1 ;
4434 ac_glyphs_debug
=1 ;;
4435 # these enable particular checks
4436 stringbytes
) ac_gc_check_stringbytes
=1 ;;
4437 stringoverrun
) ac_gc_check_string_overrun
=1 ;;
4438 stringfreelist
) ac_gc_check_string_free_list
=1 ;;
4439 xmallocoverrun
) ac_xmalloc_overrun
=1 ;;
4440 conslist
) ac_gc_check_cons_list
=1 ;;
4441 glyphs
) ac_glyphs_debug
=1 ;;
4442 *) as_fn_error
"unknown check category $check" "$LINENO" 5 ;;
4447 if test x
$ac_enable_checking != x
; then
4449 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
4452 if test x
$ac_gc_check_stringbytes != x
; then
4454 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
4457 if test x
$ac_gc_check_string_overrun != x
; then
4459 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
4462 if test x
$ac_gc_check_string_free_list != x
; then
4464 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
4467 if test x
$ac_xmalloc_overrun != x
; then
4469 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
4472 if test x
$ac_gc_check_cons_list != x
; then
4474 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
4477 if test x
$ac_glyphs_debug != x
; then
4479 $as_echo "#define GLYPH_DEBUG 1" >>confdefs.h
4483 # Check whether --enable-check-lisp-object-type was given.
4484 if test "${enable_check_lisp_object_type+set}" = set; then :
4485 enableval
=$enable_check_lisp_object_type; if test "${enableval}" != "no"; then
4487 $as_echo "#define CHECK_LISP_OBJECT_TYPE 1" >>confdefs.h
4494 # Check whether --enable-profiling was given.
4495 if test "${enable_profiling+set}" = set; then :
4496 enableval
=$enable_profiling; ac_enable_profiling
="${enableval}"
4499 if test x
$ac_enable_profiling != x
; then
4500 PROFILING_CFLAGS
="-DPROFILING=1 -pg"
4506 # Check whether --enable-autodepend was given.
4507 if test "${enable_autodepend+set}" = set; then :
4508 enableval
=$enable_autodepend; ac_enable_autodepend
="${enableval}"
4510 ac_enable_autodepend
=yes
4514 # Check whether --enable-gtk-deprecation-warnings was given.
4515 if test "${enable_gtk_deprecation_warnings+set}" = set; then :
4516 enableval
=$enable_gtk_deprecation_warnings; ac_enable_gtk_deprecation_warnings
="${enableval}"
4520 #### Make srcdir absolute, if it isn't already. It's important to
4521 #### avoid running the file name through pwd unnecessarily, since pwd can
4522 #### give you automounter prefixes, which can go away. We do all this
4523 #### so Emacs can find its files when run uninstalled.
4524 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
4529 ## We may be able to use the $PWD environment variable to make this
4530 ## absolute. But sometimes PWD is inaccurate.
4531 ## Note: we used to use $PWD at the end instead of `pwd`,
4532 ## but that tested only for a well-formed and valid PWD,
4533 ## it did not object when PWD was well-formed and valid but just wrong.
4534 if test ".$PWD" != "." && test ".`(cd "$PWD" ; sh -c pwd)`" = ".`pwd`" ;
4538 srcdir
=`(cd "$srcdir"; pwd)`
4541 * ) srcdir
=`(cd "$srcdir"; pwd)` ;;
4544 ### Canonicalize the configuration name.
4546 # Make sure we can run config.sub.
4547 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
4548 as_fn_error
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4551 $as_echo_n "checking build system type... " >&6; }
4552 if test "${ac_cv_build+set}" = set; then :
4553 $as_echo_n "(cached) " >&6
4555 ac_build_alias
=$build_alias
4556 test "x$ac_build_alias" = x
&&
4557 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
4558 test "x$ac_build_alias" = x
&&
4559 as_fn_error
"cannot guess build type; you must specify one" "$LINENO" 5
4560 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4561 as_fn_error
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4565 $as_echo "$ac_cv_build" >&6; }
4566 case $ac_cv_build in
4568 *) as_fn_error
"invalid value of canonical build" "$LINENO" 5;;
4571 ac_save_IFS
=$IFS; IFS
='-'
4577 # Remember, the first character of IFS is used to create $*,
4578 # except with old shells:
4581 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
4584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4585 $as_echo_n "checking host system type... " >&6; }
4586 if test "${ac_cv_host+set}" = set; then :
4587 $as_echo_n "(cached) " >&6
4589 if test "x$host_alias" = x
; then
4590 ac_cv_host
=$ac_cv_build
4592 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4593 as_fn_error
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4598 $as_echo "$ac_cv_host" >&6; }
4601 *) as_fn_error
"invalid value of canonical host" "$LINENO" 5;;
4604 ac_save_IFS
=$IFS; IFS
='-'
4610 # Remember, the first character of IFS is used to create $*,
4611 # except with old shells:
4614 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
4618 configuration
=${host_alias-${build_alias-$host}}
4622 ### If you add support for a new configuration, add code to this
4623 ### switch statement to recognize your configuration name and select
4624 ### the appropriate operating system file.
4626 ### You would hope that you could choose an s/*.h
4627 ### file based on the operating system portion. However, it turns out
4628 ### that each s/*.h file is pretty manufacturer-specific.
4629 ### So we basically have to have a special case for each
4630 ### configuration name.
4632 ### As far as handling version numbers on operating systems is
4633 ### concerned, make sure things will fail in a fixable way. If
4634 ### /etc/MACHINES doesn't say anything about version numbers, be
4635 ### prepared to handle anything reasonably. If version numbers
4636 ### matter, be sure /etc/MACHINES says something about it.
4638 opsys
='' unported
=no
4639 case "${canonical}" in
4641 ## GNU/Linux and similar ports
4656 ## FreeBSD kernel + glibc based userland
4671 ## Apple Darwin / Mac OS X
4673 case "${canonical}" in
4680 ## Use fink packages if available.
4681 ## FIXME find a better way to do this: http://debbugs.gnu.org/11507
4682 ## if test -d /sw/include && test -d /sw/lib; then
4683 ## GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
4684 ## NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
4693 ## HP 9000 series 700 and 800, running HP/UX
4694 hppa
*-hp-hpux10.2
* )
4697 hppa
*-hp-hpux1[1-9]* )
4699 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
4703 rs6000-ibm-aix4.
[23]* )
4706 powerpc-ibm-aix4.
[23]* )
4709 rs6000-ibm-aix
[56]* )
4712 powerpc-ibm-aix
[56]* )
4716 ## Silicon Graphics machines
4720 # Without defining _LANGUAGE_C, things get masked out in the headers
4721 # so that, for instance, grepping for `free' in stdlib.h fails and
4722 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
4723 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
4728 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* \
4729 | x86_64-
*-solaris2* | x86_64-
*-sunos5*)
4730 case "${canonical}" in
4732 amd64-
*-*|x86_64-
*-*) ;;
4736 case "${canonical}" in
4737 *-sunos5.6
* |
*-solaris2.6
* )
4741 *-sunos5.
[7-9]* |
*-solaris2.
[7-9]* )
4743 emacs_check_sunpro_c
=yes
4745 *-sunos5* |
*-solaris* )
4747 emacs_check_sunpro_c
=yes
4750 ## Watch out for a compiler that we know will not work.
4751 case "${canonical}" in
4752 *-solaris* |
*-sunos5* )
4753 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
4754 ## /usr/ucb/cc doesn't work;
4755 ## we should find some other compiler that does work.
4763 ## Intel 386 machines where we don't care about the manufacturer.
4765 case "${canonical}" in
4766 *-darwin* ) opsys
=darwin
;;
4767 *-sysv4.2uw
* ) opsys
=unixware
;;
4768 *-sysv5uw* ) opsys
=unixware
;;
4769 *-sysv5OpenUNIX* ) opsys
=unixware
;;
4770 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
4779 ### If the code above didn't choose an operating system, just choose
4780 ### an operating system based on the configuration name. You really
4781 ### only want to use this when you have no idea what the right
4782 ### operating system is; if you know what operating systems a machine
4783 ### runs, it's cleaner to make it explicit in the case statement
4785 if test x
"${opsys}" = x
; then
4786 case "${canonical}" in
4787 *-gnu* ) opsys
=gnu
;;
4796 if test $unported = yes; then
4797 as_fn_error
"Emacs hasn't been ported to \`${canonical}' systems.
4798 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
4802 #### Choose a compiler.
4805 ac_cpp
='$CPP $CPPFLAGS'
4806 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4807 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4808 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4809 if test -n "$ac_tool_prefix"; then
4810 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4811 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
4812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4813 $as_echo_n "checking for $ac_word... " >&6; }
4814 if test "${ac_cv_prog_CC+set}" = set; then :
4815 $as_echo_n "(cached) " >&6
4817 if test -n "$CC"; then
4818 ac_cv_prog_CC
="$CC" # Let the user override the test.
4820 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4824 test -z "$as_dir" && as_dir
=.
4825 for ac_exec_ext
in '' $ac_executable_extensions; do
4826 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4827 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
4828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4838 if test -n "$CC"; then
4839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4840 $as_echo "$CC" >&6; }
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4843 $as_echo "no" >&6; }
4848 if test -z "$ac_cv_prog_CC"; then
4850 # Extract the first word of "gcc", so it can be a program name with args.
4851 set dummy gcc
; ac_word
=$2
4852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4853 $as_echo_n "checking for $ac_word... " >&6; }
4854 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4855 $as_echo_n "(cached) " >&6
4857 if test -n "$ac_ct_CC"; then
4858 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4860 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4864 test -z "$as_dir" && as_dir
=.
4865 for ac_exec_ext
in '' $ac_executable_extensions; do
4866 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4867 ac_cv_prog_ac_ct_CC
="gcc"
4868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4877 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4878 if test -n "$ac_ct_CC"; then
4879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4880 $as_echo "$ac_ct_CC" >&6; }
4882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4883 $as_echo "no" >&6; }
4886 if test "x$ac_ct_CC" = x
; then
4889 case $cross_compiling:$ac_tool_warned in
4891 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4892 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4893 ac_tool_warned
=yes ;;
4901 if test -z "$CC"; then
4902 if test -n "$ac_tool_prefix"; then
4903 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4904 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
4905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4906 $as_echo_n "checking for $ac_word... " >&6; }
4907 if test "${ac_cv_prog_CC+set}" = set; then :
4908 $as_echo_n "(cached) " >&6
4910 if test -n "$CC"; then
4911 ac_cv_prog_CC
="$CC" # Let the user override the test.
4913 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4917 test -z "$as_dir" && as_dir
=.
4918 for ac_exec_ext
in '' $ac_executable_extensions; do
4919 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4920 ac_cv_prog_CC
="${ac_tool_prefix}cc"
4921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4931 if test -n "$CC"; then
4932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4933 $as_echo "$CC" >&6; }
4935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4936 $as_echo "no" >&6; }
4942 if test -z "$CC"; then
4943 # Extract the first word of "cc", so it can be a program name with args.
4944 set dummy cc
; ac_word
=$2
4945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4946 $as_echo_n "checking for $ac_word... " >&6; }
4947 if test "${ac_cv_prog_CC+set}" = set; then :
4948 $as_echo_n "(cached) " >&6
4950 if test -n "$CC"; then
4951 ac_cv_prog_CC
="$CC" # Let the user override the test.
4954 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4958 test -z "$as_dir" && as_dir
=.
4959 for ac_exec_ext
in '' $ac_executable_extensions; do
4960 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4961 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4962 ac_prog_rejected
=yes
4966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4973 if test $ac_prog_rejected = yes; then
4974 # We found a bogon in the path, so make sure we never use it.
4975 set dummy
$ac_cv_prog_CC
4977 if test $# != 0; then
4978 # We chose a different compiler from the bogus one.
4979 # However, it has the same basename, so the bogon will be chosen
4980 # first if we set CC to just the basename; use the full file name.
4982 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
4988 if test -n "$CC"; then
4989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4990 $as_echo "$CC" >&6; }
4992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4993 $as_echo "no" >&6; }
4998 if test -z "$CC"; then
4999 if test -n "$ac_tool_prefix"; then
5000 for ac_prog
in cl.exe
5002 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5003 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
5004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5005 $as_echo_n "checking for $ac_word... " >&6; }
5006 if test "${ac_cv_prog_CC+set}" = set; then :
5007 $as_echo_n "(cached) " >&6
5009 if test -n "$CC"; then
5010 ac_cv_prog_CC
="$CC" # Let the user override the test.
5012 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5016 test -z "$as_dir" && as_dir
=.
5017 for ac_exec_ext
in '' $ac_executable_extensions; do
5018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5019 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
5020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5030 if test -n "$CC"; then
5031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5032 $as_echo "$CC" >&6; }
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5035 $as_echo "no" >&6; }
5039 test -n "$CC" && break
5042 if test -z "$CC"; then
5044 for ac_prog
in cl.exe
5046 # Extract the first word of "$ac_prog", so it can be a program name with args.
5047 set dummy
$ac_prog; ac_word
=$2
5048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5049 $as_echo_n "checking for $ac_word... " >&6; }
5050 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5051 $as_echo_n "(cached) " >&6
5053 if test -n "$ac_ct_CC"; then
5054 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
5056 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5060 test -z "$as_dir" && as_dir
=.
5061 for ac_exec_ext
in '' $ac_executable_extensions; do
5062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5063 ac_cv_prog_ac_ct_CC
="$ac_prog"
5064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5073 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
5074 if test -n "$ac_ct_CC"; then
5075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5076 $as_echo "$ac_ct_CC" >&6; }
5078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5079 $as_echo "no" >&6; }
5083 test -n "$ac_ct_CC" && break
5086 if test "x$ac_ct_CC" = x
; then
5089 case $cross_compiling:$ac_tool_warned in
5091 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5092 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5093 ac_tool_warned
=yes ;;
5102 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5103 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5104 as_fn_error
"no acceptable C compiler found in \$PATH
5105 See \`config.log' for more details." "$LINENO" 5; }
5107 # Provide some information about the compiler.
5108 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5111 for ac_option
in --version -v -V -qversion; do
5112 { { ac_try
="$ac_compiler $ac_option >&5"
5114 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5115 *) ac_try_echo=$ac_try;;
5117 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5118 $as_echo "$ac_try_echo"; } >&5
5119 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5121 if test -s conftest.err; then
5123 ... rest of stderr output deleted ...
5124 10q' conftest.err >conftest.er1
5125 cat conftest.er1 >&5
5127 rm -f conftest.er1 conftest.err
5128 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5129 test $ac_status = 0; }
5132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5133 /* end confdefs.h. */
5143 ac_clean_files_save=$ac_clean_files
5144 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
5145 # Try to create an executable without -o first, disregard a.out.
5146 # It will help us diagnose broken compilers, and finding out an intuition
5148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
5149 $as_echo_n "checking whether the C compiler works... " >&6; }
5150 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
5152 # The possible output files:
5153 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
5156 for ac_file in $ac_files
5159 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5160 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
5165 if { { ac_try="$ac_link_default"
5167 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5168 *) ac_try_echo
=$ac_try;;
5170 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5171 $as_echo "$ac_try_echo"; } >&5
5172 (eval "$ac_link_default") 2>&5
5174 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5175 test $ac_status = 0; }; then :
5176 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
5177 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
5178 # in a Makefile. We should not override ac_cv_exeext if it was cached,
5179 # so that the user can short-circuit this test for compilers unknown to
5181 for ac_file
in $ac_files ''
5183 test -f "$ac_file" ||
continue
5185 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
5188 # We found the default executable, but exeext='' is most
5192 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
5194 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
5196 # We set ac_cv_exeext here because the later test for it is not
5197 # safe: cross compilers may not add the suffix if given an `-o'
5198 # argument, so we may need to know it at that point already.
5199 # Even if this section looks crufty: it has the advantage of
5206 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
5211 if test -z "$ac_file"; then :
5212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5213 $as_echo "no" >&6; }
5214 $as_echo "$as_me: failed program was:" >&5
5215 sed 's/^/| /' conftest.
$ac_ext >&5
5217 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5218 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5219 { as_fn_set_status
77
5220 as_fn_error
"C compiler cannot create executables
5221 See \`config.log' for more details." "$LINENO" 5; }; }
5223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5224 $as_echo "yes" >&6; }
5226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5227 $as_echo_n "checking for C compiler default output file name... " >&6; }
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5229 $as_echo "$ac_file" >&6; }
5230 ac_exeext
=$ac_cv_exeext
5232 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
5233 ac_clean_files
=$ac_clean_files_save
5234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5235 $as_echo_n "checking for suffix of executables... " >&6; }
5236 if { { ac_try
="$ac_link"
5238 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5239 *) ac_try_echo=$ac_try;;
5241 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5242 $as_echo "$ac_try_echo"; } >&5
5243 (eval "$ac_link") 2>&5
5245 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5246 test $ac_status = 0; }; then :
5247 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
5248 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
5249 # work properly (i.e., refer to `conftest.exe'), while it won't with
5251 for ac_file
in conftest.exe conftest conftest.
*; do
5252 test -f "$ac_file" ||
continue
5254 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
5255 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
5261 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5262 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5263 as_fn_error
"cannot compute suffix of executables: cannot compile and link
5264 See \`config.log' for more details." "$LINENO" 5; }
5266 rm -f conftest conftest
$ac_cv_exeext
5267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5268 $as_echo "$ac_cv_exeext" >&6; }
5270 rm -f conftest.
$ac_ext
5271 EXEEXT
=$ac_cv_exeext
5273 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5274 /* end confdefs.h. */
5279 FILE *f = fopen ("conftest.out", "w");
5280 return ferror (f) || fclose (f) != 0;
5286 ac_clean_files
="$ac_clean_files conftest.out"
5287 # Check that the compiler produces executables we can run. If not, either
5288 # the compiler is broken, or we cross compile.
5289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5290 $as_echo_n "checking whether we are cross compiling... " >&6; }
5291 if test "$cross_compiling" != yes; then
5292 { { ac_try
="$ac_link"
5294 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5295 *) ac_try_echo=$ac_try;;
5297 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5298 $as_echo "$ac_try_echo"; } >&5
5299 (eval "$ac_link") 2>&5
5301 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5302 test $ac_status = 0; }
5303 if { ac_try='./conftest$ac_cv_exeext'
5304 { { case "(($ac_try" in
5305 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5306 *) ac_try_echo
=$ac_try;;
5308 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5309 $as_echo "$ac_try_echo"; } >&5
5310 (eval "$ac_try") 2>&5
5312 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5313 test $ac_status = 0; }; }; then
5316 if test "$cross_compiling" = maybe
; then
5319 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5320 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5321 as_fn_error
"cannot run C compiled programs.
5322 If you meant to cross compile, use \`--host'.
5323 See \`config.log' for more details." "$LINENO" 5; }
5327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5328 $as_echo "$cross_compiling" >&6; }
5330 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
5331 ac_clean_files
=$ac_clean_files_save
5332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5333 $as_echo_n "checking for suffix of object files... " >&6; }
5334 if test "${ac_cv_objext+set}" = set; then :
5335 $as_echo_n "(cached) " >&6
5337 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5338 /* end confdefs.h. */
5348 rm -f conftest.o conftest.obj
5349 if { { ac_try
="$ac_compile"
5351 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5352 *) ac_try_echo=$ac_try;;
5354 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5355 $as_echo "$ac_try_echo"; } >&5
5356 (eval "$ac_compile") 2>&5
5358 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5359 test $ac_status = 0; }; then :
5360 for ac_file in conftest.o conftest.obj conftest.*; do
5361 test -f "$ac_file" || continue;
5363 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5364 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5369 $as_echo "$as_me: failed program was:" >&5
5370 sed 's/^/| /' conftest.$ac_ext >&5
5372 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5373 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5374 as_fn_error "cannot compute suffix of object files
: cannot compile
5375 See \
`config.log' for more details." "$LINENO" 5; }
5377 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5380 $as_echo "$ac_cv_objext" >&6; }
5381 OBJEXT=$ac_cv_objext
5383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5384 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5385 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5386 $as_echo_n "(cached) " >&6
5388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5389 /* end confdefs.h. */
5402 if ac_fn_c_try_compile "$LINENO"; then :
5407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5408 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5412 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5413 if test $ac_compiler_gnu = yes; then
5418 ac_test_CFLAGS=${CFLAGS+set}
5419 ac_save_CFLAGS=$CFLAGS
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5421 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5422 if test "${ac_cv_prog_cc_g+set}" = set; then :
5423 $as_echo_n "(cached) " >&6
5425 ac_save_c_werror_flag=$ac_c_werror_flag
5426 ac_c_werror_flag=yes
5429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5430 /* end confdefs.h. */
5440 if ac_fn_c_try_compile "$LINENO"; then :
5444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5445 /* end confdefs.h. */
5455 if ac_fn_c_try_compile "$LINENO"; then :
5458 ac_c_werror_flag=$ac_save_c_werror_flag
5460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5461 /* end confdefs.h. */
5471 if ac_fn_c_try_compile "$LINENO"; then :
5474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5479 ac_c_werror_flag=$ac_save_c_werror_flag
5481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5482 $as_echo "$ac_cv_prog_cc_g" >&6; }
5483 if test "$ac_test_CFLAGS" = set; then
5484 CFLAGS=$ac_save_CFLAGS
5485 elif test $ac_cv_prog_cc_g = yes; then
5486 if test "$GCC" = yes; then
5492 if test "$GCC" = yes; then
5498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5499 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5500 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5501 $as_echo_n "(cached) " >&6
5503 ac_cv_prog_cc_c89=no
5505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5506 /* end confdefs.h. */
5509 #include <sys/types.h>
5510 #include <sys/stat.h>
5511 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5512 struct buf { int x; };
5513 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5514 static char *e (p, i)
5520 static char *f (char * (*g) (char **, int), char **p, ...)
5525 s = g (p, va_arg (v,int));
5530 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5531 function prototypes and stuff, but not '\xHH' hex character constants.
5532 These don't provoke an error unfortunately, instead are silently treated
5533 as 'x'. The following induces an error, until -std is added to get
5534 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5535 array size at least. It's necessary to write '\x00'==0 to get something
5536 that's true only with -std. */
5537 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5539 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5540 inside strings and character constants. */
5542 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5544 int test (int i, double x);
5545 struct s1 {int (*f) (int a);};
5546 struct s2 {int (*f) (double a);};
5547 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5553 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5558 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5559 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5561 CC="$ac_save_CC $ac_arg"
5562 if ac_fn_c_try_compile "$LINENO"; then :
5563 ac_cv_prog_cc_c89=$ac_arg
5565 rm -f core conftest.err conftest.$ac_objext
5566 test "x$ac_cv_prog_cc_c89" != "xno" && break
5568 rm -f conftest.$ac_ext
5573 case "x$ac_cv_prog_cc_c89" in
5575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5576 $as_echo "none needed" >&6; } ;;
5578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5579 $as_echo "unsupported" >&6; } ;;
5581 CC="$CC $ac_cv_prog_cc_c89"
5582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5583 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5585 if test "x$ac_cv_prog_cc_c89" != xno; then :
5590 ac_cpp='$CPP $CPPFLAGS'
5591 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5592 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5593 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5594 DEPDIR="${am__leading_dot}deps"
5596 ac_config_commands="$ac_config_commands depfiles"
5599 am_make=${MAKE-make}
5600 cat > confinc << 'END'
5602 @echo this is the am__doit target
5605 # If we don't find an include directive, just comment out the code.
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5607 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5611 # First try GNU make style include.
5612 echo "include confinc" > confmf
5613 # Ignore all kinds of additional output from `make'.
5614 case `$am_make -s -f confmf 2> /dev/null` in #(
5615 *the\ am__doit\ target*)
5621 # Now try BSD make style include.
5622 if test "$am__include" = "#"; then
5623 echo '.include
"confinc"' > confmf
5624 case `$am_make -s -f confmf 2> /dev/null` in #(
5625 *the\ am__doit\ target*)
5626 am__include=.include
5634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5635 $as_echo "$_am_result" >&6; }
5636 rm -f confinc confmf
5638 # Check whether --enable-dependency-tracking was given.
5639 if test "${enable_dependency_tracking+set}" = set; then :
5640 enableval=$enable_dependency_tracking;
5643 if test "x$enable_dependency_tracking" != xno; then
5644 am_depcomp="$ac_aux_dir/depcomp"
5647 if test "x$enable_dependency_tracking" != xno
; then
5657 depcc
="$CC" am_compiler_list
=
5659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5660 $as_echo_n "checking dependency style of $depcc... " >&6; }
5661 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5662 $as_echo_n "(cached) " >&6
5664 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5665 # We make a subdir and do the tests there. Otherwise we can end up
5666 # making bogus files that we don't know about and never remove. For
5667 # instance it was reported that on HP-UX the gcc test will end up
5668 # making a dummy file named `D' -- because `-MD' means `put the output
5671 # Copy depcomp to subdir because otherwise we won't find it if we're
5672 # using a relative directory.
5673 cp "$am_depcomp" conftest.dir
5675 # We will build objects and dependencies in a subdirectory because
5676 # it helps to detect inapplicable dependency modes. For instance
5677 # both Tru64's cc and ICC support -MD to output dependencies as a
5678 # side effect of compilation, but ICC will put the dependencies in
5679 # the current directory while Tru64 will put them in the object
5683 am_cv_CC_dependencies_compiler_type
=none
5684 if test "$am_compiler_list" = ""; then
5685 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5688 case " $depcc " in #(
5689 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
5692 for depmode
in $am_compiler_list; do
5693 # Setup a source with many dependencies, because some compilers
5694 # like to wrap large dependency lists on column 80 (with \), and
5695 # we should not choose a depcomp mode which is confused by this.
5697 # We need to recreate these files for each test, as the compiler may
5698 # overwrite some of them when testing with obscure command lines.
5699 # This happens at least with the AIX C compiler.
5701 for i
in 1 2 3 4 5 6; do
5702 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
5703 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5704 # Solaris 8's {/usr,}/bin/sh.
5705 touch sub
/conftst
$i.h
5707 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5709 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5710 # mode. It turns out that the SunPro C++ compiler does not properly
5711 # handle `-M -o', and we need to detect this. Also, some Intel
5712 # versions had trouble with output in subdirs
5713 am__obj
=sub
/conftest.
${OBJEXT-o}
5714 am__minus_obj
="-o $am__obj"
5717 # This depmode causes a compiler race in universal mode.
5718 test "$am__universal" = false ||
continue
5721 # after this tag, mechanisms are not by side-effect, so they'll
5722 # only be used when explicitly requested
5723 if test "x$enable_dependency_tracking" = xyes
; then
5729 msvisualcpp | msvcmsys
)
5730 # This compiler won't grok `-c -o', but also, the minuso test has
5731 # not run yet. These depmodes are late enough in the game, and
5732 # so weak that their functioning should not be impacted.
5733 am__obj
=conftest.
${OBJEXT-o}
5738 if depmode
=$depmode \
5739 source=sub
/conftest.c object
=$am__obj \
5740 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
5741 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
5742 >/dev
/null
2>conftest.err
&&
5743 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
5744 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
5745 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
5746 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
5747 # icc doesn't choke on unknown options, it will just issue warnings
5748 # or remarks (even with -Werror). So we grep stderr for any message
5749 # that says an option was ignored or not supported.
5750 # When given -MP, icc 7.0 and 7.1 complain thusly:
5751 # icc: Command line warning: ignoring option '-M'; no argument required
5752 # The diagnosis changed in icc 8.0:
5753 # icc: Command line remark: option '-MP' not supported
5754 if (grep 'ignoring option' conftest.err ||
5755 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
5756 am_cv_CC_dependencies_compiler_type
=$depmode
5765 am_cv_CC_dependencies_compiler_type
=none
5769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5770 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5771 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
5774 test "x$enable_dependency_tracking" != xno \
5775 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
5777 am__fastdepCC_FALSE
='#'
5779 am__fastdepCC_TRUE
='#'
5780 am__fastdepCC_FALSE
=
5784 if test "x$CC" != xcc
; then
5785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5786 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5789 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5791 set dummy
$CC; ac_cc
=`$as_echo "$2" |
5792 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5793 if { as_var
=ac_cv_prog_cc_
${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
5794 $as_echo_n "(cached) " >&6
5796 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5797 /* end confdefs.h. */
5807 # Make sure it works both with $CC and with simple cc.
5808 # We do the test twice because some compilers refuse to overwrite an
5809 # existing .o file with -o, though they will create one.
5810 ac_try
='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5812 if { { case "(($ac_try" in
5813 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5814 *) ac_try_echo=$ac_try;;
5816 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5817 $as_echo "$ac_try_echo"; } >&5
5818 (eval "$ac_try") 2>&5
5820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5821 test $ac_status = 0; } &&
5822 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5823 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5824 *) ac_try_echo
=$ac_try;;
5826 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5827 $as_echo "$ac_try_echo"; } >&5
5828 (eval "$ac_try") 2>&5
5830 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5831 test $ac_status = 0; };
5833 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
5834 if test "x$CC" != xcc
; then
5835 # Test first that cc exists at all.
5836 if { ac_try
='cc -c conftest.$ac_ext >&5'
5837 { { case "(($ac_try" in
5838 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5839 *) ac_try_echo=$ac_try;;
5841 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5842 $as_echo "$ac_try_echo"; } >&5
5843 (eval "$ac_try") 2>&5
5845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5846 test $ac_status = 0; }; }; then
5847 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5849 if { { case "(($ac_try" in
5850 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5851 *) ac_try_echo
=$ac_try;;
5853 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5854 $as_echo "$ac_try_echo"; } >&5
5855 (eval "$ac_try") 2>&5
5857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5858 test $ac_status = 0; } &&
5859 test -f conftest2.
$ac_objext && { { case "(($ac_try" in
5860 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5861 *) ac_try_echo=$ac_try;;
5863 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5864 $as_echo "$ac_try_echo"; } >&5
5865 (eval "$ac_try") 2>&5
5867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5868 test $ac_status = 0; };
5873 # cc exists but doesn't like -o.
5874 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5879 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5881 rm -f core conftest*
5884 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5886 $as_echo "yes" >&6; }
5888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5889 $as_echo "no" >&6; }
5891 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5895 # FIXME: we rely on the cache variable name because
5896 # there is no other way.
5898 am_cc=`echo $2 |
sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5899 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5900 if test "$am_t" != yes; then
5901 # Losing compiler, so override with the script.
5902 # FIXME: It is wrong to rewrite CC.
5903 # But if we don't then we get into trouble of one sort or another.
5904 # A longer-term fix would be to have automake use am__CC in this case,
5905 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5906 CC="$am_aux_dir/compile $CC"
5911 if test x$GCC = xyes; then
5912 test "x$GCC_TEST_OPTIONS" != x && CC="$CC $GCC_TEST_OPTIONS"
5914 test "x$NON_GCC_TEST_OPTIONS" != x && CC="$CC $NON_GCC_TEST_OPTIONS"
5917 # Avoid gnulib's tests for HAVE_WORKING_O_NOATIME and HAVE_WORKING_O_NOFOLLOW,
5918 # as we don't use them.
5920 # Avoid gnulib's threadlib module, as we do threads our own way.
5923 # Initialize gnulib right after choosing the compiler.
5926 ac_cpp='$CPP $CPPFLAGS'
5927 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5928 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5929 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5931 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5932 # On Suns, sometimes $CPP names a directory.
5933 if test -n "$CPP" && test -d "$CPP"; then
5936 if test -z "$CPP"; then
5937 if test "${ac_cv_prog_CPP+set}" = set; then :
5938 $as_echo_n "(cached) " >&6
5940 # Double quotes because CPP needs to be expanded
5941 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5944 for ac_c_preproc_warn_flag in '' yes
5946 # Use a header file that comes with gcc, so configuring glibc
5947 # with a fresh cross-compiler works.
5948 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5949 # <limits.h> exists even on freestanding compilers.
5950 # On the NeXT, cc -E runs the code through the compiler's parser,
5951 # not just through cpp. "Syntax error" is here to catch this case.
5952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5953 /* end confdefs.h. */
5955 # include <limits.h>
5957 # include <assert.h>
5961 if ac_fn_c_try_cpp "$LINENO"; then :
5964 # Broken: fails on valid input.
5967 rm -f conftest.err conftest.$ac_ext
5969 # OK, works on sane cases. Now check whether nonexistent headers
5970 # can be detected and how.
5971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5972 /* end confdefs.h. */
5973 #include <ac_nonexistent.h>
5975 if ac_fn_c_try_cpp "$LINENO"; then :
5976 # Broken: success on invalid input.
5979 # Passes both tests.
5983 rm -f conftest.err conftest.$ac_ext
5986 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5987 rm -f conftest.err conftest.
$ac_ext
5988 if $ac_preproc_ok; then :
6000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6001 $as_echo "$CPP" >&6; }
6003 for ac_c_preproc_warn_flag
in '' yes
6005 # Use a header file that comes with gcc, so configuring glibc
6006 # with a fresh cross-compiler works.
6007 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6008 # <limits.h> exists even on freestanding compilers.
6009 # On the NeXT, cc -E runs the code through the compiler's parser,
6010 # not just through cpp. "Syntax error" is here to catch this case.
6011 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6012 /* end confdefs.h. */
6014 # include <limits.h>
6016 # include <assert.h>
6020 if ac_fn_c_try_cpp
"$LINENO"; then :
6023 # Broken: fails on valid input.
6026 rm -f conftest.err conftest.
$ac_ext
6028 # OK, works on sane cases. Now check whether nonexistent headers
6029 # can be detected and how.
6030 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6031 /* end confdefs.h. */
6032 #include <ac_nonexistent.h>
6034 if ac_fn_c_try_cpp
"$LINENO"; then :
6035 # Broken: success on invalid input.
6038 # Passes both tests.
6042 rm -f conftest.err conftest.
$ac_ext
6045 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6046 rm -f conftest.err conftest.
$ac_ext
6047 if $ac_preproc_ok; then :
6050 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6051 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6052 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
6053 See \`config.log' for more details." "$LINENO" 5; }
6057 ac_cpp
='$CPP $CPPFLAGS'
6058 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6059 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6060 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6064 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6065 if test "${ac_cv_path_GREP+set}" = set; then :
6066 $as_echo_n "(cached) " >&6
6068 if test -z "$GREP"; then
6069 ac_path_GREP_found
=false
6070 # Loop through the user's path and test for each of PROGNAME-LIST
6071 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6072 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
6075 test -z "$as_dir" && as_dir
=.
6076 for ac_prog
in grep ggrep
; do
6077 for ac_exec_ext
in '' $ac_executable_extensions; do
6078 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
6079 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
6080 # Check for GNU ac_path_GREP and select it if it is found.
6081 # Check for GNU $ac_path_GREP
6082 case `"$ac_path_GREP" --version 2>&1` in
6084 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
6087 $as_echo_n 0123456789 >"conftest.in"
6090 cat "conftest.in" "conftest.in" >"conftest.tmp"
6091 mv "conftest.tmp" "conftest.in"
6092 cp "conftest.in" "conftest.nl"
6093 $as_echo 'GREP' >> "conftest.nl"
6094 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
6095 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
6096 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
6097 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6098 # Best one so far, save it but keep looking for a better one
6099 ac_cv_path_GREP
="$ac_path_GREP"
6100 ac_path_GREP_max
=$ac_count
6102 # 10*(2^10) chars as input seems more than enough
6103 test $ac_count -gt 10 && break
6105 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
6108 $ac_path_GREP_found && break 3
6113 if test -z "$ac_cv_path_GREP"; then
6114 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6117 ac_cv_path_GREP
=$GREP
6121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6122 $as_echo "$ac_cv_path_GREP" >&6; }
6123 GREP
="$ac_cv_path_GREP"
6126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6127 $as_echo_n "checking for egrep... " >&6; }
6128 if test "${ac_cv_path_EGREP+set}" = set; then :
6129 $as_echo_n "(cached) " >&6
6131 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
6132 then ac_cv_path_EGREP
="$GREP -E"
6134 if test -z "$EGREP"; then
6135 ac_path_EGREP_found
=false
6136 # Loop through the user's path and test for each of PROGNAME-LIST
6137 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6138 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
6141 test -z "$as_dir" && as_dir
=.
6142 for ac_prog
in egrep; do
6143 for ac_exec_ext
in '' $ac_executable_extensions; do
6144 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
6145 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
6146 # Check for GNU ac_path_EGREP and select it if it is found.
6147 # Check for GNU $ac_path_EGREP
6148 case `"$ac_path_EGREP" --version 2>&1` in
6150 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
6153 $as_echo_n 0123456789 >"conftest.in"
6156 cat "conftest.in" "conftest.in" >"conftest.tmp"
6157 mv "conftest.tmp" "conftest.in"
6158 cp "conftest.in" "conftest.nl"
6159 $as_echo 'EGREP' >> "conftest.nl"
6160 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
6161 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
6162 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
6163 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6164 # Best one so far, save it but keep looking for a better one
6165 ac_cv_path_EGREP
="$ac_path_EGREP"
6166 ac_path_EGREP_max
=$ac_count
6168 # 10*(2^10) chars as input seems more than enough
6169 test $ac_count -gt 10 && break
6171 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
6174 $ac_path_EGREP_found && break 3
6179 if test -z "$ac_cv_path_EGREP"; then
6180 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6183 ac_cv_path_EGREP
=$EGREP
6188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6189 $as_echo "$ac_cv_path_EGREP" >&6; }
6190 EGREP
="$ac_cv_path_EGREP"
6195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
6196 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
6197 if test "${gl_cv_c_amsterdam_compiler+set}" = set; then :
6198 $as_echo_n "(cached) " >&6
6201 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6202 /* end confdefs.h. */
6209 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6210 $EGREP "Amsterdam" >/dev
/null
2>&1; then :
6211 gl_cv_c_amsterdam_compiler
=yes
6213 gl_cv_c_amsterdam_compiler
=no
6219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
6220 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
6221 if test -z "$AR"; then
6222 if test $gl_cv_c_amsterdam_compiler = yes; then
6224 if test -z "$ARFLAGS"; then
6228 if test -n "$ac_tool_prefix"; then
6229 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6230 set dummy
${ac_tool_prefix}ar; ac_word
=$2
6231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6232 $as_echo_n "checking for $ac_word... " >&6; }
6233 if test "${ac_cv_prog_AR+set}" = set; then :
6234 $as_echo_n "(cached) " >&6
6236 if test -n "$AR"; then
6237 ac_cv_prog_AR
="$AR" # Let the user override the test.
6239 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6243 test -z "$as_dir" && as_dir
=.
6244 for ac_exec_ext
in '' $ac_executable_extensions; do
6245 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6246 ac_cv_prog_AR
="${ac_tool_prefix}ar"
6247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6257 if test -n "$AR"; then
6258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6259 $as_echo "$AR" >&6; }
6261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6262 $as_echo "no" >&6; }
6267 if test -z "$ac_cv_prog_AR"; then
6269 # Extract the first word of "ar", so it can be a program name with args.
6270 set dummy
ar; ac_word
=$2
6271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6272 $as_echo_n "checking for $ac_word... " >&6; }
6273 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6274 $as_echo_n "(cached) " >&6
6276 if test -n "$ac_ct_AR"; then
6277 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
6279 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6283 test -z "$as_dir" && as_dir
=.
6284 for ac_exec_ext
in '' $ac_executable_extensions; do
6285 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6286 ac_cv_prog_ac_ct_AR
="ar"
6287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6296 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
6297 if test -n "$ac_ct_AR"; then
6298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6299 $as_echo "$ac_ct_AR" >&6; }
6301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6302 $as_echo "no" >&6; }
6305 if test "x$ac_ct_AR" = x
; then
6308 case $cross_compiling:$ac_tool_warned in
6310 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6311 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6312 ac_tool_warned
=yes ;;
6320 if test -z "$ARFLAGS"; then
6325 if test -z "$ARFLAGS"; then
6331 if test -z "$RANLIB"; then
6332 if test $gl_cv_c_amsterdam_compiler = yes; then
6335 if test -n "$ac_tool_prefix"; then
6336 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6337 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
6338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6339 $as_echo_n "checking for $ac_word... " >&6; }
6340 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6341 $as_echo_n "(cached) " >&6
6343 if test -n "$RANLIB"; then
6344 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
6346 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6350 test -z "$as_dir" && as_dir
=.
6351 for ac_exec_ext
in '' $ac_executable_extensions; do
6352 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6353 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
6354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6363 RANLIB
=$ac_cv_prog_RANLIB
6364 if test -n "$RANLIB"; then
6365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6366 $as_echo "$RANLIB" >&6; }
6368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6369 $as_echo "no" >&6; }
6374 if test -z "$ac_cv_prog_RANLIB"; then
6375 ac_ct_RANLIB
=$RANLIB
6376 # Extract the first word of "ranlib", so it can be a program name with args.
6377 set dummy ranlib
; ac_word
=$2
6378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6379 $as_echo_n "checking for $ac_word... " >&6; }
6380 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6381 $as_echo_n "(cached) " >&6
6383 if test -n "$ac_ct_RANLIB"; then
6384 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
6386 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6390 test -z "$as_dir" && as_dir
=.
6391 for ac_exec_ext
in '' $ac_executable_extensions; do
6392 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6393 ac_cv_prog_ac_ct_RANLIB
="ranlib"
6394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6403 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
6404 if test -n "$ac_ct_RANLIB"; then
6405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6406 $as_echo "$ac_ct_RANLIB" >&6; }
6408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6409 $as_echo "no" >&6; }
6412 if test "x$ac_ct_RANLIB" = x
; then
6415 case $cross_compiling:$ac_tool_warned in
6417 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6418 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6419 ac_tool_warned
=yes ;;
6421 RANLIB
=$ac_ct_RANLIB
6424 RANLIB
="$ac_cv_prog_RANLIB"
6431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6432 $as_echo_n "checking for ANSI C header files... " >&6; }
6433 if test "${ac_cv_header_stdc+set}" = set; then :
6434 $as_echo_n "(cached) " >&6
6436 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6437 /* end confdefs.h. */
6451 if ac_fn_c_try_compile
"$LINENO"; then :
6452 ac_cv_header_stdc
=yes
6454 ac_cv_header_stdc
=no
6456 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6458 if test $ac_cv_header_stdc = yes; then
6459 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6460 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6461 /* end confdefs.h. */
6465 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6466 $EGREP "memchr" >/dev
/null
2>&1; then :
6469 ac_cv_header_stdc
=no
6475 if test $ac_cv_header_stdc = yes; then
6476 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6477 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6478 /* end confdefs.h. */
6482 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6483 $EGREP "free" >/dev
/null
2>&1; then :
6486 ac_cv_header_stdc
=no
6492 if test $ac_cv_header_stdc = yes; then
6493 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6494 if test "$cross_compiling" = yes; then :
6497 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6498 /* end confdefs.h. */
6501 #if ((' ' & 0x0FF) == 0x020)
6502 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6503 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6505 # define ISLOWER(c) \
6506 (('a' <= (c) && (c) <= 'i') \
6507 || ('j' <= (c) && (c) <= 'r') \
6508 || ('s' <= (c) && (c) <= 'z'))
6509 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6512 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6517 for (i = 0; i < 256; i++)
6518 if (XOR (islower (i), ISLOWER (i))
6519 || toupper (i) != TOUPPER (i))
6524 if ac_fn_c_try_run
"$LINENO"; then :
6527 ac_cv_header_stdc
=no
6529 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6530 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6536 $as_echo "$ac_cv_header_stdc" >&6; }
6537 if test $ac_cv_header_stdc = yes; then
6539 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6543 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6544 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
6545 inttypes.h stdint.h unistd.h
6547 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6548 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6550 eval as_val
=\$
$as_ac_Header
6551 if test "x$as_val" = x
""yes; then :
6552 cat >>confdefs.h
<<_ACEOF
6553 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6562 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
6563 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
6570 if test "$MINIX" = yes; then
6572 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6575 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6578 $as_echo "#define _MINIX 1" >>confdefs.h
6581 $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
6586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6587 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6588 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
6589 $as_echo_n "(cached) " >&6
6591 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6592 /* end confdefs.h. */
6594 # define __EXTENSIONS__ 1
6595 $ac_includes_default
6604 if ac_fn_c_try_compile
"$LINENO"; then :
6605 ac_cv_safe_to_define___extensions__
=yes
6607 ac_cv_safe_to_define___extensions__
=no
6609 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6612 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6613 test $ac_cv_safe_to_define___extensions__ = yes &&
6614 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6616 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6618 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
6620 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6622 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6624 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
6627 $as_echo_n "checking whether _XOPEN_SOURCE should be defined... " >&6; }
6628 if test "${ac_cv_should_define__xopen_source+set}" = set; then :
6629 $as_echo_n "(cached) " >&6
6631 ac_cv_should_define__xopen_source
=no
6632 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6633 /* end confdefs.h. */
6645 if ac_fn_c_try_compile
"$LINENO"; then :
6648 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6649 /* end confdefs.h. */
6651 #define _XOPEN_SOURCE 500
6662 if ac_fn_c_try_compile
"$LINENO"; then :
6663 ac_cv_should_define__xopen_source
=yes
6665 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6667 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
6670 $as_echo "$ac_cv_should_define__xopen_source" >&6; }
6671 test $ac_cv_should_define__xopen_source = yes &&
6672 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
6681 # Check whether --enable-largefile was given.
6682 if test "${enable_largefile+set}" = set; then :
6683 enableval
=$enable_largefile;
6686 if test "$enable_largefile" != no
; then
6688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6689 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6690 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
6691 $as_echo_n "(cached) " >&6
6693 ac_cv_sys_largefile_CC
=no
6694 if test "$GCC" != yes; then
6697 # IRIX 6.2 and later do not support large files by default,
6698 # so use the C compiler's -n32 option if that helps.
6699 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6700 /* end confdefs.h. */
6701 #include <sys/types.h>
6702 /* Check that off_t can represent 2**63 - 1 correctly.
6703 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6704 since some C++ compilers masquerading as C compilers
6705 incorrectly reject 9223372036854775807. */
6706 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6707 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6708 && LARGE_OFF_T % 2147483647 == 1)
6718 if ac_fn_c_try_compile
"$LINENO"; then :
6721 rm -f core conftest.err conftest.
$ac_objext
6723 if ac_fn_c_try_compile
"$LINENO"; then :
6724 ac_cv_sys_largefile_CC
=' -n32'; break
6726 rm -f core conftest.err conftest.
$ac_objext
6730 rm -f conftest.
$ac_ext
6733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6734 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6735 if test "$ac_cv_sys_largefile_CC" != no
; then
6736 CC
=$CC$ac_cv_sys_largefile_CC
6739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6740 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6741 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
6742 $as_echo_n "(cached) " >&6
6745 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6746 /* end confdefs.h. */
6747 #include <sys/types.h>
6748 /* Check that off_t can represent 2**63 - 1 correctly.
6749 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6750 since some C++ compilers masquerading as C compilers
6751 incorrectly reject 9223372036854775807. */
6752 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6753 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6754 && LARGE_OFF_T % 2147483647 == 1)
6764 if ac_fn_c_try_compile
"$LINENO"; then :
6765 ac_cv_sys_file_offset_bits
=no
; break
6767 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6768 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6769 /* end confdefs.h. */
6770 #define _FILE_OFFSET_BITS 64
6771 #include <sys/types.h>
6772 /* Check that off_t can represent 2**63 - 1 correctly.
6773 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6774 since some C++ compilers masquerading as C compilers
6775 incorrectly reject 9223372036854775807. */
6776 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6777 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6778 && LARGE_OFF_T % 2147483647 == 1)
6788 if ac_fn_c_try_compile
"$LINENO"; then :
6789 ac_cv_sys_file_offset_bits
=64; break
6791 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6792 ac_cv_sys_file_offset_bits
=unknown
6796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6797 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6798 case $ac_cv_sys_file_offset_bits in #(
6801 cat >>confdefs.h
<<_ACEOF
6802 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6807 if test $ac_cv_sys_file_offset_bits = unknown
; then
6808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6809 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6810 if test "${ac_cv_sys_large_files+set}" = set; then :
6811 $as_echo_n "(cached) " >&6
6814 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6815 /* end confdefs.h. */
6816 #include <sys/types.h>
6817 /* Check that off_t can represent 2**63 - 1 correctly.
6818 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6819 since some C++ compilers masquerading as C compilers
6820 incorrectly reject 9223372036854775807. */
6821 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6822 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6823 && LARGE_OFF_T % 2147483647 == 1)
6833 if ac_fn_c_try_compile
"$LINENO"; then :
6834 ac_cv_sys_large_files
=no
; break
6836 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6837 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6838 /* end confdefs.h. */
6839 #define _LARGE_FILES 1
6840 #include <sys/types.h>
6841 /* Check that off_t can represent 2**63 - 1 correctly.
6842 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6843 since some C++ compilers masquerading as C compilers
6844 incorrectly reject 9223372036854775807. */
6845 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6846 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6847 && LARGE_OFF_T % 2147483647 == 1)
6857 if ac_fn_c_try_compile
"$LINENO"; then :
6858 ac_cv_sys_large_files
=1; break
6860 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6861 ac_cv_sys_large_files
=unknown
6865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6866 $as_echo "$ac_cv_sys_large_files" >&6; }
6867 case $ac_cv_sys_large_files in #(
6870 cat >>confdefs.h
<<_ACEOF
6871 #define _LARGE_FILES $ac_cv_sys_large_files
6879 $as_echo "#define _DARWIN_USE_64_BIT_INODE 1" >>confdefs.h
6883 case $ac_cv_prog_cc_stdc in #(
6885 ac_cv_prog_cc_c99
=no
; ac_cv_prog_cc_c89
=no
;; #(
6887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
6888 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
6889 if test "${ac_cv_prog_cc_c99+set}" = set; then :
6890 $as_echo_n "(cached) " >&6
6892 ac_cv_prog_cc_c99
=no
6894 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6895 /* end confdefs.h. */
6897 #include <stdbool.h>
6902 // Check varargs macros. These examples are taken from C99 6.10.3.5.
6903 #define debug(...) fprintf (stderr, __VA_ARGS__)
6904 #define showlist(...) puts (#__VA_ARGS__)
6905 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6907 test_varargs_macros (void)
6912 debug ("X = %d\n", x);
6913 showlist (The first, second, and third items.);
6914 report (x>y, "x is %d but y is %d", x, y);
6917 // Check long long types.
6918 #define BIG64 18446744073709551615ull
6919 #define BIG32 4294967295ul
6920 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6922 your preprocessor is broken;
6926 your preprocessor is broken;
6928 static long long int bignum = -9223372036854775807LL;
6929 static unsigned long long int ubignum = BIG64;
6931 struct incomplete_array
6939 const wchar_t *name;
6943 typedef const char *ccp;
6946 test_restrict (ccp restrict text)
6948 // See if C++-style comments work.
6949 // Iterate through items via the restricted pointer.
6950 // Also check for declarations in for loops.
6951 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6956 // Check varargs and va_copy.
6958 test_varargs (const char *format, ...)
6961 va_start (args, format);
6963 va_copy (args_copy, args);
6974 str = va_arg (args_copy, const char *);
6977 number = va_arg (args_copy, int);
6980 fnumber = va_arg (args_copy, double);
6995 _Bool success = false;
6998 if (test_restrict ("String literal") == 0)
7000 char *restrict newvar = "Another string";
7003 test_varargs ("s, d' f .", "string", 65, 34.234);
7004 test_varargs_macros ();
7006 // Check flexible array members.
7007 struct incomplete_array *ia =
7008 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7010 for (int i = 0; i < ia->datasize; ++i)
7011 ia->data[i] = i * 1.234;
7013 // Check named initializers.
7014 struct named_init ni = {
7016 .name = L"Test wide string",
7017 .average = 543.34343,
7022 int dynamic_array[ni.number];
7023 dynamic_array[ni.number - 1] = 543;
7025 // work around unused variable warnings
7026 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7027 || dynamic_array[ni.number - 1] != 543);
7033 for ac_arg
in '' -std=gnu99
-std=c99
-c99 -AC99 -xc99=all
-qlanglvl=extc99
7035 CC
="$ac_save_CC $ac_arg"
7036 if ac_fn_c_try_compile
"$LINENO"; then :
7037 ac_cv_prog_cc_c99
=$ac_arg
7039 rm -f core conftest.err conftest.
$ac_objext
7040 test "x$ac_cv_prog_cc_c99" != "xno" && break
7042 rm -f conftest.
$ac_ext
7047 case "x$ac_cv_prog_cc_c99" in
7049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7050 $as_echo "none needed" >&6; } ;;
7052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7053 $as_echo "unsupported" >&6; } ;;
7055 CC
="$CC $ac_cv_prog_cc_c99"
7056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
7057 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7059 if test "x$ac_cv_prog_cc_c99" != xno
; then :
7060 ac_cv_prog_cc_stdc
=$ac_cv_prog_cc_c99
7062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
7063 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
7064 if test "${ac_cv_prog_cc_c89+set}" = set; then :
7065 $as_echo_n "(cached) " >&6
7067 ac_cv_prog_cc_c89
=no
7069 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7070 /* end confdefs.h. */
7073 #include <sys/types.h>
7074 #include <sys/stat.h>
7075 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
7076 struct buf { int x; };
7077 FILE * (*rcsopen) (struct buf *, struct stat *, int);
7078 static char *e (p, i)
7084 static char *f (char * (*g) (char **, int), char **p, ...)
7089 s = g (p, va_arg (v,int));
7094 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
7095 function prototypes and stuff, but not '\xHH' hex character constants.
7096 These don't provoke an error unfortunately, instead are silently treated
7097 as 'x'. The following induces an error, until -std is added to get
7098 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
7099 array size at least. It's necessary to write '\x00'==0 to get something
7100 that's true only with -std. */
7101 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
7103 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
7104 inside strings and character constants. */
7106 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
7108 int test (int i, double x);
7109 struct s1 {int (*f) (int a);};
7110 struct s2 {int (*f) (double a);};
7111 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7117 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
7122 for ac_arg
in '' -qlanglvl=extc89
-qlanglvl=ansi
-std \
7123 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7125 CC
="$ac_save_CC $ac_arg"
7126 if ac_fn_c_try_compile
"$LINENO"; then :
7127 ac_cv_prog_cc_c89
=$ac_arg
7129 rm -f core conftest.err conftest.
$ac_objext
7130 test "x$ac_cv_prog_cc_c89" != "xno" && break
7132 rm -f conftest.
$ac_ext
7137 case "x$ac_cv_prog_cc_c89" in
7139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7140 $as_echo "none needed" >&6; } ;;
7142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7143 $as_echo "unsupported" >&6; } ;;
7145 CC
="$CC $ac_cv_prog_cc_c89"
7146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
7147 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
7149 if test "x$ac_cv_prog_cc_c89" != xno
; then :
7150 ac_cv_prog_cc_stdc
=$ac_cv_prog_cc_c89
7152 ac_cv_prog_cc_stdc
=no
7158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
7159 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
7160 if test "${ac_cv_prog_cc_stdc+set}" = set; then :
7161 $as_echo_n "(cached) " >&6
7164 case $ac_cv_prog_cc_stdc in #(
7166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7167 $as_echo "unsupported" >&6; } ;; #(
7169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7170 $as_echo "none needed" >&6; } ;; #(
7172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
7173 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
7178 # Code from module alloca-opt:
7179 # Code from module allocator:
7180 # Code from module at-internal:
7181 # Code from module c-ctype:
7182 # Code from module c-strcase:
7183 # Code from module careadlinkat:
7184 # Code from module clock-time:
7185 # Code from module close-stream:
7186 # Code from module crypto/md5:
7187 # Code from module crypto/sha1:
7188 # Code from module crypto/sha256:
7189 # Code from module crypto/sha512:
7190 # Code from module dirent:
7191 # Code from module dosname:
7192 # Code from module dtoastr:
7193 # Code from module dtotimespec:
7194 # Code from module dup2:
7195 # Code from module environ:
7196 # Code from module errno:
7197 # Code from module euidaccess:
7198 # Code from module execinfo:
7199 # Code from module extensions:
7201 # Code from module extern-inline:
7202 # Code from module faccessat:
7203 # Code from module fcntl-h:
7204 # Code from module fdatasync:
7205 # Code from module fdopendir:
7206 # Code from module filemode:
7207 # Code from module fpending:
7208 # Code from module fstatat:
7209 # Code from module fsync:
7210 # Code from module getgroups:
7211 # Code from module getloadavg:
7212 # Code from module getopt-gnu:
7213 # Code from module getopt-posix:
7214 # Code from module gettext-h:
7215 # Code from module gettime:
7216 # Code from module gettimeofday:
7217 # Code from module group-member:
7218 # Code from module ignore-value:
7219 # Code from module include_next:
7220 # Code from module intprops:
7221 # Code from module inttypes-incomplete:
7222 # Code from module largefile:
7224 # Code from module lstat:
7225 # Code from module manywarnings:
7226 # Code from module memrchr:
7227 # Code from module mktime:
7228 # Code from module multiarch:
7229 # Code from module nocrash:
7230 # Code from module openat-h:
7231 # Code from module pathmax:
7232 # Code from module pselect:
7233 # Code from module pthread_sigmask:
7234 # Code from module putenv:
7235 # Code from module qacl:
7236 # Code from module readlink:
7237 # Code from module readlinkat:
7238 # Code from module root-uid:
7239 # Code from module sig2str:
7240 # Code from module signal-h:
7241 # Code from module snippet/_Noreturn:
7242 # Code from module snippet/arg-nonnull:
7243 # Code from module snippet/c++defs:
7244 # Code from module snippet/warn-on-use:
7245 # Code from module socklen:
7246 # Code from module ssize_t:
7247 # Code from module stat:
7248 # Code from module stat-time:
7249 # Code from module stdalign:
7250 # Code from module stdarg:
7254 # Code from module stdbool:
7255 # Code from module stddef:
7256 # Code from module stdint:
7257 # Code from module stdio:
7258 # Code from module stdlib:
7259 # Code from module strftime:
7260 # Code from module string:
7261 # Code from module strtoimax:
7262 # Code from module strtoll:
7263 # Code from module strtoull:
7264 # Code from module strtoumax:
7265 # Code from module symlink:
7266 # Code from module sys_select:
7267 # Code from module sys_stat:
7268 # Code from module sys_time:
7269 # Code from module time:
7270 # Code from module time_r:
7271 # Code from module timer-time:
7272 # Code from module timespec:
7273 # Code from module timespec-add:
7274 # Code from module timespec-sub:
7275 # Code from module u64:
7276 # Code from module unistd:
7277 # Code from module unsetenv:
7278 # Code from module utimens:
7279 # Code from module verify:
7280 # Code from module warnings:
7281 # Code from module xalloc-oversized:
7284 if test "$ac_test_CFLAGS" != set; then
7285 # It's helpful to have C macros available to GDB, so prefer -g3 to -g
7286 # if -g3 works and the user does not specify CFLAGS.
7287 # This test must follow gl_EARLY; otherwise AC_LINK_IFELSE complains.
7290 emacs_g3_CFLAGS
='-g3';;
7292 emacs_g3_CFLAGS
='-g3 -O2';;
7294 emacs_g3_CFLAGS
='';;
7296 if test -n "$emacs_g3_CFLAGS"; then
7297 emacs_save_CFLAGS
=$CFLAGS
7298 CFLAGS
=$emacs_g3_CFLAGS
7299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts $emacs_g3_CFLAGS" >&5
7300 $as_echo_n "checking whether $CC accepts $emacs_g3_CFLAGS... " >&6; }
7301 if test "${emacs_cv_prog_cc_g3+set}" = set; then :
7302 $as_echo_n "(cached) " >&6
7304 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7305 /* end confdefs.h. */
7315 if ac_fn_c_try_link
"$LINENO"; then :
7316 emacs_cv_prog_cc_g3
=yes
7318 emacs_cv_prog_cc_g3
=no
7320 rm -f core conftest.err conftest.
$ac_objext \
7321 conftest
$ac_exeext conftest.
$ac_ext
7323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_prog_cc_g3" >&5
7324 $as_echo "$emacs_cv_prog_cc_g3" >&6; }
7325 if test $emacs_cv_prog_cc_g3 != yes; then
7326 CFLAGS
=$emacs_save_CFLAGS
7333 # No optimization flag was inferred for this non-GCC compiler.
7334 # Try -O. This is needed for xlc on AIX; see Bug#14258.
7335 emacs_save_CFLAGS
=$CFLAGS
7336 test -z "$CFLAGS" || CFLAGS
="$CFLAGS "
7338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -O" >&5
7339 $as_echo_n "checking whether $CC accepts -O... " >&6; }
7340 if test "${emacs_cv_prog_cc_o+set}" = set; then :
7341 $as_echo_n "(cached) " >&6
7343 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7344 /* end confdefs.h. */
7354 if ac_fn_c_try_link
"$LINENO"; then :
7355 emacs_cv_prog_cc_o
=yes
7357 emacs_cv_prog_cc_o
=no
7359 rm -f core conftest.err conftest.
$ac_objext \
7360 conftest
$ac_exeext conftest.
$ac_ext
7362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_prog_cc_o" >&5
7363 $as_echo "$emacs_cv_prog_cc_o" >&6; }
7364 if test $emacs_cv_prog_cc_o != yes; then
7365 CFLAGS
=$emacs_save_CFLAGS
7370 # Check whether --enable-gcc-warnings was given.
7371 if test "${enable_gcc_warnings+set}" = set; then :
7372 enableval
=$enable_gcc_warnings; case $enableval in
7374 *) as_fn_error
"bad value $enableval for gcc-warnings option" "$LINENO" 5 ;;
7376 gl_gcc_warnings
=$enableval
7383 # Check whether --enable-link-time-optimization was given.
7384 if test "${enable_link_time_optimization+set}" = set; then :
7385 enableval
=$enable_link_time_optimization; if test "${enableval}" != "no"; then
7386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether link-time optimization is supported" >&5
7387 $as_echo_n "checking whether link-time optimization is supported... " >&6; }
7389 if test x
$GCC = xyes
; then
7390 CPUS
=`getconf _NPROCESSORS_ONLN 2>/dev/null`
7391 if test x
$CPUS != x
; then
7397 CFLAGS
="$CFLAGS $LTO"
7398 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7399 /* end confdefs.h. */
7409 if ac_fn_c_try_compile
"$LINENO"; then :
7410 ac_lto_supported
=yes
7414 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7415 CFLAGS
="$old_CFLAGS"
7417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_lto_supported" >&5
7418 $as_echo "$ac_lto_supported" >&6; }
7419 if test "$ac_lto_supported" = "yes"; then
7420 CFLAGS
="$CFLAGS $LTO"
7426 # gl_GCC_VERSION_IFELSE([major], [minor], [run-if-found], [run-if-not-found])
7427 # ------------------------------------------------
7428 # If $CPP is gcc-MAJOR.MINOR or newer, then run RUN-IF-FOUND.
7429 # Otherwise, run RUN-IF-NOT-FOUND.
7432 # When compiling with GCC, prefer -isystem to -I when including system
7433 # include files, to avoid generating useless diagnostics for the files.
7434 if test "$gl_gcc_warnings" != yes; then
7439 # This, $nw, is the list of warnings we disable.
7442 case $with_x_toolkit in
7443 lucid | athena | motif
)
7444 # Old toolkits mishandle 'const'.
7445 nw
="$nw -Wwrite-strings"
7448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Werror" >&5
7449 $as_echo_n "checking whether C compiler handles -Werror... " >&6; }
7450 if test "${gl_cv_warn_c__Werror+set}" = set; then :
7451 $as_echo_n "(cached) " >&6
7454 gl_save_compiler_FLAGS
="$CFLAGS"
7455 as_fn_append CFLAGS
" -Werror"
7456 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7457 /* end confdefs.h. */
7467 if ac_fn_c_try_compile
"$LINENO"; then :
7468 gl_cv_warn_c__Werror
=yes
7470 gl_cv_warn_c__Werror
=no
7472 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7473 CFLAGS
="$gl_save_compiler_FLAGS"
7476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Werror" >&5
7477 $as_echo "$gl_cv_warn_c__Werror" >&6; }
7478 if test "x$gl_cv_warn_c__Werror" = x
""yes; then :
7479 as_fn_append WERROR_CFLAGS
" -Werror"
7487 nw
="$nw -Waggregate-return" # anachronistic
7488 nw
="$nw -Wlong-long" # C90 is anachronistic
7489 nw
="$nw -Wc++-compat" # We don't care about C++ compilers
7490 nw
="$nw -Wundef" # Warns on '#if GNULIB_FOO' etc in gnulib
7491 nw
="$nw -Wtraditional" # Warns on #elif which we use often
7492 nw
="$nw -Wcast-qual" # Too many warnings for now
7493 nw
="$nw -Wconversion" # Too many warnings for now
7494 nw
="$nw -Wsystem-headers" # Don't let system headers trigger warnings
7495 nw
="$nw -Wsign-conversion" # Too many warnings for now
7496 nw
="$nw -Woverlength-strings" # Not a problem these days
7497 nw
="$nw -Wtraditional-conversion" # Too many warnings for now
7498 nw
="$nw -Wunreachable-code" # so buggy that it's now silently ignored
7499 nw
="$nw -Wpadded" # Our structs are not padded
7500 nw
="$nw -Wredundant-decls" # we regularly (re)declare functions
7501 nw
="$nw -Wlogical-op" # any use of fwrite provokes this
7502 nw
="$nw -Wformat-nonliteral" # we do this a lot
7503 nw
="$nw -Wvla" # warnings in gettext.h
7504 nw
="$nw -Wnested-externs" # use of XARGMATCH/verify_function__
7505 nw
="$nw -Wswitch-enum" # Too many warnings for now
7506 nw
="$nw -Wswitch-default" # Too many warnings for now
7507 nw
="$nw -Wfloat-equal" # warns about high-quality code
7508 nw
="$nw -Winline" # OK to ignore 'inline'
7509 nw
="$nw -Wjump-misses-init" # We sometimes safely jump over init.
7510 nw
="$nw -Wstrict-overflow" # OK to optimize assuming that
7511 # signed overflow has undefined behavior
7512 nw
="$nw -Wsync-nand" # irrelevant here, and provokes ObjC warning
7513 nw
="$nw -Wunsafe-loop-optimizations" # OK to suppress unsafe optimizations
7515 # Emacs doesn't care about shadowing; see
7516 # <http://lists.gnu.org/archive/html/emacs-diffs/2011-11/msg00265.html>.
7519 # Emacs's use of alloca inhibits protecting the stack.
7520 nw
="$nw -Wstack-protector"
7522 # The following line should be removable at some point.
7523 nw
="$nw -Wsuggest-attribute=pure"
7527 if test -n "$GCC"; then
7529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is supported" >&5
7530 $as_echo_n "checking whether -Wno-missing-field-initializers is supported... " >&6; }
7531 if test "${gl_cv_cc_nomfi_supported+set}" = set; then :
7532 $as_echo_n "(cached) " >&6
7535 gl_save_CFLAGS
="$CFLAGS"
7536 CFLAGS
="$CFLAGS -W -Werror -Wno-missing-field-initializers"
7537 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7538 /* end confdefs.h. */
7548 if ac_fn_c_try_compile
"$LINENO"; then :
7549 gl_cv_cc_nomfi_supported
=yes
7551 gl_cv_cc_nomfi_supported
=no
7553 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7554 CFLAGS
="$gl_save_CFLAGS"
7557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_supported" >&5
7558 $as_echo "$gl_cv_cc_nomfi_supported" >&6; }
7560 if test "$gl_cv_cc_nomfi_supported" = yes; then
7561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is needed" >&5
7562 $as_echo_n "checking whether -Wno-missing-field-initializers is needed... " >&6; }
7563 if test "${gl_cv_cc_nomfi_needed+set}" = set; then :
7564 $as_echo_n "(cached) " >&6
7567 gl_save_CFLAGS
="$CFLAGS"
7568 CFLAGS
="$CFLAGS -W -Werror"
7569 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7570 /* end confdefs.h. */
7573 typedef struct { int a; int b; } s_t;
7585 if ac_fn_c_try_compile
"$LINENO"; then :
7586 gl_cv_cc_nomfi_needed
=no
7588 gl_cv_cc_nomfi_needed
=yes
7590 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7591 CFLAGS
="$gl_save_CFLAGS"
7595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_needed" >&5
7596 $as_echo "$gl_cv_cc_nomfi_needed" >&6; }
7599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wuninitialized is supported" >&5
7600 $as_echo_n "checking whether -Wuninitialized is supported... " >&6; }
7601 if test "${gl_cv_cc_uninitialized_supported+set}" = set; then :
7602 $as_echo_n "(cached) " >&6
7605 gl_save_CFLAGS
="$CFLAGS"
7606 CFLAGS
="$CFLAGS -Werror -Wuninitialized"
7607 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7608 /* end confdefs.h. */
7618 if ac_fn_c_try_compile
"$LINENO"; then :
7619 gl_cv_cc_uninitialized_supported
=yes
7621 gl_cv_cc_uninitialized_supported
=no
7623 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7624 CFLAGS
="$gl_save_CFLAGS"
7627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_uninitialized_supported" >&5
7628 $as_echo "$gl_cv_cc_uninitialized_supported" >&6; }
7632 # List all gcc warning categories.
7634 for gl_manywarn_item
in \
7641 -Wbad-function-cast \
7642 -Wbuiltin-macro-redefined \
7648 -Wcoverage-mismatch \
7651 -Wdeprecated-declarations \
7652 -Wdisabled-optimization \
7654 -Wdouble-promotion \
7659 -Wformat-contains-nul \
7660 -Wformat-extra-args \
7661 -Wformat-nonliteral \
7664 -Wformat-zero-length \
7666 -Wfree-nonheap-object \
7667 -Wignored-qualifiers \
7669 -Wimplicit-function-declaration \
7673 -Wint-to-pointer-cast \
7674 -Winvalid-memory-model \
7676 -Wjump-misses-init \
7679 -Wmaybe-uninitialized \
7681 -Wmissing-declarations \
7682 -Wmissing-field-initializers \
7683 -Wmissing-format-attribute \
7684 -Wmissing-include-dirs \
7685 -Wmissing-noreturn \
7686 -Wmissing-parameter-type \
7687 -Wmissing-prototypes \
7694 -Wold-style-declaration \
7695 -Wold-style-definition \
7697 -Woverlength-strings \
7700 -Wpacked-bitfield-compat \
7704 -Wpointer-to-int-cast \
7709 -Wsizeof-pointer-memaccess \
7713 -Wstrict-prototypes \
7714 -Wsuggest-attribute=const \
7715 -Wsuggest-attribute=format \
7716 -Wsuggest-attribute=noreturn \
7717 -Wsuggest-attribute=pure \
7727 -Wunreachable-code \
7728 -Wunsafe-loop-optimizations \
7730 -Wunused-but-set-parameter \
7731 -Wunused-but-set-variable \
7734 -Wunused-local-typedefs \
7736 -Wunused-parameter \
7742 -Wvector-operation-performance \
7744 -Wvolatile-register-var \
7748 gl_manywarn_set
="$gl_manywarn_set $gl_manywarn_item"
7751 # Disable specific options as needed.
7752 if test "$gl_cv_cc_nomfi_needed" = yes; then
7753 gl_manywarn_set
="$gl_manywarn_set -Wno-missing-field-initializers"
7756 if test "$gl_cv_cc_uninitialized_supported" = no
; then
7757 gl_manywarn_set
="$gl_manywarn_set -Wno-uninitialized"
7768 *" $gl_warn_item "*)
7771 gl_warn_set
="$gl_warn_set $gl_warn_item"
7778 as_gl_Warn
=`$as_echo "gl_cv_warn_c_$w" | $as_tr_sh`
7779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles $w" >&5
7780 $as_echo_n "checking whether C compiler handles $w... " >&6; }
7781 if { as_var
=$as_gl_Warn; eval "test \"\${$as_var+set}\" = set"; }; then :
7782 $as_echo_n "(cached) " >&6
7785 gl_save_compiler_FLAGS
="$CFLAGS"
7786 as_fn_append CFLAGS
" $w"
7787 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7788 /* end confdefs.h. */
7798 if ac_fn_c_try_compile
"$LINENO"; then :
7799 eval "$as_gl_Warn=yes"
7801 eval "$as_gl_Warn=no"
7803 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7804 CFLAGS
="$gl_save_compiler_FLAGS"
7807 eval ac_res
=\$
$as_gl_Warn
7808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7809 $as_echo "$ac_res" >&6; }
7810 eval as_val
=\$
$as_gl_Warn
7811 if test "x$as_val" = x
""yes; then :
7812 as_fn_append WARN_CFLAGS
" $w"
7817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-missing-field-initializers" >&5
7818 $as_echo_n "checking whether C compiler handles -Wno-missing-field-initializers... " >&6; }
7819 if test "${gl_cv_warn_c__Wno_missing_field_initializers+set}" = set; then :
7820 $as_echo_n "(cached) " >&6
7823 gl_save_compiler_FLAGS
="$CFLAGS"
7824 as_fn_append CFLAGS
" -Wno-missing-field-initializers"
7825 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7826 /* end confdefs.h. */
7836 if ac_fn_c_try_compile
"$LINENO"; then :
7837 gl_cv_warn_c__Wno_missing_field_initializers
=yes
7839 gl_cv_warn_c__Wno_missing_field_initializers
=no
7841 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7842 CFLAGS
="$gl_save_compiler_FLAGS"
7845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_missing_field_initializers" >&5
7846 $as_echo "$gl_cv_warn_c__Wno_missing_field_initializers" >&6; }
7847 if test "x$gl_cv_warn_c__Wno_missing_field_initializers" = x
""yes; then :
7848 as_fn_append WARN_CFLAGS
" -Wno-missing-field-initializers"
7852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-sign-compare" >&5
7853 $as_echo_n "checking whether C compiler handles -Wno-sign-compare... " >&6; }
7854 if test "${gl_cv_warn_c__Wno_sign_compare+set}" = set; then :
7855 $as_echo_n "(cached) " >&6
7858 gl_save_compiler_FLAGS
="$CFLAGS"
7859 as_fn_append CFLAGS
" -Wno-sign-compare"
7860 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7861 /* end confdefs.h. */
7871 if ac_fn_c_try_compile
"$LINENO"; then :
7872 gl_cv_warn_c__Wno_sign_compare
=yes
7874 gl_cv_warn_c__Wno_sign_compare
=no
7876 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7877 CFLAGS
="$gl_save_compiler_FLAGS"
7880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_sign_compare" >&5
7881 $as_echo "$gl_cv_warn_c__Wno_sign_compare" >&6; }
7882 if test "x$gl_cv_warn_c__Wno_sign_compare" = x
""yes; then :
7883 as_fn_append WARN_CFLAGS
" -Wno-sign-compare"
7886 # Too many warnings for now
7887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-type-limits" >&5
7888 $as_echo_n "checking whether C compiler handles -Wno-type-limits... " >&6; }
7889 if test "${gl_cv_warn_c__Wno_type_limits+set}" = set; then :
7890 $as_echo_n "(cached) " >&6
7893 gl_save_compiler_FLAGS
="$CFLAGS"
7894 as_fn_append CFLAGS
" -Wno-type-limits"
7895 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7896 /* end confdefs.h. */
7906 if ac_fn_c_try_compile
"$LINENO"; then :
7907 gl_cv_warn_c__Wno_type_limits
=yes
7909 gl_cv_warn_c__Wno_type_limits
=no
7911 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7912 CFLAGS
="$gl_save_compiler_FLAGS"
7915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_type_limits" >&5
7916 $as_echo "$gl_cv_warn_c__Wno_type_limits" >&6; }
7917 if test "x$gl_cv_warn_c__Wno_type_limits" = x
""yes; then :
7918 as_fn_append WARN_CFLAGS
" -Wno-type-limits"
7921 # Too many warnings for now
7922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-switch" >&5
7923 $as_echo_n "checking whether C compiler handles -Wno-switch... " >&6; }
7924 if test "${gl_cv_warn_c__Wno_switch+set}" = set; then :
7925 $as_echo_n "(cached) " >&6
7928 gl_save_compiler_FLAGS
="$CFLAGS"
7929 as_fn_append CFLAGS
" -Wno-switch"
7930 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7931 /* end confdefs.h. */
7941 if ac_fn_c_try_compile
"$LINENO"; then :
7942 gl_cv_warn_c__Wno_switch
=yes
7944 gl_cv_warn_c__Wno_switch
=no
7946 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7947 CFLAGS
="$gl_save_compiler_FLAGS"
7950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_switch" >&5
7951 $as_echo "$gl_cv_warn_c__Wno_switch" >&6; }
7952 if test "x$gl_cv_warn_c__Wno_switch" = x
""yes; then :
7953 as_fn_append WARN_CFLAGS
" -Wno-switch"
7956 # Too many warnings for now
7957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-unused-parameter" >&5
7958 $as_echo_n "checking whether C compiler handles -Wno-unused-parameter... " >&6; }
7959 if test "${gl_cv_warn_c__Wno_unused_parameter+set}" = set; then :
7960 $as_echo_n "(cached) " >&6
7963 gl_save_compiler_FLAGS
="$CFLAGS"
7964 as_fn_append CFLAGS
" -Wno-unused-parameter"
7965 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7966 /* end confdefs.h. */
7976 if ac_fn_c_try_compile
"$LINENO"; then :
7977 gl_cv_warn_c__Wno_unused_parameter
=yes
7979 gl_cv_warn_c__Wno_unused_parameter
=no
7981 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7982 CFLAGS
="$gl_save_compiler_FLAGS"
7985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_unused_parameter" >&5
7986 $as_echo "$gl_cv_warn_c__Wno_unused_parameter" >&6; }
7987 if test "x$gl_cv_warn_c__Wno_unused_parameter" = x
""yes; then :
7988 as_fn_append WARN_CFLAGS
" -Wno-unused-parameter"
7991 # Too many warnings for now
7992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-format-nonliteral" >&5
7993 $as_echo_n "checking whether C compiler handles -Wno-format-nonliteral... " >&6; }
7994 if test "${gl_cv_warn_c__Wno_format_nonliteral+set}" = set; then :
7995 $as_echo_n "(cached) " >&6
7998 gl_save_compiler_FLAGS
="$CFLAGS"
7999 as_fn_append CFLAGS
" -Wno-format-nonliteral"
8000 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8001 /* end confdefs.h. */
8011 if ac_fn_c_try_compile
"$LINENO"; then :
8012 gl_cv_warn_c__Wno_format_nonliteral
=yes
8014 gl_cv_warn_c__Wno_format_nonliteral
=no
8016 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8017 CFLAGS
="$gl_save_compiler_FLAGS"
8020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_format_nonliteral" >&5
8021 $as_echo "$gl_cv_warn_c__Wno_format_nonliteral" >&6; }
8022 if test "x$gl_cv_warn_c__Wno_format_nonliteral" = x
""yes; then :
8023 as_fn_append WARN_CFLAGS
" -Wno-format-nonliteral"
8028 # In spite of excluding -Wlogical-op above, it is enabled, as of
8029 # gcc 4.5.0 20090517.
8030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-logical-op" >&5
8031 $as_echo_n "checking whether C compiler handles -Wno-logical-op... " >&6; }
8032 if test "${gl_cv_warn_c__Wno_logical_op+set}" = set; then :
8033 $as_echo_n "(cached) " >&6
8036 gl_save_compiler_FLAGS
="$CFLAGS"
8037 as_fn_append CFLAGS
" -Wno-logical-op"
8038 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8039 /* end confdefs.h. */
8049 if ac_fn_c_try_compile
"$LINENO"; then :
8050 gl_cv_warn_c__Wno_logical_op
=yes
8052 gl_cv_warn_c__Wno_logical_op
=no
8054 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8055 CFLAGS
="$gl_save_compiler_FLAGS"
8058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_logical_op" >&5
8059 $as_echo "$gl_cv_warn_c__Wno_logical_op" >&6; }
8060 if test "x$gl_cv_warn_c__Wno_logical_op" = x
""yes; then :
8061 as_fn_append WARN_CFLAGS
" -Wno-logical-op"
8066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -fdiagnostics-show-option" >&5
8067 $as_echo_n "checking whether C compiler handles -fdiagnostics-show-option... " >&6; }
8068 if test "${gl_cv_warn_c__fdiagnostics_show_option+set}" = set; then :
8069 $as_echo_n "(cached) " >&6
8072 gl_save_compiler_FLAGS
="$CFLAGS"
8073 as_fn_append CFLAGS
" -fdiagnostics-show-option"
8074 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8075 /* end confdefs.h. */
8085 if ac_fn_c_try_compile
"$LINENO"; then :
8086 gl_cv_warn_c__fdiagnostics_show_option
=yes
8088 gl_cv_warn_c__fdiagnostics_show_option
=no
8090 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8091 CFLAGS
="$gl_save_compiler_FLAGS"
8094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__fdiagnostics_show_option" >&5
8095 $as_echo "$gl_cv_warn_c__fdiagnostics_show_option" >&6; }
8096 if test "x$gl_cv_warn_c__fdiagnostics_show_option" = x
""yes; then :
8097 as_fn_append WARN_CFLAGS
" -fdiagnostics-show-option"
8101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -funit-at-a-time" >&5
8102 $as_echo_n "checking whether C compiler handles -funit-at-a-time... " >&6; }
8103 if test "${gl_cv_warn_c__funit_at_a_time+set}" = set; then :
8104 $as_echo_n "(cached) " >&6
8107 gl_save_compiler_FLAGS
="$CFLAGS"
8108 as_fn_append CFLAGS
" -funit-at-a-time"
8109 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8110 /* end confdefs.h. */
8120 if ac_fn_c_try_compile
"$LINENO"; then :
8121 gl_cv_warn_c__funit_at_a_time
=yes
8123 gl_cv_warn_c__funit_at_a_time
=no
8125 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8126 CFLAGS
="$gl_save_compiler_FLAGS"
8129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__funit_at_a_time" >&5
8130 $as_echo "$gl_cv_warn_c__funit_at_a_time" >&6; }
8131 if test "x$gl_cv_warn_c__funit_at_a_time" = x
""yes; then :
8132 as_fn_append WARN_CFLAGS
" -funit-at-a-time"
8138 $as_echo "#define lint 1" >>confdefs.h
8142 $as_echo "#define GNULIB_PORTCHECK 1" >>confdefs.h
8145 # We use a slightly smaller set of warning options for lib/.
8146 # Remove the following and save the result in GNULIB_WARN_CFLAGS.
8148 nw
="$nw -Wunused-macros"
8152 set x
$WARN_CFLAGS; shift
8156 *" $gl_warn_item "*)
8159 gl_warn_set
="$gl_warn_set $gl_warn_item"
8163 GNULIB_WARN_CFLAGS
=$gl_warn_set
8173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works for files in the same directory" >&5
8174 $as_echo_n "checking whether ln -s works for files in the same directory... " >&6; }
8175 rm -f conf$$ conf$$.
file
8177 LN_S_FILEONLY
='cp -p'
8179 if (echo >conf$$.
file) 2>/dev
/null
; then
8180 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
8181 LN_S_FILEONLY
='ln -s'
8182 elif ln conf$$.
file conf$$
2>/dev
/null
; then
8187 rm -f conf$$ conf$$.
file
8189 if test "$LN_S_FILEONLY" = "ln -s"; then
8190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8191 $as_echo "yes" >&6; }
8193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S_FILEONLY" >&5
8194 $as_echo "no, using $LN_S_FILEONLY" >&6; }
8200 # Extract the first word of "install-info", so it can be a program name with args.
8201 set dummy install-info
; ac_word
=$2
8202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8203 $as_echo_n "checking for $ac_word... " >&6; }
8204 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
8205 $as_echo_n "(cached) " >&6
8207 case $INSTALL_INFO in
8209 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
8212 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8213 for as_dir
in $PATH$PATH_SEPARATOR/usr
/sbin
$PATH_SEPARATOR/sbin
8216 test -z "$as_dir" && as_dir
=.
8217 for ac_exec_ext
in '' $ac_executable_extensions; do
8218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8219 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
8220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8227 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
8231 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
8232 if test -n "$INSTALL_INFO"; then
8233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
8234 $as_echo "$INSTALL_INFO" >&6; }
8236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8237 $as_echo "no" >&6; }
8241 # Extract the first word of "gzip", so it can be a program name with args.
8242 set dummy
gzip; ac_word
=$2
8243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8244 $as_echo_n "checking for $ac_word... " >&6; }
8245 if test "${ac_cv_path_GZIP_PROG+set}" = set; then :
8246 $as_echo_n "(cached) " >&6
8250 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
8253 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8257 test -z "$as_dir" && as_dir
=.
8258 for ac_exec_ext
in '' $ac_executable_extensions; do
8259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8260 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
8261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8271 GZIP_PROG
=$ac_cv_path_GZIP_PROG
8272 if test -n "$GZIP_PROG"; then
8273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
8274 $as_echo "$GZIP_PROG" >&6; }
8276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8277 $as_echo "no" >&6; }
8282 if test $opsys = gnu-linux
; then
8283 # Extract the first word of "paxctl", so it can be a program name with args.
8284 set dummy paxctl
; ac_word
=$2
8285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8286 $as_echo_n "checking for $ac_word... " >&6; }
8287 if test "${ac_cv_path_PAXCTL+set}" = set; then :
8288 $as_echo_n "(cached) " >&6
8292 ac_cv_path_PAXCTL
="$PAXCTL" # Let the user override the test with a path.
8295 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8296 for as_dir
in $PATH$PATH_SEPARATOR/sbin
$PATH_SEPARATOR/usr
/sbin
8299 test -z "$as_dir" && as_dir
=.
8300 for ac_exec_ext
in '' $ac_executable_extensions; do
8301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8302 ac_cv_path_PAXCTL
="$as_dir/$ac_word$ac_exec_ext"
8303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8313 PAXCTL
=$ac_cv_path_PAXCTL
8314 if test -n "$PAXCTL"; then
8315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PAXCTL" >&5
8316 $as_echo "$PAXCTL" >&6; }
8318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8319 $as_echo "no" >&6; }
8323 if test "X$PAXCTL" != X
; then
8324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether binaries have a PT_PAX_FLAGS header" >&5
8325 $as_echo_n "checking whether binaries have a PT_PAX_FLAGS header... " >&6; }
8326 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8327 /* end confdefs.h. */
8337 if ac_fn_c_try_link
"$LINENO"; then :
8338 if $PAXCTL -v conftest
$EXEEXT >/dev
/null
2>&1; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8339 $as_echo "yes" >&6; }
8340 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8341 $as_echo "no" >&6; }; PAXCTL
=""; fi
8343 rm -f core conftest.err conftest.
$ac_objext \
8344 conftest
$ac_exeext conftest.
$ac_ext
8348 ## Need makeinfo >= 4.7 (?) to build the manuals.
8349 # Extract the first word of "makeinfo", so it can be a program name with args.
8350 set dummy makeinfo
; ac_word
=$2
8351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8352 $as_echo_n "checking for $ac_word... " >&6; }
8353 if test "${ac_cv_path_MAKEINFO+set}" = set; then :
8354 $as_echo_n "(cached) " >&6
8358 ac_cv_path_MAKEINFO
="$MAKEINFO" # Let the user override the test with a path.
8361 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8365 test -z "$as_dir" && as_dir
=.
8366 for ac_exec_ext
in '' $ac_executable_extensions; do
8367 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8368 ac_cv_path_MAKEINFO
="$as_dir/$ac_word$ac_exec_ext"
8369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8376 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO
="no"
8380 MAKEINFO
=$ac_cv_path_MAKEINFO
8381 if test -n "$MAKEINFO"; then
8382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8383 $as_echo "$MAKEINFO" >&6; }
8385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8386 $as_echo "no" >&6; }
8390 if test "$MAKEINFO" != "no"; then
8392 $MAKEINFO --version 2> /dev/null |
8393 $EGREP 'texinfo[^0-9]*([1-4][0-9]+|[5-9]|4\.[7-9]|4\.[1-6][0-9]+)'
8399 ## Makeinfo is unusual. For a released Emacs, the manuals are
8400 ## pre-built, and not deleted by the normal clean rules. makeinfo is
8401 ## therefore in the category of "special tools" not normally required, which
8402 ## configure does not have to check for (eg autoconf itself).
8403 ## In a Bazaar checkout on the other hand, the manuals are not included.
8404 ## So makeinfo is a requirement to build from Bazaar, and configure
8405 ## should test for it as it does for any other build requirement.
8406 ## We use the presence of $srcdir/info/emacs to distinguish a release,
8407 ## with pre-built manuals, from a Bazaar checkout.
8410 if test "$MAKEINFO" = "no"; then
8412 if test "x${with_makeinfo}" = "xno"; then
8414 elif test ! -e "$srcdir/info/emacs" && test ! -e "$srcdir/info/emacs.info"; then
8415 as_fn_error
"You do not seem to have makeinfo >= 4.7, and your
8416 source tree does not seem to have pre-built manuals in the \`info' directory.
8417 Either install a suitable version of makeinfo, or re-run configure
8418 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
8424 INFO_OPTS
=--no-split
8429 if test x
$GCC = xyes
; then
8430 test "x$GCC_LINK_TEST_OPTIONS" != x
&& \
8431 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
8433 test "x$NON_GCC_LINK_TEST_OPTIONS" != x
&& \
8434 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
8438 late_LDFLAGS
=$LDFLAGS
8439 if test x
$GCC = xyes
; then
8440 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
8442 LDFLAGS
="$LDFLAGS -znocombreloc"
8445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
8446 $as_echo_n "checking for -znocombreloc... " >&6; }
8447 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8448 /* end confdefs.h. */
8458 if ac_fn_c_try_link
"$LINENO"; then :
8459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8460 $as_echo "yes" >&6; }
8462 LDFLAGS
=$late_LDFLAGS
8463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8464 $as_echo "no" >&6; }
8466 rm -f core conftest.err conftest.
$ac_objext \
8467 conftest
$ac_exeext conftest.
$ac_ext
8470 test "x$CANNOT_DUMP" = "x" && CANNOT_DUMP
=no
8472 your-opsys-here
) CANNOT_DUMP
=yes ;;
8475 test "$CANNOT_DUMP" = "yes" && \
8477 $as_echo "#define CANNOT_DUMP 1" >>confdefs.h
8483 UNEXEC_OBJ
=unexelf.o
8485 # MSDOS uses unexcoff.o
8486 # MSWindows uses unexw32.o
8488 UNEXEC_OBJ
=unexaix.o
8494 UNEXEC_OBJ
=unexmacosx.o
8497 UNEXEC_OBJ
=unexhp9k800.o
8500 # Use the Solaris dldump() function, called from unexsol.c, to dump
8501 # emacs, instead of the generic ELF dump code found in unexelf.c.
8502 # The resulting binary has a complete symbol table, and is better
8503 # for debugging and other observability tools (debuggers, pstack, etc).
8505 # If you encounter a problem using dldump(), please consider sending
8506 # a message to the OpenSolaris tools-linking mailing list:
8507 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
8509 # It is likely that dldump() works with older Solaris too, but this has
8510 # not been tested, so for now this change is for Solaris 10 or newer.
8511 UNEXEC_OBJ
=unexsol.o
8518 ## Let `ld' find image libs and similar things in /usr/local/lib.
8519 ## The system compiler, GCC, has apparently been modified to not
8520 ## look there, contrary to what a stock GCC would do.
8521 ### It's not our place to do this. See bug#10313#17.
8522 ### LD_SWITCH_SYSTEM=-L/usr/local/lib
8527 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
8528 case $host_cpu in mips
*) LD_SWITCH_SYSTEM
="-G 0";; esac
8532 ### It's not our place to do this. See bug#10313#17.
8533 ### LD_SWITCH_SYSTEM="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
8538 ## Han Boetes <han@boetes.org> says this is necessary,
8539 ## otherwise Emacs dumps core on elf systems.
8540 LD_SWITCH_SYSTEM
="-Z"
8545 ac_link
="$ac_link $LD_SWITCH_SYSTEM"
8547 ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_RPATH,
8548 ## which has not been defined yet. When this was handled with cpp,
8549 ## it was expanded to null when configure sourced the s/*.h file.
8550 ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
8551 ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
8552 ## (or somesuch), but because it is supposed to go at the _front_
8553 ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
8554 ## Compare with the gnu-linux case below, which added to the end
8555 ## of LD_SWITCH_SYSTEM, and so can instead go at the front of
8556 ## LD_SWITCH_SYSTEM_TEMACS.
8559 LD_SWITCH_SYSTEM
="\$(LD_SWITCH_X_SITE_RPATH) $LD_SWITCH_SYSTEM" ;;
8566 ac_fn_c_check_decl
"$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
8567 if test "x$ac_cv_have_decl___ELF__" = x
""yes; then :
8571 if test "$ac_cv_have_decl___ELF__" = "yes"; then
8572 ## With ELF, make sure that all common symbols get allocated to in the
8573 ## data section. Otherwise, the dump of temacs may miss variables in
8574 ## the shared library that have been initialized. For example, with
8575 ## GNU libc, __malloc_initialized would normally be resolved to the
8576 ## shared library's .bss section, which is fatal.
8577 if test "x$GCC" = "xyes"; then
8578 C_SWITCH_MACHINE
="-fno-common"
8580 as_fn_error
"What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
8583 UNEXEC_OBJ
=unexalpha.o
8592 ## Some programs in src produce warnings saying certain subprograms
8593 ## are too complex and need a MAXMEM value greater than 2000 for
8594 ## additional optimization. --nils@exp-math.uni-essen.de
8595 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
8596 C_SWITCH_SYSTEM
="-ma -qmaxmem=4000"
8597 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
8598 ## It is redundant in glibc2, since we define _GNU_SOURCE.
8604 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
8605 aix4-2
) LIBS_SYSTEM
="-lrts -lIM -liconv" ;;
8607 freebsd|dragonfly
) LIBS_SYSTEM
="-lutil" ;;
8609 hpux
*) LIBS_SYSTEM
="-l:libdld.sl" ;;
8611 sol2
*) LIBS_SYSTEM
="-lsocket -lnsl" ;;
8613 ## Motif needs -lgen.
8614 unixware
) LIBS_SYSTEM
="-lsocket -lnsl -lelf -lgen" ;;
8619 ### Make sure subsequent tests use flags consistent with the build flags.
8621 if test x
"${OVERRIDE_CPPFLAGS}" != x
; then
8622 CPPFLAGS
="${OVERRIDE_CPPFLAGS}"
8624 CPPFLAGS
="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
8627 # Suppress obsolescent Autoconf test for size_t; Emacs assumes C89 or better.
8629 # Likewise for obsolescent test for uid_t, gid_t; Emacs assumes them.
8634 SYSTEM_TYPE
=`echo $opsys | sed -e 's/[0-9].*//' -e 's|-|/|'`
8641 ## Adding -lm confuses the dynamic linker, so omit it.
8644 freebsd | dragonfly
)
8645 SYSTEM_TYPE
=berkeley-unix
8647 gnu-linux | gnu-kfreebsd
)
8649 hpux10-20 | hpux11
)
8652 SYSTEM_TYPE
=berkeley-unix
8656 SYSTEM_TYPE
=usg-unix-v
8663 cat >>confdefs.h
<<_ACEOF
8664 #define SYSTEM_TYPE "$SYSTEM_TYPE"
8669 pre_PKG_CONFIG_CFLAGS
=$CFLAGS
8670 pre_PKG_CONFIG_LIBS
=$LIBS
8672 # Extract the first word of "pkg-config", so it can be a program name with args.
8673 set dummy pkg-config
; ac_word
=$2
8674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8675 $as_echo_n "checking for $ac_word... " >&6; }
8676 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8677 $as_echo_n "(cached) " >&6
8681 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
8684 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8688 test -z "$as_dir" && as_dir
=.
8689 for ac_exec_ext
in '' $ac_executable_extensions; do
8690 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8691 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
8692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8699 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
8703 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
8704 if test -n "$PKG_CONFIG"; then
8705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8706 $as_echo "$PKG_CONFIG" >&6; }
8708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8709 $as_echo "no" >&6; }
8717 if test "${with_sound}" != "no"; then
8718 # Sound support for GNU/Linux and the free BSDs.
8719 for ac_header
in machine
/soundcard.h sys
/soundcard.h soundcard.h
8721 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8722 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8723 eval as_val
=\$
$as_ac_Header
8724 if test "x$as_val" = x
""yes; then :
8725 cat >>confdefs.h
<<_ACEOF
8726 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8728 have_sound_header
=yes
8733 # Emulation library used on NetBSD.
8734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
8735 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
8736 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
8737 $as_echo_n "(cached) " >&6
8739 ac_check_lib_save_LIBS
=$LIBS
8740 LIBS
="-lossaudio $LIBS"
8741 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8742 /* end confdefs.h. */
8744 /* Override any GCC internal prototype to avoid an error.
8745 Use char because int might match the return type of a GCC
8746 builtin and then its argument prototype would still apply. */
8754 return _oss_ioctl ();
8759 if ac_fn_c_try_link
"$LINENO"; then :
8760 ac_cv_lib_ossaudio__oss_ioctl
=yes
8762 ac_cv_lib_ossaudio__oss_ioctl
=no
8764 rm -f core conftest.err conftest.
$ac_objext \
8765 conftest
$ac_exeext conftest.
$ac_ext
8766 LIBS
=$ac_check_lib_save_LIBS
8768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
8769 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
8770 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x
""yes; then :
8779 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
8783 if test "$PKG_CONFIG" = "no" ; then
8786 PKG_CONFIG_MIN_VERSION
=0.9.0
8787 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
8789 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
8791 if "$PKG_CONFIG" --exists "$ALSA_MODULES" 2>&5 &&
8792 ALSA_CFLAGS
=`"$PKG_CONFIG" --cflags "$ALSA_MODULES" 2>&5` &&
8793 ALSA_LIBS
=`"$PKG_CONFIG" --libs "$ALSA_MODULES" 2>&5`; then
8800 ALSA_CFLAGS
=`$as_echo "$ALSA_CFLAGS" | sed -e "$edit_cflags"`
8801 ALSA_LIBS
=`$as_echo "$ALSA_LIBS" | sed -e 's,///*,/,g'`
8802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$ALSA_CFLAGS' LIBS='$ALSA_LIBS'" >&5
8803 $as_echo "yes CFLAGS='$ALSA_CFLAGS' LIBS='$ALSA_LIBS'" >&6; }
8806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8807 $as_echo "no" >&6; }
8810 ## If we have a custom action on failure, don't print errors, but
8811 ## do set a variable so people can do so. Do it in a subshell
8812 ## to capture any diagnostics in invoking pkg-config.
8813 ALSA_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "$ALSA_MODULES") 2>&1`
8820 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8821 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8825 if test $succeeded = yes; then
8831 if test $HAVE_ALSA = yes; then
8832 SAVE_CFLAGS
="$CFLAGS"
8834 CFLAGS
="$ALSA_CFLAGS $CFLAGS"
8835 LIBS
="$ALSA_LIBS $LIBS"
8836 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8837 /* end confdefs.h. */
8838 #include <asoundlib.h>
8842 snd_lib_error_set_handler (0);
8847 if ac_fn_c_try_compile
"$LINENO"; then :
8848 emacs_alsa_normal
=yes
8850 emacs_alsa_normal
=no
8852 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8853 if test "$emacs_alsa_normal" != yes; then
8854 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8855 /* end confdefs.h. */
8856 #include <alsa/asoundlib.h>
8860 snd_lib_error_set_handler (0);
8865 if ac_fn_c_try_compile
"$LINENO"; then :
8866 emacs_alsa_subdir
=yes
8868 emacs_alsa_subdir
=no
8870 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8871 if test "$emacs_alsa_subdir" != yes; then
8872 as_fn_error
"pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
8874 ALSA_CFLAGS
="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
8877 CFLAGS
="$SAVE_CFLAGS"
8879 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
8880 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
8882 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
8886 if test x
$have_sound_header = xyes ||
test $HAVE_ALSA = yes; then
8888 gnu-linux|freebsd|netbsd
)
8890 $as_echo "#define HAVE_SOUND 1" >>confdefs.h
8902 for ac_header
in $ac_header_list
8904 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8905 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8907 eval as_val
=\$
$as_ac_Header
8908 if test "x$as_val" = x
""yes; then :
8909 cat >>confdefs.h
<<_ACEOF
8910 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
8938 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
8939 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8940 /* end confdefs.h. */
8941 #include <sys/personality.h>
8945 personality (PER_LINUX32)
8950 if ac_fn_c_try_compile
"$LINENO"; then :
8951 emacs_cv_personality_linux32
=yes
8953 emacs_cv_personality_linux32
=no
8955 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
8957 $as_echo "$emacs_cv_personality_linux32" >&6; }
8959 if test $emacs_cv_personality_linux32 = yes; then
8961 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
8965 for ac_header
in term.h
8967 ac_fn_c_check_header_preproc
"$LINENO" "term.h" "ac_cv_header_term_h"
8968 if test "x$ac_cv_header_term_h" = x
""yes; then :
8969 cat >>confdefs.h
<<_ACEOF
8970 #define HAVE_TERM_H 1
8977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8978 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8979 if test "${ac_cv_header_time+set}" = set; then :
8980 $as_echo_n "(cached) " >&6
8982 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8983 /* end confdefs.h. */
8984 #include <sys/types.h>
8985 #include <sys/time.h>
8991 if ((struct tm *) 0)
8997 if ac_fn_c_try_compile
"$LINENO"; then :
8998 ac_cv_header_time
=yes
9000 ac_cv_header_time
=no
9002 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
9005 $as_echo "$ac_cv_header_time" >&6; }
9006 if test $ac_cv_header_time = yes; then
9008 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
9012 ac_fn_c_check_decl
"$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "#include <signal.h>
9015 if test "x$ac_cv_have_decl_sys_siglist" = x
""yes; then :
9021 cat >>confdefs.h
<<_ACEOF
9022 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
9025 if test $ac_cv_have_decl_sys_siglist != yes; then
9026 # For Tru64, at least:
9027 ac_fn_c_check_decl
"$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "#include <signal.h>
9030 if test "x$ac_cv_have_decl___sys_siglist" = x
""yes; then :
9036 cat >>confdefs.h
<<_ACEOF
9037 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
9040 if test $ac_cv_have_decl___sys_siglist = yes; then
9042 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
9046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
9047 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
9048 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
9049 $as_echo_n "(cached) " >&6
9051 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9052 /* end confdefs.h. */
9053 #include <sys/types.h>
9054 #include <sys/wait.h>
9056 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
9059 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9067 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9072 if ac_fn_c_try_compile
"$LINENO"; then :
9073 ac_cv_header_sys_wait_h
=yes
9075 ac_cv_header_sys_wait_h
=no
9077 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
9080 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
9081 if test $ac_cv_header_sys_wait_h = yes; then
9083 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
9088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
9089 $as_echo_n "checking for speed_t... " >&6; }
9090 if test "${emacs_cv_speed_t+set}" = set; then :
9091 $as_echo_n "(cached) " >&6
9093 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9094 /* end confdefs.h. */
9095 #include <termios.h>
9104 if ac_fn_c_try_compile
"$LINENO"; then :
9105 emacs_cv_speed_t
=yes
9109 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
9112 $as_echo "$emacs_cv_speed_t" >&6; }
9113 if test $emacs_cv_speed_t = yes; then
9115 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
9122 for ac_header
in net
/if.h
9124 ac_fn_c_check_header_compile
"$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
9125 #if HAVE_SYS_SOCKET_H
9126 #include <sys/socket.h>
9129 if test "x$ac_cv_header_net_if_h" = x
""yes; then :
9130 cat >>confdefs.h
<<_ACEOF
9131 #define HAVE_NET_IF_H 1
9138 for ac_header
in ifaddrs.h
9140 ac_fn_c_check_header_compile
"$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default
9141 #if HAVE_SYS_SOCKET_H
9142 #include <sys/socket.h>
9145 if test "x$ac_cv_header_ifaddrs_h" = x
""yes; then :
9146 cat >>confdefs.h
<<_ACEOF
9147 #define HAVE_IFADDRS_H 1
9154 for ac_header
in net
/if_dl.h
9156 ac_fn_c_check_header_compile
"$LINENO" "net/if_dl.h" "ac_cv_header_net_if_dl_h" "$ac_includes_default
9157 #if HAVE_SYS_SOCKET_H
9158 #include <sys/socket.h>
9161 if test "x$ac_cv_header_net_if_dl_h" = x
""yes; then :
9162 cat >>confdefs.h
<<_ACEOF
9163 #define HAVE_NET_IF_DL_H 1
9171 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
9172 #if HAVE_SYS_SOCKET_H
9173 #include <sys/socket.h>
9179 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x
""yes; then :
9181 cat >>confdefs.h
<<_ACEOF
9182 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
9187 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
9188 #if HAVE_SYS_SOCKET_H
9189 #include <sys/socket.h>
9195 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x
""yes; then :
9197 cat >>confdefs.h
<<_ACEOF
9198 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
9203 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
9204 #if HAVE_SYS_SOCKET_H
9205 #include <sys/socket.h>
9211 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x
""yes; then :
9213 cat >>confdefs.h
<<_ACEOF
9214 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
9219 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
9220 #if HAVE_SYS_SOCKET_H
9221 #include <sys/socket.h>
9227 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x
""yes; then :
9229 cat >>confdefs.h
<<_ACEOF
9230 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
9235 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
9236 #if HAVE_SYS_SOCKET_H
9237 #include <sys/socket.h>
9243 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x
""yes; then :
9245 cat >>confdefs.h
<<_ACEOF
9246 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
9251 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_addr.sa_len" "ac_cv_member_struct_ifreq_ifr_addr_sa_len" "$ac_includes_default
9252 #if HAVE_SYS_SOCKET_H
9253 #include <sys/socket.h>
9259 if test "x$ac_cv_member_struct_ifreq_ifr_addr_sa_len" = x
""yes; then :
9261 cat >>confdefs.h
<<_ACEOF
9262 #define HAVE_STRUCT_IFREQ_IFR_ADDR_SA_LEN 1
9274 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
9275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
9276 $as_echo_n "checking whether we are using GNU Make... " >&6; }
9278 testval
=`${MAKE-make} --version 2>/dev/null | grep 'GNU Make'`
9279 if test "x$testval" != x
; then
9282 ac_enable_autodepend
=no
9284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
9285 $as_echo "$HAVE_GNU_MAKE" >&6; }
9286 if test $HAVE_GNU_MAKE = yes; then
9287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
9288 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
9289 SAVE_CFLAGS
="$CFLAGS"
9290 CFLAGS
="$CFLAGS -MMD -MF deps.d -MP"
9291 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9292 /* end confdefs.h. */
9302 if ac_fn_c_try_compile
"$LINENO"; then :
9305 ac_enable_autodepend
=no
9307 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9308 CFLAGS
="$SAVE_CFLAGS"
9309 test -f deps.d || ac_enable_autodepend
=no
9311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
9312 $as_echo "$ac_enable_autodepend" >&6; }
9314 if test $ac_enable_autodepend = yes; then
9315 DEPFLAGS
='-MMD -MF ${DEPDIR}/$*.d -MP'
9316 ## MKDIR_P is documented (see AC_PROG_MKDIR_P) to be parallel-safe.
9317 MKDEPDIR
='${MKDIR_P} ${DEPDIR}'
9318 deps_frag
=autodeps.mk
9321 deps_frag
=$srcdir/src
/$deps_frag
9327 lisp_frag
=$srcdir/src
/lisp.mk
9331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
9332 $as_echo_n "checking for long file names... " >&6; }
9333 if test "${ac_cv_sys_long_file_names+set}" = set; then :
9334 $as_echo_n "(cached) " >&6
9336 ac_cv_sys_long_file_names
=yes
9337 # Test for long file names in all the places we know might matter:
9338 # . the current directory, where building will happen
9339 # $prefix/lib where we will be installing things
9340 # $exec_prefix/lib likewise
9341 # $TMPDIR if set, where it might want to write temporary files
9342 # /tmp where it might want to write temporary files
9345 for ac_dir
in .
"$TMPDIR" /tmp
/var
/tmp
/usr
/tmp
"$prefix/lib" "$exec_prefix/lib"; do
9346 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9347 # in the usual case where exec_prefix is '${prefix}'.
9349 . |
/* | ?
:[\\/]*) ;; #(
9352 test -w "$ac_dir/." ||
continue # It is less confusing to not echo anything here.
9353 ac_xdir
=$ac_dir/cf$$
9354 (umask 077 && mkdir
"$ac_xdir" 2>/dev
/null
) ||
continue
9355 ac_tf1
=$ac_xdir/conftest9012345
9356 ac_tf2
=$ac_xdir/conftest9012346
9357 touch "$ac_tf1" 2>/dev
/null
&& test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9358 ac_cv_sys_long_file_names
=no
9359 rm -f -r "$ac_xdir" 2>/dev
/null
9360 test $ac_cv_sys_long_file_names = no
&& break
9363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
9364 $as_echo "$ac_cv_sys_long_file_names" >&6; }
9365 if test $ac_cv_sys_long_file_names = yes; then
9367 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
9372 #### Choose a window system.
9374 ## We leave window_system equal to none if
9375 ## we end up building without one. Any new window system should
9376 ## set window_system to an appropriate value and add objects to
9377 ## window-system-specific substs.
9380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
9381 $as_echo_n "checking for X... " >&6; }
9384 # Check whether --with-x was given.
9385 if test "${with_x+set}" = set; then :
9389 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9390 if test "x$with_x" = xno
; then
9391 # The user explicitly disabled X.
9394 case $x_includes,$x_libraries in #(
9395 *\'*) as_fn_error
"cannot use X directory names containing '" "$LINENO" 5;; #(
9396 *,NONE | NONE
,*) if test "${ac_cv_have_x+set}" = set; then :
9397 $as_echo_n "(cached) " >&6
9399 # One or both of the vars are not set, and there is no cached value.
9400 ac_x_includes
=no ac_x_libraries
=no
9401 rm -f -r conftest.dir
9402 if mkdir conftest.dir
; then
9404 cat >Imakefile
<<'_ACEOF'
9406 @echo incroot='${INCROOT}'
9408 @echo usrlibdir='${USRLIBDIR}'
9410 @echo libdir='${LIBDIR}'
9412 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
9413 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9414 for ac_var
in incroot usrlibdir libdir
; do
9415 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9417 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9418 for ac_extension
in a so sl dylib la dll
; do
9419 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9420 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9421 ac_im_usrlibdir
=$ac_im_libdir; break
9424 # Screen out bogus values from the imake configuration. They are
9425 # bogus both because they are the default anyway, and because
9426 # using them would break gcc on systems where it needs fixed includes.
9427 case $ac_im_incroot in
9428 /usr
/include
) ac_x_includes
= ;;
9429 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
9431 case $ac_im_usrlibdir in
9432 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
9433 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
9437 rm -f -r conftest.dir
9440 # Standard set of common directories for X headers.
9441 # Check X11 before X11Rn because it is often a symlink to the current release.
9455 /usr/local/X11/include
9456 /usr/local/X11R7/include
9457 /usr/local/X11R6/include
9458 /usr/local/X11R5/include
9459 /usr/local/X11R4/include
9461 /usr/local/include/X11
9462 /usr/local/include/X11R7
9463 /usr/local/include/X11R6
9464 /usr/local/include/X11R5
9465 /usr/local/include/X11R4
9469 /usr/XFree86/include/X11
9473 /usr/unsupported/include
9475 /usr/local/x11r5/include
9476 /usr/lpp/Xamples/include
9478 /usr/openwin/include
9479 /usr/openwin/share/include'
9481 if test "$ac_x_includes" = no
; then
9482 # Guess where to find include files, by looking for Xlib.h.
9483 # First, try using that file with no special directory specified.
9484 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9485 /* end confdefs.h. */
9486 #include <X11/Xlib.h>
9488 if ac_fn_c_try_cpp
"$LINENO"; then :
9489 # We can compile using X headers with no special include directory.
9492 for ac_dir
in $ac_x_header_dirs; do
9493 if test -r "$ac_dir/X11/Xlib.h"; then
9494 ac_x_includes
=$ac_dir
9499 rm -f conftest.err conftest.
$ac_ext
9500 fi # $ac_x_includes = no
9502 if test "$ac_x_libraries" = no
; then
9503 # Check for the libraries.
9504 # See if we find them without any special options.
9505 # Don't add to $LIBS permanently.
9508 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9509 /* end confdefs.h. */
9510 #include <X11/Xlib.h>
9519 if ac_fn_c_try_link
"$LINENO"; then :
9521 # We can link X programs with no special library path.
9525 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9527 # Don't even attempt the hair of trying to link an X program!
9528 for ac_extension
in a so sl dylib la dll
; do
9529 if test -r "$ac_dir/libX11.$ac_extension"; then
9530 ac_x_libraries
=$ac_dir
9536 rm -f core conftest.err conftest.
$ac_objext \
9537 conftest
$ac_exeext conftest.
$ac_ext
9538 fi # $ac_x_libraries = no
9540 case $ac_x_includes,$ac_x_libraries in #(
9542 # Didn't find X, or a directory has "'" in its name.
9543 ac_cv_have_x
="have_x=no";; #(
9545 # Record where we found X for the cache.
9546 ac_cv_have_x
="have_x=yes\
9547 ac_x_includes='$ac_x_includes'\
9548 ac_x_libraries='$ac_x_libraries'"
9554 eval "$ac_cv_have_x"
9557 if test "$have_x" != yes; then
9558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
9559 $as_echo "$have_x" >&6; }
9562 # If each of the values was on the command line, it overrides each guess.
9563 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
9564 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
9565 # Update the cache value to reflect the command line values.
9566 ac_cv_have_x
="have_x=yes\
9567 ac_x_includes='$x_includes'\
9568 ac_x_libraries='$x_libraries'"
9569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
9570 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
9573 if test "$no_x" != yes; then
9577 LD_SWITCH_X_SITE_RPATH
=
9578 if test "${x_libraries}" != NONE
; then
9579 if test -n "${x_libraries}"; then
9580 LD_SWITCH_X_SITE
=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9581 LD_SWITCH_X_SITE_RPATH
=-Wl,-rpath,`echo ${x_libraries} | sed -e "s/:/ -Wl,-rpath,/g"`
9583 x_default_search_path
=""
9584 x_search_path
=${x_libraries}
9585 if test -z "${x_search_path}"; then
9586 x_search_path
=/usr
/lib
9588 for x_library
in `echo ${x_search_path}: | \
9589 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9591 ${x_library}/X11/%L/%T/%N%C%S:\
9592 ${x_library}/X11/%l/%T/%N%C%S:\
9593 ${x_library}/X11/%T/%N%C%S:\
9594 ${x_library}/X11/%L/%T/%N%S:\
9595 ${x_library}/X11/%l/%T/%N%S:\
9596 ${x_library}/X11/%T/%N%S"
9597 if test x
"${x_default_search_path}" = x
; then
9598 x_default_search_path
=${x_search_path}
9600 x_default_search_path
="${x_search_path}:${x_default_search_path}"
9606 if test "${x_includes}" != NONE
&& test -n "${x_includes}"; then
9607 C_SWITCH_X_SITE
="$isystem"`echo ${x_includes} | sed -e "s/:/ $isystem/g"`
9610 if test x
"${x_includes}" = x
; then
9611 bitmapdir
=/usr
/include
/X11
/bitmaps
9613 # accumulate include directories that have X11 bitmap subdirectories
9615 for bmd
in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9616 if test -d "${bmd}/X11/bitmaps"; then
9617 bmd_acc
="${bmd_acc}:${bmd}/X11/bitmaps"
9619 if test -d "${bmd}/bitmaps"; then
9620 bmd_acc
="${bmd_acc}:${bmd}/bitmaps"
9623 if test ${bmd_acc} != "dummyval"; then
9624 bitmapdir
=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9631 tmp_CPPFLAGS
="$CPPFLAGS"
9632 tmp_CFLAGS
="$CFLAGS"
9633 CPPFLAGS
="$CPPFLAGS -x objective-c"
9634 CFLAGS
="$CFLAGS -x objective-c"
9637 if test "${with_ns}" != no
; then
9638 if test "${opsys}" = darwin
; then
9640 ns_appdir
=`pwd`/nextstep
/Emacs.app
9641 ns_appbindir
=${ns_appdir}/Contents
/MacOS
9642 ns_appresdir
=${ns_appdir}/Contents
/Resources
9643 ns_appsrc
=Cocoa
/Emacs.base
9644 elif test -f $GNUSTEP_CONFIG_FILE; then
9646 ns_appdir
=`pwd`/nextstep
/Emacs.app
9647 ns_appbindir
=${ns_appdir}
9648 ns_appresdir
=${ns_appdir}/Resources
9649 ns_appsrc
=GNUstep
/Emacs.base
9650 GNUSTEP_SYSTEM_HEADERS
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9651 GNUSTEP_SYSTEM_LIBRARIES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9652 GNUSTEP_LOCAL_HEADERS
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
9653 GNUSTEP_LOCAL_LIBRARIES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
9654 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
9655 GNUSTEP_LOCAL_HEADERS
="-I${GNUSTEP_LOCAL_HEADERS}"
9656 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
9657 GNUSTEP_LOCAL_LIBRARIES
="-L${GNUSTEP_LOCAL_LIBRARIES}"
9658 CPPFLAGS
="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9659 CFLAGS
="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9660 LDFLAGS
="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
9661 LIBS_GNUSTEP
="-lgnustep-gui -lgnustep-base -lobjc -lpthread"
9662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS" >&5
9663 $as_echo_n "checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS... " >&6; }
9664 if test "${emacs_cv_objc_exceptions+set}" = set; then :
9665 $as_echo_n "(cached) " >&6
9667 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9668 /* end confdefs.h. */
9669 #include <GNUstepBase/GSConfig.h>
9673 #if defined BASE_NATIVE_OBJC_EXCEPTIONS && BASE_NATIVE_OBJC_EXCEPTIONS > 0
9682 if ac_fn_c_try_compile
"$LINENO"; then :
9683 emacs_cv_objc_exceptions
=yes
9685 emacs_cv_objc_exceptions
=no
9687 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_objc_exceptions" >&5
9690 $as_echo "$emacs_cv_objc_exceptions" >&6; }
9691 if test $emacs_cv_objc_exceptions = yes; then
9693 $as_echo "#define _NATIVE_OBJC_EXCEPTIONS 1" >>confdefs.h
9695 GNU_OBJC_CFLAGS
="-fobjc-exceptions"
9699 CFLAGS
="$CFLAGS $GNU_OBJC_CFLAGS"
9701 ac_fn_c_check_header_mongrel
"$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
9702 if test "x$ac_cv_header_AppKit_AppKit_h" = x
""yes; then :
9705 as_fn_error
"\`--with-ns' was specified, but the include
9706 files are missing or cannot be compiled." "$LINENO" 5
9711 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9712 /* end confdefs.h. */
9713 #include <AppKit/AppKit.h>
9718 #ifdef MAC_OS_X_VERSION_MAX_ALLOWED
9719 #if MAC_OS_X_VERSION_MAX_ALLOWED >= 1040
9722 #error "OSX 10.4 or newer required"
9730 if ac_fn_c_try_compile
"$LINENO"; then :
9735 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9736 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9737 /* end confdefs.h. */
9738 #include <Foundation/NSObjCRuntime.h>
9747 if ac_fn_c_try_compile
"$LINENO"; then :
9748 ns_have_nsinteger
=yes
9750 ns_have_nsinteger
=no
9752 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9753 if test $ns_osx_have_104 = no
; then
9754 as_fn_error
"\`OSX 10.4 or newer is required'" "$LINENO" 5;
9756 if test $ns_have_nsinteger = yes; then
9758 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
9765 INSTALL_ARCH_INDEP_EXTRA
=install-etc
9766 ns_self_contained
=no
9769 if test "${HAVE_NS}" = yes; then
9770 if test "$with_toolkit_scroll_bars" = "no"; then
9771 as_fn_error
"Non-toolkit scroll bars are not implemented for Nextstep." "$LINENO" 5
9774 window_system
=nextstep
9775 # set up packaging dirs
9776 if test "${EN_NS_SELF_CONTAINED}" = yes; then
9777 ns_self_contained
=yes
9778 prefix
=${ns_appresdir}
9779 exec_prefix
=${ns_appbindir}
9780 libexecdir
="\${ns_appbindir}/libexec"
9781 archlibdir
="\${ns_appbindir}/libexec"
9782 docdir
="\${ns_appresdir}/etc"
9783 etcdir
="\${ns_appresdir}/etc"
9784 infodir
="\${ns_appresdir}/info"
9785 mandir
="\${ns_appresdir}/man"
9786 lispdir
="\${ns_appresdir}/lisp"
9787 leimdir
="\${ns_appresdir}/leim"
9788 INSTALL_ARCH_INDEP_EXTRA
=
9790 NS_OBJC_OBJ
="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o"
9792 CFLAGS
="$tmp_CFLAGS"
9793 CPPFLAGS
="$tmp_CPPFLAGS"
9804 if test "${with_w32}" != no
; then
9805 if test "${opsys}" != "cygwin"; then
9806 as_fn_error
"Using w32 with an autotools build is only supported for Cygwin." "$LINENO" 5
9808 ac_fn_c_check_header_mongrel
"$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
9809 if test "x$ac_cv_header_windows_h" = x
""yes; then :
9812 as_fn_error
"\`--with-w32' was specified, but windows.h
9813 cannot be found." "$LINENO" 5
9818 $as_echo "#define HAVE_NTGUI 1" >>confdefs.h
9820 if test -n "$ac_tool_prefix"; then
9821 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
9822 set dummy
${ac_tool_prefix}windres
; ac_word
=$2
9823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9824 $as_echo_n "checking for $ac_word... " >&6; }
9825 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9826 $as_echo_n "(cached) " >&6
9828 if test -n "$WINDRES"; then
9829 ac_cv_prog_WINDRES
="$WINDRES" # Let the user override the test.
9831 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9835 test -z "$as_dir" && as_dir
=.
9836 for ac_exec_ext
in '' $ac_executable_extensions; do
9837 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9838 ac_cv_prog_WINDRES
="${ac_tool_prefix}windres"
9839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9848 WINDRES
=$ac_cv_prog_WINDRES
9849 if test -n "$WINDRES"; then
9850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9851 $as_echo "$WINDRES" >&6; }
9853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9854 $as_echo "no" >&6; }
9859 if test -z "$ac_cv_prog_WINDRES"; then
9860 ac_ct_WINDRES
=$WINDRES
9861 # Extract the first word of "windres", so it can be a program name with args.
9862 set dummy windres
; ac_word
=$2
9863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9864 $as_echo_n "checking for $ac_word... " >&6; }
9865 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then :
9866 $as_echo_n "(cached) " >&6
9868 if test -n "$ac_ct_WINDRES"; then
9869 ac_cv_prog_ac_ct_WINDRES
="$ac_ct_WINDRES" # Let the user override the test.
9871 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9875 test -z "$as_dir" && as_dir
=.
9876 for ac_exec_ext
in '' $ac_executable_extensions; do
9877 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9878 ac_cv_prog_ac_ct_WINDRES
="windres"
9879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9888 ac_ct_WINDRES
=$ac_cv_prog_ac_ct_WINDRES
9889 if test -n "$ac_ct_WINDRES"; then
9890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
9891 $as_echo "$ac_ct_WINDRES" >&6; }
9893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9894 $as_echo "no" >&6; }
9897 if test "x$ac_ct_WINDRES" = x
; then
9898 WINDRES
="as_fn_error "No resource compiler found.
" "$LINENO" 5"
9900 case $cross_compiling:$ac_tool_warned in
9902 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9903 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9904 ac_tool_warned
=yes ;;
9906 WINDRES
=$ac_ct_WINDRES
9909 WINDRES
="$ac_cv_prog_WINDRES"
9912 W32_OBJ
="w32fns.o w32menu.o w32reg.o w32font.o w32term.o"
9913 W32_OBJ
="$W32_OBJ w32xfns.o w32select.o w32uniscribe.o"
9914 W32_LIBS
="$W32_LIBS -lkernel32 -luser32 -lgdi32 -lole32 -lcomdlg32"
9915 W32_LIBS
="$W32_LIBS -lusp10 -lcomctl32 -lwinspool"
9917 # Tell the linker that emacs.res is an object (which we compile from
9918 # the rc file), not a linker script.
9919 W32_RES_LINK
="-Wl,emacs.res"
9926 if test "${HAVE_W32}" = "yes"; then
9931 ## $window_system is now set to the window system we will
9939 case "${window_system}" in
9944 case "${with_x_toolkit}" in
9945 athena | lucid
) USE_X_TOOLKIT
=LUCID
;;
9946 motif
) USE_X_TOOLKIT
=MOTIF
;;
9948 term_header
=gtkutil.h
9949 USE_X_TOOLKIT
=none
;;
9950 gtk2
) with_gtk2
=yes
9951 term_header
=gtkutil.h
9952 USE_X_TOOLKIT
=none
;;
9953 gtk3
) with_gtk3
=yes
9954 term_header
=gtkutil.h
9955 USE_X_TOOLKIT
=none
;;
9956 no
) USE_X_TOOLKIT
=none
;;
9957 * ) USE_X_TOOLKIT
=maybe
;;
9961 term_header
=nsterm.h
9964 term_header
=w32term.h
9968 if test "$window_system" = none
&& test "X$with_x" != "Xno"; then
9969 # Extract the first word of "X", so it can be a program name with args.
9970 set dummy X
; ac_word
=$2
9971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9972 $as_echo_n "checking for $ac_word... " >&6; }
9973 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then :
9974 $as_echo_n "(cached) " >&6
9976 if test -n "$HAVE_XSERVER"; then
9977 ac_cv_prog_HAVE_XSERVER
="$HAVE_XSERVER" # Let the user override the test.
9979 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9983 test -z "$as_dir" && as_dir
=.
9984 for ac_exec_ext
in '' $ac_executable_extensions; do
9985 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9986 ac_cv_prog_HAVE_XSERVER
="true"
9987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9994 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER
="false"
9997 HAVE_XSERVER
=$ac_cv_prog_HAVE_XSERVER
9998 if test -n "$HAVE_XSERVER"; then
9999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
10000 $as_echo "$HAVE_XSERVER" >&6; }
10002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10003 $as_echo "no" >&6; }
10007 if test "$HAVE_XSERVER" = true ||
10008 test -n "$DISPLAY" ||
10009 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
10010 as_fn_error
"You seem to be running X, but no X development libraries
10011 were found. You should install the relevant development files for X
10012 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
10013 sure you have development files for image handling, i.e.
10014 tiff, gif, jpeg, png and xpm.
10015 If you are sure you want Emacs compiled without X window support, pass
10017 to configure." "$LINENO" 5
10021 ### If we're using X11, we should use the X menu package.
10023 case ${HAVE_X11} in
10024 yes ) HAVE_MENUS
=yes ;;
10027 # Does the opsystem file prohibit the use of the GNU malloc?
10028 # Assume not, until told otherwise.
10031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc is Doug Lea style" >&5
10032 $as_echo_n "checking whether malloc is Doug Lea style... " >&6; }
10033 if test "${emacs_cv_var_doug_lea_malloc+set}" = set; then :
10034 $as_echo_n "(cached) " >&6
10036 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10037 /* end confdefs.h. */
10038 #include <malloc.h>
10039 static void hook (void) {}
10043 malloc_set_state (malloc_get_state ());
10044 __after_morecore_hook = hook;
10045 __malloc_initialize_hook = hook;
10050 if ac_fn_c_try_link
"$LINENO"; then :
10051 emacs_cv_var_doug_lea_malloc
=yes
10053 emacs_cv_var_doug_lea_malloc
=no
10055 rm -f core conftest.err conftest.
$ac_objext \
10056 conftest
$ac_exeext conftest.
$ac_ext
10058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var_doug_lea_malloc" >&5
10059 $as_echo "$emacs_cv_var_doug_lea_malloc" >&6; }
10060 doug_lea_malloc
=$emacs_cv_var_doug_lea_malloc
10065 ## darwin ld insists on the use of malloc routines in the System framework.
10066 darwin|sol2-10
) system_malloc
=yes ;;
10069 if test "${system_malloc}" = "yes"; then
10071 $as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
10074 GNU_MALLOC_reason
="
10075 (The GNU allocators don't work with this system configuration.)"
10079 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ
=gmalloc.o
10080 VMLIMIT_OBJ
=vm-limit.o
10082 for ac_header
in sys
/vlimit.h
10084 ac_fn_c_check_header_mongrel
"$LINENO" "sys/vlimit.h" "ac_cv_header_sys_vlimit_h" "$ac_includes_default"
10085 if test "x$ac_cv_header_sys_vlimit_h" = x
""yes; then :
10086 cat >>confdefs.h
<<_ACEOF
10087 #define HAVE_SYS_VLIMIT_H 1
10094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for data_start" >&5
10095 $as_echo_n "checking for data_start... " >&6; }
10096 if test "${emacs_cv_data_start+set}" = set; then :
10097 $as_echo_n "(cached) " >&6
10099 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10100 /* end confdefs.h. */
10101 extern char data_start[]; char ch;
10105 return data_start < &ch;
10110 if ac_fn_c_try_link
"$LINENO"; then :
10111 emacs_cv_data_start
=yes
10113 emacs_cv_data_start
=no
10115 rm -f core conftest.err conftest.
$ac_objext \
10116 conftest
$ac_exeext conftest.
$ac_ext
10118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_data_start" >&5
10119 $as_echo "$emacs_cv_data_start" >&6; }
10120 if test $emacs_cv_data_start = yes; then
10122 $as_echo "#define HAVE_DATA_START 1" >>confdefs.h
10129 if test "$doug_lea_malloc" = "yes" ; then
10130 if test "$GNU_MALLOC" = yes ; then
10131 GNU_MALLOC_reason
="
10132 (Using Doug Lea's new malloc from the GNU C Library.)"
10135 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
10138 ## Use mmap directly for allocating larger buffers.
10139 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
10140 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
10141 ## Does the AC_FUNC_MMAP test below make this check unnecessary?
10143 gnu
*) REL_ALLOC
=no
;;
10147 if test x
"${REL_ALLOC}" = x
; then
10148 REL_ALLOC
=${GNU_MALLOC}
10151 use_mmap_for_buffers
=no
10153 cygwin|freebsd|irix6-5
) use_mmap_for_buffers
=yes ;;
10163 for ac_func
in getpagesize
10165 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
10166 if test "x$ac_cv_func_getpagesize" = x
""yes; then :
10167 cat >>confdefs.h
<<_ACEOF
10168 #define HAVE_GETPAGESIZE 1
10174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
10175 $as_echo_n "checking for working mmap... " >&6; }
10176 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
10177 $as_echo_n "(cached) " >&6
10179 if test "$cross_compiling" = yes; then :
10180 ac_cv_func_mmap_fixed_mapped
=no
10182 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10183 /* end confdefs.h. */
10184 $ac_includes_default
10185 /* malloc might have been renamed as rpl_malloc. */
10188 /* Thanks to Mike Haertel and Jim Avera for this test.
10189 Here is a matrix of mmap possibilities:
10190 mmap private not fixed
10191 mmap private fixed at somewhere currently unmapped
10192 mmap private fixed at somewhere already mapped
10193 mmap shared not fixed
10194 mmap shared fixed at somewhere currently unmapped
10195 mmap shared fixed at somewhere already mapped
10196 For private mappings, we should verify that changes cannot be read()
10197 back from the file, nor mmap's back from the file at a different
10198 address. (There have been systems where private was not correctly
10199 implemented like the infamous i386 svr4.0, and systems where the
10200 VM page cache was not coherent with the file system buffer cache
10201 like early versions of FreeBSD and possibly contemporary NetBSD.)
10202 For shared mappings, we should conversely verify that changes get
10203 propagated back to all the places they're supposed to be.
10205 Grep wants private fixed already mapped.
10206 The main things grep needs to know about mmap are:
10207 * does it exist and is it safe to write into the mmap'd area
10208 * how to use it (BSD variants) */
10211 #include <sys/mman.h>
10213 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10217 /* This mess was copied from the GNU getpagesize.h. */
10218 #ifndef HAVE_GETPAGESIZE
10219 # ifdef _SC_PAGESIZE
10220 # define getpagesize() sysconf(_SC_PAGESIZE)
10221 # else /* no _SC_PAGESIZE */
10222 # ifdef HAVE_SYS_PARAM_H
10223 # include <sys/param.h>
10224 # ifdef EXEC_PAGESIZE
10225 # define getpagesize() EXEC_PAGESIZE
10226 # else /* no EXEC_PAGESIZE */
10228 # define getpagesize() NBPG * CLSIZE
10231 # endif /* no CLSIZE */
10232 # else /* no NBPG */
10234 # define getpagesize() NBPC
10235 # else /* no NBPC */
10237 # define getpagesize() PAGESIZE
10238 # endif /* PAGESIZE */
10239 # endif /* no NBPC */
10240 # endif /* no NBPG */
10241 # endif /* no EXEC_PAGESIZE */
10242 # else /* no HAVE_SYS_PARAM_H */
10243 # define getpagesize() 8192 /* punt totally */
10244 # endif /* no HAVE_SYS_PARAM_H */
10245 # endif /* no _SC_PAGESIZE */
10247 #endif /* no HAVE_GETPAGESIZE */
10252 char *data, *data2, *data3;
10253 const char *cdata2;
10257 pagesize = getpagesize ();
10259 /* First, make a file with some known garbage in it. */
10260 data = (char *) malloc (pagesize);
10263 for (i = 0; i < pagesize; ++i)
10264 *(data + i) = rand ();
10266 fd = creat ("conftest.mmap", 0600);
10269 if (write (fd, data, pagesize) != pagesize)
10273 /* Next, check that the tail of a page is zero-filled. File must have
10274 non-zero length, otherwise we risk SIGBUS for entire page. */
10275 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
10279 if (write (fd2, cdata2, 1) != 1)
10281 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
10282 if (data2 == MAP_FAILED)
10284 for (i = 0; i < pagesize; ++i)
10288 if (munmap (data2, pagesize))
10291 /* Next, try to mmap the file at a fixed address which already has
10292 something else allocated at it. If we can, also make sure that
10293 we see the same garbage. */
10294 fd = open ("conftest.mmap", O_RDWR);
10297 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10298 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10300 for (i = 0; i < pagesize; ++i)
10301 if (*(data + i) != *(data2 + i))
10304 /* Finally, make sure that changes to the mapped area do not
10305 percolate back to the file as seen by read(). (This is a bug on
10306 some variants of i386 svr4.0.) */
10307 for (i = 0; i < pagesize; ++i)
10308 *(data2 + i) = *(data2 + i) + 1;
10309 data3 = (char *) malloc (pagesize);
10312 if (read (fd, data3, pagesize) != pagesize)
10314 for (i = 0; i < pagesize; ++i)
10315 if (*(data + i) != *(data3 + i))
10321 if ac_fn_c_try_run
"$LINENO"; then :
10322 ac_cv_func_mmap_fixed_mapped
=yes
10324 ac_cv_func_mmap_fixed_mapped
=no
10326 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10327 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
10332 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
10333 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10335 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
10338 rm -f conftest.mmap conftest.txt
10340 if test $use_mmap_for_buffers = yes; then
10342 $as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
10347 LIBS
="$LIBS_SYSTEM $LIBS"
10349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
10350 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
10351 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
10352 $as_echo_n "(cached) " >&6
10354 ac_check_lib_save_LIBS
=$LIBS
10355 LIBS
="-ldnet $LIBS"
10356 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10357 /* end confdefs.h. */
10359 /* Override any GCC internal prototype to avoid an error.
10360 Use char because int might match the return type of a GCC
10361 builtin and then its argument prototype would still apply. */
10369 return dnet_ntoa ();
10374 if ac_fn_c_try_link
"$LINENO"; then :
10375 ac_cv_lib_dnet_dnet_ntoa
=yes
10377 ac_cv_lib_dnet_dnet_ntoa
=no
10379 rm -f core conftest.err conftest.
$ac_objext \
10380 conftest
$ac_exeext conftest.
$ac_ext
10381 LIBS
=$ac_check_lib_save_LIBS
10383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10384 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10385 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x
""yes; then :
10386 cat >>confdefs.h
<<_ACEOF
10387 #define HAVE_LIBDNET 1
10390 LIBS
="-ldnet $LIBS"
10395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
10396 $as_echo_n "checking for main in -lXbsd... " >&6; }
10397 if test "${ac_cv_lib_Xbsd_main+set}" = set; then :
10398 $as_echo_n "(cached) " >&6
10400 ac_check_lib_save_LIBS
=$LIBS
10401 LIBS
="-lXbsd $LIBS"
10402 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10403 /* end confdefs.h. */
10414 if ac_fn_c_try_link
"$LINENO"; then :
10415 ac_cv_lib_Xbsd_main
=yes
10417 ac_cv_lib_Xbsd_main
=no
10419 rm -f core conftest.err conftest.
$ac_objext \
10420 conftest
$ac_exeext conftest.
$ac_ext
10421 LIBS
=$ac_check_lib_save_LIBS
10423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
10424 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
10425 if test "x$ac_cv_lib_Xbsd_main" = x
""yes; then :
10426 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -lXbsd"
10434 if test "$ac_cv_header_pthread_h"; then
10435 if test "$GMALLOC_OBJ" = gmalloc.o
; then
10436 emacs_pthread_function
=pthread_atfork
10438 emacs_pthread_function
=pthread_self
10440 as_ac_Lib
=`$as_echo "ac_cv_lib_pthread_$emacs_pthread_function" | $as_tr_sh`
10441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $emacs_pthread_function in -lpthread" >&5
10442 $as_echo_n "checking for $emacs_pthread_function in -lpthread... " >&6; }
10443 if { as_var
=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
10444 $as_echo_n "(cached) " >&6
10446 ac_check_lib_save_LIBS
=$LIBS
10447 LIBS
="-lpthread $LIBS"
10448 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10449 /* end confdefs.h. */
10451 /* Override any GCC internal prototype to avoid an error.
10452 Use char because int might match the return type of a GCC
10453 builtin and then its argument prototype would still apply. */
10457 char $emacs_pthread_function ();
10461 return $emacs_pthread_function ();
10466 if ac_fn_c_try_link
"$LINENO"; then :
10467 eval "$as_ac_Lib=yes"
10469 eval "$as_ac_Lib=no"
10471 rm -f core conftest.err conftest.
$ac_objext \
10472 conftest
$ac_exeext conftest.
$ac_ext
10473 LIBS
=$ac_check_lib_save_LIBS
10475 eval ac_res
=\$
$as_ac_Lib
10476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10477 $as_echo "$ac_res" >&6; }
10478 eval as_val
=\$
$as_ac_Lib
10479 if test "x$as_val" = x
""yes; then :
10484 if test "$HAVE_PTHREAD" = yes; then
10485 case "${canonical}" in
10487 *) LIB_PTHREAD
="-lpthread"
10488 LIBS
="$LIB_PTHREAD $LIBS" ;;
10491 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
10496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
10497 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
10498 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then :
10499 $as_echo_n "(cached) " >&6
10501 ac_check_lib_save_LIBS
=$LIBS
10502 LIBS
="-lpthreads $LIBS"
10503 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10504 /* end confdefs.h. */
10506 /* Override any GCC internal prototype to avoid an error.
10507 Use char because int might match the return type of a GCC
10508 builtin and then its argument prototype would still apply. */
10516 return cma_open ();
10521 if ac_fn_c_try_link
"$LINENO"; then :
10522 ac_cv_lib_pthreads_cma_open
=yes
10524 ac_cv_lib_pthreads_cma_open
=no
10526 rm -f core conftest.err conftest.
$ac_objext \
10527 conftest
$ac_exeext conftest.
$ac_ext
10528 LIBS
=$ac_check_lib_save_LIBS
10530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
10531 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
10532 if test "x$ac_cv_lib_pthreads_cma_open" = x
""yes; then :
10533 cat >>confdefs.h
<<_ACEOF
10534 #define HAVE_LIBPTHREADS 1
10537 LIBS
="-lpthreads $LIBS"
10542 ## Note: when using cpp in s/aix4.2.h, this definition depended on
10543 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
10544 ## the system file was sourced. Hence the value of LIBS_SYSTEM
10545 ## added to LIBS in configure would never contain the pthreads part,
10546 ## but the value used in Makefiles might. FIXME?
10548 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
10549 ## be harmless on older versions of X where it happens to exist.
10550 test "$opsys" = "aix4-2" && \
10551 test $ac_cv_lib_pthreads_cma_open = yes && \
10552 LIBS_SYSTEM
="$LIBS_SYSTEM -lpthreads"
10557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
10558 $as_echo_n "checking for -bbigtoc option... " >&6; }
10559 if test "${gdb_cv_bigtoc+set}" = set; then :
10560 $as_echo_n "(cached) " >&6
10564 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
10565 *) gdb_cv_bigtoc
=-bbigtoc ;;
10568 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
10569 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10570 /* end confdefs.h. */
10580 if ac_fn_c_try_link
"$LINENO"; then :
10585 rm -f core conftest.err conftest.
$ac_objext \
10586 conftest
$ac_exeext conftest.
$ac_ext
10589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
10590 $as_echo "$gdb_cv_bigtoc" >&6; }
10594 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10595 # used for the tests that follow. We set them back to REAL_CFLAGS and
10596 # REAL_CPPFLAGS later on.
10598 REAL_CFLAGS
="$CFLAGS"
10599 REAL_CPPFLAGS
="$CPPFLAGS"
10601 if test "${HAVE_X11}" = "yes"; then
10602 DEFS
="$C_SWITCH_X_SITE $DEFS"
10603 LDFLAGS
="$LDFLAGS $LD_SWITCH_X_SITE"
10605 CFLAGS
="$C_SWITCH_X_SITE $CFLAGS"
10606 CPPFLAGS
="$C_SWITCH_X_SITE $CPPFLAGS"
10608 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10609 # This is handled by LD_SWITCH_X_SITE_RPATH during the real build,
10610 # but it's more convenient here to set LD_RUN_PATH since this
10611 # also works on hosts that don't understand LD_SWITCH_X_SITE_RPATH.
10612 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
10613 LD_RUN_PATH
=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10617 if test "${opsys}" = "gnu-linux"; then
10618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
10619 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
10620 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10621 /* end confdefs.h. */
10626 XOpenDisplay ("foo");
10631 if ac_fn_c_try_link
"$LINENO"; then :
10632 xgnu_linux_first_failure
=no
10634 xgnu_linux_first_failure
=yes
10636 rm -f core conftest.err conftest.
$ac_objext \
10637 conftest
$ac_exeext conftest.
$ac_ext
10638 if test "${xgnu_linux_first_failure}" = "yes"; then
10639 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
10640 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
10641 OLD_CPPFLAGS
="$CPPFLAGS"
10643 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
10644 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
10645 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
10646 LIBS
="$LIBS -b i486-linuxaout"
10647 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10648 /* end confdefs.h. */
10653 XOpenDisplay ("foo");
10658 if ac_fn_c_try_link
"$LINENO"; then :
10659 xgnu_linux_second_failure
=no
10661 xgnu_linux_second_failure
=yes
10663 rm -f core conftest.err conftest.
$ac_objext \
10664 conftest
$ac_exeext conftest.
$ac_ext
10665 if test "${xgnu_linux_second_failure}" = "yes"; then
10666 # If we get the same failure with -b, there is no use adding -b.
10667 # So take it out. This plays safe.
10668 LD_SWITCH_X_SITE
="$OLD_LD_SWITCH_X_SITE"
10669 C_SWITCH_X_SITE
="$OLD_C_SWITCH_X_SITE"
10670 CPPFLAGS
="$OLD_CPPFLAGS"
10672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10673 $as_echo "no" >&6; }
10675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10676 $as_echo "yes" >&6; }
10679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10680 $as_echo "no" >&6; }
10684 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10685 # header files included from there.
10686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
10687 $as_echo_n "checking for Xkb... " >&6; }
10688 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10689 /* end confdefs.h. */
10690 #include <X11/Xlib.h>
10691 #include <X11/XKBlib.h>
10695 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10700 if ac_fn_c_try_link
"$LINENO"; then :
10705 rm -f core conftest.err conftest.
$ac_objext \
10706 conftest
$ac_exeext conftest.
$ac_ext
10707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
10708 $as_echo "$emacs_xkb" >&6; }
10709 if test $emacs_xkb = yes; then
10711 $as_echo "#define HAVE_XKB 1" >>confdefs.h
10715 for ac_func
in XrmSetDatabase XScreenResourceString \
10716 XScreenNumberOfScreen
10718 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10719 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10720 eval as_val
=\$
$as_ac_var
10721 if test "x$as_val" = x
""yes; then :
10722 cat >>confdefs.h
<<_ACEOF
10723 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10731 if test "${window_system}" = "x11"; then
10732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
10733 $as_echo_n "checking X11 version 6... " >&6; }
10734 if test "${emacs_cv_x11_version_6+set}" = set; then :
10735 $as_echo_n "(cached) " >&6
10737 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10738 /* end confdefs.h. */
10739 #include <X11/Xlib.h>
10743 #if XlibSpecificationRelease < 6
10751 if ac_fn_c_try_link
"$LINENO"; then :
10752 emacs_cv_x11_version_6
=yes
10754 emacs_cv_x11_version_6
=no
10756 rm -f core conftest.err conftest.
$ac_objext \
10757 conftest
$ac_exeext conftest.
$ac_ext
10760 if test $emacs_cv_x11_version_6 = yes; then
10761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
10762 $as_echo "6 or newer" >&6; }
10764 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
10767 $as_echo "#define HAVE_X_I18N 1" >>confdefs.h
10769 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
10774 $as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
10779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
10780 $as_echo "before 6" >&6; }
10785 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
10787 if test "${HAVE_X11}" = "yes" ||
test "${HAVE_NS}" = "yes"; then
10788 if test "${with_rsvg}" != "no"; then
10789 RSVG_REQUIRED
=2.11.0
10790 RSVG_MODULE
="librsvg-2.0 >= $RSVG_REQUIRED"
10795 if test "$PKG_CONFIG" = "no" ; then
10798 PKG_CONFIG_MIN_VERSION
=0.9.0
10799 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
10801 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
10803 if "$PKG_CONFIG" --exists "$RSVG_MODULE" 2>&5 &&
10804 RSVG_CFLAGS
=`"$PKG_CONFIG" --cflags "$RSVG_MODULE" 2>&5` &&
10805 RSVG_LIBS
=`"$PKG_CONFIG" --libs "$RSVG_MODULE" 2>&5`; then
10812 RSVG_CFLAGS
=`$as_echo "$RSVG_CFLAGS" | sed -e "$edit_cflags"`
10813 RSVG_LIBS
=`$as_echo "$RSVG_LIBS" | sed -e 's,///*,/,g'`
10814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$RSVG_CFLAGS' LIBS='$RSVG_LIBS'" >&5
10815 $as_echo "yes CFLAGS='$RSVG_CFLAGS' LIBS='$RSVG_LIBS'" >&6; }
10818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10819 $as_echo "no" >&6; }
10822 ## If we have a custom action on failure, don't print errors, but
10823 ## do set a variable so people can do so. Do it in a subshell
10824 ## to capture any diagnostics in invoking pkg-config.
10825 RSVG_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "$RSVG_MODULE") 2>&1`
10832 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10833 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10837 if test $succeeded = yes; then
10846 if test $HAVE_RSVG = yes; then
10848 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
10850 CFLAGS
="$CFLAGS $RSVG_CFLAGS"
10851 LIBS
="$RSVG_LIBS $LIBS"
10856 HAVE_IMAGEMAGICK
=no
10857 if test "${HAVE_X11}" = "yes"; then
10858 if test "${with_imagemagick}" != "no"; then
10859 ## 6.2.8 is the earliest version known to work, but earlier versions
10860 ## might work - let us know if you find one.
10861 ## 6.0.7 does not work. See bug#7955.
10862 ## 6.8.2 makes Emacs crash; see Bug#13867.
10863 IMAGEMAGICK_MODULE
="Wand >= 6.2.8 Wand != 6.8.2"
10867 if test "$PKG_CONFIG" = "no" ; then
10870 PKG_CONFIG_MIN_VERSION
=0.9.0
10871 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
10873 $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
10875 if "$PKG_CONFIG" --exists "$IMAGEMAGICK_MODULE" 2>&5 &&
10876 IMAGEMAGICK_CFLAGS
=`"$PKG_CONFIG" --cflags "$IMAGEMAGICK_MODULE" 2>&5` &&
10877 IMAGEMAGICK_LIBS
=`"$PKG_CONFIG" --libs "$IMAGEMAGICK_MODULE" 2>&5`; then
10884 IMAGEMAGICK_CFLAGS
=`$as_echo "$IMAGEMAGICK_CFLAGS" | sed -e "$edit_cflags"`
10885 IMAGEMAGICK_LIBS
=`$as_echo "$IMAGEMAGICK_LIBS" | sed -e 's,///*,/,g'`
10886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$IMAGEMAGICK_CFLAGS' LIBS='$IMAGEMAGICK_LIBS'" >&5
10887 $as_echo "yes CFLAGS='$IMAGEMAGICK_CFLAGS' LIBS='$IMAGEMAGICK_LIBS'" >&6; }
10890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10891 $as_echo "no" >&6; }
10892 IMAGEMAGICK_CFLAGS
=""
10893 IMAGEMAGICK_LIBS
=""
10894 ## If we have a custom action on failure, don't print errors, but
10895 ## do set a variable so people can do so. Do it in a subshell
10896 ## to capture any diagnostics in invoking pkg-config.
10897 IMAGEMAGICK_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "$IMAGEMAGICK_MODULE") 2>&1`
10904 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10905 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10909 if test $succeeded = yes; then
10910 HAVE_IMAGEMAGICK
=yes
10918 if test $HAVE_IMAGEMAGICK = yes; then
10920 $as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
10922 CFLAGS
="$CFLAGS $IMAGEMAGICK_CFLAGS"
10923 LIBS
="$IMAGEMAGICK_LIBS $LIBS"
10924 for ac_func
in MagickExportImagePixels MagickMergeImageLayers
10926 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10927 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10928 eval as_val
=\$
$as_ac_var
10929 if test "x$as_val" = x
""yes; then :
10930 cat >>confdefs.h
<<_ACEOF
10931 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10946 if test "${with_gtk3}" = "yes" ||
test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "maybe"; then
10949 GTK_MODULES
="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10954 if test "$PKG_CONFIG" = "no" ; then
10957 PKG_CONFIG_MIN_VERSION
=0.9.0
10958 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
10960 $as_echo_n "checking for $GTK_MODULES... " >&6; }
10962 if "$PKG_CONFIG" --exists "$GTK_MODULES" 2>&5 &&
10963 GTK_CFLAGS
=`"$PKG_CONFIG" --cflags "$GTK_MODULES" 2>&5` &&
10964 GTK_LIBS
=`"$PKG_CONFIG" --libs "$GTK_MODULES" 2>&5`; then
10971 GTK_CFLAGS
=`$as_echo "$GTK_CFLAGS" | sed -e "$edit_cflags"`
10972 GTK_LIBS
=`$as_echo "$GTK_LIBS" | sed -e 's,///*,/,g'`
10973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&5
10974 $as_echo "yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&6; }
10977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10978 $as_echo "no" >&6; }
10981 ## If we have a custom action on failure, don't print errors, but
10982 ## do set a variable so people can do so. Do it in a subshell
10983 ## to capture any diagnostics in invoking pkg-config.
10984 GTK_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "$GTK_MODULES") 2>&1`
10991 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10992 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10996 if test $succeeded = yes; then
11002 if test "$pkg_check_gtk" = "no" && test "$with_gtk3" = "yes"; then
11003 as_fn_error
"$GTK_PKG_ERRORS" "$LINENO" 5
11005 if test "$pkg_check_gtk" = "yes"; then
11007 $as_echo "#define HAVE_GTK3 1" >>confdefs.h
11009 GTK_OBJ
=emacsgtkfixed.o
11010 term_header
=gtkutil.h
11011 USE_GTK_TOOLKIT
="GTK3"
11012 if test "x$ac_enable_gtk_deprecation_warnings" = x
; then
11013 GTK_CFLAGS
="$GTK_CFLAGS -DGDK_DISABLE_DEPRECATION_WARNINGS"
11017 gtk3_pkg_errors
="$GTK_PKG_ERRORS "
11021 if test "${with_gtk2}" = "yes" ||
test "$check_gtk2" = "yes"; then
11024 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11029 if test "$PKG_CONFIG" = "no" ; then
11032 PKG_CONFIG_MIN_VERSION
=0.9.0
11033 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
11035 $as_echo_n "checking for $GTK_MODULES... " >&6; }
11037 if "$PKG_CONFIG" --exists "$GTK_MODULES" 2>&5 &&
11038 GTK_CFLAGS
=`"$PKG_CONFIG" --cflags "$GTK_MODULES" 2>&5` &&
11039 GTK_LIBS
=`"$PKG_CONFIG" --libs "$GTK_MODULES" 2>&5`; then
11046 GTK_CFLAGS
=`$as_echo "$GTK_CFLAGS" | sed -e "$edit_cflags"`
11047 GTK_LIBS
=`$as_echo "$GTK_LIBS" | sed -e 's,///*,/,g'`
11048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&5
11049 $as_echo "yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&6; }
11052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11053 $as_echo "no" >&6; }
11056 ## If we have a custom action on failure, don't print errors, but
11057 ## do set a variable so people can do so. Do it in a subshell
11058 ## to capture any diagnostics in invoking pkg-config.
11059 GTK_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "$GTK_MODULES") 2>&1`
11066 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11067 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11071 if test $succeeded = yes; then
11077 if test "$pkg_check_gtk" = "no" &&
11078 { test "$with_gtk" = yes ||
test "$with_gtk2" = "yes"; }
11080 as_fn_error
"$gtk3_pkg_errors$GTK_PKG_ERRORS" "$LINENO" 5
11082 test "$pkg_check_gtk" = "yes" && USE_GTK_TOOLKIT
="GTK2"
11085 if test x
"$pkg_check_gtk" = xyes
; then
11089 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
11090 CFLAGS
="$CFLAGS $GTK_CFLAGS"
11091 LIBS
="$GTK_LIBS $LIBS"
11093 for ac_func
in gtk_main
11095 ac_fn_c_check_func
"$LINENO" "gtk_main" "ac_cv_func_gtk_main"
11096 if test "x$ac_cv_func_gtk_main" = x
""yes; then :
11097 cat >>confdefs.h
<<_ACEOF
11098 #define HAVE_GTK_MAIN 1
11104 if test "${GTK_COMPILES}" != "yes"; then
11105 if test "$USE_X_TOOLKIT" != "maybe"; then
11106 as_fn_error
"Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
11111 $as_echo "#define USE_GTK 1" >>confdefs.h
11113 GTK_OBJ
="gtkutil.o $GTK_OBJ"
11115 if "$PKG_CONFIG" --atleast-version=2.10 gtk
+-2.0
; then
11118 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
11119 closing open displays. This is no problem if you just use
11120 one display, but if you use more than one and close one of them
11121 Emacs may crash." >&5
11122 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
11123 closing open displays. This is no problem if you just use
11124 one display, but if you use more than one and close one of them
11125 Emacs may crash." >&2;}
11134 if test "${HAVE_GTK}" = "yes"; then
11136 if test "$with_toolkit_scroll_bars" != no
; then
11137 with_toolkit_scroll_bars
=yes
11140 HAVE_GTK_FILE_SELECTION
=no
11141 ac_fn_c_check_decl
"$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
11142 #include <gtk/gtk.h>
11144 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x
""yes; then :
11145 HAVE_GTK_FILE_SELECTION
=yes
11147 HAVE_GTK_FILE_SELECTION
=no
11150 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
11151 for ac_func
in gtk_file_selection_new
11153 ac_fn_c_check_func
"$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
11154 if test "x$ac_cv_func_gtk_file_selection_new" = x
""yes; then :
11155 cat >>confdefs.h
<<_ACEOF
11156 #define HAVE_GTK_FILE_SELECTION_NEW 1
11164 HAVE_GTK_HANDLE_BOX
=no
11165 ac_fn_c_check_decl
"$LINENO" "GTK_TYPE_HANDLE_BOX" "ac_cv_have_decl_GTK_TYPE_HANDLE_BOX" "$ac_includes_default
11166 #include <gtk/gtk.h>
11168 if test "x$ac_cv_have_decl_GTK_TYPE_HANDLE_BOX" = x
""yes; then :
11169 HAVE_GTK_HANDLE_BOX
=yes
11171 HAVE_GTK_HANDLE_BOX
=no
11174 if test "$HAVE_GTK_HANDLE_BOX" = yes; then
11175 for ac_func
in gtk_handle_box_new
11177 ac_fn_c_check_func
"$LINENO" "gtk_handle_box_new" "ac_cv_func_gtk_handle_box_new"
11178 if test "x$ac_cv_func_gtk_handle_box_new" = x
""yes; then :
11179 cat >>confdefs.h
<<_ACEOF
11180 #define HAVE_GTK_HANDLE_BOX_NEW 1
11188 HAVE_GTK_TEAROFF_MENU_ITEM
=no
11189 ac_fn_c_check_decl
"$LINENO" "GTK_TYPE_TEAROFF_MENU_ITEM" "ac_cv_have_decl_GTK_TYPE_TEAROFF_MENU_ITEM" "$ac_includes_default
11190 #include <gtk/gtk.h>
11192 if test "x$ac_cv_have_decl_GTK_TYPE_TEAROFF_MENU_ITEM" = x
""yes; then :
11193 HAVE_GTK_TEAROFF_MENU_ITEM
=yes
11195 HAVE_GTK_TEAROFF_MENU_ITEM
=no
11198 if test "$HAVE_GTK_TEAROFF_MENU_ITEM" = yes; then
11199 for ac_func
in gtk_tearoff_menu_item_new
11201 ac_fn_c_check_func
"$LINENO" "gtk_tearoff_menu_item_new" "ac_cv_func_gtk_tearoff_menu_item_new"
11202 if test "x$ac_cv_func_gtk_tearoff_menu_item_new" = x
""yes; then :
11203 cat >>confdefs.h
<<_ACEOF
11204 #define HAVE_GTK_TEAROFF_MENU_ITEM_NEW 1
11212 for ac_func
in gtk_widget_get_window gtk_widget_set_has_window \
11213 gtk_dialog_get_action_area gtk_widget_get_sensitive \
11214 gtk_widget_get_mapped gtk_adjustment_get_page_size \
11215 gtk_orientable_set_orientation \
11216 gtk_window_set_has_resize_grip
11218 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11219 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11220 eval as_val
=\$
$as_ac_var
11221 if test "x$as_val" = x
""yes; then :
11222 cat >>confdefs.h
<<_ACEOF
11223 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11230 term_header
=gtkutil.h
11235 if test "${with_dbus}" = "yes"; then
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 dbus-1 >= 1.0" >&5
11245 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
11247 if "$PKG_CONFIG" --exists "dbus-1 >= 1.0" 2>&5 &&
11248 DBUS_CFLAGS
=`"$PKG_CONFIG" --cflags "dbus-1 >= 1.0" 2>&5` &&
11249 DBUS_LIBS
=`"$PKG_CONFIG" --libs "dbus-1 >= 1.0" 2>&5`; then
11256 DBUS_CFLAGS
=`$as_echo "$DBUS_CFLAGS" | sed -e "$edit_cflags"`
11257 DBUS_LIBS
=`$as_echo "$DBUS_LIBS" | sed -e 's,///*,/,g'`
11258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$DBUS_CFLAGS' LIBS='$DBUS_LIBS'" >&5
11259 $as_echo "yes CFLAGS='$DBUS_CFLAGS' LIBS='$DBUS_LIBS'" >&6; }
11262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11263 $as_echo "no" >&6; }
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 DBUS_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "dbus-1 >= 1.0") 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
11287 if test "$HAVE_DBUS" = yes; then
11288 LIBS
="$LIBS $DBUS_LIBS"
11290 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
11292 for ac_func
in dbus_watch_get_unix_fd \
11293 dbus_type_is_valid \
11294 dbus_validate_bus_name \
11295 dbus_validate_path \
11296 dbus_validate_interface \
11297 dbus_validate_member
11299 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11300 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11301 eval as_val
=\$
$as_ac_var
11302 if test "x$as_val" = x
""yes; then :
11303 cat >>confdefs.h
<<_ACEOF
11304 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11310 DBUS_OBJ
=dbusbind.o
11316 if test "${HAVE_X11}" = "yes" && test "${with_gsettings}" = "yes"; then
11320 if test "$PKG_CONFIG" = "no" ; then
11323 PKG_CONFIG_MIN_VERSION
=0.9.0
11324 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gio-2.0 >= 2.26" >&5
11326 $as_echo_n "checking for gio-2.0 >= 2.26... " >&6; }
11328 if "$PKG_CONFIG" --exists "gio-2.0 >= 2.26" 2>&5 &&
11329 GSETTINGS_CFLAGS
=`"$PKG_CONFIG" --cflags "gio-2.0 >= 2.26" 2>&5` &&
11330 GSETTINGS_LIBS
=`"$PKG_CONFIG" --libs "gio-2.0 >= 2.26" 2>&5`; then
11337 GSETTINGS_CFLAGS
=`$as_echo "$GSETTINGS_CFLAGS" | sed -e "$edit_cflags"`
11338 GSETTINGS_LIBS
=`$as_echo "$GSETTINGS_LIBS" | sed -e 's,///*,/,g'`
11339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GSETTINGS_CFLAGS' LIBS='$GSETTINGS_LIBS'" >&5
11340 $as_echo "yes CFLAGS='$GSETTINGS_CFLAGS' LIBS='$GSETTINGS_LIBS'" >&6; }
11343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11344 $as_echo "no" >&6; }
11345 GSETTINGS_CFLAGS
=""
11347 ## If we have a custom action on failure, don't print errors, but
11348 ## do set a variable so people can do so. Do it in a subshell
11349 ## to capture any diagnostics in invoking pkg-config.
11350 GSETTINGS_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "gio-2.0 >= 2.26") 2>&1`
11357 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11358 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11362 if test $succeeded = yes; then
11368 if test "$HAVE_GSETTINGS" = "yes"; then
11370 $as_echo "#define HAVE_GSETTINGS 1" >>confdefs.h
11372 SETTINGS_CFLAGS
="$GSETTINGS_CFLAGS"
11373 SETTINGS_LIBS
="$GSETTINGS_LIBS"
11378 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
11382 if test "$PKG_CONFIG" = "no" ; then
11385 PKG_CONFIG_MIN_VERSION
=0.9.0
11386 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
11388 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
11390 if "$PKG_CONFIG" --exists "gconf-2.0 >= 2.13" 2>&5 &&
11391 GCONF_CFLAGS
=`"$PKG_CONFIG" --cflags "gconf-2.0 >= 2.13" 2>&5` &&
11392 GCONF_LIBS
=`"$PKG_CONFIG" --libs "gconf-2.0 >= 2.13" 2>&5`; then
11399 GCONF_CFLAGS
=`$as_echo "$GCONF_CFLAGS" | sed -e "$edit_cflags"`
11400 GCONF_LIBS
=`$as_echo "$GCONF_LIBS" | sed -e 's,///*,/,g'`
11401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GCONF_CFLAGS' LIBS='$GCONF_LIBS'" >&5
11402 $as_echo "yes CFLAGS='$GCONF_CFLAGS' LIBS='$GCONF_LIBS'" >&6; }
11405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11406 $as_echo "no" >&6; }
11409 ## If we have a custom action on failure, don't print errors, but
11410 ## do set a variable so people can do so. Do it in a subshell
11411 ## to capture any diagnostics in invoking pkg-config.
11412 GCONF_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "gconf-2.0 >= 2.13") 2>&1`
11419 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11420 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11424 if test $succeeded = yes; then
11430 if test "$HAVE_GCONF" = yes; then
11432 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
11434 SETTINGS_CFLAGS
="$SETTINGS_CFLAGS $GCONF_CFLAGS"
11435 SETTINGS_LIBS
="$SETTINGS_LIBS $GCONF_LIBS"
11439 if test "$HAVE_GSETTINGS" = "yes" ||
test "$HAVE_GCONF" = "yes"; then
11443 if test "$PKG_CONFIG" = "no" ; then
11446 PKG_CONFIG_MIN_VERSION
=0.9.0
11447 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gobject-2.0 >= 2.0" >&5
11449 $as_echo_n "checking for gobject-2.0 >= 2.0... " >&6; }
11451 if "$PKG_CONFIG" --exists "gobject-2.0 >= 2.0" 2>&5 &&
11452 GOBJECT_CFLAGS
=`"$PKG_CONFIG" --cflags "gobject-2.0 >= 2.0" 2>&5` &&
11453 GOBJECT_LIBS
=`"$PKG_CONFIG" --libs "gobject-2.0 >= 2.0" 2>&5`; then
11460 GOBJECT_CFLAGS
=`$as_echo "$GOBJECT_CFLAGS" | sed -e "$edit_cflags"`
11461 GOBJECT_LIBS
=`$as_echo "$GOBJECT_LIBS" | sed -e 's,///*,/,g'`
11462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GOBJECT_CFLAGS' LIBS='$GOBJECT_LIBS'" >&5
11463 $as_echo "yes CFLAGS='$GOBJECT_CFLAGS' LIBS='$GOBJECT_LIBS'" >&6; }
11466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11467 $as_echo "no" >&6; }
11470 ## If we have a custom action on failure, don't print errors, but
11471 ## do set a variable so people can do so. Do it in a subshell
11472 ## to capture any diagnostics in invoking pkg-config.
11473 GOBJECT_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "gobject-2.0 >= 2.0") 2>&1`
11480 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11481 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11485 if test $succeeded = yes; then
11491 if test "$HAVE_GOBJECT" = "yes"; then
11492 SETTINGS_CFLAGS
="$SETTINGS_CFLAGS $GOBJECT_CFLAGS"
11493 SETTINGS_LIBS
="$SETTINGS_LIBS $GOBJECT_LIBS"
11495 SAVE_CFLAGS
="$CFLAGS"
11497 CFLAGS
="$SETTINGS_CFLAGS $CFLAGS"
11498 LIBS
="$SETTINGS_LIBS $LIBS"
11499 for ac_func
in g_type_init
11501 ac_fn_c_check_func
"$LINENO" "g_type_init" "ac_cv_func_g_type_init"
11502 if test "x$ac_cv_func_g_type_init" = x
""yes; then :
11503 cat >>confdefs.h
<<_ACEOF
11504 #define HAVE_G_TYPE_INIT 1
11510 CFLAGS
="$SAVE_CFLAGS"
11519 if test "${with_selinux}" = "yes"; then
11520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
11521 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
11522 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then :
11523 $as_echo_n "(cached) " >&6
11525 ac_check_lib_save_LIBS
=$LIBS
11526 LIBS
="-lselinux $LIBS"
11527 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11528 /* end confdefs.h. */
11530 /* Override any GCC internal prototype to avoid an error.
11531 Use char because int might match the return type of a GCC
11532 builtin and then its argument prototype would still apply. */
11536 char lgetfilecon ();
11540 return lgetfilecon ();
11545 if ac_fn_c_try_link
"$LINENO"; then :
11546 ac_cv_lib_selinux_lgetfilecon
=yes
11548 ac_cv_lib_selinux_lgetfilecon
=no
11550 rm -f core conftest.err conftest.
$ac_objext \
11551 conftest
$ac_exeext conftest.
$ac_ext
11552 LIBS
=$ac_check_lib_save_LIBS
11554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
11555 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
11556 if test "x$ac_cv_lib_selinux_lgetfilecon" = x
""yes; then :
11557 HAVE_LIBSELINUX
=yes
11562 if test "$HAVE_LIBSELINUX" = yes; then
11564 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
11566 LIBSELINUX_LIBS
=-lselinux
11572 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY
=no
11573 if test "${with_gnutls}" = "yes" ; then
11577 if test "$PKG_CONFIG" = "no" ; then
11580 PKG_CONFIG_MIN_VERSION
=0.9.0
11581 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.6.6" >&5
11583 $as_echo_n "checking for gnutls >= 2.6.6... " >&6; }
11585 if "$PKG_CONFIG" --exists "gnutls >= 2.6.6" 2>&5 &&
11586 LIBGNUTLS_CFLAGS
=`"$PKG_CONFIG" --cflags "gnutls >= 2.6.6" 2>&5` &&
11587 LIBGNUTLS_LIBS
=`"$PKG_CONFIG" --libs "gnutls >= 2.6.6" 2>&5`; then
11594 LIBGNUTLS_CFLAGS
=`$as_echo "$LIBGNUTLS_CFLAGS" | sed -e "$edit_cflags"`
11595 LIBGNUTLS_LIBS
=`$as_echo "$LIBGNUTLS_LIBS" | sed -e 's,///*,/,g'`
11596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBGNUTLS_CFLAGS' LIBS='$LIBGNUTLS_LIBS'" >&5
11597 $as_echo "yes CFLAGS='$LIBGNUTLS_CFLAGS' LIBS='$LIBGNUTLS_LIBS'" >&6; }
11600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11601 $as_echo "no" >&6; }
11602 LIBGNUTLS_CFLAGS
=""
11604 ## If we have a custom action on failure, don't print errors, but
11605 ## do set a variable so people can do so. Do it in a subshell
11606 ## to capture any diagnostics in invoking pkg-config.
11607 LIBGNUTLS_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "gnutls >= 2.6.6") 2>&1`
11614 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11615 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11619 if test $succeeded = yes; then
11625 if test "${HAVE_GNUTLS}" = "yes"; then
11627 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
11631 CFLAGS
="$CFLAGS $LIBGNUTLS_CFLAGS"
11632 LIBS
="$LIBGNUTLS_LIBS $LIBS"
11633 for ac_func
in gnutls_certificate_set_verify_function
11635 ac_fn_c_check_func
"$LINENO" "gnutls_certificate_set_verify_function" "ac_cv_func_gnutls_certificate_set_verify_function"
11636 if test "x$ac_cv_func_gnutls_certificate_set_verify_function" = x
""yes; then :
11637 cat >>confdefs.h
<<_ACEOF
11638 #define HAVE_GNUTLS_CERTIFICATE_SET_VERIFY_FUNCTION 1
11640 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY
=yes
11645 if test "${HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY}" = "yes"; then
11647 $as_echo "#define HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY 1" >>confdefs.h
11655 if test "${with_inotify}" = "yes"; then
11656 for ac_header
in sys
/inotify.h
11658 ac_fn_c_check_header_mongrel
"$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
11659 if test "x$ac_cv_header_sys_inotify_h" = x
""yes; then :
11660 cat >>confdefs.h
<<_ACEOF
11661 #define HAVE_SYS_INOTIFY_H 1
11668 if test "$ac_cv_header_sys_inotify_h" = yes ; then
11669 ac_fn_c_check_func
"$LINENO" "inotify_init1" "ac_cv_func_inotify_init1"
11670 if test "x$ac_cv_func_inotify_init1" = x
""yes; then :
11676 if test "$ac_cv_func_inotify_init1" = yes; then
11678 $as_echo "#define HAVE_INOTIFY 1" >>confdefs.h
11684 if test x
"${USE_X_TOOLKIT}" = xmaybe ||
test x
"${USE_X_TOOLKIT}" = xLUCID
; then
11685 if test "$with_xaw3d" != no
; then
11686 if test "${emacs_cv_xaw3d+set}" = set; then :
11687 $as_echo_n "(cached) " >&6
11689 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11690 /* end confdefs.h. */
11692 #include <X11/Intrinsic.h>
11693 #include <X11/Xaw3d/Simple.h>
11702 if ac_fn_c_try_link
"$LINENO"; then :
11703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XawScrollbarSetThumb in -lXaw3d" >&5
11704 $as_echo_n "checking for XawScrollbarSetThumb in -lXaw3d... " >&6; }
11705 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then :
11706 $as_echo_n "(cached) " >&6
11708 ac_check_lib_save_LIBS
=$LIBS
11709 LIBS
="-lXaw3d $LIBS"
11710 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11711 /* end confdefs.h. */
11713 /* Override any GCC internal prototype to avoid an error.
11714 Use char because int might match the return type of a GCC
11715 builtin and then its argument prototype would still apply. */
11719 char XawScrollbarSetThumb ();
11723 return XawScrollbarSetThumb ();
11728 if ac_fn_c_try_link
"$LINENO"; then :
11729 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=yes
11731 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=no
11733 rm -f core conftest.err conftest.
$ac_objext \
11734 conftest
$ac_exeext conftest.
$ac_ext
11735 LIBS
=$ac_check_lib_save_LIBS
11737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
11738 $as_echo "$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
11739 if test "x$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" = x
""yes; then :
11748 rm -f core conftest.err conftest.
$ac_objext \
11749 conftest
$ac_exeext conftest.
$ac_ext
11755 if test $emacs_cv_xaw3d = yes; then
11756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
11757 $as_echo_n "checking for xaw3d... " >&6; }
11758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
11759 $as_echo "yes; using Lucid toolkit" >&6; }
11760 USE_X_TOOLKIT
=LUCID
11764 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
11767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
11768 $as_echo_n "checking for xaw3d... " >&6; }
11769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11770 $as_echo "no" >&6; }
11771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
11772 $as_echo_n "checking for libXaw... " >&6; }
11773 if test "${emacs_cv_xaw+set}" = set; then :
11774 $as_echo_n "(cached) " >&6
11776 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11777 /* end confdefs.h. */
11779 #include <X11/Intrinsic.h>
11780 #include <X11/Xaw/Simple.h>
11789 if ac_fn_c_try_link
"$LINENO"; then :
11794 rm -f core conftest.err conftest.
$ac_objext \
11795 conftest
$ac_exeext conftest.
$ac_ext
11798 if test $emacs_cv_xaw = yes; then
11799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
11800 $as_echo "yes; using Lucid toolkit" >&6; }
11801 USE_X_TOOLKIT
=LUCID
11803 elif test x
"${USE_X_TOOLKIT}" = xLUCID
; then
11804 as_fn_error
"Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
11806 as_fn_error
"No X toolkit could be found.
11807 If you are sure you want Emacs compiled without an X toolkit, pass
11808 --with-x-toolkit=no
11809 to configure. Otherwise, install the development libraries for the toolkit
11810 that you want to use (e.g. Gtk+) and re-run configure." "$LINENO" 5
11815 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
11818 if test "${USE_X_TOOLKIT}" != "none"; then
11819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
11820 $as_echo_n "checking X11 toolkit version... " >&6; }
11821 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then :
11822 $as_echo_n "(cached) " >&6
11824 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11825 /* end confdefs.h. */
11826 #include <X11/Intrinsic.h>
11830 #if XtSpecificationRelease < 6
11838 if ac_fn_c_try_link
"$LINENO"; then :
11839 emacs_cv_x11_toolkit_version_6
=yes
11841 emacs_cv_x11_toolkit_version_6
=no
11843 rm -f core conftest.err conftest.
$ac_objext \
11844 conftest
$ac_exeext conftest.
$ac_ext
11847 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
11848 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
11850 $as_echo "6 or newer" >&6; }
11852 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
11854 LIBXTR6
="-lSM -lICE"
11856 ## Use libw.a along with X11R6 Xt.
11857 unixware
) LIBXTR6
="$LIBXTR6 -lw" ;;
11860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
11861 $as_echo "before 6" >&6; }
11865 if test x
$HAVE_X11XTR6 = xyes
; then
11866 LIBS
="-lXt -lSM -lICE $LIBS"
11870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
11871 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
11872 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then :
11873 $as_echo_n "(cached) " >&6
11875 ac_check_lib_save_LIBS
=$LIBS
11877 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11878 /* end confdefs.h. */
11880 /* Override any GCC internal prototype to avoid an error.
11881 Use char because int might match the return type of a GCC
11882 builtin and then its argument prototype would still apply. */
11886 char XmuConvertStandardSelection ();
11890 return XmuConvertStandardSelection ();
11895 if ac_fn_c_try_link
"$LINENO"; then :
11896 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
11898 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
11900 rm -f core conftest.err conftest.
$ac_objext \
11901 conftest
$ac_exeext conftest.
$ac_ext
11902 LIBS
=$ac_check_lib_save_LIBS
11904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
11905 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
11906 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x
""yes; then :
11907 cat >>confdefs.h
<<_ACEOF
11908 #define HAVE_LIBXMU 1
11915 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
11921 ## These systems don't supply Xmu.
11923 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU
=
11928 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
11929 if test "${HAVE_X11}" = "yes"; then
11930 if test "${USE_X_TOOLKIT}" != "none"; then
11931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
11932 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
11933 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
11934 $as_echo_n "(cached) " >&6
11936 ac_check_lib_save_LIBS
=$LIBS
11937 LIBS
="-lXext $LIBS"
11938 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11939 /* end confdefs.h. */
11941 /* Override any GCC internal prototype to avoid an error.
11942 Use char because int might match the return type of a GCC
11943 builtin and then its argument prototype would still apply. */
11947 char XShapeQueryExtension ();
11951 return XShapeQueryExtension ();
11956 if ac_fn_c_try_link
"$LINENO"; then :
11957 ac_cv_lib_Xext_XShapeQueryExtension
=yes
11959 ac_cv_lib_Xext_XShapeQueryExtension
=no
11961 rm -f core conftest.err conftest.
$ac_objext \
11962 conftest
$ac_exeext conftest.
$ac_ext
11963 LIBS
=$ac_check_lib_save_LIBS
11965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
11966 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
11967 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x
""yes; then :
11968 cat >>confdefs.h
<<_ACEOF
11969 #define HAVE_LIBXEXT 1
11972 LIBS
="-lXext $LIBS"
11980 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11981 # OpenMotif may be installed in such a way on some GNU/Linux systems.
11982 if test -d /usr
/include
/openmotif
; then
11983 CPPFLAGS
="-I/usr/include/openmotif $CPPFLAGS"
11984 emacs_cv_openmotif
=yes
11985 case "$canonical" in
11986 x86_64-
*-linux-gnu* | powerpc64-
*-linux-gnu* | sparc64-
*-linux-gnu*)
11987 test -d /usr
/lib64
/openmotif
&& LDFLAGS
="-L/usr/lib64/openmotif $LDFLAGS"
11990 test -d /usr
/lib
/openmotif
&& LDFLAGS
="-L/usr/lib/openmotif $LDFLAGS"
11993 emacs_cv_openmotif
=no
11995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for (Open)Motif version 2.1" >&5
11996 $as_echo_n "checking for (Open)Motif version 2.1... " >&6; }
11997 if test "${emacs_cv_motif_version_2_1+set}" = set; then :
11998 $as_echo_n "(cached) " >&6
12000 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12001 /* end confdefs.h. */
12006 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12009 Motif version prior to 2.1.
12015 if ac_fn_c_try_compile
"$LINENO"; then :
12016 emacs_cv_motif_version_2_1
=yes
12018 emacs_cv_motif_version_2_1
=no
12020 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
12023 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
12024 if test $emacs_cv_motif_version_2_1 = yes; then
12025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
12026 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
12027 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then :
12028 $as_echo_n "(cached) " >&6
12030 ac_check_lib_save_LIBS
=$LIBS
12032 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12033 /* end confdefs.h. */
12035 /* Override any GCC internal prototype to avoid an error.
12036 Use char because int might match the return type of a GCC
12037 builtin and then its argument prototype would still apply. */
12041 char XpCreateContext ();
12045 return XpCreateContext ();
12050 if ac_fn_c_try_link
"$LINENO"; then :
12051 ac_cv_lib_Xp_XpCreateContext
=yes
12053 ac_cv_lib_Xp_XpCreateContext
=no
12055 rm -f core conftest.err conftest.
$ac_objext \
12056 conftest
$ac_exeext conftest.
$ac_ext
12057 LIBS
=$ac_check_lib_save_LIBS
12059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12060 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
12061 if test "x$ac_cv_lib_Xp_XpCreateContext" = x
""yes; then :
12065 if test x
$emacs_cv_openmotif = xyes
; then
12066 REAL_CPPFLAGS
="-I/usr/include/openmotif $REAL_CPPFLAGS"
12069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
12070 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
12071 if test "${emacs_cv_lesstif+set}" = set; then :
12072 $as_echo_n "(cached) " >&6
12074 # We put this in CFLAGS temporarily to precede other -I options
12075 # that might be in CFLAGS temporarily.
12076 # We put this in CPPFLAGS where it precedes the other -I options.
12077 OLD_CPPFLAGS
=$CPPFLAGS
12079 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12080 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12081 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12082 /* end confdefs.h. */
12083 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12092 if ac_fn_c_try_compile
"$LINENO"; then :
12093 emacs_cv_lesstif
=yes
12095 emacs_cv_lesstif
=no
12097 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
12100 $as_echo "$emacs_cv_lesstif" >&6; }
12101 if test $emacs_cv_lesstif = yes; then
12102 # Make sure this -I option remains in CPPFLAGS after it is set
12103 # back to REAL_CPPFLAGS.
12104 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12105 # have those other -I options anyway. Ultimately, having this
12106 # directory ultimately in CPPFLAGS will be enough.
12107 REAL_CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12108 LDFLAGS
="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12111 CPPFLAGS
=$OLD_CPPFLAGS
12114 ac_fn_c_check_header_mongrel
"$LINENO" "Xm/BulletinB.h" "ac_cv_header_Xm_BulletinB_h" "$ac_includes_default"
12115 if test "x$ac_cv_header_Xm_BulletinB_h" = x
""yes; then :
12118 as_fn_error
"Motif toolkit requested but requirements not found." "$LINENO" 5
12125 USE_TOOLKIT_SCROLL_BARS
=no
12126 if test "${with_toolkit_scroll_bars}" != "no"; then
12127 if test "${USE_X_TOOLKIT}" != "none"; then
12128 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12129 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12132 USE_TOOLKIT_SCROLL_BARS
=yes
12133 elif test "${HAVE_XAW3D}" = "yes" ||
test "${USE_X_TOOLKIT}" = "LUCID"; then
12134 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12136 USE_TOOLKIT_SCROLL_BARS
=yes
12138 elif test "${HAVE_GTK}" = "yes"; then
12139 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12141 USE_TOOLKIT_SCROLL_BARS
=yes
12142 elif test "${HAVE_NS}" = "yes"; then
12143 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12145 USE_TOOLKIT_SCROLL_BARS
=yes
12146 elif test "${HAVE_W32}" = "yes"; then
12147 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12149 USE_TOOLKIT_SCROLL_BARS
=yes
12153 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12154 /* end confdefs.h. */
12156 #include <X11/Xlib.h>
12157 #include <X11/Xresource.h>
12166 if ac_fn_c_try_compile
"$LINENO"; then :
12169 $as_echo "#define HAVE_XIM 1" >>confdefs.h
12174 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12177 if test "${with_xim}" != "no"; then
12179 $as_echo "#define USE_XIM 1" >>confdefs.h
12184 if test "${HAVE_XIM}" != "no"; then
12185 late_CFLAGS
=$CFLAGS
12186 if test "$GCC" = yes; then
12187 CFLAGS
="$CFLAGS --pedantic-errors"
12189 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12190 /* end confdefs.h. */
12192 #include <X11/Xlib.h>
12193 #include <X11/Xresource.h>
12202 XPointer *client_data;
12204 /* If we're not using GCC, it's probably not XFree86, and this is
12205 probably right, but we can't use something like --pedantic-errors. */
12206 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12207 char*, XIMProc, XPointer*);
12209 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12215 if ac_fn_c_try_compile
"$LINENO"; then :
12216 emacs_cv_arg6_star
=yes
12218 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12219 if test "$emacs_cv_arg6_star" = yes; then
12220 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
12223 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
12226 CFLAGS
=$late_CFLAGS
12229 ### Start of font-backend (under any platform) section.
12230 # (nothing here yet -- this is a placeholder)
12231 ### End of font-backend (under any platform) section.
12233 ### Start of font-backend (under X11) section.
12234 if test "${HAVE_X11}" = "yes"; then
12238 if test "$PKG_CONFIG" = "no" ; then
12241 PKG_CONFIG_MIN_VERSION
=0.9.0
12242 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
12244 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
12246 if "$PKG_CONFIG" --exists "fontconfig >= 2.2.0" 2>&5 &&
12247 FONTCONFIG_CFLAGS
=`"$PKG_CONFIG" --cflags "fontconfig >= 2.2.0" 2>&5` &&
12248 FONTCONFIG_LIBS
=`"$PKG_CONFIG" --libs "fontconfig >= 2.2.0" 2>&5`; then
12255 FONTCONFIG_CFLAGS
=`$as_echo "$FONTCONFIG_CFLAGS" | sed -e "$edit_cflags"`
12256 FONTCONFIG_LIBS
=`$as_echo "$FONTCONFIG_LIBS" | sed -e 's,///*,/,g'`
12257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$FONTCONFIG_CFLAGS' LIBS='$FONTCONFIG_LIBS'" >&5
12258 $as_echo "yes CFLAGS='$FONTCONFIG_CFLAGS' LIBS='$FONTCONFIG_LIBS'" >&6; }
12261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12262 $as_echo "no" >&6; }
12263 FONTCONFIG_CFLAGS
=""
12265 ## If we have a custom action on failure, don't print errors, but
12266 ## do set a variable so people can do so. Do it in a subshell
12267 ## to capture any diagnostics in invoking pkg-config.
12268 FONTCONFIG_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "fontconfig >= 2.2.0") 2>&1`
12275 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12276 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12280 if test $succeeded = yes; then
12287 ## Use -lXft if available, unless `--with-xft=no'.
12289 if test "${HAVE_FC}" = "no" ||
test "x${with_x}" = "xno"; then
12292 if test "x${with_xft}" != "xno"; then
12297 if test "$PKG_CONFIG" = "no" ; then
12300 PKG_CONFIG_MIN_VERSION
=0.9.0
12301 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
12303 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
12305 if "$PKG_CONFIG" --exists "xft >= 0.13.0" 2>&5 &&
12306 XFT_CFLAGS
=`"$PKG_CONFIG" --cflags "xft >= 0.13.0" 2>&5` &&
12307 XFT_LIBS
=`"$PKG_CONFIG" --libs "xft >= 0.13.0" 2>&5`; then
12314 XFT_CFLAGS
=`$as_echo "$XFT_CFLAGS" | sed -e "$edit_cflags"`
12315 XFT_LIBS
=`$as_echo "$XFT_LIBS" | sed -e 's,///*,/,g'`
12316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$XFT_CFLAGS' LIBS='$XFT_LIBS'" >&5
12317 $as_echo "yes CFLAGS='$XFT_CFLAGS' LIBS='$XFT_LIBS'" >&6; }
12320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12321 $as_echo "no" >&6; }
12324 ## If we have a custom action on failure, don't print errors, but
12325 ## do set a variable so people can do so. Do it in a subshell
12326 ## to capture any diagnostics in invoking pkg-config.
12327 XFT_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "xft >= 0.13.0") 2>&1`
12334 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12335 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12339 if test $succeeded = yes; then
12345 ## Because xftfont.c uses XRenderQueryExtension, we also
12346 ## need to link to -lXrender.
12348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
12349 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
12350 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
12351 $as_echo_n "(cached) " >&6
12353 ac_check_lib_save_LIBS
=$LIBS
12354 LIBS
="-lXrender $LIBS"
12355 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12356 /* end confdefs.h. */
12358 /* Override any GCC internal prototype to avoid an error.
12359 Use char because int might match the return type of a GCC
12360 builtin and then its argument prototype would still apply. */
12364 char XRenderQueryExtension ();
12368 return XRenderQueryExtension ();
12373 if ac_fn_c_try_link
"$LINENO"; then :
12374 ac_cv_lib_Xrender_XRenderQueryExtension
=yes
12376 ac_cv_lib_Xrender_XRenderQueryExtension
=no
12378 rm -f core conftest.err conftest.
$ac_objext \
12379 conftest
$ac_exeext conftest.
$ac_ext
12380 LIBS
=$ac_check_lib_save_LIBS
12382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
12383 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
12384 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x
""yes; then :
12388 if test "$HAVE_XFT" != no
&& test "$HAVE_XRENDER" != no
; then
12389 OLD_CPPFLAGS
="$CPPFLAGS"
12390 OLD_CFLAGS
="$CFLAGS"
12392 CPPFLAGS
="$CPPFLAGS $XFT_CFLAGS"
12393 CFLAGS
="$CFLAGS $XFT_CFLAGS"
12394 XFT_LIBS
="-lXrender $XFT_LIBS"
12395 LIBS
="$XFT_LIBS $LIBS"
12396 ac_fn_c_check_header_mongrel
"$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
12397 if test "x$ac_cv_header_X11_Xft_Xft_h" = x
""yes; then :
12398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
12399 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
12400 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then :
12401 $as_echo_n "(cached) " >&6
12403 ac_check_lib_save_LIBS
=$LIBS
12404 LIBS
="-lXft $XFT_LIBS $LIBS"
12405 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12406 /* end confdefs.h. */
12408 /* Override any GCC internal prototype to avoid an error.
12409 Use char because int might match the return type of a GCC
12410 builtin and then its argument prototype would still apply. */
12414 char XftFontOpen ();
12418 return XftFontOpen ();
12423 if ac_fn_c_try_link
"$LINENO"; then :
12424 ac_cv_lib_Xft_XftFontOpen
=yes
12426 ac_cv_lib_Xft_XftFontOpen
=no
12428 rm -f core conftest.err conftest.
$ac_objext \
12429 conftest
$ac_exeext conftest.
$ac_ext
12430 LIBS
=$ac_check_lib_save_LIBS
12432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
12433 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
12434 if test "x$ac_cv_lib_Xft_XftFontOpen" = x
""yes; then :
12442 if test "${HAVE_XFT}" = "yes"; then
12444 $as_echo "#define HAVE_XFT 1" >>confdefs.h
12447 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $XFT_CFLAGS"
12449 CPPFLAGS
="$OLD_CPPFLAGS"
12450 CFLAGS
="$OLD_CFLAGS"
12452 fi # "${HAVE_XFT}" = "yes"
12453 fi # "$HAVE_XFT" != no
12454 fi # "x${with_xft}" != "xno"
12456 ## We used to allow building with FreeType and without Xft.
12457 ## However, the ftx font backend driver is not in good shape.
12458 if test "$HAVE_XFT" != "yes"; then
12465 if test "$PKG_CONFIG" = "no" ; then
12468 PKG_CONFIG_MIN_VERSION
=0.9.0
12469 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype2" >&5
12471 $as_echo_n "checking for freetype2... " >&6; }
12473 if "$PKG_CONFIG" --exists "freetype2" 2>&5 &&
12474 FREETYPE_CFLAGS
=`"$PKG_CONFIG" --cflags "freetype2" 2>&5` &&
12475 FREETYPE_LIBS
=`"$PKG_CONFIG" --libs "freetype2" 2>&5`; then
12482 FREETYPE_CFLAGS
=`$as_echo "$FREETYPE_CFLAGS" | sed -e "$edit_cflags"`
12483 FREETYPE_LIBS
=`$as_echo "$FREETYPE_LIBS" | sed -e 's,///*,/,g'`
12484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$FREETYPE_CFLAGS' LIBS='$FREETYPE_LIBS'" >&5
12485 $as_echo "yes CFLAGS='$FREETYPE_CFLAGS' LIBS='$FREETYPE_LIBS'" >&6; }
12488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12489 $as_echo "no" >&6; }
12492 ## If we have a custom action on failure, don't print errors, but
12493 ## do set a variable so people can do so. Do it in a subshell
12494 ## to capture any diagnostics in invoking pkg-config.
12495 FREETYPE_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "freetype2") 2>&1`
12502 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12503 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12507 if test $succeeded = yes; then
12514 test "$HAVE_FREETYPE" = "no" && as_fn_error
"libxft requires libfreetype" "$LINENO" 5
12518 if test "${HAVE_FREETYPE}" = "yes"; then
12520 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
12522 if test "${with_libotf}" != "no"; then
12526 if test "$PKG_CONFIG" = "no" ; then
12529 PKG_CONFIG_MIN_VERSION
=0.9.0
12530 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
12532 $as_echo_n "checking for libotf... " >&6; }
12534 if "$PKG_CONFIG" --exists "libotf" 2>&5 &&
12535 LIBOTF_CFLAGS
=`"$PKG_CONFIG" --cflags "libotf" 2>&5` &&
12536 LIBOTF_LIBS
=`"$PKG_CONFIG" --libs "libotf" 2>&5`; then
12543 LIBOTF_CFLAGS
=`$as_echo "$LIBOTF_CFLAGS" | sed -e "$edit_cflags"`
12544 LIBOTF_LIBS
=`$as_echo "$LIBOTF_LIBS" | sed -e 's,///*,/,g'`
12545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBOTF_CFLAGS' LIBS='$LIBOTF_LIBS'" >&5
12546 $as_echo "yes CFLAGS='$LIBOTF_CFLAGS' LIBS='$LIBOTF_LIBS'" >&6; }
12549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12550 $as_echo "no" >&6; }
12553 ## If we have a custom action on failure, don't print errors, but
12554 ## do set a variable so people can do so. Do it in a subshell
12555 ## to capture any diagnostics in invoking pkg-config.
12556 LIBOTF_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "libotf") 2>&1`
12563 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12564 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12568 if test $succeeded = yes; then
12574 if test "$HAVE_LIBOTF" = "yes"; then
12576 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
12578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
12579 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
12580 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then :
12581 $as_echo_n "(cached) " >&6
12583 ac_check_lib_save_LIBS
=$LIBS
12585 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12586 /* end confdefs.h. */
12588 /* Override any GCC internal prototype to avoid an error.
12589 Use char because int might match the return type of a GCC
12590 builtin and then its argument prototype would still apply. */
12594 char OTF_get_variation_glyphs ();
12598 return OTF_get_variation_glyphs ();
12603 if ac_fn_c_try_link
"$LINENO"; then :
12604 ac_cv_lib_otf_OTF_get_variation_glyphs
=yes
12606 ac_cv_lib_otf_OTF_get_variation_glyphs
=no
12608 rm -f core conftest.err conftest.
$ac_objext \
12609 conftest
$ac_exeext conftest.
$ac_ext
12610 LIBS
=$ac_check_lib_save_LIBS
12612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
12613 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
12614 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x
""yes; then :
12615 HAVE_OTF_GET_VARIATION_GLYPHS
=yes
12617 HAVE_OTF_GET_VARIATION_GLYPHS
=no
12620 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
12622 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
12630 if test "${HAVE_LIBOTF}" = yes; then
12631 if test "${with_m17n_flt}" != "no"; then
12635 if test "$PKG_CONFIG" = "no" ; then
12638 PKG_CONFIG_MIN_VERSION
=0.9.0
12639 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
12641 $as_echo_n "checking for m17n-flt... " >&6; }
12643 if "$PKG_CONFIG" --exists "m17n-flt" 2>&5 &&
12644 M17N_FLT_CFLAGS
=`"$PKG_CONFIG" --cflags "m17n-flt" 2>&5` &&
12645 M17N_FLT_LIBS
=`"$PKG_CONFIG" --libs "m17n-flt" 2>&5`; then
12652 M17N_FLT_CFLAGS
=`$as_echo "$M17N_FLT_CFLAGS" | sed -e "$edit_cflags"`
12653 M17N_FLT_LIBS
=`$as_echo "$M17N_FLT_LIBS" | sed -e 's,///*,/,g'`
12654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$M17N_FLT_CFLAGS' LIBS='$M17N_FLT_LIBS'" >&5
12655 $as_echo "yes CFLAGS='$M17N_FLT_CFLAGS' LIBS='$M17N_FLT_LIBS'" >&6; }
12658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12659 $as_echo "no" >&6; }
12662 ## If we have a custom action on failure, don't print errors, but
12663 ## do set a variable so people can do so. Do it in a subshell
12664 ## to capture any diagnostics in invoking pkg-config.
12665 M17N_FLT_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "m17n-flt") 2>&1`
12672 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12673 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12677 if test $succeeded = yes; then
12683 if test "$HAVE_M17N_FLT" = "yes"; then
12685 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
12697 ### End of font-backend (under X11) section.
12708 ### Use -lXpm if available, unless `--with-xpm=no'.
12712 if test "${HAVE_W32}" = "yes"; then
12713 if test "${with_xpm}" != "no"; then
12714 SAVE_CPPFLAGS
="$CPPFLAGS"
12715 SAVE_LDFLAGS
="$LDFLAGS"
12716 CPPFLAGS
="$CPPFLAGS -I/usr/include/noX"
12717 LDFLAGS
="$LDFLAGS -L/usr/lib/noX"
12718 ac_fn_c_check_header_mongrel
"$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
12719 if test "x$ac_cv_header_X11_xpm_h" = x
""yes; then :
12720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToImage in -lXpm" >&5
12721 $as_echo_n "checking for XpmReadFileToImage in -lXpm... " >&6; }
12722 if test "${ac_cv_lib_Xpm_XpmReadFileToImage+set}" = set; then :
12723 $as_echo_n "(cached) " >&6
12725 ac_check_lib_save_LIBS
=$LIBS
12727 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12728 /* end confdefs.h. */
12730 /* Override any GCC internal prototype to avoid an error.
12731 Use char because int might match the return type of a GCC
12732 builtin and then its argument prototype would still apply. */
12736 char XpmReadFileToImage ();
12740 return XpmReadFileToImage ();
12745 if ac_fn_c_try_link
"$LINENO"; then :
12746 ac_cv_lib_Xpm_XpmReadFileToImage
=yes
12748 ac_cv_lib_Xpm_XpmReadFileToImage
=no
12750 rm -f core conftest.err conftest.
$ac_objext \
12751 conftest
$ac_exeext conftest.
$ac_ext
12752 LIBS
=$ac_check_lib_save_LIBS
12754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToImage" >&5
12755 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToImage" >&6; }
12756 if test "x$ac_cv_lib_Xpm_XpmReadFileToImage" = x
""yes; then :
12763 if test "${HAVE_XPM}" = "yes"; then
12764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
12765 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
12766 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12767 /* end confdefs.h. */
12768 #include "X11/xpm.h"
12769 #ifndef XpmReturnAllocPixels
12770 no_return_alloc_pixels
12774 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12775 $EGREP "no_return_alloc_pixels" >/dev
/null
2>&1; then :
12783 if test "${HAVE_XPM}" = "yes"; then
12784 REAL_CPPFLAGS
="$REAL_CPPFLAGS -I/usr/include/noX"
12785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12786 $as_echo "yes" >&6; }
12788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12789 $as_echo "no" >&6; }
12790 CPPFLAGS
="$SAVE_CPPFLAGS"
12791 LDFLAGS
="$SAVE_LDFLAGS"
12796 if test "${HAVE_XPM}" = "yes"; then
12798 $as_echo "#define HAVE_XPM 1" >>confdefs.h
12804 if test "${HAVE_X11}" = "yes"; then
12805 if test "${with_xpm}" != "no"; then
12806 ac_fn_c_check_header_mongrel
"$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
12807 if test "x$ac_cv_header_X11_xpm_h" = x
""yes; then :
12808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
12809 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
12810 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then :
12811 $as_echo_n "(cached) " >&6
12813 ac_check_lib_save_LIBS
=$LIBS
12814 LIBS
="-lXpm -lX11 $LIBS"
12815 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12816 /* end confdefs.h. */
12818 /* Override any GCC internal prototype to avoid an error.
12819 Use char because int might match the return type of a GCC
12820 builtin and then its argument prototype would still apply. */
12824 char XpmReadFileToPixmap ();
12828 return XpmReadFileToPixmap ();
12833 if ac_fn_c_try_link
"$LINENO"; then :
12834 ac_cv_lib_Xpm_XpmReadFileToPixmap
=yes
12836 ac_cv_lib_Xpm_XpmReadFileToPixmap
=no
12838 rm -f core conftest.err conftest.
$ac_objext \
12839 conftest
$ac_exeext conftest.
$ac_ext
12840 LIBS
=$ac_check_lib_save_LIBS
12842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
12843 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
12844 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x
""yes; then :
12851 if test "${HAVE_XPM}" = "yes"; then
12852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
12853 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
12854 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12855 /* end confdefs.h. */
12856 #include "X11/xpm.h"
12857 #ifndef XpmReturnAllocPixels
12858 no_return_alloc_pixels
12862 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12863 $EGREP "no_return_alloc_pixels" >/dev
/null
2>&1; then :
12871 if test "${HAVE_XPM}" = "yes"; then
12872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12873 $as_echo "yes" >&6; }
12875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12876 $as_echo "no" >&6; }
12881 if test "${HAVE_XPM}" = "yes"; then
12883 $as_echo "#define HAVE_XPM 1" >>confdefs.h
12891 ### Use -ljpeg if available, unless `--with-jpeg=no'.
12894 if test "${HAVE_X11}" = "yes" ||
test "${HAVE_W32}" = "yes"; then
12895 if test "${with_jpeg}" != "no"; then
12896 ac_fn_c_check_header_mongrel
"$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
12897 if test "x$ac_cv_header_jerror_h" = x
""yes; then :
12898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
12899 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
12900 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then :
12901 $as_echo_n "(cached) " >&6
12903 ac_check_lib_save_LIBS
=$LIBS
12904 LIBS
="-ljpeg $LIBS"
12905 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12906 /* end confdefs.h. */
12908 /* Override any GCC internal prototype to avoid an error.
12909 Use char because int might match the return type of a GCC
12910 builtin and then its argument prototype would still apply. */
12914 char jpeg_destroy_compress ();
12918 return jpeg_destroy_compress ();
12923 if ac_fn_c_try_link
"$LINENO"; then :
12924 ac_cv_lib_jpeg_jpeg_destroy_compress
=yes
12926 ac_cv_lib_jpeg_jpeg_destroy_compress
=no
12928 rm -f core conftest.err conftest.
$ac_objext \
12929 conftest
$ac_exeext conftest.
$ac_ext
12930 LIBS
=$ac_check_lib_save_LIBS
12932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
12933 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
12934 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x
""yes; then :
12943 if test "${HAVE_JPEG}" = "yes"; then
12944 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
12946 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12947 /* end confdefs.h. */
12948 #include <jpeglib.h>
12949 version=JPEG_LIB_VERSION
12952 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12953 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev
/null
2>&1; then :
12954 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
12957 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
12958 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
12964 if test "${HAVE_JPEG}" = "yes"; then
12970 ### Use -lpng if available, unless `--with-png=no'.
12973 if test "${HAVE_X11}" = "yes" ||
test "${HAVE_W32}" = "yes"; then
12974 if test "${with_png}" != "no"; then
12975 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
12976 # in /usr/include/libpng.
12977 for ac_header
in png.h libpng
/png.h
12979 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12980 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12981 eval as_val
=\$
$as_ac_Header
12982 if test "x$as_val" = x
""yes; then :
12983 cat >>confdefs.h
<<_ACEOF
12984 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12991 if test "$ac_cv_header_png_h" = yes ||
test "$ac_cv_header_libpng_png_h" = yes ; then
12992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
12993 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
12994 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then :
12995 $as_echo_n "(cached) " >&6
12997 ac_check_lib_save_LIBS
=$LIBS
12998 LIBS
="-lpng -lz -lm $LIBS"
12999 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13000 /* end confdefs.h. */
13002 /* Override any GCC internal prototype to avoid an error.
13003 Use char because int might match the return type of a GCC
13004 builtin and then its argument prototype would still apply. */
13008 char png_get_channels ();
13012 return png_get_channels ();
13017 if ac_fn_c_try_link
"$LINENO"; then :
13018 ac_cv_lib_png_png_get_channels
=yes
13020 ac_cv_lib_png_png_get_channels
=no
13022 rm -f core conftest.err conftest.
$ac_objext \
13023 conftest
$ac_exeext conftest.
$ac_ext
13024 LIBS
=$ac_check_lib_save_LIBS
13026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
13027 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
13028 if test "x$ac_cv_lib_png_png_get_channels" = x
""yes; then :
13035 if test "${HAVE_PNG}" = "yes"; then
13037 $as_echo "#define HAVE_PNG 1" >>confdefs.h
13039 LIBPNG
="-lpng -lz -lm"
13041 ac_fn_c_check_decl
"$LINENO" "png_longjmp" "ac_cv_have_decl_png_longjmp" "#ifdef HAVE_LIBPNG_PNG_H
13042 # include <libpng/png.h>
13048 if test "x$ac_cv_have_decl_png_longjmp" = x
""yes; then :
13052 $as_echo "#define PNG_DEPSTRUCT /**/" >>confdefs.h
13060 ### Use -ltiff if available, unless `--with-tiff=no'.
13063 if test "${HAVE_X11}" = "yes" ||
test "${HAVE_W32}" = "yes"; then
13064 if test "${with_tiff}" != "no"; then
13065 ac_fn_c_check_header_mongrel
"$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
13066 if test "x$ac_cv_header_tiffio_h" = x
""yes; then :
13068 # At least one tiff package requires the jpeg library.
13069 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
13070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
13071 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
13072 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then :
13073 $as_echo_n "(cached) " >&6
13075 ac_check_lib_save_LIBS
=$LIBS
13076 LIBS
="-ltiff $tifflibs $LIBS"
13077 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13078 /* end confdefs.h. */
13080 /* Override any GCC internal prototype to avoid an error.
13081 Use char because int might match the return type of a GCC
13082 builtin and then its argument prototype would still apply. */
13086 char TIFFGetVersion ();
13090 return TIFFGetVersion ();
13095 if ac_fn_c_try_link
"$LINENO"; then :
13096 ac_cv_lib_tiff_TIFFGetVersion
=yes
13098 ac_cv_lib_tiff_TIFFGetVersion
=no
13100 rm -f core conftest.err conftest.
$ac_objext \
13101 conftest
$ac_exeext conftest.
$ac_ext
13102 LIBS
=$ac_check_lib_save_LIBS
13104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
13105 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
13106 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x
""yes; then :
13115 if test "${HAVE_TIFF}" = "yes"; then
13117 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
13124 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
13127 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no" \
13128 ||
test "${HAVE_W32}" = "yes"; then
13129 ac_fn_c_check_header_mongrel
"$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
13130 if test "x$ac_cv_header_gif_lib_h" = x
""yes; then :
13131 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
13132 # Earlier versions can crash Emacs.
13133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
13134 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
13135 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then :
13136 $as_echo_n "(cached) " >&6
13138 ac_check_lib_save_LIBS
=$LIBS
13140 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13141 /* end confdefs.h. */
13143 /* Override any GCC internal prototype to avoid an error.
13144 Use char because int might match the return type of a GCC
13145 builtin and then its argument prototype would still apply. */
13149 char EGifPutExtensionLast ();
13153 return EGifPutExtensionLast ();
13158 if ac_fn_c_try_link
"$LINENO"; then :
13159 ac_cv_lib_gif_EGifPutExtensionLast
=yes
13161 ac_cv_lib_gif_EGifPutExtensionLast
=no
13163 rm -f core conftest.err conftest.
$ac_objext \
13164 conftest
$ac_exeext conftest.
$ac_ext
13165 LIBS
=$ac_check_lib_save_LIBS
13167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
13168 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
13169 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x
""yes; then :
13179 if test "$HAVE_GIF" = yes; then
13181 elif test "$HAVE_GIF" = maybe
; then
13182 # If gif_lib.h but no libgif, try libungif.
13183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
13184 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
13185 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then :
13186 $as_echo_n "(cached) " >&6
13188 ac_check_lib_save_LIBS
=$LIBS
13189 LIBS
="-lungif $LIBS"
13190 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13191 /* end confdefs.h. */
13193 /* Override any GCC internal prototype to avoid an error.
13194 Use char because int might match the return type of a GCC
13195 builtin and then its argument prototype would still apply. */
13199 char EGifPutExtensionLast ();
13203 return EGifPutExtensionLast ();
13208 if ac_fn_c_try_link
"$LINENO"; then :
13209 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
13211 ac_cv_lib_ungif_EGifPutExtensionLast
=no
13213 rm -f core conftest.err conftest.
$ac_objext \
13214 conftest
$ac_exeext conftest.
$ac_ext
13215 LIBS
=$ac_check_lib_save_LIBS
13217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
13218 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
13219 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x
""yes; then :
13225 test "$HAVE_GIF" = yes && LIBGIF
=-lungif
13228 if test "${HAVE_GIF}" = "yes"; then
13230 $as_echo "#define HAVE_GIF 1" >>confdefs.h
13236 if test "${HAVE_X11}" = "yes"; then
13239 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
13240 MISSING
="libXpm" && WITH_NO
="--with-xpm=no"
13241 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
13242 MISSING
="$MISSING libjpeg" && WITH_NO
="$WITH_NO --with-jpeg=no"
13243 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
13244 MISSING
="$MISSING libpng" && WITH_NO
="$WITH_NO --with-png=no"
13245 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
13246 MISSING
="$MISSING libgif/libungif" && WITH_NO
="$WITH_NO --with-gif=no"
13247 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
13248 MISSING
="$MISSING libtiff" && WITH_NO
="$WITH_NO --with-tiff=no"
13250 if test "X${MISSING}" != X
; then
13251 as_fn_error
"The following required libraries were not found:
13253 Maybe some development libraries/packages are missing?
13254 If you don't want to link with them give
13256 as options to configure" "$LINENO" 5
13260 ### Use -lgpm if available, unless `--with-gpm=no'.
13263 if test "${with_gpm}" != "no"; then
13264 ac_fn_c_check_header_mongrel
"$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
13265 if test "x$ac_cv_header_gpm_h" = x
""yes; then :
13266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
13267 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
13268 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then :
13269 $as_echo_n "(cached) " >&6
13271 ac_check_lib_save_LIBS
=$LIBS
13273 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13274 /* end confdefs.h. */
13276 /* Override any GCC internal prototype to avoid an error.
13277 Use char because int might match the return type of a GCC
13278 builtin and then its argument prototype would still apply. */
13286 return Gpm_Open ();
13291 if ac_fn_c_try_link
"$LINENO"; then :
13292 ac_cv_lib_gpm_Gpm_Open
=yes
13294 ac_cv_lib_gpm_Gpm_Open
=no
13296 rm -f core conftest.err conftest.
$ac_objext \
13297 conftest
$ac_exeext conftest.
$ac_ext
13298 LIBS
=$ac_check_lib_save_LIBS
13300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
13301 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
13302 if test "x$ac_cv_lib_gpm_Gpm_Open" = x
""yes; then :
13310 if test "${HAVE_GPM}" = "yes"; then
13312 $as_echo "#define HAVE_GPM 1" >>confdefs.h
13324 ### Use NeXTstep API to implement GUI.
13325 if test "${HAVE_NS}" = "yes"; then
13327 $as_echo "#define HAVE_NS 1" >>confdefs.h
13329 if test "${NS_IMPL_COCOA}" = "yes"; then
13331 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
13334 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
13336 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
13338 # See also .m.o rule in Makefile.in */
13339 # FIXME: are all these flags really needed? Document here why. */
13340 GNUSTEP_CFLAGS
="-D_REENTRANT -fPIC -fno-strict-aliasing -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
13341 ## Extra CFLAGS applied to src/*.m files.
13342 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"
13344 # We also have mouse menus.
13349 if test "${HAVE_W32}" = "yes"; then
13353 ### Use session management (-lSM -lICE) if available
13356 if test "${HAVE_X11}" = "yes"; then
13357 ac_fn_c_check_header_mongrel
"$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
13358 if test "x$ac_cv_header_X11_SM_SMlib_h" = x
""yes; then :
13359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
13360 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
13361 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then :
13362 $as_echo_n "(cached) " >&6
13364 ac_check_lib_save_LIBS
=$LIBS
13365 LIBS
="-lSM -lICE $LIBS"
13366 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13367 /* end confdefs.h. */
13369 /* Override any GCC internal prototype to avoid an error.
13370 Use char because int might match the return type of a GCC
13371 builtin and then its argument prototype would still apply. */
13375 char SmcOpenConnection ();
13379 return SmcOpenConnection ();
13384 if ac_fn_c_try_link
"$LINENO"; then :
13385 ac_cv_lib_SM_SmcOpenConnection
=yes
13387 ac_cv_lib_SM_SmcOpenConnection
=no
13389 rm -f core conftest.err conftest.
$ac_objext \
13390 conftest
$ac_exeext conftest.
$ac_ext
13391 LIBS
=$ac_check_lib_save_LIBS
13393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
13394 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
13395 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x
""yes; then :
13403 if test "${HAVE_X_SM}" = "yes"; then
13405 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
13407 LIBXSM
="-lSM -lICE"
13410 *) LIBS
="$LIBXSM $LIBS" ;;
13416 ### Use XRandr (-lXrandr) if available
13418 if test "${HAVE_X11}" = "yes"; then
13419 XRANDR_REQUIRED
=1.2.2
13420 XRANDR_MODULES
="xrandr >= $XRANDR_REQUIRED"
13424 if test "$PKG_CONFIG" = "no" ; then
13427 PKG_CONFIG_MIN_VERSION
=0.9.0
13428 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $XRANDR_MODULES" >&5
13430 $as_echo_n "checking for $XRANDR_MODULES... " >&6; }
13432 if "$PKG_CONFIG" --exists "$XRANDR_MODULES" 2>&5 &&
13433 XRANDR_CFLAGS
=`"$PKG_CONFIG" --cflags "$XRANDR_MODULES" 2>&5` &&
13434 XRANDR_LIBS
=`"$PKG_CONFIG" --libs "$XRANDR_MODULES" 2>&5`; then
13441 XRANDR_CFLAGS
=`$as_echo "$XRANDR_CFLAGS" | sed -e "$edit_cflags"`
13442 XRANDR_LIBS
=`$as_echo "$XRANDR_LIBS" | sed -e 's,///*,/,g'`
13443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$XRANDR_CFLAGS' LIBS='$XRANDR_LIBS'" >&5
13444 $as_echo "yes CFLAGS='$XRANDR_CFLAGS' LIBS='$XRANDR_LIBS'" >&6; }
13447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13448 $as_echo "no" >&6; }
13451 ## If we have a custom action on failure, don't print errors, but
13452 ## do set a variable so people can do so. Do it in a subshell
13453 ## to capture any diagnostics in invoking pkg-config.
13454 XRANDR_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "$XRANDR_MODULES") 2>&1`
13461 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13462 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13466 if test $succeeded = yes; then
13472 if test $HAVE_XRANDR = no
; then
13473 # Test old way in case pkg-config doesn't have it (older machines).
13474 ac_fn_c_check_header_mongrel
"$LINENO" "X11/extensions/Xrandr.h" "ac_cv_header_X11_extensions_Xrandr_h" "$ac_includes_default"
13475 if test "x$ac_cv_header_X11_extensions_Xrandr_h" = x
""yes; then :
13476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRRQueryExtension in -lXrandr" >&5
13477 $as_echo_n "checking for XRRQueryExtension in -lXrandr... " >&6; }
13478 if test "${ac_cv_lib_Xrandr_XRRQueryExtension+set}" = set; then :
13479 $as_echo_n "(cached) " >&6
13481 ac_check_lib_save_LIBS
=$LIBS
13482 LIBS
="-lXrandr $LIBS"
13483 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13484 /* end confdefs.h. */
13486 /* Override any GCC internal prototype to avoid an error.
13487 Use char because int might match the return type of a GCC
13488 builtin and then its argument prototype would still apply. */
13492 char XRRQueryExtension ();
13496 return XRRQueryExtension ();
13501 if ac_fn_c_try_link
"$LINENO"; then :
13502 ac_cv_lib_Xrandr_XRRQueryExtension
=yes
13504 ac_cv_lib_Xrandr_XRRQueryExtension
=no
13506 rm -f core conftest.err conftest.
$ac_objext \
13507 conftest
$ac_exeext conftest.
$ac_ext
13508 LIBS
=$ac_check_lib_save_LIBS
13510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrandr_XRRQueryExtension" >&5
13511 $as_echo "$ac_cv_lib_Xrandr_XRRQueryExtension" >&6; }
13512 if test "x$ac_cv_lib_Xrandr_XRRQueryExtension" = x
""yes; then :
13519 if test $HAVE_XRANDR = yes; then
13520 XRANDR_LIBS
=-lXrandr
13524 if test $HAVE_XRANDR = yes; then
13525 SAVE_CFLAGS
="$CFLAGS"
13527 CFLAGS
="$XRANDR_CFLAGS $CFLAGS"
13528 LIBS
="$XRANDR_LIBS $LIBS"
13529 for ac_func
in XRRGetOutputPrimary XRRGetScreenResourcesCurrent
13531 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13532 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13533 eval as_val
=\$
$as_ac_var
13534 if test "x$as_val" = x
""yes; then :
13535 cat >>confdefs.h
<<_ACEOF
13536 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13542 CFLAGS
="$SAVE_CFLAGS"
13546 $as_echo "#define HAVE_XRANDR 1" >>confdefs.h
13551 ### Use Xinerama (-lXinerama) if available
13553 if test "${HAVE_X11}" = "yes"; then
13554 XINERAMA_REQUIRED
=1.0.2
13555 XINERAMA_MODULES
="xinerama >= $XINERAMA_REQUIRED"
13559 if test "$PKG_CONFIG" = "no" ; then
13562 PKG_CONFIG_MIN_VERSION
=0.9.0
13563 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $XINERAMA_MODULES" >&5
13565 $as_echo_n "checking for $XINERAMA_MODULES... " >&6; }
13567 if "$PKG_CONFIG" --exists "$XINERAMA_MODULES" 2>&5 &&
13568 XINERAMA_CFLAGS
=`"$PKG_CONFIG" --cflags "$XINERAMA_MODULES" 2>&5` &&
13569 XINERAMA_LIBS
=`"$PKG_CONFIG" --libs "$XINERAMA_MODULES" 2>&5`; then
13576 XINERAMA_CFLAGS
=`$as_echo "$XINERAMA_CFLAGS" | sed -e "$edit_cflags"`
13577 XINERAMA_LIBS
=`$as_echo "$XINERAMA_LIBS" | sed -e 's,///*,/,g'`
13578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$XINERAMA_CFLAGS' LIBS='$XINERAMA_LIBS'" >&5
13579 $as_echo "yes CFLAGS='$XINERAMA_CFLAGS' LIBS='$XINERAMA_LIBS'" >&6; }
13582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13583 $as_echo "no" >&6; }
13586 ## If we have a custom action on failure, don't print errors, but
13587 ## do set a variable so people can do so. Do it in a subshell
13588 ## to capture any diagnostics in invoking pkg-config.
13589 XINERAMA_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "$XINERAMA_MODULES") 2>&1`
13596 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13597 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13601 if test $succeeded = yes; then
13607 if test $HAVE_XINERAMA = no
; then
13608 # Test old way in case pkg-config doesn't have it (older machines).
13609 ac_fn_c_check_header_mongrel
"$LINENO" "X11/extensions/Xinerama.h" "ac_cv_header_X11_extensions_Xinerama_h" "$ac_includes_default"
13610 if test "x$ac_cv_header_X11_extensions_Xinerama_h" = x
""yes; then :
13611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XineramaQueryExtension in -lXinerama" >&5
13612 $as_echo_n "checking for XineramaQueryExtension in -lXinerama... " >&6; }
13613 if test "${ac_cv_lib_Xinerama_XineramaQueryExtension+set}" = set; then :
13614 $as_echo_n "(cached) " >&6
13616 ac_check_lib_save_LIBS
=$LIBS
13617 LIBS
="-lXinerama $LIBS"
13618 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13619 /* end confdefs.h. */
13621 /* Override any GCC internal prototype to avoid an error.
13622 Use char because int might match the return type of a GCC
13623 builtin and then its argument prototype would still apply. */
13627 char XineramaQueryExtension ();
13631 return XineramaQueryExtension ();
13636 if ac_fn_c_try_link
"$LINENO"; then :
13637 ac_cv_lib_Xinerama_XineramaQueryExtension
=yes
13639 ac_cv_lib_Xinerama_XineramaQueryExtension
=no
13641 rm -f core conftest.err conftest.
$ac_objext \
13642 conftest
$ac_exeext conftest.
$ac_ext
13643 LIBS
=$ac_check_lib_save_LIBS
13645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xinerama_XineramaQueryExtension" >&5
13646 $as_echo "$ac_cv_lib_Xinerama_XineramaQueryExtension" >&6; }
13647 if test "x$ac_cv_lib_Xinerama_XineramaQueryExtension" = x
""yes; then :
13654 if test $HAVE_XINERAMA = yes; then
13655 XINERAMA_LIBS
=-lXinerama
13659 if test $HAVE_XINERAMA = yes; then
13661 $as_echo "#define HAVE_XINERAMA 1" >>confdefs.h
13667 ### Use libxml (-lxml2) if available
13669 if test "${with_xml2}" != "no"; then
13670 ### I'm not sure what the version number should be, so I just guessed.
13674 if test "$PKG_CONFIG" = "no" ; then
13677 PKG_CONFIG_MIN_VERSION
=0.9.0
13678 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.6.17" >&5
13680 $as_echo_n "checking for libxml-2.0 > 2.6.17... " >&6; }
13682 if "$PKG_CONFIG" --exists "libxml-2.0 > 2.6.17" 2>&5 &&
13683 LIBXML2_CFLAGS
=`"$PKG_CONFIG" --cflags "libxml-2.0 > 2.6.17" 2>&5` &&
13684 LIBXML2_LIBS
=`"$PKG_CONFIG" --libs "libxml-2.0 > 2.6.17" 2>&5`; then
13691 LIBXML2_CFLAGS
=`$as_echo "$LIBXML2_CFLAGS" | sed -e "$edit_cflags"`
13692 LIBXML2_LIBS
=`$as_echo "$LIBXML2_LIBS" | sed -e 's,///*,/,g'`
13693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBXML2_CFLAGS' LIBS='$LIBXML2_LIBS'" >&5
13694 $as_echo "yes CFLAGS='$LIBXML2_CFLAGS' LIBS='$LIBXML2_LIBS'" >&6; }
13697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13698 $as_echo "no" >&6; }
13701 ## If we have a custom action on failure, don't print errors, but
13702 ## do set a variable so people can do so. Do it in a subshell
13703 ## to capture any diagnostics in invoking pkg-config.
13704 LIBXML2_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "libxml-2.0 > 2.6.17") 2>&1`
13711 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13712 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13716 if test $succeeded = yes; then
13722 if test "${HAVE_LIBXML2}" = "yes"; then
13723 LIBS
="$LIBXML2_LIBS $LIBS"
13724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5
13725 $as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; }
13726 if test "${ac_cv_lib_xml2_htmlReadMemory+set}" = set; then :
13727 $as_echo_n "(cached) " >&6
13729 ac_check_lib_save_LIBS
=$LIBS
13730 LIBS
="-lxml2 $LIBS"
13731 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13732 /* end confdefs.h. */
13734 /* Override any GCC internal prototype to avoid an error.
13735 Use char because int might match the return type of a GCC
13736 builtin and then its argument prototype would still apply. */
13740 char htmlReadMemory ();
13744 return htmlReadMemory ();
13749 if ac_fn_c_try_link
"$LINENO"; then :
13750 ac_cv_lib_xml2_htmlReadMemory
=yes
13752 ac_cv_lib_xml2_htmlReadMemory
=no
13754 rm -f core conftest.err conftest.
$ac_objext \
13755 conftest
$ac_exeext conftest.
$ac_ext
13756 LIBS
=$ac_check_lib_save_LIBS
13758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5
13759 $as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; }
13760 if test "x$ac_cv_lib_xml2_htmlReadMemory" = x
""yes; then :
13766 if test "${HAVE_LIBXML2}" = "yes"; then
13768 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
13779 # If netdb.h doesn't declare h_errno, we must declare it by hand.
13780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
13781 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
13782 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then :
13783 $as_echo_n "(cached) " >&6
13785 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13786 /* end confdefs.h. */
13796 if ac_fn_c_try_link
"$LINENO"; then :
13797 emacs_cv_netdb_declares_h_errno
=yes
13799 emacs_cv_netdb_declares_h_errno
=no
13801 rm -f core conftest.err conftest.
$ac_objext \
13802 conftest
$ac_exeext conftest.
$ac_ext
13804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
13805 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
13806 if test $emacs_cv_netdb_declares_h_errno = yes; then
13808 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
13812 # sqrt and other floating-point functions such as fmod and frexp
13813 # are found in -lm on most systems.
13814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
13815 $as_echo_n "checking for sqrt in -lm... " >&6; }
13816 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
13817 $as_echo_n "(cached) " >&6
13819 ac_check_lib_save_LIBS
=$LIBS
13821 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13822 /* end confdefs.h. */
13824 /* Override any GCC internal prototype to avoid an error.
13825 Use char because int might match the return type of a GCC
13826 builtin and then its argument prototype would still apply. */
13839 if ac_fn_c_try_link
"$LINENO"; then :
13840 ac_cv_lib_m_sqrt
=yes
13842 ac_cv_lib_m_sqrt
=no
13844 rm -f core conftest.err conftest.
$ac_objext \
13845 conftest
$ac_exeext conftest.
$ac_ext
13846 LIBS
=$ac_check_lib_save_LIBS
13848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
13849 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
13850 if test "x$ac_cv_lib_m_sqrt" = x
""yes; then :
13851 cat >>confdefs.h
<<_ACEOF
13852 #define HAVE_LIBM 1
13860 # Check for mail-locking functions in a "mail" library. Probably this should
13861 # have the same check as for liblockfile below.
13862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
13863 $as_echo_n "checking for maillock in -lmail... " >&6; }
13864 if test "${ac_cv_lib_mail_maillock+set}" = set; then :
13865 $as_echo_n "(cached) " >&6
13867 ac_check_lib_save_LIBS
=$LIBS
13868 LIBS
="-lmail $LIBS"
13869 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13870 /* end confdefs.h. */
13872 /* Override any GCC internal prototype to avoid an error.
13873 Use char because int might match the return type of a GCC
13874 builtin and then its argument prototype would still apply. */
13882 return maillock ();
13887 if ac_fn_c_try_link
"$LINENO"; then :
13888 ac_cv_lib_mail_maillock
=yes
13890 ac_cv_lib_mail_maillock
=no
13892 rm -f core conftest.err conftest.
$ac_objext \
13893 conftest
$ac_exeext conftest.
$ac_ext
13894 LIBS
=$ac_check_lib_save_LIBS
13896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
13897 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
13898 if test "x$ac_cv_lib_mail_maillock" = x
""yes; then :
13904 if test $have_mail = yes; then
13906 LIBS
="$LIBS_MAIL $LIBS"
13908 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
13913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
13914 $as_echo_n "checking for maillock in -llockfile... " >&6; }
13915 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then :
13916 $as_echo_n "(cached) " >&6
13918 ac_check_lib_save_LIBS
=$LIBS
13919 LIBS
="-llockfile $LIBS"
13920 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13921 /* end confdefs.h. */
13923 /* Override any GCC internal prototype to avoid an error.
13924 Use char because int might match the return type of a GCC
13925 builtin and then its argument prototype would still apply. */
13933 return maillock ();
13938 if ac_fn_c_try_link
"$LINENO"; then :
13939 ac_cv_lib_lockfile_maillock
=yes
13941 ac_cv_lib_lockfile_maillock
=no
13943 rm -f core conftest.err conftest.
$ac_objext \
13944 conftest
$ac_exeext conftest.
$ac_ext
13945 LIBS
=$ac_check_lib_save_LIBS
13947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
13948 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
13949 if test "x$ac_cv_lib_lockfile_maillock" = x
""yes; then :
13955 if test $have_lockfile = yes; then
13956 LIBS_MAIL
=-llockfile
13957 LIBS
="$LIBS_MAIL $LIBS"
13959 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
13962 # If we have the shared liblockfile, assume we must use it for mail
13963 # locking (e.g. Debian). If we couldn't link against liblockfile
13964 # (no liblockfile.a installed), ensure that we don't need to.
13965 # Extract the first word of "liblockfile.so", so it can be a program name with args.
13966 set dummy liblockfile.so
; ac_word
=$2
13967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13968 $as_echo_n "checking for $ac_word... " >&6; }
13969 if test "${ac_cv_prog_liblockfile+set}" = set; then :
13970 $as_echo_n "(cached) " >&6
13972 if test -n "$liblockfile"; then
13973 ac_cv_prog_liblockfile
="$liblockfile" # Let the user override the test.
13975 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13976 as_dummy
="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
13977 for as_dir
in $as_dummy
13980 test -z "$as_dir" && as_dir
=.
13981 for ac_exec_ext
in '' $ac_executable_extensions; do
13982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13983 ac_cv_prog_liblockfile
="yes"
13984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13991 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile
="no"
13994 liblockfile
=$ac_cv_prog_liblockfile
13995 if test -n "$liblockfile"; then
13996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
13997 $as_echo "$liblockfile" >&6; }
13999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14000 $as_echo "no" >&6; }
14004 if test $ac_cv_prog_liblockfile = yes; then
14005 as_fn_error
"Shared liblockfile found but can't link against it.
14006 This probably means that movemail could lose mail.
14007 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
14015 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
14016 ## interlock access to the mail spool. The alternative is a lock file named
14017 ## /usr/spool/mail/$USER.lock.
14020 aix4-2
) mail_lock
="lockf" ;;
14022 gnu|freebsd|dragonfly|netbsd|openbsd|darwin|irix6-5
) mail_lock
="flock" ;;
14024 ## On GNU/Linux systems, both methods are used by various mail programs.
14025 ## I assume most people are using newer mailers that have heard of flock.
14026 ## Change this if you need to.
14027 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
14028 ## configure gets the right answers, and that means *NOT* using flock.
14029 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
14030 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
14031 ## Debian maintainer hasn't provided a clean fix for Emacs.
14032 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
14033 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
14034 ## correct logic. -- fx
14035 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
14036 ## liblockfile is a Free Software replacement for libmail, used on
14037 ## Debian systems and elsewhere. -rfr.
14040 if test $have_mail = yes ||
test $have_lockfile = yes; then
14041 test $ac_cv_header_maillock_h = yes && mail_lock
=no
14047 case "$mail_lock" in
14049 $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
14053 $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
14056 *) BLESSMAIL_TARGET
="need-blessmail" ;;
14061 for ac_func
in gethostname \
14062 getrusage get_current_dir_name \
14064 select getpagesize setlocale \
14065 utimes getrlimit setrlimit shutdown getaddrinfo \
14066 strsignal setitimer \
14067 sendto recvfrom getsockname getpeername getifaddrs freeifaddrs \
14068 gai_strerror mkstemp getline getdelim sync \
14069 difftime posix_memalign \
14070 getpwent endpwent getgrent endgrent \
14072 cfmakeraw cfsetspeed copysign __executable_start
14074 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14075 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
14076 eval as_val
=\$
$as_ac_var
14077 if test "x$as_val" = x
""yes; then :
14078 cat >>confdefs.h
<<_ACEOF
14079 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14086 ## Eric Backus <ericb@lsid.hp.com> says, HP-UX 9.x on HP 700 machines
14087 ## has a broken `rint' in some library versions including math library
14088 ## version number A.09.05.
14089 ## You can fix the math library by installing patch number PHSS_4630.
14090 ## But we can fix it more reliably for Emacs by just not using rint.
14091 ## We also skip HAVE_RANDOM - see comments in src/conf_post.h.
14094 *) for ac_func
in random rint
14096 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14097 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
14098 eval as_val
=\$
$as_ac_var
14099 if test "x$as_val" = x
""yes; then :
14100 cat >>confdefs.h
<<_ACEOF
14101 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unwind_init" >&5
14110 $as_echo_n "checking for __builtin_unwind_init... " >&6; }
14111 if test "${emacs_cv_func___builtin_unwind_init+set}" = set; then :
14112 $as_echo_n "(cached) " >&6
14114 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14115 /* end confdefs.h. */
14120 __builtin_unwind_init ();
14125 if ac_fn_c_try_link
"$LINENO"; then :
14126 emacs_cv_func___builtin_unwind_init
=yes
14128 emacs_cv_func___builtin_unwind_init
=no
14130 rm -f core conftest.err conftest.
$ac_objext \
14131 conftest
$ac_exeext conftest.
$ac_ext
14133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func___builtin_unwind_init" >&5
14134 $as_echo "$emacs_cv_func___builtin_unwind_init" >&6; }
14135 if test $emacs_cv_func___builtin_unwind_init = yes; then
14137 $as_echo "#define HAVE___BUILTIN_UNWIND_INIT 1" >>confdefs.h
14145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
14146 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
14147 if test "${ac_cv_sys_largefile_source+set}" = set; then :
14148 $as_echo_n "(cached) " >&6
14151 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14152 /* end confdefs.h. */
14153 #include <sys/types.h> /* for off_t */
14158 int (*fp) (FILE *, off_t, int) = fseeko;
14159 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
14164 if ac_fn_c_try_link
"$LINENO"; then :
14165 ac_cv_sys_largefile_source
=no
; break
14167 rm -f core conftest.err conftest.
$ac_objext \
14168 conftest
$ac_exeext conftest.
$ac_ext
14169 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14170 /* end confdefs.h. */
14171 #define _LARGEFILE_SOURCE 1
14172 #include <sys/types.h> /* for off_t */
14177 int (*fp) (FILE *, off_t, int) = fseeko;
14178 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
14183 if ac_fn_c_try_link
"$LINENO"; then :
14184 ac_cv_sys_largefile_source
=1; break
14186 rm -f core conftest.err conftest.
$ac_objext \
14187 conftest
$ac_exeext conftest.
$ac_ext
14188 ac_cv_sys_largefile_source
=unknown
14192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
14193 $as_echo "$ac_cv_sys_largefile_source" >&6; }
14194 case $ac_cv_sys_largefile_source in #(
14197 cat >>confdefs.h
<<_ACEOF
14198 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
14204 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
14205 # in glibc 2.1.3, but that breaks too many other things.
14206 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
14207 if test $ac_cv_sys_largefile_source != unknown
; then
14209 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
14215 for ac_func
in grantpt
14217 ac_fn_c_check_func
"$LINENO" "grantpt" "ac_cv_func_grantpt"
14218 if test "x$ac_cv_func_grantpt" = x
""yes; then :
14219 cat >>confdefs.h
<<_ACEOF
14220 #define HAVE_GRANTPT 1
14227 # PTY-related GNU extensions.
14228 for ac_func
in getpt posix_openpt
14230 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14231 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
14232 eval as_val
=\$
$as_ac_var
14233 if test "x$as_val" = x
""yes; then :
14234 cat >>confdefs.h
<<_ACEOF
14235 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14242 # Check this now, so that we will NOT find the above functions in ncurses.
14243 # That is because we have not set up to link ncurses in lib-src.
14244 # It's better to believe a function is not available
14245 # than to expect to find it in ncurses.
14246 # Also we need tputs and friends to be able to build at all.
14247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
14248 $as_echo_n "checking for library containing tputs... " >&6; }
14249 # Run a test program that contains a call to tputs, a call that is
14250 # never executed. This tests whether a pre-'main' dynamic linker
14251 # works with the library. It's too much trouble to actually call
14252 # tputs in the test program, due to portability hassles. When
14253 # cross-compiling, assume the test program will run if it links.
14255 # Maybe curses should be tried earlier?
14256 # See http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9736#35
14257 for tputs_library
in '' tinfo ncurses terminfo termcap curses
; do
14259 if test -z "$tputs_library"; then
14261 msg
='none required'
14263 LIBS_TERMCAP
=-l$tputs_library
14265 LIBS
="$LIBS_TERMCAP $LIBS"
14267 if test "$cross_compiling" = yes; then :
14268 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14269 /* end confdefs.h. */
14271 extern void tputs (const char *, int, int (*)(int));
14272 int main (int argc, char **argv)
14275 tputs (argv[0], 0, 0);
14280 if ac_fn_c_try_link
"$LINENO"; then :
14285 rm -f core conftest.err conftest.
$ac_objext \
14286 conftest
$ac_exeext conftest.
$ac_ext
14288 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14289 /* end confdefs.h. */
14291 extern void tputs (const char *, int, int (*)(int));
14292 int main (int argc, char **argv)
14295 tputs (argv[0], 0, 0);
14300 if ac_fn_c_try_run
"$LINENO"; then :
14305 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14306 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14310 if test "X$msg" != Xno
; then
14314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5
14315 $as_echo "$msg" >&6; }
14316 if test "X$msg" = Xno
; then
14317 as_fn_error
"The required function \`tputs' was not found in any library.
14318 The following libraries were tried (in order):
14319 libtinfo, libncurses, libterminfo, libtermcap, libcurses
14320 Please try installing whichever of these libraries is most appropriate
14321 for your system, together with its header files.
14322 For example, a libncurses-dev(el) or similar package." "$LINENO" 5
14325 ## Use termcap instead of terminfo?
14326 ## Only true for: freebsd < 40000, ms-w32, msdos, netbsd < 599002500.
14328 ## FIXME? In the cases below where we unconditionally set
14329 ## LIBS_TERMCAP="-lncurses", this overrides LIBS_TERMCAP = -ltinfo,
14330 ## if that was found above to have tputs.
14331 ## Should we use the gnu* logic everywhere?
14333 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
14334 ## The ncurses library has been moved out of the System framework in
14335 ## Mac OS X 10.2. So if configure detects it, set the command-line
14336 ## option to use it.
14337 darwin
) LIBS_TERMCAP
="-lncurses" ;;
14339 gnu
*) test -z "$LIBS_TERMCAP" && LIBS_TERMCAP
="-lncurses" ;;
14342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
14343 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
14344 if test "${emacs_cv_freebsd_terminfo+set}" = set; then :
14345 $as_echo_n "(cached) " >&6
14347 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14348 /* end confdefs.h. */
14349 #include <osreldate.h>
14353 #if __FreeBSD_version < 400000
14361 if ac_fn_c_try_link
"$LINENO"; then :
14362 emacs_cv_freebsd_terminfo
=yes
14364 emacs_cv_freebsd_terminfo
=no
14366 rm -f core conftest.err conftest.
$ac_objext \
14367 conftest
$ac_exeext conftest.
$ac_ext
14371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
14372 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
14374 if test $emacs_cv_freebsd_terminfo = yes; then
14375 LIBS_TERMCAP
="-lncurses"
14378 LIBS_TERMCAP
="-ltermcap"
14383 if test "x$LIBS_TERMCAP" != "x-lterminfo"; then
14385 LIBS_TERMCAP
="-ltermcap"
14389 openbsd | dragonfly
) LIBS_TERMCAP
="-lncurses" ;;
14391 ## hpux: Make sure we get select from libc rather than from libcurses
14392 ## because libcurses on HPUX 10.10 has a broken version of select.
14393 ## We used to use -lc -lcurses, but this may be cleaner.
14394 ## FIXME? But TERMINFO = yes on hpux (it used to be explicitly
14395 # set that way, now it uses the default). Isn't this a contradiction?
14396 hpux
*) LIBS_TERMCAP
="-ltermcap" ;;
14400 TERMCAP_OBJ
=tparam.o
14401 if test $TERMINFO = yes; then
14403 $as_echo "#define TERMINFO 1" >>confdefs.h
14405 TERMCAP_OBJ
=terminfo.o
14411 # Do we have res_init, for detecting changes in /etc/resolv.conf?
14412 # On Darwin, res_init appears not to be useful: see bug#562 and
14413 # http://lists.gnu.org/archive/html/emacs-devel/2007-11/msg01467.html
14416 if test $opsys != darwin
; then
14418 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14419 /* end confdefs.h. */
14420 #include <netinet/in.h>
14421 #include <arpa/nameser.h>
14422 #include <resolv.h>
14431 if ac_fn_c_try_link
"$LINENO"; then :
14436 rm -f core conftest.err conftest.
$ac_objext \
14437 conftest
$ac_exeext conftest.
$ac_ext
14438 if test "$have_res_init" = no
; then
14440 LIBS
="$LIBS -lresolv"
14441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
14442 $as_echo_n "checking for res_init with -lresolv... " >&6; }
14443 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14444 /* end confdefs.h. */
14445 #include <netinet/in.h>
14446 #include <arpa/nameser.h>
14447 #include <resolv.h>
14456 if ac_fn_c_try_link
"$LINENO"; then :
14461 rm -f core conftest.err conftest.
$ac_objext \
14462 conftest
$ac_exeext conftest.
$ac_ext
14463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
14464 $as_echo "$have_res_init" >&6; }
14465 if test "$have_res_init" = yes ; then
14471 if test "$have_res_init" = yes; then
14473 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
14477 # Do we need the Hesiod library to provide the support routines?
14479 if test "$with_hesiod" != no
; then
14480 # Don't set $LIBS here -- see comments above. FIXME which comments?
14481 ac_fn_c_check_func
"$LINENO" "res_send" "ac_cv_func_res_send"
14482 if test "x$ac_cv_func_res_send" = x
""yes; then :
14485 ac_fn_c_check_func
"$LINENO" "__res_send" "ac_cv_func___res_send"
14486 if test "x$ac_cv_func___res_send" = x
""yes; then :
14489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
14490 $as_echo_n "checking for res_send in -lresolv... " >&6; }
14491 if test "${ac_cv_lib_resolv_res_send+set}" = set; then :
14492 $as_echo_n "(cached) " >&6
14494 ac_check_lib_save_LIBS
=$LIBS
14495 LIBS
="-lresolv $LIBS"
14496 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14497 /* end confdefs.h. */
14499 /* Override any GCC internal prototype to avoid an error.
14500 Use char because int might match the return type of a GCC
14501 builtin and then its argument prototype would still apply. */
14509 return res_send ();
14514 if ac_fn_c_try_link
"$LINENO"; then :
14515 ac_cv_lib_resolv_res_send
=yes
14517 ac_cv_lib_resolv_res_send
=no
14519 rm -f core conftest.err conftest.
$ac_objext \
14520 conftest
$ac_exeext conftest.
$ac_ext
14521 LIBS
=$ac_check_lib_save_LIBS
14523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
14524 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
14525 if test "x$ac_cv_lib_resolv_res_send" = x
""yes; then :
14528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
14529 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
14530 if test "${ac_cv_lib_resolv___res_send+set}" = set; then :
14531 $as_echo_n "(cached) " >&6
14533 ac_check_lib_save_LIBS
=$LIBS
14534 LIBS
="-lresolv $LIBS"
14535 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14536 /* end confdefs.h. */
14538 /* Override any GCC internal prototype to avoid an error.
14539 Use char because int might match the return type of a GCC
14540 builtin and then its argument prototype would still apply. */
14544 char __res_send ();
14548 return __res_send ();
14553 if ac_fn_c_try_link
"$LINENO"; then :
14554 ac_cv_lib_resolv___res_send
=yes
14556 ac_cv_lib_resolv___res_send
=no
14558 rm -f core conftest.err conftest.
$ac_objext \
14559 conftest
$ac_exeext conftest.
$ac_ext
14560 LIBS
=$ac_check_lib_save_LIBS
14562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
14563 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
14564 if test "x$ac_cv_lib_resolv___res_send" = x
""yes; then :
14574 if test "$resolv" = yes ; then
14579 ac_fn_c_check_func
"$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
14580 if test "x$ac_cv_func_hes_getmailhost" = x
""yes; then :
14583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
14584 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
14585 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then :
14586 $as_echo_n "(cached) " >&6
14588 ac_check_lib_save_LIBS
=$LIBS
14589 LIBS
="-lhesiod $RESOLVLIB $LIBS"
14590 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14591 /* end confdefs.h. */
14593 /* Override any GCC internal prototype to avoid an error.
14594 Use char because int might match the return type of a GCC
14595 builtin and then its argument prototype would still apply. */
14599 char hes_getmailhost ();
14603 return hes_getmailhost ();
14608 if ac_fn_c_try_link
"$LINENO"; then :
14609 ac_cv_lib_hesiod_hes_getmailhost
=yes
14611 ac_cv_lib_hesiod_hes_getmailhost
=no
14613 rm -f core conftest.err conftest.
$ac_objext \
14614 conftest
$ac_exeext conftest.
$ac_ext
14615 LIBS
=$ac_check_lib_save_LIBS
14617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
14618 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
14619 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x
""yes; then :
14628 if test x
"$hesiod" = xyes
; then
14630 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
14637 # Do we need libresolv (due to res_init or Hesiod)?
14638 if test "$resolv" = yes && test $opsys != darwin
; then
14640 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
14648 # These tell us which Kerberos-related libraries to use.
14655 if test "${with_kerberos}" != no
; then
14656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
14657 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
14658 if test "${ac_cv_lib_com_err_com_err+set}" = set; then :
14659 $as_echo_n "(cached) " >&6
14661 ac_check_lib_save_LIBS
=$LIBS
14662 LIBS
="-lcom_err $LIBS"
14663 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14664 /* end confdefs.h. */
14666 /* Override any GCC internal prototype to avoid an error.
14667 Use char because int might match the return type of a GCC
14668 builtin and then its argument prototype would still apply. */
14681 if ac_fn_c_try_link
"$LINENO"; then :
14682 ac_cv_lib_com_err_com_err
=yes
14684 ac_cv_lib_com_err_com_err
=no
14686 rm -f core conftest.err conftest.
$ac_objext \
14687 conftest
$ac_exeext conftest.
$ac_ext
14688 LIBS
=$ac_check_lib_save_LIBS
14690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
14691 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
14692 if test "x$ac_cv_lib_com_err_com_err" = x
""yes; then :
14698 if test $have_com_err = yes; then
14699 COM_ERRLIB
=-lcom_err
14700 LIBS
="$COM_ERRLIB $LIBS"
14702 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
14705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
14706 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
14707 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then :
14708 $as_echo_n "(cached) " >&6
14710 ac_check_lib_save_LIBS
=$LIBS
14711 LIBS
="-lcrypto $LIBS"
14712 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14713 /* end confdefs.h. */
14715 /* Override any GCC internal prototype to avoid an error.
14716 Use char because int might match the return type of a GCC
14717 builtin and then its argument prototype would still apply. */
14721 char mit_des_cbc_encrypt ();
14725 return mit_des_cbc_encrypt ();
14730 if ac_fn_c_try_link
"$LINENO"; then :
14731 ac_cv_lib_crypto_mit_des_cbc_encrypt
=yes
14733 ac_cv_lib_crypto_mit_des_cbc_encrypt
=no
14735 rm -f core conftest.err conftest.
$ac_objext \
14736 conftest
$ac_exeext conftest.
$ac_ext
14737 LIBS
=$ac_check_lib_save_LIBS
14739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
14740 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
14741 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x
""yes; then :
14747 if test $have_crypto = yes; then
14749 LIBS
="$CRYPTOLIB $LIBS"
14751 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
14754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
14755 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
14756 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then :
14757 $as_echo_n "(cached) " >&6
14759 ac_check_lib_save_LIBS
=$LIBS
14760 LIBS
="-lk5crypto $LIBS"
14761 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14762 /* end confdefs.h. */
14764 /* Override any GCC internal prototype to avoid an error.
14765 Use char because int might match the return type of a GCC
14766 builtin and then its argument prototype would still apply. */
14770 char mit_des_cbc_encrypt ();
14774 return mit_des_cbc_encrypt ();
14779 if ac_fn_c_try_link
"$LINENO"; then :
14780 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=yes
14782 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=no
14784 rm -f core conftest.err conftest.
$ac_objext \
14785 conftest
$ac_exeext conftest.
$ac_ext
14786 LIBS
=$ac_check_lib_save_LIBS
14788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
14789 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
14790 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x
""yes; then :
14796 if test $have_k5crypto = yes; then
14797 CRYPTOLIB
=-lk5crypto
14798 LIBS
="$CRYPTOLIB $LIBS"
14800 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
14803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
14804 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
14805 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then :
14806 $as_echo_n "(cached) " >&6
14808 ac_check_lib_save_LIBS
=$LIBS
14809 LIBS
="-lkrb5 $LIBS"
14810 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14811 /* end confdefs.h. */
14813 /* Override any GCC internal prototype to avoid an error.
14814 Use char because int might match the return type of a GCC
14815 builtin and then its argument prototype would still apply. */
14819 char krb5_init_context ();
14823 return krb5_init_context ();
14828 if ac_fn_c_try_link
"$LINENO"; then :
14829 ac_cv_lib_krb5_krb5_init_context
=yes
14831 ac_cv_lib_krb5_krb5_init_context
=no
14833 rm -f core conftest.err conftest.
$ac_objext \
14834 conftest
$ac_exeext conftest.
$ac_ext
14835 LIBS
=$ac_check_lib_save_LIBS
14837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
14838 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
14839 if test "x$ac_cv_lib_krb5_krb5_init_context" = x
""yes; then :
14845 if test $have_krb5=yes; then
14847 LIBS
="$KRB5LIB $LIBS"
14849 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
14852 if test "${with_kerberos5}" = no
; then
14853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
14854 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
14855 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
14856 $as_echo_n "(cached) " >&6
14858 ac_check_lib_save_LIBS
=$LIBS
14859 LIBS
="-ldes425 $LIBS"
14860 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14861 /* end confdefs.h. */
14863 /* Override any GCC internal prototype to avoid an error.
14864 Use char because int might match the return type of a GCC
14865 builtin and then its argument prototype would still apply. */
14869 char des_cbc_encrypt ();
14873 return des_cbc_encrypt ();
14878 if ac_fn_c_try_link
"$LINENO"; then :
14879 ac_cv_lib_des425_des_cbc_encrypt
=yes
14881 ac_cv_lib_des425_des_cbc_encrypt
=no
14883 rm -f core conftest.err conftest.
$ac_objext \
14884 conftest
$ac_exeext conftest.
$ac_ext
14885 LIBS
=$ac_check_lib_save_LIBS
14887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
14888 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
14889 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x
""yes; then :
14895 if test $have_des425 = yes; then
14897 LIBS
="$DESLIB $LIBS"
14899 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
14902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
14903 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
14904 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
14905 $as_echo_n "(cached) " >&6
14907 ac_check_lib_save_LIBS
=$LIBS
14909 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14910 /* end confdefs.h. */
14912 /* Override any GCC internal prototype to avoid an error.
14913 Use char because int might match the return type of a GCC
14914 builtin and then its argument prototype would still apply. */
14918 char des_cbc_encrypt ();
14922 return des_cbc_encrypt ();
14927 if ac_fn_c_try_link
"$LINENO"; then :
14928 ac_cv_lib_des_des_cbc_encrypt
=yes
14930 ac_cv_lib_des_des_cbc_encrypt
=no
14932 rm -f core conftest.err conftest.
$ac_objext \
14933 conftest
$ac_exeext conftest.
$ac_ext
14934 LIBS
=$ac_check_lib_save_LIBS
14936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
14937 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
14938 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x
""yes; then :
14944 if test $have_des = yes; then
14946 LIBS
="$DESLIB $LIBS"
14948 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
14952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
14953 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
14954 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then :
14955 $as_echo_n "(cached) " >&6
14957 ac_check_lib_save_LIBS
=$LIBS
14958 LIBS
="-lkrb4 $LIBS"
14959 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14960 /* end confdefs.h. */
14962 /* Override any GCC internal prototype to avoid an error.
14963 Use char because int might match the return type of a GCC
14964 builtin and then its argument prototype would still apply. */
14968 char krb_get_cred ();
14972 return krb_get_cred ();
14977 if ac_fn_c_try_link
"$LINENO"; then :
14978 ac_cv_lib_krb4_krb_get_cred
=yes
14980 ac_cv_lib_krb4_krb_get_cred
=no
14982 rm -f core conftest.err conftest.
$ac_objext \
14983 conftest
$ac_exeext conftest.
$ac_ext
14984 LIBS
=$ac_check_lib_save_LIBS
14986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
14987 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
14988 if test "x$ac_cv_lib_krb4_krb_get_cred" = x
""yes; then :
14994 if test $have_krb4 = yes; then
14996 LIBS
="$KRB4LIB $LIBS"
14998 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
15001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
15002 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
15003 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then :
15004 $as_echo_n "(cached) " >&6
15006 ac_check_lib_save_LIBS
=$LIBS
15008 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15009 /* end confdefs.h. */
15011 /* Override any GCC internal prototype to avoid an error.
15012 Use char because int might match the return type of a GCC
15013 builtin and then its argument prototype would still apply. */
15017 char krb_get_cred ();
15021 return krb_get_cred ();
15026 if ac_fn_c_try_link
"$LINENO"; then :
15027 ac_cv_lib_krb_krb_get_cred
=yes
15029 ac_cv_lib_krb_krb_get_cred
=no
15031 rm -f core conftest.err conftest.
$ac_objext \
15032 conftest
$ac_exeext conftest.
$ac_ext
15033 LIBS
=$ac_check_lib_save_LIBS
15035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
15036 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
15037 if test "x$ac_cv_lib_krb_krb_get_cred" = x
""yes; then :
15043 if test $have_krb = yes; then
15045 LIBS
="$KRB4LIB $LIBS"
15047 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
15053 if test "${with_kerberos5}" != no
; then
15054 for ac_header
in krb5.h
15056 ac_fn_c_check_header_mongrel
"$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
15057 if test "x$ac_cv_header_krb5_h" = x
""yes; then :
15058 cat >>confdefs.h
<<_ACEOF
15059 #define HAVE_KRB5_H 1
15061 ac_fn_c_check_member
"$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
15063 if test "x$ac_cv_member_krb5_error_text" = x
""yes; then :
15065 cat >>confdefs.h
<<_ACEOF
15066 #define HAVE_KRB5_ERROR_TEXT 1
15071 ac_fn_c_check_member
"$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
15073 if test "x$ac_cv_member_krb5_error_e_text" = x
""yes; then :
15075 cat >>confdefs.h
<<_ACEOF
15076 #define HAVE_KRB5_ERROR_E_TEXT 1
15087 for ac_header
in des.h
15089 ac_fn_c_check_header_mongrel
"$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
15090 if test "x$ac_cv_header_des_h" = x
""yes; then :
15091 cat >>confdefs.h
<<_ACEOF
15092 #define HAVE_DES_H 1
15096 for ac_header
in kerberosIV
/des.h
15098 ac_fn_c_check_header_mongrel
"$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
15099 if test "x$ac_cv_header_kerberosIV_des_h" = x
""yes; then :
15100 cat >>confdefs.h
<<_ACEOF
15101 #define HAVE_KERBEROSIV_DES_H 1
15105 for ac_header
in kerberos
/des.h
15107 ac_fn_c_check_header_mongrel
"$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
15108 if test "x$ac_cv_header_kerberos_des_h" = x
""yes; then :
15109 cat >>confdefs.h
<<_ACEOF
15110 #define HAVE_KERBEROS_DES_H 1
15125 for ac_header
in krb.h
15127 ac_fn_c_check_header_mongrel
"$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
15128 if test "x$ac_cv_header_krb_h" = x
""yes; then :
15129 cat >>confdefs.h
<<_ACEOF
15130 #define HAVE_KRB_H 1
15134 for ac_header
in kerberosIV
/krb.h
15136 ac_fn_c_check_header_mongrel
"$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
15137 if test "x$ac_cv_header_kerberosIV_krb_h" = x
""yes; then :
15138 cat >>confdefs.h
<<_ACEOF
15139 #define HAVE_KERBEROSIV_KRB_H 1
15143 for ac_header
in kerberos
/krb.h
15145 ac_fn_c_check_header_mongrel
"$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
15146 if test "x$ac_cv_header_kerberos_krb_h" = x
""yes; then :
15147 cat >>confdefs.h
<<_ACEOF
15148 #define HAVE_KERBEROS_KRB_H 1
15164 for ac_header
in com_err.h
15166 ac_fn_c_check_header_mongrel
"$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
15167 if test "x$ac_cv_header_com_err_h" = x
""yes; then :
15168 cat >>confdefs.h
<<_ACEOF
15169 #define HAVE_COM_ERR_H 1
15187 for ac_func
in $ac_func_list
15189 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15190 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
15191 eval as_val
=\$
$as_ac_var
15192 if test "x$as_val" = x
""yes; then :
15193 cat >>confdefs.h
<<_ACEOF
15194 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
15204 $as_echo_n "checking whether localtime caches TZ... " >&6; }
15205 if test "${emacs_cv_localtime_cache+set}" = set; then :
15206 $as_echo_n "(cached) " >&6
15208 if test x
$ac_cv_func_tzset = xyes
; then
15209 if test "$cross_compiling" = yes; then :
15210 # If we have tzset, assume the worst when cross-compiling.
15211 emacs_cv_localtime_cache
=yes
15213 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15214 /* end confdefs.h. */
15216 char TZ_GMT0[] = "TZ=GMT0";
15217 char TZ_PST8[] = "TZ=PST8";
15220 time_t now = time ((time_t *) 0);
15221 int hour_GMT0, hour_unset;
15222 if (putenv (TZ_GMT0) != 0)
15224 hour_GMT0 = localtime (&now)->tm_hour;
15226 hour_unset = localtime (&now)->tm_hour;
15227 if (putenv (TZ_PST8) != 0)
15229 if (localtime (&now)->tm_hour == hour_GMT0)
15232 if (localtime (&now)->tm_hour != hour_unset)
15237 if ac_fn_c_try_run
"$LINENO"; then :
15238 emacs_cv_localtime_cache
=no
15240 emacs_cv_localtime_cache
=yes
15242 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15243 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15247 # If we lack tzset, report that localtime does not cache TZ,
15248 # since we can't invalidate the cache if we don't have tzset.
15249 emacs_cv_localtime_cache
=no
15252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
15253 $as_echo "$emacs_cv_localtime_cache" >&6; }
15254 if test $emacs_cv_localtime_cache = yes; then
15256 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
15261 ac_fn_c_check_func
"$LINENO" "socket" "ac_cv_func_socket"
15262 if test "x$ac_cv_func_socket" = x
""yes; then :
15268 if test $ok_so_far = yes; then
15269 ac_fn_c_check_header_mongrel
"$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
15270 if test "x$ac_cv_header_netinet_in_h" = x
""yes; then :
15278 if test $ok_so_far = yes; then
15279 ac_fn_c_check_header_mongrel
"$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
15280 if test "x$ac_cv_header_arpa_inet_h" = x
""yes; then :
15288 if test $ok_so_far = yes; then
15290 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
15294 if test -f /usr
/lpp
/X11
/bin
/smt.exp
; then
15296 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
15300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
15301 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
15302 if test -d /dev
/pts
&& ls -d /dev
/ptmx
> /dev
/null
2>&1 ; then
15303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15304 $as_echo "yes" >&6; }
15306 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
15309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15310 $as_echo "no" >&6; }
15314 *-solaris2.4 |
*-solaris2.4.
*)
15315 : ${ac_cv_func_vfork_works=no};;
15318 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
15319 if test "x$ac_cv_type_pid_t" = x
""yes; then :
15323 cat >>confdefs.h
<<_ACEOF
15329 for ac_header
in vfork.h
15331 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
15332 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
15333 cat >>confdefs.h
<<_ACEOF
15334 #define HAVE_VFORK_H 1
15341 for ac_func
in fork vfork
15343 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15344 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
15345 eval as_val
=\$
$as_ac_var
15346 if test "x$as_val" = x
""yes; then :
15347 cat >>confdefs.h
<<_ACEOF
15348 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15354 if test "x$ac_cv_func_fork" = xyes
; then
15355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
15356 $as_echo_n "checking for working fork... " >&6; }
15357 if test "${ac_cv_func_fork_works+set}" = set; then :
15358 $as_echo_n "(cached) " >&6
15360 if test "$cross_compiling" = yes; then :
15361 ac_cv_func_fork_works
=cross
15363 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15364 /* end confdefs.h. */
15365 $ac_includes_default
15370 /* By Ruediger Kuhlmann. */
15371 return fork () < 0;
15377 if ac_fn_c_try_run
"$LINENO"; then :
15378 ac_cv_func_fork_works
=yes
15380 ac_cv_func_fork_works
=no
15382 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15383 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
15388 $as_echo "$ac_cv_func_fork_works" >&6; }
15391 ac_cv_func_fork_works
=$ac_cv_func_fork
15393 if test "x$ac_cv_func_fork_works" = xcross
; then
15395 *-*-amigaos* |
*-*-msdosdjgpp*)
15396 # Override, as these systems have only a dummy fork() stub
15397 ac_cv_func_fork_works
=no
15400 ac_cv_func_fork_works
=yes
15403 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
15404 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
15406 ac_cv_func_vfork_works
=$ac_cv_func_vfork
15407 if test "x$ac_cv_func_vfork" = xyes
; then
15408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
15409 $as_echo_n "checking for working vfork... " >&6; }
15410 if test "${ac_cv_func_vfork_works+set}" = set; then :
15411 $as_echo_n "(cached) " >&6
15413 if test "$cross_compiling" = yes; then :
15414 ac_cv_func_vfork_works
=cross
15416 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15417 /* end confdefs.h. */
15418 /* Thanks to Paul Eggert for this test. */
15419 $ac_includes_default
15420 #include <sys/wait.h>
15421 #ifdef HAVE_VFORK_H
15422 # include <vfork.h>
15424 /* On some sparc systems, changes by the child to local and incoming
15425 argument registers are propagated back to the parent. The compiler
15426 is told about this with #include <vfork.h>, but some compilers
15427 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
15428 static variable whose address is put into a register that is
15429 clobbered by the vfork. */
15432 sparc_address_test (int arg)
15434 sparc_address_test (arg) int arg;
15437 static pid_t child;
15455 pid_t parent = getpid ();
15458 sparc_address_test (0);
15463 /* Here is another test for sparc vfork register problems. This
15464 test uses lots of local variables, at least as many local
15465 variables as main has allocated so far including compiler
15466 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
15467 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
15468 reuse the register of parent for one of the local variables,
15469 since it will think that parent can't possibly be used any more
15470 in this routine. Assigning to the local variable will thus
15471 munge parent in the parent process. */
15473 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
15474 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
15475 /* Convince the compiler that p..p7 are live; otherwise, it might
15476 use the same hardware register for all 8 local variables. */
15477 if (p != p1 || p != p2 || p != p3 || p != p4
15478 || p != p5 || p != p6 || p != p7)
15481 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
15482 from child file descriptors. If the child closes a descriptor
15483 before it execs or exits, this munges the parent's descriptor
15484 as well. Test for this by closing stdout in the child. */
15485 _exit(close(fileno(stdout)) != 0);
15490 while (wait(&status) != child)
15493 /* Was there some problem with vforking? */
15496 /* Did the child fail? (This shouldn't happen.) */
15499 /* Did the vfork/compiler bug occur? */
15500 || parent != getpid()
15502 /* Did the file descriptor bug occur? */
15503 || fstat(fileno(stdout), &st) != 0
15508 if ac_fn_c_try_run
"$LINENO"; then :
15509 ac_cv_func_vfork_works
=yes
15511 ac_cv_func_vfork_works
=no
15513 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15514 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
15519 $as_echo "$ac_cv_func_vfork_works" >&6; }
15522 if test "x$ac_cv_func_fork_works" = xcross
; then
15523 ac_cv_func_vfork_works
=$ac_cv_func_vfork
15524 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
15525 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
15528 if test "x$ac_cv_func_vfork_works" = xyes
; then
15530 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
15534 $as_echo "#define vfork fork" >>confdefs.h
15537 if test "x$ac_cv_func_fork_works" = xyes
; then
15539 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
15544 for ac_func
in snprintf
15546 ac_fn_c_check_func
"$LINENO" "snprintf" "ac_cv_func_snprintf"
15547 if test "x$ac_cv_func_snprintf" = x
""yes; then :
15548 cat >>confdefs.h
<<_ACEOF
15549 #define HAVE_SNPRINTF 1
15556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
15557 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
15558 if test "${emacs_cv_langinfo_codeset+set}" = set; then :
15559 $as_echo_n "(cached) " >&6
15561 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15562 /* end confdefs.h. */
15563 #include <langinfo.h>
15567 char* cs = nl_langinfo(CODESET);
15572 if ac_fn_c_try_link
"$LINENO"; then :
15573 emacs_cv_langinfo_codeset
=yes
15575 emacs_cv_langinfo_codeset
=no
15577 rm -f core conftest.err conftest.
$ac_objext \
15578 conftest
$ac_exeext conftest.
$ac_ext
15581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
15582 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
15583 if test $emacs_cv_langinfo_codeset = yes; then
15585 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
15589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
15590 $as_echo_n "checking for mbstate_t... " >&6; }
15591 if test "${ac_cv_type_mbstate_t+set}" = set; then :
15592 $as_echo_n "(cached) " >&6
15594 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15595 /* end confdefs.h. */
15596 $ac_includes_default
15597 # include <wchar.h>
15601 mbstate_t x; return sizeof x;
15606 if ac_fn_c_try_compile
"$LINENO"; then :
15607 ac_cv_type_mbstate_t
=yes
15609 ac_cv_type_mbstate_t
=no
15611 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
15614 $as_echo "$ac_cv_type_mbstate_t" >&6; }
15615 if test $ac_cv_type_mbstate_t = yes; then
15617 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
15621 $as_echo "#define mbstate_t int" >>confdefs.h
15625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
15626 $as_echo_n "checking for C restricted array declarations... " >&6; }
15627 if test "${emacs_cv_c_restrict_arr+set}" = set; then :
15628 $as_echo_n "(cached) " >&6
15630 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15631 /* end confdefs.h. */
15632 void fred (int x[__restrict]);
15641 if ac_fn_c_try_compile
"$LINENO"; then :
15642 emacs_cv_c_restrict_arr
=yes
15644 emacs_cv_c_restrict_arr
=no
15646 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
15649 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
15650 if test "$emacs_cv_c_restrict_arr" = yes; then
15652 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
15658 $as_echo "#define AMPERSAND_FULL_NAME 1" >>confdefs.h
15662 $as_echo "#define CLASH_DETECTION 1" >>confdefs.h
15665 ## Note: PTYs are broken on darwin <6. Use at your own risk.
15667 $as_echo "#define HAVE_PTYS 1" >>confdefs.h
15671 $as_echo "#define HAVE_SOCKETS 1" >>confdefs.h
15677 $as_echo "#define NULL_DEVICE \"/dev/null\"" >>confdefs.h
15681 $as_echo "#define SEPCHAR ':'" >>confdefs.h
15685 $as_echo "#define subprocesses 1" >>confdefs.h
15689 $as_echo "#define USER_FULL_NAME pw->pw_gecos" >>confdefs.h
15694 $as_echo "#define DIRECTORY_SEP '/'" >>confdefs.h
15700 $as_echo "#define IS_DEVICE_SEP(_c_) 0" >>confdefs.h
15704 $as_echo "#define IS_DIRECTORY_SEP(_c_) ((_c_) == DIRECTORY_SEP)" >>confdefs.h
15708 $as_echo "#define IS_ANY_SEP(_c_) (IS_DIRECTORY_SEP (_c_))" >>confdefs.h
15716 if test x
$ac_cv_lib_Xmu_XmuConvertStandardSelection != xyes
; then
15717 $as_echo "#define NO_EDITRES 1" >>confdefs.h
15723 $as_echo "#define NO_EDITRES 1" >>confdefs.h
15730 irix6-5 | sol2
* | unixware
)
15732 $as_echo "#define NSIG_MINIMUM 32" >>confdefs.h
15737 emacs_broken_SIGIO
=no
15740 hpux
* | irix6-5 | openbsd | sol2
* | unixware
)
15741 emacs_broken_SIGIO
=yes
15746 $as_echo "#define BROKEN_GET_CURRENT_DIR_NAME 1" >>confdefs.h
15752 $as_echo "#define BROKEN_PTY_READ_AFTER_EAGAIN 1" >>confdefs.h
15760 $as_echo "#define HAVE_PROCFS 1" >>confdefs.h
15766 darwin | dragonfly | freebsd | netbsd | openbsd
)
15768 $as_echo "#define DONT_REOPEN_PTY 1" >>confdefs.h
15774 netbsd | openbsd
) sound_device
="/dev/audio" ;;
15775 *) sound_device
="/dev/dsp" ;;
15779 cat >>confdefs.h
<<_ACEOF
15780 #define DEFAULT_SOUND_DEVICE "$sound_device"
15786 darwin | gnu-linux | gnu-kfreebsd
)
15788 $as_echo "#define INTERRUPT_INPUT 1" >>confdefs.h
15795 cygwin|gnu|gnu-linux|gnu-kfreebsd|irix6-5|freebsd|netbsd|openbsd
)
15797 $as_echo "#define NARROWPROTO 1" >>confdefs.h
15811 $as_echo "#define PTY_ITERATION int c; for (c = 0; !c ; c++)" >>confdefs.h
15813 $as_echo "#define PTY_NAME_SPRINTF strcpy (pty_name, \"/dev/ptc\");" >>confdefs.h
15815 $as_echo "#define PTY_TTY_NAME_SPRINTF strcpy (pty_name, ttyname (fd));" >>confdefs.h
15820 $as_echo "#define PTY_ITERATION int i; for (i = 0; i < 1; i++)" >>confdefs.h
15822 $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
15824 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
15826 $as_echo "#define PTY_TTY_NAME_SPRINTF /**/" >>confdefs.h
15831 $as_echo "#define PTY_ITERATION int i; for (i = 0; i < 1; i++)" >>confdefs.h
15833 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
15835 $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
15837 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
15839 $as_echo "#define PTY_TTY_NAME_SPRINTF /**/" >>confdefs.h
15844 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
15848 gnu-linux | gnu-kfreebsd | dragonfly | freebsd | netbsd
)
15849 if test "x$ac_cv_func_grantpt" = xyes
; then
15851 $as_echo "#define UNIX98_PTYS 1" >>confdefs.h
15853 $as_echo "#define PTY_ITERATION int i; for (i = 0; i < 1; i++)" >>confdefs.h
15855 $as_echo "#define PTY_TTY_NAME_SPRINTF { char *ptyname = 0; sigset_t blocked; sigemptyset (&blocked); sigaddset (&blocked, SIGCHLD); pthread_sigmask (SIG_BLOCK, &blocked, 0); if (grantpt (fd) != -1 && unlockpt (fd) != -1) ptyname = ptsname(fd); pthread_sigmask (SIG_UNBLOCK, &blocked, 0); if (!ptyname) { close (fd); return -1; } snprintf (pty_name, sizeof pty_name, \"%s\", ptyname); }" >>confdefs.h
15857 if test "x$ac_cv_func_posix_openpt" = xyes
; then
15858 $as_echo "#define PTY_OPEN fd = posix_openpt (O_RDWR | O_NOCTTY)" >>confdefs.h
15860 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
15862 elif test "x$ac_cv_func_getpt" = xyes
; then
15863 $as_echo "#define PTY_OPEN fd = getpt ()" >>confdefs.h
15865 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
15868 $as_echo "#define PTY_NAME_SPRINTF strcpy (pty_name, \"/dev/ptmx\");" >>confdefs.h
15872 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
15878 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
15880 $as_echo "#define PTY_NAME_SPRINTF sprintf (pty_name, \"/dev/ptym/pty%c%x\", c, i);" >>confdefs.h
15882 $as_echo "#define PTY_TTY_NAME_SPRINTF sprintf (pty_name, \"/dev/pty/tty%c%x\", c, i);" >>confdefs.h
15887 $as_echo "#define PTY_ITERATION /**/" >>confdefs.h
15889 $as_echo "#define FIRST_PTY_LETTER 'q'" >>confdefs.h
15891 $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
15893 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
15895 $as_echo "#define PTY_TTY_NAME_SPRINTF /**/" >>confdefs.h
15900 $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, sizeof pty_name, \"%s\", ptyname); }" >>confdefs.h
15905 $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, sizeof pty_name, \"%s\", ptyname); }" >>confdefs.h
15913 $as_echo "#define FIRST_PTY_LETTER 'z'" >>confdefs.h
15915 $as_echo "#define PTY_NAME_SPRINTF strcpy (pty_name, \"/dev/ptmx\");" >>confdefs.h
15918 $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
15927 aix4-2 | cygwin | gnu | irix6-5 | dragonfly | freebsd | netbsd | openbsd | darwin
)
15928 $as_echo "#define SIGNALS_VIA_CHARACTERS 1" >>confdefs.h
15932 gnu-linux | gnu-kfreebsd
)
15934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signals via characters" >&5
15935 $as_echo_n "checking for signals via characters... " >&6; }
15936 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15937 /* end confdefs.h. */
15939 #include <linux/version.h>
15940 #if LINUX_VERSION_CODE < 0x20400
15941 # error "Linux version too old"
15952 if ac_fn_c_try_cpp
"$LINENO"; then :
15953 emacs_signals_via_chars
=yes
15955 emacs_signals_via_chars
=no
15957 rm -f conftest.err conftest.
$ac_ext
15959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_signals_via_chars" >&5
15960 $as_echo "$emacs_signals_via_chars" >&6; }
15961 test $emacs_signals_via_chars = yes && $as_echo "#define SIGNALS_VIA_CHARACTERS 1" >>confdefs.h
15971 $as_echo "#define DATA_SEG_BITS 0x20000000" >>confdefs.h
15975 $as_echo "#define DATA_SEG_BITS 0x40000000" >>confdefs.h
15979 $as_echo "#define DATA_SEG_BITS 0x10000000" >>confdefs.h
15988 darwin
) $as_echo "#define TAB3 OXTABS" >>confdefs.h
15991 gnu | dragonfly | freebsd | netbsd | openbsd
)
15993 $as_echo "#define TABDLY OXTABS" >>confdefs.h
15995 $as_echo "#define TAB3 OXTABS" >>confdefs.h
15999 gnu-linux | gnu-kfreebsd
)
16000 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16001 /* end confdefs.h. */
16015 if ac_fn_c_try_cpp
"$LINENO"; then :
16017 $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
16020 rm -f conftest.err conftest.
$ac_ext
16025 $as_echo "#define RUN_TIME_REMAP 1" >>confdefs.h
16035 gnu-linux | gnu-kfreebsd
)
16036 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16037 /* end confdefs.h. */
16039 #if defined __i386__ || defined __sparc__ || defined __mc68000__ \
16040 || defined __alpha__ || defined __mips__ || defined __s390__ \
16041 || defined __arm__ || defined __powerpc__ || defined __amd64__ \
16042 || defined __ia64__ || defined __sh__
16045 # error "setjmp not known to work on this arch"
16056 if ac_fn_c_try_cpp
"$LINENO"; then :
16057 $as_echo "#define GC_SETJMP_WORKS 1" >>confdefs.h
16060 rm -f conftest.err conftest.
$ac_ext
16065 if test x
$GCC = xyes
; then
16066 $as_echo "#define GC_SETJMP_WORKS 1" >>confdefs.h
16070 dragonfly | freebsd | netbsd | openbsd | irix6-5 | sol2
* )
16071 $as_echo "#define GC_SETJMP_WORKS 1" >>confdefs.h
16076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _setjmp" >&5
16077 $as_echo_n "checking for _setjmp... " >&6; }
16078 if test "${emacs_cv_func__setjmp+set}" = set; then :
16079 $as_echo_n "(cached) " >&6
16081 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16082 /* end confdefs.h. */
16083 #include <setjmp.h>
16095 if ac_fn_c_try_link
"$LINENO"; then :
16096 emacs_cv_func__setjmp
=yes
16098 emacs_cv_func__setjmp
=no
16100 rm -f core conftest.err conftest.
$ac_objext \
16101 conftest
$ac_exeext conftest.
$ac_ext
16103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func__setjmp" >&5
16104 $as_echo "$emacs_cv_func__setjmp" >&6; }
16105 if test $emacs_cv_func__setjmp = yes; then
16107 $as_echo "#define HAVE__SETJMP 1" >>confdefs.h
16110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
16111 $as_echo_n "checking for sigsetjmp... " >&6; }
16112 if test "${emacs_cv_func_sigsetjmp+set}" = set; then :
16113 $as_echo_n "(cached) " >&6
16115 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16116 /* end confdefs.h. */
16117 #include <setjmp.h>
16123 if (! sigsetjmp (j, 1))
16129 if ac_fn_c_try_link
"$LINENO"; then :
16130 emacs_cv_func_sigsetjmp
=yes
16132 emacs_cv_func_sigsetjmp
=no
16134 rm -f core conftest.err conftest.
$ac_objext \
16135 conftest
$ac_exeext conftest.
$ac_ext
16137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func_sigsetjmp" >&5
16138 $as_echo "$emacs_cv_func_sigsetjmp" >&6; }
16139 if test $emacs_cv_func_sigsetjmp = yes; then
16141 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
16149 $as_echo "#define TIOCSIGSEND TIOCSIGNAL" >>confdefs.h
16158 $as_echo "#define XOS_NEEDS_TIME_H 1" >>confdefs.h
16172 $as_echo "#define USG /**/" >>confdefs.h
16174 $as_echo "#define USG5 /**/" >>confdefs.h
16176 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16177 /* end confdefs.h. */
16180 # error "_AIX not defined"
16191 if ac_fn_c_try_cpp
"$LINENO"; then :
16195 $as_echo "#define _AIX /**/" >>confdefs.h
16198 rm -f conftest.err conftest.
$ac_ext
16203 $as_echo "#define CYGWIN 1" >>confdefs.h
16209 $as_echo "#define DARWIN_OS /**/" >>confdefs.h
16213 gnu-linux | gnu-kfreebsd
)
16214 $as_echo "#define USG /**/" >>confdefs.h
16217 $as_echo "#define GNU_LINUX /**/" >>confdefs.h
16222 $as_echo "#define USG /**/" >>confdefs.h
16224 $as_echo "#define USG5 /**/" >>confdefs.h
16227 $as_echo "#define HPUX /**/" >>confdefs.h
16232 $as_echo "#define USG /**/" >>confdefs.h
16234 $as_echo "#define USG5 /**/" >>confdefs.h
16236 $as_echo "#define USG5_4 /**/" >>confdefs.h
16239 $as_echo "#define IRIX6_5 /**/" >>confdefs.h
16244 $as_echo "#define USG /**/" >>confdefs.h
16246 $as_echo "#define USG5 /**/" >>confdefs.h
16248 $as_echo "#define USG5_4 /**/" >>confdefs.h
16251 $as_echo "#define SOLARIS2 /**/" >>confdefs.h
16256 $as_echo "#define USG /**/" >>confdefs.h
16258 $as_echo "#define USG5 /**/" >>confdefs.h
16260 $as_echo "#define USG5_4 /**/" >>confdefs.h
16265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable FIONREAD" >&5
16266 $as_echo_n "checking for usable FIONREAD... " >&6; }
16267 if test "${emacs_cv_usable_FIONREAD+set}" = set; then :
16268 $as_echo_n "(cached) " >&6
16272 emacs_cv_usable_FIONREAD
=no
16276 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16277 /* end confdefs.h. */
16278 #include <sys/types.h>
16279 #include <sys/ioctl.h>
16281 # include <sys/filio.h>
16287 int foo = ioctl (0, FIONREAD, &foo);
16292 if ac_fn_c_try_compile
"$LINENO"; then :
16293 emacs_cv_usable_FIONREAD
=yes
16295 emacs_cv_usable_FIONREAD
=no
16297 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_usable_FIONREAD" >&5
16302 $as_echo "$emacs_cv_usable_FIONREAD" >&6; }
16303 if test $emacs_cv_usable_FIONREAD = yes; then
16305 $as_echo "#define USABLE_FIONREAD 1" >>confdefs.h
16308 if test $emacs_broken_SIGIO = no
; then
16309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable SIGIO" >&5
16310 $as_echo_n "checking for usable SIGIO... " >&6; }
16311 if test "${emacs_cv_usable_SIGIO+set}" = set; then :
16312 $as_echo_n "(cached) " >&6
16314 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16315 /* end confdefs.h. */
16317 #include <signal.h>
16322 int foo = SIGIO | F_SETFL | FASYNC;
16327 if ac_fn_c_try_compile
"$LINENO"; then :
16328 emacs_cv_usable_SIGIO
=yes
16330 emacs_cv_usable_SIGIO
=no
16332 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_usable_SIGIO" >&5
16335 $as_echo "$emacs_cv_usable_SIGIO" >&6; }
16336 if test $emacs_cv_usable_SIGIO = yes; then
16338 $as_echo "#define USABLE_SIGIO 1" >>confdefs.h
16348 $as_echo "#define G_SLICE_ALWAYS_MALLOC 1" >>confdefs.h
16354 $as_echo "#define USG_SUBTTY_WORKS 1" >>confdefs.h
16360 $as_echo "#define PREFER_VSUSP 1" >>confdefs.h
16366 $as_echo "#define _STRUCTURED_PROC 1" >>confdefs.h
16371 # Set up the CFLAGS for real compilation, so we can substitute it.
16372 CFLAGS
="$REAL_CFLAGS"
16373 CPPFLAGS
="$REAL_CPPFLAGS"
16375 ## Hack to detect a buggy GCC version.
16376 if test "x$GCC" = xyes \
16377 && test x
"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
16378 && test x
"`echo $CFLAGS | grep '\-O[23]'`" != x \
16379 && test x
"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x
; then
16380 as_fn_error
"GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
16383 version
=$PACKAGE_VERSION
16385 copyright
="Copyright (C) 2013 Free Software Foundation, Inc."
16387 cat >>confdefs.h
<<_ACEOF
16388 #define COPYRIGHT "$copyright"
16393 ### Specify what sort of things we'll be editing into Makefile and config.h.
16394 ### Use configuration here uncanonicalized to avoid exceeding size limits.
16420 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
16421 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
16422 ## end of LIBX_BASE, but nothing ever set it.
16427 ## Used in lwlib/Makefile.in.
16436 if test -n "${term_header}"; then
16438 cat >>confdefs.h
<<_ACEOF
16439 #define TERM_HEADER "${term_header}"
16445 cat >>confdefs.h
<<_ACEOF
16446 #define EMACS_CONFIGURATION "${canonical}"
16449 emacs_config_options
=`echo "$emacs_config_options " | sed -e 's/--no-create //' -e 's/--no-recursion //' -e 's/ *$//' -e "s/\"/'/g"`
16451 cat >>confdefs.h
<<_ACEOF
16452 #define EMACS_CONFIG_OPTIONS "${emacs_config_options}"
16460 if test "${HAVE_X_WINDOWS}" = "yes" ; then
16462 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
16465 XOBJ
="xterm.o xfns.o xselect.o xrdb.o xsmfns.o xsettings.o xgselect.o"
16467 if test "$HAVE_XFT" = "yes"; then
16468 FONT_OBJ
="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
16469 elif test "$HAVE_FREETYPE" = "yes"; then
16470 FONT_OBJ
="$FONT_OBJ ftfont.o ftxfont.o"
16480 if test "${USE_X_TOOLKIT}" != "none" ; then
16481 WIDGET_OBJ
=widget.o
16483 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
16485 if test "${USE_X_TOOLKIT}" = "LUCID"; then
16487 $as_echo "#define USE_LUCID 1" >>confdefs.h
16489 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
16491 $as_echo "#define USE_MOTIF 1" >>confdefs.h
16496 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
16497 MOTIF_LIBW
="$MOTIF_LIBW -lXpm"
16501 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
16502 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
16503 MOTIF_LIBW
="MOTIF_LIBW -lXimp"
16507 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
16508 MOTIF_LIBW
="$MOTIF_LIBW -li18n"
16511 MOTIF_LIBW
="$MOTIF_LIBW $LIBXP"
16517 case "$USE_X_TOOLKIT" in
16518 MOTIF
) TOOLKIT_LIBW
="$MOTIF_LIBW" ;;
16519 LUCID
) TOOLKIT_LIBW
="$LUCID_LIBW" ;;
16520 none
) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW
="$GTK_LIBS" ;;
16524 if test "$USE_X_TOOLKIT" = "none"; then
16525 LIBXT_OTHER
="\$(LIBXSM)"
16526 OLDXMENU_TARGET
="really-oldXMenu"
16528 LIBXT_OTHER
="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
16529 OLDXMENU_TARGET
="really-lwlib"
16533 ## The X Menu stuff is present in the X10 distribution, but missing
16534 ## from X11. If we have X10, just use the installed library;
16535 ## otherwise, use our own copy.
16536 if test "${HAVE_X11}" = "yes" ; then
16538 $as_echo "#define HAVE_X11 1" >>confdefs.h
16541 if test "$USE_X_TOOLKIT" = "none"; then
16542 OLDXMENU
="\${oldXMenudir}/libXMenu11.a"
16544 OLDXMENU
="\${lwlibdir}/liblw.a"
16546 LIBXMENU
="\$(OLDXMENU)"
16547 LIBX_OTHER
="\$(LIBXT) \$(LIBX_EXTRA)"
16548 OLDXMENU_DEPS
="\${OLDXMENU} ../src/\${OLDXMENU}"
16550 ## For a syntactically valid Makefile; not actually used for anything.
16551 ## See comments in src/Makefile.in.
16553 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
16554 if test "${HAVE_X_WINDOWS}" = "yes"; then
16563 if test "$HAVE_GTK" = "yes" ||
test "$HAVE_MENUS" != "yes"; then
16576 if test "${HAVE_MENUS}" = "yes" ; then
16578 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
16582 if test "${GNU_MALLOC}" = "yes" ; then
16584 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
16589 if test "${REL_ALLOC}" = "yes" ; then
16591 $as_echo "#define REL_ALLOC 1" >>confdefs.h
16594 test "$system_malloc" != "yes" && RALLOC_OBJ
=ralloc.o
16598 if test "$opsys" = "cygwin"; then
16599 CYGWIN_OBJ
="sheap.o cygw32.o"
16600 ## Cygwin differs because of its unexec().
16602 POST_ALLOC_OBJ
=lastfile.o
16605 PRE_ALLOC_OBJ
=lastfile.o
16612 # Configure gnulib. Although this does not affect CFLAGS or LIBS permanently.
16613 # it temporarily reverts them to their pre-pkg-config values,
16614 # because gnulib needs to work with both src (which uses the
16615 # pkg-config stuff) and lib-src (which does not). For example, gnulib
16616 # may need to determine whether LIB_CLOCK_GETTIME should contain -lrt,
16617 # and it therefore needs to run in an environment where LIBS does not
16618 # already contain -lrt merely because 'pkg-config --libs' printed '-lrt'
16619 # for some package unrelated to lib-src.
16620 SAVE_CFLAGS
=$CFLAGS
16622 CFLAGS
=$pre_PKG_CONFIG_CFLAGS
16623 LIBS
="$LIB_PTHREAD $pre_PKG_CONFIG_LIBS"
16635 LIBC_FATAL_STDERR_
=1
16636 export LIBC_FATAL_STDERR_
16638 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16639 # for constant arguments. Useless!
16640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
16641 $as_echo_n "checking for working alloca.h... " >&6; }
16642 if test "${ac_cv_working_alloca_h+set}" = set; then :
16643 $as_echo_n "(cached) " >&6
16645 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16646 /* end confdefs.h. */
16647 #include <alloca.h>
16651 char *p = (char *) alloca (2 * sizeof (int));
16657 if ac_fn_c_try_link
"$LINENO"; then :
16658 ac_cv_working_alloca_h
=yes
16660 ac_cv_working_alloca_h
=no
16662 rm -f core conftest.err conftest.
$ac_objext \
16663 conftest
$ac_exeext conftest.
$ac_ext
16665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
16666 $as_echo "$ac_cv_working_alloca_h" >&6; }
16667 if test $ac_cv_working_alloca_h = yes; then
16669 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
16673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
16674 $as_echo_n "checking for alloca... " >&6; }
16675 if test "${ac_cv_func_alloca_works+set}" = set; then :
16676 $as_echo_n "(cached) " >&6
16678 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16679 /* end confdefs.h. */
16681 # define alloca __builtin_alloca
16684 # include <malloc.h>
16685 # define alloca _alloca
16687 # ifdef HAVE_ALLOCA_H
16688 # include <alloca.h>
16693 # ifndef alloca /* predefined by HP cc +Olibcalls */
16704 char *p = (char *) alloca (1);
16710 if ac_fn_c_try_link
"$LINENO"; then :
16711 ac_cv_func_alloca_works
=yes
16713 ac_cv_func_alloca_works
=no
16715 rm -f core conftest.err conftest.
$ac_objext \
16716 conftest
$ac_exeext conftest.
$ac_ext
16718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
16719 $as_echo "$ac_cv_func_alloca_works" >&6; }
16721 if test $ac_cv_func_alloca_works = yes; then
16723 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
16726 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16727 # that cause trouble. Some versions do not even contain alloca or
16728 # contain a buggy version. If you still want to use their alloca,
16729 # use ar to extract alloca.o from them instead of compiling alloca.c.
16735 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
16737 $as_echo "#define C_ALLOCA 1" >>confdefs.h
16740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 'alloca.c' needs Cray hooks" >&5
16741 $as_echo_n "checking whether 'alloca.c' needs Cray hooks... " >&6; }
16742 if test "${ac_cv_os_cray+set}" = set; then :
16743 $as_echo_n "(cached) " >&6
16745 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16746 /* end confdefs.h. */
16747 #if defined CRAY && ! defined CRAY2
16754 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16755 $EGREP "webecray" >/dev
/null
2>&1; then :
16763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
16764 $as_echo "$ac_cv_os_cray" >&6; }
16765 if test $ac_cv_os_cray = yes; then
16766 for ac_func
in _getb67 GETB67 getb67
; do
16767 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16768 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
16769 eval as_val
=\$
$as_ac_var
16770 if test "x$as_val" = x
""yes; then :
16772 cat >>confdefs.h
<<_ACEOF
16773 #define CRAY_STACKSEG_END $ac_func
16782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
16783 $as_echo_n "checking stack direction for C alloca... " >&6; }
16784 if test "${ac_cv_c_stack_direction+set}" = set; then :
16785 $as_echo_n "(cached) " >&6
16787 if test "$cross_compiling" = yes; then :
16788 ac_cv_c_stack_direction
=0
16790 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16791 /* end confdefs.h. */
16792 $ac_includes_default
16794 find_stack_direction (int *addr, int depth)
16796 int dir, dummy = 0;
16799 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
16800 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
16801 return dir + dummy;
16805 main (int argc, char **argv)
16807 return find_stack_direction (0, argc + !argv + 20) < 0;
16810 if ac_fn_c_try_run
"$LINENO"; then :
16811 ac_cv_c_stack_direction
=1
16813 ac_cv_c_stack_direction
=-1
16815 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16816 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
16821 $as_echo "$ac_cv_c_stack_direction" >&6; }
16822 cat >>confdefs.h
<<_ACEOF
16823 #define STACK_DIRECTION $ac_cv_c_stack_direction
16832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
16833 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
16834 if test "${ac_cv_c_bigendian+set}" = set; then :
16835 $as_echo_n "(cached) " >&6
16837 ac_cv_c_bigendian
=unknown
16838 # See if we're dealing with a universal compiler.
16839 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16840 /* end confdefs.h. */
16841 #ifndef __APPLE_CC__
16842 not a universal capable compiler
16847 if ac_fn_c_try_compile
"$LINENO"; then :
16849 # Check for potential -arch flags. It is not universal unless
16850 # there are at least two -arch flags with different values.
16853 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
16854 if test -n "$ac_prev"; then
16856 i?
86 | x86_64 | ppc | ppc64
)
16857 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
16860 ac_cv_c_bigendian
=universal
16866 elif test "x$ac_word" = "x-arch"; then
16871 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16872 if test $ac_cv_c_bigendian = unknown
; then
16873 # See if sys/param.h defines the BYTE_ORDER macro.
16874 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16875 /* end confdefs.h. */
16876 #include <sys/types.h>
16877 #include <sys/param.h>
16882 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
16883 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
16885 bogus endian macros
16892 if ac_fn_c_try_compile
"$LINENO"; then :
16893 # It does; now see whether it defined to BIG_ENDIAN or not.
16894 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16895 /* end confdefs.h. */
16896 #include <sys/types.h>
16897 #include <sys/param.h>
16902 #if BYTE_ORDER != BIG_ENDIAN
16910 if ac_fn_c_try_compile
"$LINENO"; then :
16911 ac_cv_c_bigendian
=yes
16913 ac_cv_c_bigendian
=no
16915 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16917 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16919 if test $ac_cv_c_bigendian = unknown
; then
16920 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
16921 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16922 /* end confdefs.h. */
16923 #include <limits.h>
16928 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
16929 bogus endian macros
16936 if ac_fn_c_try_compile
"$LINENO"; then :
16937 # It does; now see whether it defined to _BIG_ENDIAN or not.
16938 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16939 /* end confdefs.h. */
16940 #include <limits.h>
16945 #ifndef _BIG_ENDIAN
16953 if ac_fn_c_try_compile
"$LINENO"; then :
16954 ac_cv_c_bigendian
=yes
16956 ac_cv_c_bigendian
=no
16958 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16960 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16962 if test $ac_cv_c_bigendian = unknown
; then
16963 # Compile a test program.
16964 if test "$cross_compiling" = yes; then :
16965 # Try to guess by grepping values from an object file.
16966 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16967 /* end confdefs.h. */
16968 short int ascii_mm[] =
16969 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
16970 short int ascii_ii[] =
16971 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
16972 int use_ascii (int i) {
16973 return ascii_mm[i] + ascii_ii[i];
16975 short int ebcdic_ii[] =
16976 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
16977 short int ebcdic_mm[] =
16978 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
16979 int use_ebcdic (int i) {
16980 return ebcdic_mm[i] + ebcdic_ii[i];
16987 return use_ascii (foo) == use_ebcdic (foo);
16992 if ac_fn_c_try_compile
"$LINENO"; then :
16993 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
16994 ac_cv_c_bigendian
=yes
16996 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
16997 if test "$ac_cv_c_bigendian" = unknown
; then
16998 ac_cv_c_bigendian
=no
17000 # finding both strings is unlikely to happen, but who knows?
17001 ac_cv_c_bigendian
=unknown
17005 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17007 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17008 /* end confdefs.h. */
17009 $ac_includes_default
17014 /* Are we little or big endian? From Harbison&Steele. */
17018 char c[sizeof (long int)];
17021 return u.c[sizeof (long int) - 1] == 1;
17027 if ac_fn_c_try_run
"$LINENO"; then :
17028 ac_cv_c_bigendian
=no
17030 ac_cv_c_bigendian
=yes
17032 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17033 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
17039 $as_echo "$ac_cv_c_bigendian" >&6; }
17040 case $ac_cv_c_bigendian in #(
17042 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
17048 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
17052 as_fn_error
"unknown endianness
17053 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
17065 GNULIB_EUIDACCESS
=0;
17066 GNULIB_FACCESSAT
=0;
17069 GNULIB_FDATASYNC
=0;
17071 GNULIB_FTRUNCATE
=0;
17073 GNULIB_GETDOMAINNAME
=0;
17074 GNULIB_GETDTABLESIZE
=0;
17075 GNULIB_GETGROUPS
=0;
17076 GNULIB_GETHOSTNAME
=0;
17078 GNULIB_GETLOGIN_R
=0;
17079 GNULIB_GETPAGESIZE
=0;
17080 GNULIB_GETUSERSHELL
=0;
17081 GNULIB_GROUP_MEMBER
=0;
17093 GNULIB_READLINKAT
=0;
17095 GNULIB_SETHOSTNAME
=0;
17098 GNULIB_SYMLINKAT
=0;
17099 GNULIB_TTYNAME_R
=0;
17100 GNULIB_UNISTD_H_NONBLOCKING
=0;
17101 GNULIB_UNISTD_H_SIGPIPE
=0;
17116 HAVE_GETDTABLESIZE
=1;
17118 HAVE_GETHOSTNAME
=1;
17120 HAVE_GETPAGESIZE
=1;
17121 HAVE_GROUP_MEMBER
=1;
17131 HAVE_SETHOSTNAME
=1;
17137 HAVE_DECL_ENVIRON
=1;
17138 HAVE_DECL_FCHDIR
=1;
17139 HAVE_DECL_FDATASYNC
=1;
17140 HAVE_DECL_GETDOMAINNAME
=1;
17141 HAVE_DECL_GETLOGIN_R
=1;
17142 HAVE_DECL_GETPAGESIZE
=1;
17143 HAVE_DECL_GETUSERSHELL
=1;
17144 HAVE_DECL_SETHOSTNAME
=1;
17145 HAVE_DECL_TTYNAME_R
=1;
17147 HAVE_SYS_PARAM_H
=0;
17152 REPLACE_FCHOWNAT
=0;
17153 REPLACE_FTRUNCATE
=0;
17155 REPLACE_GETDOMAINNAME
=0;
17156 REPLACE_GETLOGIN_R
=0;
17157 REPLACE_GETGROUPS
=0;
17158 REPLACE_GETPAGESIZE
=0;
17167 REPLACE_READLINK
=0;
17171 REPLACE_TTYNAME_R
=0;
17173 REPLACE_UNLINKAT
=0;
17176 UNISTD_H_HAVE_WINSOCK2_H
=0;
17177 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
=0;
17183 GNULIB_REWINDDIR
=0;
17186 GNULIB_FDOPENDIR
=0;
17188 GNULIB_ALPHASORT
=0;
17194 HAVE_DECL_FDOPENDIR
=1;
17199 REPLACE_CLOSEDIR
=0;
17201 REPLACE_FDOPENDIR
=0;
17205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
17206 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
17207 if test "${gl_cv_have_include_next+set}" = set; then :
17208 $as_echo_n "(cached) " >&6
17210 rm -rf conftestd1a conftestd1b conftestd2
17211 mkdir conftestd1a conftestd1b conftestd2
17212 cat <<EOF > conftestd1a/conftest.h
17213 #define DEFINED_IN_CONFTESTD1
17214 #include_next <conftest.h>
17215 #ifdef DEFINED_IN_CONFTESTD2
17218 #error "include_next doesn't work"
17221 cat <<EOF > conftestd1b/conftest.h
17222 #define DEFINED_IN_CONFTESTD1
17224 #include_next <conftest.h>
17225 #ifdef DEFINED_IN_CONFTESTD2
17228 #error "include_next doesn't work"
17231 cat <<EOF > conftestd2/conftest.h
17232 #ifndef DEFINED_IN_CONFTESTD1
17233 #error "include_next test doesn't work"
17235 #define DEFINED_IN_CONFTESTD2
17237 gl_save_CPPFLAGS
="$CPPFLAGS"
17238 CPPFLAGS
="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
17239 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17240 /* end confdefs.h. */
17241 #include <conftest.h>
17243 if ac_fn_c_try_compile
"$LINENO"; then :
17244 gl_cv_have_include_next
=yes
17246 CPPFLAGS
="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
17247 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17248 /* end confdefs.h. */
17249 #include <conftest.h>
17251 if ac_fn_c_try_compile
"$LINENO"; then :
17252 gl_cv_have_include_next
=buggy
17254 gl_cv_have_include_next
=no
17256 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17259 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17260 CPPFLAGS
="$gl_save_CPPFLAGS"
17261 rm -rf conftestd1a conftestd1b conftestd2
17264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
17265 $as_echo "$gl_cv_have_include_next" >&6; }
17266 PRAGMA_SYSTEM_HEADER
=
17267 if test $gl_cv_have_include_next = yes; then
17268 INCLUDE_NEXT
=include_next
17269 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include_next
17270 if test -n "$GCC"; then
17271 PRAGMA_SYSTEM_HEADER
='#pragma GCC system_header'
17274 if test $gl_cv_have_include_next = buggy
; then
17275 INCLUDE_NEXT
=include
17276 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include_next
17278 INCLUDE_NEXT
=include
17279 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include
17285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
17286 $as_echo_n "checking whether system header files limit the line length... " >&6; }
17287 if test "${gl_cv_pragma_columns+set}" = set; then :
17288 $as_echo_n "(cached) " >&6
17290 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17291 /* end confdefs.h. */
17298 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17299 $EGREP "choke me" >/dev
/null
2>&1; then :
17300 gl_cv_pragma_columns
=yes
17302 gl_cv_pragma_columns
=no
17308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
17309 $as_echo "$gl_cv_pragma_columns" >&6; }
17310 if test $gl_cv_pragma_columns = yes; then
17311 PRAGMA_COLUMNS
="#pragma COLUMNS 10000"
17320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtold conforms to C99" >&5
17321 $as_echo_n "checking whether strtold conforms to C99... " >&6; }
17322 if test "${gl_cv_func_c99_strtold+set}" = set; then :
17323 $as_echo_n "(cached) " >&6
17325 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17326 /* end confdefs.h. */
17327 /* On HP-UX before 11.23, strtold returns a struct instead of
17328 long double. Reject implementations like that, by requiring
17329 compatibility with the C99 prototype. */
17330 #include <stdlib.h>
17331 static long double (*p) (char const *, char **) = strtold;
17333 test (char const *nptr, char **endptr)
17336 r = strtold (nptr, endptr);
17342 return test ("1.0", NULL) != 1 || p ("1.0", NULL) != 1;
17347 if ac_fn_c_try_link
"$LINENO"; then :
17348 gl_cv_func_c99_strtold
=yes
17350 gl_cv_func_c99_strtold
=no
17352 rm -f core conftest.err conftest.
$ac_objext \
17353 conftest
$ac_exeext conftest.
$ac_ext
17355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_c99_strtold" >&5
17356 $as_echo "$gl_cv_func_c99_strtold" >&6; }
17357 if test $gl_cv_func_c99_strtold = yes; then
17359 $as_echo "#define HAVE_C99_STRTOLD 1" >>confdefs.h
17370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if environ is properly declared" >&5
17371 $as_echo_n "checking if environ is properly declared... " >&6; }
17372 if test "${gt_cv_var_environ_declaration+set}" = set; then :
17373 $as_echo_n "(cached) " >&6
17376 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17377 /* end confdefs.h. */
17379 #include <unistd.h>
17381 /* mingw, BeOS, Haiku declare environ in <stdlib.h>, not in <unistd.h>. */
17382 #include <stdlib.h>
17384 extern struct { int foo; } environ;
17393 if ac_fn_c_try_compile
"$LINENO"; then :
17394 gt_cv_var_environ_declaration
=no
17396 gt_cv_var_environ_declaration
=yes
17398 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_var_environ_declaration" >&5
17402 $as_echo "$gt_cv_var_environ_declaration" >&6; }
17403 if test $gt_cv_var_environ_declaration = yes; then
17405 $as_echo "#define HAVE_ENVIRON_DECL 1" >>confdefs.h
17410 if test $gt_cv_var_environ_declaration != yes; then
17411 HAVE_DECL_ENVIRON
=0
17416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5
17417 $as_echo_n "checking for complete errno.h... " >&6; }
17418 if test "${gl_cv_header_errno_h_complete+set}" = set; then :
17419 $as_echo_n "(cached) " >&6
17422 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17423 /* end confdefs.h. */
17426 #if !defined ETXTBSY
17429 #if !defined ENOMSG
17435 #if !defined ENOLINK
17438 #if !defined EPROTO
17441 #if !defined EMULTIHOP
17444 #if !defined EBADMSG
17447 #if !defined EOVERFLOW
17450 #if !defined ENOTSUP
17453 #if !defined ENETRESET
17456 #if !defined ECONNABORTED
17459 #if !defined ESTALE
17462 #if !defined EDQUOT
17465 #if !defined ECANCELED
17468 #if !defined EOWNERDEAD
17471 #if !defined ENOTRECOVERABLE
17474 #if !defined EILSEQ
17479 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17480 $EGREP "booboo" >/dev
/null
2>&1; then :
17481 gl_cv_header_errno_h_complete
=no
17483 gl_cv_header_errno_h_complete
=yes
17489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5
17490 $as_echo "$gl_cv_header_errno_h_complete" >&6; }
17491 if test $gl_cv_header_errno_h_complete = yes; then
17502 if test $gl_cv_have_include_next = yes; then
17503 gl_cv_next_errno_h
='<'errno.h
'>'
17505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5
17506 $as_echo_n "checking absolute name of <errno.h>... " >&6; }
17507 if test "${gl_cv_next_errno_h+set}" = set; then :
17508 $as_echo_n "(cached) " >&6
17511 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17512 /* end confdefs.h. */
17517 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
17518 *) gl_absname_cpp
="$ac_cpp" ;;
17523 gl_dirsep_regex
='[/\\]'
17526 gl_dirsep_regex
='\/'
17529 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
17531 gl_header_literal_regex
=`echo 'errno.h' \
17532 | sed -e "$gl_make_literal_regex_sed"`
17533 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17534 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17539 gl_cv_next_errno_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17540 sed -n "$gl_absolute_header_sed"`'"'
17544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5
17545 $as_echo "$gl_cv_next_errno_h" >&6; }
17547 NEXT_ERRNO_H
=$gl_cv_next_errno_h
17549 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
17550 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17551 gl_next_as_first_directive
='<'errno.h
'>'
17553 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17554 gl_next_as_first_directive
=$gl_cv_next_errno_h
17556 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
=$gl_next_as_first_directive
17564 if test -n "$ERRNO_H"; then
17565 GL_GENERATE_ERRNO_H_TRUE
=
17566 GL_GENERATE_ERRNO_H_FALSE
='#'
17568 GL_GENERATE_ERRNO_H_TRUE
='#'
17569 GL_GENERATE_ERRNO_H_FALSE
=
17573 if test -n "$ERRNO_H"; then
17574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5
17575 $as_echo_n "checking for EMULTIHOP value... " >&6; }
17576 if test "${gl_cv_header_errno_h_EMULTIHOP+set}" = set; then :
17577 $as_echo_n "(cached) " >&6
17580 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17581 /* end confdefs.h. */
17589 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17590 $EGREP "yes" >/dev
/null
2>&1; then :
17591 gl_cv_header_errno_h_EMULTIHOP
=yes
17593 gl_cv_header_errno_h_EMULTIHOP
=no
17597 if test $gl_cv_header_errno_h_EMULTIHOP = no
; then
17598 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17599 /* end confdefs.h. */
17601 #define _XOPEN_SOURCE_EXTENDED 1
17608 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17609 $EGREP "yes" >/dev
/null
2>&1; then :
17610 gl_cv_header_errno_h_EMULTIHOP
=hidden
17614 if test $gl_cv_header_errno_h_EMULTIHOP = hidden
; then
17615 if ac_fn_c_compute_int
"$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP" "
17616 #define _XOPEN_SOURCE_EXTENDED 1
17618 /* The following two lines are a workaround against an autoconf-2.52 bug. */
17620 #include <stdlib.h>
17629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
17630 $as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
17631 case $gl_cv_header_errno_h_EMULTIHOP in
17633 EMULTIHOP_HIDDEN
=0; EMULTIHOP_VALUE
=
17636 EMULTIHOP_HIDDEN
=1; EMULTIHOP_VALUE
="$gl_cv_header_errno_h_EMULTIHOP"
17644 if test -n "$ERRNO_H"; then
17645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5
17646 $as_echo_n "checking for ENOLINK value... " >&6; }
17647 if test "${gl_cv_header_errno_h_ENOLINK+set}" = set; then :
17648 $as_echo_n "(cached) " >&6
17651 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17652 /* end confdefs.h. */
17660 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17661 $EGREP "yes" >/dev
/null
2>&1; then :
17662 gl_cv_header_errno_h_ENOLINK
=yes
17664 gl_cv_header_errno_h_ENOLINK
=no
17668 if test $gl_cv_header_errno_h_ENOLINK = no
; then
17669 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17670 /* end confdefs.h. */
17672 #define _XOPEN_SOURCE_EXTENDED 1
17679 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17680 $EGREP "yes" >/dev
/null
2>&1; then :
17681 gl_cv_header_errno_h_ENOLINK
=hidden
17685 if test $gl_cv_header_errno_h_ENOLINK = hidden
; then
17686 if ac_fn_c_compute_int
"$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK" "
17687 #define _XOPEN_SOURCE_EXTENDED 1
17689 /* The following two lines are a workaround against an autoconf-2.52 bug. */
17691 #include <stdlib.h>
17700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5
17701 $as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
17702 case $gl_cv_header_errno_h_ENOLINK in
17704 ENOLINK_HIDDEN
=0; ENOLINK_VALUE
=
17707 ENOLINK_HIDDEN
=1; ENOLINK_VALUE
="$gl_cv_header_errno_h_ENOLINK"
17715 if test -n "$ERRNO_H"; then
17716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5
17717 $as_echo_n "checking for EOVERFLOW value... " >&6; }
17718 if test "${gl_cv_header_errno_h_EOVERFLOW+set}" = set; then :
17719 $as_echo_n "(cached) " >&6
17722 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17723 /* end confdefs.h. */
17731 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17732 $EGREP "yes" >/dev
/null
2>&1; then :
17733 gl_cv_header_errno_h_EOVERFLOW
=yes
17735 gl_cv_header_errno_h_EOVERFLOW
=no
17739 if test $gl_cv_header_errno_h_EOVERFLOW = no
; then
17740 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17741 /* end confdefs.h. */
17743 #define _XOPEN_SOURCE_EXTENDED 1
17750 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17751 $EGREP "yes" >/dev
/null
2>&1; then :
17752 gl_cv_header_errno_h_EOVERFLOW
=hidden
17756 if test $gl_cv_header_errno_h_EOVERFLOW = hidden
; then
17757 if ac_fn_c_compute_int
"$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW" "
17758 #define _XOPEN_SOURCE_EXTENDED 1
17760 /* The following two lines are a workaround against an autoconf-2.52 bug. */
17762 #include <stdlib.h>
17771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
17772 $as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
17773 case $gl_cv_header_errno_h_EOVERFLOW in
17775 EOVERFLOW_HIDDEN
=0; EOVERFLOW_VALUE
=
17778 EOVERFLOW_HIDDEN
=1; EOVERFLOW_VALUE
="$gl_cv_header_errno_h_EOVERFLOW"
17795 GNULIB_NONBLOCKING
=0;
17805 ac_fn_c_check_type
"$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
17806 if test "x$ac_cv_type_mode_t" = x
""yes; then :
17810 cat >>confdefs.h
<<_ACEOF
17816 ac_fn_c_check_decl
"$LINENO" "fdatasync" "ac_cv_have_decl_fdatasync" "$ac_includes_default"
17817 if test "x$ac_cv_have_decl_fdatasync" = x
""yes; then :
17823 cat >>confdefs.h
<<_ACEOF
17824 #define HAVE_DECL_FDATASYNC $ac_have_decl
17829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_dm_mode in struct stat" >&5
17830 $as_echo_n "checking for st_dm_mode in struct stat... " >&6; }
17831 if test "${ac_cv_struct_st_dm_mode+set}" = set; then :
17832 $as_echo_n "(cached) " >&6
17834 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17835 /* end confdefs.h. */
17837 #include <sys/types.h>
17838 #include <sys/stat.h>
17842 struct stat s; s.st_dm_mode;
17847 if ac_fn_c_try_compile
"$LINENO"; then :
17848 ac_cv_struct_st_dm_mode
=yes
17850 ac_cv_struct_st_dm_mode
=no
17852 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_st_dm_mode" >&5
17855 $as_echo "$ac_cv_struct_st_dm_mode" >&6; }
17857 if test $ac_cv_struct_st_dm_mode = yes; then
17859 $as_echo "#define HAVE_ST_DM_MODE 1" >>confdefs.h
17864 ac_fn_c_check_decl
"$LINENO" "strmode" "ac_cv_have_decl_strmode" "$ac_includes_default"
17865 if test "x$ac_cv_have_decl_strmode" = x
""yes; then :
17871 cat >>confdefs.h
<<_ACEOF
17872 #define HAVE_DECL_STRMODE $ac_have_decl
17892 GNULIB_UTIMENSAT
=0;
17906 REPLACE_FUTIMENS
=0;
17912 REPLACE_UTIMENSAT
=0;
17915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
17916 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
17917 if test "${gl_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
17918 $as_echo_n "(cached) " >&6
17920 rm -f conftest.sym conftest.
file
17921 echo >conftest.
file
17922 if test "$as_ln_s" = "ln -s" && ln -s conftest.
file conftest.sym
; then
17923 if test "$cross_compiling" = yes; then :
17925 # Guess yes on glibc systems.
17926 *-gnu*) gl_cv_func_lstat_dereferences_slashed_symlink
="guessing yes" ;;
17927 # If we don't know, assume the worst.
17928 *) gl_cv_func_lstat_dereferences_slashed_symlink
="guessing no" ;;
17932 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17933 /* end confdefs.h. */
17934 $ac_includes_default
17939 /* Linux will dereference the symlink and fail, as required by
17940 POSIX. That is better in the sense that it means we will not
17941 have to compile and use the lstat wrapper. */
17942 return lstat ("conftest.sym/", &sbuf) == 0;
17948 if ac_fn_c_try_run
"$LINENO"; then :
17949 gl_cv_func_lstat_dereferences_slashed_symlink
=yes
17951 gl_cv_func_lstat_dereferences_slashed_symlink
=no
17953 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17954 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17958 # If the 'ln -s' command failed, then we probably don't even
17959 # have an lstat function.
17960 gl_cv_func_lstat_dereferences_slashed_symlink
="guessing no"
17962 rm -f conftest.sym conftest.
file
17965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
17966 $as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
17967 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
17970 cat >>confdefs.h
<<_ACEOF
17971 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
17984 GNULIB_CALLOC_POSIX
=0;
17985 GNULIB_CANONICALIZE_FILE_NAME
=0;
17986 GNULIB_GETLOADAVG
=0;
17987 GNULIB_GETSUBOPT
=0;
17989 GNULIB_MALLOC_POSIX
=0;
17993 GNULIB_MKOSTEMPS
=0;
17996 GNULIB_POSIX_OPENPT
=0;
17998 GNULIB_PTSNAME_R
=0;
18002 GNULIB_REALLOC_POSIX
=0;
18005 GNULIB_SECURE_GETENV
=0;
18010 GNULIB_SYSTEM_POSIX
=0;
18016 HAVE_CANONICALIZE_FILE_NAME
=1;
18017 HAVE_DECL_GETLOADAVG
=1;
18025 HAVE_POSIX_OPENPT
=1;
18033 HAVE_SECURE_GETENV
=1;
18035 HAVE_DECL_SETENV
=1;
18039 HAVE_STRUCT_RANDOM_DATA
=1;
18040 HAVE_SYS_LOADAVG_H
=0;
18042 HAVE_DECL_UNSETENV
=1;
18044 REPLACE_CANONICALIZE_FILE_NAME
=0;
18049 REPLACE_PTSNAME_R
=0;
18051 REPLACE_RANDOM_R
=0;
18053 REPLACE_REALPATH
=0;
18056 REPLACE_UNSETENV
=0;
18074 if test $gl_cv_have_include_next = yes; then
18075 gl_cv_next_getopt_h
='<'getopt.h
'>'
18077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
18078 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
18079 if test "${gl_cv_next_getopt_h+set}" = set; then :
18080 $as_echo_n "(cached) " >&6
18083 if test $ac_cv_header_getopt_h = yes; then
18086 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18087 /* end confdefs.h. */
18088 #include <getopt.h>
18092 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
18093 *) gl_absname_cpp
="$ac_cpp" ;;
18098 gl_dirsep_regex
='[/\\]'
18101 gl_dirsep_regex
='\/'
18104 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
18106 gl_header_literal_regex
=`echo 'getopt.h' \
18107 | sed -e "$gl_make_literal_regex_sed"`
18108 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18109 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18114 gl_cv_next_getopt_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18115 sed -n "$gl_absolute_header_sed"`'"'
18117 gl_cv_next_getopt_h
='<'getopt.h
'>'
18122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
18123 $as_echo "$gl_cv_next_getopt_h" >&6; }
18125 NEXT_GETOPT_H
=$gl_cv_next_getopt_h
18127 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
18128 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18129 gl_next_as_first_directive
='<'getopt.h
'>'
18131 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18132 gl_next_as_first_directive
=$gl_cv_next_getopt_h
18134 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
=$gl_next_as_first_directive
18139 if test $ac_cv_header_getopt_h = yes; then
18148 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
18149 for ac_header
in getopt.h
18151 ac_fn_c_check_header_mongrel
"$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
18152 if test "x$ac_cv_header_getopt_h" = x
""yes; then :
18153 cat >>confdefs.h
<<_ACEOF
18154 #define HAVE_GETOPT_H 1
18158 gl_replace_getopt
=yes
18165 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
18166 for ac_func
in getopt_long_only
18168 ac_fn_c_check_func
"$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
18169 if test "x$ac_cv_func_getopt_long_only" = x
""yes; then :
18170 cat >>confdefs.h
<<_ACEOF
18171 #define HAVE_GETOPT_LONG_ONLY 1
18175 gl_replace_getopt
=yes
18181 if test -z "$gl_replace_getopt"; then
18182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
18183 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
18184 if test "${gl_cv_func_getopt_posix+set}" = set; then :
18185 $as_echo_n "(cached) " >&6
18188 if test $cross_compiling = no
; then
18189 if test "$cross_compiling" = yes; then :
18190 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18191 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18192 as_fn_error
"cannot run test program while cross compiling
18193 See \`config.log' for more details." "$LINENO" 5; }
18195 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18196 /* end confdefs.h. */
18198 #include <unistd.h>
18199 #include <stdlib.h>
18200 #include <string.h>
18205 static char program[] = "program";
18206 static char a[] = "-a";
18207 static char foo[] = "foo";
18208 static char bar[] = "bar";
18209 char *argv[] = { program, a, foo, bar, NULL };
18212 c = getopt (4, argv, "ab");
18215 c = getopt (4, argv, "ab");
18218 if (!(optind == 2))
18224 if ac_fn_c_try_run
"$LINENO"; then :
18225 gl_cv_func_getopt_posix
=maybe
18227 gl_cv_func_getopt_posix
=no
18229 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18230 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18233 if test $gl_cv_func_getopt_posix = maybe
; then
18234 if test "$cross_compiling" = yes; then :
18235 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18236 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18237 as_fn_error
"cannot run test program while cross compiling
18238 See \`config.log' for more details." "$LINENO" 5; }
18240 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18241 /* end confdefs.h. */
18243 #include <unistd.h>
18244 #include <stdlib.h>
18245 #include <string.h>
18250 static char program[] = "program";
18251 static char donald[] = "donald";
18252 static char p[] = "-p";
18253 static char billy[] = "billy";
18254 static char duck[] = "duck";
18255 static char a[] = "-a";
18256 static char bar[] = "bar";
18257 char *argv[] = { program, donald, p, billy, duck, a, bar, NULL };
18260 c = getopt (7, argv, "+abp:q:");
18263 if (!(strcmp (argv[0], "program") == 0))
18265 if (!(strcmp (argv[1], "donald") == 0))
18267 if (!(strcmp (argv[2], "-p") == 0))
18269 if (!(strcmp (argv[3], "billy") == 0))
18271 if (!(strcmp (argv[4], "duck") == 0))
18273 if (!(strcmp (argv[5], "-a") == 0))
18275 if (!(strcmp (argv[6], "bar") == 0))
18277 if (!(optind == 1))
18283 if ac_fn_c_try_run
"$LINENO"; then :
18284 gl_cv_func_getopt_posix
=maybe
18286 gl_cv_func_getopt_posix
=no
18288 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18289 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18293 if test $gl_cv_func_getopt_posix = maybe
; then
18294 if test "$cross_compiling" = yes; then :
18295 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18296 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18297 as_fn_error
"cannot run test program while cross compiling
18298 See \`config.log' for more details." "$LINENO" 5; }
18300 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18301 /* end confdefs.h. */
18303 #include <unistd.h>
18304 #include <stdlib.h>
18305 #include <string.h>
18310 static char program[] = "program";
18311 static char ab[] = "-ab";
18312 char *argv[3] = { program, ab, NULL };
18313 if (getopt (2, argv, "ab:") != 'a')
18315 if (getopt (2, argv, "ab:") != '?')
18325 if ac_fn_c_try_run
"$LINENO"; then :
18326 gl_cv_func_getopt_posix
=yes
18328 gl_cv_func_getopt_posix
=no
18330 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18331 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18337 darwin
* | aix
* | mingw
*) gl_cv_func_getopt_posix
="guessing no";;
18338 *) gl_cv_func_getopt_posix
="guessing yes";;
18343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
18344 $as_echo "$gl_cv_func_getopt_posix" >&6; }
18345 case "$gl_cv_func_getopt_posix" in
18346 *no
) gl_replace_getopt
=yes ;;
18350 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
18351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
18352 $as_echo_n "checking for working GNU getopt function... " >&6; }
18353 if test "${gl_cv_func_getopt_gnu+set}" = set; then :
18354 $as_echo_n "(cached) " >&6
18356 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
18357 # optstring is necessary for programs like m4 that have POSIX-mandated
18358 # semantics for supporting options interspersed with files.
18359 # Also, since getopt_long is a GNU extension, we require optind=0.
18360 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
18361 # so take care to revert to the correct (non-)export state.
18362 gl_awk_probe
='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
18363 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
18364 xx
) gl_had_POSIXLY_CORRECT
=exported
;;
18365 x
) gl_had_POSIXLY_CORRECT
=yes ;;
18366 *) gl_had_POSIXLY_CORRECT
= ;;
18369 export POSIXLY_CORRECT
18370 if test "$cross_compiling" = yes; then :
18371 gl_cv_func_getopt_gnu
="guessing no"
18374 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18375 /* end confdefs.h. */
18376 #include <getopt.h>
18377 #include <stddef.h>
18378 #include <string.h>
18380 #include <stdlib.h>
18381 #if defined __MACH__ && defined __APPLE__
18382 /* Avoid a crash on Mac OS X. */
18383 #include <mach/mach.h>
18384 #include <mach/mach_error.h>
18385 #include <mach/thread_status.h>
18386 #include <mach/exception.h>
18387 #include <mach/task.h>
18388 #include <pthread.h>
18389 /* The exception port on which our thread listens. */
18390 static mach_port_t our_exception_port;
18391 /* The main function of the thread listening for exceptions of type
18394 mach_exception_thread (void *arg)
18396 /* Buffer for a message to be received. */
18398 mach_msg_header_t head;
18399 mach_msg_body_t msgh_body;
18402 mach_msg_return_t retval;
18403 /* Wait for a message on the exception port. */
18404 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
18405 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
18406 if (retval != MACH_MSG_SUCCESS)
18411 nocrash_init (void)
18413 mach_port_t self = mach_task_self ();
18414 /* Allocate a port on which the thread shall listen for exceptions. */
18415 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
18417 /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
18418 if (mach_port_insert_right (self, our_exception_port, our_exception_port,
18419 MACH_MSG_TYPE_MAKE_SEND)
18421 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
18423 exception_mask_t mask = EXC_MASK_BAD_ACCESS;
18424 /* Create the thread listening on the exception port. */
18425 pthread_attr_t attr;
18427 if (pthread_attr_init (&attr) == 0
18428 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
18429 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
18430 pthread_attr_destroy (&attr);
18431 /* Replace the exception port info for these exceptions with our own.
18432 Note that we replace the exception port for the entire task, not only
18433 for a particular thread. This has the effect that when our exception
18434 port gets the message, the thread specific exception port has already
18435 been asked, and we don't need to bother about it.
18436 See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
18437 task_set_exception_ports (self, mask, our_exception_port,
18438 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
18443 #elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
18444 /* Avoid a crash on native Windows. */
18445 #define WIN32_LEAN_AND_MEAN
18446 #include <windows.h>
18447 #include <winerror.h>
18449 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
18451 switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
18453 case EXCEPTION_ACCESS_VIOLATION:
18454 case EXCEPTION_IN_PAGE_ERROR:
18455 case EXCEPTION_STACK_OVERFLOW:
18456 case EXCEPTION_GUARD_PAGE:
18457 case EXCEPTION_PRIV_INSTRUCTION:
18458 case EXCEPTION_ILLEGAL_INSTRUCTION:
18459 case EXCEPTION_DATATYPE_MISALIGNMENT:
18460 case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
18461 case EXCEPTION_NONCONTINUABLE_EXCEPTION:
18464 return EXCEPTION_CONTINUE_SEARCH;
18467 nocrash_init (void)
18469 SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
18472 /* Avoid a crash on POSIX systems. */
18473 #include <signal.h>
18474 /* A POSIX signal handler. */
18476 exception_handler (int sig)
18481 nocrash_init (void)
18484 signal (SIGSEGV, exception_handler);
18487 signal (SIGBUS, exception_handler);
18501 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
18502 and fails on Mac OS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
18503 OSF/1 5.1, Solaris 10. */
18505 static char conftest[] = "conftest";
18506 static char plus[] = "-+";
18507 char *argv[3] = { conftest, plus, NULL };
18509 if (getopt (2, argv, "+a") != '?')
18512 /* This code succeeds on glibc 2.8, mingw,
18513 and fails on Mac OS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
18514 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
18516 static char program[] = "program";
18517 static char p[] = "-p";
18518 static char foo[] = "foo";
18519 static char bar[] = "bar";
18520 char *argv[] = { program, p, foo, bar, NULL };
18523 if (getopt (4, argv, "p::") != 'p')
18525 else if (optarg != NULL)
18527 else if (getopt (4, argv, "p::") != -1)
18529 else if (optind != 2)
18532 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
18534 static char program[] = "program";
18535 static char foo[] = "foo";
18536 static char p[] = "-p";
18537 char *argv[] = { program, foo, p, NULL };
18539 if (getopt (3, argv, "-p") != 1)
18541 else if (getopt (3, argv, "-p") != 'p')
18544 /* This code fails on glibc 2.11. */
18546 static char program[] = "program";
18547 static char b[] = "-b";
18548 static char a[] = "-a";
18549 char *argv[] = { program, b, a, NULL };
18550 optind = opterr = 0;
18551 if (getopt (3, argv, "+:a:b") != 'b')
18553 else if (getopt (3, argv, "+:a:b") != ':')
18556 /* This code dumps core on glibc 2.14. */
18558 static char program[] = "program";
18559 static char w[] = "-W";
18560 static char dummy[] = "dummy";
18561 char *argv[] = { program, w, dummy, NULL };
18562 optind = opterr = 1;
18563 if (getopt (3, argv, "W;") != 'W')
18572 if ac_fn_c_try_run
"$LINENO"; then :
18573 gl_cv_func_getopt_gnu
=yes
18575 gl_cv_func_getopt_gnu
=no
18577 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18578 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18581 case $gl_had_POSIXLY_CORRECT in
18583 yes) { POSIXLY_CORRECT
=; unset POSIXLY_CORRECT
;}; POSIXLY_CORRECT
=1 ;;
18584 *) { POSIXLY_CORRECT
=; unset POSIXLY_CORRECT
;} ;;
18588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
18589 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
18590 if test "$gl_cv_func_getopt_gnu" != yes; then
18591 gl_replace_getopt
=yes
18593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt_long function" >&5
18594 $as_echo_n "checking for working GNU getopt_long function... " >&6; }
18595 if test "${gl_cv_func_getopt_long_gnu+set}" = set; then :
18596 $as_echo_n "(cached) " >&6
18598 if test "$cross_compiling" = yes; then :
18600 openbsd
*) gl_cv_func_getopt_long_gnu
="guessing no";;
18601 *) gl_cv_func_getopt_long_gnu
="guessing yes";;
18605 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18606 /* end confdefs.h. */
18607 #include <getopt.h>
18608 #include <stddef.h>
18609 #include <string.h>
18614 static const struct option long_options[] =
18616 { "xtremely-",no_argument, NULL, 1003 },
18617 { "xtra", no_argument, NULL, 1001 },
18618 { "xtreme", no_argument, NULL, 1002 },
18619 { "xtremely", no_argument, NULL, 1003 },
18620 { NULL, 0, NULL, 0 }
18622 /* This code fails on OpenBSD 5.0. */
18624 static char program[] = "program";
18625 static char xtremel[] = "--xtremel";
18626 char *argv[] = { program, xtremel, NULL };
18628 optind = 1; opterr = 0;
18629 if (getopt_long (2, argv, "", long_options, &option_index) != 1003)
18638 if ac_fn_c_try_run
"$LINENO"; then :
18639 gl_cv_func_getopt_long_gnu
=yes
18641 gl_cv_func_getopt_long_gnu
=no
18643 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18644 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_long_gnu" >&5
18650 $as_echo "$gl_cv_func_getopt_long_gnu" >&6; }
18651 case "$gl_cv_func_getopt_long_gnu" in
18653 *) gl_replace_getopt
=yes ;;
18664 if test -n "$gl_replace_getopt"; then
18668 if test $REPLACE_GETOPT = 1; then
18672 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
18678 ac_fn_c_check_decl
"$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
18679 if test "x$ac_cv_have_decl_getenv" = x
""yes; then :
18685 cat >>confdefs.h
<<_ACEOF
18686 #define HAVE_DECL_GETENV $ac_have_decl
18694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
18695 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
18696 if test "${ac_cv_c_restrict+set}" = set; then :
18697 $as_echo_n "(cached) " >&6
18699 ac_cv_c_restrict
=no
18700 # The order here caters to the fact that C++ does not require restrict.
18701 for ac_kw
in __restrict __restrict__ _Restrict restrict
; do
18702 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18703 /* end confdefs.h. */
18704 typedef int * int_ptr;
18705 int foo (int_ptr $ac_kw ip) {
18712 int * $ac_kw t = s;
18719 if ac_fn_c_try_compile
"$LINENO"; then :
18720 ac_cv_c_restrict
=$ac_kw
18722 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18723 test "$ac_cv_c_restrict" != no
&& break
18727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
18728 $as_echo "$ac_cv_c_restrict" >&6; }
18730 case $ac_cv_c_restrict in
18732 no
) $as_echo "#define restrict /**/" >>confdefs.h
18734 *) cat >>confdefs.h
<<_ACEOF
18735 #define restrict $ac_cv_c_restrict
18741 GNULIB_GETTIMEOFDAY
=0;
18742 HAVE_GETTIMEOFDAY
=1;
18743 HAVE_STRUCT_TIMEVAL
=1;
18745 REPLACE_GETTIMEOFDAY
=0;
18746 REPLACE_STRUCT_TIMEVAL
=0;
18763 if test $gl_cv_have_include_next = yes; then
18764 gl_cv_next_sys_time_h
='<'sys
/time.h
'>'
18766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/time.h>" >&5
18767 $as_echo_n "checking absolute name of <sys/time.h>... " >&6; }
18768 if test "${gl_cv_next_sys_time_h+set}" = set; then :
18769 $as_echo_n "(cached) " >&6
18772 if test $ac_cv_header_sys_time_h = yes; then
18775 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18776 /* end confdefs.h. */
18777 #include <sys/time.h>
18781 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
18782 *) gl_absname_cpp
="$ac_cpp" ;;
18787 gl_dirsep_regex
='[/\\]'
18790 gl_dirsep_regex
='\/'
18793 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
18795 gl_header_literal_regex
=`echo 'sys/time.h' \
18796 | sed -e "$gl_make_literal_regex_sed"`
18797 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18798 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18803 gl_cv_next_sys_time_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18804 sed -n "$gl_absolute_header_sed"`'"'
18806 gl_cv_next_sys_time_h
='<'sys
/time.h
'>'
18811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_time_h" >&5
18812 $as_echo "$gl_cv_next_sys_time_h" >&6; }
18814 NEXT_SYS_TIME_H
=$gl_cv_next_sys_time_h
18816 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
18817 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18818 gl_next_as_first_directive
='<'sys
/time.h
'>'
18820 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18821 gl_next_as_first_directive
=$gl_cv_next_sys_time_h
18823 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
=$gl_next_as_first_directive
18829 if test $ac_cv_header_sys_time_h != yes; then
18837 if test $ac_cv_header_sys_socket_h != yes; then
18838 for ac_header
in winsock2.h
18840 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
18841 if test "x$ac_cv_header_winsock2_h" = x
""yes; then :
18842 cat >>confdefs.h
<<_ACEOF
18843 #define HAVE_WINSOCK2_H 1
18851 if test "$ac_cv_header_winsock2_h" = yes; then
18853 UNISTD_H_HAVE_WINSOCK2_H
=1
18854 SYS_IOCTL_H_HAVE_WINSOCK2_H
=1
18860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
18861 $as_echo_n "checking for struct timeval... " >&6; }
18862 if test "${gl_cv_sys_struct_timeval+set}" = set; then :
18863 $as_echo_n "(cached) " >&6
18865 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18866 /* end confdefs.h. */
18867 #if HAVE_SYS_TIME_H
18868 #include <sys/time.h>
18871 #if HAVE_WINSOCK2_H
18872 # include <winsock2.h>
18878 static struct timeval x; x.tv_sec = x.tv_usec;
18883 if ac_fn_c_try_compile
"$LINENO"; then :
18884 gl_cv_sys_struct_timeval
=yes
18886 gl_cv_sys_struct_timeval
=no
18888 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval" >&5
18892 $as_echo "$gl_cv_sys_struct_timeval" >&6; }
18893 if test $gl_cv_sys_struct_timeval != yes; then
18894 HAVE_STRUCT_TIMEVAL
=0
18896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wide-enough struct timeval.tv_sec member" >&5
18897 $as_echo_n "checking for wide-enough struct timeval.tv_sec member... " >&6; }
18898 if test "${gl_cv_sys_struct_timeval_tv_sec+set}" = set; then :
18899 $as_echo_n "(cached) " >&6
18901 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18902 /* end confdefs.h. */
18903 #if HAVE_SYS_TIME_H
18904 #include <sys/time.h>
18907 #if HAVE_WINSOCK2_H
18908 # include <winsock2.h>
18914 static struct timeval x;
18915 typedef int verify_tv_sec_type[
18916 sizeof (time_t) <= sizeof x.tv_sec ? 1 : -1
18923 if ac_fn_c_try_compile
"$LINENO"; then :
18924 gl_cv_sys_struct_timeval_tv_sec
=yes
18926 gl_cv_sys_struct_timeval_tv_sec
=no
18928 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval_tv_sec" >&5
18932 $as_echo "$gl_cv_sys_struct_timeval_tv_sec" >&6; }
18933 if test $gl_cv_sys_struct_timeval_tv_sec != yes; then
18934 REPLACE_STRUCT_TIMEVAL
=1
18944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
18945 $as_echo_n "checking for unsigned long long int... " >&6; }
18946 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
18947 $as_echo_n "(cached) " >&6
18949 ac_cv_type_unsigned_long_long_int
=yes
18950 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
18951 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18952 /* end confdefs.h. */
18954 /* For now, do not test the preprocessor; as of 2007 there are too many
18955 implementations with broken preprocessors. Perhaps this can
18956 be revisited in 2012. In the meantime, code should not expect
18957 #if to work with literals wider than 32 bits. */
18958 /* Test literals. */
18959 long long int ll = 9223372036854775807ll;
18960 long long int nll = -9223372036854775807LL;
18961 unsigned long long int ull = 18446744073709551615ULL;
18962 /* Test constant expressions. */
18963 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
18965 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
18971 /* Test availability of runtime routines for shift and division. */
18972 long long int llmax = 9223372036854775807ll;
18973 unsigned long long int ullmax = 18446744073709551615ull;
18974 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
18975 | (llmax / ll) | (llmax % ll)
18976 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
18977 | (ullmax / ull) | (ullmax % ull));
18983 if ac_fn_c_try_link
"$LINENO"; then :
18986 ac_cv_type_unsigned_long_long_int
=no
18988 rm -f core conftest.err conftest.
$ac_objext \
18989 conftest
$ac_exeext conftest.
$ac_ext
18992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
18993 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
18994 if test $ac_cv_type_unsigned_long_long_int = yes; then
18996 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
19002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
19003 $as_echo_n "checking for long long int... " >&6; }
19004 if test "${ac_cv_type_long_long_int+set}" = set; then :
19005 $as_echo_n "(cached) " >&6
19007 ac_cv_type_long_long_int
=yes
19008 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
19009 ac_cv_type_long_long_int
=$ac_cv_type_unsigned_long_long_int
19010 if test $ac_cv_type_long_long_int = yes; then
19011 if test "$cross_compiling" = yes; then :
19014 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19015 /* end confdefs.h. */
19016 #include <limits.h>
19019 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
19020 # define LLONG_MAX (HALF - 1 + HALF)
19025 long long int n = 1;
19029 long long int m = n << i;
19032 if (LLONG_MAX / 2 < m)
19040 if ac_fn_c_try_run
"$LINENO"; then :
19043 ac_cv_type_long_long_int
=no
19045 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19046 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
19053 $as_echo "$ac_cv_type_long_long_int" >&6; }
19054 if test $ac_cv_type_long_long_int = yes; then
19056 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
19065 gl_cv_c_multiarch
=no
19066 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19067 /* end confdefs.h. */
19068 #ifndef __APPLE_CC__
19069 not a universal capable compiler
19074 if ac_fn_c_try_compile
"$LINENO"; then :
19078 for word
in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
19079 if test -n "$prev"; then
19081 i?
86 | x86_64 | ppc | ppc64
)
19082 if test -z "$arch" ||
test "$arch" = "$word"; then
19085 gl_cv_c_multiarch
=yes
19091 if test "x$word" = "x-arch"; then
19098 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19099 if test $gl_cv_c_multiarch = yes; then
19100 APPLE_UNIVERSAL_BUILD
=1
19102 APPLE_UNIVERSAL_BUILD
=0
19109 if test $ac_cv_type_long_long_int = yes; then
19110 HAVE_LONG_LONG_INT
=1
19112 HAVE_LONG_LONG_INT
=0
19116 if test $ac_cv_type_unsigned_long_long_int = yes; then
19117 HAVE_UNSIGNED_LONG_LONG_INT
=1
19119 HAVE_UNSIGNED_LONG_LONG_INT
=0
19124 if test $ac_cv_header_wchar_h = yes; then
19131 if test $ac_cv_header_inttypes_h = yes; then
19138 if test $ac_cv_header_sys_types_h = yes; then
19154 if test $gl_cv_have_include_next = yes; then
19155 gl_cv_next_stdint_h
='<'stdint.h
'>'
19157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
19158 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
19159 if test "${gl_cv_next_stdint_h+set}" = set; then :
19160 $as_echo_n "(cached) " >&6
19163 if test $ac_cv_header_stdint_h = yes; then
19166 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19167 /* end confdefs.h. */
19168 #include <stdint.h>
19172 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
19173 *) gl_absname_cpp
="$ac_cpp" ;;
19178 gl_dirsep_regex
='[/\\]'
19181 gl_dirsep_regex
='\/'
19184 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
19186 gl_header_literal_regex
=`echo 'stdint.h' \
19187 | sed -e "$gl_make_literal_regex_sed"`
19188 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19189 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19194 gl_cv_next_stdint_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19195 sed -n "$gl_absolute_header_sed"`'"'
19197 gl_cv_next_stdint_h
='<'stdint.h
'>'
19202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
19203 $as_echo "$gl_cv_next_stdint_h" >&6; }
19205 NEXT_STDINT_H
=$gl_cv_next_stdint_h
19207 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
19208 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19209 gl_next_as_first_directive
='<'stdint.h
'>'
19211 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19212 gl_next_as_first_directive
=$gl_cv_next_stdint_h
19214 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
=$gl_next_as_first_directive
19219 if test $ac_cv_header_stdint_h = yes; then
19226 if test $ac_cv_header_stdint_h = yes; then
19227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
19228 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
19229 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
19230 $as_echo_n "(cached) " >&6
19232 gl_cv_header_working_stdint_h
=no
19233 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19234 /* end confdefs.h. */
19237 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
19238 #include <stdint.h>
19239 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
19240 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
19241 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
19245 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19246 included before <wchar.h>. */
19247 #include <stddef.h>
19248 #include <signal.h>
19250 # include <stdio.h>
19252 # include <wchar.h>
19257 int8_t a1 = INT8_MAX;
19258 int8_t a1min = INT8_MIN;
19261 int16_t a2 = INT16_MAX;
19262 int16_t a2min = INT16_MIN;
19265 int32_t a3 = INT32_MAX;
19266 int32_t a3min = INT32_MIN;
19269 int64_t a4 = INT64_MAX;
19270 int64_t a4min = INT64_MIN;
19273 uint8_t b1 = UINT8_MAX;
19275 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
19278 uint16_t b2 = UINT16_MAX;
19281 uint32_t b3 = UINT32_MAX;
19284 uint64_t b4 = UINT64_MAX;
19286 int_least8_t c1 = INT8_C (0x7f);
19287 int_least8_t c1max = INT_LEAST8_MAX;
19288 int_least8_t c1min = INT_LEAST8_MIN;
19289 int_least16_t c2 = INT16_C (0x7fff);
19290 int_least16_t c2max = INT_LEAST16_MAX;
19291 int_least16_t c2min = INT_LEAST16_MIN;
19292 int_least32_t c3 = INT32_C (0x7fffffff);
19293 int_least32_t c3max = INT_LEAST32_MAX;
19294 int_least32_t c3min = INT_LEAST32_MIN;
19295 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
19296 int_least64_t c4max = INT_LEAST64_MAX;
19297 int_least64_t c4min = INT_LEAST64_MIN;
19298 uint_least8_t d1 = UINT8_C (0xff);
19299 uint_least8_t d1max = UINT_LEAST8_MAX;
19300 uint_least16_t d2 = UINT16_C (0xffff);
19301 uint_least16_t d2max = UINT_LEAST16_MAX;
19302 uint_least32_t d3 = UINT32_C (0xffffffff);
19303 uint_least32_t d3max = UINT_LEAST32_MAX;
19304 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
19305 uint_least64_t d4max = UINT_LEAST64_MAX;
19306 int_fast8_t e1 = INT_FAST8_MAX;
19307 int_fast8_t e1min = INT_FAST8_MIN;
19308 int_fast16_t e2 = INT_FAST16_MAX;
19309 int_fast16_t e2min = INT_FAST16_MIN;
19310 int_fast32_t e3 = INT_FAST32_MAX;
19311 int_fast32_t e3min = INT_FAST32_MIN;
19312 int_fast64_t e4 = INT_FAST64_MAX;
19313 int_fast64_t e4min = INT_FAST64_MIN;
19314 uint_fast8_t f1 = UINT_FAST8_MAX;
19315 uint_fast16_t f2 = UINT_FAST16_MAX;
19316 uint_fast32_t f3 = UINT_FAST32_MAX;
19317 uint_fast64_t f4 = UINT_FAST64_MAX;
19319 intptr_t g = INTPTR_MAX;
19320 intptr_t gmin = INTPTR_MIN;
19323 uintptr_t h = UINTPTR_MAX;
19325 intmax_t i = INTMAX_MAX;
19326 uintmax_t j = UINTMAX_MAX;
19328 #include <limits.h> /* for CHAR_BIT */
19329 #define TYPE_MINIMUM(t) \
19330 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
19331 #define TYPE_MAXIMUM(t) \
19332 ((t) ((t) 0 < (t) -1 \
19334 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
19337 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
19338 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
19340 /* Detect bug in FreeBSD 6.0 / ia64. */
19341 int check_SIG_ATOMIC:
19342 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
19343 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
19345 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
19347 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
19348 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
19350 /* Detect bug in mingw. */
19352 WINT_MIN == TYPE_MINIMUM (wint_t)
19353 && WINT_MAX == TYPE_MAXIMUM (wint_t)
19356 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
19358 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
19359 int check_UINT16_C:
19360 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
19362 /* Detect bugs in OpenBSD 3.9 stdint.h. */
19364 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
19367 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
19370 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
19373 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
19375 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
19376 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
19377 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
19378 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
19379 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
19380 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
19381 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
19382 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
19383 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
19384 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
19385 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
19396 if ac_fn_c_try_compile
"$LINENO"; then :
19397 if test "$cross_compiling" = yes; then :
19398 gl_cv_header_working_stdint_h
=yes
19401 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19402 /* end confdefs.h. */
19405 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
19406 #include <stdint.h>
19409 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19410 included before <wchar.h>. */
19411 #include <stddef.h>
19412 #include <signal.h>
19414 # include <stdio.h>
19416 # include <wchar.h>
19421 #include <string.h>
19422 #define MVAL(macro) MVAL1(macro)
19423 #define MVAL1(expression) #expression
19424 static const char *macro_values[] =
19458 for (mv = macro_values; *mv != NULL; mv++)
19460 const char *value = *mv;
19461 /* Test whether it looks like a cast expression. */
19462 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
19463 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
19464 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
19465 || strncmp (value, "((int)"/*)*/, 6) == 0
19466 || strncmp (value, "((signed short)"/*)*/, 15) == 0
19467 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
19468 return mv - macro_values + 1;
19476 if ac_fn_c_try_run
"$LINENO"; then :
19477 gl_cv_header_working_stdint_h
=yes
19479 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19480 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19485 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
19489 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
19491 if test "$gl_cv_header_working_stdint_h" = yes; then
19494 for ac_header
in sys
/inttypes.h sys
/bitypes.h
19496 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19497 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19498 eval as_val
=\$
$as_ac_Header
19499 if test "x$as_val" = x
""yes; then :
19500 cat >>confdefs.h
<<_ACEOF
19501 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19508 if test $ac_cv_header_sys_inttypes_h = yes; then
19509 HAVE_SYS_INTTYPES_H
=1
19511 HAVE_SYS_INTTYPES_H
=0
19514 if test $ac_cv_header_sys_bitypes_h = yes; then
19515 HAVE_SYS_BITYPES_H
=1
19517 HAVE_SYS_BITYPES_H
=0
19523 if test $APPLE_UNIVERSAL_BUILD = 0; then
19526 for gltype
in ptrdiff_t size_t
; do
19527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
19528 $as_echo_n "checking for bit size of $gltype... " >&6; }
19529 if { as_var
=gl_cv_bitsizeof_
${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
19530 $as_echo_n "(cached) " >&6
19532 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
19533 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19534 included before <wchar.h>. */
19535 #include <stddef.h>
19536 #include <signal.h>
19538 # include <stdio.h>
19540 # include <wchar.h>
19543 #include <limits.h>"; then :
19549 eval gl_cv_bitsizeof_
${gltype}=\
$result
19552 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
19553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19554 $as_echo "$ac_res" >&6; }
19555 eval result
=\
$gl_cv_bitsizeof_${gltype}
19556 if test $result = unknown
; then
19559 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
19560 cat >>confdefs.h
<<_ACEOF
19561 #define BITSIZEOF_${GLTYPE} $result
19564 eval BITSIZEOF_
${GLTYPE}=\
$result
19571 for gltype
in sig_atomic_t wchar_t wint_t
; do
19572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
19573 $as_echo_n "checking for bit size of $gltype... " >&6; }
19574 if { as_var
=gl_cv_bitsizeof_
${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
19575 $as_echo_n "(cached) " >&6
19577 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
19578 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19579 included before <wchar.h>. */
19580 #include <stddef.h>
19581 #include <signal.h>
19583 # include <stdio.h>
19585 # include <wchar.h>
19588 #include <limits.h>"; then :
19594 eval gl_cv_bitsizeof_
${gltype}=\
$result
19597 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
19598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19599 $as_echo "$ac_res" >&6; }
19600 eval result
=\
$gl_cv_bitsizeof_${gltype}
19601 if test $result = unknown
; then
19604 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
19605 cat >>confdefs.h
<<_ACEOF
19606 #define BITSIZEOF_${GLTYPE} $result
19609 eval BITSIZEOF_
${GLTYPE}=\
$result
19615 for gltype
in sig_atomic_t wchar_t wint_t
; do
19616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
19617 $as_echo_n "checking whether $gltype is signed... " >&6; }
19618 if { as_var
=gl_cv_type_
${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
19619 $as_echo_n "(cached) " >&6
19621 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19622 /* end confdefs.h. */
19624 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19625 included before <wchar.h>. */
19626 #include <stddef.h>
19627 #include <signal.h>
19629 # include <stdio.h>
19631 # include <wchar.h>
19634 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
19643 if ac_fn_c_try_compile
"$LINENO"; then :
19648 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19649 eval gl_cv_type_
${gltype}_signed
=\
$result
19652 eval ac_res
=\
$gl_cv_type_${gltype}_signed
19653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19654 $as_echo "$ac_res" >&6; }
19655 eval result
=\
$gl_cv_type_${gltype}_signed
19656 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
19657 if test "$result" = yes; then
19658 cat >>confdefs.h
<<_ACEOF
19659 #define HAVE_SIGNED_${GLTYPE} 1
19662 eval HAVE_SIGNED_
${GLTYPE}=1
19664 eval HAVE_SIGNED_
${GLTYPE}=0
19669 gl_cv_type_ptrdiff_t_signed
=yes
19670 gl_cv_type_size_t_signed
=no
19671 if test $APPLE_UNIVERSAL_BUILD = 0; then
19674 for gltype
in ptrdiff_t size_t
; do
19675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
19676 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
19677 if { as_var
=gl_cv_type_
${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
19678 $as_echo_n "(cached) " >&6
19680 eval gl_cv_type_
${gltype}_suffix
=no
19681 eval result
=\
$gl_cv_type_${gltype}_signed
19682 if test "$result" = yes; then
19687 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
19689 '') gltype1
='int';;
19690 l
) gltype1
='long int';;
19691 ll
) gltype1
='long long int';;
19692 i64
) gltype1
='__int64';;
19693 u
) gltype1
='unsigned int';;
19694 ul
) gltype1
='unsigned long int';;
19695 ull
) gltype1
='unsigned long long int';;
19696 ui64
)gltype1
='unsigned __int64';;
19698 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19699 /* end confdefs.h. */
19701 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19702 included before <wchar.h>. */
19703 #include <stddef.h>
19704 #include <signal.h>
19706 # include <stdio.h>
19708 # include <wchar.h>
19711 extern $gltype foo;
19712 extern $gltype1 foo;
19721 if ac_fn_c_try_compile
"$LINENO"; then :
19722 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
19724 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19725 eval result
=\
$gl_cv_type_${gltype}_suffix
19726 test "$result" != no
&& break
19729 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
19730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19731 $as_echo "$ac_res" >&6; }
19732 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
19733 eval result
=\
$gl_cv_type_${gltype}_suffix
19734 test "$result" = no
&& result
=
19735 eval ${GLTYPE}_SUFFIX
=\
$result
19736 cat >>confdefs.h
<<_ACEOF
19737 #define ${GLTYPE}_SUFFIX $result
19746 for gltype
in sig_atomic_t wchar_t wint_t
; do
19747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
19748 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
19749 if { as_var
=gl_cv_type_
${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
19750 $as_echo_n "(cached) " >&6
19752 eval gl_cv_type_
${gltype}_suffix
=no
19753 eval result
=\
$gl_cv_type_${gltype}_signed
19754 if test "$result" = yes; then
19759 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
19761 '') gltype1
='int';;
19762 l
) gltype1
='long int';;
19763 ll
) gltype1
='long long int';;
19764 i64
) gltype1
='__int64';;
19765 u
) gltype1
='unsigned int';;
19766 ul
) gltype1
='unsigned long int';;
19767 ull
) gltype1
='unsigned long long int';;
19768 ui64
)gltype1
='unsigned __int64';;
19770 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19771 /* end confdefs.h. */
19773 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19774 included before <wchar.h>. */
19775 #include <stddef.h>
19776 #include <signal.h>
19778 # include <stdio.h>
19780 # include <wchar.h>
19783 extern $gltype foo;
19784 extern $gltype1 foo;
19793 if ac_fn_c_try_compile
"$LINENO"; then :
19794 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
19796 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19797 eval result
=\
$gl_cv_type_${gltype}_suffix
19798 test "$result" != no
&& break
19801 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
19802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19803 $as_echo "$ac_res" >&6; }
19804 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
19805 eval result
=\
$gl_cv_type_${gltype}_suffix
19806 test "$result" = no
&& result
=
19807 eval ${GLTYPE}_SUFFIX
=\
$result
19808 cat >>confdefs.h
<<_ACEOF
19809 #define ${GLTYPE}_SUFFIX $result
19816 if test $BITSIZEOF_WINT_T -lt 32; then
19817 BITSIZEOF_WINT_T
=32
19823 if test -n "$STDINT_H"; then
19824 GL_GENERATE_STDINT_H_TRUE
=
19825 GL_GENERATE_STDINT_H_FALSE
='#'
19827 GL_GENERATE_STDINT_H_TRUE
='#'
19828 GL_GENERATE_STDINT_H_FALSE
=
19837 GNULIB_STRTOIMAX
=0;
19838 GNULIB_STRTOUMAX
=0;
19839 HAVE_DECL_IMAXABS
=1;
19840 HAVE_DECL_IMAXDIV
=1;
19841 HAVE_DECL_STRTOIMAX
=1;
19842 HAVE_DECL_STRTOUMAX
=1;
19843 REPLACE_STRTOIMAX
=0;
19844 INT32_MAX_LT_INTMAX_MAX
=1;
19845 INT64_MAX_EQ_LONG_MAX
='defined _LP64';
19846 PRI_MACROS_BROKEN
=0;
19847 PRIPTR_PREFIX
=__PRIPTR_PREFIX
;
19848 UINT32_MAX_LT_UINTMAX_MAX
=1;
19849 UINT64_MAX_EQ_ULONG_MAX
='defined _LP64';
19865 if test $gl_cv_have_include_next = yes; then
19866 gl_cv_next_inttypes_h
='<'inttypes.h
'>'
19868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
19869 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
19870 if test "${gl_cv_next_inttypes_h+set}" = set; then :
19871 $as_echo_n "(cached) " >&6
19874 if test $ac_cv_header_inttypes_h = yes; then
19877 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19878 /* end confdefs.h. */
19879 #include <inttypes.h>
19883 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
19884 *) gl_absname_cpp
="$ac_cpp" ;;
19889 gl_dirsep_regex
='[/\\]'
19892 gl_dirsep_regex
='\/'
19895 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
19897 gl_header_literal_regex
=`echo 'inttypes.h' \
19898 | sed -e "$gl_make_literal_regex_sed"`
19899 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19900 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19905 gl_cv_next_inttypes_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19906 sed -n "$gl_absolute_header_sed"`'"'
19908 gl_cv_next_inttypes_h
='<'inttypes.h
'>'
19913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
19914 $as_echo "$gl_cv_next_inttypes_h" >&6; }
19916 NEXT_INTTYPES_H
=$gl_cv_next_inttypes_h
19918 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
19919 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19920 gl_next_as_first_directive
='<'inttypes.h
'>'
19922 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19923 gl_next_as_first_directive
=$gl_cv_next_inttypes_h
19925 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
=$gl_next_as_first_directive
19939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5
19940 $as_echo_n "checking for 64-bit off_t... " >&6; }
19941 if test "${gl_cv_type_off_t_64+set}" = set; then :
19942 $as_echo_n "(cached) " >&6
19944 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19945 /* end confdefs.h. */
19946 #include <sys/types.h>
19947 int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1];
19957 if ac_fn_c_try_compile
"$LINENO"; then :
19958 gl_cv_type_off_t_64
=yes
19960 gl_cv_type_off_t_64
=no
19962 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5
19966 $as_echo "$gl_cv_type_off_t_64" >&6; }
19967 if test $gl_cv_type_off_t_64 = no
; then
19968 WINDOWS_64_BIT_OFF_T
=1
19970 WINDOWS_64_BIT_OFF_T
=0
19972 WINDOWS_64_BIT_ST_SIZE
=1
19975 WINDOWS_64_BIT_OFF_T
=0
19976 WINDOWS_64_BIT_ST_SIZE
=0
19989 GNULIB_RAWMEMCHR
=0;
19992 GNULIB_STRCHRNUL
=0;
20000 GNULIB_STRCASESTR
=0;
20007 GNULIB_MBSCASECMP
=0;
20008 GNULIB_MBSNCASECMP
=0;
20009 GNULIB_MBSPCASECMP
=0;
20010 GNULIB_MBSCASESTR
=0;
20017 GNULIB_STRERROR_R
=0;
20018 GNULIB_STRSIGNAL
=0;
20019 GNULIB_STRVERSCMP
=0;
20024 HAVE_DECL_MEMMEM
=1;
20026 HAVE_DECL_MEMRCHR
=1;
20031 HAVE_DECL_STRDUP
=1;
20032 HAVE_DECL_STRNDUP
=1;
20033 HAVE_DECL_STRNLEN
=1;
20037 HAVE_DECL_STRTOK_R
=1;
20038 HAVE_DECL_STRERROR_R
=1;
20039 HAVE_DECL_STRSIGNAL
=1;
20046 REPLACE_STRCASESTR
=0;
20047 REPLACE_STRCHRNUL
=0;
20048 REPLACE_STRERROR
=0;
20049 REPLACE_STRERROR_R
=0;
20053 REPLACE_STRSIGNAL
=0;
20054 REPLACE_STRTOK_R
=0;
20055 UNDEFINE_STRTOK_R
=0;
20057 ac_fn_c_check_decl
"$LINENO" "memrchr" "ac_cv_have_decl_memrchr" "$ac_includes_default"
20058 if test "x$ac_cv_have_decl_memrchr" = x
""yes; then :
20064 cat >>confdefs.h
<<_ACEOF
20065 #define HAVE_DECL_MEMRCHR $ac_have_decl
20070 GNULIB_NANOSLEEP
=0;
20074 HAVE_DECL_LOCALTIME_R
=1;
20078 REPLACE_LOCALTIME_R
=GNULIB_PORTCHECK
;
20079 REPLACE_MKTIME
=GNULIB_PORTCHECK
;
20080 REPLACE_NANOSLEEP
=GNULIB_PORTCHECK
;
20081 REPLACE_TIMEGM
=GNULIB_PORTCHECK
;
20083 ac_fn_c_check_decl
"$LINENO" "alarm" "ac_cv_have_decl_alarm" "$ac_includes_default"
20084 if test "x$ac_cv_have_decl_alarm" = x
""yes; then :
20090 cat >>confdefs.h
<<_ACEOF
20091 #define HAVE_DECL_ALARM $ac_have_decl
20106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/select.h> is self-contained" >&5
20107 $as_echo_n "checking whether <sys/select.h> is self-contained... " >&6; }
20108 if test "${gl_cv_header_sys_select_h_selfcontained+set}" = set; then :
20109 $as_echo_n "(cached) " >&6
20112 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20113 /* end confdefs.h. */
20114 #include <sys/select.h>
20123 if ac_fn_c_try_compile
"$LINENO"; then :
20124 gl_cv_header_sys_select_h_selfcontained
=yes
20126 gl_cv_header_sys_select_h_selfcontained
=no
20128 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20129 if test $gl_cv_header_sys_select_h_selfcontained = yes; then
20130 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20131 /* end confdefs.h. */
20132 #include <sys/select.h>
20136 int memset; int bzero;
20142 if ac_fn_c_try_compile
"$LINENO"; then :
20143 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20144 /* end confdefs.h. */
20145 #include <sys/select.h>
20151 #define memset nonexistent_memset
20156 void *memset (void *, int, unsigned long);
20158 #define bzero nonexistent_bzero
20163 void bzero (void *, unsigned long);
20172 if ac_fn_c_try_link
"$LINENO"; then :
20175 gl_cv_header_sys_select_h_selfcontained
=no
20177 rm -f core conftest.err conftest.
$ac_objext \
20178 conftest
$ac_exeext conftest.
$ac_ext
20181 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_selfcontained" >&5
20186 $as_echo "$gl_cv_header_sys_select_h_selfcontained" >&6; }
20196 if test $gl_cv_have_include_next = yes; then
20197 gl_cv_next_sys_select_h
='<'sys
/select.h
'>'
20199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/select.h>" >&5
20200 $as_echo_n "checking absolute name of <sys/select.h>... " >&6; }
20201 if test "${gl_cv_next_sys_select_h+set}" = set; then :
20202 $as_echo_n "(cached) " >&6
20205 if test $ac_cv_header_sys_select_h = yes; then
20208 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20209 /* end confdefs.h. */
20210 #include <sys/select.h>
20214 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
20215 *) gl_absname_cpp
="$ac_cpp" ;;
20220 gl_dirsep_regex
='[/\\]'
20223 gl_dirsep_regex
='\/'
20226 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
20228 gl_header_literal_regex
=`echo 'sys/select.h' \
20229 | sed -e "$gl_make_literal_regex_sed"`
20230 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
20231 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
20236 gl_cv_next_sys_select_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20237 sed -n "$gl_absolute_header_sed"`'"'
20239 gl_cv_next_sys_select_h
='<'sys
/select.h
'>'
20244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_select_h" >&5
20245 $as_echo "$gl_cv_next_sys_select_h" >&6; }
20247 NEXT_SYS_SELECT_H
=$gl_cv_next_sys_select_h
20249 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
20250 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20251 gl_next_as_first_directive
='<'sys
/select.h
'>'
20253 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20254 gl_next_as_first_directive
=$gl_cv_next_sys_select_h
20256 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H
=$gl_next_as_first_directive
20261 if test $ac_cv_header_sys_select_h = yes; then
20262 HAVE_SYS_SELECT_H
=1
20264 HAVE_SYS_SELECT_H
=0
20271 if test $ac_cv_header_sys_socket_h != yes; then
20272 for ac_header
in winsock2.h
20274 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
20275 if test "x$ac_cv_header_winsock2_h" = x
""yes; then :
20276 cat >>confdefs.h
<<_ACEOF
20277 #define HAVE_WINSOCK2_H 1
20285 if test "$ac_cv_header_winsock2_h" = yes; then
20287 UNISTD_H_HAVE_WINSOCK2_H
=1
20288 SYS_IOCTL_H_HAVE_WINSOCK2_H
=1
20300 GNULIB_PTHREAD_SIGMASK
=0;
20302 GNULIB_SIGNAL_H_SIGPIPE
=0;
20303 GNULIB_SIGPROCMASK
=0;
20304 GNULIB_SIGACTION
=0;
20305 HAVE_POSIX_SIGNALBLOCKING
=1;
20306 HAVE_PTHREAD_SIGMASK
=1;
20311 HAVE_STRUCT_SIGACTION_SA_SIGACTION
=1;
20313 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
=1;
20315 HAVE_SIGHANDLER_T
=1;
20316 REPLACE_PTHREAD_SIGMASK
=0;
20325 ac_fn_c_check_type
"$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
20326 #include <signal.h>
20327 /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */
20328 #include <sys/types.h>
20331 if test "x$ac_cv_type_sigset_t" = x
""yes; then :
20333 cat >>confdefs.h
<<_ACEOF
20334 #define HAVE_SIGSET_T 1
20337 gl_cv_type_sigset_t
=yes
20339 gl_cv_type_sigset_t
=no
20342 if test $gl_cv_type_sigset_t != yes; then
20348 if test $ac_cv_header_sys_socket_h = no
; then
20349 for ac_header
in ws2tcpip.h
20351 ac_fn_c_check_header_mongrel
"$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
20352 if test "x$ac_cv_header_ws2tcpip_h" = x
""yes; then :
20353 cat >>confdefs.h
<<_ACEOF
20354 #define HAVE_WS2TCPIP_H 1
20363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
20364 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
20365 if test "${ac_cv_header_stdbool_h+set}" = set; then :
20366 $as_echo_n "(cached) " >&6
20368 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20369 /* end confdefs.h. */
20371 #include <stdbool.h>
20373 "error: bool is not defined"
20376 "error: false is not defined"
20379 "error: false is not 0"
20382 "error: true is not defined"
20385 "error: true is not 1"
20387 #ifndef __bool_true_false_are_defined
20388 "error: __bool_true_false_are_defined is not defined"
20391 struct s { _Bool s: 1; _Bool t; } s;
20393 char a[true == 1 ? 1 : -1];
20394 char b[false == 0 ? 1 : -1];
20395 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
20396 char d[(bool) 0.5 == true ? 1 : -1];
20397 /* See body of main program for 'e'. */
20398 char f[(_Bool) 0.0 == false ? 1 : -1];
20400 char h[sizeof (_Bool)];
20401 char i[sizeof s.t];
20402 enum { j = false, k = true, l = false * true, m = true * 256 };
20403 /* The following fails for
20404 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
20406 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
20407 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
20408 /* Catch a bug in an HP-UX C compiler. See
20409 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
20410 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
20422 /* Refer to every declared value, to avoid compiler optimizations. */
20423 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
20424 + !m + !n + !o + !p + !q + !pq);
20430 if ac_fn_c_try_compile
"$LINENO"; then :
20431 ac_cv_header_stdbool_h
=yes
20433 ac_cv_header_stdbool_h
=no
20435 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
20438 $as_echo "$ac_cv_header_stdbool_h" >&6; }
20439 ac_fn_c_check_type
"$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
20440 if test "x$ac_cv_type__Bool" = x
""yes; then :
20442 cat >>confdefs.h
<<_ACEOF
20443 #define HAVE__BOOL 1
20455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
20456 $as_echo_n "checking for wchar_t... " >&6; }
20457 if test "${gt_cv_c_wchar_t+set}" = set; then :
20458 $as_echo_n "(cached) " >&6
20460 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20461 /* end confdefs.h. */
20462 #include <stddef.h>
20463 wchar_t foo = (wchar_t)'\0';
20472 if ac_fn_c_try_compile
"$LINENO"; then :
20473 gt_cv_c_wchar_t
=yes
20477 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
20480 $as_echo "$gt_cv_c_wchar_t" >&6; }
20481 if test $gt_cv_c_wchar_t = yes; then
20483 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
20496 GNULIB_FPRINTF_POSIX
=0;
20512 GNULIB_OBSTACK_PRINTF
=0;
20513 GNULIB_OBSTACK_PRINTF_POSIX
=0;
20518 GNULIB_PRINTF_POSIX
=0;
20527 GNULIB_SPRINTF_POSIX
=0;
20528 GNULIB_STDIO_H_NONBLOCKING
=0;
20529 GNULIB_STDIO_H_SIGPIPE
=0;
20531 GNULIB_VASPRINTF
=0;
20536 GNULIB_VFPRINTF_POSIX
=0;
20538 GNULIB_VPRINTF_POSIX
=0;
20539 GNULIB_VSNPRINTF
=0;
20540 GNULIB_VSPRINTF_POSIX
=0;
20541 HAVE_DECL_FPURGE
=1;
20542 HAVE_DECL_FSEEKO
=1;
20543 HAVE_DECL_FTELLO
=1;
20544 HAVE_DECL_GETDELIM
=1;
20545 HAVE_DECL_GETLINE
=1;
20546 HAVE_DECL_OBSTACK_PRINTF
=1;
20547 HAVE_DECL_SNPRINTF
=1;
20548 HAVE_DECL_VSNPRINTF
=1;
20569 REPLACE_GETDELIM
=0;
20571 REPLACE_OBSTACK_PRINTF
=0;
20577 REPLACE_RENAMEAT
=0;
20578 REPLACE_SNPRINTF
=0;
20580 REPLACE_STDIO_READ_FUNCS
=0;
20581 REPLACE_STDIO_WRITE_FUNCS
=0;
20583 REPLACE_VASPRINTF
=0;
20584 REPLACE_VDPRINTF
=0;
20585 REPLACE_VFPRINTF
=0;
20587 REPLACE_VSNPRINTF
=0;
20588 REPLACE_VSPRINTF
=0;
20590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
20591 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
20592 if test "${ac_cv_struct_tm+set}" = set; then :
20593 $as_echo_n "(cached) " >&6
20595 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20596 /* end confdefs.h. */
20597 #include <sys/types.h>
20604 int *p = &tm.tm_sec;
20610 if ac_fn_c_try_compile
"$LINENO"; then :
20611 ac_cv_struct_tm
=time.h
20613 ac_cv_struct_tm
=sys
/time.h
20615 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
20618 $as_echo "$ac_cv_struct_tm" >&6; }
20619 if test $ac_cv_struct_tm = sys
/time.h
; then
20621 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
20625 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
20626 #include <$ac_cv_struct_tm>
20629 if test "x$ac_cv_member_struct_tm_tm_zone" = x
""yes; then :
20631 cat >>confdefs.h
<<_ACEOF
20632 #define HAVE_STRUCT_TM_TM_ZONE 1
20638 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
20640 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
20643 ac_fn_c_check_decl
"$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
20645 if test "x$ac_cv_have_decl_tzname" = x
""yes; then :
20651 cat >>confdefs.h
<<_ACEOF
20652 #define HAVE_DECL_TZNAME $ac_have_decl
20655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
20656 $as_echo_n "checking for tzname... " >&6; }
20657 if test "${ac_cv_var_tzname+set}" = set; then :
20658 $as_echo_n "(cached) " >&6
20660 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20661 /* end confdefs.h. */
20663 #if !HAVE_DECL_TZNAME
20664 extern char *tzname[];
20670 return tzname[0][0];
20675 if ac_fn_c_try_link
"$LINENO"; then :
20676 ac_cv_var_tzname
=yes
20678 ac_cv_var_tzname
=no
20680 rm -f core conftest.err conftest.
$ac_objext \
20681 conftest
$ac_exeext conftest.
$ac_ext
20683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
20684 $as_echo "$ac_cv_var_tzname" >&6; }
20685 if test $ac_cv_var_tzname = yes; then
20687 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
20693 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
20695 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x
""yes; then :
20697 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
20713 if test $gl_cv_have_include_next = yes; then
20714 gl_cv_next_string_h
='<'string.h
'>'
20716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
20717 $as_echo_n "checking absolute name of <string.h>... " >&6; }
20718 if test "${gl_cv_next_string_h+set}" = set; then :
20719 $as_echo_n "(cached) " >&6
20722 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20723 /* end confdefs.h. */
20724 #include <string.h>
20728 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
20729 *) gl_absname_cpp
="$ac_cpp" ;;
20734 gl_dirsep_regex
='[/\\]'
20737 gl_dirsep_regex
='\/'
20740 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
20742 gl_header_literal_regex
=`echo 'string.h' \
20743 | sed -e "$gl_make_literal_regex_sed"`
20744 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
20745 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
20750 gl_cv_next_string_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20751 sed -n "$gl_absolute_header_sed"`'"'
20755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
20756 $as_echo "$gl_cv_next_string_h" >&6; }
20758 NEXT_STRING_H
=$gl_cv_next_string_h
20760 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
20761 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20762 gl_next_as_first_directive
='<'string.h
'>'
20764 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20765 gl_next_as_first_directive
=$gl_cv_next_string_h
20767 NEXT_AS_FIRST_DIRECTIVE_STRING_H
=$gl_next_as_first_directive
20777 ac_fn_c_check_decl
"$LINENO" "strtoimax" "ac_cv_have_decl_strtoimax" "$ac_includes_default"
20778 if test "x$ac_cv_have_decl_strtoimax" = x
""yes; then :
20784 cat >>confdefs.h
<<_ACEOF
20785 #define HAVE_DECL_STRTOIMAX $ac_have_decl
20790 ac_fn_c_check_decl
"$LINENO" "strtoumax" "ac_cv_have_decl_strtoumax" "$ac_includes_default"
20791 if test "x$ac_cv_have_decl_strtoumax" = x
""yes; then :
20797 cat >>confdefs.h
<<_ACEOF
20798 #define HAVE_DECL_STRTOUMAX $ac_have_decl
20803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
20804 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
20805 if test "${ac_cv_header_stat_broken+set}" = set; then :
20806 $as_echo_n "(cached) " >&6
20808 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20809 /* end confdefs.h. */
20810 #include <sys/types.h>
20811 #include <sys/stat.h>
20813 #if defined S_ISBLK && defined S_IFDIR
20814 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
20817 #if defined S_ISBLK && defined S_IFCHR
20818 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
20821 #if defined S_ISLNK && defined S_IFREG
20822 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
20825 #if defined S_ISSOCK && defined S_IFREG
20826 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
20830 if ac_fn_c_try_compile
"$LINENO"; then :
20831 ac_cv_header_stat_broken
=no
20833 ac_cv_header_stat_broken
=yes
20835 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
20838 $as_echo "$ac_cv_header_stat_broken" >&6; }
20839 if test $ac_cv_header_stat_broken = yes; then
20841 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
20849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
20850 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
20851 if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then :
20852 $as_echo_n "(cached) " >&6
20854 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20855 /* end confdefs.h. */
20861 static struct timespec x; x.tv_sec = x.tv_nsec;
20866 if ac_fn_c_try_compile
"$LINENO"; then :
20867 gl_cv_sys_struct_timespec_in_time_h
=yes
20869 gl_cv_sys_struct_timespec_in_time_h
=no
20871 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
20874 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
20876 TIME_H_DEFINES_STRUCT_TIMESPEC
=0
20877 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
=0
20878 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
=0
20879 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
20880 TIME_H_DEFINES_STRUCT_TIMESPEC
=1
20882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
20883 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
20884 if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then :
20885 $as_echo_n "(cached) " >&6
20887 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20888 /* end confdefs.h. */
20889 #include <sys/time.h>
20894 static struct timespec x; x.tv_sec = x.tv_nsec;
20899 if ac_fn_c_try_compile
"$LINENO"; then :
20900 gl_cv_sys_struct_timespec_in_sys_time_h
=yes
20902 gl_cv_sys_struct_timespec_in_sys_time_h
=no
20904 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
20907 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
20908 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
20909 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
=1
20911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
20912 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
20913 if test "${gl_cv_sys_struct_timespec_in_pthread_h+set}" = set; then :
20914 $as_echo_n "(cached) " >&6
20916 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20917 /* end confdefs.h. */
20918 #include <pthread.h>
20923 static struct timespec x; x.tv_sec = x.tv_nsec;
20928 if ac_fn_c_try_compile
"$LINENO"; then :
20929 gl_cv_sys_struct_timespec_in_pthread_h
=yes
20931 gl_cv_sys_struct_timespec_in_pthread_h
=no
20933 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
20936 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
20937 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
20938 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
=1
20957 if test $gl_cv_have_include_next = yes; then
20958 gl_cv_next_time_h
='<'time.h
'>'
20960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
20961 $as_echo_n "checking absolute name of <time.h>... " >&6; }
20962 if test "${gl_cv_next_time_h+set}" = set; then :
20963 $as_echo_n "(cached) " >&6
20966 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20967 /* end confdefs.h. */
20972 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
20973 *) gl_absname_cpp
="$ac_cpp" ;;
20978 gl_dirsep_regex
='[/\\]'
20981 gl_dirsep_regex
='\/'
20984 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
20986 gl_header_literal_regex
=`echo 'time.h' \
20987 | sed -e "$gl_make_literal_regex_sed"`
20988 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
20989 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
20994 gl_cv_next_time_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20995 sed -n "$gl_absolute_header_sed"`'"'
20999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
21000 $as_echo "$gl_cv_next_time_h" >&6; }
21002 NEXT_TIME_H
=$gl_cv_next_time_h
21004 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
21005 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21006 gl_next_as_first_directive
='<'time.h
'>'
21008 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21009 gl_next_as_first_directive
=$gl_cv_next_time_h
21011 NEXT_AS_FIRST_DIRECTIVE_TIME_H
=$gl_next_as_first_directive
21026 ac_fn_c_check_decl
"$LINENO" "unsetenv" "ac_cv_have_decl_unsetenv" "$ac_includes_default"
21027 if test "x$ac_cv_have_decl_unsetenv" = x
""yes; then :
21033 cat >>confdefs.h
<<_ACEOF
21034 #define HAVE_DECL_UNSETENV $ac_have_decl
21038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the utimes function works" >&5
21039 $as_echo_n "checking whether the utimes function works... " >&6; }
21040 if test "${gl_cv_func_working_utimes+set}" = set; then :
21041 $as_echo_n "(cached) " >&6
21044 if test "$cross_compiling" = yes; then :
21045 gl_cv_func_working_utimes
=no
21047 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21048 /* end confdefs.h. */
21050 #include <sys/types.h>
21051 #include <sys/stat.h>
21053 #include <sys/time.h>
21055 #include <unistd.h>
21056 #include <stdlib.h>
21061 inorder (time_t a, time_t b, time_t c)
21063 return a <= b && b <= c;
21070 char const *file = "conftest.utimes";
21071 static struct timeval timeval[2] = {{9, 10}, {999999, 999999}};
21073 /* Test whether utimes() essentially works. */
21076 FILE *f = fopen (file, "w");
21079 else if (fclose (f) != 0)
21081 else if (utimes (file, timeval) != 0)
21083 else if (lstat (file, &sbuf) != 0)
21085 else if (!(sbuf.st_atime == timeval[0].tv_sec
21086 && sbuf.st_mtime == timeval[1].tv_sec))
21088 if (unlink (file) != 0)
21092 /* Test whether utimes() with a NULL argument sets the file's timestamp
21093 to the current time. Use 'fstat' as well as 'time' to
21094 determine the "current" time, to accommodate NFS file systems
21095 if there is a time skew between the host and the NFS server. */
21097 int fd = open (file, O_WRONLY|O_CREAT, 0644);
21103 struct stat st0, st1, st2;
21104 if (time (&t0) == (time_t) -1)
21106 else if (fstat (fd, &st0) != 0)
21108 else if (utimes (file, timeval) != 0)
21110 else if (utimes (file, NULL) != 0)
21112 else if (fstat (fd, &st1) != 0)
21114 else if (write (fd, "\n", 1) != 1)
21116 else if (fstat (fd, &st2) != 0)
21118 else if (time (&t2) == (time_t) -1)
21122 int m_ok_POSIX = inorder (t0, st1.st_mtime, t2);
21123 int m_ok_NFS = inorder (st0.st_mtime, st1.st_mtime, st2.st_mtime);
21124 if (! (st1.st_atime == st1.st_mtime))
21126 if (! (m_ok_POSIX || m_ok_NFS))
21129 if (close (fd) != 0)
21132 if (unlink (file) != 0)
21136 /* Test whether utimes() with a NULL argument works on read-only files. */
21138 int fd = open (file, O_WRONLY|O_CREAT, 0444);
21141 else if (close (fd) != 0)
21143 else if (utimes (file, NULL) != 0)
21145 if (unlink (file) != 0)
21153 if ac_fn_c_try_run
"$LINENO"; then :
21154 gl_cv_func_working_utimes
=yes
21156 gl_cv_func_working_utimes
=no
21158 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21159 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_utimes" >&5
21164 $as_echo "$gl_cv_func_working_utimes" >&6; }
21166 if test $gl_cv_func_working_utimes = yes; then
21168 $as_echo "#define HAVE_WORKING_UTIMES 1" >>confdefs.h
21176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
21177 $as_echo_n "checking for struct utimbuf... " >&6; }
21178 if test "${gl_cv_sys_struct_utimbuf+set}" = set; then :
21179 $as_echo_n "(cached) " >&6
21181 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21182 /* end confdefs.h. */
21183 #if HAVE_SYS_TIME_H
21184 #include <sys/time.h>
21187 #ifdef HAVE_UTIME_H
21194 static struct utimbuf x; x.actime = x.modtime;
21199 if ac_fn_c_try_compile
"$LINENO"; then :
21200 gl_cv_sys_struct_utimbuf
=yes
21202 gl_cv_sys_struct_utimbuf
=no
21204 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_utimbuf" >&5
21207 $as_echo "$gl_cv_sys_struct_utimbuf" >&6; }
21209 if test $gl_cv_sys_struct_utimbuf = yes; then
21211 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
21225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5
21226 $as_echo_n "checking type of array argument to getgroups... " >&6; }
21227 if test "${ac_cv_type_getgroups+set}" = set; then :
21228 $as_echo_n "(cached) " >&6
21230 if test "$cross_compiling" = yes; then :
21231 ac_cv_type_getgroups
=cross
21233 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21234 /* end confdefs.h. */
21235 /* Thanks to Mike Rendell for this test. */
21236 $ac_includes_default
21239 #define MAX(x, y) ((x) > (y) ? (x) : (y))
21244 gid_t gidset[NGID];
21246 union { gid_t gval; long int lval; } val;
21249 for (i = 0; i < NGID; i++)
21250 gidset[i] = val.gval;
21251 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
21253 /* Exit non-zero if getgroups seems to require an array of ints. This
21254 happens when gid_t is short int but getgroups modifies an array
21256 return n > 0 && gidset[n] != val.gval;
21259 if ac_fn_c_try_run
"$LINENO"; then :
21260 ac_cv_type_getgroups
=gid_t
21262 ac_cv_type_getgroups
=int
21264 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21265 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21268 if test $ac_cv_type_getgroups = cross
; then
21269 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21270 /* end confdefs.h. */
21271 #include <unistd.h>
21274 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21275 $EGREP "getgroups.*int.*gid_t" >/dev
/null
2>&1; then :
21276 ac_cv_type_getgroups
=gid_t
21278 ac_cv_type_getgroups
=int
21284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5
21285 $as_echo "$ac_cv_type_getgroups" >&6; }
21287 cat >>confdefs.h
<<_ACEOF
21288 #define GETGROUPS_T $ac_cv_type_getgroups
21295 GL_COND_LIBTOOL_TRUE
=
21296 GL_COND_LIBTOOL_FALSE
='#'
21298 GL_COND_LIBTOOL_TRUE
='#'
21299 GL_COND_LIBTOOL_FALSE
=
21302 gl_cond_libtool
=false
21315 gl_source_base
='lib'
21318 if test $ac_cv_func_alloca_works = no
; then
21322 # Define an additional variable used in the Makefile substitution.
21323 if test $ac_cv_working_alloca_h = yes; then
21324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
21325 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
21326 if test "${gl_cv_rpl_alloca+set}" = set; then :
21327 $as_echo_n "(cached) " >&6
21330 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21331 /* end confdefs.h. */
21333 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
21338 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21339 $EGREP "Need own alloca" >/dev
/null
2>&1; then :
21340 gl_cv_rpl_alloca
=yes
21342 gl_cv_rpl_alloca
=no
21348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
21349 $as_echo "$gl_cv_rpl_alloca" >&6; }
21350 if test $gl_cv_rpl_alloca = yes; then
21352 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
21362 if test -n "$ALLOCA_H"; then
21363 GL_GENERATE_ALLOCA_H_TRUE
=
21364 GL_GENERATE_ALLOCA_H_FALSE
='#'
21366 GL_GENERATE_ALLOCA_H_TRUE
='#'
21367 GL_GENERATE_ALLOCA_H_FALSE
=
21375 # Solaris 2.5.1 needs -lposix4 to get the clock_gettime function.
21376 # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
21378 # Save and restore LIBS so e.g., -lrt, isn't added to it. Otherwise, *all*
21379 # programs in the package would end up linked with that potentially-shared
21380 # library, inducing unnecessary run-time overhead.
21383 gl_saved_libs
=$LIBS
21384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
21385 $as_echo_n "checking for library containing clock_gettime... " >&6; }
21386 if test "${ac_cv_search_clock_gettime+set}" = set; then :
21387 $as_echo_n "(cached) " >&6
21389 ac_func_search_save_LIBS
=$LIBS
21390 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21391 /* end confdefs.h. */
21393 /* Override any GCC internal prototype to avoid an error.
21394 Use char because int might match the return type of a GCC
21395 builtin and then its argument prototype would still apply. */
21399 char clock_gettime ();
21403 return clock_gettime ();
21408 for ac_lib
in '' rt posix4
; do
21409 if test -z "$ac_lib"; then
21410 ac_res
="none required"
21413 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
21415 if ac_fn_c_try_link
"$LINENO"; then :
21416 ac_cv_search_clock_gettime
=$ac_res
21418 rm -f core conftest.err conftest.
$ac_objext \
21420 if test "${ac_cv_search_clock_gettime+set}" = set; then :
21424 if test "${ac_cv_search_clock_gettime+set}" = set; then :
21427 ac_cv_search_clock_gettime
=no
21429 rm conftest.
$ac_ext
21430 LIBS
=$ac_func_search_save_LIBS
21432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
21433 $as_echo "$ac_cv_search_clock_gettime" >&6; }
21434 ac_res
=$ac_cv_search_clock_gettime
21435 if test "$ac_res" != no
; then :
21436 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
21437 test "$ac_cv_search_clock_gettime" = "none required" ||
21438 LIB_CLOCK_GETTIME
=$ac_cv_search_clock_gettime
21441 for ac_func
in clock_gettime clock_settime
21443 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21444 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
21445 eval as_val
=\$
$as_ac_var
21446 if test "x$as_val" = x
""yes; then :
21447 cat >>confdefs.h
<<_ACEOF
21448 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21454 LIBS
=$gl_saved_libs
21461 cat >>confdefs.h
<<_ACEOF
21462 #define GNULIB_CLOSE_STREAM 1
21492 if test $gl_cv_have_include_next = yes; then
21493 gl_cv_next_dirent_h
='<'dirent.h
'>'
21495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <dirent.h>" >&5
21496 $as_echo_n "checking absolute name of <dirent.h>... " >&6; }
21497 if test "${gl_cv_next_dirent_h+set}" = set; then :
21498 $as_echo_n "(cached) " >&6
21501 if test $ac_cv_header_dirent_h = yes; then
21504 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21505 /* end confdefs.h. */
21506 #include <dirent.h>
21510 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
21511 *) gl_absname_cpp
="$ac_cpp" ;;
21516 gl_dirsep_regex
='[/\\]'
21519 gl_dirsep_regex
='\/'
21522 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
21524 gl_header_literal_regex
=`echo 'dirent.h' \
21525 | sed -e "$gl_make_literal_regex_sed"`
21526 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21527 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21532 gl_cv_next_dirent_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21533 sed -n "$gl_absolute_header_sed"`'"'
21535 gl_cv_next_dirent_h
='<'dirent.h
'>'
21540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_dirent_h" >&5
21541 $as_echo "$gl_cv_next_dirent_h" >&6; }
21543 NEXT_DIRENT_H
=$gl_cv_next_dirent_h
21545 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
21546 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21547 gl_next_as_first_directive
='<'dirent.h
'>'
21549 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21550 gl_next_as_first_directive
=$gl_cv_next_dirent_h
21552 NEXT_AS_FIRST_DIRECTIVE_DIRENT_H
=$gl_next_as_first_directive
21557 if test $ac_cv_header_dirent_h = yes; then
21572 $as_echo "#define HAVE_DUP2 1" >>confdefs.h
21575 if test $HAVE_DUP2 = 1; then
21576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5
21577 $as_echo_n "checking whether dup2 works... " >&6; }
21578 if test "${gl_cv_func_dup2_works+set}" = set; then :
21579 $as_echo_n "(cached) " >&6
21581 if test "$cross_compiling" = yes; then :
21583 mingw
*) # on this platform, dup2 always returns 0 for success
21584 gl_cv_func_dup2_works
="guessing no" ;;
21585 cygwin
*) # on cygwin 1.5.x, dup2(1,1) returns 0
21586 gl_cv_func_dup2_works
="guessing no" ;;
21587 linux
*) # On linux between 2008-07-27 and 2009-05-11, dup2 of a
21588 # closed fd may yield -EBADF instead of -1 / errno=EBADF.
21589 gl_cv_func_dup2_works
="guessing no" ;;
21590 freebsd
*) # on FreeBSD 6.1, dup2(1,1000000) gives EMFILE, not EBADF.
21591 gl_cv_func_dup2_works
="guessing no" ;;
21592 haiku
*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC.
21593 gl_cv_func_dup2_works
="guessing no" ;;
21594 *) gl_cv_func_dup2_works
="guessing yes" ;;
21597 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21598 /* end confdefs.h. */
21600 #include <unistd.h>
21608 if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1)
21611 if (dup2 (1, 1) == 0)
21614 if (fcntl (1, F_GETFD) != FD_CLOEXEC)
21618 if (dup2 (0, 0) != -1)
21620 /* Many gnulib modules require POSIX conformance of EBADF. */
21621 if (dup2 (2, 1000000) == -1 && errno != EBADF)
21623 /* Flush out a cygwin core dump. */
21624 if (dup2 (2, -1) != -1 || errno != EBADF)
21633 if ac_fn_c_try_run
"$LINENO"; then :
21634 gl_cv_func_dup2_works
=yes
21636 gl_cv_func_dup2_works
=no
21638 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21639 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5
21645 $as_echo "$gl_cv_func_dup2_works" >&6; }
21646 case "$gl_cv_func_dup2_works" in
21655 if test $HAVE_DUP2 = 0 ||
test $REPLACE_DUP2 = 1; then
21664 gl_LIBOBJS
="$gl_LIBOBJS dup2.$ac_objext"
21696 EXECINFO_H
='execinfo.h'
21698 if test $ac_cv_header_execinfo_h = yes; then
21699 gl_saved_libs
=$LIBS
21700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing backtrace_symbols_fd" >&5
21701 $as_echo_n "checking for library containing backtrace_symbols_fd... " >&6; }
21702 if test "${ac_cv_search_backtrace_symbols_fd+set}" = set; then :
21703 $as_echo_n "(cached) " >&6
21705 ac_func_search_save_LIBS
=$LIBS
21706 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21707 /* end confdefs.h. */
21709 /* Override any GCC internal prototype to avoid an error.
21710 Use char because int might match the return type of a GCC
21711 builtin and then its argument prototype would still apply. */
21715 char backtrace_symbols_fd ();
21719 return backtrace_symbols_fd ();
21724 for ac_lib
in '' execinfo
; do
21725 if test -z "$ac_lib"; then
21726 ac_res
="none required"
21729 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
21731 if ac_fn_c_try_link
"$LINENO"; then :
21732 ac_cv_search_backtrace_symbols_fd
=$ac_res
21734 rm -f core conftest.err conftest.
$ac_objext \
21736 if test "${ac_cv_search_backtrace_symbols_fd+set}" = set; then :
21740 if test "${ac_cv_search_backtrace_symbols_fd+set}" = set; then :
21743 ac_cv_search_backtrace_symbols_fd
=no
21745 rm conftest.
$ac_ext
21746 LIBS
=$ac_func_search_save_LIBS
21748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_backtrace_symbols_fd" >&5
21749 $as_echo "$ac_cv_search_backtrace_symbols_fd" >&6; }
21750 ac_res
=$ac_cv_search_backtrace_symbols_fd
21751 if test "$ac_res" != no
; then :
21752 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
21753 test "$ac_cv_search_backtrace_symbols_fd" = "none required" ||
21754 LIB_EXECINFO
=$ac_cv_search_backtrace_symbols_fd
21757 LIBS
=$gl_saved_libs
21758 test "$ac_cv_search_backtrace_symbols_fd" = no || EXECINFO_H
=''
21761 if test -n "$EXECINFO_H"; then
21770 gl_LIBOBJS
="$gl_LIBOBJS execinfo.$ac_objext"
21776 if test -n "$EXECINFO_H"; then
21777 GL_GENERATE_EXECINFO_H_TRUE
=
21778 GL_GENERATE_EXECINFO_H_FALSE
='#'
21780 GL_GENERATE_EXECINFO_H_TRUE
='#'
21781 GL_GENERATE_EXECINFO_H_FALSE
=
21792 if test $ac_cv_func_faccessat = no
; then
21796 if test $HAVE_FACCESSAT = 0; then
21805 gl_LIBOBJS
="$gl_LIBOBJS faccessat.$ac_objext"
21808 for ac_func
in access
21810 ac_fn_c_check_func
"$LINENO" "access" "ac_cv_func_access"
21811 if test "x$ac_cv_func_access" = x
""yes; then :
21812 cat >>confdefs.h
<<_ACEOF
21813 #define HAVE_ACCESS 1
21823 cat >>confdefs.h
<<_ACEOF
21824 #define GNULIB_FACCESSAT 1
21850 if test $gl_cv_have_include_next = yes; then
21851 gl_cv_next_fcntl_h
='<'fcntl.h
'>'
21853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <fcntl.h>" >&5
21854 $as_echo_n "checking absolute name of <fcntl.h>... " >&6; }
21855 if test "${gl_cv_next_fcntl_h+set}" = set; then :
21856 $as_echo_n "(cached) " >&6
21859 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21860 /* end confdefs.h. */
21865 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
21866 *) gl_absname_cpp
="$ac_cpp" ;;
21871 gl_dirsep_regex
='[/\\]'
21874 gl_dirsep_regex
='\/'
21877 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
21879 gl_header_literal_regex
=`echo 'fcntl.h' \
21880 | sed -e "$gl_make_literal_regex_sed"`
21881 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21882 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21887 gl_cv_next_fcntl_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21888 sed -n "$gl_absolute_header_sed"`'"'
21892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_fcntl_h" >&5
21893 $as_echo "$gl_cv_next_fcntl_h" >&6; }
21895 NEXT_FCNTL_H
=$gl_cv_next_fcntl_h
21897 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
21898 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21899 gl_next_as_first_directive
='<'fcntl.h
'>'
21901 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21902 gl_next_as_first_directive
=$gl_cv_next_fcntl_h
21904 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H
=$gl_next_as_first_directive
21923 if test $ac_cv_have_decl_fdatasync = no
; then
21924 HAVE_DECL_FDATASYNC
=0
21925 for ac_func
in fdatasync
21927 ac_fn_c_check_func
"$LINENO" "fdatasync" "ac_cv_func_fdatasync"
21928 if test "x$ac_cv_func_fdatasync" = x
""yes; then :
21929 cat >>confdefs.h
<<_ACEOF
21930 #define HAVE_FDATASYNC 1
21936 if test $ac_cv_func_fdatasync = no
; then
21940 gl_saved_libs
=$LIBS
21941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fdatasync" >&5
21942 $as_echo_n "checking for library containing fdatasync... " >&6; }
21943 if test "${ac_cv_search_fdatasync+set}" = set; then :
21944 $as_echo_n "(cached) " >&6
21946 ac_func_search_save_LIBS
=$LIBS
21947 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21948 /* end confdefs.h. */
21950 /* Override any GCC internal prototype to avoid an error.
21951 Use char because int might match the return type of a GCC
21952 builtin and then its argument prototype would still apply. */
21960 return fdatasync ();
21965 for ac_lib
in '' rt posix4
; do
21966 if test -z "$ac_lib"; then
21967 ac_res
="none required"
21970 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
21972 if ac_fn_c_try_link
"$LINENO"; then :
21973 ac_cv_search_fdatasync
=$ac_res
21975 rm -f core conftest.err conftest.
$ac_objext \
21977 if test "${ac_cv_search_fdatasync+set}" = set; then :
21981 if test "${ac_cv_search_fdatasync+set}" = set; then :
21984 ac_cv_search_fdatasync
=no
21986 rm conftest.
$ac_ext
21987 LIBS
=$ac_func_search_save_LIBS
21989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fdatasync" >&5
21990 $as_echo "$ac_cv_search_fdatasync" >&6; }
21991 ac_res
=$ac_cv_search_fdatasync
21992 if test "$ac_res" != no
; then :
21993 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
21994 test "$ac_cv_search_fdatasync" = "none required" ||
21995 LIB_FDATASYNC
=$ac_cv_search_fdatasync
21998 LIBS
=$gl_saved_libs
22001 if test $HAVE_FDATASYNC = 0; then
22010 gl_LIBOBJS
="$gl_LIBOBJS fdatasync.$ac_objext"
22029 ac_fn_c_check_decl
"$LINENO" "fdopendir" "ac_cv_have_decl_fdopendir" "
22030 #include <dirent.h>
22033 if test "x$ac_cv_have_decl_fdopendir" = x
""yes; then :
22039 cat >>confdefs.h
<<_ACEOF
22040 #define HAVE_DECL_FDOPENDIR $ac_have_decl
22042 if test $ac_have_decl = 1; then :
22045 HAVE_DECL_FDOPENDIR
=0
22049 if test $ac_cv_func_fdopendir = no
; then
22052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fdopendir works" >&5
22053 $as_echo_n "checking whether fdopendir works... " >&6; }
22054 if test "${gl_cv_func_fdopendir_works+set}" = set; then :
22055 $as_echo_n "(cached) " >&6
22057 if test "$cross_compiling" = yes; then :
22059 # Guess yes on glibc systems.
22060 *-gnu*) gl_cv_func_fdopendir_works
="guessing yes" ;;
22061 # If we don't know, assume the worst.
22062 *) gl_cv_func_fdopendir_works
="guessing no" ;;
22066 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22067 /* end confdefs.h. */
22069 #include <dirent.h>
22071 #include <unistd.h>
22072 #if !HAVE_DECL_FDOPENDIR
22074 # ifdef __cplusplus
22077 DIR *fdopendir (int);
22084 int fd = open ("conftest.c", O_RDONLY);
22085 if (fd < 0) result |= 1;
22086 if (fdopendir (fd)) result |= 2;
22087 if (close (fd)) result |= 4;
22093 if ac_fn_c_try_run
"$LINENO"; then :
22094 gl_cv_func_fdopendir_works
=yes
22096 gl_cv_func_fdopendir_works
=no
22098 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22099 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fdopendir_works" >&5
22104 $as_echo "$gl_cv_func_fdopendir_works" >&6; }
22105 case "$gl_cv_func_fdopendir_works" in
22108 REPLACE_FDOPENDIR
=1
22113 if test $HAVE_FDOPENDIR = 0 ||
test $REPLACE_FDOPENDIR = 1; then
22122 gl_LIBOBJS
="$gl_LIBOBJS fdopendir.$ac_objext"
22138 cat >>confdefs.h
<<_ACEOF
22139 #define GNULIB_FDOPENDIR 1
22151 # include <stdio.h>
22152 # if HAVE_STDIO_EXT_H
22153 # include <stdio_ext.h>
22156 ac_fn_c_check_decl
"$LINENO" "__fpending" "ac_cv_have_decl___fpending" "$fp_headers
22158 if test "x$ac_cv_have_decl___fpending" = x
""yes; then :
22164 cat >>confdefs.h
<<_ACEOF
22165 #define HAVE_DECL___FPENDING $ac_have_decl
22169 if test $ac_cv_func___fpending = no
; then
22178 gl_LIBOBJS
="$gl_LIBOBJS fpending.$ac_objext"
22181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to determine the number of pending output bytes on a stream" >&5
22182 $as_echo_n "checking how to determine the number of pending output bytes on a stream... " >&6; }
22183 if test "${ac_cv_sys_pending_output_n_bytes+set}" = set; then :
22184 $as_echo_n "(cached) " >&6
22190 'fp->_IO_write_ptr - fp->_IO_write_base' \
22192 '# traditional Unix' \
22193 'fp->_ptr - fp->_base' \
22196 'fp->_p - fp->_bf._base' \
22198 '# SCO, Unixware' \
22199 '(fp->__ptr ? fp->__ptr - fp->__base : 0)' \
22202 '(fp->_Mode & 0x2000 /*_MWRITE*/ ? fp->_Next - fp->_Buf : 0)' \
22205 'fp->__bufp - fp->__buffer' \
22207 '# old glibc iostream?' \
22208 'fp->_pptr - fp->_pbase' \
22211 'fp->_ptr - fp->_buffer' \
22214 'fp->_ptr - fp->_buf' \
22217 'fp->wp - fp->buf' \
22220 '(*fp)->_ptr - (*fp)->_base' \
22222 '# e.g., DGUX R4.11; the info is not available' \
22226 # Skip each embedded comment.
22227 case "$ac_expr" in '#'*) continue;; esac
22229 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22230 /* end confdefs.h. */
22235 FILE *fp = stdin; (void) ($ac_expr);
22240 if ac_fn_c_try_compile
"$LINENO"; then :
22244 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22245 test "$fp_done" = yes && break
22248 ac_cv_sys_pending_output_n_bytes
=$ac_expr
22252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_pending_output_n_bytes" >&5
22253 $as_echo "$ac_cv_sys_pending_output_n_bytes" >&6; }
22255 cat >>confdefs.h
<<_ACEOF
22256 #define PENDING_OUTPUT_N_BYTES $ac_cv_sys_pending_output_n_bytes
22267 if test $ac_cv_func_fstatat = no
; then
22270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fstatat (..., 0) works" >&5
22271 $as_echo_n "checking whether fstatat (..., 0) works... " >&6; }
22272 if test "${gl_cv_func_fstatat_zero_flag+set}" = set; then :
22273 $as_echo_n "(cached) " >&6
22275 if test "$cross_compiling" = yes; then :
22277 aix
*) gl_cv_func_fstatat_zero_flag
="guessing no";;
22278 *) gl_cv_func_fstatat_zero_flag
="guessing yes";;
22282 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22283 /* end confdefs.h. */
22286 #include <sys/stat.h>
22291 return fstatat (AT_FDCWD, ".", &a, 0) != 0;
22295 if ac_fn_c_try_run
"$LINENO"; then :
22296 gl_cv_func_fstatat_zero_flag
=yes
22298 gl_cv_func_fstatat_zero_flag
=no
22300 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22301 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fstatat_zero_flag" >&5
22307 $as_echo "$gl_cv_func_fstatat_zero_flag" >&6; }
22309 case $gl_cv_func_fstatat_zero_flag+$gl_cv_func_lstat_dereferences_slashed_symlink in
22311 *) REPLACE_FSTATAT
=1
22312 case $gl_cv_func_fstatat_zero_flag in
22315 $as_echo "#define HAVE_WORKING_FSTATAT_ZERO_FLAG 1" >>confdefs.h
22323 if test $HAVE_FSTATAT = 0 ||
test $REPLACE_FSTATAT = 1; then
22332 gl_LIBOBJS
="$gl_LIBOBJS fstatat.$ac_objext"
22349 if test $ac_cv_func_fsync = no
; then
22353 if test $HAVE_FSYNC = 0; then
22362 gl_LIBOBJS
="$gl_LIBOBJS fsync.$ac_objext"
22379 # Persuade glibc <stdlib.h> to declare getloadavg().
22384 # getloadvg is present in libc on glibc >= 2.2, Mac OS X, FreeBSD >= 2.0,
22385 # NetBSD >= 0.9, OpenBSD >= 2.0, Solaris >= 7.
22387 ac_fn_c_check_func
"$LINENO" "getloadavg" "ac_cv_func_getloadavg"
22388 if test "x$ac_cv_func_getloadavg" = x
""yes; then :
22391 gl_func_getloadavg_done
=no
22393 # Some systems with -lutil have (and need) -lkvm as well, some do not.
22394 # On Solaris, -lkvm requires nlist from -lelf, so check that first
22395 # to get the right answer into the cache.
22396 # For kstat on solaris, we need to test for libelf and libkvm to force the
22397 # definition of SVR4 below.
22398 if test $gl_func_getloadavg_done = no
; then
22399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
22400 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
22401 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then :
22402 $as_echo_n "(cached) " >&6
22404 ac_check_lib_save_LIBS
=$LIBS
22406 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22407 /* end confdefs.h. */
22409 /* Override any GCC internal prototype to avoid an error.
22410 Use char because int might match the return type of a GCC
22411 builtin and then its argument prototype would still apply. */
22419 return elf_begin ();
22424 if ac_fn_c_try_link
"$LINENO"; then :
22425 ac_cv_lib_elf_elf_begin
=yes
22427 ac_cv_lib_elf_elf_begin
=no
22429 rm -f core conftest.err conftest.
$ac_objext \
22430 conftest
$ac_exeext conftest.
$ac_ext
22431 LIBS
=$ac_check_lib_save_LIBS
22433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
22434 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
22435 if test "x$ac_cv_lib_elf_elf_begin" = x
""yes; then :
22439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
22440 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
22441 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then :
22442 $as_echo_n "(cached) " >&6
22444 ac_check_lib_save_LIBS
=$LIBS
22446 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22447 /* end confdefs.h. */
22449 /* Override any GCC internal prototype to avoid an error.
22450 Use char because int might match the return type of a GCC
22451 builtin and then its argument prototype would still apply. */
22459 return kvm_open ();
22464 if ac_fn_c_try_link
"$LINENO"; then :
22465 ac_cv_lib_kvm_kvm_open
=yes
22467 ac_cv_lib_kvm_kvm_open
=no
22469 rm -f core conftest.err conftest.
$ac_objext \
22470 conftest
$ac_exeext conftest.
$ac_ext
22471 LIBS
=$ac_check_lib_save_LIBS
22473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
22474 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
22475 if test "x$ac_cv_lib_kvm_kvm_open" = x
""yes; then :
22479 # Check for the 4.4BSD definition of getloadavg.
22480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
22481 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
22482 if test "${ac_cv_lib_util_getloadavg+set}" = set; then :
22483 $as_echo_n "(cached) " >&6
22485 ac_check_lib_save_LIBS
=$LIBS
22486 LIBS
="-lutil $LIBS"
22487 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22488 /* end confdefs.h. */
22490 /* Override any GCC internal prototype to avoid an error.
22491 Use char because int might match the return type of a GCC
22492 builtin and then its argument prototype would still apply. */
22496 char getloadavg ();
22500 return getloadavg ();
22505 if ac_fn_c_try_link
"$LINENO"; then :
22506 ac_cv_lib_util_getloadavg
=yes
22508 ac_cv_lib_util_getloadavg
=no
22510 rm -f core conftest.err conftest.
$ac_objext \
22511 conftest
$ac_exeext conftest.
$ac_ext
22512 LIBS
=$ac_check_lib_save_LIBS
22514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
22515 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
22516 if test "x$ac_cv_lib_util_getloadavg" = x
""yes; then :
22517 LIBS
="-lutil $LIBS" gl_func_getloadavg_done
=yes
22522 if test $gl_func_getloadavg_done = no
; then
22523 # There is a commonly available library for RS/6000 AIX.
22524 # Since it is not a standard part of AIX, it might be installed locally.
22525 gl_getloadavg_LIBS
=$LIBS
22526 LIBS
="-L/usr/local/lib $LIBS"
22527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
22528 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
22529 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then :
22530 $as_echo_n "(cached) " >&6
22532 ac_check_lib_save_LIBS
=$LIBS
22533 LIBS
="-lgetloadavg $LIBS"
22534 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22535 /* end confdefs.h. */
22537 /* Override any GCC internal prototype to avoid an error.
22538 Use char because int might match the return type of a GCC
22539 builtin and then its argument prototype would still apply. */
22543 char getloadavg ();
22547 return getloadavg ();
22552 if ac_fn_c_try_link
"$LINENO"; then :
22553 ac_cv_lib_getloadavg_getloadavg
=yes
22555 ac_cv_lib_getloadavg_getloadavg
=no
22557 rm -f core conftest.err conftest.
$ac_objext \
22558 conftest
$ac_exeext conftest.
$ac_ext
22559 LIBS
=$ac_check_lib_save_LIBS
22561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
22562 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
22563 if test "x$ac_cv_lib_getloadavg_getloadavg" = x
""yes; then :
22564 LIBS
="-lgetloadavg $LIBS" gl_func_getloadavg_done
=yes
22566 LIBS
=$gl_getloadavg_LIBS
22571 # Set up the replacement function if necessary.
22572 if test $gl_func_getloadavg_done = no
; then
22575 # Solaris has libkstat which does not require root.
22576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
22577 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
22578 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
22579 $as_echo_n "(cached) " >&6
22581 ac_check_lib_save_LIBS
=$LIBS
22582 LIBS
="-lkstat $LIBS"
22583 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22584 /* end confdefs.h. */
22586 /* Override any GCC internal prototype to avoid an error.
22587 Use char because int might match the return type of a GCC
22588 builtin and then its argument prototype would still apply. */
22592 char kstat_open ();
22596 return kstat_open ();
22601 if ac_fn_c_try_link
"$LINENO"; then :
22602 ac_cv_lib_kstat_kstat_open
=yes
22604 ac_cv_lib_kstat_kstat_open
=no
22606 rm -f core conftest.err conftest.
$ac_objext \
22607 conftest
$ac_exeext conftest.
$ac_ext
22608 LIBS
=$ac_check_lib_save_LIBS
22610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
22611 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
22612 if test "x$ac_cv_lib_kstat_kstat_open" = x
""yes; then :
22613 cat >>confdefs.h
<<_ACEOF
22614 #define HAVE_LIBKSTAT 1
22617 LIBS
="-lkstat $LIBS"
22621 test $ac_cv_lib_kstat_kstat_open = yes && gl_func_getloadavg_done
=yes
22623 # AIX has libperfstat which does not require root
22624 if test $gl_func_getloadavg_done = no
; then
22625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perfstat_cpu_total in -lperfstat" >&5
22626 $as_echo_n "checking for perfstat_cpu_total in -lperfstat... " >&6; }
22627 if test "${ac_cv_lib_perfstat_perfstat_cpu_total+set}" = set; then :
22628 $as_echo_n "(cached) " >&6
22630 ac_check_lib_save_LIBS
=$LIBS
22631 LIBS
="-lperfstat $LIBS"
22632 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22633 /* end confdefs.h. */
22635 /* Override any GCC internal prototype to avoid an error.
22636 Use char because int might match the return type of a GCC
22637 builtin and then its argument prototype would still apply. */
22641 char perfstat_cpu_total ();
22645 return perfstat_cpu_total ();
22650 if ac_fn_c_try_link
"$LINENO"; then :
22651 ac_cv_lib_perfstat_perfstat_cpu_total
=yes
22653 ac_cv_lib_perfstat_perfstat_cpu_total
=no
22655 rm -f core conftest.err conftest.
$ac_objext \
22656 conftest
$ac_exeext conftest.
$ac_ext
22657 LIBS
=$ac_check_lib_save_LIBS
22659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_perfstat_perfstat_cpu_total" >&5
22660 $as_echo "$ac_cv_lib_perfstat_perfstat_cpu_total" >&6; }
22661 if test "x$ac_cv_lib_perfstat_perfstat_cpu_total" = x
""yes; then :
22662 cat >>confdefs.h
<<_ACEOF
22663 #define HAVE_LIBPERFSTAT 1
22666 LIBS
="-lperfstat $LIBS"
22670 test $ac_cv_lib_perfstat_perfstat_cpu_total = yes && gl_func_getloadavg_done
=yes
22673 if test $gl_func_getloadavg_done = no
; then
22674 ac_fn_c_check_header_mongrel
"$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
22675 if test "x$ac_cv_header_sys_dg_sys_info_h" = x
""yes; then :
22676 gl_func_getloadavg_done
=yes
22678 $as_echo "#define DGUX 1" >>confdefs.h
22680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
22681 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
22682 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then :
22683 $as_echo_n "(cached) " >&6
22685 ac_check_lib_save_LIBS
=$LIBS
22687 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22688 /* end confdefs.h. */
22690 /* Override any GCC internal prototype to avoid an error.
22691 Use char because int might match the return type of a GCC
22692 builtin and then its argument prototype would still apply. */
22696 char dg_sys_info ();
22700 return dg_sys_info ();
22705 if ac_fn_c_try_link
"$LINENO"; then :
22706 ac_cv_lib_dgc_dg_sys_info
=yes
22708 ac_cv_lib_dgc_dg_sys_info
=no
22710 rm -f core conftest.err conftest.
$ac_objext \
22711 conftest
$ac_exeext conftest.
$ac_ext
22712 LIBS
=$ac_check_lib_save_LIBS
22714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
22715 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
22716 if test "x$ac_cv_lib_dgc_dg_sys_info" = x
""yes; then :
22717 cat >>confdefs.h
<<_ACEOF
22718 #define HAVE_LIBDGC 1
22733 if test "x$gl_save_LIBS" = x
; then
22734 GETLOADAVG_LIBS
=$LIBS
22736 GETLOADAVG_LIBS
=`echo "$LIBS" | sed "s!$gl_save_LIBS!!"`
22741 # Test whether the system declares getloadavg. Solaris has the function
22742 # but declares it in <sys/loadavg.h>, not <stdlib.h>.
22743 for ac_header
in sys
/loadavg.h
22745 ac_fn_c_check_header_mongrel
"$LINENO" "sys/loadavg.h" "ac_cv_header_sys_loadavg_h" "$ac_includes_default"
22746 if test "x$ac_cv_header_sys_loadavg_h" = x
""yes; then :
22747 cat >>confdefs.h
<<_ACEOF
22748 #define HAVE_SYS_LOADAVG_H 1
22755 if test $ac_cv_header_sys_loadavg_h = yes; then
22756 HAVE_SYS_LOADAVG_H
=1
22758 HAVE_SYS_LOADAVG_H
=0
22760 ac_fn_c_check_decl
"$LINENO" "getloadavg" "ac_cv_have_decl_getloadavg" "#if HAVE_SYS_LOADAVG_H
22761 # include <sys/loadavg.h>
22763 #include <stdlib.h>
22765 if test "x$ac_cv_have_decl_getloadavg" = x
""yes; then :
22768 HAVE_DECL_GETLOADAVG
=0
22772 if test $HAVE_GETLOADAVG = 0; then
22781 gl_LIBOBJS
="$gl_LIBOBJS getloadavg.$ac_objext"
22784 # Figure out what our getloadavg.c needs.
22788 # On HPUX9, an unprivileged user can get load averages this way.
22789 if test $gl_func_getloadavg_done = no
; then
22790 for ac_func
in pstat_getdynamic
22792 ac_fn_c_check_func
"$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
22793 if test "x$ac_cv_func_pstat_getdynamic" = x
""yes; then :
22794 cat >>confdefs.h
<<_ACEOF
22795 #define HAVE_PSTAT_GETDYNAMIC 1
22797 gl_func_getloadavg_done
=yes
22803 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
22804 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
22805 # Irix 4.0.5F has the header but not the library.
22806 if test $gl_func_getloadavg_done = no
&& test "$ac_cv_lib_elf_elf_begin" = yes \
22807 && test "$ac_cv_lib_kvm_kvm_open" = yes; then
22808 gl_func_getloadavg_done
=yes
22810 $as_echo "#define SVR4 1" >>confdefs.h
22814 if test $gl_func_getloadavg_done = no
; then
22815 ac_fn_c_check_header_mongrel
"$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
22816 if test "x$ac_cv_header_inq_stats_cpustats_h" = x
""yes; then :
22817 gl_func_getloadavg_done
=yes
22819 $as_echo "#define UMAX 1" >>confdefs.h
22822 $as_echo "#define UMAX4_3 1" >>confdefs.h
22829 if test $gl_func_getloadavg_done = no
; then
22830 ac_fn_c_check_header_mongrel
"$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
22831 if test "x$ac_cv_header_sys_cpustats_h" = x
""yes; then :
22832 gl_func_getloadavg_done
=yes; $as_echo "#define UMAX 1" >>confdefs.h
22839 if test $gl_func_getloadavg_done = no
; then
22840 for ac_header
in mach
/mach.h
22842 ac_fn_c_check_header_mongrel
"$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
22843 if test "x$ac_cv_header_mach_mach_h" = x
""yes; then :
22844 cat >>confdefs.h
<<_ACEOF
22845 #define HAVE_MACH_MACH_H 1
22854 for ac_header
in nlist.h
22856 ac_fn_c_check_header_mongrel
"$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
22857 if test "x$ac_cv_header_nlist_h" = x
""yes; then :
22858 cat >>confdefs.h
<<_ACEOF
22859 #define HAVE_NLIST_H 1
22861 ac_fn_c_check_member
"$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
22863 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x
""yes; then :
22865 cat >>confdefs.h
<<_ACEOF
22866 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
22872 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22873 /* end confdefs.h. */
22879 #ifdef HAVE_STRUCT_NLIST_N_UN_N_NAME
22880 x.n_un.n_name = "";
22888 if ac_fn_c_try_link
"$LINENO"; then :
22890 $as_echo "#define N_NAME_POINTER 1" >>confdefs.h
22893 rm -f core conftest.err conftest.
$ac_objext \
22894 conftest
$ac_exeext conftest.
$ac_ext
22906 GNULIB_GETLOADAVG
=1
22917 if test $REPLACE_GETOPT = 1; then
22926 gl_LIBOBJS
="$gl_LIBOBJS getopt.$ac_objext"
22936 gl_LIBOBJS
="$gl_LIBOBJS getopt1.$ac_objext"
22941 GNULIB_GL_UNISTD_H_GETOPT
=1
22951 if test -n "$gl_replace_getopt"; then
22955 if test $REPLACE_GETOPT = 1; then
22959 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
22965 if test $REPLACE_GETOPT = 1; then
22974 gl_LIBOBJS
="$gl_LIBOBJS getopt.$ac_objext"
22984 gl_LIBOBJS
="$gl_LIBOBJS getopt1.$ac_objext"
22989 GNULIB_GL_UNISTD_H_GETOPT
=1
23003 gl_gettimeofday_timezone
=void
23004 if test $ac_cv_func_gettimeofday != yes; then
23005 HAVE_GETTIMEOFDAY
=0
23010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday clobbers localtime buffer" >&5
23011 $as_echo_n "checking whether gettimeofday clobbers localtime buffer... " >&6; }
23012 if test "${gl_cv_func_gettimeofday_clobber+set}" = set; then :
23013 $as_echo_n "(cached) " >&6
23015 if test "$cross_compiling" = yes; then :
23016 # When cross-compiling:
23018 # Guess all is fine on glibc systems.
23019 *-gnu*) gl_cv_func_gettimeofday_clobber
="guessing no" ;;
23020 # If we don't know, assume the worst.
23021 *) gl_cv_func_gettimeofday_clobber
="guessing yes" ;;
23025 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23026 /* end confdefs.h. */
23027 #include <string.h>
23028 #include <sys/time.h>
23030 #include <stdlib.h>
23038 struct tm saved_lt;
23040 lt = localtime (&t);
23042 gettimeofday (&tv, NULL);
23043 return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0;
23049 if ac_fn_c_try_run
"$LINENO"; then :
23050 gl_cv_func_gettimeofday_clobber
=no
23052 gl_cv_func_gettimeofday_clobber
=yes
23054 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23055 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_clobber" >&5
23060 $as_echo "$gl_cv_func_gettimeofday_clobber" >&6; }
23062 case "$gl_cv_func_gettimeofday_clobber" in
23064 REPLACE_GETTIMEOFDAY
=1
23067 $as_echo "#define gmtime rpl_gmtime" >>confdefs.h
23070 $as_echo "#define localtime rpl_localtime" >>confdefs.h
23074 $as_echo "#define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1" >>confdefs.h
23079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday with POSIX signature" >&5
23080 $as_echo_n "checking for gettimeofday with POSIX signature... " >&6; }
23081 if test "${gl_cv_func_gettimeofday_posix_signature+set}" = set; then :
23082 $as_echo_n "(cached) " >&6
23084 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23085 /* end confdefs.h. */
23086 #include <sys/time.h>
23088 int gettimeofday (struct timeval *restrict, void *restrict);
23093 /* glibc uses struct timezone * rather than the POSIX void *
23094 if _GNU_SOURCE is defined. However, since the only portable
23095 use of gettimeofday uses NULL as the second parameter, and
23096 since the glibc definition is actually more typesafe, it is
23097 not worth wrapping this to get a compliant signature. */
23098 int (*f) (struct timeval *restrict, void *restrict)
23101 return !(x | c.tv_sec | c.tv_usec);
23107 if ac_fn_c_try_compile
"$LINENO"; then :
23108 gl_cv_func_gettimeofday_posix_signature
=yes
23110 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23111 /* end confdefs.h. */
23112 #include <sys/time.h>
23113 int gettimeofday (struct timeval *restrict, struct timezone *restrict);
23123 if ac_fn_c_try_compile
"$LINENO"; then :
23124 gl_cv_func_gettimeofday_posix_signature
=almost
23126 gl_cv_func_gettimeofday_posix_signature
=no
23128 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23130 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_posix_signature" >&5
23133 $as_echo "$gl_cv_func_gettimeofday_posix_signature" >&6; }
23134 if test $gl_cv_func_gettimeofday_posix_signature = almost
; then
23135 gl_gettimeofday_timezone
='struct timezone'
23136 elif test $gl_cv_func_gettimeofday_posix_signature != yes; then
23137 REPLACE_GETTIMEOFDAY
=1
23139 if test $REPLACE_STRUCT_TIMEVAL = 1; then
23140 REPLACE_GETTIMEOFDAY
=1
23145 cat >>confdefs.h
<<_ACEOF
23146 #define GETTIMEOFDAY_TIMEZONE $gl_gettimeofday_timezone
23150 if test $HAVE_GETTIMEOFDAY = 0 ||
test $REPLACE_GETTIMEOFDAY = 1; then
23159 gl_LIBOBJS
="$gl_LIBOBJS gettimeofday.$ac_objext"
23162 for ac_header
in sys
/timeb.h
23164 ac_fn_c_check_header_mongrel
"$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
23165 if test "x$ac_cv_header_sys_timeb_h" = x
""yes; then :
23166 cat >>confdefs.h
<<_ACEOF
23167 #define HAVE_SYS_TIMEB_H 1
23174 for ac_func
in _ftime
23176 ac_fn_c_check_func
"$LINENO" "_ftime" "ac_cv_func__ftime"
23177 if test "x$ac_cv_func__ftime" = x
""yes; then :
23178 cat >>confdefs.h
<<_ACEOF
23179 #define HAVE__FTIME 1
23192 GNULIB_GETTIMEOFDAY
=1
23203 if test $ac_cv_func_lstat = yes; then
23205 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
23214 if test $REPLACE_LSTAT = 1; then
23223 gl_LIBOBJS
="$gl_LIBOBJS lstat.$ac_objext"
23243 if test $ac_cv_have_decl_memrchr = no
; then
23244 HAVE_DECL_MEMRCHR
=0
23247 for ac_func
in memrchr
23249 ac_fn_c_check_func
"$LINENO" "memrchr" "ac_cv_func_memrchr"
23250 if test "x$ac_cv_func_memrchr" = x
""yes; then :
23251 cat >>confdefs.h
<<_ACEOF
23252 #define HAVE_MEMRCHR 1
23259 if test $ac_cv_func_memrchr = no
; then
23268 gl_LIBOBJS
="$gl_LIBOBJS memrchr.$ac_objext"
23289 if test $APPLE_UNIVERSAL_BUILD = 1; then
23290 # A universal build on Apple Mac OS X platforms.
23291 # The test result would be 'yes' in 32-bit mode and 'no' in 64-bit mode.
23292 # But we need a configuration result that is valid in both modes.
23293 gl_cv_func_working_mktime
=no
23295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
23296 $as_echo_n "checking for working mktime... " >&6; }
23297 if test "${gl_cv_func_working_mktime+set}" = set; then :
23298 $as_echo_n "(cached) " >&6
23300 if test "$cross_compiling" = yes; then :
23301 gl_cv_func_working_mktime
=no
23303 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23304 /* end confdefs.h. */
23305 /* Test program from Paul Eggert and Tony Leneis. */
23306 #include <limits.h>
23307 #include <stdlib.h>
23310 #ifdef HAVE_UNISTD_H
23311 # include <unistd.h>
23314 #if HAVE_DECL_ALARM
23315 # include <signal.h>
23318 /* Work around redefinition to rpl_putenv by other config tests. */
23321 static time_t time_t_max;
23322 static time_t time_t_min;
23324 /* Values we'll use to set the TZ environment variable. */
23325 static char *tz_strings[] = {
23326 (char *) 0, "TZ=GMT0", "TZ=JST-9",
23327 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
23329 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
23331 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
23332 Based on a problem report from Andreas Jaeger. */
23334 spring_forward_gap ()
23336 /* glibc (up to about 1998-10-07) failed this test. */
23339 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
23340 instead of "TZ=America/Vancouver" in order to detect the bug even
23341 on systems that don't support the Olson extension, or don't have the
23342 full zoneinfo tables installed. */
23343 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
23352 return mktime (&tm) != (time_t) -1;
23356 mktime_test1 (time_t now)
23359 return ! (lt = localtime (&now)) || mktime (lt) == now;
23363 mktime_test (time_t now)
23365 return (mktime_test1 (now)
23366 && mktime_test1 ((time_t) (time_t_max - now))
23367 && mktime_test1 ((time_t) (time_t_min + now)));
23373 /* Based on code from Ariel Faigon. */
23383 return tm.tm_mon == 2 && tm.tm_mday == 31;
23387 bigtime_test (int j)
23391 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
23392 now = mktime (&tm);
23393 if (now != (time_t) -1)
23395 struct tm *lt = localtime (&now);
23397 && lt->tm_year == tm.tm_year
23398 && lt->tm_mon == tm.tm_mon
23399 && lt->tm_mday == tm.tm_mday
23400 && lt->tm_hour == tm.tm_hour
23401 && lt->tm_min == tm.tm_min
23402 && lt->tm_sec == tm.tm_sec
23403 && lt->tm_yday == tm.tm_yday
23404 && lt->tm_wday == tm.tm_wday
23405 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
23406 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
23415 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
23416 ignoring leap seconds. */
23417 unsigned long int answer = 2527315200UL;
23421 tm.tm_year = 2050 - 1900;
23424 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
23427 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
23428 instead of "TZ=America/Vancouver" in order to detect the bug even
23429 on systems that don't support the Olson extension, or don't have the
23430 full zoneinfo tables installed. */
23431 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
23435 /* Check that the result is either a failure, or close enough
23436 to the correct answer that we can assume the discrepancy is
23437 due to leap seconds. */
23438 return (t == (time_t) -1
23439 || (0 < t && answer - 120 <= t && t <= answer + 120));
23448 int time_t_signed_magnitude = (time_t) ~ (time_t) 0 < (time_t) -1;
23449 int time_t_signed = ! ((time_t) 0 < (time_t) -1);
23451 #if HAVE_DECL_ALARM
23452 /* This test makes some buggy mktime implementations loop.
23453 Give up after 60 seconds; a mktime slower than that
23454 isn't worth using anyway. */
23455 signal (SIGALRM, SIG_DFL);
23459 time_t_max = (! time_t_signed
23461 : ((((time_t) 1 << (sizeof (time_t) * CHAR_BIT - 2)) - 1)
23463 time_t_min = (! time_t_signed
23465 : time_t_signed_magnitude
23469 delta = time_t_max / 997; /* a suitable prime number */
23470 for (i = 0; i < N_STRINGS; i++)
23473 putenv (tz_strings[i]);
23475 for (t = 0; t <= time_t_max - delta && (result & 1) == 0; t += delta)
23476 if (! mktime_test (t))
23478 if ((result & 2) == 0
23479 && ! (mktime_test ((time_t) 1)
23480 && mktime_test ((time_t) (60 * 60))
23481 && mktime_test ((time_t) (60 * 60 * 24))))
23484 for (j = 1; (result & 4) == 0; j <<= 1)
23486 if (! bigtime_test (j))
23488 if (INT_MAX / 2 < j)
23491 if ((result & 8) == 0 && ! bigtime_test (INT_MAX))
23494 if (! irix_6_4_bug ())
23496 if (! spring_forward_gap ())
23498 if (! year_2050_test ())
23503 if ac_fn_c_try_run
"$LINENO"; then :
23504 gl_cv_func_working_mktime
=yes
23506 gl_cv_func_working_mktime
=no
23508 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23509 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_mktime" >&5
23515 $as_echo "$gl_cv_func_working_mktime" >&6; }
23517 if test $gl_cv_func_working_mktime = no
; then
23523 if test $REPLACE_MKTIME = 1; then
23532 gl_LIBOBJS
="$gl_LIBOBJS mktime.$ac_objext"
23553 if test $ac_cv_func_pselect = yes; then
23554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether signature of pselect conforms to POSIX" >&5
23555 $as_echo_n "checking whether signature of pselect conforms to POSIX... " >&6; }
23556 if test "${gl_cv_sig_pselect+set}" = set; then :
23557 $as_echo_n "(cached) " >&6
23559 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23560 /* end confdefs.h. */
23561 #include <sys/select.h>
23566 int (*p) (int, fd_set *, fd_set *, fd_set *restrict,
23567 struct timespec const *restrict,
23568 sigset_t const *restrict) = pselect;
23574 if ac_fn_c_try_link
"$LINENO"; then :
23575 gl_cv_sig_pselect
=yes
23577 gl_cv_sig_pselect
=no
23579 rm -f core conftest.err conftest.
$ac_objext \
23580 conftest
$ac_exeext conftest.
$ac_ext
23582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sig_pselect" >&5
23583 $as_echo "$gl_cv_sig_pselect" >&6; }
23585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pselect detects invalid fds" >&5
23586 $as_echo_n "checking whether pselect detects invalid fds... " >&6; }
23587 if test "${gl_cv_func_pselect_detects_ebadf+set}" = set; then :
23588 $as_echo_n "(cached) " >&6
23591 if test "$cross_compiling" = yes; then :
23594 # Guess yes on glibc systems.
23595 *-gnu*) gl_cv_func_pselect_detects_ebadf
="guessing yes" ;;
23596 # If we don't know, assume the worst.
23597 *) gl_cv_func_pselect_detects_ebadf
="guessing no" ;;
23601 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23602 /* end confdefs.h. */
23604 #include <sys/types.h>
23605 #include <sys/time.h>
23606 #if HAVE_SYS_SELECT_H
23607 # include <sys/select.h>
23609 #include <unistd.h>
23621 struct timespec timeout;
23622 timeout.tv_sec = 0;
23623 timeout.tv_nsec = 5000;
23624 return pselect (17, &set, NULL, NULL, &timeout, NULL) != -1 || errno != EBADF;
23630 if ac_fn_c_try_run
"$LINENO"; then :
23631 gl_cv_func_pselect_detects_ebadf
=yes
23633 gl_cv_func_pselect_detects_ebadf
=no
23635 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23636 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pselect_detects_ebadf" >&5
23642 $as_echo "$gl_cv_func_pselect_detects_ebadf" >&6; }
23643 case $gl_cv_func_pselect_detects_ebadf in
23645 *) REPLACE_PSELECT
=1 ;;
23649 if test $ac_cv_func_pselect = no ||
test $gl_cv_sig_pselect = no
; then
23653 if test $HAVE_PSELECT = 0 ||
test $REPLACE_PSELECT = 1; then
23662 gl_LIBOBJS
="$gl_LIBOBJS pselect.$ac_objext"
23680 LIB_PTHREAD_SIGMASK
=
23685 if test "$gl_threads_api" = posix
; then
23686 if test $ac_cv_func_pthread_sigmask = yes; then
23689 if test -n "$LIBMULTITHREAD"; then
23690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_sigmask in $LIBMULTITHREAD" >&5
23691 $as_echo_n "checking for pthread_sigmask in $LIBMULTITHREAD... " >&6; }
23692 if test "${gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD+set}" = set; then :
23693 $as_echo_n "(cached) " >&6
23695 gl_save_LIBS
="$LIBS"
23696 LIBS
="$LIBS $LIBMULTITHREAD"
23697 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23698 /* end confdefs.h. */
23699 #include <pthread.h>
23700 #include <signal.h>
23705 return pthread_sigmask (0, (sigset_t *) 0, (sigset_t *) 0);
23711 if ac_fn_c_try_link
"$LINENO"; then :
23712 gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD
=yes
23714 gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD
=no
23716 rm -f core conftest.err conftest.
$ac_objext \
23717 conftest
$ac_exeext conftest.
$ac_ext
23718 LIBS
="$gl_save_LIBS"
23721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD" >&5
23722 $as_echo "$gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD" >&6; }
23723 if test $gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD = yes; then
23724 LIB_PTHREAD_SIGMASK
="$LIBMULTITHREAD"
23726 HAVE_PTHREAD_SIGMASK
=0
23729 HAVE_PTHREAD_SIGMASK
=0
23733 if test $ac_cv_func_pthread_sigmask = yes; then
23734 REPLACE_PTHREAD_SIGMASK
=1
23736 HAVE_PTHREAD_SIGMASK
=0
23743 if test $HAVE_PTHREAD_SIGMASK = 1; then
23746 if test -z "$LIB_PTHREAD_SIGMASK"; then
23747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask works without -lpthread" >&5
23748 $as_echo_n "checking whether pthread_sigmask works without -lpthread... " >&6; }
23749 if test "${gl_cv_func_pthread_sigmask_in_libc_works+set}" = set; then :
23750 $as_echo_n "(cached) " >&6
23753 if test "$cross_compiling" = yes; then :
23756 freebsd
* | hpux
* | solaris | solaris2.
[2-9]*)
23757 gl_cv_func_pthread_sigmask_in_libc_works
="guessing no";;
23759 gl_cv_func_pthread_sigmask_in_libc_works
="guessing yes";;
23763 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23764 /* end confdefs.h. */
23766 #include <pthread.h>
23767 #include <signal.h>
23768 #include <stddef.h>
23772 sigemptyset (&set);
23773 return pthread_sigmask (1729, &set, NULL) != 0;
23776 if ac_fn_c_try_run
"$LINENO"; then :
23777 gl_cv_func_pthread_sigmask_in_libc_works
=no
23779 gl_cv_func_pthread_sigmask_in_libc_works
=yes
23781 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23782 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_in_libc_works" >&5
23788 $as_echo "$gl_cv_func_pthread_sigmask_in_libc_works" >&6; }
23789 case "$gl_cv_func_pthread_sigmask_in_libc_works" in
23791 REPLACE_PTHREAD_SIGMASK
=1
23793 $as_echo "#define PTHREAD_SIGMASK_INEFFECTIVE 1" >>confdefs.h
23799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask returns error numbers" >&5
23800 $as_echo_n "checking whether pthread_sigmask returns error numbers... " >&6; }
23801 if test "${gl_cv_func_pthread_sigmask_return_works+set}" = set; then :
23802 $as_echo_n "(cached) " >&6
23805 gl_save_LIBS
="$LIBS"
23806 LIBS
="$LIBS $LIB_PTHREAD_SIGMASK"
23807 if test "$cross_compiling" = yes; then :
23810 gl_cv_func_pthread_sigmask_return_works
="guessing no";;
23812 gl_cv_func_pthread_sigmask_return_works
="guessing yes";;
23816 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23817 /* end confdefs.h. */
23819 #include <pthread.h>
23820 #include <signal.h>
23821 #include <stddef.h>
23825 sigemptyset (&set);
23826 if (pthread_sigmask (1729, &set, NULL) == -1)
23831 if ac_fn_c_try_run
"$LINENO"; then :
23832 gl_cv_func_pthread_sigmask_return_works
=yes
23834 gl_cv_func_pthread_sigmask_return_works
=no
23836 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23837 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23840 LIBS
="$gl_save_LIBS"
23843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_return_works" >&5
23844 $as_echo "$gl_cv_func_pthread_sigmask_return_works" >&6; }
23845 case "$gl_cv_func_pthread_sigmask_return_works" in
23847 REPLACE_PTHREAD_SIGMASK
=1
23849 $as_echo "#define PTHREAD_SIGMASK_FAILS_WITH_ERRNO 1" >>confdefs.h
23854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask unblocks signals correctly" >&5
23855 $as_echo_n "checking whether pthread_sigmask unblocks signals correctly... " >&6; }
23856 if test "${gl_cv_func_pthread_sigmask_unblock_works+set}" = set; then :
23857 $as_echo_n "(cached) " >&6
23862 gl_cv_func_pthread_sigmask_unblock_works
="guessing no";;
23864 gl_cv_func_pthread_sigmask_unblock_works
="guessing yes";;
23866 gl_save_LIBS
="$LIBS"
23867 LIBS
="$LIBS $LIBMULTITHREAD"
23868 if test "$cross_compiling" = yes; then :
23871 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23872 /* end confdefs.h. */
23874 #include <pthread.h>
23875 #include <signal.h>
23877 #include <stdlib.h>
23878 #include <unistd.h>
23879 static volatile int sigint_occurred;
23881 sigint_handler (int sig)
23888 int pid = getpid ();
23890 signal (SIGINT, sigint_handler);
23891 sigemptyset (&set);
23892 sigaddset (&set, SIGINT);
23893 if (!(pthread_sigmask (SIG_BLOCK, &set, NULL) == 0))
23895 sprintf (command, "sh -c 'sleep 1; kill -%d %d' &", SIGINT, pid);
23896 if (!(system (command) == 0))
23899 if (!(sigint_occurred == 0))
23901 if (!(pthread_sigmask (SIG_UNBLOCK, &set, NULL) == 0))
23903 if (!(sigint_occurred == 1)) /* This fails on IRIX. */
23908 if ac_fn_c_try_run
"$LINENO"; then :
23911 gl_cv_func_pthread_sigmask_unblock_works
=no
23913 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23914 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23917 LIBS
="$gl_save_LIBS"
23920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_unblock_works" >&5
23921 $as_echo "$gl_cv_func_pthread_sigmask_unblock_works" >&6; }
23922 case "$gl_cv_func_pthread_sigmask_unblock_works" in
23924 REPLACE_PTHREAD_SIGMASK
=1
23926 $as_echo "#define PTHREAD_SIGMASK_UNBLOCK_BUG 1" >>confdefs.h
23932 if test $HAVE_PTHREAD_SIGMASK = 0 ||
test $REPLACE_PTHREAD_SIGMASK = 1; then
23941 gl_LIBOBJS
="$gl_LIBOBJS pthread_sigmask.$ac_objext"
23944 if test $HAVE_PTHREAD_SIGMASK = 1; then
23946 $as_echo "#define HAVE_PTHREAD_SIGMASK 1" >>confdefs.h
23956 GNULIB_PTHREAD_SIGMASK
=1
23964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for putenv compatible with GNU and SVID" >&5
23965 $as_echo_n "checking for putenv compatible with GNU and SVID... " >&6; }
23966 if test "${gl_cv_func_svid_putenv+set}" = set; then :
23967 $as_echo_n "(cached) " >&6
23969 if test "$cross_compiling" = yes; then :
23971 # Guess yes on glibc systems.
23972 *-gnu*) gl_cv_func_svid_putenv
="guessing yes" ;;
23973 # If we don't know, assume the worst.
23974 *) gl_cv_func_svid_putenv
="guessing no" ;;
23978 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23979 /* end confdefs.h. */
23980 $ac_includes_default
23985 /* Put it in env. */
23986 if (putenv ("CONFTEST_putenv=val"))
23989 /* Try to remove it. */
23990 if (putenv ("CONFTEST_putenv"))
23993 /* Make sure it was deleted. */
23994 if (getenv ("CONFTEST_putenv") != 0)
24003 if ac_fn_c_try_run
"$LINENO"; then :
24004 gl_cv_func_svid_putenv
=yes
24006 gl_cv_func_svid_putenv
=no
24008 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24009 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_svid_putenv" >&5
24015 $as_echo "$gl_cv_func_svid_putenv" >&6; }
24016 case "$gl_cv_func_svid_putenv" in
24023 if test $REPLACE_PUTENV = 1; then
24032 gl_LIBOBJS
="$gl_LIBOBJS putenv.$ac_objext"
24035 ac_fn_c_check_decl
"$LINENO" "_putenv" "ac_cv_have_decl__putenv" "$ac_includes_default"
24036 if test "x$ac_cv_have_decl__putenv" = x
""yes; then :
24042 cat >>confdefs.h
<<_ACEOF
24043 #define HAVE_DECL__PUTENV $ac_have_decl
24060 # Check whether --enable-acl was given.
24061 if test "${enable_acl+set}" = set; then :
24062 enableval
=$enable_acl;
24070 if test "x$enable_acl" != "xno"; then
24071 for ac_header
in sys
/acl.h
24073 ac_fn_c_check_header_mongrel
"$LINENO" "sys/acl.h" "ac_cv_header_sys_acl_h" "$ac_includes_default"
24074 if test "x$ac_cv_header_sys_acl_h" = x
""yes; then :
24075 cat >>confdefs.h
<<_ACEOF
24076 #define HAVE_SYS_ACL_H 1
24083 if test $ac_cv_header_sys_acl_h = yes; then
24086 if test $use_acl = 0; then
24087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing acl_get_file" >&5
24088 $as_echo_n "checking for library containing acl_get_file... " >&6; }
24089 if test "${ac_cv_search_acl_get_file+set}" = set; then :
24090 $as_echo_n "(cached) " >&6
24092 ac_func_search_save_LIBS
=$LIBS
24093 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24094 /* end confdefs.h. */
24096 /* Override any GCC internal prototype to avoid an error.
24097 Use char because int might match the return type of a GCC
24098 builtin and then its argument prototype would still apply. */
24102 char acl_get_file ();
24106 return acl_get_file ();
24111 for ac_lib
in '' acl pacl
; do
24112 if test -z "$ac_lib"; then
24113 ac_res
="none required"
24116 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
24118 if ac_fn_c_try_link
"$LINENO"; then :
24119 ac_cv_search_acl_get_file
=$ac_res
24121 rm -f core conftest.err conftest.
$ac_objext \
24123 if test "${ac_cv_search_acl_get_file+set}" = set; then :
24127 if test "${ac_cv_search_acl_get_file+set}" = set; then :
24130 ac_cv_search_acl_get_file
=no
24132 rm conftest.
$ac_ext
24133 LIBS
=$ac_func_search_save_LIBS
24135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_acl_get_file" >&5
24136 $as_echo "$ac_cv_search_acl_get_file" >&6; }
24137 ac_res
=$ac_cv_search_acl_get_file
24138 if test "$ac_res" != no
; then :
24139 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
24140 if test "$ac_cv_search_acl_get_file" != "none required"; then
24141 LIB_ACL
=$ac_cv_search_acl_get_file
24143 for ac_func
in acl_get_file acl_get_fd acl_set_file acl_set_fd \
24144 acl_free acl_from_mode acl_from_text \
24145 acl_delete_def_file acl_extended_file \
24146 acl_delete_fd_np acl_delete_file_np \
24147 acl_copy_ext_native acl_create_entry_np \
24148 acl_to_short_text acl_free_text
24150 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24151 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
24152 eval as_val
=\$
$as_ac_var
24153 if test "x$as_val" = x
""yes; then :
24154 cat >>confdefs.h
<<_ACEOF
24155 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24161 # If the acl_get_file bug is detected, don't enable the ACL support.
24163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working acl_get_file" >&5
24164 $as_echo_n "checking for working acl_get_file... " >&6; }
24165 if test "${gl_cv_func_working_acl_get_file+set}" = set; then :
24166 $as_echo_n "(cached) " >&6
24168 if test "$cross_compiling" = yes; then :
24169 gl_cv_func_working_acl_get_file
=cross-compiling
24171 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24172 /* end confdefs.h. */
24173 #include <sys/types.h>
24174 #include <sys/acl.h>
24180 if (!acl_get_file (".", ACL_TYPE_ACCESS) && errno == ENOENT)
24188 if ac_fn_c_try_run
"$LINENO"; then :
24189 gl_cv_func_working_acl_get_file
=yes
24191 gl_cv_func_working_acl_get_file
=no
24193 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24194 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_acl_get_file" >&5
24199 $as_echo "$gl_cv_func_working_acl_get_file" >&6; }
24201 if test $gl_cv_func_working_acl_get_file = yes; then :
24205 if test $use_acl = 1; then
24206 for ac_header
in acl
/libacl.h
24208 ac_fn_c_check_header_mongrel
"$LINENO" "acl/libacl.h" "ac_cv_header_acl_libacl_h" "$ac_includes_default"
24209 if test "x$ac_cv_header_acl_libacl_h" = x
""yes; then :
24210 cat >>confdefs.h
<<_ACEOF
24211 #define HAVE_ACL_LIBACL_H 1
24226 for ac_func
in acl_entries
24228 ac_fn_c_check_func
"$LINENO" "acl_entries" "ac_cv_func_acl_entries"
24229 if test "x$ac_cv_func_acl_entries" = x
""yes; then :
24230 cat >>confdefs.h
<<_ACEOF
24231 #define HAVE_ACL_ENTRIES 1
24236 gl_LIBOBJS
="$gl_LIBOBJS $ac_func.$ac_objext"
24242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_FIRST_ENTRY" >&5
24243 $as_echo_n "checking for ACL_FIRST_ENTRY... " >&6; }
24244 if test "${gl_cv_acl_ACL_FIRST_ENTRY+set}" = set; then :
24245 $as_echo_n "(cached) " >&6
24247 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24248 /* end confdefs.h. */
24249 #include <sys/types.h>
24250 #include <sys/acl.h>
24251 int type = ACL_FIRST_ENTRY;
24260 if ac_fn_c_try_compile
"$LINENO"; then :
24261 gl_cv_acl_ACL_FIRST_ENTRY
=yes
24263 gl_cv_acl_ACL_FIRST_ENTRY
=no
24265 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_acl_ACL_FIRST_ENTRY" >&5
24268 $as_echo "$gl_cv_acl_ACL_FIRST_ENTRY" >&6; }
24269 if test $gl_cv_acl_ACL_FIRST_ENTRY = yes; then
24271 $as_echo "#define HAVE_ACL_FIRST_ENTRY 1" >>confdefs.h
24274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_EXTENDED" >&5
24275 $as_echo_n "checking for ACL_TYPE_EXTENDED... " >&6; }
24276 if test "${gl_cv_acl_ACL_TYPE_EXTENDED+set}" = set; then :
24277 $as_echo_n "(cached) " >&6
24279 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24280 /* end confdefs.h. */
24281 #include <sys/types.h>
24282 #include <sys/acl.h>
24283 int type = ACL_TYPE_EXTENDED;
24292 if ac_fn_c_try_compile
"$LINENO"; then :
24293 gl_cv_acl_ACL_TYPE_EXTENDED
=yes
24295 gl_cv_acl_ACL_TYPE_EXTENDED
=no
24297 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_acl_ACL_TYPE_EXTENDED" >&5
24300 $as_echo "$gl_cv_acl_ACL_TYPE_EXTENDED" >&6; }
24301 if test $gl_cv_acl_ACL_TYPE_EXTENDED = yes; then
24303 $as_echo "#define HAVE_ACL_TYPE_EXTENDED 1" >>confdefs.h
24314 if test $use_acl = 0; then
24315 for ac_func
in facl
24317 ac_fn_c_check_func
"$LINENO" "facl" "ac_cv_func_facl"
24318 if test "x$ac_cv_func_facl" = x
""yes; then :
24319 cat >>confdefs.h
<<_ACEOF
24320 #define HAVE_FACL 1
24326 if test $ac_cv_func_facl = yes; then
24327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing acl_trivial" >&5
24328 $as_echo_n "checking for library containing acl_trivial... " >&6; }
24329 if test "${ac_cv_search_acl_trivial+set}" = set; then :
24330 $as_echo_n "(cached) " >&6
24332 ac_func_search_save_LIBS
=$LIBS
24333 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24334 /* end confdefs.h. */
24336 /* Override any GCC internal prototype to avoid an error.
24337 Use char because int might match the return type of a GCC
24338 builtin and then its argument prototype would still apply. */
24342 char acl_trivial ();
24346 return acl_trivial ();
24351 for ac_lib
in '' sec
; do
24352 if test -z "$ac_lib"; then
24353 ac_res
="none required"
24356 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
24358 if ac_fn_c_try_link
"$LINENO"; then :
24359 ac_cv_search_acl_trivial
=$ac_res
24361 rm -f core conftest.err conftest.
$ac_objext \
24363 if test "${ac_cv_search_acl_trivial+set}" = set; then :
24367 if test "${ac_cv_search_acl_trivial+set}" = set; then :
24370 ac_cv_search_acl_trivial
=no
24372 rm conftest.
$ac_ext
24373 LIBS
=$ac_func_search_save_LIBS
24375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_acl_trivial" >&5
24376 $as_echo "$ac_cv_search_acl_trivial" >&6; }
24377 ac_res
=$ac_cv_search_acl_trivial
24378 if test "$ac_res" != no
; then :
24379 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
24380 if test "$ac_cv_search_acl_trivial" != "none required"; then
24381 LIB_ACL
=$ac_cv_search_acl_trivial
24386 for ac_func
in acl_trivial
24388 ac_fn_c_check_func
"$LINENO" "acl_trivial" "ac_cv_func_acl_trivial"
24389 if test "x$ac_cv_func_acl_trivial" = x
""yes; then :
24390 cat >>confdefs.h
<<_ACEOF
24391 #define HAVE_ACL_TRIVIAL 1
24401 if test $use_acl = 0; then
24402 for ac_func
in getacl
24404 ac_fn_c_check_func
"$LINENO" "getacl" "ac_cv_func_getacl"
24405 if test "x$ac_cv_func_getacl" = x
""yes; then :
24406 cat >>confdefs.h
<<_ACEOF
24407 #define HAVE_GETACL 1
24413 if test $ac_cv_func_getacl = yes; then
24416 for ac_header
in aclv.h
24418 ac_fn_c_check_header_compile
"$LINENO" "aclv.h" "ac_cv_header_aclv_h" "#include <sys/types.h>
24420 if test "x$ac_cv_header_aclv_h" = x
""yes; then :
24421 cat >>confdefs.h
<<_ACEOF
24422 #define HAVE_ACLV_H 1
24431 if test $use_acl = 0; then
24432 for ac_func
in aclx_get
24434 ac_fn_c_check_func
"$LINENO" "aclx_get" "ac_cv_func_aclx_get"
24435 if test "x$ac_cv_func_aclx_get" = x
""yes; then :
24436 cat >>confdefs.h
<<_ACEOF
24437 #define HAVE_ACLX_GET 1
24443 if test $ac_cv_func_aclx_get = yes; then
24448 if test $use_acl = 0 ||
test "$ac_cv_func_aclx_get" = yes; then
24449 for ac_func
in statacl
24451 ac_fn_c_check_func
"$LINENO" "statacl" "ac_cv_func_statacl"
24452 if test "x$ac_cv_func_statacl" = x
""yes; then :
24453 cat >>confdefs.h
<<_ACEOF
24454 #define HAVE_STATACL 1
24460 if test $ac_cv_func_statacl = yes; then
24465 if test $use_acl = 0; then
24466 for ac_func
in aclsort
24468 ac_fn_c_check_func
"$LINENO" "aclsort" "ac_cv_func_aclsort"
24469 if test "x$ac_cv_func_aclsort" = x
""yes; then :
24470 cat >>confdefs.h
<<_ACEOF
24471 #define HAVE_ACLSORT 1
24477 if test $ac_cv_func_aclsort = yes; then
24484 if test "x$enable_acl$use_acl" = "xyes0"; then
24485 as_fn_error
"ACLs enabled but support not detected" "$LINENO" 5
24486 elif test "x$enable_acl$use_acl" = "xauto0"; then
24487 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libacl development library was not found or not usable." >&5
24488 $as_echo "$as_me: WARNING: libacl development library was not found or not usable." >&2;}
24489 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: emacs will be built without ACL support." >&5
24490 $as_echo "$as_me: WARNING: emacs will be built without ACL support." >&2;}
24495 cat >>confdefs.h
<<_ACEOF
24496 #define USE_ACL $use_acl
24505 if test $ac_cv_func_readlink = no
; then
24508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
24509 $as_echo_n "checking whether readlink signature is correct... " >&6; }
24510 if test "${gl_cv_decl_readlink_works+set}" = set; then :
24511 $as_echo_n "(cached) " >&6
24513 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24514 /* end confdefs.h. */
24515 #include <unistd.h>
24516 /* Cause compilation failure if original declaration has wrong type. */
24517 ssize_t readlink (const char *, char *, size_t);
24526 if ac_fn_c_try_compile
"$LINENO"; then :
24527 gl_cv_decl_readlink_works
=yes
24529 gl_cv_decl_readlink_works
=no
24531 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
24534 $as_echo "$gl_cv_decl_readlink_works" >&6; }
24535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
24536 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
24537 if test "${gl_cv_func_readlink_works+set}" = set; then :
24538 $as_echo_n "(cached) " >&6
24540 # We have readlink, so assume ln -s works.
24541 ln -s conftest.no-such conftest.link
24542 ln -s conftest.link conftest.lnk2
24543 if test "$cross_compiling" = yes; then :
24545 # Guess yes on glibc systems.
24546 *-gnu*) gl_cv_func_readlink_works
="guessing yes" ;;
24547 # If we don't know, assume the worst.
24548 *) gl_cv_func_readlink_works
="guessing no" ;;
24552 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24553 /* end confdefs.h. */
24554 #include <unistd.h>
24560 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
24565 if ac_fn_c_try_run
"$LINENO"; then :
24566 gl_cv_func_readlink_works
=yes
24568 gl_cv_func_readlink_works
=no
24570 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24571 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24574 rm -f conftest.link conftest.lnk2
24576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
24577 $as_echo "$gl_cv_func_readlink_works" >&6; }
24578 case "$gl_cv_func_readlink_works" in
24580 if test "$gl_cv_decl_readlink_works" != yes; then
24586 $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
24593 if test $HAVE_READLINK = 0 ||
test $REPLACE_READLINK = 1; then
24602 gl_LIBOBJS
="$gl_LIBOBJS readlink.$ac_objext"
24623 if test $ac_cv_func_readlinkat = no
; then
24627 if test $HAVE_READLINKAT = 0; then
24636 gl_LIBOBJS
="$gl_LIBOBJS readlinkat.$ac_objext"
24644 GNULIB_READLINKAT
=1
24651 for ac_func
in sig2str
24653 ac_fn_c_check_func
"$LINENO" "sig2str" "ac_cv_func_sig2str"
24654 if test "x$ac_cv_func_sig2str" = x
""yes; then :
24655 cat >>confdefs.h
<<_ACEOF
24656 #define HAVE_SIG2STR 1
24663 if test $ac_cv_func_sig2str = no
; then
24672 gl_LIBOBJS
="$gl_LIBOBJS sig2str.$ac_objext"
24689 if test $gl_cv_have_include_next = yes; then
24690 gl_cv_next_signal_h
='<'signal.h
'>'
24692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
24693 $as_echo_n "checking absolute name of <signal.h>... " >&6; }
24694 if test "${gl_cv_next_signal_h+set}" = set; then :
24695 $as_echo_n "(cached) " >&6
24698 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24699 /* end confdefs.h. */
24700 #include <signal.h>
24704 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
24705 *) gl_absname_cpp
="$ac_cpp" ;;
24710 gl_dirsep_regex
='[/\\]'
24713 gl_dirsep_regex
='\/'
24716 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
24718 gl_header_literal_regex
=`echo 'signal.h' \
24719 | sed -e "$gl_make_literal_regex_sed"`
24720 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24721 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24726 gl_cv_next_signal_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24727 sed -n "$gl_absolute_header_sed"`'"'
24731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
24732 $as_echo "$gl_cv_next_signal_h" >&6; }
24734 NEXT_SIGNAL_H
=$gl_cv_next_signal_h
24736 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
24737 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24738 gl_next_as_first_directive
='<'signal.h
'>'
24740 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24741 gl_next_as_first_directive
=$gl_cv_next_signal_h
24743 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
=$gl_next_as_first_directive
24749 # AIX declares sig_atomic_t to already include volatile, and C89 compilers
24750 # then choke on 'volatile sig_atomic_t'. C99 requires that it compile.
24751 ac_fn_c_check_type
"$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
24752 #include <signal.h>
24755 if test "x$ac_cv_type_volatile_sig_atomic_t" = x
""yes; then :
24758 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
=0
24767 ac_fn_c_check_type
"$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
24768 #include <signal.h>
24771 if test "x$ac_cv_type_sighandler_t" = x
""yes; then :
24774 HAVE_SIGHANDLER_T
=0
24780 ac_fn_c_check_type
"$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
24781 /* <sys/types.h> is not needed according to POSIX, but the
24782 <sys/socket.h> in i386-unknown-freebsd4.10 and
24783 powerpc-apple-darwin5.5 required it. */
24784 #include <sys/types.h>
24785 #if HAVE_SYS_SOCKET_H
24786 # include <sys/socket.h>
24787 #elif HAVE_WS2TCPIP_H
24788 # include <ws2tcpip.h>
24792 if test "x$ac_cv_type_socklen_t" = x
""yes; then :
24795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
24796 $as_echo_n "checking for socklen_t equivalent... " >&6; }
24797 if test "${gl_cv_socklen_t_equiv+set}" = set; then :
24798 $as_echo_n "(cached) " >&6
24800 # Systems have either "struct sockaddr *" or
24801 # "void *" as the second argument to getpeername
24802 gl_cv_socklen_t_equiv
=
24803 for arg2
in "struct sockaddr" void
; do
24804 for t
in int size_t
"unsigned int" "long int" "unsigned long int"; do
24805 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24806 /* end confdefs.h. */
24807 #include <sys/types.h>
24808 #include <sys/socket.h>
24810 int getpeername (int, $arg2 *, $t *);
24815 getpeername (0, 0, &len);
24820 if ac_fn_c_try_compile
"$LINENO"; then :
24821 gl_cv_socklen_t_equiv
="$t"
24823 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24824 test "$gl_cv_socklen_t_equiv" != "" && break
24826 test "$gl_cv_socklen_t_equiv" != "" && break
24831 if test "$gl_cv_socklen_t_equiv" = ""; then
24832 as_fn_error
"Cannot find a type to use in place of socklen_t" "$LINENO" 5
24834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
24835 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
24837 cat >>confdefs.h
<<_ACEOF
24838 #define socklen_t $gl_cv_socklen_t_equiv
24844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
24845 $as_echo_n "checking for ssize_t... " >&6; }
24846 if test "${gt_cv_ssize_t+set}" = set; then :
24847 $as_echo_n "(cached) " >&6
24849 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24850 /* end confdefs.h. */
24851 #include <sys/types.h>
24855 int x = sizeof (ssize_t *) + sizeof (ssize_t);
24861 if ac_fn_c_try_compile
"$LINENO"; then :
24866 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
24869 $as_echo "$gt_cv_ssize_t" >&6; }
24870 if test $gt_cv_ssize_t = no
; then
24872 $as_echo "#define ssize_t int" >>confdefs.h
24880 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>
24881 #include <sys/stat.h>
24883 if test "x$ac_cv_member_struct_stat_st_atim_tv_nsec" = x
""yes; then :
24885 cat >>confdefs.h
<<_ACEOF
24886 #define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1
24889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat.st_atim is of type struct timespec" >&5
24890 $as_echo_n "checking whether struct stat.st_atim is of type struct timespec... " >&6; }
24891 if test "${ac_cv_typeof_struct_stat_st_atim_is_struct_timespec+set}" = set; then :
24892 $as_echo_n "(cached) " >&6
24894 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24895 /* end confdefs.h. */
24897 #include <sys/types.h>
24898 #include <sys/stat.h>
24899 #if HAVE_SYS_TIME_H
24900 # include <sys/time.h>
24903 struct timespec ts;
24916 if ac_fn_c_try_compile
"$LINENO"; then :
24917 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec
=yes
24919 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec
=no
24921 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&5
24924 $as_echo "$ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&6; }
24925 if test $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec = yes; then
24927 $as_echo "#define TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC 1" >>confdefs.h
24931 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>
24932 #include <sys/stat.h>
24934 if test "x$ac_cv_member_struct_stat_st_atimespec_tv_nsec" = x
""yes; then :
24936 cat >>confdefs.h
<<_ACEOF
24937 #define HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC 1
24942 ac_fn_c_check_member
"$LINENO" "struct stat" "st_atimensec" "ac_cv_member_struct_stat_st_atimensec" "#include <sys/types.h>
24943 #include <sys/stat.h>
24945 if test "x$ac_cv_member_struct_stat_st_atimensec" = x
""yes; then :
24947 cat >>confdefs.h
<<_ACEOF
24948 #define HAVE_STRUCT_STAT_ST_ATIMENSEC 1
24953 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>
24954 #include <sys/stat.h>
24956 if test "x$ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" = x
""yes; then :
24958 cat >>confdefs.h
<<_ACEOF
24959 #define HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC 1
24975 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>
24976 #include <sys/stat.h>
24978 if test "x$ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" = x
""yes; then :
24980 cat >>confdefs.h
<<_ACEOF
24981 #define HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC 1
24986 ac_fn_c_check_member
"$LINENO" "struct stat" "st_birthtimensec" "ac_cv_member_struct_stat_st_birthtimensec" "#include <sys/types.h>
24987 #include <sys/stat.h>
24989 if test "x$ac_cv_member_struct_stat_st_birthtimensec" = x
""yes; then :
24991 cat >>confdefs.h
<<_ACEOF
24992 #define HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC 1
24997 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>
24998 #include <sys/stat.h>
25000 if test "x$ac_cv_member_struct_stat_st_birthtim_tv_nsec" = x
""yes; then :
25002 cat >>confdefs.h
<<_ACEOF
25003 #define HAVE_STRUCT_STAT_ST_BIRTHTIM_TV_NSEC 1
25015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdalign.h" >&5
25016 $as_echo_n "checking for working stdalign.h... " >&6; }
25017 if test "${gl_cv_header_working_stdalign_h+set}" = set; then :
25018 $as_echo_n "(cached) " >&6
25020 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25021 /* end confdefs.h. */
25022 #include <stdalign.h>
25023 #include <stddef.h>
25025 /* Test that alignof yields a result consistent with offsetof.
25026 This catches GCC bug 52023
25027 <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023>. */
25029 template <class t> struct alignof_helper { char a; t b; };
25030 # define ao(type) offsetof (alignof_helper<type>, b)
25032 # define ao(type) offsetof (struct { char a; type b; }, b)
25034 char test_double[ao (double) % _Alignof (double) == 0 ? 1 : -1];
25035 char test_long[ao (long int) % _Alignof (long int) == 0 ? 1 : -1];
25036 char test_alignof[alignof (double) == _Alignof (double) ? 1 : -1];
25038 /* Test _Alignas only on platforms where gnulib can help. */
25040 (__GNUC__ || __IBMC__ || __IBMCPP__ \
25041 || 0x5110 <= __SUNPRO_C || 1300 <= _MSC_VER)
25042 struct alignas_test { char c; char alignas (8) alignas_8; };
25043 char test_alignas[offsetof (struct alignas_test, alignas_8) == 8
25055 if ac_fn_c_try_compile
"$LINENO"; then :
25056 gl_cv_header_working_stdalign_h
=yes
25058 gl_cv_header_working_stdalign_h
=no
25060 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdalign_h" >&5
25063 $as_echo "$gl_cv_header_working_stdalign_h" >&6; }
25065 if test $gl_cv_header_working_stdalign_h = yes; then
25068 STDALIGN_H
='stdalign.h'
25072 if test -n "$STDALIGN_H"; then
25073 GL_GENERATE_STDALIGN_H_TRUE
=
25074 GL_GENERATE_STDALIGN_H_FALSE
='#'
25076 GL_GENERATE_STDALIGN_H_TRUE
='#'
25077 GL_GENERATE_STDALIGN_H_FALSE
=
25083 NEXT_STDARG_H
='<stdarg.h>'
25084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
25085 $as_echo_n "checking for va_copy... " >&6; }
25086 if test "${gl_cv_func_va_copy+set}" = set; then :
25087 $as_echo_n "(cached) " >&6
25090 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25091 /* end confdefs.h. */
25092 #include <stdarg.h>
25098 void (*func) (va_list, va_list) = va_copy;
25105 if ac_fn_c_try_compile
"$LINENO"; then :
25106 gl_cv_func_va_copy
=yes
25108 gl_cv_func_va_copy
=no
25110 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_va_copy" >&5
25114 $as_echo "$gl_cv_func_va_copy" >&6; }
25115 if test $gl_cv_func_va_copy = no
; then
25116 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25117 /* end confdefs.h. */
25118 #if defined _AIX && !defined __GNUC__
25123 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25124 $EGREP "vaccine" >/dev
/null
2>&1; then :
25131 if test $gl_aixcc = yes; then
25141 if test $gl_cv_have_include_next = yes; then
25142 gl_cv_next_stdarg_h
='<'stdarg.h
'>'
25144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdarg.h>" >&5
25145 $as_echo_n "checking absolute name of <stdarg.h>... " >&6; }
25146 if test "${gl_cv_next_stdarg_h+set}" = set; then :
25147 $as_echo_n "(cached) " >&6
25150 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25151 /* end confdefs.h. */
25152 #include <stdarg.h>
25156 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
25157 *) gl_absname_cpp
="$ac_cpp" ;;
25162 gl_dirsep_regex
='[/\\]'
25165 gl_dirsep_regex
='\/'
25168 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
25170 gl_header_literal_regex
=`echo 'stdarg.h' \
25171 | sed -e "$gl_make_literal_regex_sed"`
25172 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
25173 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
25178 gl_cv_next_stdarg_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
25179 sed -n "$gl_absolute_header_sed"`'"'
25183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdarg_h" >&5
25184 $as_echo "$gl_cv_next_stdarg_h" >&6; }
25186 NEXT_STDARG_H
=$gl_cv_next_stdarg_h
25188 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
25189 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
25190 gl_next_as_first_directive
='<'stdarg.h
'>'
25192 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
25193 gl_next_as_first_directive
=$gl_cv_next_stdarg_h
25195 NEXT_AS_FIRST_DIRECTIVE_STDARG_H
=$gl_next_as_first_directive
25200 if test "$gl_cv_next_stdarg_h" = '""'; then
25201 gl_cv_next_stdarg_h
='"///usr/include/stdarg.h"'
25202 NEXT_STDARG_H
="$gl_cv_next_stdarg_h"
25206 saved_as_echo_n
="$as_echo_n"
25208 if test "${gl_cv_func___va_copy+set}" = set; then :
25209 $as_echo_n "(cached) " >&6
25212 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25213 /* end confdefs.h. */
25214 #include <stdarg.h>
25227 if ac_fn_c_try_compile
"$LINENO"; then :
25228 gl_cv_func___va_copy
=yes
25230 gl_cv_func___va_copy
=no
25232 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25235 as_echo_n
="$saved_as_echo_n"
25237 if test $gl_cv_func___va_copy = yes; then
25239 $as_echo "#define va_copy __va_copy" >>confdefs.h
25244 $as_echo "#define va_copy gl_va_copy" >>confdefs.h
25250 if test -n "$STDARG_H"; then
25251 GL_GENERATE_STDARG_H_TRUE
=
25252 GL_GENERATE_STDARG_H_FALSE
='#'
25254 GL_GENERATE_STDARG_H_TRUE
='#'
25255 GL_GENERATE_STDARG_H_FALSE
=
25263 # Define two additional variables used in the Makefile substitution.
25265 if test "$ac_cv_header_stdbool_h" = yes; then
25268 STDBOOL_H
='stdbool.h'
25271 if test -n "$STDBOOL_H"; then
25272 GL_GENERATE_STDBOOL_H_TRUE
=
25273 GL_GENERATE_STDBOOL_H_FALSE
='#'
25275 GL_GENERATE_STDBOOL_H_TRUE
='#'
25276 GL_GENERATE_STDBOOL_H_FALSE
=
25280 if test "$ac_cv_type__Bool" = yes; then
25291 if test $gt_cv_c_wchar_t = no
; then
25295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
25296 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
25297 if test "${gl_cv_decl_null_works+set}" = set; then :
25298 $as_echo_n "(cached) " >&6
25300 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25301 /* end confdefs.h. */
25302 #include <stddef.h>
25303 int test[2 * (sizeof NULL == sizeof (void *)) -1];
25313 if ac_fn_c_try_compile
"$LINENO"; then :
25314 gl_cv_decl_null_works
=yes
25316 gl_cv_decl_null_works
=no
25318 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
25321 $as_echo "$gl_cv_decl_null_works" >&6; }
25322 if test $gl_cv_decl_null_works = no
; then
25327 if test -n "$STDDEF_H"; then
25328 GL_GENERATE_STDDEF_H_TRUE
=
25329 GL_GENERATE_STDDEF_H_FALSE
='#'
25331 GL_GENERATE_STDDEF_H_TRUE
='#'
25332 GL_GENERATE_STDDEF_H_FALSE
=
25335 if test -n "$STDDEF_H"; then
25344 if test $gl_cv_have_include_next = yes; then
25345 gl_cv_next_stddef_h
='<'stddef.h
'>'
25347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
25348 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
25349 if test "${gl_cv_next_stddef_h+set}" = set; then :
25350 $as_echo_n "(cached) " >&6
25353 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25354 /* end confdefs.h. */
25355 #include <stddef.h>
25359 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
25360 *) gl_absname_cpp
="$ac_cpp" ;;
25365 gl_dirsep_regex
='[/\\]'
25368 gl_dirsep_regex
='\/'
25371 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
25373 gl_header_literal_regex
=`echo 'stddef.h' \
25374 | sed -e "$gl_make_literal_regex_sed"`
25375 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
25376 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
25381 gl_cv_next_stddef_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
25382 sed -n "$gl_absolute_header_sed"`'"'
25386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
25387 $as_echo "$gl_cv_next_stddef_h" >&6; }
25389 NEXT_STDDEF_H
=$gl_cv_next_stddef_h
25391 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
25392 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
25393 gl_next_as_first_directive
='<'stddef.h
'>'
25395 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
25396 gl_next_as_first_directive
=$gl_cv_next_stddef_h
25398 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
=$gl_next_as_first_directive
25416 if test $gl_cv_have_include_next = yes; then
25417 gl_cv_next_stdio_h
='<'stdio.h
'>'
25419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
25420 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
25421 if test "${gl_cv_next_stdio_h+set}" = set; then :
25422 $as_echo_n "(cached) " >&6
25425 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25426 /* end confdefs.h. */
25431 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
25432 *) gl_absname_cpp
="$ac_cpp" ;;
25437 gl_dirsep_regex
='[/\\]'
25440 gl_dirsep_regex
='\/'
25443 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
25445 gl_header_literal_regex
=`echo 'stdio.h' \
25446 | sed -e "$gl_make_literal_regex_sed"`
25447 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
25448 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
25453 gl_cv_next_stdio_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
25454 sed -n "$gl_absolute_header_sed"`'"'
25458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
25459 $as_echo "$gl_cv_next_stdio_h" >&6; }
25461 NEXT_STDIO_H
=$gl_cv_next_stdio_h
25463 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
25464 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
25465 gl_next_as_first_directive
='<'stdio.h
'>'
25467 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
25468 gl_next_as_first_directive
=$gl_cv_next_stdio_h
25470 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
=$gl_next_as_first_directive
25479 cat >>confdefs.h
<<_ACEOF
25480 #define GNULIB_FSCANF 1
25487 cat >>confdefs.h
<<_ACEOF
25488 #define GNULIB_SCANF 1
25524 if test $gl_cv_have_include_next = yes; then
25525 gl_cv_next_stdlib_h
='<'stdlib.h
'>'
25527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
25528 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
25529 if test "${gl_cv_next_stdlib_h+set}" = set; then :
25530 $as_echo_n "(cached) " >&6
25533 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25534 /* end confdefs.h. */
25535 #include <stdlib.h>
25539 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
25540 *) gl_absname_cpp
="$ac_cpp" ;;
25545 gl_dirsep_regex
='[/\\]'
25548 gl_dirsep_regex
='\/'
25551 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
25553 gl_header_literal_regex
=`echo 'stdlib.h' \
25554 | sed -e "$gl_make_literal_regex_sed"`
25555 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
25556 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
25561 gl_cv_next_stdlib_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
25562 sed -n "$gl_absolute_header_sed"`'"'
25566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
25567 $as_echo "$gl_cv_next_stdlib_h" >&6; }
25569 NEXT_STDLIB_H
=$gl_cv_next_stdlib_h
25571 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
25572 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
25573 gl_next_as_first_directive
='<'stdlib.h
'>'
25575 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
25576 gl_next_as_first_directive
=$gl_cv_next_stdlib_h
25578 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
=$gl_next_as_first_directive
25588 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
25596 $as_echo "#define my_strftime nstrftime" >>confdefs.h
25608 if test "$ac_cv_have_decl_strtoimax" != yes; then
25609 HAVE_DECL_STRTOIMAX
=0
25612 if test $ac_cv_func_strtoimax = yes; then
25614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtoimax works" >&5
25615 $as_echo_n "checking whether strtoimax works... " >&6; }
25616 if test "${gl_cv_func_strtoimax+set}" = set; then :
25617 $as_echo_n "(cached) " >&6
25619 if test "$cross_compiling" = yes; then :
25621 # Guess no on AIX 5.
25622 aix5
*) gl_cv_func_strtoimax
="guessing no" ;;
25623 # Guess yes otherwise.
25624 *) gl_cv_func_strtoimax
="guessing yes" ;;
25628 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25629 /* end confdefs.h. */
25632 #include <string.h>
25633 #include <inttypes.h>
25636 if (sizeof (intmax_t) > sizeof (int))
25638 const char *s = "4294967295";
25642 res = strtoimax (s, &p, 10);
25643 if (p != s + strlen (s))
25647 if (res != (intmax_t) 65535 * (intmax_t) 65537)
25652 const char *s = "2147483647";
25656 res = strtoimax (s, &p, 10);
25657 if (p != s + strlen (s))
25661 if (res != 2147483647)
25668 if ac_fn_c_try_run
"$LINENO"; then :
25669 gl_cv_func_strtoimax
=yes
25671 gl_cv_func_strtoimax
=no
25673 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
25674 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
25679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strtoimax" >&5
25680 $as_echo "$gl_cv_func_strtoimax" >&6; }
25681 case "$gl_cv_func_strtoimax" in
25682 *no
) REPLACE_STRTOIMAX
=1 ;;
25688 if test $HAVE_STRTOIMAX = 0 ||
test $REPLACE_STRTOIMAX = 1; then
25697 gl_LIBOBJS
="$gl_LIBOBJS strtoimax.$ac_objext"
25700 ac_fn_c_check_decl
"$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
25701 if test "x$ac_cv_have_decl_strtoll" = x
""yes; then :
25707 cat >>confdefs.h
<<_ACEOF
25708 #define HAVE_DECL_STRTOLL $ac_have_decl
25729 if test "$ac_cv_have_decl_strtoumax" != yes; then
25730 HAVE_DECL_STRTOUMAX
=0
25733 if test $ac_cv_func_strtoumax = no
; then
25742 gl_LIBOBJS
="$gl_LIBOBJS strtoumax.$ac_objext"
25745 ac_fn_c_check_decl
"$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
25746 if test "x$ac_cv_have_decl_strtoull" = x
""yes; then :
25752 cat >>confdefs.h
<<_ACEOF
25753 #define HAVE_DECL_STRTOULL $ac_have_decl
25772 if test $ac_cv_func_symlink = no
; then
25775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symlink handles trailing slash correctly" >&5
25776 $as_echo_n "checking whether symlink handles trailing slash correctly... " >&6; }
25777 if test "${gl_cv_func_symlink_works+set}" = set; then :
25778 $as_echo_n "(cached) " >&6
25780 if test "$cross_compiling" = yes; then :
25782 # Guess yes on glibc systems.
25783 *-gnu*) gl_cv_func_symlink_works
="guessing yes" ;;
25784 # If we don't know, assume the worst.
25785 *) gl_cv_func_symlink_works
="guessing no" ;;
25789 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25790 /* end confdefs.h. */
25791 #include <unistd.h>
25797 if (!symlink ("a", "conftest.link/"))
25799 if (symlink ("conftest.f", "conftest.lnk2"))
25801 else if (!symlink ("a", "conftest.lnk2/"))
25809 if ac_fn_c_try_run
"$LINENO"; then :
25810 gl_cv_func_symlink_works
=yes
25812 gl_cv_func_symlink_works
=no
25814 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
25815 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
25818 rm -f conftest.f conftest.link conftest.lnk2
25820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_symlink_works" >&5
25821 $as_echo "$gl_cv_func_symlink_works" >&6; }
25822 case "$gl_cv_func_symlink_works" in
25830 if test $HAVE_SYMLINK = 0 ||
test $REPLACE_SYMLINK = 1; then
25839 gl_LIBOBJS
="$gl_LIBOBJS symlink.$ac_objext"
25856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/select.h> is self-contained" >&5
25857 $as_echo_n "checking whether <sys/select.h> is self-contained... " >&6; }
25858 if test "${gl_cv_header_sys_select_h_selfcontained+set}" = set; then :
25859 $as_echo_n "(cached) " >&6
25862 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25863 /* end confdefs.h. */
25864 #include <sys/select.h>
25873 if ac_fn_c_try_compile
"$LINENO"; then :
25874 gl_cv_header_sys_select_h_selfcontained
=yes
25876 gl_cv_header_sys_select_h_selfcontained
=no
25878 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25879 if test $gl_cv_header_sys_select_h_selfcontained = yes; then
25880 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25881 /* end confdefs.h. */
25882 #include <sys/select.h>
25886 int memset; int bzero;
25892 if ac_fn_c_try_compile
"$LINENO"; then :
25893 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25894 /* end confdefs.h. */
25895 #include <sys/select.h>
25901 #define memset nonexistent_memset
25906 void *memset (void *, int, unsigned long);
25908 #define bzero nonexistent_bzero
25913 void bzero (void *, unsigned long);
25922 if ac_fn_c_try_link
"$LINENO"; then :
25925 gl_cv_header_sys_select_h_selfcontained
=no
25927 rm -f core conftest.err conftest.
$ac_objext \
25928 conftest
$ac_exeext conftest.
$ac_ext
25931 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_selfcontained" >&5
25936 $as_echo "$gl_cv_header_sys_select_h_selfcontained" >&6; }
25946 if test $gl_cv_have_include_next = yes; then
25947 gl_cv_next_sys_select_h
='<'sys
/select.h
'>'
25949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/select.h>" >&5
25950 $as_echo_n "checking absolute name of <sys/select.h>... " >&6; }
25951 if test "${gl_cv_next_sys_select_h+set}" = set; then :
25952 $as_echo_n "(cached) " >&6
25955 if test $ac_cv_header_sys_select_h = yes; then
25958 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25959 /* end confdefs.h. */
25960 #include <sys/select.h>
25964 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
25965 *) gl_absname_cpp
="$ac_cpp" ;;
25970 gl_dirsep_regex
='[/\\]'
25973 gl_dirsep_regex
='\/'
25976 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
25978 gl_header_literal_regex
=`echo 'sys/select.h' \
25979 | sed -e "$gl_make_literal_regex_sed"`
25980 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
25981 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
25986 gl_cv_next_sys_select_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
25987 sed -n "$gl_absolute_header_sed"`'"'
25989 gl_cv_next_sys_select_h
='<'sys
/select.h
'>'
25994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_select_h" >&5
25995 $as_echo "$gl_cv_next_sys_select_h" >&6; }
25997 NEXT_SYS_SELECT_H
=$gl_cv_next_sys_select_h
25999 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
26000 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
26001 gl_next_as_first_directive
='<'sys
/select.h
'>'
26003 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
26004 gl_next_as_first_directive
=$gl_cv_next_sys_select_h
26006 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H
=$gl_next_as_first_directive
26011 if test $ac_cv_header_sys_select_h = yes; then
26012 HAVE_SYS_SELECT_H
=1
26014 HAVE_SYS_SELECT_H
=0
26021 if test $ac_cv_header_sys_socket_h != yes; then
26022 for ac_header
in winsock2.h
26024 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
26025 if test "x$ac_cv_header_winsock2_h" = x
""yes; then :
26026 cat >>confdefs.h
<<_ACEOF
26027 #define HAVE_WINSOCK2_H 1
26035 if test "$ac_cv_header_winsock2_h" = yes; then
26037 UNISTD_H_HAVE_WINSOCK2_H
=1
26038 SYS_IOCTL_H_HAVE_WINSOCK2_H
=1
26062 if test $gl_cv_have_include_next = yes; then
26063 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
26065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
26066 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
26067 if test "${gl_cv_next_sys_stat_h+set}" = set; then :
26068 $as_echo_n "(cached) " >&6
26071 if test $ac_cv_header_sys_stat_h = yes; then
26074 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26075 /* end confdefs.h. */
26076 #include <sys/stat.h>
26080 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
26081 *) gl_absname_cpp
="$ac_cpp" ;;
26086 gl_dirsep_regex
='[/\\]'
26089 gl_dirsep_regex
='\/'
26092 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
26094 gl_header_literal_regex
=`echo 'sys/stat.h' \
26095 | sed -e "$gl_make_literal_regex_sed"`
26096 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
26097 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
26102 gl_cv_next_sys_stat_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
26103 sed -n "$gl_absolute_header_sed"`'"'
26105 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
26110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
26111 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
26113 NEXT_SYS_STAT_H
=$gl_cv_next_sys_stat_h
26115 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
26116 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
26117 gl_next_as_first_directive
='<'sys
/stat.h
'>'
26119 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
26120 gl_next_as_first_directive
=$gl_cv_next_sys_stat_h
26122 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
=$gl_next_as_first_directive
26134 if test $WINDOWS_64_BIT_ST_SIZE = 1; then
26136 $as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h
26140 ac_fn_c_check_type
"$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
26141 #include <sys/stat.h>
26143 if test "x$ac_cv_type_nlink_t" = x
""yes; then :
26147 $as_echo "#define nlink_t int" >>confdefs.h
26168 ac_fn_c_check_decl
"$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "#include <time.h>
26170 if test "x$ac_cv_have_decl_localtime_r" = x
""yes; then :
26176 cat >>confdefs.h
<<_ACEOF
26177 #define HAVE_DECL_LOCALTIME_R $ac_have_decl
26180 if test $ac_cv_have_decl_localtime_r = no
; then
26181 HAVE_DECL_LOCALTIME_R
=0
26185 if test $ac_cv_func_localtime_r = yes; then
26187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
26188 $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
26189 if test "${gl_cv_time_r_posix+set}" = set; then :
26190 $as_echo_n "(cached) " >&6
26192 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26193 /* end confdefs.h. */
26198 /* We don't need to append 'restrict's to the argument types,
26199 even though the POSIX signature has the 'restrict's,
26200 since C99 says they can't affect type compatibility. */
26201 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
26203 /* Check the return type is a pointer.
26204 On HP-UX 10 it is 'int'. */
26205 *localtime_r (0, 0);
26211 if ac_fn_c_try_compile
"$LINENO"; then :
26212 gl_cv_time_r_posix
=yes
26214 gl_cv_time_r_posix
=no
26216 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
26220 $as_echo "$gl_cv_time_r_posix" >&6; }
26221 if test $gl_cv_time_r_posix = yes; then
26222 REPLACE_LOCALTIME_R
=0
26224 REPLACE_LOCALTIME_R
=1
26230 if test $HAVE_LOCALTIME_R = 0 ||
test $REPLACE_LOCALTIME_R = 1; then
26239 gl_LIBOBJS
="$gl_LIBOBJS time_r.$ac_objext"
26263 gl_saved_libs
=$LIBS
26264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing timer_settime" >&5
26265 $as_echo_n "checking for library containing timer_settime... " >&6; }
26266 if test "${ac_cv_search_timer_settime+set}" = set; then :
26267 $as_echo_n "(cached) " >&6
26269 ac_func_search_save_LIBS
=$LIBS
26270 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26271 /* end confdefs.h. */
26273 /* Override any GCC internal prototype to avoid an error.
26274 Use char because int might match the return type of a GCC
26275 builtin and then its argument prototype would still apply. */
26279 char timer_settime ();
26283 return timer_settime ();
26288 for ac_lib
in '' rt posix4
; do
26289 if test -z "$ac_lib"; then
26290 ac_res
="none required"
26293 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
26295 if ac_fn_c_try_link
"$LINENO"; then :
26296 ac_cv_search_timer_settime
=$ac_res
26298 rm -f core conftest.err conftest.
$ac_objext \
26300 if test "${ac_cv_search_timer_settime+set}" = set; then :
26304 if test "${ac_cv_search_timer_settime+set}" = set; then :
26307 ac_cv_search_timer_settime
=no
26309 rm conftest.
$ac_ext
26310 LIBS
=$ac_func_search_save_LIBS
26312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_timer_settime" >&5
26313 $as_echo "$ac_cv_search_timer_settime" >&6; }
26314 ac_res
=$ac_cv_search_timer_settime
26315 if test "$ac_res" != no
; then :
26316 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
26317 test "$ac_cv_search_timer_settime" = "none required" ||
26318 LIB_TIMER_TIME
=$ac_cv_search_timer_settime
26321 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26322 /* end confdefs.h. */
26324 #include <features.h>
26325 #ifdef __GNU_LIBRARY__
26326 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2) || (__GLIBC__ > 2)) \
26327 && !defined __UCLIBC__
26328 Thread emulation available
26333 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26334 $EGREP "Thread" >/dev
/null
2>&1; then :
26335 LIB_TIMER_TIME
="$LIB_TIMER_TIME $LIBMULTITHREAD"
26339 for ac_func
in timer_settime
26341 ac_fn_c_check_func
"$LINENO" "timer_settime" "ac_cv_func_timer_settime"
26342 if test "x$ac_cv_func_timer_settime" = x
""yes; then :
26343 cat >>confdefs.h
<<_ACEOF
26344 #define HAVE_TIMER_SETTIME 1
26350 LIBS
=$gl_saved_libs
26365 if test $gl_cv_have_include_next = yes; then
26366 gl_cv_next_unistd_h
='<'unistd.h
'>'
26368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
26369 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
26370 if test "${gl_cv_next_unistd_h+set}" = set; then :
26371 $as_echo_n "(cached) " >&6
26374 if test $ac_cv_header_unistd_h = yes; then
26377 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26378 /* end confdefs.h. */
26379 #include <unistd.h>
26383 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
26384 *) gl_absname_cpp
="$ac_cpp" ;;
26389 gl_dirsep_regex
='[/\\]'
26392 gl_dirsep_regex
='\/'
26395 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
26397 gl_header_literal_regex
=`echo 'unistd.h' \
26398 | sed -e "$gl_make_literal_regex_sed"`
26399 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
26400 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
26405 gl_cv_next_unistd_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
26406 sed -n "$gl_absolute_header_sed"`'"'
26408 gl_cv_next_unistd_h
='<'unistd.h
'>'
26413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
26414 $as_echo "$gl_cv_next_unistd_h" >&6; }
26416 NEXT_UNISTD_H
=$gl_cv_next_unistd_h
26418 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
26419 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
26420 gl_next_as_first_directive
='<'unistd.h
'>'
26422 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
26423 gl_next_as_first_directive
=$gl_cv_next_unistd_h
26425 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
=$gl_next_as_first_directive
26430 if test $ac_cv_header_unistd_h = yes; then
26446 if test $ac_cv_have_decl_unsetenv = no
; then
26447 HAVE_DECL_UNSETENV
=0
26449 for ac_func
in unsetenv
26451 ac_fn_c_check_func
"$LINENO" "unsetenv" "ac_cv_func_unsetenv"
26452 if test "x$ac_cv_func_unsetenv" = x
""yes; then :
26453 cat >>confdefs.h
<<_ACEOF
26454 #define HAVE_UNSETENV 1
26460 if test $ac_cv_func_unsetenv = no
; then
26464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsetenv() return type" >&5
26465 $as_echo_n "checking for unsetenv() return type... " >&6; }
26466 if test "${gt_cv_func_unsetenv_ret+set}" = set; then :
26467 $as_echo_n "(cached) " >&6
26469 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26470 /* end confdefs.h. */
26473 #define _BSD 1 /* unhide unsetenv declaration in OSF/1 5.1 <stdlib.h> */
26474 #include <stdlib.h>
26479 int unsetenv (const char *name);
26489 if ac_fn_c_try_compile
"$LINENO"; then :
26490 gt_cv_func_unsetenv_ret
='int'
26492 gt_cv_func_unsetenv_ret
='void'
26494 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_unsetenv_ret" >&5
26497 $as_echo "$gt_cv_func_unsetenv_ret" >&6; }
26498 if test $gt_cv_func_unsetenv_ret = 'void'; then
26500 $as_echo "#define VOID_UNSETENV 1" >>confdefs.h
26505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether unsetenv obeys POSIX" >&5
26506 $as_echo_n "checking whether unsetenv obeys POSIX... " >&6; }
26507 if test "${gl_cv_func_unsetenv_works+set}" = set; then :
26508 $as_echo_n "(cached) " >&6
26510 if test "$cross_compiling" = yes; then :
26512 # Guess yes on glibc systems.
26513 *-gnu*) gl_cv_func_unsetenv_works
="guessing yes" ;;
26514 # If we don't know, assume the worst.
26515 *) gl_cv_func_unsetenv_works
="guessing no" ;;
26519 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26520 /* end confdefs.h. */
26522 #include <stdlib.h>
26524 extern char **environ;
26530 char entry1[] = "a=1";
26531 char entry2[] = "b=2";
26532 char *env[] = { entry1, entry2, NULL };
26533 if (putenv ((char *) "a=1")) return 1;
26534 if (putenv (entry2)) return 2;
26537 if (getenv ("a")) return 3;
26538 if (!unsetenv ("") || errno != EINVAL) return 4;
26541 if (!getenv ("a")) return 5;
26544 if (getenv ("a")) return 6;
26550 if ac_fn_c_try_run
"$LINENO"; then :
26551 gl_cv_func_unsetenv_works
=yes
26553 gl_cv_func_unsetenv_works
=no
26555 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
26556 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
26560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_unsetenv_works" >&5
26561 $as_echo "$gl_cv_func_unsetenv_works" >&6; }
26562 case "$gl_cv_func_unsetenv_works" in
26570 if test $HAVE_UNSETENV = 0 ||
test $REPLACE_UNSETENV = 1; then
26579 gl_LIBOBJS
="$gl_LIBOBJS unsetenv.$ac_objext"
26603 if test $ac_cv_func_futimens = no
&& test $ac_cv_func_futimesat = yes; then
26604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether futimesat handles NULL file" >&5
26605 $as_echo_n "checking whether futimesat handles NULL file... " >&6; }
26606 if test "${gl_cv_func_futimesat_works+set}" = set; then :
26607 $as_echo_n "(cached) " >&6
26609 touch conftest.
file
26610 if test "$cross_compiling" = yes; then :
26612 # Guess yes on glibc systems.
26613 *-gnu*) gl_cv_func_futimesat_works
="guessing yes" ;;
26614 # If we don't know, assume the worst.
26615 *) gl_cv_func_futimesat_works
="guessing no" ;;
26619 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26620 /* end confdefs.h. */
26622 #include <stddef.h>
26623 #include <sys/times.h>
26629 int fd = open ("conftest.file", O_RDWR);
26630 if (fd < 0) return 1;
26631 if (futimesat (fd, NULL, NULL)) return 2;
26637 if ac_fn_c_try_run
"$LINENO"; then :
26638 gl_cv_func_futimesat_works
=yes
26640 gl_cv_func_futimesat_works
=no
26642 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
26643 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
26646 rm -f conftest.
file
26648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_futimesat_works" >&5
26649 $as_echo "$gl_cv_func_futimesat_works" >&6; }
26650 case "$gl_cv_func_futimesat_works" in
26654 $as_echo "#define FUTIMESAT_NULL_BUG 1" >>confdefs.h
26660 gl_gnulib_enabled_260941c0e5dc67ec9e87d1fb321c300b
=false
26661 gl_gnulib_enabled_dosname
=false
26662 gl_gnulib_enabled_euidaccess
=false
26663 gl_gnulib_enabled_getgroups
=false
26664 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36
=false
26665 gl_gnulib_enabled_a9786850e999ae65a836a6041e8e5ed1
=false
26666 gl_gnulib_enabled_03e0aaad4cb89ca757653bd367a6ccb7
=false
26667 gl_gnulib_enabled_pathmax
=false
26668 gl_gnulib_enabled_6099e9737f757db36c47fa9d9f02e88c
=false
26669 gl_gnulib_enabled_stat
=false
26670 gl_gnulib_enabled_strtoll
=false
26671 gl_gnulib_enabled_strtoull
=false
26672 gl_gnulib_enabled_verify
=false
26673 gl_gnulib_enabled_682e609604ccaac6be382e4ee3a4eaec
=false
26674 func_gl_gnulib_m4code_260941c0e5dc67ec9e87d1fb321c300b
()
26676 if ! $gl_gnulib_enabled_260941c0e5dc67ec9e87d1fb321c300b; then
26685 gl_LIBOBJS
="$gl_LIBOBJS openat-proc.$ac_objext"
26687 gl_gnulib_enabled_260941c0e5dc67ec9e87d1fb321c300b
=true
26690 func_gl_gnulib_m4code_dosname
()
26692 if ! $gl_gnulib_enabled_dosname; then
26693 gl_gnulib_enabled_dosname
=true
26696 func_gl_gnulib_m4code_euidaccess
()
26698 if ! $gl_gnulib_enabled_euidaccess; then
26704 for ac_func
in euidaccess
26706 ac_fn_c_check_func
"$LINENO" "euidaccess" "ac_cv_func_euidaccess"
26707 if test "x$ac_cv_func_euidaccess" = x
""yes; then :
26708 cat >>confdefs.h
<<_ACEOF
26709 #define HAVE_EUIDACCESS 1
26715 if test $ac_cv_func_euidaccess = no
; then
26719 if test $HAVE_EUIDACCESS = 0; then
26728 gl_LIBOBJS
="$gl_LIBOBJS euidaccess.$ac_objext"
26732 for ac_header
in libgen.h
26734 ac_fn_c_check_header_mongrel
"$LINENO" "libgen.h" "ac_cv_header_libgen_h" "$ac_includes_default"
26735 if test "x$ac_cv_header_libgen_h" = x
""yes; then :
26736 cat >>confdefs.h
<<_ACEOF
26737 #define HAVE_LIBGEN_H 1
26745 ac_fn_c_check_func
"$LINENO" "getgroups" "ac_cv_func_getgroups"
26746 if test "x$ac_cv_func_getgroups" = x
""yes; then :
26751 # If we don't yet have getgroups, see if it's in -lbsd.
26752 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
26754 if test $ac_cv_func_getgroups = no
; then
26755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getgroups in -lbsd" >&5
26756 $as_echo_n "checking for getgroups in -lbsd... " >&6; }
26757 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then :
26758 $as_echo_n "(cached) " >&6
26760 ac_check_lib_save_LIBS
=$LIBS
26762 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26763 /* end confdefs.h. */
26765 /* Override any GCC internal prototype to avoid an error.
26766 Use char because int might match the return type of a GCC
26767 builtin and then its argument prototype would still apply. */
26775 return getgroups ();
26780 if ac_fn_c_try_link
"$LINENO"; then :
26781 ac_cv_lib_bsd_getgroups
=yes
26783 ac_cv_lib_bsd_getgroups
=no
26785 rm -f core conftest.err conftest.
$ac_objext \
26786 conftest
$ac_exeext conftest.
$ac_ext
26787 LIBS
=$ac_check_lib_save_LIBS
26789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_getgroups" >&5
26790 $as_echo "$ac_cv_lib_bsd_getgroups" >&6; }
26791 if test "x$ac_cv_lib_bsd_getgroups" = x
""yes; then :
26792 GETGROUPS_LIB
=-lbsd
26797 # Run the program to test the functionality of the system-supplied
26798 # getgroups function only if there is such a function.
26799 if test $ac_cv_func_getgroups = yes; then
26800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getgroups" >&5
26801 $as_echo_n "checking for working getgroups... " >&6; }
26802 if test "${ac_cv_func_getgroups_works+set}" = set; then :
26803 $as_echo_n "(cached) " >&6
26805 if test "$cross_compiling" = yes; then :
26806 case "$host_os" in # ((
26807 # Guess yes on glibc systems.
26808 *-gnu*) ac_cv_func_getgroups_works
="guessing yes" ;;
26809 # If we don't know, assume the worst.
26810 *) ac_cv_func_getgroups_works
="guessing no" ;;
26814 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26815 /* end confdefs.h. */
26816 $ac_includes_default
26820 /* On Ultrix 4.3, getgroups (0, 0) always fails. */
26821 return getgroups (0, 0) == -1;
26827 if ac_fn_c_try_run
"$LINENO"; then :
26828 ac_cv_func_getgroups_works
=yes
26830 ac_cv_func_getgroups_works
=no
26832 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
26833 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
26838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getgroups_works" >&5
26839 $as_echo "$ac_cv_func_getgroups_works" >&6; }
26841 ac_cv_func_getgroups_works
=no
26843 case "$ac_cv_func_getgroups_works" in
26846 $as_echo "#define HAVE_GETGROUPS 1" >>confdefs.h
26853 # Solaris 9 and 10 need -lgen to get the eaccess function.
26854 # Save and restore LIBS so -lgen isn't added to it. Otherwise, *all*
26855 # programs in the package would end up linked with that potentially-shared
26856 # library, inducing unnecessary run-time overhead.
26859 gl_saved_libs
=$LIBS
26860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing eaccess" >&5
26861 $as_echo_n "checking for library containing eaccess... " >&6; }
26862 if test "${ac_cv_search_eaccess+set}" = set; then :
26863 $as_echo_n "(cached) " >&6
26865 ac_func_search_save_LIBS
=$LIBS
26866 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26867 /* end confdefs.h. */
26869 /* Override any GCC internal prototype to avoid an error.
26870 Use char because int might match the return type of a GCC
26871 builtin and then its argument prototype would still apply. */
26884 for ac_lib
in '' gen
; do
26885 if test -z "$ac_lib"; then
26886 ac_res
="none required"
26889 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
26891 if ac_fn_c_try_link
"$LINENO"; then :
26892 ac_cv_search_eaccess
=$ac_res
26894 rm -f core conftest.err conftest.
$ac_objext \
26896 if test "${ac_cv_search_eaccess+set}" = set; then :
26900 if test "${ac_cv_search_eaccess+set}" = set; then :
26903 ac_cv_search_eaccess
=no
26905 rm conftest.
$ac_ext
26906 LIBS
=$ac_func_search_save_LIBS
26908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_eaccess" >&5
26909 $as_echo "$ac_cv_search_eaccess" >&6; }
26910 ac_res
=$ac_cv_search_eaccess
26911 if test "$ac_res" != no
; then :
26912 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
26913 test "$ac_cv_search_eaccess" = "none required" ||
26914 LIB_EACCESS
=$ac_cv_search_eaccess
26917 for ac_func
in eaccess
26919 ac_fn_c_check_func
"$LINENO" "eaccess" "ac_cv_func_eaccess"
26920 if test "x$ac_cv_func_eaccess" = x
""yes; then :
26921 cat >>confdefs.h
<<_ACEOF
26922 #define HAVE_EACCESS 1
26928 LIBS
=$gl_saved_libs
26936 GNULIB_EUIDACCESS
=1
26942 gl_gnulib_enabled_euidaccess
=true
26943 if test $HAVE_EUIDACCESS = 0; then
26944 func_gl_gnulib_m4code_a9786850e999ae65a836a6041e8e5ed1
26946 func_gl_gnulib_m4code_6099e9737f757db36c47fa9d9f02e88c
26947 if test $HAVE_EUIDACCESS = 0; then
26948 func_gl_gnulib_m4code_stat
26952 func_gl_gnulib_m4code_getgroups
()
26954 if ! $gl_gnulib_enabled_getgroups; then
26960 ac_fn_c_check_func
"$LINENO" "getgroups" "ac_cv_func_getgroups"
26961 if test "x$ac_cv_func_getgroups" = x
""yes; then :
26966 # If we don't yet have getgroups, see if it's in -lbsd.
26967 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
26969 if test $ac_cv_func_getgroups = no
; then
26970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getgroups in -lbsd" >&5
26971 $as_echo_n "checking for getgroups in -lbsd... " >&6; }
26972 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then :
26973 $as_echo_n "(cached) " >&6
26975 ac_check_lib_save_LIBS
=$LIBS
26977 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26978 /* end confdefs.h. */
26980 /* Override any GCC internal prototype to avoid an error.
26981 Use char because int might match the return type of a GCC
26982 builtin and then its argument prototype would still apply. */
26990 return getgroups ();
26995 if ac_fn_c_try_link
"$LINENO"; then :
26996 ac_cv_lib_bsd_getgroups
=yes
26998 ac_cv_lib_bsd_getgroups
=no
27000 rm -f core conftest.err conftest.
$ac_objext \
27001 conftest
$ac_exeext conftest.
$ac_ext
27002 LIBS
=$ac_check_lib_save_LIBS
27004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_getgroups" >&5
27005 $as_echo "$ac_cv_lib_bsd_getgroups" >&6; }
27006 if test "x$ac_cv_lib_bsd_getgroups" = x
""yes; then :
27007 GETGROUPS_LIB
=-lbsd
27012 # Run the program to test the functionality of the system-supplied
27013 # getgroups function only if there is such a function.
27014 if test $ac_cv_func_getgroups = yes; then
27015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getgroups" >&5
27016 $as_echo_n "checking for working getgroups... " >&6; }
27017 if test "${ac_cv_func_getgroups_works+set}" = set; then :
27018 $as_echo_n "(cached) " >&6
27020 if test "$cross_compiling" = yes; then :
27021 case "$host_os" in # ((
27022 # Guess yes on glibc systems.
27023 *-gnu*) ac_cv_func_getgroups_works
="guessing yes" ;;
27024 # If we don't know, assume the worst.
27025 *) ac_cv_func_getgroups_works
="guessing no" ;;
27029 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27030 /* end confdefs.h. */
27031 $ac_includes_default
27035 /* On Ultrix 4.3, getgroups (0, 0) always fails. */
27036 return getgroups (0, 0) == -1;
27042 if ac_fn_c_try_run
"$LINENO"; then :
27043 ac_cv_func_getgroups_works
=yes
27045 ac_cv_func_getgroups_works
=no
27047 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
27048 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
27053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getgroups_works" >&5
27054 $as_echo "$ac_cv_func_getgroups_works" >&6; }
27056 ac_cv_func_getgroups_works
=no
27058 case "$ac_cv_func_getgroups_works" in
27061 $as_echo "#define HAVE_GETGROUPS 1" >>confdefs.h
27067 if test $ac_cv_func_getgroups != yes; then
27070 if test "$ac_cv_type_getgroups" != gid_t \
27071 ||
{ case "$ac_cv_func_getgroups_works" in
27076 REPLACE_GETGROUPS
=1
27078 $as_echo "#define GETGROUPS_ZERO_BUG 1" >>confdefs.h
27081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getgroups handles negative values" >&5
27082 $as_echo_n "checking whether getgroups handles negative values... " >&6; }
27083 if test "${gl_cv_func_getgroups_works+set}" = set; then :
27084 $as_echo_n "(cached) " >&6
27086 if test "$cross_compiling" = yes; then :
27088 # Guess yes on glibc systems.
27089 *-gnu*) gl_cv_func_getgroups_works
="guessing yes" ;;
27090 # If we don't know, assume the worst.
27091 *) gl_cv_func_getgroups_works
="guessing no" ;;
27095 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27096 /* end confdefs.h. */
27097 $ac_includes_default
27101 int size = getgroups (0, 0);
27102 gid_t *list = malloc (size * sizeof *list);
27103 return getgroups (-1, list) != -1;
27108 if ac_fn_c_try_run
"$LINENO"; then :
27109 gl_cv_func_getgroups_works
=yes
27111 gl_cv_func_getgroups_works
=no
27113 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
27114 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
27118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getgroups_works" >&5
27119 $as_echo "$gl_cv_func_getgroups_works" >&6; }
27120 case "$gl_cv_func_getgroups_works" in
27122 *) REPLACE_GETGROUPS
=1 ;;
27126 test -n "$GETGROUPS_LIB" && LIBS
="$GETGROUPS_LIB $LIBS"
27128 if test $HAVE_GETGROUPS = 0 ||
test $REPLACE_GETGROUPS = 1; then
27137 gl_LIBOBJS
="$gl_LIBOBJS getgroups.$ac_objext"
27151 gl_gnulib_enabled_getgroups
=true
27154 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36
()
27156 if ! $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
27159 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36
=true
27162 func_gl_gnulib_m4code_a9786850e999ae65a836a6041e8e5ed1
()
27164 if ! $gl_gnulib_enabled_a9786850e999ae65a836a6041e8e5ed1; then
27170 ac_fn_c_check_func
"$LINENO" "group_member" "ac_cv_func_group_member"
27171 if test "x$ac_cv_func_group_member" = x
""yes; then :
27175 HAVE_GROUP_MEMBER
=0
27180 if test $HAVE_GROUP_MEMBER = 0; then
27189 gl_LIBOBJS
="$gl_LIBOBJS group-member.$ac_objext"
27200 GNULIB_GROUP_MEMBER
=1
27206 gl_gnulib_enabled_a9786850e999ae65a836a6041e8e5ed1
=true
27207 if test $HAVE_GROUP_MEMBER = 0; then
27208 func_gl_gnulib_m4code_getgroups
27210 if test $HAVE_GROUP_MEMBER = 0; then
27211 func_gl_gnulib_m4code_682e609604ccaac6be382e4ee3a4eaec
27215 func_gl_gnulib_m4code_03e0aaad4cb89ca757653bd367a6ccb7
()
27217 if ! $gl_gnulib_enabled_03e0aaad4cb89ca757653bd367a6ccb7; then
27218 gl_gnulib_enabled_03e0aaad4cb89ca757653bd367a6ccb7
=true
27221 func_gl_gnulib_m4code_pathmax
()
27223 if ! $gl_gnulib_enabled_pathmax; then
27227 gl_gnulib_enabled_pathmax
=true
27230 func_gl_gnulib_m4code_6099e9737f757db36c47fa9d9f02e88c
()
27232 if ! $gl_gnulib_enabled_6099e9737f757db36c47fa9d9f02e88c; then
27233 gl_gnulib_enabled_6099e9737f757db36c47fa9d9f02e88c
=true
27236 func_gl_gnulib_m4code_stat
()
27238 if ! $gl_gnulib_enabled_stat; then
27242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
27243 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
27244 if test "${gl_cv_func_stat_dir_slash+set}" = set; then :
27245 $as_echo_n "(cached) " >&6
27247 if test "$cross_compiling" = yes; then :
27249 mingw
*) gl_cv_func_stat_dir_slash
="guessing no";;
27250 *) gl_cv_func_stat_dir_slash
="guessing yes";;
27253 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27254 /* end confdefs.h. */
27255 #include <sys/stat.h>
27260 struct stat st; return stat (".", &st) != stat ("./", &st);
27265 if ac_fn_c_try_run
"$LINENO"; then :
27266 gl_cv_func_stat_dir_slash
=yes
27268 gl_cv_func_stat_dir_slash
=no
27270 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
27271 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
27275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
27276 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
27277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
27278 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
27279 if test "${gl_cv_func_stat_file_slash+set}" = set; then :
27280 $as_echo_n "(cached) " >&6
27283 # Assume that if we have lstat, we can also check symlinks.
27284 if test $ac_cv_func_lstat = yes; then
27285 ln -s conftest.tmp conftest.lnk
27287 if test "$cross_compiling" = yes; then :
27289 # Guess yes on glibc systems.
27290 *-gnu*) gl_cv_func_stat_file_slash
="guessing yes" ;;
27291 # If we don't know, assume the worst.
27292 *) gl_cv_func_stat_file_slash
="guessing no" ;;
27296 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27297 /* end confdefs.h. */
27298 #include <sys/stat.h>
27305 if (!stat ("conftest.tmp/", &st))
27308 if (!stat ("conftest.lnk/", &st))
27317 if ac_fn_c_try_run
"$LINENO"; then :
27318 gl_cv_func_stat_file_slash
=yes
27320 gl_cv_func_stat_file_slash
=no
27322 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
27323 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
27326 rm -f conftest.tmp conftest.lnk
27328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
27329 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
27330 case $gl_cv_func_stat_dir_slash in
27331 *no
) REPLACE_STAT
=1
27333 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
27336 case $gl_cv_func_stat_file_slash in
27337 *no
) REPLACE_STAT
=1
27339 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
27343 if test $REPLACE_STAT = 1; then
27352 gl_LIBOBJS
="$gl_LIBOBJS stat.$ac_objext"
27367 gl_gnulib_enabled_stat
=true
27368 if test $REPLACE_STAT = 1; then
27369 func_gl_gnulib_m4code_dosname
27371 if test $REPLACE_STAT = 1; then
27372 func_gl_gnulib_m4code_pathmax
27374 if test $REPLACE_STAT = 1; then
27375 func_gl_gnulib_m4code_verify
27379 func_gl_gnulib_m4code_strtoll
()
27381 if ! $gl_gnulib_enabled_strtoll; then
27385 if test "$ac_cv_type_long_long_int" = yes; then
27386 for ac_func
in strtoll
27388 ac_fn_c_check_func
"$LINENO" "strtoll" "ac_cv_func_strtoll"
27389 if test "x$ac_cv_func_strtoll" = x
""yes; then :
27390 cat >>confdefs.h
<<_ACEOF
27391 #define HAVE_STRTOLL 1
27397 if test $ac_cv_func_strtoll = no
; then
27402 if test $HAVE_STRTOLL = 0; then
27411 gl_LIBOBJS
="$gl_LIBOBJS strtoll.$ac_objext"
27428 gl_gnulib_enabled_strtoll
=true
27431 func_gl_gnulib_m4code_strtoull
()
27433 if ! $gl_gnulib_enabled_strtoull; then
27437 if test "$ac_cv_type_unsigned_long_long_int" = yes; then
27438 for ac_func
in strtoull
27440 ac_fn_c_check_func
"$LINENO" "strtoull" "ac_cv_func_strtoull"
27441 if test "x$ac_cv_func_strtoull" = x
""yes; then :
27442 cat >>confdefs.h
<<_ACEOF
27443 #define HAVE_STRTOULL 1
27449 if test $ac_cv_func_strtoull = no
; then
27454 if test $HAVE_STRTOULL = 0; then
27463 gl_LIBOBJS
="$gl_LIBOBJS strtoull.$ac_objext"
27480 gl_gnulib_enabled_strtoull
=true
27483 func_gl_gnulib_m4code_verify
()
27485 if ! $gl_gnulib_enabled_verify; then
27486 gl_gnulib_enabled_verify
=true
27489 func_gl_gnulib_m4code_682e609604ccaac6be382e4ee3a4eaec
()
27491 if ! $gl_gnulib_enabled_682e609604ccaac6be382e4ee3a4eaec; then
27492 gl_gnulib_enabled_682e609604ccaac6be382e4ee3a4eaec
=true
27495 if test $HAVE_FACCESSAT = 0; then
27496 func_gl_gnulib_m4code_260941c0e5dc67ec9e87d1fb321c300b
27498 if test $HAVE_FACCESSAT = 0; then
27499 func_gl_gnulib_m4code_dosname
27501 if test $HAVE_FACCESSAT = 0; then
27502 func_gl_gnulib_m4code_euidaccess
27504 if test $HAVE_FACCESSAT = 0; then
27505 func_gl_gnulib_m4code_03e0aaad4cb89ca757653bd367a6ccb7
27507 if test $HAVE_FDOPENDIR = 0; then
27508 func_gl_gnulib_m4code_260941c0e5dc67ec9e87d1fb321c300b
27510 if test $HAVE_FSTATAT = 0 ||
test $REPLACE_FSTATAT = 1; then
27511 func_gl_gnulib_m4code_260941c0e5dc67ec9e87d1fb321c300b
27513 if test $HAVE_FSTATAT = 0 ||
test $REPLACE_FSTATAT = 1; then
27514 func_gl_gnulib_m4code_dosname
27516 if test $HAVE_FSTATAT = 0 ||
test $REPLACE_FSTATAT = 1; then
27517 func_gl_gnulib_m4code_03e0aaad4cb89ca757653bd367a6ccb7
27519 if test $REPLACE_GETOPT = 1; then
27520 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36
27522 if test $REPLACE_LSTAT = 1; then
27523 func_gl_gnulib_m4code_dosname
27525 if test $REPLACE_LSTAT = 1; then
27526 func_gl_gnulib_m4code_stat
27528 if test $HAVE_READLINK = 0 ||
test $REPLACE_READLINK = 1; then
27529 func_gl_gnulib_m4code_stat
27531 if test $HAVE_READLINKAT = 0; then
27532 func_gl_gnulib_m4code_260941c0e5dc67ec9e87d1fb321c300b
27534 if test $HAVE_READLINKAT = 0; then
27535 func_gl_gnulib_m4code_dosname
27537 if test $HAVE_READLINKAT = 0; then
27538 func_gl_gnulib_m4code_03e0aaad4cb89ca757653bd367a6ccb7
27540 if { test $HAVE_STRTOIMAX = 0 ||
test $REPLACE_STRTOIMAX = 1; } && test $ac_cv_type_long_long_int = yes; then
27541 func_gl_gnulib_m4code_strtoll
27543 if test $HAVE_STRTOIMAX = 0 ||
test $REPLACE_STRTOIMAX = 1; then
27544 func_gl_gnulib_m4code_verify
27546 if test $ac_cv_func_strtoumax = no
&& test $ac_cv_type_unsigned_long_long_int = yes; then
27547 func_gl_gnulib_m4code_strtoull
27549 if test $ac_cv_func_strtoumax = no
; then
27550 func_gl_gnulib_m4code_verify
27553 if $gl_gnulib_enabled_260941c0e5dc67ec9e87d1fb321c300b; then
27554 gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_TRUE
=
27555 gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_FALSE
='#'
27557 gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_TRUE
='#'
27558 gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_FALSE
=
27561 if $gl_gnulib_enabled_dosname; then
27562 gl_GNULIB_ENABLED_dosname_TRUE
=
27563 gl_GNULIB_ENABLED_dosname_FALSE
='#'
27565 gl_GNULIB_ENABLED_dosname_TRUE
='#'
27566 gl_GNULIB_ENABLED_dosname_FALSE
=
27569 if $gl_gnulib_enabled_euidaccess; then
27570 gl_GNULIB_ENABLED_euidaccess_TRUE
=
27571 gl_GNULIB_ENABLED_euidaccess_FALSE
='#'
27573 gl_GNULIB_ENABLED_euidaccess_TRUE
='#'
27574 gl_GNULIB_ENABLED_euidaccess_FALSE
=
27577 if $gl_gnulib_enabled_getgroups; then
27578 gl_GNULIB_ENABLED_getgroups_TRUE
=
27579 gl_GNULIB_ENABLED_getgroups_FALSE
='#'
27581 gl_GNULIB_ENABLED_getgroups_TRUE
='#'
27582 gl_GNULIB_ENABLED_getgroups_FALSE
=
27585 if $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
27586 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE
=
27587 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE
='#'
27589 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE
='#'
27590 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE
=
27593 if $gl_gnulib_enabled_a9786850e999ae65a836a6041e8e5ed1; then
27594 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_TRUE
=
27595 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_FALSE
='#'
27597 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_TRUE
='#'
27598 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_FALSE
=
27601 if $gl_gnulib_enabled_03e0aaad4cb89ca757653bd367a6ccb7; then
27602 gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_TRUE
=
27603 gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_FALSE
='#'
27605 gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_TRUE
='#'
27606 gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_FALSE
=
27609 if $gl_gnulib_enabled_pathmax; then
27610 gl_GNULIB_ENABLED_pathmax_TRUE
=
27611 gl_GNULIB_ENABLED_pathmax_FALSE
='#'
27613 gl_GNULIB_ENABLED_pathmax_TRUE
='#'
27614 gl_GNULIB_ENABLED_pathmax_FALSE
=
27617 if $gl_gnulib_enabled_6099e9737f757db36c47fa9d9f02e88c; then
27618 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_TRUE
=
27619 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_FALSE
='#'
27621 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_TRUE
='#'
27622 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_FALSE
=
27625 if $gl_gnulib_enabled_stat; then
27626 gl_GNULIB_ENABLED_stat_TRUE
=
27627 gl_GNULIB_ENABLED_stat_FALSE
='#'
27629 gl_GNULIB_ENABLED_stat_TRUE
='#'
27630 gl_GNULIB_ENABLED_stat_FALSE
=
27633 if $gl_gnulib_enabled_strtoll; then
27634 gl_GNULIB_ENABLED_strtoll_TRUE
=
27635 gl_GNULIB_ENABLED_strtoll_FALSE
='#'
27637 gl_GNULIB_ENABLED_strtoll_TRUE
='#'
27638 gl_GNULIB_ENABLED_strtoll_FALSE
=
27641 if $gl_gnulib_enabled_strtoull; then
27642 gl_GNULIB_ENABLED_strtoull_TRUE
=
27643 gl_GNULIB_ENABLED_strtoull_FALSE
='#'
27645 gl_GNULIB_ENABLED_strtoull_TRUE
='#'
27646 gl_GNULIB_ENABLED_strtoull_FALSE
=
27649 if $gl_gnulib_enabled_verify; then
27650 gl_GNULIB_ENABLED_verify_TRUE
=
27651 gl_GNULIB_ENABLED_verify_FALSE
='#'
27653 gl_GNULIB_ENABLED_verify_TRUE
='#'
27654 gl_GNULIB_ENABLED_verify_FALSE
=
27657 if $gl_gnulib_enabled_682e609604ccaac6be382e4ee3a4eaec; then
27658 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_TRUE
=
27659 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_FALSE
='#'
27661 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_TRUE
='#'
27662 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_FALSE
=
27665 # End of code from modules
27686 gl_source_base
='tests'
27687 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
27689 gl_module_indicator_condition
=$gltests_WITNESS
27700 LIBGNU_LIBDEPS
="$gl_libdeps"
27702 LIBGNU_LTLIBDEPS
="$gl_ltlibdeps"
27705 CFLAGS
=$SAVE_CFLAGS
27709 aix4-2
) LD_SWITCH_SYSTEM_TEMACS
="-Wl,-bnodelcsect" ;;
27712 ## The -headerpad option tells ld (see man page) to leave room at the
27713 ## end of the header for adding load commands. Needed for dumping.
27714 ## 0x690 is the total size of 30 segment load commands (at 56
27715 ## each); under Cocoa 31 commands are required.
27716 if test "$HAVE_NS" = "yes"; then
27717 libs_nsgui
="-framework AppKit"
27718 if test "$NS_IMPL_COCOA" = "yes"; then
27719 libs_nsgui
="$libs_nsgui -framework IOKit"
27721 headerpad_extra
=6C8
27724 headerpad_extra
=690
27726 LD_SWITCH_SYSTEM_TEMACS
="-fno-pie -prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
27728 ## This is here because src/Makefile.in did some extra fiddling around
27729 ## with LD_SWITCH_SYSTEM. It seems cleaner to put this in
27730 ## LD_SWITCH_SYSTEM_TEMACS instead,
27731 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
27732 LD_SWITCH_SYSTEM_TEMACS
="-X $LD_SWITCH_SYSTEM_TEMACS"
27735 ## LD_SWITCH_X_SITE_RPATH is a -rpath option saying where to
27736 ## find X at run-time.
27737 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at the
27738 ## point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_RPATH
27739 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
27740 ## had different values in configure (in ac_link) and src/Makefile.in.
27741 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
27742 gnu
*) LD_SWITCH_SYSTEM_TEMACS
="\$(LD_SWITCH_X_SITE_RPATH)" ;;
27744 openbsd
) LD_SWITCH_SYSTEM_TEMACS
='-nopie' ;;
27746 *) LD_SWITCH_SYSTEM_TEMACS
= ;;
27749 if test x
$ac_enable_profiling != x
; then
27751 *freebsd | gnu-linux
) ;;
27752 *) LD_SWITCH_SYSTEM_TEMACS
="$LD_SWITCH_SYSTEM_TEMACS -pg" ;;
27758 ## Common for all window systems
27759 if test "$window_system" != "none"; then
27761 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
27763 WINDOW_SYSTEM_OBJ
="fontset.o fringe.o image.o"
27770 #### Report on what we decided to do.
27771 #### Report GTK as a toolkit, even if it doesn't use Xt.
27772 #### It makes printing result more understandable as using GTK sets
27773 #### toolkit_scroll_bars to yes by default.
27774 if test "${HAVE_GTK}" = "yes"; then
27775 USE_X_TOOLKIT
="$USE_GTK_TOOLKIT"
27779 Configured for \`${canonical}'.
27781 Where should the build process find the source code? ${srcdir}
27782 What compiler should emacs be built with? ${CC} ${CFLAGS}
27783 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
27784 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
27785 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
27786 What window system should Emacs use? ${window_system}
27787 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
27789 if test -n "${x_includes}"; then
27790 echo " Where do we find X Windows header files? ${x_includes}"
27792 echo " Where do we find X Windows header files? Standard dirs"
27794 if test -n "${x_libraries}"; then
27795 echo " Where do we find X Windows libraries? ${x_libraries}"
27797 echo " Where do we find X Windows libraries? Standard dirs"
27800 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
27801 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
27802 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
27803 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
27804 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
27805 echo " Does Emacs use -lpng? ${HAVE_PNG}"
27806 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
27807 echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
27809 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
27810 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
27811 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
27812 echo " Does Emacs use GSettings? ${HAVE_GSETTINGS}"
27813 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
27814 echo " Does Emacs use -lgnutls? ${HAVE_GNUTLS}"
27815 echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}"
27817 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
27818 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
27819 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
27820 echo " Does Emacs use -lxft? ${HAVE_XFT}"
27822 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
27825 if test -n "${EMACSDATA}"; then
27826 echo " Environment variable EMACSDATA set to: $EMACSDATA"
27828 if test -n "${EMACSDOC}"; then
27829 echo " Environment variable EMACSDOC set to: $EMACSDOC"
27834 if test "$HAVE_NS" = "yes"; then
27836 echo "You must run \"${MAKE-make} install\" in order to test the built application.
27837 The installed application will go to nextstep/Emacs.app and can be
27838 run or moved from there."
27839 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
27840 echo "The application will be fully self-contained."
27842 echo "The lisp resources for the application will be installed under ${prefix}.
27843 You may need to run \"${MAKE-make} install\" with sudo. The application will fail
27844 to run if these resources are not installed."
27849 if test "${opsys}" = "cygwin"; then
27851 1.5.
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: building Emacs on Cygwin 1.5 is not supported." >&5
27852 $as_echo "$as_me: WARNING: building Emacs on Cygwin 1.5 is not supported." >&2;}
27858 # Remove any trailing slashes in these variables.
27859 test "${prefix}" != NONE
&&
27860 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
27861 test "${exec_prefix}" != NONE
&&
27862 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
27864 if test "$HAVE_NS" = "yes"; then
27865 if test "$NS_IMPL_GNUSTEP" = yes; then
27866 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"
27869 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"
27874 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"
27876 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"
27879 opt_makefile
=test
/automated
/Makefile
27881 if test -f "$srcdir/$opt_makefile.in"; then
27882 SUBDIR_MAKEFILES
="$SUBDIR_MAKEFILES $opt_makefile"
27883 ac_config_files
="$ac_config_files test/automated/Makefile"
27888 opt_makefile
=admin
/unidata
/Makefile
27890 if test -f "$srcdir/$opt_makefile.in"; then
27891 SUBDIR_MAKEFILES
="$SUBDIR_MAKEFILES $opt_makefile"
27892 ac_config_files
="$ac_config_files admin/unidata/Makefile"
27897 SUBDIR_MAKEFILES_IN
=`echo " ${SUBDIR_MAKEFILES}" | sed -e 's| | $(srcdir)/|g' -e 's|Makefile|Makefile.in|g'`
27901 ac_config_commands
="$ac_config_commands mkdirs"
27904 ac_config_commands
="$ac_config_commands epaths"
27907 ac_config_commands
="$ac_config_commands gdbinit"
27910 cat >confcache
<<\_ACEOF
27911 # This file is a shell script that caches the results of configure
27912 # tests run on this system so they can be shared between configure
27913 # scripts and configure runs, see configure's option --config-cache.
27914 # It is not useful on other systems. If it contains results you don't
27915 # want to keep, you may remove or edit it.
27917 # config.status only pays attention to the cache file if you give it
27918 # the --recheck option to rerun configure.
27920 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27921 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27922 # following values.
27926 # The following way of writing the cache mishandles newlines in values,
27927 # but we know of no workaround that is simple, portable, and efficient.
27928 # So, we kill variables containing newlines.
27929 # Ultrix sh set writes to stderr and can't be redirected directly,
27930 # and sets the high bit in the cache file unless we assign to the vars.
27932 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27933 eval ac_val
=\$
$ac_var
27937 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
27938 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
27941 _ | IFS | as_nl
) ;; #(
27942 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
27943 *) { eval $ac_var=; unset $ac_var;} ;;
27949 case $as_nl`(ac_space=' '; set) 2>&1` in #(
27950 *${as_nl}ac_space
=\
*)
27951 # `set' does not quote correctly, so add quotes: double-quote
27952 # substitution turns \\\\ into \\, and sed turns \\ into \.
27955 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27958 # `set' quotes correctly as required by POSIX, so do not add quotes.
27959 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27968 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27970 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27972 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
27973 if test -w "$cache_file"; then
27974 test "x$cache_file" != "x/dev/null" &&
27975 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
27976 $as_echo "$as_me: updating cache $cache_file" >&6;}
27977 cat confcache
>$cache_file
27979 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
27980 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27985 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
27986 # Let make expand exec_prefix.
27987 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
27989 DEFS
=-DHAVE_CONFIG_H
27993 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
27994 # 1. Remove the extension, and $U if already installed.
27995 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
27996 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
27997 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
27998 # will be set to the directory where LIBOBJS objects are built.
27999 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
28000 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
28002 LIBOBJS
=$ac_libobjs
28004 LTLIBOBJS
=$ac_ltlibobjs
28007 if test -n "$EXEEXT"; then
28009 am__EXEEXT_FALSE
='#'
28011 am__EXEEXT_TRUE
='#'
28015 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
28016 as_fn_error
"conditional \"AMDEP\" was never defined.
28017 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28019 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
28020 as_fn_error
"conditional \"am__fastdepCC\" was never defined.
28021 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28023 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
28024 as_fn_error
"conditional \"GL_COND_LIBTOOL\" was never defined.
28025 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28027 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
28028 as_fn_error
"conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
28029 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28032 if test -z "${GL_GENERATE_ERRNO_H_TRUE}" && test -z "${GL_GENERATE_ERRNO_H_FALSE}"; then
28033 as_fn_error
"conditional \"GL_GENERATE_ERRNO_H\" was never defined.
28034 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28036 if test -z "${GL_GENERATE_EXECINFO_H_TRUE}" && test -z "${GL_GENERATE_EXECINFO_H_FALSE}"; then
28037 as_fn_error
"conditional \"GL_GENERATE_EXECINFO_H\" was never defined.
28038 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28040 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
28041 as_fn_error
"conditional \"GL_GENERATE_STDINT_H\" was never defined.
28042 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28044 if test -z "${GL_GENERATE_STDALIGN_H_TRUE}" && test -z "${GL_GENERATE_STDALIGN_H_FALSE}"; then
28045 as_fn_error
"conditional \"GL_GENERATE_STDALIGN_H\" was never defined.
28046 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28048 if test -z "${GL_GENERATE_STDARG_H_TRUE}" && test -z "${GL_GENERATE_STDARG_H_FALSE}"; then
28049 as_fn_error
"conditional \"GL_GENERATE_STDARG_H\" was never defined.
28050 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28052 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
28053 as_fn_error
"conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
28054 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28056 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
28057 as_fn_error
"conditional \"GL_GENERATE_STDDEF_H\" was never defined.
28058 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28060 if test -z "${gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_TRUE}" && test -z "${gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_FALSE}"; then
28061 as_fn_error
"conditional \"gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b\" was never defined.
28062 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28064 if test -z "${gl_GNULIB_ENABLED_dosname_TRUE}" && test -z "${gl_GNULIB_ENABLED_dosname_FALSE}"; then
28065 as_fn_error
"conditional \"gl_GNULIB_ENABLED_dosname\" was never defined.
28066 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28068 if test -z "${gl_GNULIB_ENABLED_euidaccess_TRUE}" && test -z "${gl_GNULIB_ENABLED_euidaccess_FALSE}"; then
28069 as_fn_error
"conditional \"gl_GNULIB_ENABLED_euidaccess\" was never defined.
28070 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28072 if test -z "${gl_GNULIB_ENABLED_getgroups_TRUE}" && test -z "${gl_GNULIB_ENABLED_getgroups_FALSE}"; then
28073 as_fn_error
"conditional \"gl_GNULIB_ENABLED_getgroups\" was never defined.
28074 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28076 if test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE}" && test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE}"; then
28077 as_fn_error
"conditional \"gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36\" was never defined.
28078 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28080 if test -z "${gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_TRUE}" && test -z "${gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_FALSE}"; then
28081 as_fn_error
"conditional \"gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1\" was never defined.
28082 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28084 if test -z "${gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_TRUE}" && test -z "${gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_FALSE}"; then
28085 as_fn_error
"conditional \"gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7\" was never defined.
28086 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28088 if test -z "${gl_GNULIB_ENABLED_pathmax_TRUE}" && test -z "${gl_GNULIB_ENABLED_pathmax_FALSE}"; then
28089 as_fn_error
"conditional \"gl_GNULIB_ENABLED_pathmax\" was never defined.
28090 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28092 if test -z "${gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_TRUE}" && test -z "${gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_FALSE}"; then
28093 as_fn_error
"conditional \"gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c\" was never defined.
28094 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28096 if test -z "${gl_GNULIB_ENABLED_stat_TRUE}" && test -z "${gl_GNULIB_ENABLED_stat_FALSE}"; then
28097 as_fn_error
"conditional \"gl_GNULIB_ENABLED_stat\" was never defined.
28098 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28100 if test -z "${gl_GNULIB_ENABLED_strtoll_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoll_FALSE}"; then
28101 as_fn_error
"conditional \"gl_GNULIB_ENABLED_strtoll\" was never defined.
28102 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28104 if test -z "${gl_GNULIB_ENABLED_strtoull_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoull_FALSE}"; then
28105 as_fn_error
"conditional \"gl_GNULIB_ENABLED_strtoull\" was never defined.
28106 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28108 if test -z "${gl_GNULIB_ENABLED_verify_TRUE}" && test -z "${gl_GNULIB_ENABLED_verify_FALSE}"; then
28109 as_fn_error
"conditional \"gl_GNULIB_ENABLED_verify\" was never defined.
28110 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28112 if test -z "${gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_TRUE}" && test -z "${gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_FALSE}"; then
28113 as_fn_error
"conditional \"gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec\" was never defined.
28114 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28119 if test -n "$gl_LIBOBJS"; then
28120 # Remove the extension.
28121 sed_drop_objext
='s/\.o$//;s/\.obj$//'
28122 for i
in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
28123 gl_libobjs
="$gl_libobjs $i.$ac_objext"
28124 gl_ltlibobjs
="$gl_ltlibobjs $i.lo"
28127 gl_LIBOBJS
=$gl_libobjs
28129 gl_LTLIBOBJS
=$gl_ltlibobjs
28135 if test -n "$gltests_LIBOBJS"; then
28136 # Remove the extension.
28137 sed_drop_objext
='s/\.o$//;s/\.obj$//'
28138 for i
in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
28139 gltests_libobjs
="$gltests_libobjs $i.$ac_objext"
28140 gltests_ltlibobjs
="$gltests_ltlibobjs $i.lo"
28143 gltests_LIBOBJS
=$gltests_libobjs
28145 gltests_LTLIBOBJS
=$gltests_ltlibobjs
28149 : ${CONFIG_STATUS=./config.status}
28151 ac_clean_files_save
=$ac_clean_files
28152 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
28153 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
28154 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
28156 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
28158 # Generated by $as_me.
28159 # Run this file to recreate the current configuration.
28160 # Compiler output produced by configure, useful for debugging
28161 # configure, is in config.log if it exists.
28164 ac_cs_recheck=false
28167 SHELL=\${CONFIG_SHELL-$SHELL}
28170 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
28171 ## -------------------- ##
28172 ## M4sh Initialization. ##
28173 ## -------------------- ##
28175 # Be more Bourne compatible
28176 DUALCASE
=1; export DUALCASE
# for MKS sh
28177 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
28180 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
28181 # is contrary to our usage. Disable this feature.
28182 alias -g '${1+"$@"}'='"$@"'
28183 setopt NO_GLOB_SUBST
28185 case `(set -o) 2>/dev/null` in #(
28197 # Printing a long string crashes Solaris 7 /usr/bin/printf.
28198 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
28199 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
28200 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
28201 # Prefer a ksh shell builtin over an external printf program on Solaris,
28202 # but without wasting forks for bash or zsh.
28203 if test -z "$BASH_VERSION$ZSH_VERSION" \
28204 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
28205 as_echo='print
-r --'
28206 as_echo_n='print
-rn --'
28207 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
28208 as_echo='printf %s
\n'
28209 as_echo_n='printf %s
'
28211 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
28212 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
28213 as_echo_n='/usr
/ucb
/echo -n'
28215 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
28216 as_echo_n_body='eval
28220 expr "X$arg" : "X\\(.*\\)$as_nl";
28221 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
28223 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
28225 export as_echo_n_body
28226 as_echo_n='sh
-c $as_echo_n_body as_echo
'
28228 export as_echo_body
28229 as_echo='sh
-c $as_echo_body as_echo
'
28232 # The user is always right.
28233 if test "${PATH_SEPARATOR+set}" != set; then
28235 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
28236 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
28243 # We need space, tab and new line, in precisely that order. Quoting is
28244 # there to prevent editors from complaining about space-tab.
28245 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
28246 # splitting by setting IFS to empty value.)
28249 # Find who we are. Look in the path if we contain no directory separator.
28251 *[\\/]* ) as_myself=$0 ;;
28252 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28253 for as_dir in $PATH
28256 test -z "$as_dir" && as_dir=.
28257 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
28263 # We did not find ourselves, most probably we were run as `sh COMMAND'
28264 # in which case we are not to be found in the path.
28265 if test "x$as_myself" = x
; then
28268 if test ! -f "$as_myself"; then
28269 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
28273 # Unset variables that we do not need and which cause bugs (e.g. in
28274 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
28275 # suppresses any "Segmentation fault" message there. '((' could
28276 # trigger a bug in pdksh 5.2.14.
28277 for as_var
in BASH_ENV ENV MAIL MAILPATH
28278 do eval test x\
${$as_var+set} = xset \
28279 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
28292 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
28295 # as_fn_error ERROR [LINENO LOG_FD]
28296 # ---------------------------------
28297 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
28298 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
28299 # script with status $?, using 1 if that was 0.
28302 as_status
=$?
; test $as_status -eq 0 && as_status
=1
28304 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
28305 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
28307 $as_echo "$as_me: error: $1" >&2
28308 as_fn_exit
$as_status
28312 # as_fn_set_status STATUS
28313 # -----------------------
28314 # Set $? to STATUS, without forking.
28315 as_fn_set_status
()
28318 } # as_fn_set_status
28320 # as_fn_exit STATUS
28321 # -----------------
28322 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
28326 as_fn_set_status
$1
28332 # Portably unset VAR.
28335 { eval $1=; unset $1;}
28337 as_unset
=as_fn_unset
28338 # as_fn_append VAR VALUE
28339 # ----------------------
28340 # Append the text in VALUE to the end of the definition contained in VAR. Take
28341 # advantage of any shell optimizations that allow amortized linear growth over
28342 # repeated appends, instead of the typical quadratic growth present in naive
28344 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
28345 eval 'as_fn_append ()
28356 # as_fn_arith ARG...
28357 # ------------------
28358 # Perform arithmetic evaluation on the ARGs, and store the result in the
28359 # global $as_val. Take advantage of shells that can avoid forks. The arguments
28360 # must be portable across $(()) and expr.
28361 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
28362 eval 'as_fn_arith ()
28369 as_val
=`expr "$@" || test $? -eq 1`
28374 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
28375 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
28381 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
28382 as_basename
=basename
28387 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
28393 as_me
=`$as_basename -- "$0" ||
28394 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
28395 X"$0" : 'X\(//\)$' \| \
28396 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
28398 sed '/^.*\/\([^/][^/]*\)\/*$/{
28412 # Avoid depending upon Character Ranges.
28413 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
28414 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
28415 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
28416 as_cr_digits
='0123456789'
28417 as_cr_alnum
=$as_cr_Letters$as_cr_digits
28419 ECHO_C
= ECHO_N
= ECHO_T
=
28420 case `echo -n x` in #(((((
28422 case `echo 'xy\c'` in
28423 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
28425 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
28432 rm -f conf$$ conf$$.exe conf$$.
file
28433 if test -d conf$$.dir
; then
28434 rm -f conf$$.dir
/conf$$.
file
28437 mkdir conf$$.dir
2>/dev
/null
28439 if (echo >conf$$.
file) 2>/dev
/null
; then
28440 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
28442 # ... but there are two gotchas:
28443 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
28444 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
28445 # In both cases, we have to default to `cp -p'.
28446 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
28448 elif ln conf$$.
file conf$$
2>/dev
/null
; then
28456 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
28457 rmdir conf$$.dir
2>/dev
/null
28462 # Create "$as_dir" as a directory, including parents if necessary.
28467 -*) as_dir
=.
/$as_dir;;
28469 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
28473 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
28474 *) as_qdir
=$as_dir;;
28476 as_dirs
="'$as_qdir' $as_dirs"
28477 as_dir
=`$as_dirname -- "$as_dir" ||
28478 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28479 X"$as_dir" : 'X\(//\)[^/]' \| \
28480 X"$as_dir" : 'X\(//\)$' \| \
28481 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
28482 $as_echo X"$as_dir" |
28483 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28487 /^X\(\/\/\)[^/].*/{
28500 test -d "$as_dir" && break
28502 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
28503 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
28507 if mkdir
-p .
2>/dev
/null
; then
28508 as_mkdir_p
='mkdir -p "$as_dir"'
28510 test -d .
/-p && rmdir .
/-p
28514 if test -x / >/dev
/null
2>&1; then
28515 as_test_x
='test -x'
28517 if ls -dL / >/dev
/null
2>&1; then
28524 if test -d "$1"; then
28530 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
28531 ???[sx]*):;;*)false;;esac;fi
28535 as_executable_p
=$as_test_x
28537 # Sed expression to map a string onto a valid CPP name.
28538 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
28540 # Sed expression to map a string onto a valid variable name.
28541 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
28545 ## ----------------------------------- ##
28546 ## Main body of $CONFIG_STATUS script. ##
28547 ## ----------------------------------- ##
28549 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
28551 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28552 # Save the log message, to keep $0 and so on meaningful, and to
28553 # report actual input values of CONFIG_FILES etc. instead of their
28554 # values after options handling.
28556 This file was extended by emacs $as_me 24.3.50, which was
28557 generated by GNU Autoconf 2.65. Invocation command line was
28559 CONFIG_FILES = $CONFIG_FILES
28560 CONFIG_HEADERS = $CONFIG_HEADERS
28561 CONFIG_LINKS = $CONFIG_LINKS
28562 CONFIG_COMMANDS = $CONFIG_COMMANDS
28565 on `(hostname || uname -n) 2>/dev/null | sed 1q`
28570 case $ac_config_files in *"
28571 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
28574 case $ac_config_headers in *"
28575 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
28579 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28580 # Files that config.status was made for.
28581 config_files="$ac_config_files"
28582 config_headers="$ac_config_headers"
28583 config_commands="$ac_config_commands"
28587 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28589 \`$as_me' instantiates files and other configuration actions
28590 from templates according to the current configuration. Unless the files
28591 and actions are specified as TAGs, all are instantiated by default.
28593 Usage: $0 [OPTION]... [TAG]...
28595 -h, --help print this help, then exit
28596 -V, --version print version number and configuration settings, then exit
28597 --config print configuration, then exit
28598 -q, --quiet, --silent
28599 do not print progress messages
28600 -d, --debug don't remove temporary files
28601 --recheck update $as_me by reconfiguring in the same conditions
28602 --file=FILE[:TEMPLATE]
28603 instantiate the configuration file FILE
28604 --header=FILE[:TEMPLATE]
28605 instantiate the configuration header FILE
28607 Configuration files:
28610 Configuration headers:
28613 Configuration commands:
28616 Report bugs to the package provider."
28619 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28620 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
28622 emacs config.status 24.3.50
28623 configured by $0, generated by GNU Autoconf 2.65,
28624 with options \\"\$ac_cs_config\\"
28626 Copyright (C) 2009 Free Software Foundation, Inc.
28627 This config.status script is free software; the Free Software Foundation
28628 gives unlimited permission to copy, distribute and modify it."
28635 test -n "\$AWK" || AWK=awk
28638 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28639 # The default lists apply if the user does not specify any file.
28645 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
28646 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
28657 # Handling of the options.
28658 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
28660 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
28661 $as_echo "$ac_cs_version"; exit ;;
28662 --config |
--confi |
--conf |
--con |
--co |
--c )
28663 $as_echo "$ac_cs_config"; exit ;;
28664 --debug |
--debu |
--deb |
--de |
--d |
-d )
28666 --file |
--fil |
--fi |
--f )
28669 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28671 as_fn_append CONFIG_FILES
" '$ac_optarg'"
28672 ac_need_defaults
=false
;;
28673 --header |
--heade |
--head |
--hea )
28676 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28678 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
28679 ac_need_defaults
=false
;;
28681 # Conflict between --help and --header
28682 as_fn_error
"ambiguous option: \`$1'
28683 Try \`$0 --help' for more information.";;
28684 --help |
--hel |
-h )
28685 $as_echo "$ac_cs_usage"; exit ;;
28686 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
28687 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
28690 # This is an error.
28691 -*) as_fn_error
"unrecognized option: \`$1'
28692 Try \`$0 --help' for more information." ;;
28694 *) as_fn_append ac_config_targets
" $1"
28695 ac_need_defaults
=false
;;
28701 ac_configure_extra_args
=
28703 if $ac_cs_silent; then
28705 ac_configure_extra_args
="$ac_configure_extra_args --silent"
28709 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28710 if \$ac_cs_recheck; then
28711 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
28713 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
28714 CONFIG_SHELL='$SHELL'
28715 export CONFIG_SHELL
28720 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28724 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
28725 ## Running $as_me. ##
28731 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28735 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
28736 GCC="$GCC" CPPFLAGS="$CPPFLAGS"
28740 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28742 # Handling of arguments.
28743 for ac_config_target
in $ac_config_targets
28745 case $ac_config_target in
28746 "src/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
28747 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
28748 "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" ;;
28749 "nextstep/GNUstep/Emacs.base/Resources/Emacs.desktop") CONFIG_FILES
="$CONFIG_FILES nextstep/GNUstep/Emacs.base/Resources/Emacs.desktop:nextstep/templates/Emacs.desktop.in" ;;
28750 "nextstep/Cocoa/Emacs.base/Contents/Info.plist") CONFIG_FILES
="$CONFIG_FILES nextstep/Cocoa/Emacs.base/Contents/Info.plist:nextstep/templates/Info.plist.in" ;;
28751 "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" ;;
28752 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
28753 "lib/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/Makefile" ;;
28754 "lib-src/Makefile") CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile" ;;
28755 "oldXMenu/Makefile") CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
28756 "doc/emacs/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/emacs/Makefile" ;;
28757 "doc/misc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/misc/Makefile" ;;
28758 "doc/lispintro/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispintro/Makefile" ;;
28759 "doc/lispref/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispref/Makefile" ;;
28760 "src/Makefile") CONFIG_FILES
="$CONFIG_FILES src/Makefile" ;;
28761 "lwlib/Makefile") CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
28762 "lisp/Makefile") CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
28763 "leim/Makefile") CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
28764 "nextstep/Makefile") CONFIG_FILES
="$CONFIG_FILES nextstep/Makefile" ;;
28765 "test/automated/Makefile") CONFIG_FILES
="$CONFIG_FILES test/automated/Makefile" ;;
28766 "admin/unidata/Makefile") CONFIG_FILES
="$CONFIG_FILES admin/unidata/Makefile" ;;
28767 "mkdirs") CONFIG_COMMANDS
="$CONFIG_COMMANDS mkdirs" ;;
28768 "epaths") CONFIG_COMMANDS
="$CONFIG_COMMANDS epaths" ;;
28769 "gdbinit") CONFIG_COMMANDS
="$CONFIG_COMMANDS gdbinit" ;;
28771 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
28776 # If the user did not use the arguments to specify the items to instantiate,
28777 # then the envvar interface is used. Set only those that are not.
28778 # We use the long form for the default assignment because of an extremely
28779 # bizarre bug on SunOS 4.1.3.
28780 if $ac_need_defaults; then
28781 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
28782 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
28783 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
28786 # Have a temporary directory for convenience. Make it in the build tree
28787 # simply because there is no reason against having it here, and in addition,
28788 # creating and moving files from /tmp can sometimes cause problems.
28789 # Hook for its removal unless debugging.
28790 # Note that there is a small window in which the directory will not be cleaned:
28791 # after its creation but before its name has been assigned to `$tmp'.
28795 trap 'exit_status=$?
28796 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
28798 trap 'as_fn_exit 1' 1 2 13 15
28800 # Create a (secure) tmp directory for tmp files.
28803 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
28804 test -n "$tmp" && test -d "$tmp"
28807 tmp
=.
/conf$$
-$RANDOM
28808 (umask 077 && mkdir
"$tmp")
28809 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
28811 # Set up the scripts for CONFIG_FILES section.
28812 # No need to generate them if there are no CONFIG_FILES.
28813 # This happens for instance with `./config.status config.h'.
28814 if test -n "$CONFIG_FILES"; then
28816 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
28817 ac_cs_awk_getline
=:
28818 ac_cs_awk_pipe_init
=
28819 ac_cs_awk_read_file
='
28820 while ((getline aline < (F[key])) > 0)
28823 ac_cs_awk_pipe_fini
=
28825 ac_cs_awk_getline
=false
28826 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
28827 ac_cs_awk_read_file
='
28829 print "cat " F[key] " &&"
28830 '$ac_cs_awk_pipe_init
28831 # The final `:' finishes the AND list.
28832 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
28834 ac_cr
=`echo X | tr X '\015'`
28835 # On cygwin, bash can eat \r inside `` if the user requested igncr.
28836 # But we know of no other shell where ac_cr would be empty at this
28837 # point, so we can use a bashism as a fallback.
28838 if test "x$ac_cr" = x
; then
28839 eval ac_cr
=\$
\'\\r
\'
28841 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
28842 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
28845 ac_cs_awk_cr
=$ac_cr
28848 echo 'BEGIN {' >"$tmp/subs1.awk" &&
28851 # Create commands to substitute file output variables.
28853 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
28854 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
28855 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
28858 } >conf$
$files.sh
&&
28859 . .
/conf$
$files.sh ||
28860 as_fn_error
"could not make $CONFIG_STATUS" "$LINENO" 5
28861 rm -f conf$
$files.sh
28864 echo "cat >conf$$subs.awk <<_ACEOF" &&
28865 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
28867 } >conf$$subs.sh ||
28868 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
28869 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
28871 for ac_last_try in false false false false false :; do
28872 . ./conf$$subs.sh ||
28873 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
28875 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
28876 if test $ac_delim_n = $ac_delim_num; then
28878 elif $ac_last_try; then
28879 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
28881 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
28884 rm -f conf$$subs.sh
28886 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28887 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
28891 s/^/S["/; s
/!.
*/"]=/
28901 s/\(.\{148\}\)..*/\1/
28903 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
28908 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
28915 s/\(.\{148\}\)..*/\1/
28917 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
28921 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
28926 ' <conf$$subs.awk | sed '
28931 ' >>$CONFIG_STATUS || ac_write_fail=1
28932 rm -f conf$$subs.awk
28933 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28935 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
28936 for (key in S) S_is_set[key] = 1
28938 \$ac_cs_awk_pipe_init
28942 nfields = split(line, field, "@
")
28944 len = length(field[1])
28945 for (i = 2; i < nfields; i++) {
28947 keylen = length(key)
28948 if (S_is_set[key]) {
28950 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
28951 len += length(value) + length(field[++i])
28956 if (nfields == 3 && !substed) {
28958 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
28959 \$ac_cs_awk_read_file
28965 \$ac_cs_awk_pipe_fini
28968 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28969 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
28970 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
28973 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
28974 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
28977 # VPATH may cause trouble with some makes, so we remove $(srcdir),
28978 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
28979 # trailing colons and then remove the whole line if VPATH becomes empty
28980 # (actually we leave an empty line to preserve line numbers).
28981 if test "x
$srcdir" = x.; then
28982 ac_vpsub='/^[ ]*VPATH[ ]*=/{
28983 s/:*\$(srcdir):*/:/
28984 s/:*\${srcdir}:*/:/
28986 s/^\([^=]*=[ ]*\):*/\1/
28992 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28993 fi # test -n "$CONFIG_FILES"
28995 # Set up the scripts for CONFIG_HEADERS section.
28996 # No need to generate them if there are no CONFIG_HEADERS.
28997 # This happens for instance with `./config.status Makefile'.
28998 if test -n "$CONFIG_HEADERS"; then
28999 cat >"$tmp/defines.
awk" <<\_ACAWK ||
29003 # Transform confdefs.h into an awk script `defines.awk', embedded as
29004 # here-document in config.status, that substitutes the proper values into
29005 # config.h.in to produce config.h.
29007 # Create a delimiter string that does not exist in confdefs.h, to ease
29008 # handling of long lines.
29010 for ac_last_try in false false :; do
29011 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
29012 if test -z "$ac_t"; then
29014 elif $ac_last_try; then
29015 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
29017 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
29021 # For the awk script, D is an array of macro values keyed by name,
29022 # likewise P contains macro parameters if any. Preserve backslash
29023 # newline sequences.
29025 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
29027 s/.\{148\}/&'"$ac_delim"'/g
29030 s/^[ ]*#[ ]*define[ ][ ]*/ /
29037 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
29039 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
29043 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
29044 D["\
1"]=" \
3\\\\\\n
"\\/p
29046 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
29051 s/.\{148\}/&'"$ac_delim"'/g
29056 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
29059 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
29061 ' <confdefs.h | sed '
29062 s/'"$ac_delim"'/"\\\
29063 "/g' >>$CONFIG_STATUS || ac_write_fail=1
29065 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29066 for (key in D) D_is_set[key] = 1
29069 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
29071 split(line, arg, " ")
29072 if (arg[1] == "#") {
29076 defundef
= substr
(arg
[1], 2)
29079 split(mac1
, mac2
, "(") #)
29081 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
29082 if (D_is_set
[macro
]) {
29083 # Preserve the white space surrounding the "#".
29084 print prefix
"define", macro P
[macro
] D
[macro
]
29087 # Replace #undef with comments. This is necessary, for example,
29088 # in the case of _POSIX_SOURCE, which is predefined and required
29089 # on some systems where configure will not decide to define it.
29090 if (defundef
== "undef") {
29091 print
"/*", prefix defundef
, macro
, "*/"
29099 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
29100 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
29101 fi # test -n "$CONFIG_HEADERS"
29104 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
29109 :[FHLC
]) ac_mode
=$ac_tag; continue;;
29111 case $ac_mode$ac_tag in
29113 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
29114 :[FH
]-) ac_tag
=-:-;;
29115 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
29132 -) ac_f
="$tmp/stdin";;
29133 *) # Look for the file first in the build tree, then in the source tree
29134 # (if the path is not absolute). The absolute path cannot be DOS-style,
29135 # because $ac_f cannot contain `:'.
29139 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
29141 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
29143 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
29144 as_fn_append ac_file_inputs
" '$ac_f'"
29147 # Let's still pretend it is `configure' which instantiates (i.e., don't
29148 # use $as_me), people would be surprised to read:
29149 # /* config.h. Generated by config.status. */
29150 configure_input
='Generated from '`
29151 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
29153 if test x
"$ac_file" != x-
; then
29154 configure_input
="$ac_file. $configure_input"
29155 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
29156 $as_echo "$as_me: creating $ac_file" >&6;}
29158 # Neutralize special characters interpreted by sed in replacement strings.
29159 case $configure_input in #(
29160 *\
&* |
*\|
* |
*\\* )
29161 ac_sed_conf_input
=`$as_echo "$configure_input" |
29162 sed 's/[\\\\&|]/\\\\&/g'`;; #(
29163 *) ac_sed_conf_input
=$configure_input;;
29167 *:-:* |
*:-) cat >"$tmp/stdin" \
29168 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
29173 ac_dir
=`$as_dirname -- "$ac_file" ||
29174 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29175 X"$ac_file" : 'X\(//\)[^/]' \| \
29176 X"$ac_file" : 'X\(//\)$' \| \
29177 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
29178 $as_echo X"$ac_file" |
29179 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29183 /^X\(\/\/\)[^/].*/{
29196 as_dir
="$ac_dir"; as_fn_mkdir_p
29200 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
29202 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
29203 # A ".." for each directory in $ac_dir_suffix.
29204 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
29205 case $ac_top_builddir_sub in
29206 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
29207 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
29210 ac_abs_top_builddir
=$ac_pwd
29211 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
29212 # for backward compatibility:
29213 ac_top_builddir
=$ac_top_build_prefix
29216 .
) # We are building in place.
29218 ac_top_srcdir
=$ac_top_builddir_sub
29219 ac_abs_top_srcdir
=$ac_pwd ;;
29220 [\\/]* | ?
:[\\/]* ) # Absolute name.
29221 ac_srcdir
=$srcdir$ac_dir_suffix;
29222 ac_top_srcdir
=$srcdir
29223 ac_abs_top_srcdir
=$srcdir ;;
29224 *) # Relative name.
29225 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
29226 ac_top_srcdir
=$ac_top_build_prefix$srcdir
29227 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
29229 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
29239 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
29240 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
29242 ac_MKDIR_P
=$MKDIR_P
29244 [\\/$
]* | ?
:[\\/]* ) ;;
29245 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
29249 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
29250 # If the template does not know about datarootdir, expand it.
29251 # FIXME: This hack should be removed a few years after 2.60.
29252 ac_datarootdir_hack
=; ac_datarootdir_seen
=
29263 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
29264 *datarootdir
*) ac_datarootdir_seen
=yes;;
29265 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
29266 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
29267 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
29269 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29270 ac_datarootdir_hack='
29271 s&@datadir@&$datadir&g
29272 s&@docdir@&$docdir&g
29273 s&@infodir@&$infodir&g
29274 s&@localedir@&$localedir&g
29275 s&@mandir@&$mandir&g
29276 s&\\\${datarootdir}&$datarootdir&g' ;;
29280 # Neutralize VPATH when `$srcdir' = `.'.
29281 # Shell code in configure.ac might set extrasub.
29282 # FIXME: do we really want to maintain this feature?
29283 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29284 ac_sed_extra="$ac_vpsub
29287 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
29289 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
29290 s|@configure_input@|
$ac_sed_conf_input|
;t t
29291 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
29292 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
29293 s
&@srcdir@
&$ac_srcdir&;t t
29294 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
29295 s
&@top_srcdir@
&$ac_top_srcdir&;t t
29296 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
29297 s
&@builddir@
&$ac_builddir&;t t
29298 s
&@abs_builddir@
&$ac_abs_builddir&;t t
29299 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
29300 s
&@INSTALL@
&$ac_INSTALL&;t t
29301 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
29302 $ac_datarootdir_hack
29304 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
29305 if $ac_cs_awk_getline; then
29306 $AWK -f "$tmp/subs.
awk"
29308 $AWK -f "$tmp/subs.
awk" | $SHELL
29310 || as_fn_error "could not create
$ac_file" "$LINENO" 5
29312 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
29313 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
29314 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
29315 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
29316 which seems to be undefined. Please make sure it is defined." >&5
29317 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
29318 which seems to be undefined. Please make sure it is defined." >&2;}
29322 -) cat "$tmp/out" && rm -f "$tmp/out";;
29323 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
29325 || as_fn_error "could not create $ac_file" "$LINENO" 5
29331 if test x"$ac_file" != x-; then
29333 $as_echo "/* $configure_input */" \
29334 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
29335 } >"$tmp/config.h" \
29336 || as_fn_error "could not create $ac_file" "$LINENO" 5
29337 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
29338 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
29339 $as_echo "$as_me: $ac_file is unchanged" >&6;}
29342 mv "$tmp/config.h" "$ac_file" \
29343 || as_fn_error "could not create $ac_file" "$LINENO" 5
29346 $as_echo "/* $configure_input */" \
29347 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
29348 || as_fn_error "could not create -" "$LINENO" 5
29350 # Compute "$ac_file"'s index
in $config_headers.
29353 for _am_header
in $config_headers :; do
29354 case $_am_header in
29355 $_am_arg |
$_am_arg:* )
29358 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
29361 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
29362 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29363 X"$_am_arg" : 'X\(//\)[^/]' \| \
29364 X"$_am_arg" : 'X\(//\)$' \| \
29365 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
29366 $as_echo X"$_am_arg" |
29367 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29371 /^X\(\/\/\)[^/].*/{
29383 s/.*/./; q'`/stamp-h
$_am_stamp_count
29386 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
29387 $as_echo "$as_me: executing $ac_file commands" >&6;}
29392 case $ac_file$ac_mode in
29393 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
29394 # Autoconf 2.62 quotes --file arguments for eval, but not when files
29395 # are listed without --file. Let's play safe and only enable the eval
29396 # if we detect the quoting.
29397 case $CONFIG_FILES in
29398 *\'*) eval set x
"$CONFIG_FILES" ;;
29399 *) set x
$CONFIG_FILES ;;
29404 # Strip MF so we end up with the name of the file.
29405 mf
=`echo "$mf" | sed -e 's/:.*$//'`
29406 # Check whether this is an Automake generated Makefile or not.
29407 # We used to match only the files named `Makefile.in', but
29408 # some people rename them; so instead we look at the file content.
29409 # Grep'ing the first line is not enough: some people post-process
29410 # each Makefile.in and add a new line on top of each file to say so.
29411 # Grep'ing the whole file is not good either: AIX grep has a line
29412 # limit of 2048, but all sed's we know have understand at least 4000.
29413 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
29414 dirpart
=`$as_dirname -- "$mf" ||
29415 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29416 X"$mf" : 'X\(//\)[^/]' \| \
29417 X"$mf" : 'X\(//\)$' \| \
29418 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
29420 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29424 /^X\(\/\/\)[^/].*/{
29440 # Extract the definition of DEPDIR, am__include, and am__quote
29441 # from the Makefile without running `make'.
29442 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
29443 test -z "$DEPDIR" && continue
29444 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
29445 test -z "am__include" && continue
29446 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
29447 # When using ansi2knr, U may be empty or an underscore; expand it
29448 U
=`sed -n 's/^U = //p' < "$mf"`
29449 # Find all dependency output files, they are included files with
29450 # $(DEPDIR) in their names. We invoke sed twice because it is the
29451 # simplest approach to changing $(DEPDIR) to its actual value in the
29453 for file in `sed -n "
29454 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
29455 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
29456 # Make sure the directory exists.
29457 test -f "$dirpart/$file" && continue
29458 fdir
=`$as_dirname -- "$file" ||
29459 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29460 X"$file" : 'X\(//\)[^/]' \| \
29461 X"$file" : 'X\(//\)$' \| \
29462 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
29463 $as_echo X"$file" |
29464 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29468 /^X\(\/\/\)[^/].*/{
29481 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
29482 # echo "creating $dirpart/$file"
29483 echo '# dummy' > "$dirpart/$file"
29489 for dir
in etc lisp
; do
29490 test -d ${dir} || mkdir
${dir}
29494 echo creating src
/epaths.h
29495 ${MAKE-make} MAKEFILE_NAME
=do-not-make-Makefile epaths-force
29498 if test ! -f src
/.gdbinit
&& test -f "$srcdir/src/.gdbinit"; then
29499 echo creating src
/.gdbinit
29500 echo "source $srcdir/src/.gdbinit" > src
/.gdbinit
29510 ac_clean_files
=$ac_clean_files_save
29512 test $ac_write_fail = 0 ||
29513 as_fn_error
"write failure creating $CONFIG_STATUS" "$LINENO" 5
29516 # configure is writing to config.log, and then calls config.status.
29517 # config.status does its own redirection, appending to config.log.
29518 # Unfortunately, on DOS this fails, as config.log is still kept open
29519 # by configure, so config.status won't be able to write to it; its
29520 # output is simply discarded. So we exec the FD to /dev/null,
29521 # effectively closing config.log, so it can be properly (re)opened and
29522 # appended to by config.status. When coming back to configure, we
29523 # need to make the FD available again.
29524 if test "$no_create" != yes; then
29526 ac_config_status_args
=
29527 test "$silent" = yes &&
29528 ac_config_status_args
="$ac_config_status_args --quiet"
29530 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
29532 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
29533 # would make configure fail if this is the last instruction.
29534 $ac_cs_success || as_fn_exit $?
29536 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
29537 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
29538 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}