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
612 LD_SWITCH_SYSTEM_TEMACS
616 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_FALSE
617 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_TRUE
618 gl_GNULIB_ENABLED_tempname_FALSE
619 gl_GNULIB_ENABLED_tempname_TRUE
620 gl_GNULIB_ENABLED_strtoull_FALSE
621 gl_GNULIB_ENABLED_strtoull_TRUE
622 gl_GNULIB_ENABLED_strtoll_FALSE
623 gl_GNULIB_ENABLED_strtoll_TRUE
624 gl_GNULIB_ENABLED_stat_FALSE
625 gl_GNULIB_ENABLED_stat_TRUE
626 gl_GNULIB_ENABLED_secure_getenv_FALSE
627 gl_GNULIB_ENABLED_secure_getenv_TRUE
628 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_FALSE
629 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_TRUE
630 gl_GNULIB_ENABLED_pathmax_FALSE
631 gl_GNULIB_ENABLED_pathmax_TRUE
632 gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_FALSE
633 gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_TRUE
634 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_FALSE
635 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_TRUE
636 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE
637 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE
638 gl_GNULIB_ENABLED_getgroups_FALSE
639 gl_GNULIB_ENABLED_getgroups_TRUE
640 gl_GNULIB_ENABLED_getdtablesize_FALSE
641 gl_GNULIB_ENABLED_getdtablesize_TRUE
642 gl_GNULIB_ENABLED_euidaccess_FALSE
643 gl_GNULIB_ENABLED_euidaccess_TRUE
644 gl_GNULIB_ENABLED_dosname_FALSE
645 gl_GNULIB_ENABLED_dosname_TRUE
646 gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_FALSE
647 gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_TRUE
653 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
656 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
657 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
658 TIME_H_DEFINES_STRUCT_TIMESPEC
659 NEXT_AS_FIRST_DIRECTIVE_TIME_H
661 WINDOWS_64_BIT_ST_SIZE
662 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
664 NEXT_AS_FIRST_DIRECTIVE_STRING_H
666 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
668 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
677 REPLACE_STDIO_WRITE_FUNCS
678 REPLACE_STDIO_READ_FUNCS
687 REPLACE_OBSTACK_PRINTF
712 HAVE_DECL_OBSTACK_PRINTF
718 GNULIB_VSPRINTF_POSIX
722 GNULIB_VFPRINTF_POSIX
729 GNULIB_STDIO_H_SIGPIPE
730 GNULIB_STDIO_H_NONBLOCKING
745 GNULIB_OBSTACK_PRINTF_POSIX
746 GNULIB_OBSTACK_PRINTF
771 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
773 GL_GENERATE_STDDEF_H_FALSE
774 GL_GENERATE_STDDEF_H_TRUE
779 GL_GENERATE_STDBOOL_H_FALSE
780 GL_GENERATE_STDBOOL_H_TRUE
782 GL_GENERATE_STDARG_H_FALSE
783 GL_GENERATE_STDARG_H_TRUE
785 NEXT_AS_FIRST_DIRECTIVE_STDARG_H
787 GL_GENERATE_STDALIGN_H_FALSE
788 GL_GENERATE_STDALIGN_H_TRUE
790 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
796 REPLACE_PTHREAD_SIGMASK
798 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
799 HAVE_STRUCT_SIGACTION_SA_SIGACTION
805 HAVE_POSIX_SIGNALBLOCKING
808 GNULIB_SIGNAL_H_SIGPIPE
810 GNULIB_PTHREAD_SIGMASK
812 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H
826 HAVE_DECL_LOCALTIME_R
905 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
907 UINT64_MAX_EQ_ULONG_MAX
908 UINT32_MAX_LT_UINTMAX_MAX
911 INT64_MAX_EQ_LONG_MAX
912 INT32_MAX_LT_INTMAX_MAX
923 GL_GENERATE_STDINT_H_FALSE
924 GL_GENERATE_STDINT_H_TRUE
933 HAVE_SIGNED_SIG_ATOMIC_T
936 BITSIZEOF_SIG_ATOMIC_T
939 APPLE_UNIVERSAL_BUILD
943 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
948 HAVE_UNSIGNED_LONG_LONG_INT
951 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
953 REPLACE_STRUCT_TIMEVAL
959 GNULIB_GL_UNISTD_H_GETOPT
962 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
978 REPLACE_CANONICALIZE_FILE_NAME
983 HAVE_STRUCT_RANDOM_DATA
1005 HAVE_DECL_GETLOADAVG
1006 HAVE_CANONICALIZE_FILE_NAME
1017 GNULIB_SECURE_GETENV
1020 GNULIB_REALLOC_POSIX
1037 GNULIB_CANONICALIZE_FILE_NAME
1075 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H
1086 GL_GENERATE_EXECINFO_H_FALSE
1087 GL_GENERATE_EXECINFO_H_TRUE
1096 GL_GENERATE_ERRNO_H_FALSE
1097 GL_GENERATE_ERRNO_H_TRUE
1099 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
1102 NEXT_AS_FIRST_DIRECTIVE_DIRENT_H
1105 PRAGMA_SYSTEM_HEADER
1106 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1129 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
1130 UNISTD_H_HAVE_WINSOCK2_H
1151 REPLACE_GETDTABLESIZE
1152 REPLACE_GETDOMAINNAME
1163 HAVE_DECL_SETHOSTNAME
1164 HAVE_DECL_GETUSERSHELL
1165 HAVE_DECL_GETPAGESIZE
1166 HAVE_DECL_GETLOGIN_R
1167 HAVE_DECL_GETDOMAINNAME
1206 GNULIB_UNISTD_H_SIGPIPE
1207 GNULIB_UNISTD_H_NONBLOCKING
1233 GNULIB_GETDTABLESIZE
1234 GNULIB_GETDOMAINNAME
1251 GL_GENERATE_BYTESWAP_H_FALSE
1252 GL_GENERATE_BYTESWAP_H_TRUE
1254 GL_GENERATE_ALLOCA_H_FALSE
1255 GL_GENERATE_ALLOCA_H_TRUE
1258 GL_COND_LIBTOOL_FALSE
1259 GL_COND_LIBTOOL_TRUE
1291 x_default_search_path
1388 INSTALL_ARCH_INDEP_EXTRA
1390 LD_SWITCH_X_SITE_RPATH
1423 BUILDING_FOR_WINDOWSNT_FALSE
1424 BUILDING_FOR_WINDOWSNT_TRUE
1459 INSTALL_STRIP_PROGRAM
1501 program_transform_name
1512 ac_subst_files
='deps_frag
1515 enable_option_checking
1538 with_toolkit_scroll_bars
1550 with_file_notification
1552 with_compress_install
1553 with_pkg_config_prog
1556 enable_ns_self_contained
1557 enable_locallisppath
1559 enable_check_lisp_object_type
1562 enable_gtk_deprecation_warnings
1563 enable_dependency_tracking
1566 enable_link_time_optimization
1570 ac_precious_vars
='build_alias
1582 # Initialize some variables set by options.
1584 ac_init_version
=false
1585 ac_unrecognized_opts
=
1586 ac_unrecognized_sep
=
1587 # The variables have the same names as the options, with
1588 # dashes changed to underlines.
1589 cache_file
=/dev
/null
1596 program_transform_name
=s
,x
,x
,
1604 # Installation directory options.
1605 # These are left unexpanded so users can "make install exec_prefix=/foo"
1606 # and all the variables that are supposed to be based on exec_prefix
1607 # by default will actually change.
1608 # Use braces instead of parens because sh, perl, etc. also accept them.
1609 # (The list follows the same order as the GNU Coding Standards.)
1610 bindir
='${exec_prefix}/bin'
1611 sbindir
='${exec_prefix}/sbin'
1612 libexecdir
='${exec_prefix}/libexec'
1613 datarootdir
='${prefix}/share'
1614 datadir
='${datarootdir}'
1615 sysconfdir
='${prefix}/etc'
1616 sharedstatedir
='${prefix}/com'
1617 localstatedir
='${prefix}/var'
1618 includedir
='${prefix}/include'
1619 oldincludedir
='/usr/include'
1620 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
1621 infodir
='${datarootdir}/info'
1626 libdir
='${exec_prefix}/lib'
1627 localedir
='${datarootdir}/locale'
1628 mandir
='${datarootdir}/man'
1634 # If the previous option needs an argument, assign it.
1635 if test -n "$ac_prev"; then
1636 eval $ac_prev=\
$ac_option
1642 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1646 # Accept the important Cygnus configure options, so we can diagnose typos.
1648 case $ac_dashdash$ac_option in
1652 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1654 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1655 bindir
=$ac_optarg ;;
1657 -build |
--build |
--buil |
--bui |
--bu)
1658 ac_prev
=build_alias
;;
1659 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1660 build_alias
=$ac_optarg ;;
1662 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1663 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1664 ac_prev
=cache_file
;;
1665 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1666 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1667 cache_file
=$ac_optarg ;;
1669 --config-cache |
-C)
1670 cache_file
=config.cache
;;
1672 -datadir |
--datadir |
--datadi |
--datad)
1674 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1675 datadir
=$ac_optarg ;;
1677 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1678 |
--dataroo |
--dataro |
--datar)
1679 ac_prev
=datarootdir
;;
1680 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1681 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1682 datarootdir
=$ac_optarg ;;
1684 -disable-* |
--disable-*)
1685 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1686 # Reject names that are not valid shell variable names.
1687 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1688 as_fn_error
"invalid feature name: $ac_useropt"
1689 ac_useropt_orig
=$ac_useropt
1690 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1691 case $ac_user_opts in
1693 "enable_
$ac_useropt"
1695 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1696 ac_unrecognized_sep
=', ';;
1698 eval enable_
$ac_useropt=no
;;
1700 -docdir |
--docdir |
--docdi |
--doc |
--do)
1702 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1703 docdir
=$ac_optarg ;;
1705 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1707 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1708 dvidir
=$ac_optarg ;;
1710 -enable-* |
--enable-*)
1711 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1712 # Reject names that are not valid shell variable names.
1713 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1714 as_fn_error
"invalid feature name: $ac_useropt"
1715 ac_useropt_orig
=$ac_useropt
1716 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1717 case $ac_user_opts in
1719 "enable_
$ac_useropt"
1721 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1722 ac_unrecognized_sep
=', ';;
1724 eval enable_
$ac_useropt=\
$ac_optarg ;;
1726 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1727 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1728 |
--exec |
--exe |
--ex)
1729 ac_prev
=exec_prefix
;;
1730 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1731 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1732 |
--exec=* |
--exe=* |
--ex=*)
1733 exec_prefix
=$ac_optarg ;;
1735 -gas |
--gas |
--ga |
--g)
1736 # Obsolete; use --with-gas.
1739 -help |
--help |
--hel |
--he |
-h)
1740 ac_init_help
=long
;;
1741 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1742 ac_init_help
=recursive
;;
1743 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1744 ac_init_help
=short
;;
1746 -host |
--host |
--hos |
--ho)
1747 ac_prev
=host_alias
;;
1748 -host=* |
--host=* |
--hos=* |
--ho=*)
1749 host_alias
=$ac_optarg ;;
1751 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1753 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1755 htmldir
=$ac_optarg ;;
1757 -includedir |
--includedir |
--includedi |
--included |
--include \
1758 |
--includ |
--inclu |
--incl |
--inc)
1759 ac_prev
=includedir
;;
1760 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1761 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1762 includedir
=$ac_optarg ;;
1764 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1766 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1767 infodir
=$ac_optarg ;;
1769 -libdir |
--libdir |
--libdi |
--libd)
1771 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1772 libdir
=$ac_optarg ;;
1774 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1775 |
--libexe |
--libex |
--libe)
1776 ac_prev
=libexecdir
;;
1777 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1778 |
--libexe=* |
--libex=* |
--libe=*)
1779 libexecdir
=$ac_optarg ;;
1781 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1782 ac_prev
=localedir
;;
1783 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1784 localedir
=$ac_optarg ;;
1786 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1787 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1788 ac_prev
=localstatedir
;;
1789 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1790 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1791 localstatedir
=$ac_optarg ;;
1793 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1795 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1796 mandir
=$ac_optarg ;;
1798 -nfp |
--nfp |
--nf)
1799 # Obsolete; use --without-fp.
1802 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1803 |
--no-cr |
--no-c |
-n)
1806 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1807 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1810 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1811 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1812 |
--oldin |
--oldi |
--old |
--ol |
--o)
1813 ac_prev
=oldincludedir
;;
1814 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1815 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1816 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1817 oldincludedir
=$ac_optarg ;;
1819 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1821 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1822 prefix
=$ac_optarg ;;
1824 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1825 |
--program-pre |
--program-pr |
--program-p)
1826 ac_prev
=program_prefix
;;
1827 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1828 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1829 program_prefix
=$ac_optarg ;;
1831 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1832 |
--program-suf |
--program-su |
--program-s)
1833 ac_prev
=program_suffix
;;
1834 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1835 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1836 program_suffix
=$ac_optarg ;;
1838 -program-transform-name |
--program-transform-name \
1839 |
--program-transform-nam |
--program-transform-na \
1840 |
--program-transform-n |
--program-transform- \
1841 |
--program-transform |
--program-transfor \
1842 |
--program-transfo |
--program-transf \
1843 |
--program-trans |
--program-tran \
1844 |
--progr-tra |
--program-tr |
--program-t)
1845 ac_prev
=program_transform_name
;;
1846 -program-transform-name=* |
--program-transform-name=* \
1847 |
--program-transform-nam=* |
--program-transform-na=* \
1848 |
--program-transform-n=* |
--program-transform-=* \
1849 |
--program-transform=* |
--program-transfor=* \
1850 |
--program-transfo=* |
--program-transf=* \
1851 |
--program-trans=* |
--program-tran=* \
1852 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1853 program_transform_name
=$ac_optarg ;;
1855 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1857 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1858 pdfdir
=$ac_optarg ;;
1860 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1862 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1865 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1866 |
-silent |
--silent |
--silen |
--sile |
--sil)
1869 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1871 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1873 sbindir
=$ac_optarg ;;
1875 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1876 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1877 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1879 ac_prev
=sharedstatedir
;;
1880 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1881 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1882 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1884 sharedstatedir
=$ac_optarg ;;
1886 -site |
--site |
--sit)
1888 -site=* |
--site=* |
--sit=*)
1891 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1893 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1894 srcdir
=$ac_optarg ;;
1896 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1897 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1898 ac_prev
=sysconfdir
;;
1899 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1900 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1901 sysconfdir
=$ac_optarg ;;
1903 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1904 ac_prev
=target_alias
;;
1905 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1906 target_alias
=$ac_optarg ;;
1908 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1911 -version |
--version |
--versio |
--versi |
--vers |
-V)
1912 ac_init_version
=: ;;
1915 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1916 # Reject names that are not valid shell variable names.
1917 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1918 as_fn_error
"invalid package name: $ac_useropt"
1919 ac_useropt_orig
=$ac_useropt
1920 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1921 case $ac_user_opts in
1925 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1926 ac_unrecognized_sep
=', ';;
1928 eval with_
$ac_useropt=\
$ac_optarg ;;
1930 -without-* |
--without-*)
1931 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1932 # Reject names that are not valid shell variable names.
1933 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1934 as_fn_error
"invalid package name: $ac_useropt"
1935 ac_useropt_orig
=$ac_useropt
1936 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1937 case $ac_user_opts in
1941 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1942 ac_unrecognized_sep
=', ';;
1944 eval with_
$ac_useropt=no
;;
1947 # Obsolete; use --with-x.
1950 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1951 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1952 ac_prev
=x_includes
;;
1953 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1954 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1955 x_includes
=$ac_optarg ;;
1957 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1958 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1959 ac_prev
=x_libraries
;;
1960 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1961 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1962 x_libraries
=$ac_optarg ;;
1964 -*) as_fn_error
"unrecognized option: \`$ac_option'
1965 Try \`$0 --help' for more information."
1969 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1970 # Reject names that are not valid shell variable names.
1971 case $ac_envvar in #(
1972 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1973 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1975 eval $ac_envvar=\
$ac_optarg
1976 export $ac_envvar ;;
1979 # FIXME: should be removed in autoconf 3.0.
1980 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1981 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1982 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1983 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1989 if test -n "$ac_prev"; then
1990 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1991 as_fn_error
"missing argument to $ac_option"
1994 if test -n "$ac_unrecognized_opts"; then
1995 case $enable_option_checking in
1997 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1998 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
2002 # Check all directory arguments for consistency.
2003 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
2004 datadir sysconfdir sharedstatedir localstatedir includedir \
2005 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
2006 libdir localedir mandir
2008 eval ac_val
=\$
$ac_var
2009 # Remove trailing slashes.
2012 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
2013 eval $ac_var=\
$ac_val;;
2015 # Be sure to have absolute directory names.
2017 [\\/$
]* | ?
:[\\/]* ) continue;;
2018 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
2020 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
2023 # There might be people who depend on the old broken behavior: `$host'
2024 # used to hold the argument of --host etc.
2025 # FIXME: To remove some day.
2028 target
=$target_alias
2030 # FIXME: To remove some day.
2031 if test "x$host_alias" != x
; then
2032 if test "x$build_alias" = x
; then
2033 cross_compiling
=maybe
2034 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
2035 If a cross compiler is detected then cross compile mode will be used." >&2
2036 elif test "x$build_alias" != "x$host_alias"; then
2042 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
2044 test "$silent" = yes && exec 6>/dev
/null
2047 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
2048 ac_ls_di
=`ls -di .` &&
2049 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
2050 as_fn_error
"working directory cannot be determined"
2051 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
2052 as_fn_error
"pwd does not report name of working directory"
2055 # Find the source files, if location was not specified.
2056 if test -z "$srcdir"; then
2057 ac_srcdir_defaulted
=yes
2058 # Try the directory containing this script, then the parent directory.
2059 ac_confdir
=`$as_dirname -- "$as_myself" ||
2060 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2061 X"$as_myself" : 'X\(//\)[^/]' \| \
2062 X"$as_myself" : 'X\(//\)$' \| \
2063 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
2064 $as_echo X"$as_myself" |
2065 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2083 if test ! -r "$srcdir/$ac_unique_file"; then
2087 ac_srcdir_defaulted
=no
2089 if test ! -r "$srcdir/$ac_unique_file"; then
2090 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
2091 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
2093 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
2095 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
2097 # When building in place, set srcdir=.
2098 if test "$ac_abs_confdir" = "$ac_pwd"; then
2101 # Remove unnecessary trailing slashes from srcdir.
2102 # Double slashes in file names in object file debugging info
2103 # mess up M-x gdb in Emacs.
2105 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
2107 for ac_var
in $ac_precious_vars; do
2108 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
2109 eval ac_env_
${ac_var}_value
=\$
${ac_var}
2110 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
2111 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
2115 # Report the --help message.
2117 if test "$ac_init_help" = "long"; then
2118 # Omit some internal or obsolete options to make the list less imposing.
2119 # This message is too long to be a string in the A/UX 3.1 sh.
2121 \`configure' configures emacs 24.3.50 to adapt to many kinds of systems.
2123 Usage: $0 [OPTION]... [VAR=VALUE]...
2125 To assign environment variables (e.g., CC, CFLAGS...), specify them as
2126 VAR=VALUE. See below for descriptions of some of the useful variables.
2128 Defaults for the options are specified in brackets.
2131 -h, --help display this help and exit
2132 --help=short display options specific to this package
2133 --help=recursive display the short help of all the included packages
2134 -V, --version display version information and exit
2135 -q, --quiet, --silent do not print \`checking...' messages
2136 --cache-file=FILE cache test results in FILE [disabled]
2137 -C, --config-cache alias for \`--cache-file=config.cache'
2138 -n, --no-create do not create output files
2139 --srcdir=DIR find the sources in DIR [configure dir or \`..']
2141 Installation directories:
2142 --prefix=PREFIX install architecture-independent files in PREFIX
2143 [$ac_default_prefix]
2144 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
2147 By default, \`make install' will install all the files in
2148 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
2149 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
2150 for instance \`--prefix=\$HOME'.
2152 For better control, use the options below.
2154 Fine tuning of the installation directories:
2155 --bindir=DIR user executables [EPREFIX/bin]
2156 --sbindir=DIR system admin executables [EPREFIX/sbin]
2157 --libexecdir=DIR program executables [EPREFIX/libexec]
2158 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
2159 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
2160 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
2161 --libdir=DIR object code libraries [EPREFIX/lib]
2162 --includedir=DIR C header files [PREFIX/include]
2163 --oldincludedir=DIR C header files for non-gcc [/usr/include]
2164 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
2165 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
2166 --infodir=DIR info documentation [DATAROOTDIR/info]
2167 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
2168 --mandir=DIR man documentation [DATAROOTDIR/man]
2169 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
2170 --htmldir=DIR html documentation [DOCDIR]
2171 --dvidir=DIR dvi documentation [DOCDIR]
2172 --pdfdir=DIR pdf documentation [DOCDIR]
2173 --psdir=DIR ps documentation [DOCDIR]
2179 --program-prefix=PREFIX prepend PREFIX to installed program names
2180 --program-suffix=SUFFIX append SUFFIX to installed program names
2181 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
2184 --x-includes=DIR X include files are
in DIR
2185 --x-libraries=DIR X library files are
in DIR
2188 --build=BUILD configure
for building on BUILD
[guessed
]
2189 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
2193 if test -n "$ac_init_help"; then
2194 case $ac_init_help in
2195 short | recursive
) echo "Configuration of emacs 24.3.50:";;
2200 --disable-option-checking ignore unrecognized
--enable/--with options
2201 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
2202 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
2203 --disable-ns-self-contained
2204 disable self contained build under NeXTstep
2205 --enable-locallisppath=PATH
2206 directories Emacs should search
for lisp files
2207 specific to this site
2208 --enable-checking[=LIST
]
2209 enable expensive run-time checks. With LIST
, enable
2210 only specific categories of checks. Categories are
:
2211 all
,yes,no. Flags are
: stringbytes
, stringoverrun
,
2212 stringfreelist
, xmallocoverrun
, conslist
, glyphs
2213 --enable-check-lisp-object-type
2214 enable compile
time checks
for the Lisp_Object data
2215 type. This is useful
for development
for catching
2216 certain types of bugs.
2217 --enable-profiling build emacs with low-level
, gprof profiling support.
2218 Mainly useful
for debugging Emacs itself. May not
2219 work on all platforms. Stops profiler.el working.
2220 --enable-autodepend automatically generate dependencies to .h-files.
2221 Requires GNU Make and Gcc. Enabled
if GNU Make and
2223 --enable-gtk-deprecation-warnings
2224 Show Gtk
+/Gdk deprecation warnings
for Gtk
+ >= 3.0
2225 --disable-dependency-tracking speeds up one-time build
2226 --enable-dependency-tracking do not reject slow dependency extractors
2227 --disable-largefile omit support
for large files
2228 --enable-gcc-warnings turn on lots of GCC warnings
/errors. This is
2229 intended
for developers
, and may generate false
2230 alarms when used with older or non-GNU development
2232 --enable-link-time-optimization
2233 build emacs with link-time optimization. This is
2234 supported only
for GCC since
4.5.0.
2235 --disable-acl do not support ACLs
2238 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
2239 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
2240 --without-all omit almost all features and build small executable
2241 with minimal dependencies
2242 --without-pop don
't support POP mail retrieval with movemail
2243 --with-kerberos support Kerberos-authenticated POP
2244 --with-kerberos5 support Kerberos version 5 authenticated POP
2245 --with-hesiod support Hesiod to get the POP server host
2246 --with-mmdf support MMDF mailboxes
2247 --with-mail-unlink unlink, rather than empty, mail spool after reading
2248 --with-mailhost=HOSTNAME
2249 string giving default POP mail host
2250 --with-sound=VALUE compile with sound support (VALUE one of: yes, alsa,
2251 oss, bsd-ossaudio, no; default yes). Only for
2252 GNU/Linux, FreeBSD, NetBSD, MinGW.
2253 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes or gtk, gtk2,
2254 gtk3, lucid or athena, motif, no)
2255 --with-wide-int prefer wide Emacs integers (typically 62-bit)
2256 --without-xpm don't compile with XPM image support
2257 --without-jpeg don
't compile with JPEG image support
2258 --without-tiff don't compile with TIFF image support
2259 --without-gif don
't compile with GIF image support
2260 --without-png don't compile with PNG image support
2261 --without-rsvg don
't compile with SVG image support
2262 --without-xml2 don't compile with XML parsing support
2263 --without-imagemagick don
't compile with ImageMagick image support
2264 --without-xft don't use XFT
for anti aliased fonts
2265 --without-libotf don
't use libotf for OpenType font support
2266 --without-m17n-flt don't use m17n-flt
for text shaping
2267 --without-toolkit-scroll-bars
2268 don
't use Motif or Xaw3d scroll bars
2269 --without-xaw3d don't use Xaw3d
2270 --without-xim don
't use X11 XIM
2271 --with-ns use NeXTstep (Cocoa or GNUstep) windowing system
2272 --with-w32 use native MS Windows GUI in a Cygwin build
2273 --without-gpm don't use
-lgpm for mouse support on a GNU
/Linux
2275 --without-dbus don
't compile with D-Bus support
2276 --without-gconf don't compile with GConf support
2277 --without-gsettings don
't compile with GSettings support
2278 --without-selinux don't compile with SELinux support
2279 --without-gnutls don
't use -lgnutls for SSL/TLS support
2280 --without-zlib don't compile with zlib decompression support
2281 --with-file-notification=LIB
2282 use a
file notification library
(LIB one of
: yes,
2283 gfile
, inotify
, w32
, no
)
2284 --without-makeinfo don
't require makeinfo for building manuals
2285 --without-compress-install
2286 don't
compress some files
(.el
, .info
, etc.
) when
2287 installing. Equivalent to
: make GZIP_PROG
= install
2288 --with-pkg-config-prog=FILENAME
2289 file name of pkg-config
for finding GTK and librsvg
2290 --with-gameuser=USER user
for shared game score files
2291 --with-gnustep-conf=FILENAME
2292 name of GNUstep.conf
; default
$GNUSTEP_CONFIG_FILE,
2293 or
/etc
/GNUstep
/GNUstep.conf
2294 --with-x use the X Window System
2296 Some influential environment variables
:
2297 CC C compiler
command
2298 CFLAGS C compiler flags
2299 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
2300 nonstandard directory
<lib dir
>
2301 LIBS libraries to pass to the linker
, e.g.
-l<library
>
2302 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
2303 you have headers
in a nonstandard directory
<include dir
>
2305 XMKMF Path to xmkmf
, Makefile generator
for X Window System
2307 Use these variables to override the choices made by
`configure' or to help
2308 it to find libraries and programs with nonstandard names/locations.
2310 Report bugs to the package provider.
2315 if test "$ac_init_help" = "recursive"; then
2316 # If there are subdirs, report their specific --help.
2317 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2318 test -d "$ac_dir" ||
2319 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2324 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2326 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
2327 # A ".." for each directory in $ac_dir_suffix.
2328 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
2329 case $ac_top_builddir_sub in
2330 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2331 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2334 ac_abs_top_builddir=$ac_pwd
2335 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2336 # for backward compatibility:
2337 ac_top_builddir=$ac_top_build_prefix
2340 .) # We are building in place.
2342 ac_top_srcdir=$ac_top_builddir_sub
2343 ac_abs_top_srcdir=$ac_pwd ;;
2344 [\\/]* | ?:[\\/]* ) # Absolute name.
2345 ac_srcdir=$srcdir$ac_dir_suffix;
2346 ac_top_srcdir=$srcdir
2347 ac_abs_top_srcdir=$srcdir ;;
2349 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2350 ac_top_srcdir=$ac_top_build_prefix$srcdir
2351 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2353 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2355 cd "$ac_dir" || { ac_status=$?; continue; }
2356 # Check for guested configure.
2357 if test -f "$ac_srcdir/configure.gnu"; then
2359 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2360 elif test -f "$ac_srcdir/configure"; then
2362 $SHELL "$ac_srcdir/configure" --help=recursive
2364 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2366 cd "$ac_pwd" || { ac_status=$?; break; }
2370 test -n "$ac_init_help" && exit $ac_status
2371 if $ac_init_version; then
2373 emacs configure 24.3.50
2374 generated by GNU Autoconf 2.65
2376 Copyright (C) 2009 Free Software Foundation, Inc.
2377 This configure script is free software; the Free Software Foundation
2378 gives unlimited permission to copy, distribute and modify it.
2383 ## ------------------------ ##
2384 ## Autoconf initialization. ##
2385 ## ------------------------ ##
2387 # ac_fn_c_try_compile LINENO
2388 # --------------------------
2389 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2390 ac_fn_c_try_compile ()
2392 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2393 rm -f conftest.$ac_objext
2394 if { { ac_try="$ac_compile"
2396 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2397 *) ac_try_echo
=$ac_try;;
2399 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2400 $as_echo "$ac_try_echo"; } >&5
2401 (eval "$ac_compile") 2>conftest.err
2403 if test -s conftest.err
; then
2404 grep -v '^ *+' conftest.err
>conftest.er1
2405 cat conftest.er1
>&5
2406 mv -f conftest.er1 conftest.err
2408 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2409 test $ac_status = 0; } && {
2410 test -z "$ac_c_werror_flag" ||
2411 test ! -s conftest.err
2412 } && test -s conftest.
$ac_objext; then :
2415 $as_echo "$as_me: failed program was:" >&5
2416 sed 's/^/| /' conftest.
$ac_ext >&5
2420 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2421 as_fn_set_status
$ac_retval
2423 } # ac_fn_c_try_compile
2425 # ac_fn_c_try_cpp LINENO
2426 # ----------------------
2427 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2430 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2431 if { { ac_try
="$ac_cpp conftest.$ac_ext"
2433 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2434 *) ac_try_echo=$ac_try;;
2436 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2437 $as_echo "$ac_try_echo"; } >&5
2438 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2440 if test -s conftest.err; then
2441 grep -v '^ *+' conftest.err >conftest.er1
2442 cat conftest.er1 >&5
2443 mv -f conftest.er1 conftest.err
2445 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2446 test $ac_status = 0; } >/dev/null && {
2447 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2448 test ! -s conftest.err
2452 $as_echo "$as_me: failed program was:" >&5
2453 sed 's/^/| /' conftest.$ac_ext >&5
2457 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2458 as_fn_set_status $ac_retval
2462 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2463 # -------------------------------------------------------
2464 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2465 # the include files in INCLUDES and setting the cache variable VAR
2467 ac_fn_c_check_header_mongrel ()
2469 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2470 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2472 $as_echo_n "checking for $2... " >&6; }
2473 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2474 $as_echo_n "(cached) " >&6
2477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2478 $as_echo "$ac_res" >&6; }
2480 # Is the header compilable?
2481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2482 $as_echo_n "checking $2 usability... " >&6; }
2483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2484 /* end confdefs.h. */
2488 if ac_fn_c_try_compile "$LINENO"; then :
2489 ac_header_compiler=yes
2491 ac_header_compiler=no
2493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2495 $as_echo "$ac_header_compiler" >&6; }
2497 # Is the header present?
2498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2499 $as_echo_n "checking $2 presence... " >&6; }
2500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2501 /* end confdefs.h. */
2504 if ac_fn_c_try_cpp "$LINENO"; then :
2505 ac_header_preproc=yes
2507 ac_header_preproc=no
2509 rm -f conftest.err conftest.$ac_ext
2510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2511 $as_echo "$ac_header_preproc" >&6; }
2513 # So? What about this header?
2514 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2516 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2517 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2518 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2519 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2522 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2523 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2524 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2525 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2526 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2527 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2528 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2529 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2530 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2531 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2535 $as_echo_n "checking for $2... " >&6; }
2536 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2537 $as_echo_n "(cached) " >&6
2539 eval "$3=\$ac_header_compiler"
2542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2543 $as_echo "$ac_res" >&6; }
2545 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2547 } # ac_fn_c_check_header_mongrel
2549 # ac_fn_c_try_run LINENO
2550 # ----------------------
2551 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2552 # that executables *can* be run.
2555 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2556 if { { ac_try="$ac_link"
2558 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2559 *) ac_try_echo
=$ac_try;;
2561 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2562 $as_echo "$ac_try_echo"; } >&5
2563 (eval "$ac_link") 2>&5
2565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2566 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
2567 { { case "(($ac_try" in
2568 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2569 *) ac_try_echo=$ac_try;;
2571 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2572 $as_echo "$ac_try_echo"; } >&5
2573 (eval "$ac_try") 2>&5
2575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2576 test $ac_status = 0; }; }; then :
2579 $as_echo "$as_me: program exited with status $ac_status" >&5
2580 $as_echo "$as_me: failed program was:" >&5
2581 sed 's/^/| /' conftest.$ac_ext >&5
2583 ac_retval=$ac_status
2585 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2586 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2587 as_fn_set_status $ac_retval
2591 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2592 # -------------------------------------------------------
2593 # Tests whether HEADER exists and can be compiled using the include files in
2594 # INCLUDES, setting the cache variable VAR accordingly.
2595 ac_fn_c_check_header_compile ()
2597 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2599 $as_echo_n "checking for $2... " >&6; }
2600 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2601 $as_echo_n "(cached) " >&6
2603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2604 /* end confdefs.h. */
2608 if ac_fn_c_try_compile "$LINENO"; then :
2613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2617 $as_echo "$ac_res" >&6; }
2618 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2620 } # ac_fn_c_check_header_compile
2622 # ac_fn_c_try_link LINENO
2623 # -----------------------
2624 # Try to link conftest.$ac_ext, and return whether this succeeded.
2627 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2628 rm -f conftest.$ac_objext conftest$ac_exeext
2629 if { { ac_try="$ac_link"
2631 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2632 *) ac_try_echo
=$ac_try;;
2634 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2635 $as_echo "$ac_try_echo"; } >&5
2636 (eval "$ac_link") 2>conftest.err
2638 if test -s conftest.err
; then
2639 grep -v '^ *+' conftest.err
>conftest.er1
2640 cat conftest.er1
>&5
2641 mv -f conftest.er1 conftest.err
2643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2644 test $ac_status = 0; } && {
2645 test -z "$ac_c_werror_flag" ||
2646 test ! -s conftest.err
2647 } && test -s conftest
$ac_exeext && {
2648 test "$cross_compiling" = yes ||
2649 $as_test_x conftest
$ac_exeext
2653 $as_echo "$as_me: failed program was:" >&5
2654 sed 's/^/| /' conftest.
$ac_ext >&5
2658 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2659 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2660 # interfere with the next link command; also delete a directory that is
2661 # left behind by Apple's compiler. We do this before executing the actions.
2662 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2663 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2664 as_fn_set_status
$ac_retval
2666 } # ac_fn_c_try_link
2668 # ac_fn_c_check_decl LINENO SYMBOL VAR
2669 # ------------------------------------
2670 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2671 ac_fn_c_check_decl
()
2673 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2675 $as_echo_n "checking whether $2 is declared... " >&6; }
2676 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2677 $as_echo_n "(cached) " >&6
2679 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2680 /* end confdefs.h. */
2693 if ac_fn_c_try_compile
"$LINENO"; then :
2698 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2702 $as_echo "$ac_res" >&6; }
2703 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2705 } # ac_fn_c_check_decl
2707 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2708 # ----------------------------------------------
2709 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2710 ac_fn_c_check_header_preproc
()
2712 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2714 $as_echo_n "checking for $2... " >&6; }
2715 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2716 $as_echo_n "(cached) " >&6
2718 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2719 /* end confdefs.h. */
2722 if ac_fn_c_try_cpp
"$LINENO"; then :
2727 rm -f conftest.err conftest.
$ac_ext
2730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2731 $as_echo "$ac_res" >&6; }
2732 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2734 } # ac_fn_c_check_header_preproc
2736 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2737 # ----------------------------------------------------
2738 # Tries to find if the field MEMBER exists in type AGGR, after including
2739 # INCLUDES, setting cache variable VAR accordingly.
2740 ac_fn_c_check_member
()
2742 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2744 $as_echo_n "checking for $2.$3... " >&6; }
2745 if { as_var
=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2746 $as_echo_n "(cached) " >&6
2748 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2749 /* end confdefs.h. */
2761 if ac_fn_c_try_compile
"$LINENO"; then :
2764 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2765 /* end confdefs.h. */
2771 if (sizeof ac_aggr.$3)
2777 if ac_fn_c_try_compile
"$LINENO"; then :
2782 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2784 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2788 $as_echo "$ac_res" >&6; }
2789 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2791 } # ac_fn_c_check_member
2793 # ac_fn_c_check_func LINENO FUNC VAR
2794 # ----------------------------------
2795 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2796 ac_fn_c_check_func
()
2798 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2800 $as_echo_n "checking for $2... " >&6; }
2801 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2802 $as_echo_n "(cached) " >&6
2804 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2805 /* end confdefs.h. */
2806 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2807 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2808 #define $2 innocuous_$2
2810 /* System header to define __stub macros and hopefully few prototypes,
2811 which can conflict with char $2 (); below.
2812 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2813 <limits.h> exists even on freestanding compilers. */
2816 # include <limits.h>
2818 # include <assert.h>
2823 /* Override any GCC internal prototype to avoid an error.
2824 Use char because int might match the return type of a GCC
2825 builtin and then its argument prototype would still apply. */
2830 /* The GNU C library defines this for functions which it implements
2831 to always fail with ENOSYS. Some functions are actually named
2832 something starting with __ and the normal name is an alias. */
2833 #if defined __stub_$2 || defined __stub___$2
2845 if ac_fn_c_try_link
"$LINENO"; then :
2850 rm -f core conftest.err conftest.
$ac_objext \
2851 conftest
$ac_exeext conftest.
$ac_ext
2854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2855 $as_echo "$ac_res" >&6; }
2856 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2858 } # ac_fn_c_check_func
2860 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2861 # -------------------------------------------
2862 # Tests whether TYPE exists after having included INCLUDES, setting cache
2863 # variable VAR accordingly.
2864 ac_fn_c_check_type
()
2866 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2868 $as_echo_n "checking for $2... " >&6; }
2869 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2870 $as_echo_n "(cached) " >&6
2873 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2874 /* end confdefs.h. */
2885 if ac_fn_c_try_compile
"$LINENO"; then :
2886 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2887 /* end confdefs.h. */
2898 if ac_fn_c_try_compile
"$LINENO"; then :
2903 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2905 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2909 $as_echo "$ac_res" >&6; }
2910 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2912 } # ac_fn_c_check_type
2914 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2915 # --------------------------------------------
2916 # Tries to find the compile-time value of EXPR in a program that includes
2917 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2919 ac_fn_c_compute_int
()
2921 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2922 if test "$cross_compiling" = yes; then
2923 # Depending upon the size, compute the lo and hi bounds.
2924 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2925 /* end confdefs.h. */
2930 static int test_array [1 - 2 * !(($2) >= 0)];
2937 if ac_fn_c_try_compile
"$LINENO"; then :
2940 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2941 /* end confdefs.h. */
2946 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2953 if ac_fn_c_try_compile
"$LINENO"; then :
2954 ac_hi
=$ac_mid; break
2956 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2957 if test $ac_lo -le $ac_mid; then
2961 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2963 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2966 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2967 /* end confdefs.h. */
2972 static int test_array [1 - 2 * !(($2) < 0)];
2979 if ac_fn_c_try_compile
"$LINENO"; then :
2982 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2983 /* end confdefs.h. */
2988 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2995 if ac_fn_c_try_compile
"$LINENO"; then :
2996 ac_lo
=$ac_mid; break
2998 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2999 if test $ac_mid -le $ac_hi; then
3003 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
3005 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3010 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3012 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3013 # Binary search between lo and hi bounds.
3014 while test "x$ac_lo" != "x$ac_hi"; do
3015 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
3016 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3017 /* end confdefs.h. */
3022 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
3029 if ac_fn_c_try_compile
"$LINENO"; then :
3032 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
3034 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3037 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
3041 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3042 /* end confdefs.h. */
3044 static long int longval () { return $2; }
3045 static unsigned long int ulongval () { return $2; }
3052 FILE *f = fopen ("conftest.val", "w");
3057 long int i = longval ();
3060 fprintf (f, "%ld", i);
3064 unsigned long int i = ulongval ();
3067 fprintf (f, "%lu", i);
3069 /* Do not output a trailing newline, as this causes \r\n confusion
3070 on some platforms. */
3071 return ferror (f) || fclose (f) != 0;
3077 if ac_fn_c_try_run
"$LINENO"; then :
3078 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
3082 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
3083 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
3087 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
3088 as_fn_set_status
$ac_retval
3090 } # ac_fn_c_compute_int
3091 cat >config.log
<<_ACEOF
3092 This file contains any messages produced by compilers while
3093 running configure, to aid debugging if configure makes a mistake.
3095 It was created by emacs $as_me 24.3.50, which was
3096 generated by GNU Autoconf 2.65. Invocation command line was
3108 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3109 uname -m = `(uname -m) 2>/dev/null || echo unknown`
3110 uname -r = `(uname -r) 2>/dev/null || echo unknown`
3111 uname -s = `(uname -s) 2>/dev/null || echo unknown`
3112 uname -v = `(uname -v) 2>/dev/null || echo unknown`
3114 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3115 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3117 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3118 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3119 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3120 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3121 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3122 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3123 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3127 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3131 test -z "$as_dir" && as_dir
=.
3132 $as_echo "PATH: $as_dir"
3148 # Keep a trace of the command line.
3149 # Strip out --no-create and --no-recursion so they do not pile up.
3150 # Strip out --silent because we don't want to record it for future runs.
3151 # Also quote any args containing shell meta-characters.
3152 # Make two passes to allow for proper duplicate-argument suppression.
3156 ac_must_keep_next
=false
3162 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
3163 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
3164 |
-silent |
--silent |
--silen |
--sile |
--sil)
3167 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3170 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
3172 as_fn_append ac_configure_args1
" '$ac_arg'"
3173 if test $ac_must_keep_next = true
; then
3174 ac_must_keep_next
=false
# Got value, back to normal.
3177 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
3178 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
3179 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
3180 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
3181 case "$ac_configure_args0 " in
3182 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3185 -* ) ac_must_keep_next
=true
;;
3188 as_fn_append ac_configure_args
" '$ac_arg'"
3193 { ac_configure_args0
=; unset ac_configure_args0
;}
3194 { ac_configure_args1
=; unset ac_configure_args1
;}
3196 # When interrupted or exit'd, cleanup temporary files, and complete
3197 # config.log. We remove comments because anyway the quotes in there
3198 # would cause problems or look ugly.
3199 # WARNING: Use '\'' to represent an apostrophe within the trap.
3200 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3201 trap 'exit_status=$?
3202 # Save into config.log some information that might help in debugging.
3207 ## ---------------- ##
3208 ## Cache variables. ##
3209 ## ---------------- ##
3212 # The following way of writing the cache mishandles newlines in values,
3214 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3215 eval ac_val=\$$ac_var
3219 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3220 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3223 _ | IFS | as_nl) ;; #(
3224 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3225 *) { eval $ac_var=; unset $ac_var;} ;;
3230 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3231 *${as_nl}ac_space=\ *)
3233 "s/'\''/'\''\\\\'\'''\''/g;
3234 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3237 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3245 ## ----------------- ##
3246 ## Output variables. ##
3247 ## ----------------- ##
3250 for ac_var in $ac_subst_vars
3252 eval ac_val=\$$ac_var
3254 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3256 $as_echo "$ac_var='\''$ac_val'\''"
3260 if test -n "$ac_subst_files"; then
3262 ## ------------------- ##
3263 ## File substitutions. ##
3264 ## ------------------- ##
3267 for ac_var
in $ac_subst_files
3269 eval ac_val
=\$
$ac_var
3271 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3273 $as_echo "$ac_var='\''$ac_val'\''"
3278 if test -s confdefs.h; then
3288 test "$ac_signal" != 0 &&
3289 $as_echo "$as_me: caught signal $ac_signal"
3290 $as_echo "$as_me: exit $exit_status"
3292 rm -f core *.core core.conftest.* &&
3293 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3296 for ac_signal
in 1 2 13 15; do
3297 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3301 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3302 rm -f -r conftest
* confdefs.h
3304 $as_echo "/* confdefs.h */" > confdefs.h
3306 # Predefined preprocessor variables.
3308 cat >>confdefs.h
<<_ACEOF
3309 #define PACKAGE_NAME "$PACKAGE_NAME"
3312 cat >>confdefs.h
<<_ACEOF
3313 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3316 cat >>confdefs.h
<<_ACEOF
3317 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3320 cat >>confdefs.h
<<_ACEOF
3321 #define PACKAGE_STRING "$PACKAGE_STRING"
3324 cat >>confdefs.h
<<_ACEOF
3325 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3328 cat >>confdefs.h
<<_ACEOF
3329 #define PACKAGE_URL "$PACKAGE_URL"
3333 # Let the site file select an alternate cache file if it wants to.
3334 # Prefer an explicitly selected file to automatically selected ones.
3337 if test -n "$CONFIG_SITE"; then
3338 ac_site_file1
=$CONFIG_SITE
3339 elif test "x$prefix" != xNONE
; then
3340 ac_site_file1
=$prefix/share
/config.site
3341 ac_site_file2
=$prefix/etc
/config.site
3343 ac_site_file1
=$ac_default_prefix/share
/config.site
3344 ac_site_file2
=$ac_default_prefix/etc
/config.site
3346 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
3348 test "x$ac_site_file" = xNONE
&& continue
3349 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3351 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3352 sed 's/^/| /' "$ac_site_file" >&5
3357 if test -r "$cache_file"; then
3358 # Some versions of bash will fail to source /dev/null (special files
3359 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3360 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
3361 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3362 $as_echo "$as_me: loading cache $cache_file" >&6;}
3364 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
3365 *) .
"./$cache_file";;
3369 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3370 $as_echo "$as_me: creating cache $cache_file" >&6;}
3374 as_fn_append ac_header_list
" sys/systeminfo.h"
3375 as_fn_append ac_header_list
" coff.h"
3376 as_fn_append ac_header_list
" pty.h"
3377 as_fn_append ac_header_list
" sys/resource.h"
3378 as_fn_append ac_header_list
" sys/utsname.h"
3379 as_fn_append ac_header_list
" pwd.h"
3380 as_fn_append ac_header_list
" utmp.h"
3381 as_fn_append ac_header_list
" util.h"
3382 as_fn_append ac_header_list
" sys/socket.h"
3383 as_fn_append ac_header_list
" stdlib.h"
3384 as_fn_append ac_header_list
" unistd.h"
3385 as_fn_append ac_header_list
" sys/param.h"
3386 as_fn_append ac_header_list
" pthread.h"
3387 as_fn_append ac_header_list
" malloc/malloc.h"
3388 as_fn_append ac_header_list
" maillock.h"
3389 as_fn_append ac_header_list
" sys/un.h"
3390 as_fn_append ac_func_list
" tzset"
3391 as_fn_append ac_func_list
" readlinkat"
3392 as_fn_append ac_header_list
" dirent.h"
3393 as_fn_append ac_header_list
" execinfo.h"
3394 as_fn_append ac_func_list
" faccessat"
3395 as_fn_append ac_func_list
" fcntl"
3396 as_fn_append ac_func_list
" fdopendir"
3397 as_fn_append ac_header_list
" stdio_ext.h"
3398 as_fn_append ac_func_list
" fstatat"
3399 as_fn_append ac_func_list
" fsync"
3400 gl_getopt_required
=GNU
3401 as_fn_append ac_header_list
" getopt.h"
3402 as_fn_append ac_func_list
" gettimeofday"
3403 as_fn_append ac_func_list
" nanotime"
3404 as_fn_append ac_header_list
" sys/time.h"
3405 as_fn_append ac_header_list
" wchar.h"
3406 as_fn_append ac_header_list
" stdint.h"
3407 as_fn_append ac_header_list
" inttypes.h"
3408 as_fn_append ac_func_list
" lstat"
3409 as_fn_append ac_func_list
" mkostemp"
3410 as_fn_append ac_func_list
" pipe2"
3411 as_fn_append ac_header_list
" sys/select.h"
3412 as_fn_append ac_func_list
" pselect"
3413 as_fn_append ac_func_list
" pthread_sigmask"
3414 as_fn_append ac_func_list
" readlink"
3415 as_fn_append ac_func_list
" strtoimax"
3416 as_fn_append ac_func_list
" strtoumax"
3417 as_fn_append ac_func_list
" symlink"
3418 as_fn_append ac_header_list
" sys/stat.h"
3419 as_fn_append ac_func_list
" localtime_r"
3420 as_fn_append ac_header_list
" utime.h"
3421 as_fn_append ac_func_list
" futimes"
3422 as_fn_append ac_func_list
" futimesat"
3423 as_fn_append ac_func_list
" futimens"
3424 as_fn_append ac_func_list
" utimensat"
3425 as_fn_append ac_func_list
" lutimes"
3426 as_fn_append ac_func_list
" getdtablesize"
3427 as_fn_append ac_func_list
" secure_getenv"
3428 # Check that the precious variables saved in the cache have kept the same
3430 ac_cache_corrupted
=false
3431 for ac_var
in $ac_precious_vars; do
3432 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
3433 eval ac_new_set
=\
$ac_env_${ac_var}_set
3434 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
3435 eval ac_new_val
=\
$ac_env_${ac_var}_value
3436 case $ac_old_set,$ac_new_set in
3438 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3439 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3440 ac_cache_corrupted
=: ;;
3442 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3443 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3444 ac_cache_corrupted
=: ;;
3447 if test "x$ac_old_val" != "x$ac_new_val"; then
3448 # differences in whitespace do not lead to failure.
3449 ac_old_val_w
=`echo x $ac_old_val`
3450 ac_new_val_w
=`echo x $ac_new_val`
3451 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3452 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3453 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3454 ac_cache_corrupted
=:
3456 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3457 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3458 eval $ac_var=\
$ac_old_val
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3461 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3462 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3463 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3466 # Pass precious variables to config.status.
3467 if test "$ac_new_set" = set; then
3469 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3470 *) ac_arg
=$ac_var=$ac_new_val ;;
3472 case " $ac_configure_args " in
3473 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3474 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
3478 if $ac_cache_corrupted; then
3479 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3480 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3481 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3482 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3483 as_fn_error
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3485 ## -------------------- ##
3486 ## Main body of script. ##
3487 ## -------------------- ##
3490 ac_cpp
='$CPP $CPPFLAGS'
3491 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3492 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3493 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3497 emacs_config_options
=
3499 for opt
in ${1+"$@"} CFLAGS CPPFLAGS LDFLAGS
; do
3501 -n |
--no-create |
--no-recursion)
3503 CFLAGS | CPPFLAGS | LDFLAGS
)
3504 eval 'test "${'$opt'+set}" = set' ||
continue
3506 *" $opt="*) continue ;;
3508 eval opt
=$opt=\$
$opt ;;
3511 emacs_shell_specials
=$IFS\''"#$&()*;<>?[\\`{|~'
3513 *["$emacs_shell_specials"]*)
3516 emacs_quote_apostrophes
="s/'/'\\\\''/g"
3517 opt
=`$as_echo "$opt" | sed "$emacs_quote_apostrophes"` ;;
3522 emacs_quote_for_c
='s/["\\]/\\&/g; $!s/$/\\n\\/'
3523 opt
=`$as_echo "$opt" | sed "$emacs_quote_for_c"` ;;
3526 as_fn_append emacs_config_options
"$optsep$opt"
3530 ac_config_headers
="$ac_config_headers src/config.h:src/config.in"
3534 for ac_dir
in build-aux
"$srcdir"/build-aux
; do
3535 for ac_t
in install-sh
install.sh shtool
; do
3536 if test -f "$ac_dir/$ac_t"; then
3538 ac_install_sh
="$ac_aux_dir/$ac_t -c"
3543 if test -z "$ac_aux_dir"; then
3544 as_fn_error
"cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
3547 # These three variables are undocumented and unsupported,
3548 # and are intended to be withdrawn in a future Autoconf release.
3549 # They can cause serious problems if a builder's source tree is in a directory
3550 # whose full name contains unusual characters.
3551 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3552 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3553 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3556 am__api_version
='1.11'
3558 # Find a good install program. We prefer a C program (faster),
3559 # so one script is as good as another. But avoid the broken or
3560 # incompatible versions:
3561 # SysV /etc/install, /usr/sbin/install
3562 # SunOS /usr/etc/install
3563 # IRIX /sbin/install
3565 # AmigaOS /C/install, which installs bootblocks on floppy discs
3566 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3567 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3568 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3569 # OS/2's system install, which has a completely different semantic
3570 # ./install, which can be erroneously created by make from ./install.sh.
3571 # Reject install programs that cannot install multiple files.
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3573 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3574 if test -z "$INSTALL"; then
3575 if test "${ac_cv_path_install+set}" = set; then :
3576 $as_echo_n "(cached) " >&6
3578 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3582 test -z "$as_dir" && as_dir
=.
3583 # Account for people who put trailing slashes in PATH elements.
3584 case $as_dir/ in #((
3585 .
/ | .
// |
/[cC
]/* | \
3586 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
3587 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
3590 # OSF1 and SCO ODT 3.0 have their own names for install.
3591 # Don't use installbsd from OSF since it installs stuff as root
3593 for ac_prog
in ginstall scoinst
install; do
3594 for ac_exec_ext
in '' $ac_executable_extensions; do
3595 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3596 if test $ac_prog = install &&
3597 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3598 # AIX install. It has an incompatible calling convention.
3600 elif test $ac_prog = install &&
3601 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3602 # program-specific install script used by HP pwplus--don't use.
3605 rm -rf conftest.one conftest.two conftest.dir
3606 echo one
> conftest.one
3607 echo two
> conftest.two
3609 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
3610 test -s conftest.one
&& test -s conftest.two
&&
3611 test -s conftest.dir
/conftest.one
&&
3612 test -s conftest.dir
/conftest.two
3614 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
3627 rm -rf conftest.one conftest.two conftest.dir
3630 if test "${ac_cv_path_install+set}" = set; then
3631 INSTALL
=$ac_cv_path_install
3633 # As a last resort, use the slow shell script. Don't cache a
3634 # value for INSTALL within a source directory, because that will
3635 # break other packages using the cache if that directory is
3636 # removed, or if the value is a relative name.
3637 INSTALL
=$ac_install_sh
3640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3641 $as_echo "$INSTALL" >&6; }
3643 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3644 # It thinks the first close brace ends the variable substitution.
3645 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3647 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3649 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3652 $as_echo_n "checking whether build environment is sane... " >&6; }
3655 echo timestamp
> conftest.
file
3656 # Reject unsafe characters in $srcdir or the absolute working directory
3657 # name. Accept space and tab only in the latter.
3661 *[\\\"\
#\$\&\'\`$am_lf]*)
3662 as_fn_error
"unsafe absolute working directory name" "$LINENO" 5;;
3665 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
3666 as_fn_error
"unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3669 # Do `set' in a subshell so we don't clobber the current shell's
3670 # arguments. Must try -L first in case configure is actually a
3671 # symlink; some systems play weird games with the mod time of symlinks
3672 # (eg FreeBSD returns the mod time of the symlink's containing
3675 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3676 if test "$*" = "X"; then
3678 set X
`ls -t "$srcdir/configure" conftest.file`
3681 if test "$*" != "X $srcdir/configure conftest.file" \
3682 && test "$*" != "X conftest.file $srcdir/configure"; then
3684 # If neither matched, then we have a broken ls. This can happen
3685 # if, for instance, CONFIG_SHELL is bash and it inherits a
3686 # broken ls alias from the environment. This has actually
3687 # happened. Such a system could not be considered "sane".
3688 as_fn_error
"ls -t appears to fail. Make sure there is not a broken
3689 alias in your environment" "$LINENO" 5
3692 test "$2" = conftest.
file
3698 as_fn_error
"newly created file is older than distributed files!
3699 Check your system clock" "$LINENO" 5
3701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3702 $as_echo "yes" >&6; }
3703 test "$program_prefix" != NONE
&&
3704 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
3705 # Use a double $ so make ignores it.
3706 test "$program_suffix" != NONE
&&
3707 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
3708 # Double any \ or $.
3709 # By default was `s,x,x', remove it if useless.
3710 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
3711 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
3713 # expand $ac_aux_dir to an absolute path
3714 am_aux_dir
=`cd $ac_aux_dir && pwd`
3716 if test x
"${MISSING+set}" != xset
; then
3719 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
3721 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
3724 # Use eval to expand $SHELL
3725 if eval "$MISSING --run true"; then
3726 am_missing_run
="$MISSING --run "
3729 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3730 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3733 if test x
"${install_sh}" != xset
; then
3736 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
3738 install_sh
="\${SHELL} $am_aux_dir/install-sh"
3742 # Installed binaries are usually stripped using `strip' when the user
3743 # run `make install-strip'. However `strip' might not be the right
3744 # tool to use in cross-compilation environments, therefore Automake
3745 # will honor the `STRIP' environment variable to overrule this program.
3746 if test "$cross_compiling" != no
; then
3747 if test -n "$ac_tool_prefix"; then
3748 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3749 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
3750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3751 $as_echo_n "checking for $ac_word... " >&6; }
3752 if test "${ac_cv_prog_STRIP+set}" = set; then :
3753 $as_echo_n "(cached) " >&6
3755 if test -n "$STRIP"; then
3756 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
3758 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3762 test -z "$as_dir" && as_dir
=.
3763 for ac_exec_ext
in '' $ac_executable_extensions; do
3764 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3765 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
3766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3775 STRIP
=$ac_cv_prog_STRIP
3776 if test -n "$STRIP"; then
3777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3778 $as_echo "$STRIP" >&6; }
3780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3781 $as_echo "no" >&6; }
3786 if test -z "$ac_cv_prog_STRIP"; then
3788 # Extract the first word of "strip", so it can be a program name with args.
3789 set dummy strip
; ac_word
=$2
3790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3791 $as_echo_n "checking for $ac_word... " >&6; }
3792 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3793 $as_echo_n "(cached) " >&6
3795 if test -n "$ac_ct_STRIP"; then
3796 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
3798 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3802 test -z "$as_dir" && as_dir
=.
3803 for ac_exec_ext
in '' $ac_executable_extensions; do
3804 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3805 ac_cv_prog_ac_ct_STRIP
="strip"
3806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3815 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
3816 if test -n "$ac_ct_STRIP"; then
3817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3818 $as_echo "$ac_ct_STRIP" >&6; }
3820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3821 $as_echo "no" >&6; }
3824 if test "x$ac_ct_STRIP" = x
; then
3827 case $cross_compiling:$ac_tool_warned in
3829 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3830 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3831 ac_tool_warned
=yes ;;
3836 STRIP
="$ac_cv_prog_STRIP"
3840 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
3842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3843 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3844 if test -z "$MKDIR_P"; then
3845 if test "${ac_cv_path_mkdir+set}" = set; then :
3846 $as_echo_n "(cached) " >&6
3848 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3849 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
3852 test -z "$as_dir" && as_dir
=.
3853 for ac_prog
in mkdir gmkdir
; do
3854 for ac_exec_ext
in '' $ac_executable_extensions; do
3855 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } ||
continue
3856 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3857 'mkdir (GNU coreutils) '* | \
3858 'mkdir (coreutils) '* | \
3859 'mkdir (fileutils) '4.1*)
3860 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
3870 test -d .
/--version && rmdir .
/--version
3871 if test "${ac_cv_path_mkdir+set}" = set; then
3872 MKDIR_P
="$ac_cv_path_mkdir -p"
3874 # As a last resort, use the slow shell script. Don't cache a
3875 # value for MKDIR_P within a source directory, because that will
3876 # break other packages using the cache if that directory is
3877 # removed, or if the value is a relative name.
3878 MKDIR_P
="$ac_install_sh -d"
3881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3882 $as_echo "$MKDIR_P" >&6; }
3886 [\\/$
]* | ?
:[\\/]*) ;;
3887 */*) mkdir_p
="\$(top_builddir)/$mkdir_p" ;;
3890 for ac_prog
in gawk mawk nawk
awk
3892 # Extract the first word of "$ac_prog", so it can be a program name with args.
3893 set dummy
$ac_prog; ac_word
=$2
3894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3895 $as_echo_n "checking for $ac_word... " >&6; }
3896 if test "${ac_cv_prog_AWK+set}" = set; then :
3897 $as_echo_n "(cached) " >&6
3899 if test -n "$AWK"; then
3900 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
3902 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3906 test -z "$as_dir" && as_dir
=.
3907 for ac_exec_ext
in '' $ac_executable_extensions; do
3908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3909 ac_cv_prog_AWK
="$ac_prog"
3910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3920 if test -n "$AWK"; then
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3922 $as_echo "$AWK" >&6; }
3924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3925 $as_echo "no" >&6; }
3929 test -n "$AWK" && break
3932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3933 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3935 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3936 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3937 $as_echo_n "(cached) " >&6
3939 cat >conftest.
make <<\_ACEOF
3942 @
echo '@@@%%%=$(MAKE)=@@@%%%'
3944 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3945 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3947 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
3949 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
3953 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
3954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3955 $as_echo "yes" >&6; }
3958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3959 $as_echo "no" >&6; }
3960 SET_MAKE
="MAKE=${MAKE-make}"
3963 rm -rf .tst
2>/dev
/null
3964 mkdir .tst
2>/dev
/null
3965 if test -d .tst
; then
3970 rmdir .tst
2>/dev
/null
3972 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3973 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3974 # is not polluted with repeated "-I."
3975 am__isrc
=' -I$(srcdir)'
3976 # test to see if srcdir already configured
3977 if test -f $srcdir/config.status
; then
3978 as_fn_error
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3982 # test whether we have cygpath
3983 if test -z "$CYGPATH_W"; then
3984 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
3985 CYGPATH_W
='cygpath -w'
3992 # Define the identity of the package.
3997 cat >>confdefs.h
<<_ACEOF
3998 #define PACKAGE "$PACKAGE"
4002 cat >>confdefs.h
<<_ACEOF
4003 #define VERSION "$VERSION"
4006 # Some tools Automake needs.
4008 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4011 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
4014 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4017 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
4020 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
4022 # We need awk for the "check" target. The system "awk" is bad on
4024 # Always define AMTAR for backward compatibility.
4026 AMTAR
=${AMTAR-"${am_missing_run}tar"}
4028 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
4037 lispdir
='${datadir}/emacs/${version}/lisp'
4038 leimdir
='${datadir}/emacs/${version}/leim'
4039 standardlisppath
='${lispdir}:${leimdir}'
4040 locallisppath
='${datadir}/emacs/${version}/site-lisp:'\
4041 '${datadir}/emacs/site-lisp'
4042 lisppath
='${locallisppath}:${standardlisppath}'
4043 etcdir
='${datadir}/emacs/${version}/etc'
4044 archlibdir
='${libexecdir}/emacs/${version}/${configuration}'
4045 etcdocdir
='${datadir}/emacs/${version}/etc'
4046 gamedir
='${localstatedir}/games/emacs'
4049 # Check whether --with-all was given.
4050 if test "${with_all+set}" = set; then :
4051 withval
=$with_all; with_features
=$withval
4060 # Check whether --with-pop was given.
4061 if test "${with_pop+set}" = set; then :
4064 with_pop
=$with_features
4067 if test "$with_pop" = yes; then
4068 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
4073 # Check whether --with-kerberos was given.
4074 if test "${with_kerberos+set}" = set; then :
4075 withval
=$with_kerberos;
4080 if test "$with_kerberos" != no
; then
4081 $as_echo "#define KERBEROS 1" >>confdefs.h
4086 # Check whether --with-kerberos5 was given.
4087 if test "${with_kerberos5+set}" = set; then :
4088 withval
=$with_kerberos5;
4093 if test "${with_kerberos5}" != no
; then
4094 if test "${with_kerberos}" = no
; then
4096 $as_echo "#define KERBEROS 1" >>confdefs.h
4100 $as_echo "#define KERBEROS5 1" >>confdefs.h
4105 # Check whether --with-hesiod was given.
4106 if test "${with_hesiod+set}" = set; then :
4107 withval
=$with_hesiod;
4112 if test "$with_hesiod" != no
; then
4114 $as_echo "#define HESIOD 1" >>confdefs.h
4119 # Check whether --with-mmdf was given.
4120 if test "${with_mmdf+set}" = set; then :
4126 if test "$with_mmdf" != no
; then
4128 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
4133 # Check whether --with-mail-unlink was given.
4134 if test "${with_mail_unlink+set}" = set; then :
4135 withval
=$with_mail_unlink;
4140 if test "$with_mail_unlink" != no
; then
4142 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
4147 # Check whether --with-mailhost was given.
4148 if test "${with_mailhost+set}" = set; then :
4149 withval
=$with_mailhost;
4150 cat >>confdefs.h
<<_ACEOF
4151 #define MAILHOST "$withval"
4158 # Check whether --with-sound was given.
4159 if test "${with_sound+set}" = set; then :
4160 withval
=$with_sound; case "${withval}" in
4161 yes|no|alsa|oss|bsd-ossaudio
) val
=$withval ;;
4162 *) as_fn_error
"\`--with-sound=$withval' is invalid;
4163 this option's value should be \`yes', \`no', \`alsa', \`oss', or \`bsd-ossaudio'." "$LINENO" 5
4169 with_sound
=$with_features
4174 # Check whether --with-x-toolkit was given.
4175 if test "${with_x_toolkit+set}" = set; then :
4176 withval
=$with_x_toolkit; case "${withval}" in
4177 y | ye |
yes ) val
=gtk
;;
4179 l | lu | luc | luci | lucid
) val
=lucid
;;
4180 a |
at | ath | athe | athen | athena
) val
=athena
;;
4181 m | mo | mot | moti | motif
) val
=motif
;;
4182 g | gt | gtk
) val
=gtk
;;
4186 as_fn_error
"\`--with-x-toolkit=$withval' is invalid;
4187 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk',
4188 \`gtk2' or \`gtk3'. \`yes' and \`gtk' are synonyms.
4189 \`athena' and \`lucid' are synonyms." "$LINENO" 5
4198 # Check whether --with-wide-int was given.
4199 if test "${with_wide_int+set}" = set; then :
4200 withval
=$with_wide_int;
4205 if test "$with_wide_int" = yes; then
4207 $as_echo "#define WIDE_EMACS_INT 1" >>confdefs.h
4212 # Check whether --with-xpm was given.
4213 if test "${with_xpm+set}" = set; then :
4216 with_xpm
=$with_features
4220 # Check whether --with-jpeg was given.
4221 if test "${with_jpeg+set}" = set; then :
4224 with_jpeg
=$with_features
4228 # Check whether --with-tiff was given.
4229 if test "${with_tiff+set}" = set; then :
4232 with_tiff
=$with_features
4236 # Check whether --with-gif was given.
4237 if test "${with_gif+set}" = set; then :
4240 with_gif
=$with_features
4244 # Check whether --with-png was given.
4245 if test "${with_png+set}" = set; then :
4248 with_png
=$with_features
4252 # Check whether --with-rsvg was given.
4253 if test "${with_rsvg+set}" = set; then :
4256 with_rsvg
=$with_features
4260 # Check whether --with-xml2 was given.
4261 if test "${with_xml2+set}" = set; then :
4264 with_xml2
=$with_features
4268 # Check whether --with-imagemagick was given.
4269 if test "${with_imagemagick+set}" = set; then :
4270 withval
=$with_imagemagick;
4272 with_imagemagick
=$with_features
4277 # Check whether --with-xft was given.
4278 if test "${with_xft+set}" = set; then :
4281 with_xft
=$with_features
4285 # Check whether --with-libotf was given.
4286 if test "${with_libotf+set}" = set; then :
4287 withval
=$with_libotf;
4289 with_libotf
=$with_features
4293 # Check whether --with-m17n-flt was given.
4294 if test "${with_m17n_flt+set}" = set; then :
4295 withval
=$with_m17n_flt;
4297 with_m17n_flt
=$with_features
4302 # Check whether --with-toolkit-scroll-bars was given.
4303 if test "${with_toolkit_scroll_bars+set}" = set; then :
4304 withval
=$with_toolkit_scroll_bars;
4306 with_toolkit_scroll_bars
=$with_features
4310 # Check whether --with-xaw3d was given.
4311 if test "${with_xaw3d+set}" = set; then :
4312 withval
=$with_xaw3d;
4314 with_xaw3d
=$with_features
4318 # Check whether --with-xim was given.
4319 if test "${with_xim+set}" = set; then :
4322 with_xim
=$with_features
4326 # Check whether --with-ns was given.
4327 if test "${with_ns+set}" = set; then :
4334 # Check whether --with-w32 was given.
4335 if test "${with_w32+set}" = set; then :
4343 # Check whether --with-gpm was given.
4344 if test "${with_gpm+set}" = set; then :
4347 with_gpm
=$with_features
4351 # Check whether --with-dbus was given.
4352 if test "${with_dbus+set}" = set; then :
4355 with_dbus
=$with_features
4359 # Check whether --with-gconf was given.
4360 if test "${with_gconf+set}" = set; then :
4361 withval
=$with_gconf;
4363 with_gconf
=$with_features
4367 # Check whether --with-gsettings was given.
4368 if test "${with_gsettings+set}" = set; then :
4369 withval
=$with_gsettings;
4371 with_gsettings
=$with_features
4375 # Check whether --with-selinux was given.
4376 if test "${with_selinux+set}" = set; then :
4377 withval
=$with_selinux;
4379 with_selinux
=$with_features
4383 # Check whether --with-gnutls was given.
4384 if test "${with_gnutls+set}" = set; then :
4385 withval
=$with_gnutls;
4387 with_gnutls
=$with_features
4391 # Check whether --with-zlib was given.
4392 if test "${with_zlib+set}" = set; then :
4395 with_zlib
=$with_features
4400 # Check whether --with-file-notification was given.
4401 if test "${with_file_notification+set}" = set; then :
4402 withval
=$with_file_notification; case "${withval}" in
4403 y | ye |
yes ) val
=yes ;;
4405 g | gf | gfi | gfil | gfile
) val
=gfile
;;
4406 i |
in | ino | inot | inoti | inotif | inotify
) val
=inotify
;;
4407 w | w3 | w32
) val
=w32
;;
4408 * ) as_fn_error
"\`--with-file-notification=$withval' is invalid;
4409 this option's value should be \`yes', \`no', \`gfile', \`inotify' or \`w32'.
4410 \`yes' is a synonym for \`w32' on MS-Windows, for \`no' on Nextstep,
4411 otherwise for the first of \`gfile' or \`inotify' that is usable." "$LINENO" 5
4414 with_file_notification
=$val
4417 with_file_notification
=$with_features
4421 ## For the times when you want to build Emacs but don't have
4422 ## a suitable makeinfo, and can live without the manuals.
4424 # Check whether --with-makeinfo was given.
4425 if test "${with_makeinfo+set}" = set; then :
4426 withval
=$with_makeinfo;
4428 with_makeinfo
=$with_features
4432 ## Makefile.in needs the cache file name.
4435 ## This is an option because I do not know if all info/man support
4436 ## compressed files, nor how to test if they do so.
4438 # Check whether --with-compress-install was given.
4439 if test "${with_compress_install+set}" = set; then :
4440 withval
=$with_compress_install;
4442 with_compress_install
=$with_features
4447 # Check whether --with-pkg-config-prog was given.
4448 if test "${with_pkg_config_prog+set}" = set; then :
4449 withval
=$with_pkg_config_prog;
4452 if test "X${with_pkg_config_prog}" != X
; then
4453 if test "${with_pkg_config_prog}" != yes; then
4454 PKG_CONFIG
="${with_pkg_config_prog}"
4459 # Check whether --with-gameuser was given.
4460 if test "${with_gameuser+set}" = set; then :
4461 withval
=$with_gameuser;
4464 test "X${with_gameuser}" != X
&& test "${with_gameuser}" != yes \
4465 && gameuser
="${with_gameuser}"
4466 test "X$gameuser" = X
&& gameuser
=games
4469 # Check whether --with-gnustep-conf was given.
4470 if test "${with_gnustep_conf+set}" = set; then :
4471 withval
=$with_gnustep_conf;
4474 test "X${with_gnustep_conf}" != X
&& test "${with_gnustep_conf}" != yes && \
4475 GNUSTEP_CONFIG_FILE
="${with_gnustep_conf}"
4476 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
4477 GNUSTEP_CONFIG_FILE
=/etc
/GNUstep
/GNUstep.conf
4479 # Check whether --enable-ns-self-contained was given.
4480 if test "${enable_ns_self_contained+set}" = set; then :
4481 enableval
=$enable_ns_self_contained; EN_NS_SELF_CONTAINED
=$enableval
4483 EN_NS_SELF_CONTAINED
=yes
4487 # Check whether --enable-locallisppath was given.
4488 if test "${enable_locallisppath+set}" = set; then :
4489 enableval
=$enable_locallisppath; if test "${enableval}" = "no"; then
4491 elif test "${enableval}" != "yes"; then
4492 locallisppath
=${enableval}
4497 # Check whether --enable-checking was given.
4498 if test "${enable_checking+set}" = set; then :
4499 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
4502 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
4503 for check
in $ac_checking_flags
4506 # these set all the flags to specific states
4507 yes) ac_enable_checking
=1 ;;
4508 no
) ac_enable_checking
= ;
4509 ac_gc_check_stringbytes
= ;
4510 ac_gc_check_string_overrun
= ;
4511 ac_gc_check_string_free_list
= ;
4512 ac_xmalloc_overrun
= ;
4513 ac_gc_check_cons_list
= ;
4515 all
) ac_enable_checking
=1 ;
4516 ac_gc_check_stringbytes
=1 ;
4517 ac_gc_check_string_overrun
=1 ;
4518 ac_gc_check_string_free_list
=1 ;
4519 ac_xmalloc_overrun
=1 ;
4520 ac_gc_check_cons_list
=1 ;
4521 ac_glyphs_debug
=1 ;;
4522 # these enable particular checks
4523 stringbytes
) ac_gc_check_stringbytes
=1 ;;
4524 stringoverrun
) ac_gc_check_string_overrun
=1 ;;
4525 stringfreelist
) ac_gc_check_string_free_list
=1 ;;
4526 xmallocoverrun
) ac_xmalloc_overrun
=1 ;;
4527 conslist
) ac_gc_check_cons_list
=1 ;;
4528 glyphs
) ac_glyphs_debug
=1 ;;
4529 *) as_fn_error
"unknown check category $check" "$LINENO" 5 ;;
4534 if test x
$ac_enable_checking != x
; then
4536 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
4539 if test x
$ac_gc_check_stringbytes != x
; then
4541 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
4544 if test x
$ac_gc_check_string_overrun != x
; then
4546 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
4549 if test x
$ac_gc_check_string_free_list != x
; then
4551 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
4554 if test x
$ac_xmalloc_overrun != x
; then
4556 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
4559 if test x
$ac_gc_check_cons_list != x
; then
4561 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
4564 if test x
$ac_glyphs_debug != x
; then
4566 $as_echo "#define GLYPH_DEBUG 1" >>confdefs.h
4570 # Check whether --enable-check-lisp-object-type was given.
4571 if test "${enable_check_lisp_object_type+set}" = set; then :
4572 enableval
=$enable_check_lisp_object_type; if test "${enableval}" != "no"; then
4574 $as_echo "#define CHECK_LISP_OBJECT_TYPE 1" >>confdefs.h
4581 # Check whether --enable-profiling was given.
4582 if test "${enable_profiling+set}" = set; then :
4583 enableval
=$enable_profiling; ac_enable_profiling
="${enableval}"
4586 if test x
$ac_enable_profiling != x
; then
4587 PROFILING_CFLAGS
="-DPROFILING=1 -pg"
4593 # Check whether --enable-autodepend was given.
4594 if test "${enable_autodepend+set}" = set; then :
4595 enableval
=$enable_autodepend; ac_enable_autodepend
="${enableval}"
4597 ac_enable_autodepend
=yes
4601 # Check whether --enable-gtk-deprecation-warnings was given.
4602 if test "${enable_gtk_deprecation_warnings+set}" = set; then :
4603 enableval
=$enable_gtk_deprecation_warnings; ac_enable_gtk_deprecation_warnings
="${enableval}"
4607 #### When building with MinGW inside the MSYS tree, 'pwd' produces
4608 #### directories relative to the root of the MSYS tree,
4609 #### e.g. '/home/user/foo' instead of '/d/MSYS/home/user/foo'. When
4610 #### such a value of srcdir is written to the top-level Makefile, it
4611 #### gets propagated to src/epaths.h, and that causes temacs to fail,
4612 #### because, being a MinGW program that knows nothing of MSYS root
4613 #### substitution, it cannot find the data directory. "pwd -W"
4614 #### produces Windows-style 'd:/foo/bar' absolute directory names, so
4615 #### we use it here to countermand that lossage.
4616 test "$MSYSTEM" = "MINGW32" && abs_srcdir
=`(cd "$abs_srcdir"; pwd -W | sed -e 's,^\([A-Za-z]\):,/\1,')`
4618 ### Canonicalize the configuration name.
4620 # Make sure we can run config.sub.
4621 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
4622 as_fn_error
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4625 $as_echo_n "checking build system type... " >&6; }
4626 if test "${ac_cv_build+set}" = set; then :
4627 $as_echo_n "(cached) " >&6
4629 ac_build_alias
=$build_alias
4630 test "x$ac_build_alias" = x
&&
4631 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
4632 test "x$ac_build_alias" = x
&&
4633 as_fn_error
"cannot guess build type; you must specify one" "$LINENO" 5
4634 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4635 as_fn_error
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4639 $as_echo "$ac_cv_build" >&6; }
4640 case $ac_cv_build in
4642 *) as_fn_error
"invalid value of canonical build" "$LINENO" 5;;
4645 ac_save_IFS
=$IFS; IFS
='-'
4651 # Remember, the first character of IFS is used to create $*,
4652 # except with old shells:
4655 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
4658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4659 $as_echo_n "checking host system type... " >&6; }
4660 if test "${ac_cv_host+set}" = set; then :
4661 $as_echo_n "(cached) " >&6
4663 if test "x$host_alias" = x
; then
4664 ac_cv_host
=$ac_cv_build
4666 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4667 as_fn_error
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4672 $as_echo "$ac_cv_host" >&6; }
4675 *) as_fn_error
"invalid value of canonical host" "$LINENO" 5;;
4678 ac_save_IFS
=$IFS; IFS
='-'
4684 # Remember, the first character of IFS is used to create $*,
4685 # except with old shells:
4688 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
4692 configuration
=${host_alias-${build_alias-$host}}
4696 ### If you add support for a new configuration, add code to this
4697 ### switch statement to recognize your configuration name and select
4698 ### the appropriate operating system file.
4700 ### You would hope that you could choose an s/*.h
4701 ### file based on the operating system portion. However, it turns out
4702 ### that each s/*.h file is pretty manufacturer-specific.
4703 ### So we basically have to have a special case for each
4704 ### configuration name.
4706 ### As far as handling version numbers on operating systems is
4707 ### concerned, make sure things will fail in a fixable way. If
4708 ### /etc/MACHINES doesn't say anything about version numbers, be
4709 ### prepared to handle anything reasonably. If version numbers
4710 ### matter, be sure /etc/MACHINES says something about it.
4712 opsys
='' unported
=no
4713 case "${canonical}" in
4715 ## GNU/Linux and similar ports
4730 ## FreeBSD kernel + glibc based userland
4745 ## Apple Darwin / Mac OS X
4747 case "${canonical}" in
4754 ## Use fink packages if available.
4755 ## FIXME find a better way to do this: http://debbugs.gnu.org/11507
4756 ## if test -d /sw/include && test -d /sw/lib; then
4757 ## GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
4758 ## NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
4767 ## HP 9000 series 700 and 800, running HP/UX
4768 hppa
*-hp-hpux10.2
* )
4771 hppa
*-hp-hpux1[1-9]* )
4773 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
4777 rs6000-ibm-aix4.
[23]* )
4780 powerpc-ibm-aix4.
[23]* )
4783 rs6000-ibm-aix
[56]* )
4786 powerpc-ibm-aix
[56]* )
4790 ## Silicon Graphics machines
4794 # Without defining _LANGUAGE_C, things get masked out in the headers
4795 # so that, for instance, grepping for `free' in stdlib.h fails and
4796 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
4797 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
4802 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* \
4803 | x86_64-
*-solaris2* | x86_64-
*-sunos5*)
4804 case "${canonical}" in
4806 amd64-
*-*|x86_64-
*-*) ;;
4810 case "${canonical}" in
4811 *-sunos5.6
* |
*-solaris2.6
* )
4815 *-sunos5.
[7-9]* |
*-solaris2.
[7-9]* )
4817 emacs_check_sunpro_c
=yes
4819 *-sunos5* |
*-solaris* )
4821 emacs_check_sunpro_c
=yes
4824 ## Watch out for a compiler that we know will not work.
4825 case "${canonical}" in
4826 *-solaris* |
*-sunos5* )
4827 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
4828 ## /usr/ucb/cc doesn't work;
4829 ## we should find some other compiler that does work.
4837 ## Intel 386 machines where we don't care about the manufacturer.
4839 case "${canonical}" in
4840 *-darwin* ) opsys
=darwin
;;
4843 # MinGW overrides and adds some system headers in nt/inc.
4844 GCC_TEST_OPTIONS
="-I $srcdir/nt/inc"
4846 *-sysv4.2uw
* ) opsys
=unixware
;;
4847 *-sysv5uw* ) opsys
=unixware
;;
4848 *-sysv5OpenUNIX* ) opsys
=unixware
;;
4849 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
4858 ### If the code above didn't choose an operating system, just choose
4859 ### an operating system based on the configuration name. You really
4860 ### only want to use this when you have no idea what the right
4861 ### operating system is; if you know what operating systems a machine
4862 ### runs, it's cleaner to make it explicit in the case statement
4864 if test x
"${opsys}" = x
; then
4865 case "${canonical}" in
4866 *-gnu* ) opsys
=gnu
;;
4875 if test $unported = yes; then
4876 as_fn_error
"Emacs hasn't been ported to \`${canonical}' systems.
4877 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
4881 #### Choose a compiler.
4884 ac_cpp
='$CPP $CPPFLAGS'
4885 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4886 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4887 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4888 if test -n "$ac_tool_prefix"; then
4889 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4890 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
4891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4892 $as_echo_n "checking for $ac_word... " >&6; }
4893 if test "${ac_cv_prog_CC+set}" = set; then :
4894 $as_echo_n "(cached) " >&6
4896 if test -n "$CC"; then
4897 ac_cv_prog_CC
="$CC" # Let the user override the test.
4899 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4903 test -z "$as_dir" && as_dir
=.
4904 for ac_exec_ext
in '' $ac_executable_extensions; do
4905 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4906 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
4907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4917 if test -n "$CC"; then
4918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4919 $as_echo "$CC" >&6; }
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4922 $as_echo "no" >&6; }
4927 if test -z "$ac_cv_prog_CC"; then
4929 # Extract the first word of "gcc", so it can be a program name with args.
4930 set dummy gcc
; ac_word
=$2
4931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4932 $as_echo_n "checking for $ac_word... " >&6; }
4933 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4934 $as_echo_n "(cached) " >&6
4936 if test -n "$ac_ct_CC"; then
4937 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4939 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4943 test -z "$as_dir" && as_dir
=.
4944 for ac_exec_ext
in '' $ac_executable_extensions; do
4945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4946 ac_cv_prog_ac_ct_CC
="gcc"
4947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4956 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4957 if test -n "$ac_ct_CC"; then
4958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4959 $as_echo "$ac_ct_CC" >&6; }
4961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4962 $as_echo "no" >&6; }
4965 if test "x$ac_ct_CC" = x
; then
4968 case $cross_compiling:$ac_tool_warned in
4970 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4971 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4972 ac_tool_warned
=yes ;;
4980 if test -z "$CC"; then
4981 if test -n "$ac_tool_prefix"; then
4982 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4983 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
4984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4985 $as_echo_n "checking for $ac_word... " >&6; }
4986 if test "${ac_cv_prog_CC+set}" = set; then :
4987 $as_echo_n "(cached) " >&6
4989 if test -n "$CC"; then
4990 ac_cv_prog_CC
="$CC" # Let the user override the test.
4992 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4996 test -z "$as_dir" && as_dir
=.
4997 for ac_exec_ext
in '' $ac_executable_extensions; do
4998 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4999 ac_cv_prog_CC
="${ac_tool_prefix}cc"
5000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5010 if test -n "$CC"; then
5011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5012 $as_echo "$CC" >&6; }
5014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5015 $as_echo "no" >&6; }
5021 if test -z "$CC"; then
5022 # Extract the first word of "cc", so it can be a program name with args.
5023 set dummy cc
; ac_word
=$2
5024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5025 $as_echo_n "checking for $ac_word... " >&6; }
5026 if test "${ac_cv_prog_CC+set}" = set; then :
5027 $as_echo_n "(cached) " >&6
5029 if test -n "$CC"; then
5030 ac_cv_prog_CC
="$CC" # Let the user override the test.
5033 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5037 test -z "$as_dir" && as_dir
=.
5038 for ac_exec_ext
in '' $ac_executable_extensions; do
5039 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5040 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5041 ac_prog_rejected
=yes
5045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5052 if test $ac_prog_rejected = yes; then
5053 # We found a bogon in the path, so make sure we never use it.
5054 set dummy
$ac_cv_prog_CC
5056 if test $# != 0; then
5057 # We chose a different compiler from the bogus one.
5058 # However, it has the same basename, so the bogon will be chosen
5059 # first if we set CC to just the basename; use the full file name.
5061 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
5067 if test -n "$CC"; then
5068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5069 $as_echo "$CC" >&6; }
5071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5072 $as_echo "no" >&6; }
5077 if test -z "$CC"; then
5078 if test -n "$ac_tool_prefix"; then
5079 for ac_prog
in cl.exe
5081 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5082 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
5083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5084 $as_echo_n "checking for $ac_word... " >&6; }
5085 if test "${ac_cv_prog_CC+set}" = set; then :
5086 $as_echo_n "(cached) " >&6
5088 if test -n "$CC"; then
5089 ac_cv_prog_CC
="$CC" # Let the user override the test.
5091 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5095 test -z "$as_dir" && as_dir
=.
5096 for ac_exec_ext
in '' $ac_executable_extensions; do
5097 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5098 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
5099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5109 if test -n "$CC"; then
5110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5111 $as_echo "$CC" >&6; }
5113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5114 $as_echo "no" >&6; }
5118 test -n "$CC" && break
5121 if test -z "$CC"; then
5123 for ac_prog
in cl.exe
5125 # Extract the first word of "$ac_prog", so it can be a program name with args.
5126 set dummy
$ac_prog; ac_word
=$2
5127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5128 $as_echo_n "checking for $ac_word... " >&6; }
5129 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5130 $as_echo_n "(cached) " >&6
5132 if test -n "$ac_ct_CC"; then
5133 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
5135 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5139 test -z "$as_dir" && as_dir
=.
5140 for ac_exec_ext
in '' $ac_executable_extensions; do
5141 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5142 ac_cv_prog_ac_ct_CC
="$ac_prog"
5143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5152 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
5153 if test -n "$ac_ct_CC"; then
5154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5155 $as_echo "$ac_ct_CC" >&6; }
5157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5158 $as_echo "no" >&6; }
5162 test -n "$ac_ct_CC" && break
5165 if test "x$ac_ct_CC" = x
; then
5168 case $cross_compiling:$ac_tool_warned in
5170 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5171 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5172 ac_tool_warned
=yes ;;
5181 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5182 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5183 as_fn_error
"no acceptable C compiler found in \$PATH
5184 See \`config.log' for more details." "$LINENO" 5; }
5186 # Provide some information about the compiler.
5187 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5190 for ac_option
in --version -v -V -qversion; do
5191 { { ac_try
="$ac_compiler $ac_option >&5"
5193 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5194 *) ac_try_echo=$ac_try;;
5196 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5197 $as_echo "$ac_try_echo"; } >&5
5198 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5200 if test -s conftest.err; then
5202 ... rest of stderr output deleted ...
5203 10q' conftest.err >conftest.er1
5204 cat conftest.er1 >&5
5206 rm -f conftest.er1 conftest.err
5207 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5208 test $ac_status = 0; }
5211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5212 /* end confdefs.h. */
5222 ac_clean_files_save=$ac_clean_files
5223 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
5224 # Try to create an executable without -o first, disregard a.out.
5225 # It will help us diagnose broken compilers, and finding out an intuition
5227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
5228 $as_echo_n "checking whether the C compiler works... " >&6; }
5229 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
5231 # The possible output files:
5232 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
5235 for ac_file in $ac_files
5238 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5239 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
5244 if { { ac_try="$ac_link_default"
5246 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5247 *) ac_try_echo
=$ac_try;;
5249 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5250 $as_echo "$ac_try_echo"; } >&5
5251 (eval "$ac_link_default") 2>&5
5253 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5254 test $ac_status = 0; }; then :
5255 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
5256 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
5257 # in a Makefile. We should not override ac_cv_exeext if it was cached,
5258 # so that the user can short-circuit this test for compilers unknown to
5260 for ac_file
in $ac_files ''
5262 test -f "$ac_file" ||
continue
5264 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
5267 # We found the default executable, but exeext='' is most
5271 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
5273 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
5275 # We set ac_cv_exeext here because the later test for it is not
5276 # safe: cross compilers may not add the suffix if given an `-o'
5277 # argument, so we may need to know it at that point already.
5278 # Even if this section looks crufty: it has the advantage of
5285 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
5290 if test -z "$ac_file"; then :
5291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5292 $as_echo "no" >&6; }
5293 $as_echo "$as_me: failed program was:" >&5
5294 sed 's/^/| /' conftest.
$ac_ext >&5
5296 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5297 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5298 { as_fn_set_status
77
5299 as_fn_error
"C compiler cannot create executables
5300 See \`config.log' for more details." "$LINENO" 5; }; }
5302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5303 $as_echo "yes" >&6; }
5305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5306 $as_echo_n "checking for C compiler default output file name... " >&6; }
5307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5308 $as_echo "$ac_file" >&6; }
5309 ac_exeext
=$ac_cv_exeext
5311 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
5312 ac_clean_files
=$ac_clean_files_save
5313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5314 $as_echo_n "checking for suffix of executables... " >&6; }
5315 if { { ac_try
="$ac_link"
5317 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5318 *) ac_try_echo=$ac_try;;
5320 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5321 $as_echo "$ac_try_echo"; } >&5
5322 (eval "$ac_link") 2>&5
5324 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5325 test $ac_status = 0; }; then :
5326 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
5327 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
5328 # work properly (i.e., refer to `conftest.exe'), while it won't with
5330 for ac_file
in conftest.exe conftest conftest.
*; do
5331 test -f "$ac_file" ||
continue
5333 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
5334 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
5340 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5341 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5342 as_fn_error
"cannot compute suffix of executables: cannot compile and link
5343 See \`config.log' for more details." "$LINENO" 5; }
5345 rm -f conftest conftest
$ac_cv_exeext
5346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5347 $as_echo "$ac_cv_exeext" >&6; }
5349 rm -f conftest.
$ac_ext
5350 EXEEXT
=$ac_cv_exeext
5352 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5353 /* end confdefs.h. */
5358 FILE *f = fopen ("conftest.out", "w");
5359 return ferror (f) || fclose (f) != 0;
5365 ac_clean_files
="$ac_clean_files conftest.out"
5366 # Check that the compiler produces executables we can run. If not, either
5367 # the compiler is broken, or we cross compile.
5368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5369 $as_echo_n "checking whether we are cross compiling... " >&6; }
5370 if test "$cross_compiling" != yes; then
5371 { { ac_try
="$ac_link"
5373 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5374 *) ac_try_echo=$ac_try;;
5376 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5377 $as_echo "$ac_try_echo"; } >&5
5378 (eval "$ac_link") 2>&5
5380 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5381 test $ac_status = 0; }
5382 if { ac_try='./conftest$ac_cv_exeext'
5383 { { case "(($ac_try" in
5384 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5385 *) ac_try_echo
=$ac_try;;
5387 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5388 $as_echo "$ac_try_echo"; } >&5
5389 (eval "$ac_try") 2>&5
5391 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5392 test $ac_status = 0; }; }; then
5395 if test "$cross_compiling" = maybe
; then
5398 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5399 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5400 as_fn_error
"cannot run C compiled programs.
5401 If you meant to cross compile, use \`--host'.
5402 See \`config.log' for more details." "$LINENO" 5; }
5406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5407 $as_echo "$cross_compiling" >&6; }
5409 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
5410 ac_clean_files
=$ac_clean_files_save
5411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5412 $as_echo_n "checking for suffix of object files... " >&6; }
5413 if test "${ac_cv_objext+set}" = set; then :
5414 $as_echo_n "(cached) " >&6
5416 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5417 /* end confdefs.h. */
5427 rm -f conftest.o conftest.obj
5428 if { { ac_try
="$ac_compile"
5430 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5431 *) ac_try_echo=$ac_try;;
5433 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5434 $as_echo "$ac_try_echo"; } >&5
5435 (eval "$ac_compile") 2>&5
5437 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5438 test $ac_status = 0; }; then :
5439 for ac_file in conftest.o conftest.obj conftest.*; do
5440 test -f "$ac_file" || continue;
5442 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5443 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5448 $as_echo "$as_me: failed program was:" >&5
5449 sed 's/^/| /' conftest.$ac_ext >&5
5451 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5452 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5453 as_fn_error "cannot compute suffix of object files
: cannot compile
5454 See \
`config.log' for more details." "$LINENO" 5; }
5456 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5459 $as_echo "$ac_cv_objext" >&6; }
5460 OBJEXT=$ac_cv_objext
5462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5463 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5464 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5465 $as_echo_n "(cached) " >&6
5467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5468 /* end confdefs.h. */
5481 if ac_fn_c_try_compile "$LINENO"; then :
5486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5487 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5491 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5492 if test $ac_compiler_gnu = yes; then
5497 ac_test_CFLAGS=${CFLAGS+set}
5498 ac_save_CFLAGS=$CFLAGS
5499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5500 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5501 if test "${ac_cv_prog_cc_g+set}" = set; then :
5502 $as_echo_n "(cached) " >&6
5504 ac_save_c_werror_flag=$ac_c_werror_flag
5505 ac_c_werror_flag=yes
5508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5509 /* end confdefs.h. */
5519 if ac_fn_c_try_compile "$LINENO"; then :
5523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5524 /* end confdefs.h. */
5534 if ac_fn_c_try_compile "$LINENO"; then :
5537 ac_c_werror_flag=$ac_save_c_werror_flag
5539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5540 /* end confdefs.h. */
5550 if ac_fn_c_try_compile "$LINENO"; then :
5553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5558 ac_c_werror_flag=$ac_save_c_werror_flag
5560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5561 $as_echo "$ac_cv_prog_cc_g" >&6; }
5562 if test "$ac_test_CFLAGS" = set; then
5563 CFLAGS=$ac_save_CFLAGS
5564 elif test $ac_cv_prog_cc_g = yes; then
5565 if test "$GCC" = yes; then
5571 if test "$GCC" = yes; then
5577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5578 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5579 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5580 $as_echo_n "(cached) " >&6
5582 ac_cv_prog_cc_c89=no
5584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5585 /* end confdefs.h. */
5588 #include <sys/types.h>
5589 #include <sys/stat.h>
5590 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5591 struct buf { int x; };
5592 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5593 static char *e (p, i)
5599 static char *f (char * (*g) (char **, int), char **p, ...)
5604 s = g (p, va_arg (v,int));
5609 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5610 function prototypes and stuff, but not '\xHH' hex character constants.
5611 These don't provoke an error unfortunately, instead are silently treated
5612 as 'x'. The following induces an error, until -std is added to get
5613 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5614 array size at least. It's necessary to write '\x00'==0 to get something
5615 that's true only with -std. */
5616 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5618 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5619 inside strings and character constants. */
5621 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5623 int test (int i, double x);
5624 struct s1 {int (*f) (int a);};
5625 struct s2 {int (*f) (double a);};
5626 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5632 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5637 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5638 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5640 CC="$ac_save_CC $ac_arg"
5641 if ac_fn_c_try_compile "$LINENO"; then :
5642 ac_cv_prog_cc_c89=$ac_arg
5644 rm -f core conftest.err conftest.$ac_objext
5645 test "x$ac_cv_prog_cc_c89" != "xno" && break
5647 rm -f conftest.$ac_ext
5652 case "x$ac_cv_prog_cc_c89" in
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5655 $as_echo "none needed" >&6; } ;;
5657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5658 $as_echo "unsupported" >&6; } ;;
5660 CC="$CC $ac_cv_prog_cc_c89"
5661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5662 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5664 if test "x$ac_cv_prog_cc_c89" != xno; then :
5669 ac_cpp='$CPP $CPPFLAGS'
5670 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5671 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5672 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5673 DEPDIR="${am__leading_dot}deps"
5675 ac_config_commands="$ac_config_commands depfiles"
5678 am_make=${MAKE-make}
5679 cat > confinc << 'END'
5681 @echo this is the am__doit target
5684 # If we don't find an include directive, just comment out the code.
5685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5686 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5690 # First try GNU make style include.
5691 echo "include confinc" > confmf
5692 # Ignore all kinds of additional output from `make'.
5693 case `$am_make -s -f confmf 2> /dev/null` in #(
5694 *the\ am__doit\ target*)
5700 # Now try BSD make style include.
5701 if test "$am__include" = "#"; then
5702 echo '.include
"confinc"' > confmf
5703 case `$am_make -s -f confmf 2> /dev/null` in #(
5704 *the\ am__doit\ target*)
5705 am__include=.include
5713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5714 $as_echo "$_am_result" >&6; }
5715 rm -f confinc confmf
5717 # Check whether --enable-dependency-tracking was given.
5718 if test "${enable_dependency_tracking+set}" = set; then :
5719 enableval=$enable_dependency_tracking;
5722 if test "x$enable_dependency_tracking" != xno; then
5723 am_depcomp="$ac_aux_dir/depcomp"
5726 if test "x$enable_dependency_tracking" != xno
; then
5736 depcc
="$CC" am_compiler_list
=
5738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5739 $as_echo_n "checking dependency style of $depcc... " >&6; }
5740 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5741 $as_echo_n "(cached) " >&6
5743 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5744 # We make a subdir and do the tests there. Otherwise we can end up
5745 # making bogus files that we don't know about and never remove. For
5746 # instance it was reported that on HP-UX the gcc test will end up
5747 # making a dummy file named `D' -- because `-MD' means `put the output
5750 # Copy depcomp to subdir because otherwise we won't find it if we're
5751 # using a relative directory.
5752 cp "$am_depcomp" conftest.dir
5754 # We will build objects and dependencies in a subdirectory because
5755 # it helps to detect inapplicable dependency modes. For instance
5756 # both Tru64's cc and ICC support -MD to output dependencies as a
5757 # side effect of compilation, but ICC will put the dependencies in
5758 # the current directory while Tru64 will put them in the object
5762 am_cv_CC_dependencies_compiler_type
=none
5763 if test "$am_compiler_list" = ""; then
5764 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5767 case " $depcc " in #(
5768 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
5771 for depmode
in $am_compiler_list; do
5772 # Setup a source with many dependencies, because some compilers
5773 # like to wrap large dependency lists on column 80 (with \), and
5774 # we should not choose a depcomp mode which is confused by this.
5776 # We need to recreate these files for each test, as the compiler may
5777 # overwrite some of them when testing with obscure command lines.
5778 # This happens at least with the AIX C compiler.
5780 for i
in 1 2 3 4 5 6; do
5781 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
5782 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5783 # Solaris 8's {/usr,}/bin/sh.
5784 touch sub
/conftst
$i.h
5786 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5788 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5789 # mode. It turns out that the SunPro C++ compiler does not properly
5790 # handle `-M -o', and we need to detect this. Also, some Intel
5791 # versions had trouble with output in subdirs
5792 am__obj
=sub
/conftest.
${OBJEXT-o}
5793 am__minus_obj
="-o $am__obj"
5796 # This depmode causes a compiler race in universal mode.
5797 test "$am__universal" = false ||
continue
5800 # after this tag, mechanisms are not by side-effect, so they'll
5801 # only be used when explicitly requested
5802 if test "x$enable_dependency_tracking" = xyes
; then
5808 msvisualcpp | msvcmsys
)
5809 # This compiler won't grok `-c -o', but also, the minuso test has
5810 # not run yet. These depmodes are late enough in the game, and
5811 # so weak that their functioning should not be impacted.
5812 am__obj
=conftest.
${OBJEXT-o}
5817 if depmode
=$depmode \
5818 source=sub
/conftest.c object
=$am__obj \
5819 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
5820 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
5821 >/dev
/null
2>conftest.err
&&
5822 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
5823 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
5824 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
5825 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
5826 # icc doesn't choke on unknown options, it will just issue warnings
5827 # or remarks (even with -Werror). So we grep stderr for any message
5828 # that says an option was ignored or not supported.
5829 # When given -MP, icc 7.0 and 7.1 complain thusly:
5830 # icc: Command line warning: ignoring option '-M'; no argument required
5831 # The diagnosis changed in icc 8.0:
5832 # icc: Command line remark: option '-MP' not supported
5833 if (grep 'ignoring option' conftest.err ||
5834 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
5835 am_cv_CC_dependencies_compiler_type
=$depmode
5844 am_cv_CC_dependencies_compiler_type
=none
5848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5849 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5850 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
5853 test "x$enable_dependency_tracking" != xno \
5854 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
5856 am__fastdepCC_FALSE
='#'
5858 am__fastdepCC_TRUE
='#'
5859 am__fastdepCC_FALSE
=
5863 if test "x$CC" != xcc
; then
5864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5865 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5868 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5870 set dummy
$CC; ac_cc
=`$as_echo "$2" |
5871 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5872 if { as_var
=ac_cv_prog_cc_
${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
5873 $as_echo_n "(cached) " >&6
5875 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5876 /* end confdefs.h. */
5886 # Make sure it works both with $CC and with simple cc.
5887 # We do the test twice because some compilers refuse to overwrite an
5888 # existing .o file with -o, though they will create one.
5889 ac_try
='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5891 if { { case "(($ac_try" in
5892 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5893 *) ac_try_echo=$ac_try;;
5895 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5896 $as_echo "$ac_try_echo"; } >&5
5897 (eval "$ac_try") 2>&5
5899 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5900 test $ac_status = 0; } &&
5901 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5902 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5903 *) ac_try_echo
=$ac_try;;
5905 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5906 $as_echo "$ac_try_echo"; } >&5
5907 (eval "$ac_try") 2>&5
5909 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5910 test $ac_status = 0; };
5912 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
5913 if test "x$CC" != xcc
; then
5914 # Test first that cc exists at all.
5915 if { ac_try
='cc -c conftest.$ac_ext >&5'
5916 { { case "(($ac_try" in
5917 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5918 *) ac_try_echo=$ac_try;;
5920 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5921 $as_echo "$ac_try_echo"; } >&5
5922 (eval "$ac_try") 2>&5
5924 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5925 test $ac_status = 0; }; }; then
5926 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5928 if { { case "(($ac_try" in
5929 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5930 *) ac_try_echo
=$ac_try;;
5932 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5933 $as_echo "$ac_try_echo"; } >&5
5934 (eval "$ac_try") 2>&5
5936 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5937 test $ac_status = 0; } &&
5938 test -f conftest2.
$ac_objext && { { case "(($ac_try" in
5939 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5940 *) ac_try_echo=$ac_try;;
5942 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5943 $as_echo "$ac_try_echo"; } >&5
5944 (eval "$ac_try") 2>&5
5946 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5947 test $ac_status = 0; };
5952 # cc exists but doesn't like -o.
5953 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5958 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5960 rm -f core conftest*
5963 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5965 $as_echo "yes" >&6; }
5967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5968 $as_echo "no" >&6; }
5970 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5974 # FIXME: we rely on the cache variable name because
5975 # there is no other way.
5977 am_cc=`echo $2 |
sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5978 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5979 if test "$am_t" != yes; then
5980 # Losing compiler, so override with the script.
5981 # FIXME: It is wrong to rewrite CC.
5982 # But if we don't then we get into trouble of one sort or another.
5983 # A longer-term fix would be to have automake use am__CC in this case,
5984 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5985 CC="$am_aux_dir/compile $CC"
5990 if test x$GCC = xyes; then
5991 test "x$GCC_TEST_OPTIONS" != x && CC="$CC $GCC_TEST_OPTIONS"
5993 test "x$NON_GCC_TEST_OPTIONS" != x && CC="$CC $NON_GCC_TEST_OPTIONS"
5996 if test "x$opsys" = "xmingw32"; then
5997 BUILDING_FOR_WINDOWSNT_TRUE=
5998 BUILDING_FOR_WINDOWSNT_FALSE='#'
6000 BUILDING_FOR_WINDOWSNT_TRUE='#'
6001 BUILDING_FOR_WINDOWSNT_FALSE=
6005 # Avoid gnulib's tests for HAVE_WORKING_O_NOATIME and HAVE_WORKING_O_NOFOLLOW,
6006 # as we don't use them.
6008 # Avoid gnulib's threadlib module, as we do threads our own way.
6011 # Initialize gnulib right after choosing the compiler.
6014 ac_cpp='$CPP $CPPFLAGS'
6015 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6016 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6017 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6019 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6020 # On Suns, sometimes $CPP names a directory.
6021 if test -n "$CPP" && test -d "$CPP"; then
6024 if test -z "$CPP"; then
6025 if test "${ac_cv_prog_CPP+set}" = set; then :
6026 $as_echo_n "(cached) " >&6
6028 # Double quotes because CPP needs to be expanded
6029 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6032 for ac_c_preproc_warn_flag in '' yes
6034 # Use a header file that comes with gcc, so configuring glibc
6035 # with a fresh cross-compiler works.
6036 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6037 # <limits.h> exists even on freestanding compilers.
6038 # On the NeXT, cc -E runs the code through the compiler's parser,
6039 # not just through cpp. "Syntax error" is here to catch this case.
6040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6041 /* end confdefs.h. */
6043 # include <limits.h>
6045 # include <assert.h>
6049 if ac_fn_c_try_cpp "$LINENO"; then :
6052 # Broken: fails on valid input.
6055 rm -f conftest.err conftest.$ac_ext
6057 # OK, works on sane cases. Now check whether nonexistent headers
6058 # can be detected and how.
6059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6060 /* end confdefs.h. */
6061 #include <ac_nonexistent.h>
6063 if ac_fn_c_try_cpp "$LINENO"; then :
6064 # Broken: success on invalid input.
6067 # Passes both tests.
6071 rm -f conftest.err conftest.$ac_ext
6074 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6075 rm -f conftest.err conftest.
$ac_ext
6076 if $ac_preproc_ok; then :
6088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6089 $as_echo "$CPP" >&6; }
6091 for ac_c_preproc_warn_flag
in '' yes
6093 # Use a header file that comes with gcc, so configuring glibc
6094 # with a fresh cross-compiler works.
6095 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6096 # <limits.h> exists even on freestanding compilers.
6097 # On the NeXT, cc -E runs the code through the compiler's parser,
6098 # not just through cpp. "Syntax error" is here to catch this case.
6099 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6100 /* end confdefs.h. */
6102 # include <limits.h>
6104 # include <assert.h>
6108 if ac_fn_c_try_cpp
"$LINENO"; then :
6111 # Broken: fails on valid input.
6114 rm -f conftest.err conftest.
$ac_ext
6116 # OK, works on sane cases. Now check whether nonexistent headers
6117 # can be detected and how.
6118 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6119 /* end confdefs.h. */
6120 #include <ac_nonexistent.h>
6122 if ac_fn_c_try_cpp
"$LINENO"; then :
6123 # Broken: success on invalid input.
6126 # Passes both tests.
6130 rm -f conftest.err conftest.
$ac_ext
6133 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6134 rm -f conftest.err conftest.
$ac_ext
6135 if $ac_preproc_ok; then :
6138 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6139 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6140 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
6141 See \`config.log' for more details." "$LINENO" 5; }
6145 ac_cpp
='$CPP $CPPFLAGS'
6146 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6147 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6148 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6152 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6153 if test "${ac_cv_path_GREP+set}" = set; then :
6154 $as_echo_n "(cached) " >&6
6156 if test -z "$GREP"; then
6157 ac_path_GREP_found
=false
6158 # Loop through the user's path and test for each of PROGNAME-LIST
6159 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6160 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
6163 test -z "$as_dir" && as_dir
=.
6164 for ac_prog
in grep ggrep
; do
6165 for ac_exec_ext
in '' $ac_executable_extensions; do
6166 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
6167 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
6168 # Check for GNU ac_path_GREP and select it if it is found.
6169 # Check for GNU $ac_path_GREP
6170 case `"$ac_path_GREP" --version 2>&1` in
6172 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
6175 $as_echo_n 0123456789 >"conftest.in"
6178 cat "conftest.in" "conftest.in" >"conftest.tmp"
6179 mv "conftest.tmp" "conftest.in"
6180 cp "conftest.in" "conftest.nl"
6181 $as_echo 'GREP' >> "conftest.nl"
6182 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
6183 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
6184 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
6185 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6186 # Best one so far, save it but keep looking for a better one
6187 ac_cv_path_GREP
="$ac_path_GREP"
6188 ac_path_GREP_max
=$ac_count
6190 # 10*(2^10) chars as input seems more than enough
6191 test $ac_count -gt 10 && break
6193 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
6196 $ac_path_GREP_found && break 3
6201 if test -z "$ac_cv_path_GREP"; then
6202 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6205 ac_cv_path_GREP
=$GREP
6209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6210 $as_echo "$ac_cv_path_GREP" >&6; }
6211 GREP
="$ac_cv_path_GREP"
6214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6215 $as_echo_n "checking for egrep... " >&6; }
6216 if test "${ac_cv_path_EGREP+set}" = set; then :
6217 $as_echo_n "(cached) " >&6
6219 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
6220 then ac_cv_path_EGREP
="$GREP -E"
6222 if test -z "$EGREP"; then
6223 ac_path_EGREP_found
=false
6224 # Loop through the user's path and test for each of PROGNAME-LIST
6225 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6226 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
6229 test -z "$as_dir" && as_dir
=.
6230 for ac_prog
in egrep; do
6231 for ac_exec_ext
in '' $ac_executable_extensions; do
6232 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
6233 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
6234 # Check for GNU ac_path_EGREP and select it if it is found.
6235 # Check for GNU $ac_path_EGREP
6236 case `"$ac_path_EGREP" --version 2>&1` in
6238 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
6241 $as_echo_n 0123456789 >"conftest.in"
6244 cat "conftest.in" "conftest.in" >"conftest.tmp"
6245 mv "conftest.tmp" "conftest.in"
6246 cp "conftest.in" "conftest.nl"
6247 $as_echo 'EGREP' >> "conftest.nl"
6248 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
6249 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
6250 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
6251 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6252 # Best one so far, save it but keep looking for a better one
6253 ac_cv_path_EGREP
="$ac_path_EGREP"
6254 ac_path_EGREP_max
=$ac_count
6256 # 10*(2^10) chars as input seems more than enough
6257 test $ac_count -gt 10 && break
6259 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
6262 $ac_path_EGREP_found && break 3
6267 if test -z "$ac_cv_path_EGREP"; then
6268 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6271 ac_cv_path_EGREP
=$EGREP
6276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6277 $as_echo "$ac_cv_path_EGREP" >&6; }
6278 EGREP
="$ac_cv_path_EGREP"
6283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
6284 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
6285 if test "${gl_cv_c_amsterdam_compiler+set}" = set; then :
6286 $as_echo_n "(cached) " >&6
6289 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6290 /* end confdefs.h. */
6297 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6298 $EGREP "Amsterdam" >/dev
/null
2>&1; then :
6299 gl_cv_c_amsterdam_compiler
=yes
6301 gl_cv_c_amsterdam_compiler
=no
6307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
6308 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
6309 if test -z "$AR"; then
6310 if test $gl_cv_c_amsterdam_compiler = yes; then
6312 if test -z "$ARFLAGS"; then
6316 if test -n "$ac_tool_prefix"; then
6317 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6318 set dummy
${ac_tool_prefix}ar; ac_word
=$2
6319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6320 $as_echo_n "checking for $ac_word... " >&6; }
6321 if test "${ac_cv_prog_AR+set}" = set; then :
6322 $as_echo_n "(cached) " >&6
6324 if test -n "$AR"; then
6325 ac_cv_prog_AR
="$AR" # Let the user override the test.
6327 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6331 test -z "$as_dir" && as_dir
=.
6332 for ac_exec_ext
in '' $ac_executable_extensions; do
6333 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6334 ac_cv_prog_AR
="${ac_tool_prefix}ar"
6335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6345 if test -n "$AR"; then
6346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6347 $as_echo "$AR" >&6; }
6349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6350 $as_echo "no" >&6; }
6355 if test -z "$ac_cv_prog_AR"; then
6357 # Extract the first word of "ar", so it can be a program name with args.
6358 set dummy
ar; ac_word
=$2
6359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6360 $as_echo_n "checking for $ac_word... " >&6; }
6361 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6362 $as_echo_n "(cached) " >&6
6364 if test -n "$ac_ct_AR"; then
6365 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
6367 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6371 test -z "$as_dir" && as_dir
=.
6372 for ac_exec_ext
in '' $ac_executable_extensions; do
6373 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6374 ac_cv_prog_ac_ct_AR
="ar"
6375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6384 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
6385 if test -n "$ac_ct_AR"; then
6386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6387 $as_echo "$ac_ct_AR" >&6; }
6389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6390 $as_echo "no" >&6; }
6393 if test "x$ac_ct_AR" = x
; then
6396 case $cross_compiling:$ac_tool_warned in
6398 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6399 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6400 ac_tool_warned
=yes ;;
6408 if test -z "$ARFLAGS"; then
6413 if test -z "$ARFLAGS"; then
6419 if test -z "$RANLIB"; then
6420 if test $gl_cv_c_amsterdam_compiler = yes; then
6423 if test -n "$ac_tool_prefix"; then
6424 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6425 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
6426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6427 $as_echo_n "checking for $ac_word... " >&6; }
6428 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6429 $as_echo_n "(cached) " >&6
6431 if test -n "$RANLIB"; then
6432 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
6434 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6438 test -z "$as_dir" && as_dir
=.
6439 for ac_exec_ext
in '' $ac_executable_extensions; do
6440 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6441 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
6442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6451 RANLIB
=$ac_cv_prog_RANLIB
6452 if test -n "$RANLIB"; then
6453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6454 $as_echo "$RANLIB" >&6; }
6456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6457 $as_echo "no" >&6; }
6462 if test -z "$ac_cv_prog_RANLIB"; then
6463 ac_ct_RANLIB
=$RANLIB
6464 # Extract the first word of "ranlib", so it can be a program name with args.
6465 set dummy ranlib
; ac_word
=$2
6466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6467 $as_echo_n "checking for $ac_word... " >&6; }
6468 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6469 $as_echo_n "(cached) " >&6
6471 if test -n "$ac_ct_RANLIB"; then
6472 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
6474 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6478 test -z "$as_dir" && as_dir
=.
6479 for ac_exec_ext
in '' $ac_executable_extensions; do
6480 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6481 ac_cv_prog_ac_ct_RANLIB
="ranlib"
6482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6491 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
6492 if test -n "$ac_ct_RANLIB"; then
6493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6494 $as_echo "$ac_ct_RANLIB" >&6; }
6496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6497 $as_echo "no" >&6; }
6500 if test "x$ac_ct_RANLIB" = x
; then
6503 case $cross_compiling:$ac_tool_warned in
6505 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6506 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6507 ac_tool_warned
=yes ;;
6509 RANLIB
=$ac_ct_RANLIB
6512 RANLIB
="$ac_cv_prog_RANLIB"
6519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6520 $as_echo_n "checking for ANSI C header files... " >&6; }
6521 if test "${ac_cv_header_stdc+set}" = set; then :
6522 $as_echo_n "(cached) " >&6
6524 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6525 /* end confdefs.h. */
6539 if ac_fn_c_try_compile
"$LINENO"; then :
6540 ac_cv_header_stdc
=yes
6542 ac_cv_header_stdc
=no
6544 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6546 if test $ac_cv_header_stdc = yes; then
6547 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6548 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6549 /* end confdefs.h. */
6553 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6554 $EGREP "memchr" >/dev
/null
2>&1; then :
6557 ac_cv_header_stdc
=no
6563 if test $ac_cv_header_stdc = yes; then
6564 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6565 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6566 /* end confdefs.h. */
6570 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6571 $EGREP "free" >/dev
/null
2>&1; then :
6574 ac_cv_header_stdc
=no
6580 if test $ac_cv_header_stdc = yes; then
6581 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6582 if test "$cross_compiling" = yes; then :
6585 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6586 /* end confdefs.h. */
6589 #if ((' ' & 0x0FF) == 0x020)
6590 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6591 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6593 # define ISLOWER(c) \
6594 (('a' <= (c) && (c) <= 'i') \
6595 || ('j' <= (c) && (c) <= 'r') \
6596 || ('s' <= (c) && (c) <= 'z'))
6597 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6600 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6605 for (i = 0; i < 256; i++)
6606 if (XOR (islower (i), ISLOWER (i))
6607 || toupper (i) != TOUPPER (i))
6612 if ac_fn_c_try_run
"$LINENO"; then :
6615 ac_cv_header_stdc
=no
6617 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6618 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6624 $as_echo "$ac_cv_header_stdc" >&6; }
6625 if test $ac_cv_header_stdc = yes; then
6627 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6631 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6632 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
6633 inttypes.h stdint.h unistd.h
6635 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6636 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6638 eval as_val
=\$
$as_ac_Header
6639 if test "x$as_val" = x
""yes; then :
6640 cat >>confdefs.h
<<_ACEOF
6641 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6650 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
6651 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
6658 if test "$MINIX" = yes; then
6660 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6663 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6666 $as_echo "#define _MINIX 1" >>confdefs.h
6669 $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
6674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6675 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6676 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
6677 $as_echo_n "(cached) " >&6
6679 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6680 /* end confdefs.h. */
6682 # define __EXTENSIONS__ 1
6683 $ac_includes_default
6692 if ac_fn_c_try_compile
"$LINENO"; then :
6693 ac_cv_safe_to_define___extensions__
=yes
6695 ac_cv_safe_to_define___extensions__
=no
6697 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6700 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6701 test $ac_cv_safe_to_define___extensions__ = yes &&
6702 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6704 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6706 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
6708 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6710 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6712 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
6715 $as_echo_n "checking whether _XOPEN_SOURCE should be defined... " >&6; }
6716 if test "${ac_cv_should_define__xopen_source+set}" = set; then :
6717 $as_echo_n "(cached) " >&6
6719 ac_cv_should_define__xopen_source
=no
6720 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6721 /* end confdefs.h. */
6733 if ac_fn_c_try_compile
"$LINENO"; then :
6736 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6737 /* end confdefs.h. */
6739 #define _XOPEN_SOURCE 500
6750 if ac_fn_c_try_compile
"$LINENO"; then :
6751 ac_cv_should_define__xopen_source
=yes
6753 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6755 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
6758 $as_echo "$ac_cv_should_define__xopen_source" >&6; }
6759 test $ac_cv_should_define__xopen_source = yes &&
6760 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
6769 # Check whether --enable-largefile was given.
6770 if test "${enable_largefile+set}" = set; then :
6771 enableval
=$enable_largefile;
6774 if test "$enable_largefile" != no
; then
6776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6777 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6778 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
6779 $as_echo_n "(cached) " >&6
6781 ac_cv_sys_largefile_CC
=no
6782 if test "$GCC" != yes; then
6785 # IRIX 6.2 and later do not support large files by default,
6786 # so use the C compiler's -n32 option if that helps.
6787 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6788 /* end confdefs.h. */
6789 #include <sys/types.h>
6790 /* Check that off_t can represent 2**63 - 1 correctly.
6791 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6792 since some C++ compilers masquerading as C compilers
6793 incorrectly reject 9223372036854775807. */
6794 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6795 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6796 && LARGE_OFF_T % 2147483647 == 1)
6806 if ac_fn_c_try_compile
"$LINENO"; then :
6809 rm -f core conftest.err conftest.
$ac_objext
6811 if ac_fn_c_try_compile
"$LINENO"; then :
6812 ac_cv_sys_largefile_CC
=' -n32'; break
6814 rm -f core conftest.err conftest.
$ac_objext
6818 rm -f conftest.
$ac_ext
6821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6822 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6823 if test "$ac_cv_sys_largefile_CC" != no
; then
6824 CC
=$CC$ac_cv_sys_largefile_CC
6827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6828 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6829 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
6830 $as_echo_n "(cached) " >&6
6833 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6834 /* end confdefs.h. */
6835 #include <sys/types.h>
6836 /* Check that off_t can represent 2**63 - 1 correctly.
6837 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6838 since some C++ compilers masquerading as C compilers
6839 incorrectly reject 9223372036854775807. */
6840 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6841 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6842 && LARGE_OFF_T % 2147483647 == 1)
6852 if ac_fn_c_try_compile
"$LINENO"; then :
6853 ac_cv_sys_file_offset_bits
=no
; break
6855 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6856 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6857 /* end confdefs.h. */
6858 #define _FILE_OFFSET_BITS 64
6859 #include <sys/types.h>
6860 /* Check that off_t can represent 2**63 - 1 correctly.
6861 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6862 since some C++ compilers masquerading as C compilers
6863 incorrectly reject 9223372036854775807. */
6864 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6865 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6866 && LARGE_OFF_T % 2147483647 == 1)
6876 if ac_fn_c_try_compile
"$LINENO"; then :
6877 ac_cv_sys_file_offset_bits
=64; break
6879 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6880 ac_cv_sys_file_offset_bits
=unknown
6884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6885 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6886 case $ac_cv_sys_file_offset_bits in #(
6889 cat >>confdefs.h
<<_ACEOF
6890 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6895 if test $ac_cv_sys_file_offset_bits = unknown
; then
6896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6897 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6898 if test "${ac_cv_sys_large_files+set}" = set; then :
6899 $as_echo_n "(cached) " >&6
6902 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6903 /* end confdefs.h. */
6904 #include <sys/types.h>
6905 /* Check that off_t can represent 2**63 - 1 correctly.
6906 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6907 since some C++ compilers masquerading as C compilers
6908 incorrectly reject 9223372036854775807. */
6909 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6910 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6911 && LARGE_OFF_T % 2147483647 == 1)
6921 if ac_fn_c_try_compile
"$LINENO"; then :
6922 ac_cv_sys_large_files
=no
; break
6924 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6925 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6926 /* end confdefs.h. */
6927 #define _LARGE_FILES 1
6928 #include <sys/types.h>
6929 /* Check that off_t can represent 2**63 - 1 correctly.
6930 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6931 since some C++ compilers masquerading as C compilers
6932 incorrectly reject 9223372036854775807. */
6933 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6934 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6935 && LARGE_OFF_T % 2147483647 == 1)
6945 if ac_fn_c_try_compile
"$LINENO"; then :
6946 ac_cv_sys_large_files
=1; break
6948 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6949 ac_cv_sys_large_files
=unknown
6953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6954 $as_echo "$ac_cv_sys_large_files" >&6; }
6955 case $ac_cv_sys_large_files in #(
6958 cat >>confdefs.h
<<_ACEOF
6959 #define _LARGE_FILES $ac_cv_sys_large_files
6967 $as_echo "#define _DARWIN_USE_64_BIT_INODE 1" >>confdefs.h
6971 case $ac_cv_prog_cc_stdc in #(
6973 ac_cv_prog_cc_c99
=no
; ac_cv_prog_cc_c89
=no
;; #(
6975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
6976 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
6977 if test "${ac_cv_prog_cc_c99+set}" = set; then :
6978 $as_echo_n "(cached) " >&6
6980 ac_cv_prog_cc_c99
=no
6982 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6983 /* end confdefs.h. */
6985 #include <stdbool.h>
6990 // Check varargs macros. These examples are taken from C99 6.10.3.5.
6991 #define debug(...) fprintf (stderr, __VA_ARGS__)
6992 #define showlist(...) puts (#__VA_ARGS__)
6993 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6995 test_varargs_macros (void)
7000 debug ("X = %d\n", x);
7001 showlist (The first, second, and third items.);
7002 report (x>y, "x is %d but y is %d", x, y);
7005 // Check long long types.
7006 #define BIG64 18446744073709551615ull
7007 #define BIG32 4294967295ul
7008 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7010 your preprocessor is broken;
7014 your preprocessor is broken;
7016 static long long int bignum = -9223372036854775807LL;
7017 static unsigned long long int ubignum = BIG64;
7019 struct incomplete_array
7027 const wchar_t *name;
7031 typedef const char *ccp;
7034 test_restrict (ccp restrict text)
7036 // See if C++-style comments work.
7037 // Iterate through items via the restricted pointer.
7038 // Also check for declarations in for loops.
7039 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7044 // Check varargs and va_copy.
7046 test_varargs (const char *format, ...)
7049 va_start (args, format);
7051 va_copy (args_copy, args);
7062 str = va_arg (args_copy, const char *);
7065 number = va_arg (args_copy, int);
7068 fnumber = va_arg (args_copy, double);
7083 _Bool success = false;
7086 if (test_restrict ("String literal") == 0)
7088 char *restrict newvar = "Another string";
7091 test_varargs ("s, d' f .", "string", 65, 34.234);
7092 test_varargs_macros ();
7094 // Check flexible array members.
7095 struct incomplete_array *ia =
7096 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7098 for (int i = 0; i < ia->datasize; ++i)
7099 ia->data[i] = i * 1.234;
7101 // Check named initializers.
7102 struct named_init ni = {
7104 .name = L"Test wide string",
7105 .average = 543.34343,
7110 int dynamic_array[ni.number];
7111 dynamic_array[ni.number - 1] = 543;
7113 // work around unused variable warnings
7114 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7115 || dynamic_array[ni.number - 1] != 543);
7121 for ac_arg
in '' -std=gnu99
-std=c99
-c99 -AC99 -xc99=all
-qlanglvl=extc99
7123 CC
="$ac_save_CC $ac_arg"
7124 if ac_fn_c_try_compile
"$LINENO"; then :
7125 ac_cv_prog_cc_c99
=$ac_arg
7127 rm -f core conftest.err conftest.
$ac_objext
7128 test "x$ac_cv_prog_cc_c99" != "xno" && break
7130 rm -f conftest.
$ac_ext
7135 case "x$ac_cv_prog_cc_c99" in
7137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7138 $as_echo "none needed" >&6; } ;;
7140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7141 $as_echo "unsupported" >&6; } ;;
7143 CC
="$CC $ac_cv_prog_cc_c99"
7144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
7145 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7147 if test "x$ac_cv_prog_cc_c99" != xno
; then :
7148 ac_cv_prog_cc_stdc
=$ac_cv_prog_cc_c99
7150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
7151 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
7152 if test "${ac_cv_prog_cc_c89+set}" = set; then :
7153 $as_echo_n "(cached) " >&6
7155 ac_cv_prog_cc_c89
=no
7157 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7158 /* end confdefs.h. */
7161 #include <sys/types.h>
7162 #include <sys/stat.h>
7163 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
7164 struct buf { int x; };
7165 FILE * (*rcsopen) (struct buf *, struct stat *, int);
7166 static char *e (p, i)
7172 static char *f (char * (*g) (char **, int), char **p, ...)
7177 s = g (p, va_arg (v,int));
7182 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
7183 function prototypes and stuff, but not '\xHH' hex character constants.
7184 These don't provoke an error unfortunately, instead are silently treated
7185 as 'x'. The following induces an error, until -std is added to get
7186 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
7187 array size at least. It's necessary to write '\x00'==0 to get something
7188 that's true only with -std. */
7189 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
7191 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
7192 inside strings and character constants. */
7194 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
7196 int test (int i, double x);
7197 struct s1 {int (*f) (int a);};
7198 struct s2 {int (*f) (double a);};
7199 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7205 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
7210 for ac_arg
in '' -qlanglvl=extc89
-qlanglvl=ansi
-std \
7211 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7213 CC
="$ac_save_CC $ac_arg"
7214 if ac_fn_c_try_compile
"$LINENO"; then :
7215 ac_cv_prog_cc_c89
=$ac_arg
7217 rm -f core conftest.err conftest.
$ac_objext
7218 test "x$ac_cv_prog_cc_c89" != "xno" && break
7220 rm -f conftest.
$ac_ext
7225 case "x$ac_cv_prog_cc_c89" in
7227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7228 $as_echo "none needed" >&6; } ;;
7230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7231 $as_echo "unsupported" >&6; } ;;
7233 CC
="$CC $ac_cv_prog_cc_c89"
7234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
7235 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
7237 if test "x$ac_cv_prog_cc_c89" != xno
; then :
7238 ac_cv_prog_cc_stdc
=$ac_cv_prog_cc_c89
7240 ac_cv_prog_cc_stdc
=no
7246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
7247 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
7248 if test "${ac_cv_prog_cc_stdc+set}" = set; then :
7249 $as_echo_n "(cached) " >&6
7252 case $ac_cv_prog_cc_stdc in #(
7254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7255 $as_echo "unsupported" >&6; } ;; #(
7257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7258 $as_echo "none needed" >&6; } ;; #(
7260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
7261 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
7266 # Code from module alloca-opt:
7267 # Code from module allocator:
7268 # Code from module at-internal:
7269 # Code from module binary-io:
7270 # Code from module byteswap:
7271 # Code from module c-ctype:
7272 # Code from module c-strcase:
7273 # Code from module careadlinkat:
7274 # Code from module clock-time:
7275 # Code from module close-stream:
7276 # Code from module count-one-bits:
7277 # Code from module count-trailing-zeros:
7278 # Code from module crypto/md5:
7279 # Code from module crypto/sha1:
7280 # Code from module crypto/sha256:
7281 # Code from module crypto/sha512:
7282 # Code from module dirent:
7283 # Code from module dosname:
7284 # Code from module dtoastr:
7285 # Code from module dtotimespec:
7286 # Code from module dup2:
7287 # Code from module environ:
7288 # Code from module errno:
7289 # Code from module euidaccess:
7290 # Code from module execinfo:
7291 # Code from module extensions:
7293 # Code from module extern-inline:
7294 # Code from module faccessat:
7295 # Code from module fcntl:
7296 # Code from module fcntl-h:
7297 # Code from module fdatasync:
7298 # Code from module fdopendir:
7299 # Code from module filemode:
7300 # Code from module fpending:
7301 # Code from module fstatat:
7302 # Code from module fsync:
7303 # Code from module getdtablesize:
7304 # Code from module getgroups:
7305 # Code from module getloadavg:
7306 # Code from module getopt-gnu:
7307 # Code from module getopt-posix:
7308 # Code from module gettext-h:
7309 # Code from module gettime:
7310 # Code from module gettimeofday:
7311 # Code from module group-member:
7312 # Code from module include_next:
7313 # Code from module intprops:
7314 # Code from module inttypes-incomplete:
7315 # Code from module largefile:
7317 # Code from module lstat:
7318 # Code from module manywarnings:
7319 # Code from module memrchr:
7320 # Code from module mkostemp:
7321 # Code from module mktime:
7322 # Code from module multiarch:
7323 # Code from module nocrash:
7324 # Code from module openat-h:
7325 # Code from module pathmax:
7326 # Code from module pipe2:
7327 # Code from module pselect:
7328 # Code from module pthread_sigmask:
7329 # Code from module putenv:
7330 # Code from module qacl:
7331 # Code from module readlink:
7332 # Code from module readlinkat:
7333 # Code from module root-uid:
7334 # Code from module secure_getenv:
7335 # Code from module sig2str:
7336 # Code from module signal-h:
7337 # Code from module snippet/_Noreturn:
7338 # Code from module snippet/arg-nonnull:
7339 # Code from module snippet/c++defs:
7340 # Code from module snippet/warn-on-use:
7341 # Code from module socklen:
7342 # Code from module ssize_t:
7343 # Code from module stat:
7344 # Code from module stat-time:
7345 # Code from module stdalign:
7346 # Code from module stdarg:
7350 # Code from module stdbool:
7351 # Code from module stddef:
7352 # Code from module stdint:
7353 # Code from module stdio:
7354 # Code from module stdlib:
7355 # Code from module strftime:
7356 # Code from module string:
7357 # Code from module strtoimax:
7358 # Code from module strtoll:
7359 # Code from module strtoull:
7360 # Code from module strtoumax:
7361 # Code from module symlink:
7362 # Code from module sys_select:
7363 # Code from module sys_stat:
7364 # Code from module sys_time:
7365 # Code from module tempname:
7366 # Code from module time:
7367 # Code from module time_r:
7368 # Code from module timer-time:
7369 # Code from module timespec:
7370 # Code from module timespec-add:
7371 # Code from module timespec-sub:
7372 # Code from module u64:
7373 # Code from module unistd:
7374 # Code from module unsetenv:
7375 # Code from module utimens:
7376 # Code from module verify:
7377 # Code from module warnings:
7378 # Code from module xalloc-oversized:
7381 if test "$ac_test_CFLAGS" != set; then
7382 # It's helpful to have C macros available to GDB, so prefer -g3 to -g
7383 # if -g3 works and the user does not specify CFLAGS.
7384 # This test must follow gl_EARLY; otherwise AC_LINK_IFELSE complains.
7387 emacs_g3_CFLAGS
='-g3';;
7389 emacs_g3_CFLAGS
='-g3 -O2';;
7391 emacs_g3_CFLAGS
='';;
7393 if test -n "$emacs_g3_CFLAGS"; then
7394 emacs_save_CFLAGS
=$CFLAGS
7395 CFLAGS
=$emacs_g3_CFLAGS
7396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts $emacs_g3_CFLAGS" >&5
7397 $as_echo_n "checking whether $CC accepts $emacs_g3_CFLAGS... " >&6; }
7398 if test "${emacs_cv_prog_cc_g3+set}" = set; then :
7399 $as_echo_n "(cached) " >&6
7401 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7402 /* end confdefs.h. */
7412 if ac_fn_c_try_link
"$LINENO"; then :
7413 emacs_cv_prog_cc_g3
=yes
7415 emacs_cv_prog_cc_g3
=no
7417 rm -f core conftest.err conftest.
$ac_objext \
7418 conftest
$ac_exeext conftest.
$ac_ext
7420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_prog_cc_g3" >&5
7421 $as_echo "$emacs_cv_prog_cc_g3" >&6; }
7422 if test $emacs_cv_prog_cc_g3 != yes; then
7423 CFLAGS
=$emacs_save_CFLAGS
7425 if test $opsys = mingw32
; then
7426 CFLAGS
="$CFLAGS -gdwarf-2"
7433 # No optimization flag was inferred for this non-GCC compiler.
7434 # Try -O. This is needed for xlc on AIX; see Bug#14258.
7435 emacs_save_CFLAGS
=$CFLAGS
7436 test -z "$CFLAGS" || CFLAGS
="$CFLAGS "
7438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -O" >&5
7439 $as_echo_n "checking whether $CC accepts -O... " >&6; }
7440 if test "${emacs_cv_prog_cc_o+set}" = set; then :
7441 $as_echo_n "(cached) " >&6
7443 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7444 /* end confdefs.h. */
7454 if ac_fn_c_try_link
"$LINENO"; then :
7455 emacs_cv_prog_cc_o
=yes
7457 emacs_cv_prog_cc_o
=no
7459 rm -f core conftest.err conftest.
$ac_objext \
7460 conftest
$ac_exeext conftest.
$ac_ext
7462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_prog_cc_o" >&5
7463 $as_echo "$emacs_cv_prog_cc_o" >&6; }
7464 if test $emacs_cv_prog_cc_o != yes; then
7465 CFLAGS
=$emacs_save_CFLAGS
7470 # Check whether --enable-gcc-warnings was given.
7471 if test "${enable_gcc_warnings+set}" = set; then :
7472 enableval
=$enable_gcc_warnings; case $enableval in
7474 *) as_fn_error
"bad value $enableval for gcc-warnings option" "$LINENO" 5 ;;
7476 gl_gcc_warnings
=$enableval
7483 # Check whether --enable-link-time-optimization was given.
7484 if test "${enable_link_time_optimization+set}" = set; then :
7485 enableval
=$enable_link_time_optimization; if test "${enableval}" != "no"; then
7486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether link-time optimization is supported" >&5
7487 $as_echo_n "checking whether link-time optimization is supported... " >&6; }
7489 if test x
$GCC = xyes
; then
7490 CPUS
=`getconf _NPROCESSORS_ONLN 2>/dev/null`
7491 if test x
$CPUS != x
; then
7497 CFLAGS
="$CFLAGS $LTO"
7498 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7499 /* end confdefs.h. */
7509 if ac_fn_c_try_compile
"$LINENO"; then :
7510 ac_lto_supported
=yes
7514 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7515 CFLAGS
="$old_CFLAGS"
7517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_lto_supported" >&5
7518 $as_echo "$ac_lto_supported" >&6; }
7519 if test "$ac_lto_supported" = "yes"; then
7520 CFLAGS
="$CFLAGS $LTO"
7526 # gl_GCC_VERSION_IFELSE([major], [minor], [run-if-found], [run-if-not-found])
7527 # ------------------------------------------------
7528 # If $CPP is gcc-MAJOR.MINOR or newer, then run RUN-IF-FOUND.
7529 # Otherwise, run RUN-IF-NOT-FOUND.
7532 # clang is unduly picky about some things.
7533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler is clang" >&5
7534 $as_echo_n "checking whether the compiler is clang... " >&6; }
7535 if test "${emacs_cv_clang+set}" = set; then :
7536 $as_echo_n "(cached) " >&6
7538 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7539 /* end confdefs.h. */
7553 if ac_fn_c_try_compile
"$LINENO"; then :
7558 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_clang" >&5
7561 $as_echo "$emacs_cv_clang" >&6; }
7563 # When compiling with GCC, prefer -isystem to -I when including system
7564 # include files, to avoid generating useless diagnostics for the files.
7565 if test "$gl_gcc_warnings" != yes; then
7567 if test "$emacs_cv_clang" = yes
7569 # Turn off some warnings if supported.
7570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Werror -Wunknown-warning-option" >&5
7571 $as_echo_n "checking whether C compiler handles -Werror -Wunknown-warning-option... " >&6; }
7572 if test "${gl_cv_warn_c__Werror__Wunknown_warning_option+set}" = set; then :
7573 $as_echo_n "(cached) " >&6
7576 gl_save_compiler_FLAGS
="$CFLAGS"
7577 as_fn_append CFLAGS
" $gl_unknown_warnings_are_errors -Werror -Wunknown-warning-option"
7578 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7579 /* end confdefs.h. */
7589 if ac_fn_c_try_link
"$LINENO"; then :
7590 gl_cv_warn_c__Werror__Wunknown_warning_option
=yes
7592 gl_cv_warn_c__Werror__Wunknown_warning_option
=no
7594 rm -f core conftest.err conftest.
$ac_objext \
7595 conftest
$ac_exeext conftest.
$ac_ext
7596 CFLAGS
="$gl_save_compiler_FLAGS"
7599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Werror__Wunknown_warning_option" >&5
7600 $as_echo "$gl_cv_warn_c__Werror__Wunknown_warning_option" >&6; }
7601 if test "x$gl_cv_warn_c__Werror__Wunknown_warning_option" = x
""yes; then :
7602 gl_unknown_warnings_are_errors
='-Wunknown-warning-option -Werror'
7604 gl_unknown_warnings_are_errors
=
7608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-switch" >&5
7609 $as_echo_n "checking whether C compiler handles -Wno-switch... " >&6; }
7610 if test "${gl_cv_warn_c__Wno_switch+set}" = set; then :
7611 $as_echo_n "(cached) " >&6
7614 gl_save_compiler_FLAGS
="$CFLAGS"
7615 as_fn_append CFLAGS
" $gl_unknown_warnings_are_errors -Wswitch"
7616 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7617 /* end confdefs.h. */
7627 if ac_fn_c_try_link
"$LINENO"; then :
7628 gl_cv_warn_c__Wno_switch
=yes
7630 gl_cv_warn_c__Wno_switch
=no
7632 rm -f core conftest.err conftest.
$ac_objext \
7633 conftest
$ac_exeext conftest.
$ac_ext
7634 CFLAGS
="$gl_save_compiler_FLAGS"
7637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_switch" >&5
7638 $as_echo "$gl_cv_warn_c__Wno_switch" >&6; }
7639 if test "x$gl_cv_warn_c__Wno_switch" = x
""yes; then :
7640 as_fn_append WARN_CFLAGS
" -Wno-switch"
7645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-tautological-constant-out-of-range-compare" >&5
7646 $as_echo_n "checking whether C compiler handles -Wno-tautological-constant-out-of-range-compare... " >&6; }
7647 if test "${gl_cv_warn_c__Wno_tautological_constant_out_of_range_compare+set}" = set; then :
7648 $as_echo_n "(cached) " >&6
7651 gl_save_compiler_FLAGS
="$CFLAGS"
7652 as_fn_append CFLAGS
" $gl_unknown_warnings_are_errors -Wtautological-constant-out-of-range-compare"
7653 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7654 /* end confdefs.h. */
7664 if ac_fn_c_try_link
"$LINENO"; then :
7665 gl_cv_warn_c__Wno_tautological_constant_out_of_range_compare
=yes
7667 gl_cv_warn_c__Wno_tautological_constant_out_of_range_compare
=no
7669 rm -f core conftest.err conftest.
$ac_objext \
7670 conftest
$ac_exeext conftest.
$ac_ext
7671 CFLAGS
="$gl_save_compiler_FLAGS"
7674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_tautological_constant_out_of_range_compare" >&5
7675 $as_echo "$gl_cv_warn_c__Wno_tautological_constant_out_of_range_compare" >&6; }
7676 if test "x$gl_cv_warn_c__Wno_tautological_constant_out_of_range_compare" = x
""yes; then :
7677 as_fn_append WARN_CFLAGS
" -Wno-tautological-constant-out-of-range-compare"
7682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-pointer-sign" >&5
7683 $as_echo_n "checking whether C compiler handles -Wno-pointer-sign... " >&6; }
7684 if test "${gl_cv_warn_c__Wno_pointer_sign+set}" = set; then :
7685 $as_echo_n "(cached) " >&6
7688 gl_save_compiler_FLAGS
="$CFLAGS"
7689 as_fn_append CFLAGS
" $gl_unknown_warnings_are_errors -Wpointer-sign"
7690 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7691 /* end confdefs.h. */
7701 if ac_fn_c_try_link
"$LINENO"; then :
7702 gl_cv_warn_c__Wno_pointer_sign
=yes
7704 gl_cv_warn_c__Wno_pointer_sign
=no
7706 rm -f core conftest.err conftest.
$ac_objext \
7707 conftest
$ac_exeext conftest.
$ac_ext
7708 CFLAGS
="$gl_save_compiler_FLAGS"
7711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_pointer_sign" >&5
7712 $as_echo "$gl_cv_warn_c__Wno_pointer_sign" >&6; }
7713 if test "x$gl_cv_warn_c__Wno_pointer_sign" = x
""yes; then :
7714 as_fn_append WARN_CFLAGS
" -Wno-pointer-sign"
7722 # This, $nw, is the list of warnings we disable.
7725 case $with_x_toolkit in
7726 lucid | athena | motif
)
7727 # Old toolkits mishandle 'const'.
7728 nw
="$nw -Wwrite-strings"
7732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Werror" >&5
7733 $as_echo_n "checking whether C compiler handles -Werror... " >&6; }
7734 if test "${gl_cv_warn_c__Werror+set}" = set; then :
7735 $as_echo_n "(cached) " >&6
7738 gl_save_compiler_FLAGS
="$CFLAGS"
7739 as_fn_append CFLAGS
" $gl_unknown_warnings_are_errors -Werror"
7740 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7741 /* end confdefs.h. */
7751 if ac_fn_c_try_link
"$LINENO"; then :
7752 gl_cv_warn_c__Werror
=yes
7754 gl_cv_warn_c__Werror
=no
7756 rm -f core conftest.err conftest.
$ac_objext \
7757 conftest
$ac_exeext conftest.
$ac_ext
7758 CFLAGS
="$gl_save_compiler_FLAGS"
7761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Werror" >&5
7762 $as_echo "$gl_cv_warn_c__Werror" >&6; }
7763 if test "x$gl_cv_warn_c__Werror" = x
""yes; then :
7764 as_fn_append WERROR_CFLAGS
" -Werror"
7772 nw
="$nw -Wsystem-headers" # Don't let system headers trigger warnings
7773 nw
="$nw -Woverlength-strings" # Not a problem these days
7774 nw
="$nw -Wlogical-op" # any use of fwrite provokes this
7775 nw
="$nw -Wformat-nonliteral" # we do this a lot
7776 nw
="$nw -Wvla" # warnings in gettext.h
7777 nw
="$nw -Wnested-externs" # use of XARGMATCH/verify_function__
7778 nw
="$nw -Wswitch-default" # Too many warnings for now
7779 nw
="$nw -Winline" # OK to ignore 'inline'
7780 nw
="$nw -Wjump-misses-init" # We sometimes safely jump over init.
7781 nw
="$nw -Wstrict-overflow" # OK to optimize assuming that
7782 # signed overflow has undefined behavior
7783 nw
="$nw -Wsync-nand" # irrelevant here, and provokes ObjC warning
7784 nw
="$nw -Wunsafe-loop-optimizations" # OK to suppress unsafe optimizations
7785 nw
="$nw -Wbad-function-cast" # These casts are no worse than others.
7787 # Emacs doesn't care about shadowing; see
7788 # <http://lists.gnu.org/archive/html/emacs-diffs/2011-11/msg00265.html>.
7791 # Emacs's use of alloca inhibits protecting the stack.
7792 nw
="$nw -Wstack-protector"
7794 # The following line should be removable at some point.
7795 nw
="$nw -Wsuggest-attribute=pure"
7797 # This part is merely for shortening the command line,
7798 # since -Wno-FOO needs to be added below regardless.
7799 nw
="$nw -Wmissing-field-initializers"
7801 nw
="$nw -Wtype-limits"
7802 nw
="$nw -Wunused-parameter"
7804 if test $emacs_cv_clang = yes; then
7805 nw
="$nw -Wcast-align"
7810 if test -n "$GCC"; then
7812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is supported" >&5
7813 $as_echo_n "checking whether -Wno-missing-field-initializers is supported... " >&6; }
7814 if test "${gl_cv_cc_nomfi_supported+set}" = set; then :
7815 $as_echo_n "(cached) " >&6
7818 gl_save_CFLAGS
="$CFLAGS"
7819 CFLAGS
="$CFLAGS -W -Werror -Wno-missing-field-initializers"
7820 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7821 /* end confdefs.h. */
7831 if ac_fn_c_try_compile
"$LINENO"; then :
7832 gl_cv_cc_nomfi_supported
=yes
7834 gl_cv_cc_nomfi_supported
=no
7836 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7837 CFLAGS
="$gl_save_CFLAGS"
7840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_supported" >&5
7841 $as_echo "$gl_cv_cc_nomfi_supported" >&6; }
7843 if test "$gl_cv_cc_nomfi_supported" = yes; then
7844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is needed" >&5
7845 $as_echo_n "checking whether -Wno-missing-field-initializers is needed... " >&6; }
7846 if test "${gl_cv_cc_nomfi_needed+set}" = set; then :
7847 $as_echo_n "(cached) " >&6
7850 gl_save_CFLAGS
="$CFLAGS"
7851 CFLAGS
="$CFLAGS -W -Werror"
7852 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7853 /* end confdefs.h. */
7856 typedef struct { int a; int b; } s_t;
7868 if ac_fn_c_try_compile
"$LINENO"; then :
7869 gl_cv_cc_nomfi_needed
=no
7871 gl_cv_cc_nomfi_needed
=yes
7873 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7874 CFLAGS
="$gl_save_CFLAGS"
7878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_needed" >&5
7879 $as_echo "$gl_cv_cc_nomfi_needed" >&6; }
7882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wuninitialized is supported" >&5
7883 $as_echo_n "checking whether -Wuninitialized is supported... " >&6; }
7884 if test "${gl_cv_cc_uninitialized_supported+set}" = set; then :
7885 $as_echo_n "(cached) " >&6
7888 gl_save_CFLAGS
="$CFLAGS"
7889 CFLAGS
="$CFLAGS -Werror -Wuninitialized"
7890 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7891 /* end confdefs.h. */
7901 if ac_fn_c_try_compile
"$LINENO"; then :
7902 gl_cv_cc_uninitialized_supported
=yes
7904 gl_cv_cc_uninitialized_supported
=no
7906 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7907 CFLAGS
="$gl_save_CFLAGS"
7910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_uninitialized_supported" >&5
7911 $as_echo "$gl_cv_cc_uninitialized_supported" >&6; }
7915 # List all gcc warning categories.
7917 for gl_manywarn_item
in \
7921 -Waggressive-loop-optimizations \
7925 -Wbad-function-cast \
7926 -Wbuiltin-macro-redefined \
7932 -Wcoverage-mismatch \
7935 -Wdeprecated-declarations \
7936 -Wdisabled-optimization \
7938 -Wdouble-promotion \
7943 -Wformat-contains-nul \
7944 -Wformat-extra-args \
7945 -Wformat-nonliteral \
7948 -Wformat-zero-length \
7949 -Wfree-nonheap-object \
7950 -Wignored-qualifiers \
7952 -Wimplicit-function-declaration \
7956 -Wint-to-pointer-cast \
7957 -Winvalid-memory-model \
7959 -Wjump-misses-init \
7962 -Wmaybe-uninitialized \
7964 -Wmissing-declarations \
7965 -Wmissing-field-initializers \
7966 -Wmissing-include-dirs \
7967 -Wmissing-parameter-type \
7968 -Wmissing-prototypes \
7975 -Wold-style-declaration \
7976 -Wold-style-definition \
7978 -Woverlength-strings \
7981 -Wpacked-bitfield-compat \
7985 -Wpointer-to-int-cast \
7987 -Wreturn-local-addr \
7991 -Wsizeof-pointer-memaccess \
7995 -Wstrict-prototypes \
7996 -Wsuggest-attribute=const \
7997 -Wsuggest-attribute=format \
7998 -Wsuggest-attribute=noreturn \
7999 -Wsuggest-attribute=pure \
8009 -Wunsafe-loop-optimizations \
8011 -Wunused-but-set-parameter \
8012 -Wunused-but-set-variable \
8015 -Wunused-local-typedefs \
8017 -Wunused-parameter \
8023 -Wvector-operation-performance \
8025 -Wvolatile-register-var \
8027 -fdiagnostics-show-option \
8031 gl_manywarn_set
="$gl_manywarn_set $gl_manywarn_item"
8034 # Disable specific options as needed.
8035 if test "$gl_cv_cc_nomfi_needed" = yes; then
8036 gl_manywarn_set
="$gl_manywarn_set -Wno-missing-field-initializers"
8039 if test "$gl_cv_cc_uninitialized_supported" = no
; then
8040 gl_manywarn_set
="$gl_manywarn_set -Wno-uninitialized"
8051 *" $gl_warn_item "*)
8054 gl_warn_set
="$gl_warn_set $gl_warn_item"
8062 as_gl_Warn
=`$as_echo "gl_cv_warn_c_$w" | $as_tr_sh`
8064 case $gl_positive in
8065 -Wno-*) gl_positive
=-W`expr "X$gl_positive" : 'X-Wno-\(.*\)'` ;;
8067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles $w" >&5
8068 $as_echo_n "checking whether C compiler handles $w... " >&6; }
8069 if { as_var
=$as_gl_Warn; eval "test \"\${$as_var+set}\" = set"; }; then :
8070 $as_echo_n "(cached) " >&6
8073 gl_save_compiler_FLAGS
="$CFLAGS"
8074 as_fn_append CFLAGS
" $gl_unknown_warnings_are_errors $gl_positive"
8075 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8076 /* end confdefs.h. */
8086 if ac_fn_c_try_link
"$LINENO"; then :
8087 eval "$as_gl_Warn=yes"
8089 eval "$as_gl_Warn=no"
8091 rm -f core conftest.err conftest.
$ac_objext \
8092 conftest
$ac_exeext conftest.
$ac_ext
8093 CFLAGS
="$gl_save_compiler_FLAGS"
8096 eval ac_res
=\$
$as_gl_Warn
8097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8098 $as_echo "$ac_res" >&6; }
8099 eval as_val
=\$
$as_gl_Warn
8100 if test "x$as_val" = x
""yes; then :
8101 as_fn_append WARN_CFLAGS
" $w"
8107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-missing-field-initializers" >&5
8108 $as_echo_n "checking whether C compiler handles -Wno-missing-field-initializers... " >&6; }
8109 if test "${gl_cv_warn_c__Wno_missing_field_initializers+set}" = set; then :
8110 $as_echo_n "(cached) " >&6
8113 gl_save_compiler_FLAGS
="$CFLAGS"
8114 as_fn_append CFLAGS
" $gl_unknown_warnings_are_errors -Wmissing-field-initializers"
8115 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8116 /* end confdefs.h. */
8126 if ac_fn_c_try_link
"$LINENO"; then :
8127 gl_cv_warn_c__Wno_missing_field_initializers
=yes
8129 gl_cv_warn_c__Wno_missing_field_initializers
=no
8131 rm -f core conftest.err conftest.
$ac_objext \
8132 conftest
$ac_exeext conftest.
$ac_ext
8133 CFLAGS
="$gl_save_compiler_FLAGS"
8136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_missing_field_initializers" >&5
8137 $as_echo "$gl_cv_warn_c__Wno_missing_field_initializers" >&6; }
8138 if test "x$gl_cv_warn_c__Wno_missing_field_initializers" = x
""yes; then :
8139 as_fn_append WARN_CFLAGS
" -Wno-missing-field-initializers"
8144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-sign-compare" >&5
8145 $as_echo_n "checking whether C compiler handles -Wno-sign-compare... " >&6; }
8146 if test "${gl_cv_warn_c__Wno_sign_compare+set}" = set; then :
8147 $as_echo_n "(cached) " >&6
8150 gl_save_compiler_FLAGS
="$CFLAGS"
8151 as_fn_append CFLAGS
" $gl_unknown_warnings_are_errors -Wsign-compare"
8152 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8153 /* end confdefs.h. */
8163 if ac_fn_c_try_link
"$LINENO"; then :
8164 gl_cv_warn_c__Wno_sign_compare
=yes
8166 gl_cv_warn_c__Wno_sign_compare
=no
8168 rm -f core conftest.err conftest.
$ac_objext \
8169 conftest
$ac_exeext conftest.
$ac_ext
8170 CFLAGS
="$gl_save_compiler_FLAGS"
8173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_sign_compare" >&5
8174 $as_echo "$gl_cv_warn_c__Wno_sign_compare" >&6; }
8175 if test "x$gl_cv_warn_c__Wno_sign_compare" = x
""yes; then :
8176 as_fn_append WARN_CFLAGS
" -Wno-sign-compare"
8179 # Too many warnings for now
8181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-type-limits" >&5
8182 $as_echo_n "checking whether C compiler handles -Wno-type-limits... " >&6; }
8183 if test "${gl_cv_warn_c__Wno_type_limits+set}" = set; then :
8184 $as_echo_n "(cached) " >&6
8187 gl_save_compiler_FLAGS
="$CFLAGS"
8188 as_fn_append CFLAGS
" $gl_unknown_warnings_are_errors -Wtype-limits"
8189 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8190 /* end confdefs.h. */
8200 if ac_fn_c_try_link
"$LINENO"; then :
8201 gl_cv_warn_c__Wno_type_limits
=yes
8203 gl_cv_warn_c__Wno_type_limits
=no
8205 rm -f core conftest.err conftest.
$ac_objext \
8206 conftest
$ac_exeext conftest.
$ac_ext
8207 CFLAGS
="$gl_save_compiler_FLAGS"
8210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_type_limits" >&5
8211 $as_echo "$gl_cv_warn_c__Wno_type_limits" >&6; }
8212 if test "x$gl_cv_warn_c__Wno_type_limits" = x
""yes; then :
8213 as_fn_append WARN_CFLAGS
" -Wno-type-limits"
8216 # Too many warnings for now
8218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-switch" >&5
8219 $as_echo_n "checking whether C compiler handles -Wno-switch... " >&6; }
8220 if test "${gl_cv_warn_c__Wno_switch+set}" = set; then :
8221 $as_echo_n "(cached) " >&6
8224 gl_save_compiler_FLAGS
="$CFLAGS"
8225 as_fn_append CFLAGS
" $gl_unknown_warnings_are_errors -Wswitch"
8226 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8227 /* end confdefs.h. */
8237 if ac_fn_c_try_link
"$LINENO"; then :
8238 gl_cv_warn_c__Wno_switch
=yes
8240 gl_cv_warn_c__Wno_switch
=no
8242 rm -f core conftest.err conftest.
$ac_objext \
8243 conftest
$ac_exeext conftest.
$ac_ext
8244 CFLAGS
="$gl_save_compiler_FLAGS"
8247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_switch" >&5
8248 $as_echo "$gl_cv_warn_c__Wno_switch" >&6; }
8249 if test "x$gl_cv_warn_c__Wno_switch" = x
""yes; then :
8250 as_fn_append WARN_CFLAGS
" -Wno-switch"
8253 # Too many warnings for now
8255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-unused-parameter" >&5
8256 $as_echo_n "checking whether C compiler handles -Wno-unused-parameter... " >&6; }
8257 if test "${gl_cv_warn_c__Wno_unused_parameter+set}" = set; then :
8258 $as_echo_n "(cached) " >&6
8261 gl_save_compiler_FLAGS
="$CFLAGS"
8262 as_fn_append CFLAGS
" $gl_unknown_warnings_are_errors -Wunused-parameter"
8263 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8264 /* end confdefs.h. */
8274 if ac_fn_c_try_link
"$LINENO"; then :
8275 gl_cv_warn_c__Wno_unused_parameter
=yes
8277 gl_cv_warn_c__Wno_unused_parameter
=no
8279 rm -f core conftest.err conftest.
$ac_objext \
8280 conftest
$ac_exeext conftest.
$ac_ext
8281 CFLAGS
="$gl_save_compiler_FLAGS"
8284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_unused_parameter" >&5
8285 $as_echo "$gl_cv_warn_c__Wno_unused_parameter" >&6; }
8286 if test "x$gl_cv_warn_c__Wno_unused_parameter" = x
""yes; then :
8287 as_fn_append WARN_CFLAGS
" -Wno-unused-parameter"
8290 # Too many warnings for now
8292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-format-nonliteral" >&5
8293 $as_echo_n "checking whether C compiler handles -Wno-format-nonliteral... " >&6; }
8294 if test "${gl_cv_warn_c__Wno_format_nonliteral+set}" = set; then :
8295 $as_echo_n "(cached) " >&6
8298 gl_save_compiler_FLAGS
="$CFLAGS"
8299 as_fn_append CFLAGS
" $gl_unknown_warnings_are_errors -Wformat-nonliteral"
8300 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8301 /* end confdefs.h. */
8311 if ac_fn_c_try_link
"$LINENO"; then :
8312 gl_cv_warn_c__Wno_format_nonliteral
=yes
8314 gl_cv_warn_c__Wno_format_nonliteral
=no
8316 rm -f core conftest.err conftest.
$ac_objext \
8317 conftest
$ac_exeext conftest.
$ac_ext
8318 CFLAGS
="$gl_save_compiler_FLAGS"
8321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_format_nonliteral" >&5
8322 $as_echo "$gl_cv_warn_c__Wno_format_nonliteral" >&6; }
8323 if test "x$gl_cv_warn_c__Wno_format_nonliteral" = x
""yes; then :
8324 as_fn_append WARN_CFLAGS
" -Wno-format-nonliteral"
8329 # In spite of excluding -Wlogical-op above, it is enabled, as of
8330 # gcc 4.5.0 20090517.
8332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-logical-op" >&5
8333 $as_echo_n "checking whether C compiler handles -Wno-logical-op... " >&6; }
8334 if test "${gl_cv_warn_c__Wno_logical_op+set}" = set; then :
8335 $as_echo_n "(cached) " >&6
8338 gl_save_compiler_FLAGS
="$CFLAGS"
8339 as_fn_append CFLAGS
" $gl_unknown_warnings_are_errors -Wlogical-op"
8340 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8341 /* end confdefs.h. */
8351 if ac_fn_c_try_link
"$LINENO"; then :
8352 gl_cv_warn_c__Wno_logical_op
=yes
8354 gl_cv_warn_c__Wno_logical_op
=no
8356 rm -f core conftest.err conftest.
$ac_objext \
8357 conftest
$ac_exeext conftest.
$ac_ext
8358 CFLAGS
="$gl_save_compiler_FLAGS"
8361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_logical_op" >&5
8362 $as_echo "$gl_cv_warn_c__Wno_logical_op" >&6; }
8363 if test "x$gl_cv_warn_c__Wno_logical_op" = x
""yes; then :
8364 as_fn_append WARN_CFLAGS
" -Wno-logical-op"
8369 # More things that clang is unduly picky about.
8370 if test $emacs_cv_clang = yes; then
8372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-format-extra-args" >&5
8373 $as_echo_n "checking whether C compiler handles -Wno-format-extra-args... " >&6; }
8374 if test "${gl_cv_warn_c__Wno_format_extra_args+set}" = set; then :
8375 $as_echo_n "(cached) " >&6
8378 gl_save_compiler_FLAGS
="$CFLAGS"
8379 as_fn_append CFLAGS
" $gl_unknown_warnings_are_errors -Wformat-extra-args"
8380 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8381 /* end confdefs.h. */
8391 if ac_fn_c_try_link
"$LINENO"; then :
8392 gl_cv_warn_c__Wno_format_extra_args
=yes
8394 gl_cv_warn_c__Wno_format_extra_args
=no
8396 rm -f core conftest.err conftest.
$ac_objext \
8397 conftest
$ac_exeext conftest.
$ac_ext
8398 CFLAGS
="$gl_save_compiler_FLAGS"
8401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_format_extra_args" >&5
8402 $as_echo "$gl_cv_warn_c__Wno_format_extra_args" >&6; }
8403 if test "x$gl_cv_warn_c__Wno_format_extra_args" = x
""yes; then :
8404 as_fn_append WARN_CFLAGS
" -Wno-format-extra-args"
8409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-tautological-constant-out-of-range-compare" >&5
8410 $as_echo_n "checking whether C compiler handles -Wno-tautological-constant-out-of-range-compare... " >&6; }
8411 if test "${gl_cv_warn_c__Wno_tautological_constant_out_of_range_compare+set}" = set; then :
8412 $as_echo_n "(cached) " >&6
8415 gl_save_compiler_FLAGS
="$CFLAGS"
8416 as_fn_append CFLAGS
" $gl_unknown_warnings_are_errors -Wtautological-constant-out-of-range-compare"
8417 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8418 /* end confdefs.h. */
8428 if ac_fn_c_try_link
"$LINENO"; then :
8429 gl_cv_warn_c__Wno_tautological_constant_out_of_range_compare
=yes
8431 gl_cv_warn_c__Wno_tautological_constant_out_of_range_compare
=no
8433 rm -f core conftest.err conftest.
$ac_objext \
8434 conftest
$ac_exeext conftest.
$ac_ext
8435 CFLAGS
="$gl_save_compiler_FLAGS"
8438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_tautological_constant_out_of_range_compare" >&5
8439 $as_echo "$gl_cv_warn_c__Wno_tautological_constant_out_of_range_compare" >&6; }
8440 if test "x$gl_cv_warn_c__Wno_tautological_constant_out_of_range_compare" = x
""yes; then :
8441 as_fn_append WARN_CFLAGS
" -Wno-tautological-constant-out-of-range-compare"
8446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-unused-command-line-argument" >&5
8447 $as_echo_n "checking whether C compiler handles -Wno-unused-command-line-argument... " >&6; }
8448 if test "${gl_cv_warn_c__Wno_unused_command_line_argument+set}" = set; then :
8449 $as_echo_n "(cached) " >&6
8452 gl_save_compiler_FLAGS
="$CFLAGS"
8453 as_fn_append CFLAGS
" $gl_unknown_warnings_are_errors -Wunused-command-line-argument"
8454 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8455 /* end confdefs.h. */
8465 if ac_fn_c_try_link
"$LINENO"; then :
8466 gl_cv_warn_c__Wno_unused_command_line_argument
=yes
8468 gl_cv_warn_c__Wno_unused_command_line_argument
=no
8470 rm -f core conftest.err conftest.
$ac_objext \
8471 conftest
$ac_exeext conftest.
$ac_ext
8472 CFLAGS
="$gl_save_compiler_FLAGS"
8475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_unused_command_line_argument" >&5
8476 $as_echo "$gl_cv_warn_c__Wno_unused_command_line_argument" >&6; }
8477 if test "x$gl_cv_warn_c__Wno_unused_command_line_argument" = x
""yes; then :
8478 as_fn_append WARN_CFLAGS
" -Wno-unused-command-line-argument"
8483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-unused-value" >&5
8484 $as_echo_n "checking whether C compiler handles -Wno-unused-value... " >&6; }
8485 if test "${gl_cv_warn_c__Wno_unused_value+set}" = set; then :
8486 $as_echo_n "(cached) " >&6
8489 gl_save_compiler_FLAGS
="$CFLAGS"
8490 as_fn_append CFLAGS
" $gl_unknown_warnings_are_errors -Wunused-value"
8491 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8492 /* end confdefs.h. */
8502 if ac_fn_c_try_link
"$LINENO"; then :
8503 gl_cv_warn_c__Wno_unused_value
=yes
8505 gl_cv_warn_c__Wno_unused_value
=no
8507 rm -f core conftest.err conftest.
$ac_objext \
8508 conftest
$ac_exeext conftest.
$ac_ext
8509 CFLAGS
="$gl_save_compiler_FLAGS"
8512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_unused_value" >&5
8513 $as_echo "$gl_cv_warn_c__Wno_unused_value" >&6; }
8514 if test "x$gl_cv_warn_c__Wno_unused_value" = x
""yes; then :
8515 as_fn_append WARN_CFLAGS
" -Wno-unused-value"
8522 $as_echo "#define lint 1" >>confdefs.h
8526 $as_echo "#define GNULIB_PORTCHECK 1" >>confdefs.h
8529 # We use a slightly smaller set of warning options for lib/.
8530 # Remove the following and save the result in GNULIB_WARN_CFLAGS.
8532 nw
="$nw -Wunused-macros"
8536 set x
$WARN_CFLAGS; shift
8540 *" $gl_warn_item "*)
8543 gl_warn_set
="$gl_warn_set $gl_warn_item"
8547 GNULIB_WARN_CFLAGS
=$gl_warn_set
8557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works for files in the same directory" >&5
8558 $as_echo_n "checking whether ln -s works for files in the same directory... " >&6; }
8559 rm -f conf$$ conf$$.
file
8561 LN_S_FILEONLY
='cp -p'
8563 if (echo >conf$$.
file) 2>/dev
/null
; then
8564 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
8565 LN_S_FILEONLY
='ln -s'
8566 elif ln conf$$.
file conf$$
2>/dev
/null
; then
8571 rm -f conf$$ conf$$.
file
8573 if test "$LN_S_FILEONLY" = "ln -s"; then
8574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8575 $as_echo "yes" >&6; }
8577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S_FILEONLY" >&5
8578 $as_echo "no, using $LN_S_FILEONLY" >&6; }
8584 if test "$opsys" = "mingw32"; then
8588 # Extract the first word of "install-info", so it can be a program name with args.
8589 set dummy install-info
; ac_word
=$2
8590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8591 $as_echo_n "checking for $ac_word... " >&6; }
8592 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
8593 $as_echo_n "(cached) " >&6
8595 case $INSTALL_INFO in
8597 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
8600 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8601 for as_dir
in $PATH$PATH_SEPARATOR/usr
/sbin
$PATH_SEPARATOR/sbin
8604 test -z "$as_dir" && as_dir
=.
8605 for ac_exec_ext
in '' $ac_executable_extensions; do
8606 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8607 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
8608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8615 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
8619 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
8620 if test -n "$INSTALL_INFO"; then
8621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
8622 $as_echo "$INSTALL_INFO" >&6; }
8624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8625 $as_echo "no" >&6; }
8629 # Extract the first word of "gzip", so it can be a program name with args.
8630 set dummy
gzip; ac_word
=$2
8631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8632 $as_echo_n "checking for $ac_word... " >&6; }
8633 if test "${ac_cv_path_GZIP_PROG+set}" = set; then :
8634 $as_echo_n "(cached) " >&6
8638 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
8641 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8645 test -z "$as_dir" && as_dir
=.
8646 for ac_exec_ext
in '' $ac_executable_extensions; do
8647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8648 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
8649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8659 GZIP_PROG
=$ac_cv_path_GZIP_PROG
8660 if test -n "$GZIP_PROG"; then
8661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
8662 $as_echo "$GZIP_PROG" >&6; }
8664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8665 $as_echo "no" >&6; }
8670 test $with_compress_install != yes && test -n "$GZIP_PROG" && \
8671 GZIP_PROG
=" # $GZIP_PROG # (disabled by configure --without-compress-install)"
8673 if test $opsys = gnu-linux
; then
8674 # Extract the first word of "paxctl", so it can be a program name with args.
8675 set dummy paxctl
; ac_word
=$2
8676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8677 $as_echo_n "checking for $ac_word... " >&6; }
8678 if test "${ac_cv_path_PAXCTL+set}" = set; then :
8679 $as_echo_n "(cached) " >&6
8683 ac_cv_path_PAXCTL
="$PAXCTL" # Let the user override the test with a path.
8686 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8687 for as_dir
in $PATH$PATH_SEPARATOR/sbin
$PATH_SEPARATOR/usr
/sbin
8690 test -z "$as_dir" && as_dir
=.
8691 for ac_exec_ext
in '' $ac_executable_extensions; do
8692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8693 ac_cv_path_PAXCTL
="$as_dir/$ac_word$ac_exec_ext"
8694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8704 PAXCTL
=$ac_cv_path_PAXCTL
8705 if test -n "$PAXCTL"; then
8706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PAXCTL" >&5
8707 $as_echo "$PAXCTL" >&6; }
8709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8710 $as_echo "no" >&6; }
8714 if test "X$PAXCTL" != X
; then
8715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether binaries have a PT_PAX_FLAGS header" >&5
8716 $as_echo_n "checking whether binaries have a PT_PAX_FLAGS header... " >&6; }
8717 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8718 /* end confdefs.h. */
8728 if ac_fn_c_try_link
"$LINENO"; then :
8729 if $PAXCTL -v conftest
$EXEEXT >/dev
/null
2>&1; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8730 $as_echo "yes" >&6; }
8731 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8732 $as_echo "no" >&6; }; PAXCTL
=""; fi
8734 rm -f core conftest.err conftest.
$ac_objext \
8735 conftest
$ac_exeext conftest.
$ac_ext
8739 ## Need makeinfo >= 4.7 (?) to build the manuals.
8740 # Extract the first word of "makeinfo", so it can be a program name with args.
8741 set dummy makeinfo
; ac_word
=$2
8742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8743 $as_echo_n "checking for $ac_word... " >&6; }
8744 if test "${ac_cv_path_MAKEINFO+set}" = set; then :
8745 $as_echo_n "(cached) " >&6
8749 ac_cv_path_MAKEINFO
="$MAKEINFO" # Let the user override the test with a path.
8752 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8756 test -z "$as_dir" && as_dir
=.
8757 for ac_exec_ext
in '' $ac_executable_extensions; do
8758 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8759 ac_cv_path_MAKEINFO
="$as_dir/$ac_word$ac_exec_ext"
8760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8767 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO
="no"
8771 MAKEINFO
=$ac_cv_path_MAKEINFO
8772 if test -n "$MAKEINFO"; then
8773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8774 $as_echo "$MAKEINFO" >&6; }
8776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8777 $as_echo "no" >&6; }
8781 if test "$MAKEINFO" != "no"; then
8783 $MAKEINFO --version 2> /dev/null |
8784 $EGREP 'texinfo[^0-9]*([1-4][0-9]+|[5-9]|4\.[7-9]|4\.[1-6][0-9]+)'
8790 ## Makeinfo is unusual. For a released Emacs, the manuals are
8791 ## pre-built, and not deleted by the normal clean rules. makeinfo is
8792 ## therefore in the category of "special tools" not normally required, which
8793 ## configure does not have to check for (eg autoconf itself).
8794 ## In a Bazaar checkout on the other hand, the manuals are not included.
8795 ## So makeinfo is a requirement to build from Bazaar, and configure
8796 ## should test for it as it does for any other build requirement.
8797 ## We use the presence of $srcdir/info/emacs to distinguish a release,
8798 ## with pre-built manuals, from a Bazaar checkout.
8801 if test "$MAKEINFO" = "no"; then
8803 if test "x${with_makeinfo}" = "xno"; then
8805 elif test ! -e "$srcdir/info/emacs" && test ! -e "$srcdir/info/emacs.info"; then
8806 as_fn_error
"You do not seem to have makeinfo >= 4.7, and your
8807 source tree does not seem to have pre-built manuals in the \`info' directory.
8808 Either install a suitable version of makeinfo, or re-run configure
8809 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
8815 INFO_OPTS
=--no-split
8819 if test $opsys = mingw32
; then
8820 DOCMISC_W32
=efaq-w32
8827 if test x
$GCC = xyes
; then
8828 test "x$GCC_LINK_TEST_OPTIONS" != x
&& \
8829 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
8831 test "x$NON_GCC_LINK_TEST_OPTIONS" != x
&& \
8832 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
8836 late_LDFLAGS
="$LDFLAGS"
8837 if test x
$GCC = xyes
; then
8838 LDFLAGS_NOCOMBRELOC
="-Wl,-znocombreloc"
8840 LDFLAGS_NOCOMBRELOC
="-znocombreloc"
8843 LDFLAGS
="$LDFLAGS $LDFLAGS_NOCOMBRELOC"
8845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
8846 $as_echo_n "checking for -znocombreloc... " >&6; }
8847 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8848 /* end confdefs.h. */
8858 if ac_fn_c_try_link
"$LINENO"; then :
8859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8860 $as_echo "yes" >&6; }
8862 LDFLAGS_NOCOMBRELOC
=
8863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8864 $as_echo "no" >&6; }
8866 rm -f core conftest.err conftest.
$ac_objext \
8867 conftest
$ac_exeext conftest.
$ac_ext
8869 LDFLAGS
="$late_LDFLAGS"
8871 test "x$CANNOT_DUMP" = "x" && CANNOT_DUMP
=no
8873 your-opsys-here
) CANNOT_DUMP
=yes ;;
8876 test "$CANNOT_DUMP" = "yes" && \
8878 $as_echo "#define CANNOT_DUMP 1" >>confdefs.h
8884 UNEXEC_OBJ
=unexelf.o
8886 # MSDOS uses unexcoff.o
8888 UNEXEC_OBJ
=unexaix.o
8894 UNEXEC_OBJ
=unexmacosx.o
8897 UNEXEC_OBJ
=unexhp9k800.o
8900 UNEXEC_OBJ
=unexw32.o
8903 # Use the Solaris dldump() function, called from unexsol.c, to dump
8904 # emacs, instead of the generic ELF dump code found in unexelf.c.
8905 # The resulting binary has a complete symbol table, and is better
8906 # for debugging and other observability tools (debuggers, pstack, etc).
8908 # If you encounter a problem using dldump(), please consider sending
8909 # a message to the OpenSolaris tools-linking mailing list:
8910 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
8912 # It is likely that dldump() works with older Solaris too, but this has
8913 # not been tested, so for now this change is for Solaris 10 or newer.
8914 UNEXEC_OBJ
=unexsol.o
8921 ## Let `ld' find image libs and similar things in /usr/local/lib.
8922 ## The system compiler, GCC, has apparently been modified to not
8923 ## look there, contrary to what a stock GCC would do.
8924 ### It's not our place to do this. See bug#10313#17.
8925 ### LD_SWITCH_SYSTEM=-L/usr/local/lib
8930 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
8931 case $host_cpu in mips
*) LD_SWITCH_SYSTEM
="-G 0";; esac
8935 ### It's not our place to do this. See bug#10313#17.
8936 ### LD_SWITCH_SYSTEM="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
8941 ## Han Boetes <han@boetes.org> says this is necessary,
8942 ## otherwise Emacs dumps core on elf systems.
8943 LD_SWITCH_SYSTEM
="-Z"
8948 ac_link
="$ac_link $LD_SWITCH_SYSTEM"
8950 ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_RPATH,
8951 ## which has not been defined yet. When this was handled with cpp,
8952 ## it was expanded to null when configure sourced the s/*.h file.
8953 ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
8954 ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
8955 ## (or somesuch), but because it is supposed to go at the _front_
8956 ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
8957 ## Compare with the gnu-linux case below, which added to the end
8958 ## of LD_SWITCH_SYSTEM, and so can instead go at the front of
8959 ## LD_SWITCH_SYSTEM_TEMACS.
8962 LD_SWITCH_SYSTEM
="\$(LD_SWITCH_X_SITE_RPATH) $LD_SWITCH_SYSTEM" ;;
8969 ac_fn_c_check_decl
"$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
8970 if test "x$ac_cv_have_decl___ELF__" = x
""yes; then :
8974 if test "$ac_cv_have_decl___ELF__" = "yes"; then
8975 ## With ELF, make sure that all common symbols get allocated to in the
8976 ## data section. Otherwise, the dump of temacs may miss variables in
8977 ## the shared library that have been initialized. For example, with
8978 ## GNU libc, __malloc_initialized would normally be resolved to the
8979 ## shared library's .bss section, which is fatal.
8980 if test "x$GCC" = "xyes"; then
8981 C_SWITCH_MACHINE
="-fno-common"
8983 as_fn_error
"Non-GCC compilers are not supported." "$LINENO" 5
8986 as_fn_error
"Non-ELF systems are not supported since Emacs 24.1." "$LINENO" 5
8995 ## Some programs in src produce warnings saying certain subprograms
8996 ## are too complex and need a MAXMEM value greater than 2000 for
8997 ## additional optimization. --nils@exp-math.uni-essen.de
8998 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
8999 C_SWITCH_SYSTEM
="-ma -qmaxmem=4000"
9000 test "$opsys" = "mingw32" && C_SWITCH_SYSTEM
="-mtune=pentium4"
9001 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
9002 ## It is redundant in glibc2, since we define _GNU_SOURCE.
9008 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
9009 aix4-2
) LIBS_SYSTEM
="-lrts -lIM -liconv" ;;
9011 freebsd|dragonfly
) LIBS_SYSTEM
="-lutil" ;;
9013 hpux
*) LIBS_SYSTEM
="-l:libdld.sl" ;;
9015 sol2
*) LIBS_SYSTEM
="-lsocket -lnsl" ;;
9017 ## Motif needs -lgen.
9018 unixware
) LIBS_SYSTEM
="-lsocket -lnsl -lelf -lgen" ;;
9023 ### Make sure subsequent tests use flags consistent with the build flags.
9025 if test x
"${OVERRIDE_CPPFLAGS}" != x
; then
9026 CPPFLAGS
="${OVERRIDE_CPPFLAGS}"
9028 CPPFLAGS
="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
9031 # Suppress obsolescent Autoconf test for size_t; Emacs assumes C89 or better.
9033 # Likewise for obsolescent test for uid_t, gid_t; Emacs assumes them.
9038 SYSTEM_TYPE
=`echo $opsys | sed -e 's/[0-9].*//' -e 's|-|/|'`
9045 ## Adding -lm confuses the dynamic linker, so omit it.
9048 freebsd | dragonfly
)
9049 SYSTEM_TYPE
=berkeley-unix
9051 gnu-linux | gnu-kfreebsd
)
9053 hpux10-20 | hpux11
)
9057 SYSTEM_TYPE
=windows-nt
9060 SYSTEM_TYPE
=berkeley-unix
9064 SYSTEM_TYPE
=usg-unix-v
9071 cat >>confdefs.h
<<_ACEOF
9072 #define SYSTEM_TYPE "$SYSTEM_TYPE"
9077 pre_PKG_CONFIG_CFLAGS
=$CFLAGS
9078 pre_PKG_CONFIG_LIBS
=$LIBS
9080 # Extract the first word of "pkg-config", so it can be a program name with args.
9081 set dummy pkg-config
; ac_word
=$2
9082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9083 $as_echo_n "checking for $ac_word... " >&6; }
9084 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9085 $as_echo_n "(cached) " >&6
9089 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
9092 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9096 test -z "$as_dir" && as_dir
=.
9097 for ac_exec_ext
in '' $ac_executable_extensions; do
9098 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9099 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
9100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9107 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
9111 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
9112 if test -n "$PKG_CONFIG"; then
9113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9114 $as_echo "$PKG_CONFIG" >&6; }
9116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9117 $as_echo "no" >&6; }
9125 if test "${with_sound}" != "no"; then
9126 # Sound support for GNU/Linux, the free BSDs, and MinGW.
9127 for ac_header
in machine
/soundcard.h sys
/soundcard.h soundcard.h
9129 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9130 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "
9132 #define WIN32_LEAN_AND_MEAN
9133 #include <windows.h>
9137 eval as_val
=\$
$as_ac_Header
9138 if test "x$as_val" = x
""yes; then :
9139 cat >>confdefs.h
<<_ACEOF
9140 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9142 have_sound_header
=yes
9147 test "${with_sound}" = "oss" && test "${have_sound_header}" != "yes" && \
9148 as_fn_error
"OSS sound support requested but not found." "$LINENO" 5
9150 if test "${with_sound}" = "bsd-ossaudio" ||
test "${with_sound}" = "yes"; then
9151 # Emulation library used on NetBSD.
9152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
9153 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
9154 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
9155 $as_echo_n "(cached) " >&6
9157 ac_check_lib_save_LIBS
=$LIBS
9158 LIBS
="-lossaudio $LIBS"
9159 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9160 /* end confdefs.h. */
9162 /* Override any GCC internal prototype to avoid an error.
9163 Use char because int might match the return type of a GCC
9164 builtin and then its argument prototype would still apply. */
9172 return _oss_ioctl ();
9177 if ac_fn_c_try_link
"$LINENO"; then :
9178 ac_cv_lib_ossaudio__oss_ioctl
=yes
9180 ac_cv_lib_ossaudio__oss_ioctl
=no
9182 rm -f core conftest.err conftest.
$ac_objext \
9183 conftest
$ac_exeext conftest.
$ac_ext
9184 LIBS
=$ac_check_lib_save_LIBS
9186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
9187 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
9188 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x
""yes; then :
9194 test "${with_sound}" = "bsd-ossaudio" && test -z "$LIBSOUND" && \
9195 as_fn_error
"bsd-ossaudio sound support requested but not found." "$LINENO" 5
9199 if test "${with_sound}" = "alsa" ||
test "${with_sound}" = "yes"; then
9201 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
9205 if test "$PKG_CONFIG" = "no" ; then
9208 PKG_CONFIG_MIN_VERSION
=0.9.0
9209 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
9211 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
9213 if "$PKG_CONFIG" --exists "$ALSA_MODULES" 2>&5 &&
9214 ALSA_CFLAGS
=`"$PKG_CONFIG" --cflags "$ALSA_MODULES" 2>&5` &&
9215 ALSA_LIBS
=`"$PKG_CONFIG" --libs "$ALSA_MODULES" 2>&5`; then
9222 ALSA_CFLAGS
=`$as_echo "$ALSA_CFLAGS" | sed -e "$edit_cflags"`
9223 ALSA_LIBS
=`$as_echo "$ALSA_LIBS" | sed -e 's,///*,/,g'`
9224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$ALSA_CFLAGS' LIBS='$ALSA_LIBS'" >&5
9225 $as_echo "yes CFLAGS='$ALSA_CFLAGS' LIBS='$ALSA_LIBS'" >&6; }
9228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9229 $as_echo "no" >&6; }
9232 ## If we have a custom action on failure, don't print errors, but
9233 ## do set a variable so people can do so. Do it in a subshell
9234 ## to capture any diagnostics in invoking pkg-config.
9235 ALSA_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "$ALSA_MODULES") 2>&1`
9242 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9243 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9247 if test $succeeded = yes; then
9253 if test $HAVE_ALSA = yes; then
9254 SAVE_CFLAGS
="$CFLAGS"
9256 CFLAGS
="$ALSA_CFLAGS $CFLAGS"
9257 LIBS
="$ALSA_LIBS $LIBS"
9258 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9259 /* end confdefs.h. */
9260 #include <asoundlib.h>
9264 snd_lib_error_set_handler (0);
9269 if ac_fn_c_try_compile
"$LINENO"; then :
9270 emacs_alsa_normal
=yes
9272 emacs_alsa_normal
=no
9274 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9275 if test "$emacs_alsa_normal" != yes; then
9276 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9277 /* end confdefs.h. */
9278 #include <alsa/asoundlib.h>
9282 snd_lib_error_set_handler (0);
9287 if ac_fn_c_try_compile
"$LINENO"; then :
9288 emacs_alsa_subdir
=yes
9290 emacs_alsa_subdir
=no
9292 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9293 if test "$emacs_alsa_subdir" != yes; then
9294 as_fn_error
"pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
9296 ALSA_CFLAGS
="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
9299 CFLAGS
="$SAVE_CFLAGS"
9301 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
9302 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
9304 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
9306 elif test "${with_sound}" = "alsa"; then
9307 as_fn_error
"ALSA sound support requested but not found." "$LINENO" 5
9310 if test x
$have_sound_header = xyes ||
test $HAVE_ALSA = yes; then
9312 gnu-linux|freebsd|netbsd|mingw32
)
9314 $as_echo "#define HAVE_SOUND 1" >>confdefs.h
9327 for ac_header
in $ac_header_list
9329 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9330 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9332 eval as_val
=\$
$as_ac_Header
9333 if test "x$as_val" = x
""yes; then :
9334 cat >>confdefs.h
<<_ACEOF
9335 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
9361 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
9362 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9363 /* end confdefs.h. */
9364 #include <sys/personality.h>
9368 personality (PER_LINUX32)
9373 if ac_fn_c_try_compile
"$LINENO"; then :
9374 emacs_cv_personality_linux32
=yes
9376 emacs_cv_personality_linux32
=no
9378 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
9380 $as_echo "$emacs_cv_personality_linux32" >&6; }
9382 if test $emacs_cv_personality_linux32 = yes; then
9384 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
9388 for ac_header
in term.h
9390 ac_fn_c_check_header_preproc
"$LINENO" "term.h" "ac_cv_header_term_h"
9391 if test "x$ac_cv_header_term_h" = x
""yes; then :
9392 cat >>confdefs.h
<<_ACEOF
9393 #define HAVE_TERM_H 1
9400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
9401 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
9402 if test "${ac_cv_header_time+set}" = set; then :
9403 $as_echo_n "(cached) " >&6
9405 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9406 /* end confdefs.h. */
9407 #include <sys/types.h>
9408 #include <sys/time.h>
9414 if ((struct tm *) 0)
9420 if ac_fn_c_try_compile
"$LINENO"; then :
9421 ac_cv_header_time
=yes
9423 ac_cv_header_time
=no
9425 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
9428 $as_echo "$ac_cv_header_time" >&6; }
9429 if test $ac_cv_header_time = yes; then
9431 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
9435 ac_fn_c_check_decl
"$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "#include <signal.h>
9438 if test "x$ac_cv_have_decl_sys_siglist" = x
""yes; then :
9444 cat >>confdefs.h
<<_ACEOF
9445 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
9448 if test $ac_cv_have_decl_sys_siglist != yes; then
9449 # For Tru64, at least:
9450 ac_fn_c_check_decl
"$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "#include <signal.h>
9453 if test "x$ac_cv_have_decl___sys_siglist" = x
""yes; then :
9459 cat >>confdefs.h
<<_ACEOF
9460 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
9464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
9465 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
9466 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
9467 $as_echo_n "(cached) " >&6
9469 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9470 /* end confdefs.h. */
9471 #include <sys/types.h>
9472 #include <sys/wait.h>
9474 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
9477 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9485 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9490 if ac_fn_c_try_compile
"$LINENO"; then :
9491 ac_cv_header_sys_wait_h
=yes
9493 ac_cv_header_sys_wait_h
=no
9495 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
9498 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
9499 if test $ac_cv_header_sys_wait_h = yes; then
9501 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
9509 for ac_header
in net
/if.h
9511 ac_fn_c_check_header_compile
"$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
9512 #if HAVE_SYS_SOCKET_H
9513 #include <sys/socket.h>
9516 if test "x$ac_cv_header_net_if_h" = x
""yes; then :
9517 cat >>confdefs.h
<<_ACEOF
9518 #define HAVE_NET_IF_H 1
9525 for ac_header
in ifaddrs.h
9527 ac_fn_c_check_header_compile
"$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default
9528 #if HAVE_SYS_SOCKET_H
9529 #include <sys/socket.h>
9532 if test "x$ac_cv_header_ifaddrs_h" = x
""yes; then :
9533 cat >>confdefs.h
<<_ACEOF
9534 #define HAVE_IFADDRS_H 1
9541 for ac_header
in net
/if_dl.h
9543 ac_fn_c_check_header_compile
"$LINENO" "net/if_dl.h" "ac_cv_header_net_if_dl_h" "$ac_includes_default
9544 #if HAVE_SYS_SOCKET_H
9545 #include <sys/socket.h>
9548 if test "x$ac_cv_header_net_if_dl_h" = x
""yes; then :
9549 cat >>confdefs.h
<<_ACEOF
9550 #define HAVE_NET_IF_DL_H 1
9558 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
9559 #if HAVE_SYS_SOCKET_H
9560 #include <sys/socket.h>
9566 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x
""yes; then :
9568 cat >>confdefs.h
<<_ACEOF
9569 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
9574 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
9575 #if HAVE_SYS_SOCKET_H
9576 #include <sys/socket.h>
9582 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x
""yes; then :
9584 cat >>confdefs.h
<<_ACEOF
9585 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
9590 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
9591 #if HAVE_SYS_SOCKET_H
9592 #include <sys/socket.h>
9598 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x
""yes; then :
9600 cat >>confdefs.h
<<_ACEOF
9601 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
9606 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
9607 #if HAVE_SYS_SOCKET_H
9608 #include <sys/socket.h>
9614 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x
""yes; then :
9616 cat >>confdefs.h
<<_ACEOF
9617 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
9622 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
9623 #if HAVE_SYS_SOCKET_H
9624 #include <sys/socket.h>
9630 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x
""yes; then :
9632 cat >>confdefs.h
<<_ACEOF
9633 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
9638 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_addr.sa_len" "ac_cv_member_struct_ifreq_ifr_addr_sa_len" "$ac_includes_default
9639 #if HAVE_SYS_SOCKET_H
9640 #include <sys/socket.h>
9646 if test "x$ac_cv_member_struct_ifreq_ifr_addr_sa_len" = x
""yes; then :
9648 cat >>confdefs.h
<<_ACEOF
9649 #define HAVE_STRUCT_IFREQ_IFR_ADDR_SA_LEN 1
9661 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
9662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
9663 $as_echo_n "checking whether we are using GNU Make... " >&6; }
9665 testval
=`${MAKE-make} --version 2>/dev/null | grep 'GNU Make'`
9666 if test "x$testval" != x
; then
9669 ac_enable_autodepend
=no
9671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
9672 $as_echo "$HAVE_GNU_MAKE" >&6; }
9673 if test $HAVE_GNU_MAKE = yes; then
9674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
9675 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
9676 SAVE_CFLAGS
="$CFLAGS"
9677 CFLAGS
="$CFLAGS -MMD -MF deps.d -MP"
9678 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9679 /* end confdefs.h. */
9689 if ac_fn_c_try_compile
"$LINENO"; then :
9692 ac_enable_autodepend
=no
9694 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9695 CFLAGS
="$SAVE_CFLAGS"
9696 test -f deps.d || ac_enable_autodepend
=no
9698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
9699 $as_echo "$ac_enable_autodepend" >&6; }
9701 if test $ac_enable_autodepend = yes; then
9702 DEPFLAGS
='-MMD -MF ${DEPDIR}/$*.d -MP'
9703 ## MKDIR_P is documented (see AC_PROG_MKDIR_P) to be parallel-safe.
9704 MKDEPDIR
='${MKDIR_P} ${DEPDIR}'
9705 deps_frag
=autodeps.mk
9708 deps_frag
=$srcdir/src
/$deps_frag
9714 lisp_frag
=$srcdir/src
/lisp.mk
9718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
9719 $as_echo_n "checking for long file names... " >&6; }
9720 if test "${ac_cv_sys_long_file_names+set}" = set; then :
9721 $as_echo_n "(cached) " >&6
9723 ac_cv_sys_long_file_names
=yes
9724 # Test for long file names in all the places we know might matter:
9725 # . the current directory, where building will happen
9726 # $prefix/lib where we will be installing things
9727 # $exec_prefix/lib likewise
9728 # $TMPDIR if set, where it might want to write temporary files
9729 # /tmp where it might want to write temporary files
9732 for ac_dir
in .
"$TMPDIR" /tmp
/var
/tmp
/usr
/tmp
"$prefix/lib" "$exec_prefix/lib"; do
9733 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9734 # in the usual case where exec_prefix is '${prefix}'.
9736 . |
/* | ?
:[\\/]*) ;; #(
9739 test -w "$ac_dir/." ||
continue # It is less confusing to not echo anything here.
9740 ac_xdir
=$ac_dir/cf$$
9741 (umask 077 && mkdir
"$ac_xdir" 2>/dev
/null
) ||
continue
9742 ac_tf1
=$ac_xdir/conftest9012345
9743 ac_tf2
=$ac_xdir/conftest9012346
9744 touch "$ac_tf1" 2>/dev
/null
&& test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9745 ac_cv_sys_long_file_names
=no
9746 rm -f -r "$ac_xdir" 2>/dev
/null
9747 test $ac_cv_sys_long_file_names = no
&& break
9750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
9751 $as_echo "$ac_cv_sys_long_file_names" >&6; }
9752 if test $ac_cv_sys_long_file_names = yes; then
9754 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
9759 #### Choose a window system.
9761 ## We leave window_system equal to none if
9762 ## we end up building without one. Any new window system should
9763 ## set window_system to an appropriate value and add objects to
9764 ## window-system-specific substs.
9767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
9768 $as_echo_n "checking for X... " >&6; }
9771 # Check whether --with-x was given.
9772 if test "${with_x+set}" = set; then :
9776 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9777 if test "x$with_x" = xno
; then
9778 # The user explicitly disabled X.
9781 case $x_includes,$x_libraries in #(
9782 *\'*) as_fn_error
"cannot use X directory names containing '" "$LINENO" 5;; #(
9783 *,NONE | NONE
,*) if test "${ac_cv_have_x+set}" = set; then :
9784 $as_echo_n "(cached) " >&6
9786 # One or both of the vars are not set, and there is no cached value.
9787 ac_x_includes
=no ac_x_libraries
=no
9788 rm -f -r conftest.dir
9789 if mkdir conftest.dir
; then
9791 cat >Imakefile
<<'_ACEOF'
9793 @echo incroot='${INCROOT}'
9795 @echo usrlibdir='${USRLIBDIR}'
9797 @echo libdir='${LIBDIR}'
9799 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
9800 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9801 for ac_var
in incroot usrlibdir libdir
; do
9802 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9804 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9805 for ac_extension
in a so sl dylib la dll
; do
9806 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9807 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9808 ac_im_usrlibdir
=$ac_im_libdir; break
9811 # Screen out bogus values from the imake configuration. They are
9812 # bogus both because they are the default anyway, and because
9813 # using them would break gcc on systems where it needs fixed includes.
9814 case $ac_im_incroot in
9815 /usr
/include
) ac_x_includes
= ;;
9816 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
9818 case $ac_im_usrlibdir in
9819 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
9820 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
9824 rm -f -r conftest.dir
9827 # Standard set of common directories for X headers.
9828 # Check X11 before X11Rn because it is often a symlink to the current release.
9842 /usr/local/X11/include
9843 /usr/local/X11R7/include
9844 /usr/local/X11R6/include
9845 /usr/local/X11R5/include
9846 /usr/local/X11R4/include
9848 /usr/local/include/X11
9849 /usr/local/include/X11R7
9850 /usr/local/include/X11R6
9851 /usr/local/include/X11R5
9852 /usr/local/include/X11R4
9856 /usr/XFree86/include/X11
9860 /usr/unsupported/include
9862 /usr/local/x11r5/include
9863 /usr/lpp/Xamples/include
9865 /usr/openwin/include
9866 /usr/openwin/share/include'
9868 if test "$ac_x_includes" = no
; then
9869 # Guess where to find include files, by looking for Xlib.h.
9870 # First, try using that file with no special directory specified.
9871 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9872 /* end confdefs.h. */
9873 #include <X11/Xlib.h>
9875 if ac_fn_c_try_cpp
"$LINENO"; then :
9876 # We can compile using X headers with no special include directory.
9879 for ac_dir
in $ac_x_header_dirs; do
9880 if test -r "$ac_dir/X11/Xlib.h"; then
9881 ac_x_includes
=$ac_dir
9886 rm -f conftest.err conftest.
$ac_ext
9887 fi # $ac_x_includes = no
9889 if test "$ac_x_libraries" = no
; then
9890 # Check for the libraries.
9891 # See if we find them without any special options.
9892 # Don't add to $LIBS permanently.
9895 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9896 /* end confdefs.h. */
9897 #include <X11/Xlib.h>
9906 if ac_fn_c_try_link
"$LINENO"; then :
9908 # We can link X programs with no special library path.
9912 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9914 # Don't even attempt the hair of trying to link an X program!
9915 for ac_extension
in a so sl dylib la dll
; do
9916 if test -r "$ac_dir/libX11.$ac_extension"; then
9917 ac_x_libraries
=$ac_dir
9923 rm -f core conftest.err conftest.
$ac_objext \
9924 conftest
$ac_exeext conftest.
$ac_ext
9925 fi # $ac_x_libraries = no
9927 case $ac_x_includes,$ac_x_libraries in #(
9929 # Didn't find X, or a directory has "'" in its name.
9930 ac_cv_have_x
="have_x=no";; #(
9932 # Record where we found X for the cache.
9933 ac_cv_have_x
="have_x=yes\
9934 ac_x_includes='$ac_x_includes'\
9935 ac_x_libraries='$ac_x_libraries'"
9941 eval "$ac_cv_have_x"
9944 if test "$have_x" != yes; then
9945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
9946 $as_echo "$have_x" >&6; }
9949 # If each of the values was on the command line, it overrides each guess.
9950 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
9951 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
9952 # Update the cache value to reflect the command line values.
9953 ac_cv_have_x
="have_x=yes\
9954 ac_x_includes='$x_includes'\
9955 ac_x_libraries='$x_libraries'"
9956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
9957 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
9960 if test "$no_x" != yes; then
9964 LD_SWITCH_X_SITE_RPATH
=
9965 if test "${x_libraries}" != NONE
; then
9966 if test -n "${x_libraries}"; then
9967 LD_SWITCH_X_SITE
=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9968 LD_SWITCH_X_SITE_RPATH
=-Wl,-rpath,`echo ${x_libraries} | sed -e "s/:/ -Wl,-rpath,/g"`
9970 x_default_search_path
=""
9971 x_search_path
=${x_libraries}
9972 if test -z "${x_search_path}"; then
9973 x_search_path
=/usr
/lib
9975 for x_library
in `echo ${x_search_path}: | \
9976 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9978 ${x_library}/X11/%L/%T/%N%C%S:\
9979 ${x_library}/X11/%l/%T/%N%C%S:\
9980 ${x_library}/X11/%T/%N%C%S:\
9981 ${x_library}/X11/%L/%T/%N%S:\
9982 ${x_library}/X11/%l/%T/%N%S:\
9983 ${x_library}/X11/%T/%N%S"
9984 if test x
"${x_default_search_path}" = x
; then
9985 x_default_search_path
=${x_search_path}
9987 x_default_search_path
="${x_search_path}:${x_default_search_path}"
9993 if test "${x_includes}" != NONE
&& test -n "${x_includes}"; then
9994 C_SWITCH_X_SITE
="$isystem"`echo ${x_includes} | sed -e "s/:/ $isystem/g"`
9997 if test x
"${x_includes}" = x
; then
9998 bitmapdir
=/usr
/include
/X11
/bitmaps
10000 # accumulate include directories that have X11 bitmap subdirectories
10002 for bmd
in `echo ${x_includes} | sed -e "s/:/ /g"`; do
10003 if test -d "${bmd}/X11/bitmaps"; then
10004 bmd_acc
="${bmd_acc}:${bmd}/X11/bitmaps"
10006 if test -d "${bmd}/bitmaps"; then
10007 bmd_acc
="${bmd_acc}:${bmd}/bitmaps"
10010 if test ${bmd_acc} != "dummyval"; then
10011 bitmapdir
=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
10018 tmp_CPPFLAGS
="$CPPFLAGS"
10019 tmp_CFLAGS
="$CFLAGS"
10020 CPPFLAGS
="$CPPFLAGS -x objective-c"
10021 CFLAGS
="$CFLAGS -x objective-c"
10024 if test "${with_ns}" != no
; then
10025 if test "${opsys}" = darwin
; then
10027 ns_appdir
=`pwd`/nextstep
/Emacs.app
10028 ns_appbindir
=${ns_appdir}/Contents
/MacOS
10029 ns_appresdir
=${ns_appdir}/Contents
/Resources
10030 ns_appsrc
=Cocoa
/Emacs.base
10031 elif test -f $GNUSTEP_CONFIG_FILE; then
10032 NS_IMPL_GNUSTEP
=yes
10033 ns_appdir
=`pwd`/nextstep
/Emacs.app
10034 ns_appbindir
=${ns_appdir}
10035 ns_appresdir
=${ns_appdir}/Resources
10036 ns_appsrc
=GNUstep
/Emacs.base
10037 GNUSTEP_SYSTEM_HEADERS
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
10038 GNUSTEP_SYSTEM_LIBRARIES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
10039 GNUSTEP_LOCAL_HEADERS
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
10040 GNUSTEP_LOCAL_LIBRARIES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
10041 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
10042 GNUSTEP_LOCAL_HEADERS
="-I${GNUSTEP_LOCAL_HEADERS}"
10043 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
10044 GNUSTEP_LOCAL_LIBRARIES
="-L${GNUSTEP_LOCAL_LIBRARIES}"
10045 CPPFLAGS
="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
10046 CFLAGS
="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
10047 LDFLAGS
="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
10048 LIBS_GNUSTEP
="-lgnustep-gui -lgnustep-base -lobjc -lpthread"
10049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS" >&5
10050 $as_echo_n "checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS... " >&6; }
10051 if test "${emacs_cv_objc_exceptions+set}" = set; then :
10052 $as_echo_n "(cached) " >&6
10054 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10055 /* end confdefs.h. */
10056 #include <GNUstepBase/GSConfig.h>
10060 #if defined BASE_NATIVE_OBJC_EXCEPTIONS && BASE_NATIVE_OBJC_EXCEPTIONS > 0
10069 if ac_fn_c_try_compile
"$LINENO"; then :
10070 emacs_cv_objc_exceptions
=yes
10072 emacs_cv_objc_exceptions
=no
10074 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_objc_exceptions" >&5
10077 $as_echo "$emacs_cv_objc_exceptions" >&6; }
10078 if test $emacs_cv_objc_exceptions = yes; then
10080 $as_echo "#define _NATIVE_OBJC_EXCEPTIONS 1" >>confdefs.h
10082 GNU_OBJC_CFLAGS
="-fobjc-exceptions"
10086 CFLAGS
="$CFLAGS $GNU_OBJC_CFLAGS"
10088 ac_fn_c_check_header_mongrel
"$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
10089 if test "x$ac_cv_header_AppKit_AppKit_h" = x
""yes; then :
10092 as_fn_error
"\`--with-ns' was specified, but the include
10093 files are missing or cannot be compiled." "$LINENO" 5
10099 if test "${NS_IMPL_COCOA}" = "yes"; then
10100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OSX 10.4 or newer" >&5
10101 $as_echo_n "checking for OSX 10.4 or newer... " >&6; }
10102 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10103 /* end confdefs.h. */
10104 #include <AppKit/AppKit.h>
10109 #ifdef MAC_OS_X_VERSION_MAX_ALLOWED
10110 #if MAC_OS_X_VERSION_MAX_ALLOWED >= 1040
10113 #error "OSX 10.4 or newer required"
10121 if ac_fn_c_try_compile
"$LINENO"; then :
10122 ns_osx_have_104
=yes
10126 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ns_osx_have_104" >&5
10128 $as_echo "$ns_osx_have_104" >&6; }
10130 if test $ns_osx_have_104 = no
; then
10131 as_fn_error
"\`OSX 10.4 or newer is required'" "$LINENO" 5;
10133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OSX 10.5 or newer" >&5
10134 $as_echo_n "checking for OSX 10.5 or newer... " >&6; }
10135 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10136 /* end confdefs.h. */
10137 #include <AppKit/AppKit.h>
10142 #ifdef MAC_OS_X_VERSION_MAX_ALLOWED
10143 #if MAC_OS_X_VERSION_MAX_ALLOWED >= 1050
10146 #error "OSX 10.5 not found"
10154 if ac_fn_c_try_compile
"$LINENO"; then :
10155 ns_osx_have_105
=yes
10159 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ns_osx_have_105" >&5
10161 $as_echo "$ns_osx_have_105" >&6; }
10162 if test $ns_osx_have_105 = yes; then
10163 macfont_file
="macfont.o"
10166 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10167 /* end confdefs.h. */
10168 #include <Foundation/NSObjCRuntime.h>
10177 if ac_fn_c_try_compile
"$LINENO"; then :
10178 ns_have_nsinteger
=yes
10180 ns_have_nsinteger
=no
10182 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10183 if test $ns_have_nsinteger = yes; then
10185 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
10192 INSTALL_ARCH_INDEP_EXTRA
=install-etc
10193 ns_self_contained
=no
10196 if test "${HAVE_NS}" = yes; then
10197 if test "$with_toolkit_scroll_bars" = "no"; then
10198 as_fn_error
"Non-toolkit scroll bars are not implemented for Nextstep." "$LINENO" 5
10201 window_system
=nextstep
10202 # set up packaging dirs
10203 if test "${EN_NS_SELF_CONTAINED}" = yes; then
10204 ns_self_contained
=yes
10205 prefix
=${ns_appresdir}
10206 exec_prefix
=${ns_appbindir}
10207 libexecdir
="\${ns_appbindir}/libexec"
10208 archlibdir
="\${ns_appbindir}/libexec"
10209 etcdocdir
="\${ns_appresdir}/etc"
10210 etcdir
="\${ns_appresdir}/etc"
10211 infodir
="\${ns_appresdir}/info"
10212 mandir
="\${ns_appresdir}/man"
10213 lispdir
="\${ns_appresdir}/lisp"
10214 leimdir
="\${ns_appresdir}/leim"
10215 INSTALL_ARCH_INDEP_EXTRA
=
10218 NS_OBJC_OBJ
="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o $macfont_file"
10220 CFLAGS
="$tmp_CFLAGS"
10221 CPPFLAGS
="$tmp_CPPFLAGS"
10236 if test "${with_w32}" != no
; then
10239 ac_fn_c_check_header_mongrel
"$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
10240 if test "x$ac_cv_header_windows_h" = x
""yes; then :
10243 as_fn_error
"\`--with-w32' was specified, but windows.h
10244 cannot be found." "$LINENO" 5
10250 ## Using --with-w32 with MinGW is a no-op, but we allow it.
10253 as_fn_error
"Using w32 with an autotools build is only supported for Cygwin and MinGW32." "$LINENO" 5
10258 if test "${opsys}" = "mingw32"; then
10259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Windows API headers are recent enough" >&5
10260 $as_echo_n "checking whether Windows API headers are recent enough... " >&6; }
10261 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10262 /* end confdefs.h. */
10264 #include <windows.h>
10269 PIMAGE_NT_HEADERS pHeader;
10270 PIMAGE_SECTION_HEADER pSection = IMAGE_FIRST_SECTION(pHeader)
10275 if ac_fn_c_try_compile
"$LINENO"; then :
10276 emacs_cv_w32api
=yes
10281 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_w32api" >&5
10283 $as_echo "$emacs_cv_w32api" >&6; }
10284 if test "${emacs_cv_w32api}" = "no"; then
10285 as_fn_error
"the Windows API headers are too old to support this build." "$LINENO" 5
10296 if test "${HAVE_W32}" = "yes"; then
10298 $as_echo "#define HAVE_NTGUI 1" >>confdefs.h
10300 if test -n "$ac_tool_prefix"; then
10301 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
10302 set dummy
${ac_tool_prefix}windres
; ac_word
=$2
10303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10304 $as_echo_n "checking for $ac_word... " >&6; }
10305 if test "${ac_cv_prog_WINDRES+set}" = set; then :
10306 $as_echo_n "(cached) " >&6
10308 if test -n "$WINDRES"; then
10309 ac_cv_prog_WINDRES
="$WINDRES" # Let the user override the test.
10311 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10312 for as_dir
in $PATH
10315 test -z "$as_dir" && as_dir
=.
10316 for ac_exec_ext
in '' $ac_executable_extensions; do
10317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10318 ac_cv_prog_WINDRES
="${ac_tool_prefix}windres"
10319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10328 WINDRES
=$ac_cv_prog_WINDRES
10329 if test -n "$WINDRES"; then
10330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
10331 $as_echo "$WINDRES" >&6; }
10333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10334 $as_echo "no" >&6; }
10339 if test -z "$ac_cv_prog_WINDRES"; then
10340 ac_ct_WINDRES
=$WINDRES
10341 # Extract the first word of "windres", so it can be a program name with args.
10342 set dummy windres
; ac_word
=$2
10343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10344 $as_echo_n "checking for $ac_word... " >&6; }
10345 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then :
10346 $as_echo_n "(cached) " >&6
10348 if test -n "$ac_ct_WINDRES"; then
10349 ac_cv_prog_ac_ct_WINDRES
="$ac_ct_WINDRES" # Let the user override the test.
10351 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10352 for as_dir
in $PATH
10355 test -z "$as_dir" && as_dir
=.
10356 for ac_exec_ext
in '' $ac_executable_extensions; do
10357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10358 ac_cv_prog_ac_ct_WINDRES
="windres"
10359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10368 ac_ct_WINDRES
=$ac_cv_prog_ac_ct_WINDRES
10369 if test -n "$ac_ct_WINDRES"; then
10370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
10371 $as_echo "$ac_ct_WINDRES" >&6; }
10373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10374 $as_echo "no" >&6; }
10377 if test "x$ac_ct_WINDRES" = x
; then
10378 WINDRES
="as_fn_error "No resource compiler found.
" "$LINENO" 5"
10380 case $cross_compiling:$ac_tool_warned in
10382 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10383 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10384 ac_tool_warned
=yes ;;
10386 WINDRES
=$ac_ct_WINDRES
10389 WINDRES
="$ac_cv_prog_WINDRES"
10392 W32_OBJ
="w32fns.o w32menu.o w32reg.o w32font.o w32term.o"
10393 W32_OBJ
="$W32_OBJ w32xfns.o w32select.o w32uniscribe.o"
10394 EMACSRES
="emacs.res"
10395 case "$canonical" in
10396 x86_64-
*-*) EMACS_MANIFEST
="emacs-x64.manifest" ;;
10397 *) EMACS_MANIFEST
="emacs-x86.manifest" ;;
10399 UPDATE_MANIFEST
=update-game-score.exe.manifest
10400 if test "${opsys}" = "cygwin"; then
10401 W32_LIBS
="$W32_LIBS -lkernel32 -luser32 -lgdi32 -lole32 -lcomdlg32"
10402 W32_LIBS
="$W32_LIBS -lusp10 -lcomctl32 -lwinspool"
10403 # Tell the linker that emacs.res is an object (which we compile from
10404 # the rc file), not a linker script.
10405 W32_RES_LINK
="-Wl,emacs.res"
10407 W32_OBJ
="$W32_OBJ w32.o w32console.o w32heap.o w32inevt.o w32proc.o"
10408 W32_LIBS
="$W32_LIBS -lwinmm -lgdi32 -lcomdlg32"
10409 W32_LIBS
="$W32_LIBS -lmpr -lwinspool -lole32 -lcomctl32 -lusp10"
10410 W32_RES_LINK
="\$(EMACSRES)"
10411 CLIENTRES
="emacsclient.res"
10412 CLIENTW
="emacsclientw\$(EXEEXT)"
10413 FIRSTFILE_OBJ
=firstfile.o
10416 LIBS_ECLIENT
="-lcomctl32"
10417 LIB_WSOCK32
="-lwsock32"
10418 NTLIB
="ntlib.$ac_objext"
10419 XARGS_LIMIT
="-s 10000"
10438 if test "${HAVE_W32}" = "yes"; then
10443 ## $window_system is now set to the window system we will
10446 if test "$window_system" = none
&& test "$gl_gcc_warnings" = yes; then
10447 # Too many warnings for now.
10449 nw
="$nw -Wsuggest-attribute=const"
10450 nw
="$nw -Wsuggest-attribute=noreturn"
10453 set x
$WARN_CFLAGS; shift
10457 *" $gl_warn_item "*)
10460 gl_warn_set
="$gl_warn_set $gl_warn_item"
10464 WARN_CFLAGS
=$gl_warn_set
10468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-unused-variable" >&5
10469 $as_echo_n "checking whether C compiler handles -Wno-unused-variable... " >&6; }
10470 if test "${gl_cv_warn_c__Wno_unused_variable+set}" = set; then :
10471 $as_echo_n "(cached) " >&6
10474 gl_save_compiler_FLAGS
="$CFLAGS"
10475 as_fn_append CFLAGS
" $gl_unknown_warnings_are_errors -Wunused-variable"
10476 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10477 /* end confdefs.h. */
10487 if ac_fn_c_try_link
"$LINENO"; then :
10488 gl_cv_warn_c__Wno_unused_variable
=yes
10490 gl_cv_warn_c__Wno_unused_variable
=no
10492 rm -f core conftest.err conftest.
$ac_objext \
10493 conftest
$ac_exeext conftest.
$ac_ext
10494 CFLAGS
="$gl_save_compiler_FLAGS"
10497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_unused_variable" >&5
10498 $as_echo "$gl_cv_warn_c__Wno_unused_variable" >&6; }
10499 if test "x$gl_cv_warn_c__Wno_unused_variable" = x
""yes; then :
10500 as_fn_append WARN_CFLAGS
" -Wno-unused-variable"
10505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-unused-but-set-variable" >&5
10506 $as_echo_n "checking whether C compiler handles -Wno-unused-but-set-variable... " >&6; }
10507 if test "${gl_cv_warn_c__Wno_unused_but_set_variable+set}" = set; then :
10508 $as_echo_n "(cached) " >&6
10511 gl_save_compiler_FLAGS
="$CFLAGS"
10512 as_fn_append CFLAGS
" $gl_unknown_warnings_are_errors -Wunused-but-set-variable"
10513 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10514 /* end confdefs.h. */
10524 if ac_fn_c_try_link
"$LINENO"; then :
10525 gl_cv_warn_c__Wno_unused_but_set_variable
=yes
10527 gl_cv_warn_c__Wno_unused_but_set_variable
=no
10529 rm -f core conftest.err conftest.
$ac_objext \
10530 conftest
$ac_exeext conftest.
$ac_ext
10531 CFLAGS
="$gl_save_compiler_FLAGS"
10534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_unused_but_set_variable" >&5
10535 $as_echo "$gl_cv_warn_c__Wno_unused_but_set_variable" >&6; }
10536 if test "x$gl_cv_warn_c__Wno_unused_but_set_variable" = x
""yes; then :
10537 as_fn_append WARN_CFLAGS
" -Wno-unused-but-set-variable"
10542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-unused-but-set-parameter" >&5
10543 $as_echo_n "checking whether C compiler handles -Wno-unused-but-set-parameter... " >&6; }
10544 if test "${gl_cv_warn_c__Wno_unused_but_set_parameter+set}" = set; then :
10545 $as_echo_n "(cached) " >&6
10548 gl_save_compiler_FLAGS
="$CFLAGS"
10549 as_fn_append CFLAGS
" $gl_unknown_warnings_are_errors -Wunused-but-set-parameter"
10550 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10551 /* end confdefs.h. */
10561 if ac_fn_c_try_link
"$LINENO"; then :
10562 gl_cv_warn_c__Wno_unused_but_set_parameter
=yes
10564 gl_cv_warn_c__Wno_unused_but_set_parameter
=no
10566 rm -f core conftest.err conftest.
$ac_objext \
10567 conftest
$ac_exeext conftest.
$ac_ext
10568 CFLAGS
="$gl_save_compiler_FLAGS"
10571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_unused_but_set_parameter" >&5
10572 $as_echo "$gl_cv_warn_c__Wno_unused_but_set_parameter" >&6; }
10573 if test "x$gl_cv_warn_c__Wno_unused_but_set_parameter" = x
""yes; then :
10574 as_fn_append WARN_CFLAGS
" -Wno-unused-but-set-parameter"
10585 case "${window_system}" in
10589 term_header
=xterm.h
10590 case "${with_x_toolkit}" in
10591 athena | lucid
) USE_X_TOOLKIT
=LUCID
;;
10592 motif
) USE_X_TOOLKIT
=MOTIF
;;
10594 term_header
=gtkutil.h
10595 USE_X_TOOLKIT
=none
;;
10596 gtk2
) with_gtk2
=yes
10597 term_header
=gtkutil.h
10598 USE_X_TOOLKIT
=none
;;
10599 gtk3
) with_gtk3
=yes
10600 term_header
=gtkutil.h
10601 USE_X_TOOLKIT
=none
;;
10602 no
) USE_X_TOOLKIT
=none
;;
10603 * ) USE_X_TOOLKIT
=maybe
;;
10607 term_header
=nsterm.h
10610 term_header
=w32term.h
10614 if test "$window_system" = none
&& test "X$with_x" != "Xno"; then
10615 # Extract the first word of "X", so it can be a program name with args.
10616 set dummy X
; ac_word
=$2
10617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10618 $as_echo_n "checking for $ac_word... " >&6; }
10619 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then :
10620 $as_echo_n "(cached) " >&6
10622 if test -n "$HAVE_XSERVER"; then
10623 ac_cv_prog_HAVE_XSERVER
="$HAVE_XSERVER" # Let the user override the test.
10625 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10626 for as_dir
in $PATH
10629 test -z "$as_dir" && as_dir
=.
10630 for ac_exec_ext
in '' $ac_executable_extensions; do
10631 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10632 ac_cv_prog_HAVE_XSERVER
="true"
10633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10640 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER
="false"
10643 HAVE_XSERVER
=$ac_cv_prog_HAVE_XSERVER
10644 if test -n "$HAVE_XSERVER"; then
10645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
10646 $as_echo "$HAVE_XSERVER" >&6; }
10648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10649 $as_echo "no" >&6; }
10653 if test "$HAVE_XSERVER" = true ||
10654 test -n "$DISPLAY" ||
10655 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
10656 as_fn_error
"You seem to be running X, but no X development libraries
10657 were found. You should install the relevant development files for X
10658 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
10659 sure you have development files for image handling, i.e.
10660 tiff, gif, jpeg, png and xpm.
10661 If you are sure you want Emacs compiled without X window support, pass
10663 to configure." "$LINENO" 5
10667 ### We always support menus.
10670 # Does the opsystem file prohibit the use of the GNU malloc?
10671 # Assume not, until told otherwise.
10674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc is Doug Lea style" >&5
10675 $as_echo_n "checking whether malloc is Doug Lea style... " >&6; }
10676 if test "${emacs_cv_var_doug_lea_malloc+set}" = set; then :
10677 $as_echo_n "(cached) " >&6
10679 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10680 /* end confdefs.h. */
10681 #include <malloc.h>
10682 static void hook (void) {}
10686 malloc_set_state (malloc_get_state ());
10687 __after_morecore_hook = hook;
10688 __malloc_initialize_hook = hook;
10693 if ac_fn_c_try_link
"$LINENO"; then :
10694 emacs_cv_var_doug_lea_malloc
=yes
10696 emacs_cv_var_doug_lea_malloc
=no
10698 rm -f core conftest.err conftest.
$ac_objext \
10699 conftest
$ac_exeext conftest.
$ac_ext
10701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var_doug_lea_malloc" >&5
10702 $as_echo "$emacs_cv_var_doug_lea_malloc" >&6; }
10703 doug_lea_malloc
=$emacs_cv_var_doug_lea_malloc
10708 ## darwin ld insists on the use of malloc routines in the System framework.
10709 darwin|sol2-10
) system_malloc
=yes ;;
10712 if test "${system_malloc}" = "yes"; then
10714 $as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
10717 GNU_MALLOC_reason
="
10718 (The GNU allocators don't work with this system configuration.)"
10722 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ
=gmalloc.o
10723 VMLIMIT_OBJ
=vm-limit.o
10725 for ac_header
in sys
/vlimit.h
10727 ac_fn_c_check_header_mongrel
"$LINENO" "sys/vlimit.h" "ac_cv_header_sys_vlimit_h" "$ac_includes_default"
10728 if test "x$ac_cv_header_sys_vlimit_h" = x
""yes; then :
10729 cat >>confdefs.h
<<_ACEOF
10730 #define HAVE_SYS_VLIMIT_H 1
10737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for data_start" >&5
10738 $as_echo_n "checking for data_start... " >&6; }
10739 if test "${emacs_cv_data_start+set}" = set; then :
10740 $as_echo_n "(cached) " >&6
10742 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10743 /* end confdefs.h. */
10744 extern char data_start[]; char ch;
10748 return data_start < &ch;
10753 if ac_fn_c_try_link
"$LINENO"; then :
10754 emacs_cv_data_start
=yes
10756 emacs_cv_data_start
=no
10758 rm -f core conftest.err conftest.
$ac_objext \
10759 conftest
$ac_exeext conftest.
$ac_ext
10761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_data_start" >&5
10762 $as_echo "$emacs_cv_data_start" >&6; }
10763 if test $emacs_cv_data_start = yes; then
10765 $as_echo "#define HAVE_DATA_START 1" >>confdefs.h
10772 if test "$doug_lea_malloc" = "yes" ; then
10773 if test "$GNU_MALLOC" = yes ; then
10774 GNU_MALLOC_reason
="
10775 (Using Doug Lea's new malloc from the GNU C Library.)"
10778 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
10781 ## Use mmap directly for allocating larger buffers.
10782 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
10783 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
10784 ## Does the AC_FUNC_MMAP test below make this check unnecessary?
10786 gnu
*) REL_ALLOC
=no
;;
10790 if test x
"${REL_ALLOC}" = x
; then
10791 REL_ALLOC
=${GNU_MALLOC}
10794 use_mmap_for_buffers
=no
10796 cygwin|freebsd|irix6-5
) use_mmap_for_buffers
=yes ;;
10806 for ac_func
in getpagesize
10808 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
10809 if test "x$ac_cv_func_getpagesize" = x
""yes; then :
10810 cat >>confdefs.h
<<_ACEOF
10811 #define HAVE_GETPAGESIZE 1
10817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
10818 $as_echo_n "checking for working mmap... " >&6; }
10819 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
10820 $as_echo_n "(cached) " >&6
10822 if test "$cross_compiling" = yes; then :
10823 ac_cv_func_mmap_fixed_mapped
=no
10825 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10826 /* end confdefs.h. */
10827 $ac_includes_default
10828 /* malloc might have been renamed as rpl_malloc. */
10831 /* Thanks to Mike Haertel and Jim Avera for this test.
10832 Here is a matrix of mmap possibilities:
10833 mmap private not fixed
10834 mmap private fixed at somewhere currently unmapped
10835 mmap private fixed at somewhere already mapped
10836 mmap shared not fixed
10837 mmap shared fixed at somewhere currently unmapped
10838 mmap shared fixed at somewhere already mapped
10839 For private mappings, we should verify that changes cannot be read()
10840 back from the file, nor mmap's back from the file at a different
10841 address. (There have been systems where private was not correctly
10842 implemented like the infamous i386 svr4.0, and systems where the
10843 VM page cache was not coherent with the file system buffer cache
10844 like early versions of FreeBSD and possibly contemporary NetBSD.)
10845 For shared mappings, we should conversely verify that changes get
10846 propagated back to all the places they're supposed to be.
10848 Grep wants private fixed already mapped.
10849 The main things grep needs to know about mmap are:
10850 * does it exist and is it safe to write into the mmap'd area
10851 * how to use it (BSD variants) */
10854 #include <sys/mman.h>
10856 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10860 /* This mess was copied from the GNU getpagesize.h. */
10861 #ifndef HAVE_GETPAGESIZE
10862 # ifdef _SC_PAGESIZE
10863 # define getpagesize() sysconf(_SC_PAGESIZE)
10864 # else /* no _SC_PAGESIZE */
10865 # ifdef HAVE_SYS_PARAM_H
10866 # include <sys/param.h>
10867 # ifdef EXEC_PAGESIZE
10868 # define getpagesize() EXEC_PAGESIZE
10869 # else /* no EXEC_PAGESIZE */
10871 # define getpagesize() NBPG * CLSIZE
10874 # endif /* no CLSIZE */
10875 # else /* no NBPG */
10877 # define getpagesize() NBPC
10878 # else /* no NBPC */
10880 # define getpagesize() PAGESIZE
10881 # endif /* PAGESIZE */
10882 # endif /* no NBPC */
10883 # endif /* no NBPG */
10884 # endif /* no EXEC_PAGESIZE */
10885 # else /* no HAVE_SYS_PARAM_H */
10886 # define getpagesize() 8192 /* punt totally */
10887 # endif /* no HAVE_SYS_PARAM_H */
10888 # endif /* no _SC_PAGESIZE */
10890 #endif /* no HAVE_GETPAGESIZE */
10895 char *data, *data2, *data3;
10896 const char *cdata2;
10900 pagesize = getpagesize ();
10902 /* First, make a file with some known garbage in it. */
10903 data = (char *) malloc (pagesize);
10906 for (i = 0; i < pagesize; ++i)
10907 *(data + i) = rand ();
10909 fd = creat ("conftest.mmap", 0600);
10912 if (write (fd, data, pagesize) != pagesize)
10916 /* Next, check that the tail of a page is zero-filled. File must have
10917 non-zero length, otherwise we risk SIGBUS for entire page. */
10918 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
10922 if (write (fd2, cdata2, 1) != 1)
10924 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
10925 if (data2 == MAP_FAILED)
10927 for (i = 0; i < pagesize; ++i)
10931 if (munmap (data2, pagesize))
10934 /* Next, try to mmap the file at a fixed address which already has
10935 something else allocated at it. If we can, also make sure that
10936 we see the same garbage. */
10937 fd = open ("conftest.mmap", O_RDWR);
10940 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10941 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10943 for (i = 0; i < pagesize; ++i)
10944 if (*(data + i) != *(data2 + i))
10947 /* Finally, make sure that changes to the mapped area do not
10948 percolate back to the file as seen by read(). (This is a bug on
10949 some variants of i386 svr4.0.) */
10950 for (i = 0; i < pagesize; ++i)
10951 *(data2 + i) = *(data2 + i) + 1;
10952 data3 = (char *) malloc (pagesize);
10955 if (read (fd, data3, pagesize) != pagesize)
10957 for (i = 0; i < pagesize; ++i)
10958 if (*(data + i) != *(data3 + i))
10964 if ac_fn_c_try_run
"$LINENO"; then :
10965 ac_cv_func_mmap_fixed_mapped
=yes
10967 ac_cv_func_mmap_fixed_mapped
=no
10969 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10970 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
10975 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
10976 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10978 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
10981 rm -f conftest.mmap conftest.txt
10983 if test $use_mmap_for_buffers = yes; then
10985 $as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
10990 LIBS
="$LIBS_SYSTEM $LIBS"
10992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
10993 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
10994 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
10995 $as_echo_n "(cached) " >&6
10997 ac_check_lib_save_LIBS
=$LIBS
10998 LIBS
="-ldnet $LIBS"
10999 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11000 /* end confdefs.h. */
11002 /* Override any GCC internal prototype to avoid an error.
11003 Use char because int might match the return type of a GCC
11004 builtin and then its argument prototype would still apply. */
11012 return dnet_ntoa ();
11017 if ac_fn_c_try_link
"$LINENO"; then :
11018 ac_cv_lib_dnet_dnet_ntoa
=yes
11020 ac_cv_lib_dnet_dnet_ntoa
=no
11022 rm -f core conftest.err conftest.
$ac_objext \
11023 conftest
$ac_exeext conftest.
$ac_ext
11024 LIBS
=$ac_check_lib_save_LIBS
11026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
11027 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
11028 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x
""yes; then :
11029 cat >>confdefs.h
<<_ACEOF
11030 #define HAVE_LIBDNET 1
11033 LIBS
="-ldnet $LIBS"
11038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
11039 $as_echo_n "checking for main in -lXbsd... " >&6; }
11040 if test "${ac_cv_lib_Xbsd_main+set}" = set; then :
11041 $as_echo_n "(cached) " >&6
11043 ac_check_lib_save_LIBS
=$LIBS
11044 LIBS
="-lXbsd $LIBS"
11045 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11046 /* end confdefs.h. */
11057 if ac_fn_c_try_link
"$LINENO"; then :
11058 ac_cv_lib_Xbsd_main
=yes
11060 ac_cv_lib_Xbsd_main
=no
11062 rm -f core conftest.err conftest.
$ac_objext \
11063 conftest
$ac_exeext conftest.
$ac_ext
11064 LIBS
=$ac_check_lib_save_LIBS
11066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
11067 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
11068 if test "x$ac_cv_lib_Xbsd_main" = x
""yes; then :
11069 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -lXbsd"
11077 if test "$ac_cv_header_pthread_h"; then
11078 if test "$GMALLOC_OBJ" = gmalloc.o
; then
11079 emacs_pthread_function
=pthread_atfork
11081 emacs_pthread_function
=pthread_self
11083 as_ac_Lib
=`$as_echo "ac_cv_lib_pthread_$emacs_pthread_function" | $as_tr_sh`
11084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $emacs_pthread_function in -lpthread" >&5
11085 $as_echo_n "checking for $emacs_pthread_function in -lpthread... " >&6; }
11086 if { as_var
=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
11087 $as_echo_n "(cached) " >&6
11089 ac_check_lib_save_LIBS
=$LIBS
11090 LIBS
="-lpthread $LIBS"
11091 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11092 /* end confdefs.h. */
11094 /* Override any GCC internal prototype to avoid an error.
11095 Use char because int might match the return type of a GCC
11096 builtin and then its argument prototype would still apply. */
11100 char $emacs_pthread_function ();
11104 return $emacs_pthread_function ();
11109 if ac_fn_c_try_link
"$LINENO"; then :
11110 eval "$as_ac_Lib=yes"
11112 eval "$as_ac_Lib=no"
11114 rm -f core conftest.err conftest.
$ac_objext \
11115 conftest
$ac_exeext conftest.
$ac_ext
11116 LIBS
=$ac_check_lib_save_LIBS
11118 eval ac_res
=\$
$as_ac_Lib
11119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11120 $as_echo "$ac_res" >&6; }
11121 eval as_val
=\$
$as_ac_Lib
11122 if test "x$as_val" = x
""yes; then :
11127 if test "$HAVE_PTHREAD" = yes; then
11128 case "${canonical}" in
11130 *) LIB_PTHREAD
="-lpthread"
11131 LIBS
="$LIB_PTHREAD $LIBS" ;;
11134 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
11139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
11140 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
11141 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then :
11142 $as_echo_n "(cached) " >&6
11144 ac_check_lib_save_LIBS
=$LIBS
11145 LIBS
="-lpthreads $LIBS"
11146 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11147 /* end confdefs.h. */
11149 /* Override any GCC internal prototype to avoid an error.
11150 Use char because int might match the return type of a GCC
11151 builtin and then its argument prototype would still apply. */
11159 return cma_open ();
11164 if ac_fn_c_try_link
"$LINENO"; then :
11165 ac_cv_lib_pthreads_cma_open
=yes
11167 ac_cv_lib_pthreads_cma_open
=no
11169 rm -f core conftest.err conftest.
$ac_objext \
11170 conftest
$ac_exeext conftest.
$ac_ext
11171 LIBS
=$ac_check_lib_save_LIBS
11173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
11174 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
11175 if test "x$ac_cv_lib_pthreads_cma_open" = x
""yes; then :
11176 cat >>confdefs.h
<<_ACEOF
11177 #define HAVE_LIBPTHREADS 1
11180 LIBS
="-lpthreads $LIBS"
11185 ## Note: when using cpp in s/aix4.2.h, this definition depended on
11186 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
11187 ## the system file was sourced. Hence the value of LIBS_SYSTEM
11188 ## added to LIBS in configure would never contain the pthreads part,
11189 ## but the value used in Makefiles might. FIXME?
11191 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
11192 ## be harmless on older versions of X where it happens to exist.
11193 test "$opsys" = "aix4-2" && \
11194 test $ac_cv_lib_pthreads_cma_open = yes && \
11195 LIBS_SYSTEM
="$LIBS_SYSTEM -lpthreads"
11200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
11201 $as_echo_n "checking for -bbigtoc option... " >&6; }
11202 if test "${gdb_cv_bigtoc+set}" = set; then :
11203 $as_echo_n "(cached) " >&6
11207 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
11208 *) gdb_cv_bigtoc
=-bbigtoc ;;
11211 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
11212 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11213 /* end confdefs.h. */
11223 if ac_fn_c_try_link
"$LINENO"; then :
11228 rm -f core conftest.err conftest.
$ac_objext \
11229 conftest
$ac_exeext conftest.
$ac_ext
11232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
11233 $as_echo "$gdb_cv_bigtoc" >&6; }
11237 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
11238 # used for the tests that follow. We set them back to REAL_CFLAGS and
11239 # REAL_CPPFLAGS later on.
11241 REAL_CFLAGS
="$CFLAGS"
11242 REAL_CPPFLAGS
="$CPPFLAGS"
11244 if test "${HAVE_X11}" = "yes"; then
11245 DEFS
="$C_SWITCH_X_SITE $DEFS"
11246 LDFLAGS
="$LDFLAGS $LD_SWITCH_X_SITE"
11248 CFLAGS
="$C_SWITCH_X_SITE $CFLAGS"
11249 CPPFLAGS
="$C_SWITCH_X_SITE $CPPFLAGS"
11251 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
11252 # This is handled by LD_SWITCH_X_SITE_RPATH during the real build,
11253 # but it's more convenient here to set LD_RUN_PATH since this
11254 # also works on hosts that don't understand LD_SWITCH_X_SITE_RPATH.
11255 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
11256 LD_RUN_PATH
=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
11260 if test "${opsys}" = "gnu-linux"; then
11261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
11262 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
11263 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11264 /* end confdefs.h. */
11269 XOpenDisplay ("foo");
11274 if ac_fn_c_try_link
"$LINENO"; then :
11275 xgnu_linux_first_failure
=no
11277 xgnu_linux_first_failure
=yes
11279 rm -f core conftest.err conftest.
$ac_objext \
11280 conftest
$ac_exeext conftest.
$ac_ext
11281 if test "${xgnu_linux_first_failure}" = "yes"; then
11282 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
11283 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
11284 OLD_CPPFLAGS
="$CPPFLAGS"
11286 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
11287 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
11288 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
11289 LIBS
="$LIBS -b i486-linuxaout"
11290 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11291 /* end confdefs.h. */
11296 XOpenDisplay ("foo");
11301 if ac_fn_c_try_link
"$LINENO"; then :
11302 xgnu_linux_second_failure
=no
11304 xgnu_linux_second_failure
=yes
11306 rm -f core conftest.err conftest.
$ac_objext \
11307 conftest
$ac_exeext conftest.
$ac_ext
11308 if test "${xgnu_linux_second_failure}" = "yes"; then
11309 # If we get the same failure with -b, there is no use adding -b.
11310 # So take it out. This plays safe.
11311 LD_SWITCH_X_SITE
="$OLD_LD_SWITCH_X_SITE"
11312 C_SWITCH_X_SITE
="$OLD_C_SWITCH_X_SITE"
11313 CPPFLAGS
="$OLD_CPPFLAGS"
11315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11316 $as_echo "no" >&6; }
11318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11319 $as_echo "yes" >&6; }
11322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11323 $as_echo "no" >&6; }
11327 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
11328 # header files included from there.
11329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
11330 $as_echo_n "checking for Xkb... " >&6; }
11331 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11332 /* end confdefs.h. */
11333 #include <X11/Xlib.h>
11334 #include <X11/XKBlib.h>
11338 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
11343 if ac_fn_c_try_link
"$LINENO"; then :
11348 rm -f core conftest.err conftest.
$ac_objext \
11349 conftest
$ac_exeext conftest.
$ac_ext
11350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
11351 $as_echo "$emacs_xkb" >&6; }
11352 if test $emacs_xkb = yes; then
11354 $as_echo "#define HAVE_XKB 1" >>confdefs.h
11358 for ac_func
in XrmSetDatabase XScreenResourceString \
11359 XScreenNumberOfScreen
11361 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11362 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11363 eval as_val
=\$
$as_ac_var
11364 if test "x$as_val" = x
""yes; then :
11365 cat >>confdefs.h
<<_ACEOF
11366 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11374 if test "${window_system}" = "x11"; then
11375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
11376 $as_echo_n "checking X11 version 6... " >&6; }
11377 if test "${emacs_cv_x11_version_6+set}" = set; then :
11378 $as_echo_n "(cached) " >&6
11380 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11381 /* end confdefs.h. */
11382 #include <X11/Xlib.h>
11386 #if XlibSpecificationRelease < 6
11394 if ac_fn_c_try_link
"$LINENO"; then :
11395 emacs_cv_x11_version_6
=yes
11397 emacs_cv_x11_version_6
=no
11399 rm -f core conftest.err conftest.
$ac_objext \
11400 conftest
$ac_exeext conftest.
$ac_ext
11403 if test $emacs_cv_x11_version_6 = yes; then
11404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
11405 $as_echo "6 or newer" >&6; }
11407 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
11410 $as_echo "#define HAVE_X_I18N 1" >>confdefs.h
11412 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
11417 $as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
11422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
11423 $as_echo "before 6" >&6; }
11428 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
11430 if test "${HAVE_X11}" = "yes" || test "${HAVE_NS}" = "yes" || test "${opsys}" = "mingw32"; then
11431 if test "${with_rsvg}" != "no"; then
11432 RSVG_REQUIRED
=2.11.0
11433 RSVG_MODULE
="librsvg-2.0 >= $RSVG_REQUIRED"
11438 if test "$PKG_CONFIG" = "no" ; then
11441 PKG_CONFIG_MIN_VERSION
=0.9.0
11442 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
11444 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
11446 if "$PKG_CONFIG" --exists "$RSVG_MODULE" 2>&5 &&
11447 RSVG_CFLAGS
=`"$PKG_CONFIG" --cflags "$RSVG_MODULE" 2>&5` &&
11448 RSVG_LIBS
=`"$PKG_CONFIG" --libs "$RSVG_MODULE" 2>&5`; then
11455 RSVG_CFLAGS
=`$as_echo "$RSVG_CFLAGS" | sed -e "$edit_cflags"`
11456 RSVG_LIBS
=`$as_echo "$RSVG_LIBS" | sed -e 's,///*,/,g'`
11457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$RSVG_CFLAGS' LIBS='$RSVG_LIBS'" >&5
11458 $as_echo "yes CFLAGS='$RSVG_CFLAGS' LIBS='$RSVG_LIBS'" >&6; }
11461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11462 $as_echo "no" >&6; }
11465 ## If we have a custom action on failure, don't print errors, but
11466 ## do set a variable so people can do so. Do it in a subshell
11467 ## to capture any diagnostics in invoking pkg-config.
11468 RSVG_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "$RSVG_MODULE") 2>&1`
11475 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11476 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11480 if test $succeeded = yes; then
11489 if test $HAVE_RSVG = yes; then
11491 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
11493 CFLAGS
="$CFLAGS $RSVG_CFLAGS"
11494 LIBS
="$RSVG_LIBS $LIBS"
11499 HAVE_IMAGEMAGICK
=no
11500 if test "${HAVE_X11}" = "yes" ||
test "${HAVE_NS}" = "yes"; then
11501 if test "${with_imagemagick}" != "no"; then
11502 ## 6.2.8 is the earliest version known to work, but earlier versions
11503 ## might work - let us know if you find one.
11504 ## 6.0.7 does not work. See bug#7955.
11505 ## 6.8.2 makes Emacs crash; see Bug#13867.
11506 IMAGEMAGICK_MODULE
="Wand >= 6.2.8 Wand != 6.8.2"
11510 if test "$PKG_CONFIG" = "no" ; then
11513 PKG_CONFIG_MIN_VERSION
=0.9.0
11514 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
11516 $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
11518 if "$PKG_CONFIG" --exists "$IMAGEMAGICK_MODULE" 2>&5 &&
11519 IMAGEMAGICK_CFLAGS
=`"$PKG_CONFIG" --cflags "$IMAGEMAGICK_MODULE" 2>&5` &&
11520 IMAGEMAGICK_LIBS
=`"$PKG_CONFIG" --libs "$IMAGEMAGICK_MODULE" 2>&5`; then
11527 IMAGEMAGICK_CFLAGS
=`$as_echo "$IMAGEMAGICK_CFLAGS" | sed -e "$edit_cflags"`
11528 IMAGEMAGICK_LIBS
=`$as_echo "$IMAGEMAGICK_LIBS" | sed -e 's,///*,/,g'`
11529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$IMAGEMAGICK_CFLAGS' LIBS='$IMAGEMAGICK_LIBS'" >&5
11530 $as_echo "yes CFLAGS='$IMAGEMAGICK_CFLAGS' LIBS='$IMAGEMAGICK_LIBS'" >&6; }
11533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11534 $as_echo "no" >&6; }
11535 IMAGEMAGICK_CFLAGS
=""
11536 IMAGEMAGICK_LIBS
=""
11537 ## If we have a custom action on failure, don't print errors, but
11538 ## do set a variable so people can do so. Do it in a subshell
11539 ## to capture any diagnostics in invoking pkg-config.
11540 IMAGEMAGICK_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "$IMAGEMAGICK_MODULE") 2>&1`
11547 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11548 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11552 if test $succeeded = yes; then
11553 HAVE_IMAGEMAGICK
=yes
11561 if test $HAVE_IMAGEMAGICK = yes; then
11563 $as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
11565 CFLAGS
="$CFLAGS $IMAGEMAGICK_CFLAGS"
11566 LIBS
="$IMAGEMAGICK_LIBS $LIBS"
11567 for ac_func
in MagickExportImagePixels MagickMergeImageLayers
11569 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11570 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11571 eval as_val
=\$
$as_ac_var
11572 if test "x$as_val" = x
""yes; then :
11573 cat >>confdefs.h
<<_ACEOF
11574 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11587 gtk_term_header
=$term_header
11590 if test "${opsys}" != "mingw32"; then
11591 if test "${with_gtk3}" = "yes" ||
test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "maybe"; then
11594 GTK_MODULES
="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11599 if test "$PKG_CONFIG" = "no" ; then
11602 PKG_CONFIG_MIN_VERSION
=0.9.0
11603 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
11605 $as_echo_n "checking for $GTK_MODULES... " >&6; }
11607 if "$PKG_CONFIG" --exists "$GTK_MODULES" 2>&5 &&
11608 GTK_CFLAGS
=`"$PKG_CONFIG" --cflags "$GTK_MODULES" 2>&5` &&
11609 GTK_LIBS
=`"$PKG_CONFIG" --libs "$GTK_MODULES" 2>&5`; then
11616 GTK_CFLAGS
=`$as_echo "$GTK_CFLAGS" | sed -e "$edit_cflags"`
11617 GTK_LIBS
=`$as_echo "$GTK_LIBS" | sed -e 's,///*,/,g'`
11618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&5
11619 $as_echo "yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&6; }
11622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11623 $as_echo "no" >&6; }
11626 ## If we have a custom action on failure, don't print errors, but
11627 ## do set a variable so people can do so. Do it in a subshell
11628 ## to capture any diagnostics in invoking pkg-config.
11629 GTK_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "$GTK_MODULES") 2>&1`
11636 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11637 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11641 if test $succeeded = yes; then
11647 if test "$pkg_check_gtk" = "no" && test "$with_gtk3" = "yes"; then
11648 as_fn_error
"$GTK_PKG_ERRORS" "$LINENO" 5
11650 if test "$pkg_check_gtk" = "yes"; then
11652 $as_echo "#define HAVE_GTK3 1" >>confdefs.h
11654 GTK_OBJ
=emacsgtkfixed.o
11655 gtk_term_header
=gtkutil.h
11656 USE_GTK_TOOLKIT
="GTK3"
11657 if test "x$ac_enable_gtk_deprecation_warnings" = x
; then
11658 GTK_CFLAGS
="$GTK_CFLAGS -DGDK_DISABLE_DEPRECATION_WARNINGS"
11659 GTK_CFLAGS
="$GTK_CFLAGS -DGLIB_DISABLE_DEPRECATION_WARNINGS"
11663 gtk3_pkg_errors
="$GTK_PKG_ERRORS "
11667 if test "${with_gtk2}" = "yes" ||
test "$check_gtk2" = "yes"; then
11670 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11675 if test "$PKG_CONFIG" = "no" ; then
11678 PKG_CONFIG_MIN_VERSION
=0.9.0
11679 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
11681 $as_echo_n "checking for $GTK_MODULES... " >&6; }
11683 if "$PKG_CONFIG" --exists "$GTK_MODULES" 2>&5 &&
11684 GTK_CFLAGS
=`"$PKG_CONFIG" --cflags "$GTK_MODULES" 2>&5` &&
11685 GTK_LIBS
=`"$PKG_CONFIG" --libs "$GTK_MODULES" 2>&5`; then
11692 GTK_CFLAGS
=`$as_echo "$GTK_CFLAGS" | sed -e "$edit_cflags"`
11693 GTK_LIBS
=`$as_echo "$GTK_LIBS" | sed -e 's,///*,/,g'`
11694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&5
11695 $as_echo "yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&6; }
11698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11699 $as_echo "no" >&6; }
11702 ## If we have a custom action on failure, don't print errors, but
11703 ## do set a variable so people can do so. Do it in a subshell
11704 ## to capture any diagnostics in invoking pkg-config.
11705 GTK_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "$GTK_MODULES") 2>&1`
11712 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11713 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11717 if test $succeeded = yes; then
11723 if test "$pkg_check_gtk" = "no" &&
11724 { test "$with_gtk" = yes ||
test "$with_gtk2" = "yes"; }
11726 as_fn_error
"$gtk3_pkg_errors$GTK_PKG_ERRORS" "$LINENO" 5
11728 test "$pkg_check_gtk" = "yes" && USE_GTK_TOOLKIT
="GTK2"
11732 if test x
"$pkg_check_gtk" = xyes
; then
11736 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
11737 CFLAGS
="$CFLAGS $GTK_CFLAGS"
11738 LIBS
="$GTK_LIBS $LIBS"
11739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GTK compiles" >&5
11740 $as_echo_n "checking whether GTK compiles... " >&6; }
11742 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11743 /* end confdefs.h. */
11744 /* Check the Gtk and Glib APIs. */
11745 #include <gtk/gtk.h>
11746 #include <glib-object.h>
11748 callback (GObject *go, GParamSpec *spec, gpointer user_data)
11755 GtkSettings *gs = 0;
11756 /* Use G_CALLBACK to make sure function pointers can be cast to void *;
11757 strict C prohibits this. Use gtk_main_iteration to test that the
11758 libraries are there. */
11759 if (g_signal_handler_find (G_OBJECT (gs), G_SIGNAL_MATCH_FUNC,
11760 0, 0, 0, G_CALLBACK (callback), 0))
11761 gtk_main_iteration ();
11767 if ac_fn_c_try_link
"$LINENO"; then :
11770 rm -f core conftest.err conftest.
$ac_objext \
11771 conftest
$ac_exeext conftest.
$ac_ext
11772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_COMPILES" >&5
11773 $as_echo "$GTK_COMPILES" >&6; }
11774 if test "${GTK_COMPILES}" != "yes"; then
11776 if test "$USE_X_TOOLKIT" != "maybe"; then
11777 as_fn_error
"Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
11782 $as_echo "#define USE_GTK 1" >>confdefs.h
11784 GTK_OBJ
="gtkutil.o $GTK_OBJ"
11785 term_header
=$gtk_term_header
11787 if "$PKG_CONFIG" --atleast-version=2.10 gtk
+-2.0
; then
11790 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
11791 closing open displays. This is no problem if you just use
11792 one display, but if you use more than one and close one of them
11793 Emacs may crash." >&5
11794 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
11795 closing open displays. This is no problem if you just use
11796 one display, but if you use more than one and close one of them
11797 Emacs may crash." >&2;}
11806 if test "${HAVE_GTK}" = "yes"; then
11808 if test "$with_toolkit_scroll_bars" != no
; then
11809 with_toolkit_scroll_bars
=yes
11812 HAVE_GTK_FILE_SELECTION
=no
11813 ac_fn_c_check_decl
"$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
11814 #include <gtk/gtk.h>
11816 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x
""yes; then :
11817 HAVE_GTK_FILE_SELECTION
=yes
11819 HAVE_GTK_FILE_SELECTION
=no
11822 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
11823 for ac_func
in gtk_file_selection_new
11825 ac_fn_c_check_func
"$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
11826 if test "x$ac_cv_func_gtk_file_selection_new" = x
""yes; then :
11827 cat >>confdefs.h
<<_ACEOF
11828 #define HAVE_GTK_FILE_SELECTION_NEW 1
11836 HAVE_GTK_HANDLE_BOX
=no
11837 ac_fn_c_check_decl
"$LINENO" "GTK_TYPE_HANDLE_BOX" "ac_cv_have_decl_GTK_TYPE_HANDLE_BOX" "$ac_includes_default
11838 #include <gtk/gtk.h>
11840 if test "x$ac_cv_have_decl_GTK_TYPE_HANDLE_BOX" = x
""yes; then :
11841 HAVE_GTK_HANDLE_BOX
=yes
11843 HAVE_GTK_HANDLE_BOX
=no
11846 if test "$HAVE_GTK_HANDLE_BOX" = yes; then
11847 for ac_func
in gtk_handle_box_new
11849 ac_fn_c_check_func
"$LINENO" "gtk_handle_box_new" "ac_cv_func_gtk_handle_box_new"
11850 if test "x$ac_cv_func_gtk_handle_box_new" = x
""yes; then :
11851 cat >>confdefs.h
<<_ACEOF
11852 #define HAVE_GTK_HANDLE_BOX_NEW 1
11860 HAVE_GTK_TEAROFF_MENU_ITEM
=no
11861 ac_fn_c_check_decl
"$LINENO" "GTK_TYPE_TEAROFF_MENU_ITEM" "ac_cv_have_decl_GTK_TYPE_TEAROFF_MENU_ITEM" "$ac_includes_default
11862 #include <gtk/gtk.h>
11864 if test "x$ac_cv_have_decl_GTK_TYPE_TEAROFF_MENU_ITEM" = x
""yes; then :
11865 HAVE_GTK_TEAROFF_MENU_ITEM
=yes
11867 HAVE_GTK_TEAROFF_MENU_ITEM
=no
11870 if test "$HAVE_GTK_TEAROFF_MENU_ITEM" = yes; then
11871 for ac_func
in gtk_tearoff_menu_item_new
11873 ac_fn_c_check_func
"$LINENO" "gtk_tearoff_menu_item_new" "ac_cv_func_gtk_tearoff_menu_item_new"
11874 if test "x$ac_cv_func_gtk_tearoff_menu_item_new" = x
""yes; then :
11875 cat >>confdefs.h
<<_ACEOF
11876 #define HAVE_GTK_TEAROFF_MENU_ITEM_NEW 1
11884 for ac_func
in gtk_widget_get_window gtk_widget_set_has_window \
11885 gtk_dialog_get_action_area gtk_widget_get_sensitive \
11886 gtk_widget_get_mapped gtk_adjustment_get_page_size \
11887 gtk_orientable_set_orientation \
11888 gtk_window_set_has_resize_grip
11890 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11891 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11892 eval as_val
=\$
$as_ac_var
11893 if test "x$as_val" = x
""yes; then :
11894 cat >>confdefs.h
<<_ACEOF
11895 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11902 term_header
=gtkutil.h
11907 if test "${with_dbus}" = "yes"; then
11911 if test "$PKG_CONFIG" = "no" ; then
11914 PKG_CONFIG_MIN_VERSION
=0.9.0
11915 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
11917 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
11919 if "$PKG_CONFIG" --exists "dbus-1 >= 1.0" 2>&5 &&
11920 DBUS_CFLAGS
=`"$PKG_CONFIG" --cflags "dbus-1 >= 1.0" 2>&5` &&
11921 DBUS_LIBS
=`"$PKG_CONFIG" --libs "dbus-1 >= 1.0" 2>&5`; then
11928 DBUS_CFLAGS
=`$as_echo "$DBUS_CFLAGS" | sed -e "$edit_cflags"`
11929 DBUS_LIBS
=`$as_echo "$DBUS_LIBS" | sed -e 's,///*,/,g'`
11930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$DBUS_CFLAGS' LIBS='$DBUS_LIBS'" >&5
11931 $as_echo "yes CFLAGS='$DBUS_CFLAGS' LIBS='$DBUS_LIBS'" >&6; }
11934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11935 $as_echo "no" >&6; }
11938 ## If we have a custom action on failure, don't print errors, but
11939 ## do set a variable so people can do so. Do it in a subshell
11940 ## to capture any diagnostics in invoking pkg-config.
11941 DBUS_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "dbus-1 >= 1.0") 2>&1`
11948 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11949 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11953 if test $succeeded = yes; then
11959 if test "$HAVE_DBUS" = yes; then
11960 LIBS
="$LIBS $DBUS_LIBS"
11962 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
11964 for ac_func
in dbus_watch_get_unix_fd \
11965 dbus_type_is_valid \
11966 dbus_validate_bus_name \
11967 dbus_validate_path \
11968 dbus_validate_interface \
11969 dbus_validate_member
11971 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11972 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11973 eval as_val
=\$
$as_ac_var
11974 if test "x$as_val" = x
""yes; then :
11975 cat >>confdefs.h
<<_ACEOF
11976 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11982 DBUS_OBJ
=dbusbind.o
11988 if test "${HAVE_X11}" = "yes" && test "${with_gsettings}" = "yes"; then
11992 if test "$PKG_CONFIG" = "no" ; then
11995 PKG_CONFIG_MIN_VERSION
=0.9.0
11996 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gio-2.0 >= 2.26" >&5
11998 $as_echo_n "checking for gio-2.0 >= 2.26... " >&6; }
12000 if "$PKG_CONFIG" --exists "gio-2.0 >= 2.26" 2>&5 &&
12001 GSETTINGS_CFLAGS
=`"$PKG_CONFIG" --cflags "gio-2.0 >= 2.26" 2>&5` &&
12002 GSETTINGS_LIBS
=`"$PKG_CONFIG" --libs "gio-2.0 >= 2.26" 2>&5`; then
12009 GSETTINGS_CFLAGS
=`$as_echo "$GSETTINGS_CFLAGS" | sed -e "$edit_cflags"`
12010 GSETTINGS_LIBS
=`$as_echo "$GSETTINGS_LIBS" | sed -e 's,///*,/,g'`
12011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GSETTINGS_CFLAGS' LIBS='$GSETTINGS_LIBS'" >&5
12012 $as_echo "yes CFLAGS='$GSETTINGS_CFLAGS' LIBS='$GSETTINGS_LIBS'" >&6; }
12015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12016 $as_echo "no" >&6; }
12017 GSETTINGS_CFLAGS
=""
12019 ## If we have a custom action on failure, don't print errors, but
12020 ## do set a variable so people can do so. Do it in a subshell
12021 ## to capture any diagnostics in invoking pkg-config.
12022 GSETTINGS_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "gio-2.0 >= 2.26") 2>&1`
12029 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12030 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12034 if test $succeeded = yes; then
12040 if test "$HAVE_GSETTINGS" = "yes"; then
12042 $as_echo "#define HAVE_GSETTINGS 1" >>confdefs.h
12044 SETTINGS_CFLAGS
="$GSETTINGS_CFLAGS"
12045 SETTINGS_LIBS
="$GSETTINGS_LIBS"
12050 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
12054 if test "$PKG_CONFIG" = "no" ; then
12057 PKG_CONFIG_MIN_VERSION
=0.9.0
12058 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
12060 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
12062 if "$PKG_CONFIG" --exists "gconf-2.0 >= 2.13" 2>&5 &&
12063 GCONF_CFLAGS
=`"$PKG_CONFIG" --cflags "gconf-2.0 >= 2.13" 2>&5` &&
12064 GCONF_LIBS
=`"$PKG_CONFIG" --libs "gconf-2.0 >= 2.13" 2>&5`; then
12071 GCONF_CFLAGS
=`$as_echo "$GCONF_CFLAGS" | sed -e "$edit_cflags"`
12072 GCONF_LIBS
=`$as_echo "$GCONF_LIBS" | sed -e 's,///*,/,g'`
12073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GCONF_CFLAGS' LIBS='$GCONF_LIBS'" >&5
12074 $as_echo "yes CFLAGS='$GCONF_CFLAGS' LIBS='$GCONF_LIBS'" >&6; }
12077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12078 $as_echo "no" >&6; }
12081 ## If we have a custom action on failure, don't print errors, but
12082 ## do set a variable so people can do so. Do it in a subshell
12083 ## to capture any diagnostics in invoking pkg-config.
12084 GCONF_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "gconf-2.0 >= 2.13") 2>&1`
12091 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12092 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12096 if test $succeeded = yes; then
12102 if test "$HAVE_GCONF" = yes; then
12104 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
12106 SETTINGS_CFLAGS
="$SETTINGS_CFLAGS $GCONF_CFLAGS"
12107 SETTINGS_LIBS
="$SETTINGS_LIBS $GCONF_LIBS"
12111 if test "$HAVE_GSETTINGS" = "yes" ||
test "$HAVE_GCONF" = "yes"; then
12115 if test "$PKG_CONFIG" = "no" ; then
12118 PKG_CONFIG_MIN_VERSION
=0.9.0
12119 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gobject-2.0 >= 2.0" >&5
12121 $as_echo_n "checking for gobject-2.0 >= 2.0... " >&6; }
12123 if "$PKG_CONFIG" --exists "gobject-2.0 >= 2.0" 2>&5 &&
12124 GOBJECT_CFLAGS
=`"$PKG_CONFIG" --cflags "gobject-2.0 >= 2.0" 2>&5` &&
12125 GOBJECT_LIBS
=`"$PKG_CONFIG" --libs "gobject-2.0 >= 2.0" 2>&5`; then
12132 GOBJECT_CFLAGS
=`$as_echo "$GOBJECT_CFLAGS" | sed -e "$edit_cflags"`
12133 GOBJECT_LIBS
=`$as_echo "$GOBJECT_LIBS" | sed -e 's,///*,/,g'`
12134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GOBJECT_CFLAGS' LIBS='$GOBJECT_LIBS'" >&5
12135 $as_echo "yes CFLAGS='$GOBJECT_CFLAGS' LIBS='$GOBJECT_LIBS'" >&6; }
12138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12139 $as_echo "no" >&6; }
12142 ## If we have a custom action on failure, don't print errors, but
12143 ## do set a variable so people can do so. Do it in a subshell
12144 ## to capture any diagnostics in invoking pkg-config.
12145 GOBJECT_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "gobject-2.0 >= 2.0") 2>&1`
12152 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12153 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12157 if test $succeeded = yes; then
12163 if test "$HAVE_GOBJECT" = "yes"; then
12164 SETTINGS_CFLAGS
="$SETTINGS_CFLAGS $GOBJECT_CFLAGS"
12165 SETTINGS_LIBS
="$SETTINGS_LIBS $GOBJECT_LIBS"
12167 SAVE_CFLAGS
="$CFLAGS"
12169 CFLAGS
="$SETTINGS_CFLAGS $CFLAGS"
12170 LIBS
="$SETTINGS_LIBS $LIBS"
12171 CFLAGS
="$SAVE_CFLAGS"
12180 if test "${with_selinux}" = "yes"; then
12181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
12182 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
12183 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then :
12184 $as_echo_n "(cached) " >&6
12186 ac_check_lib_save_LIBS
=$LIBS
12187 LIBS
="-lselinux $LIBS"
12188 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12189 /* end confdefs.h. */
12191 /* Override any GCC internal prototype to avoid an error.
12192 Use char because int might match the return type of a GCC
12193 builtin and then its argument prototype would still apply. */
12197 char lgetfilecon ();
12201 return lgetfilecon ();
12206 if ac_fn_c_try_link
"$LINENO"; then :
12207 ac_cv_lib_selinux_lgetfilecon
=yes
12209 ac_cv_lib_selinux_lgetfilecon
=no
12211 rm -f core conftest.err conftest.
$ac_objext \
12212 conftest
$ac_exeext conftest.
$ac_ext
12213 LIBS
=$ac_check_lib_save_LIBS
12215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
12216 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
12217 if test "x$ac_cv_lib_selinux_lgetfilecon" = x
""yes; then :
12218 HAVE_LIBSELINUX
=yes
12223 if test "$HAVE_LIBSELINUX" = yes; then
12225 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
12227 LIBSELINUX_LIBS
=-lselinux
12234 if test "${with_gnutls}" = "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 gnutls >= 3.0.0" >&5
12244 $as_echo_n "checking for gnutls >= 3.0.0... " >&6; }
12246 if "$PKG_CONFIG" --exists "gnutls >= 3.0.0" 2>&5 &&
12247 LIBGNUTLS_CFLAGS
=`"$PKG_CONFIG" --cflags "gnutls >= 3.0.0" 2>&5` &&
12248 LIBGNUTLS_LIBS
=`"$PKG_CONFIG" --libs "gnutls >= 3.0.0" 2>&5`; then
12255 LIBGNUTLS_CFLAGS
=`$as_echo "$LIBGNUTLS_CFLAGS" | sed -e "$edit_cflags"`
12256 LIBGNUTLS_LIBS
=`$as_echo "$LIBGNUTLS_LIBS" | sed -e 's,///*,/,g'`
12257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBGNUTLS_CFLAGS' LIBS='$LIBGNUTLS_LIBS'" >&5
12258 $as_echo "yes CFLAGS='$LIBGNUTLS_CFLAGS' LIBS='$LIBGNUTLS_LIBS'" >&6; }
12261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12262 $as_echo "no" >&6; }
12263 LIBGNUTLS_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 LIBGNUTLS_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "gnutls >= 3.0.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
12286 if test "${HAVE_GNUTLS3}" = "yes"; then
12288 $as_echo "#define HAVE_GNUTLS3 1" >>confdefs.h
12295 if test "$PKG_CONFIG" = "no" ; then
12298 PKG_CONFIG_MIN_VERSION
=0.9.0
12299 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.6.6" >&5
12301 $as_echo_n "checking for gnutls >= 2.6.6... " >&6; }
12303 if "$PKG_CONFIG" --exists "gnutls >= 2.6.6" 2>&5 &&
12304 LIBGNUTLS_CFLAGS
=`"$PKG_CONFIG" --cflags "gnutls >= 2.6.6" 2>&5` &&
12305 LIBGNUTLS_LIBS
=`"$PKG_CONFIG" --libs "gnutls >= 2.6.6" 2>&5`; then
12312 LIBGNUTLS_CFLAGS
=`$as_echo "$LIBGNUTLS_CFLAGS" | sed -e "$edit_cflags"`
12313 LIBGNUTLS_LIBS
=`$as_echo "$LIBGNUTLS_LIBS" | sed -e 's,///*,/,g'`
12314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBGNUTLS_CFLAGS' LIBS='$LIBGNUTLS_LIBS'" >&5
12315 $as_echo "yes CFLAGS='$LIBGNUTLS_CFLAGS' LIBS='$LIBGNUTLS_LIBS'" >&6; }
12318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12319 $as_echo "no" >&6; }
12320 LIBGNUTLS_CFLAGS
=""
12322 ## If we have a custom action on failure, don't print errors, but
12323 ## do set a variable so people can do so. Do it in a subshell
12324 ## to capture any diagnostics in invoking pkg-config.
12325 LIBGNUTLS_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "gnutls >= 2.6.6") 2>&1`
12332 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12333 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12337 if test $succeeded = yes; then
12344 if test "${HAVE_GNUTLS}" = "yes"; then
12346 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
12350 # Windows loads GnuTLS dynamically
12351 if test "${opsys}" = "mingw32"; then
12354 CFLAGS
="$CFLAGS $LIBGNUTLS_CFLAGS"
12355 LIBS
="$LIBGNUTLS_LIBS $LIBS"
12365 if test "${with_ns}" = yes && test ${with_file_notification} = yes; then
12366 with_file_notification
=no
12369 case $with_file_notification,$opsys in
12370 w32
,* |
yes,mingw32
)
12371 ac_fn_c_check_header_mongrel
"$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
12372 if test "x$ac_cv_header_windows_h" = x
""yes; then :
12377 if test "$ac_cv_header_windows_h" = yes ; then
12379 $as_echo "#define HAVE_W32NOTIFY 1" >>confdefs.h
12381 NOTIFY_OBJ
=w32notify.o
12382 NOTIFY_SUMMARY
="yes (w32)"
12386 case $with_file_notification,$NOTIFY_OBJ in
12391 if test "$PKG_CONFIG" = "no" ; then
12392 HAVE_GFILENOTIFY
=no
12394 PKG_CONFIG_MIN_VERSION
=0.9.0
12395 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gio-2.0 >= 2.24" >&5
12397 $as_echo_n "checking for gio-2.0 >= 2.24... " >&6; }
12399 if "$PKG_CONFIG" --exists "gio-2.0 >= 2.24" 2>&5 &&
12400 GFILENOTIFY_CFLAGS
=`"$PKG_CONFIG" --cflags "gio-2.0 >= 2.24" 2>&5` &&
12401 GFILENOTIFY_LIBS
=`"$PKG_CONFIG" --libs "gio-2.0 >= 2.24" 2>&5`; then
12408 GFILENOTIFY_CFLAGS
=`$as_echo "$GFILENOTIFY_CFLAGS" | sed -e "$edit_cflags"`
12409 GFILENOTIFY_LIBS
=`$as_echo "$GFILENOTIFY_LIBS" | sed -e 's,///*,/,g'`
12410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GFILENOTIFY_CFLAGS' LIBS='$GFILENOTIFY_LIBS'" >&5
12411 $as_echo "yes CFLAGS='$GFILENOTIFY_CFLAGS' LIBS='$GFILENOTIFY_LIBS'" >&6; }
12414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12415 $as_echo "no" >&6; }
12416 GFILENOTIFY_CFLAGS
=""
12417 GFILENOTIFY_LIBS
=""
12418 ## If we have a custom action on failure, don't print errors, but
12419 ## do set a variable so people can do so. Do it in a subshell
12420 ## to capture any diagnostics in invoking pkg-config.
12421 GFILENOTIFY_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "gio-2.0 >= 2.24") 2>&1`
12428 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12429 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12433 if test $succeeded = yes; then
12434 HAVE_GFILENOTIFY
=yes
12436 HAVE_GFILENOTIFY
=no
12439 if test "$HAVE_GFILENOTIFY" = "yes"; then
12441 $as_echo "#define HAVE_GFILENOTIFY 1" >>confdefs.h
12443 NOTIFY_OBJ
=gfilenotify.o
12444 NOTIFY_SUMMARY
="yes -lgio (gfile)"
12448 case $with_file_notification,$NOTIFY_OBJ in
12450 ac_fn_c_check_header_mongrel
"$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
12451 if test "x$ac_cv_header_sys_inotify_h" = x
""yes; then :
12456 if test "$ac_cv_header_sys_inotify_h" = yes ; then
12457 ac_fn_c_check_func
"$LINENO" "inotify_init1" "ac_cv_func_inotify_init1"
12458 if test "x$ac_cv_func_inotify_init1" = x
""yes; then :
12462 if test "$ac_cv_func_inotify_init1" = yes; then
12464 $as_echo "#define HAVE_INOTIFY 1" >>confdefs.h
12466 NOTIFY_OBJ
=inotify.o
12467 NOTIFY_SUMMARY
="yes -lglibc (inotify)"
12472 case $with_file_notification,$NOTIFY_OBJ in
12473 yes,* | no
,* |
*,?
*) ;;
12474 *) as_fn_error
"File notification \`$with_file_notification' requested but requirements not found." "$LINENO" 5 ;;
12477 if test -n "$NOTIFY_OBJ"; then
12479 $as_echo "#define USE_FILE_NOTIFY 1" >>confdefs.h
12488 if test x
"${USE_X_TOOLKIT}" = xmaybe ||
test x
"${USE_X_TOOLKIT}" = xLUCID
; then
12489 if test "$with_xaw3d" != no
; then
12490 if test "${emacs_cv_xaw3d+set}" = set; then :
12491 $as_echo_n "(cached) " >&6
12493 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12494 /* end confdefs.h. */
12496 #include <X11/Intrinsic.h>
12497 #include <X11/Xaw3d/Simple.h>
12506 if ac_fn_c_try_link
"$LINENO"; then :
12507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XawScrollbarSetThumb in -lXaw3d" >&5
12508 $as_echo_n "checking for XawScrollbarSetThumb in -lXaw3d... " >&6; }
12509 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then :
12510 $as_echo_n "(cached) " >&6
12512 ac_check_lib_save_LIBS
=$LIBS
12513 LIBS
="-lXaw3d $LIBS"
12514 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12515 /* end confdefs.h. */
12517 /* Override any GCC internal prototype to avoid an error.
12518 Use char because int might match the return type of a GCC
12519 builtin and then its argument prototype would still apply. */
12523 char XawScrollbarSetThumb ();
12527 return XawScrollbarSetThumb ();
12532 if ac_fn_c_try_link
"$LINENO"; then :
12533 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=yes
12535 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=no
12537 rm -f core conftest.err conftest.
$ac_objext \
12538 conftest
$ac_exeext conftest.
$ac_ext
12539 LIBS
=$ac_check_lib_save_LIBS
12541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
12542 $as_echo "$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
12543 if test "x$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" = x
""yes; then :
12552 rm -f core conftest.err conftest.
$ac_objext \
12553 conftest
$ac_exeext conftest.
$ac_ext
12559 if test $emacs_cv_xaw3d = yes; then
12560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
12561 $as_echo_n "checking for xaw3d... " >&6; }
12562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
12563 $as_echo "yes; using Lucid toolkit" >&6; }
12564 USE_X_TOOLKIT
=LUCID
12568 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
12571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
12572 $as_echo_n "checking for xaw3d... " >&6; }
12573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12574 $as_echo "no" >&6; }
12575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
12576 $as_echo_n "checking for libXaw... " >&6; }
12577 if test "${emacs_cv_xaw+set}" = set; then :
12578 $as_echo_n "(cached) " >&6
12580 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12581 /* end confdefs.h. */
12583 #include <X11/Intrinsic.h>
12584 #include <X11/Xaw/Simple.h>
12593 if ac_fn_c_try_link
"$LINENO"; then :
12598 rm -f core conftest.err conftest.
$ac_objext \
12599 conftest
$ac_exeext conftest.
$ac_ext
12602 if test $emacs_cv_xaw = yes; then
12603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
12604 $as_echo "yes; using Lucid toolkit" >&6; }
12605 USE_X_TOOLKIT
=LUCID
12607 elif test x
"${USE_X_TOOLKIT}" = xLUCID
; then
12608 as_fn_error
"Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
12610 as_fn_error
"No X toolkit could be found.
12611 If you are sure you want Emacs compiled without an X toolkit, pass
12612 --with-x-toolkit=no
12613 to configure. Otherwise, install the development libraries for the toolkit
12614 that you want to use (e.g. Gtk+) and re-run configure." "$LINENO" 5
12619 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
12622 if test "${USE_X_TOOLKIT}" != "none"; then
12623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
12624 $as_echo_n "checking X11 toolkit version... " >&6; }
12625 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then :
12626 $as_echo_n "(cached) " >&6
12628 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12629 /* end confdefs.h. */
12630 #include <X11/Intrinsic.h>
12634 #if XtSpecificationRelease < 6
12642 if ac_fn_c_try_link
"$LINENO"; then :
12643 emacs_cv_x11_toolkit_version_6
=yes
12645 emacs_cv_x11_toolkit_version_6
=no
12647 rm -f core conftest.err conftest.
$ac_objext \
12648 conftest
$ac_exeext conftest.
$ac_ext
12651 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
12652 if test $emacs_cv_x11_toolkit_version_6 = yes; then
12653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
12654 $as_echo "6 or newer" >&6; }
12656 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
12658 LIBXTR6
="-lSM -lICE"
12660 ## Use libw.a along with X11R6 Xt.
12661 unixware
) LIBXTR6
="$LIBXTR6 -lw" ;;
12664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
12665 $as_echo "before 6" >&6; }
12669 if test x
$HAVE_X11XTR6 = xyes
; then
12670 LIBS
="-lXt -lSM -lICE $LIBS"
12674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
12675 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
12676 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then :
12677 $as_echo_n "(cached) " >&6
12679 ac_check_lib_save_LIBS
=$LIBS
12681 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12682 /* end confdefs.h. */
12684 /* Override any GCC internal prototype to avoid an error.
12685 Use char because int might match the return type of a GCC
12686 builtin and then its argument prototype would still apply. */
12690 char XmuConvertStandardSelection ();
12694 return XmuConvertStandardSelection ();
12699 if ac_fn_c_try_link
"$LINENO"; then :
12700 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
12702 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
12704 rm -f core conftest.err conftest.
$ac_objext \
12705 conftest
$ac_exeext conftest.
$ac_ext
12706 LIBS
=$ac_check_lib_save_LIBS
12708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
12709 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
12710 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x
""yes; then :
12711 cat >>confdefs.h
<<_ACEOF
12712 #define HAVE_LIBXMU 1
12719 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
12725 ## These systems don't supply Xmu.
12727 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU
=
12735 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
12736 if test "${HAVE_X11}" = "yes"; then
12737 if test "${USE_X_TOOLKIT}" != "none"; then
12738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
12739 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
12740 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
12741 $as_echo_n "(cached) " >&6
12743 ac_check_lib_save_LIBS
=$LIBS
12744 LIBS
="-lXext $LIBS"
12745 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12746 /* end confdefs.h. */
12748 /* Override any GCC internal prototype to avoid an error.
12749 Use char because int might match the return type of a GCC
12750 builtin and then its argument prototype would still apply. */
12754 char XShapeQueryExtension ();
12758 return XShapeQueryExtension ();
12763 if ac_fn_c_try_link
"$LINENO"; then :
12764 ac_cv_lib_Xext_XShapeQueryExtension
=yes
12766 ac_cv_lib_Xext_XShapeQueryExtension
=no
12768 rm -f core conftest.err conftest.
$ac_objext \
12769 conftest
$ac_exeext conftest.
$ac_ext
12770 LIBS
=$ac_check_lib_save_LIBS
12772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12773 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12774 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x
""yes; then :
12775 cat >>confdefs.h
<<_ACEOF
12776 #define HAVE_LIBXEXT 1
12779 LIBS
="-lXext $LIBS"
12787 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12788 # OpenMotif may be installed in such a way on some GNU/Linux systems.
12789 if test -d /usr
/include
/openmotif
; then
12790 CPPFLAGS
="-I/usr/include/openmotif $CPPFLAGS"
12791 emacs_cv_openmotif
=yes
12792 case "$canonical" in
12793 x86_64-
*-linux-gnu* | powerpc64-
*-linux-gnu* | sparc64-
*-linux-gnu*)
12794 test -d /usr
/lib64
/openmotif
&& LDFLAGS
="-L/usr/lib64/openmotif $LDFLAGS"
12797 test -d /usr
/lib
/openmotif
&& LDFLAGS
="-L/usr/lib/openmotif $LDFLAGS"
12800 emacs_cv_openmotif
=no
12802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for (Open)Motif version 2.1" >&5
12803 $as_echo_n "checking for (Open)Motif version 2.1... " >&6; }
12804 if test "${emacs_cv_motif_version_2_1+set}" = set; then :
12805 $as_echo_n "(cached) " >&6
12807 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12808 /* end confdefs.h. */
12813 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12816 Motif version prior to 2.1.
12822 if ac_fn_c_try_compile
"$LINENO"; then :
12823 emacs_cv_motif_version_2_1
=yes
12825 emacs_cv_motif_version_2_1
=no
12827 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
12830 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
12831 if test $emacs_cv_motif_version_2_1 = yes; then
12832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
12833 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
12834 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then :
12835 $as_echo_n "(cached) " >&6
12837 ac_check_lib_save_LIBS
=$LIBS
12839 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12840 /* end confdefs.h. */
12842 /* Override any GCC internal prototype to avoid an error.
12843 Use char because int might match the return type of a GCC
12844 builtin and then its argument prototype would still apply. */
12848 char XpCreateContext ();
12852 return XpCreateContext ();
12857 if ac_fn_c_try_link
"$LINENO"; then :
12858 ac_cv_lib_Xp_XpCreateContext
=yes
12860 ac_cv_lib_Xp_XpCreateContext
=no
12862 rm -f core conftest.err conftest.
$ac_objext \
12863 conftest
$ac_exeext conftest.
$ac_ext
12864 LIBS
=$ac_check_lib_save_LIBS
12866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12867 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
12868 if test "x$ac_cv_lib_Xp_XpCreateContext" = x
""yes; then :
12872 if test x
$emacs_cv_openmotif = xyes
; then
12873 REAL_CPPFLAGS
="-I/usr/include/openmotif $REAL_CPPFLAGS"
12876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
12877 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
12878 if test "${emacs_cv_lesstif+set}" = set; then :
12879 $as_echo_n "(cached) " >&6
12881 # We put this in CFLAGS temporarily to precede other -I options
12882 # that might be in CFLAGS temporarily.
12883 # We put this in CPPFLAGS where it precedes the other -I options.
12884 OLD_CPPFLAGS
=$CPPFLAGS
12886 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12887 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12888 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12889 /* end confdefs.h. */
12890 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12899 if ac_fn_c_try_compile
"$LINENO"; then :
12900 emacs_cv_lesstif
=yes
12902 emacs_cv_lesstif
=no
12904 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
12907 $as_echo "$emacs_cv_lesstif" >&6; }
12908 if test $emacs_cv_lesstif = yes; then
12909 # Make sure this -I option remains in CPPFLAGS after it is set
12910 # back to REAL_CPPFLAGS.
12911 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12912 # have those other -I options anyway. Ultimately, having this
12913 # directory ultimately in CPPFLAGS will be enough.
12914 REAL_CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12915 LDFLAGS
="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12918 CPPFLAGS
=$OLD_CPPFLAGS
12921 ac_fn_c_check_header_mongrel
"$LINENO" "Xm/BulletinB.h" "ac_cv_header_Xm_BulletinB_h" "$ac_includes_default"
12922 if test "x$ac_cv_header_Xm_BulletinB_h" = x
""yes; then :
12925 as_fn_error
"Motif toolkit requested but requirements not found." "$LINENO" 5
12932 USE_TOOLKIT_SCROLL_BARS
=no
12933 if test "${with_toolkit_scroll_bars}" != "no"; then
12934 if test "${USE_X_TOOLKIT}" != "none"; then
12935 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12936 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12939 USE_TOOLKIT_SCROLL_BARS
=yes
12940 elif test "${HAVE_XAW3D}" = "yes" ||
test "${USE_X_TOOLKIT}" = "LUCID"; then
12941 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12943 USE_TOOLKIT_SCROLL_BARS
=yes
12945 elif test "${HAVE_GTK}" = "yes"; then
12946 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12948 USE_TOOLKIT_SCROLL_BARS
=yes
12949 elif test "${HAVE_NS}" = "yes"; then
12950 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12952 USE_TOOLKIT_SCROLL_BARS
=yes
12953 elif test "${HAVE_W32}" = "yes"; then
12954 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12956 USE_TOOLKIT_SCROLL_BARS
=yes
12960 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12961 /* end confdefs.h. */
12963 #include <X11/Xlib.h>
12964 #include <X11/Xresource.h>
12973 if ac_fn_c_try_compile
"$LINENO"; then :
12976 $as_echo "#define HAVE_XIM 1" >>confdefs.h
12981 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12984 if test "${with_xim}" != "no"; then
12986 $as_echo "#define USE_XIM 1" >>confdefs.h
12991 if test "${HAVE_XIM}" != "no"; then
12992 late_CFLAGS
=$CFLAGS
12993 if test "$GCC" = yes; then
12994 CFLAGS
="$CFLAGS --pedantic-errors"
12996 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12997 /* end confdefs.h. */
12999 #include <X11/Xlib.h>
13000 #include <X11/Xresource.h>
13009 XPointer *client_data;
13011 /* If we're not using GCC, it's probably not XFree86, and this is
13012 probably right, but we can't use something like --pedantic-errors. */
13013 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
13014 char*, XIMProc, XPointer*);
13016 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
13022 if ac_fn_c_try_compile
"$LINENO"; then :
13023 emacs_cv_arg6_star
=yes
13025 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13026 if test "$emacs_cv_arg6_star" = yes; then
13027 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
13030 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
13033 CFLAGS
=$late_CFLAGS
13036 ### Start of font-backend (under any platform) section.
13037 # (nothing here yet -- this is a placeholder)
13038 ### End of font-backend (under any platform) section.
13040 ### Start of font-backend (under X11) section.
13041 if test "${HAVE_X11}" = "yes"; then
13045 if test "$PKG_CONFIG" = "no" ; then
13048 PKG_CONFIG_MIN_VERSION
=0.9.0
13049 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
13051 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
13053 if "$PKG_CONFIG" --exists "fontconfig >= 2.2.0" 2>&5 &&
13054 FONTCONFIG_CFLAGS
=`"$PKG_CONFIG" --cflags "fontconfig >= 2.2.0" 2>&5` &&
13055 FONTCONFIG_LIBS
=`"$PKG_CONFIG" --libs "fontconfig >= 2.2.0" 2>&5`; then
13062 FONTCONFIG_CFLAGS
=`$as_echo "$FONTCONFIG_CFLAGS" | sed -e "$edit_cflags"`
13063 FONTCONFIG_LIBS
=`$as_echo "$FONTCONFIG_LIBS" | sed -e 's,///*,/,g'`
13064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$FONTCONFIG_CFLAGS' LIBS='$FONTCONFIG_LIBS'" >&5
13065 $as_echo "yes CFLAGS='$FONTCONFIG_CFLAGS' LIBS='$FONTCONFIG_LIBS'" >&6; }
13068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13069 $as_echo "no" >&6; }
13070 FONTCONFIG_CFLAGS
=""
13072 ## If we have a custom action on failure, don't print errors, but
13073 ## do set a variable so people can do so. Do it in a subshell
13074 ## to capture any diagnostics in invoking pkg-config.
13075 FONTCONFIG_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "fontconfig >= 2.2.0") 2>&1`
13082 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13083 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13087 if test $succeeded = yes; then
13094 ## Use -lXft if available, unless `--with-xft=no'.
13096 if test "${HAVE_FC}" = "no" ||
test "x${with_x}" = "xno"; then
13099 if test "x${with_xft}" != "xno"; then
13104 if test "$PKG_CONFIG" = "no" ; then
13107 PKG_CONFIG_MIN_VERSION
=0.9.0
13108 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
13110 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
13112 if "$PKG_CONFIG" --exists "xft >= 0.13.0" 2>&5 &&
13113 XFT_CFLAGS
=`"$PKG_CONFIG" --cflags "xft >= 0.13.0" 2>&5` &&
13114 XFT_LIBS
=`"$PKG_CONFIG" --libs "xft >= 0.13.0" 2>&5`; then
13121 XFT_CFLAGS
=`$as_echo "$XFT_CFLAGS" | sed -e "$edit_cflags"`
13122 XFT_LIBS
=`$as_echo "$XFT_LIBS" | sed -e 's,///*,/,g'`
13123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$XFT_CFLAGS' LIBS='$XFT_LIBS'" >&5
13124 $as_echo "yes CFLAGS='$XFT_CFLAGS' LIBS='$XFT_LIBS'" >&6; }
13127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13128 $as_echo "no" >&6; }
13131 ## If we have a custom action on failure, don't print errors, but
13132 ## do set a variable so people can do so. Do it in a subshell
13133 ## to capture any diagnostics in invoking pkg-config.
13134 XFT_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "xft >= 0.13.0") 2>&1`
13141 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13142 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13146 if test $succeeded = yes; then
13152 ## Because xftfont.c uses XRenderQueryExtension, we also
13153 ## need to link to -lXrender.
13155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
13156 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
13157 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
13158 $as_echo_n "(cached) " >&6
13160 ac_check_lib_save_LIBS
=$LIBS
13161 LIBS
="-lXrender $LIBS"
13162 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13163 /* end confdefs.h. */
13165 /* Override any GCC internal prototype to avoid an error.
13166 Use char because int might match the return type of a GCC
13167 builtin and then its argument prototype would still apply. */
13171 char XRenderQueryExtension ();
13175 return XRenderQueryExtension ();
13180 if ac_fn_c_try_link
"$LINENO"; then :
13181 ac_cv_lib_Xrender_XRenderQueryExtension
=yes
13183 ac_cv_lib_Xrender_XRenderQueryExtension
=no
13185 rm -f core conftest.err conftest.
$ac_objext \
13186 conftest
$ac_exeext conftest.
$ac_ext
13187 LIBS
=$ac_check_lib_save_LIBS
13189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
13190 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
13191 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x
""yes; then :
13195 if test "$HAVE_XFT" != no
&& test "$HAVE_XRENDER" != no
; then
13196 OLD_CPPFLAGS
="$CPPFLAGS"
13197 OLD_CFLAGS
="$CFLAGS"
13199 CPPFLAGS
="$CPPFLAGS $XFT_CFLAGS"
13200 CFLAGS
="$CFLAGS $XFT_CFLAGS"
13201 XFT_LIBS
="-lXrender $XFT_LIBS"
13202 LIBS
="$XFT_LIBS $LIBS"
13203 ac_fn_c_check_header_compile
"$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "#include <X11/X.h>
13205 if test "x$ac_cv_header_X11_Xft_Xft_h" = x
""yes; then :
13206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
13207 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
13208 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then :
13209 $as_echo_n "(cached) " >&6
13211 ac_check_lib_save_LIBS
=$LIBS
13212 LIBS
="-lXft $XFT_LIBS $LIBS"
13213 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13214 /* end confdefs.h. */
13216 /* Override any GCC internal prototype to avoid an error.
13217 Use char because int might match the return type of a GCC
13218 builtin and then its argument prototype would still apply. */
13222 char XftFontOpen ();
13226 return XftFontOpen ();
13231 if ac_fn_c_try_link
"$LINENO"; then :
13232 ac_cv_lib_Xft_XftFontOpen
=yes
13234 ac_cv_lib_Xft_XftFontOpen
=no
13236 rm -f core conftest.err conftest.
$ac_objext \
13237 conftest
$ac_exeext conftest.
$ac_ext
13238 LIBS
=$ac_check_lib_save_LIBS
13240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
13241 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
13242 if test "x$ac_cv_lib_Xft_XftFontOpen" = x
""yes; then :
13250 if test "${HAVE_XFT}" = "yes"; then
13252 $as_echo "#define HAVE_XFT 1" >>confdefs.h
13255 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $XFT_CFLAGS"
13257 CPPFLAGS
="$OLD_CPPFLAGS"
13258 CFLAGS
="$OLD_CFLAGS"
13260 fi # "${HAVE_XFT}" = "yes"
13261 fi # "$HAVE_XFT" != no
13262 fi # "x${with_xft}" != "xno"
13264 ## We used to allow building with FreeType and without Xft.
13265 ## However, the ftx font backend driver is not in good shape.
13266 if test "$HAVE_XFT" != "yes"; then
13273 if test "$PKG_CONFIG" = "no" ; then
13276 PKG_CONFIG_MIN_VERSION
=0.9.0
13277 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype2" >&5
13279 $as_echo_n "checking for freetype2... " >&6; }
13281 if "$PKG_CONFIG" --exists "freetype2" 2>&5 &&
13282 FREETYPE_CFLAGS
=`"$PKG_CONFIG" --cflags "freetype2" 2>&5` &&
13283 FREETYPE_LIBS
=`"$PKG_CONFIG" --libs "freetype2" 2>&5`; then
13290 FREETYPE_CFLAGS
=`$as_echo "$FREETYPE_CFLAGS" | sed -e "$edit_cflags"`
13291 FREETYPE_LIBS
=`$as_echo "$FREETYPE_LIBS" | sed -e 's,///*,/,g'`
13292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$FREETYPE_CFLAGS' LIBS='$FREETYPE_LIBS'" >&5
13293 $as_echo "yes CFLAGS='$FREETYPE_CFLAGS' LIBS='$FREETYPE_LIBS'" >&6; }
13296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13297 $as_echo "no" >&6; }
13300 ## If we have a custom action on failure, don't print errors, but
13301 ## do set a variable so people can do so. Do it in a subshell
13302 ## to capture any diagnostics in invoking pkg-config.
13303 FREETYPE_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "freetype2") 2>&1`
13310 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13311 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13315 if test $succeeded = yes; then
13322 test "$HAVE_FREETYPE" = "no" && as_fn_error
"libxft requires libfreetype" "$LINENO" 5
13326 if test "${HAVE_FREETYPE}" = "yes"; then
13328 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
13330 if test "${with_libotf}" != "no"; then
13334 if test "$PKG_CONFIG" = "no" ; then
13337 PKG_CONFIG_MIN_VERSION
=0.9.0
13338 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
13340 $as_echo_n "checking for libotf... " >&6; }
13342 if "$PKG_CONFIG" --exists "libotf" 2>&5 &&
13343 LIBOTF_CFLAGS
=`"$PKG_CONFIG" --cflags "libotf" 2>&5` &&
13344 LIBOTF_LIBS
=`"$PKG_CONFIG" --libs "libotf" 2>&5`; then
13351 LIBOTF_CFLAGS
=`$as_echo "$LIBOTF_CFLAGS" | sed -e "$edit_cflags"`
13352 LIBOTF_LIBS
=`$as_echo "$LIBOTF_LIBS" | sed -e 's,///*,/,g'`
13353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBOTF_CFLAGS' LIBS='$LIBOTF_LIBS'" >&5
13354 $as_echo "yes CFLAGS='$LIBOTF_CFLAGS' LIBS='$LIBOTF_LIBS'" >&6; }
13357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13358 $as_echo "no" >&6; }
13361 ## If we have a custom action on failure, don't print errors, but
13362 ## do set a variable so people can do so. Do it in a subshell
13363 ## to capture any diagnostics in invoking pkg-config.
13364 LIBOTF_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "libotf") 2>&1`
13371 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13372 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13376 if test $succeeded = yes; then
13382 if test "$HAVE_LIBOTF" = "yes"; then
13384 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
13386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
13387 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
13388 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then :
13389 $as_echo_n "(cached) " >&6
13391 ac_check_lib_save_LIBS
=$LIBS
13393 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13394 /* end confdefs.h. */
13396 /* Override any GCC internal prototype to avoid an error.
13397 Use char because int might match the return type of a GCC
13398 builtin and then its argument prototype would still apply. */
13402 char OTF_get_variation_glyphs ();
13406 return OTF_get_variation_glyphs ();
13411 if ac_fn_c_try_link
"$LINENO"; then :
13412 ac_cv_lib_otf_OTF_get_variation_glyphs
=yes
13414 ac_cv_lib_otf_OTF_get_variation_glyphs
=no
13416 rm -f core conftest.err conftest.
$ac_objext \
13417 conftest
$ac_exeext conftest.
$ac_ext
13418 LIBS
=$ac_check_lib_save_LIBS
13420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
13421 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
13422 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x
""yes; then :
13423 HAVE_OTF_GET_VARIATION_GLYPHS
=yes
13425 HAVE_OTF_GET_VARIATION_GLYPHS
=no
13428 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
13430 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
13438 if test "${HAVE_LIBOTF}" = yes; then
13439 if test "${with_m17n_flt}" != "no"; then
13443 if test "$PKG_CONFIG" = "no" ; then
13446 PKG_CONFIG_MIN_VERSION
=0.9.0
13447 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
13449 $as_echo_n "checking for m17n-flt... " >&6; }
13451 if "$PKG_CONFIG" --exists "m17n-flt" 2>&5 &&
13452 M17N_FLT_CFLAGS
=`"$PKG_CONFIG" --cflags "m17n-flt" 2>&5` &&
13453 M17N_FLT_LIBS
=`"$PKG_CONFIG" --libs "m17n-flt" 2>&5`; then
13460 M17N_FLT_CFLAGS
=`$as_echo "$M17N_FLT_CFLAGS" | sed -e "$edit_cflags"`
13461 M17N_FLT_LIBS
=`$as_echo "$M17N_FLT_LIBS" | sed -e 's,///*,/,g'`
13462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$M17N_FLT_CFLAGS' LIBS='$M17N_FLT_LIBS'" >&5
13463 $as_echo "yes CFLAGS='$M17N_FLT_CFLAGS' LIBS='$M17N_FLT_LIBS'" >&6; }
13466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13467 $as_echo "no" >&6; }
13470 ## If we have a custom action on failure, don't print errors, but
13471 ## do set a variable so people can do so. Do it in a subshell
13472 ## to capture any diagnostics in invoking pkg-config.
13473 M17N_FLT_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "m17n-flt") 2>&1`
13480 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13481 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13485 if test $succeeded = yes; then
13491 if test "$HAVE_M17N_FLT" = "yes"; then
13493 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
13505 ### End of font-backend (under X11) section.
13516 ### Use -lXpm if available, unless `--with-xpm=no'.
13517 ### mingw32 doesn't use -lXpm, since it loads the library dynamically.
13520 if test "${HAVE_W32}" = "yes" && test "${opsys}" = "cygwin"; then
13521 if test "${with_xpm}" != "no"; then
13522 SAVE_CPPFLAGS
="$CPPFLAGS"
13523 SAVE_LDFLAGS
="$LDFLAGS"
13524 CPPFLAGS
="$CPPFLAGS -I/usr/include/noX"
13525 LDFLAGS
="$LDFLAGS -L/usr/lib/noX"
13526 ac_fn_c_check_header_mongrel
"$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
13527 if test "x$ac_cv_header_X11_xpm_h" = x
""yes; then :
13528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToImage in -lXpm" >&5
13529 $as_echo_n "checking for XpmReadFileToImage in -lXpm... " >&6; }
13530 if test "${ac_cv_lib_Xpm_XpmReadFileToImage+set}" = set; then :
13531 $as_echo_n "(cached) " >&6
13533 ac_check_lib_save_LIBS
=$LIBS
13535 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13536 /* end confdefs.h. */
13538 /* Override any GCC internal prototype to avoid an error.
13539 Use char because int might match the return type of a GCC
13540 builtin and then its argument prototype would still apply. */
13544 char XpmReadFileToImage ();
13548 return XpmReadFileToImage ();
13553 if ac_fn_c_try_link
"$LINENO"; then :
13554 ac_cv_lib_Xpm_XpmReadFileToImage
=yes
13556 ac_cv_lib_Xpm_XpmReadFileToImage
=no
13558 rm -f core conftest.err conftest.
$ac_objext \
13559 conftest
$ac_exeext conftest.
$ac_ext
13560 LIBS
=$ac_check_lib_save_LIBS
13562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToImage" >&5
13563 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToImage" >&6; }
13564 if test "x$ac_cv_lib_Xpm_XpmReadFileToImage" = x
""yes; then :
13571 if test "${HAVE_XPM}" = "yes"; then
13572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
13573 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
13574 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13575 /* end confdefs.h. */
13576 #include "X11/xpm.h"
13577 #ifndef XpmReturnAllocPixels
13578 no_return_alloc_pixels
13582 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13583 $EGREP "no_return_alloc_pixels" >/dev
/null
2>&1; then :
13591 if test "${HAVE_XPM}" = "yes"; then
13592 REAL_CPPFLAGS
="$REAL_CPPFLAGS -I/usr/include/noX"
13593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13594 $as_echo "yes" >&6; }
13596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13597 $as_echo "no" >&6; }
13598 CPPFLAGS
="$SAVE_CPPFLAGS"
13599 LDFLAGS
="$SAVE_LDFLAGS"
13604 if test "${HAVE_XPM}" = "yes"; then
13606 $as_echo "#define HAVE_XPM 1" >>confdefs.h
13612 if test "${HAVE_X11}" = "yes"; then
13613 if test "${with_xpm}" != "no"; then
13614 ac_fn_c_check_header_mongrel
"$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
13615 if test "x$ac_cv_header_X11_xpm_h" = x
""yes; then :
13616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
13617 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
13618 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then :
13619 $as_echo_n "(cached) " >&6
13621 ac_check_lib_save_LIBS
=$LIBS
13622 LIBS
="-lXpm -lX11 $LIBS"
13623 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13624 /* end confdefs.h. */
13626 /* Override any GCC internal prototype to avoid an error.
13627 Use char because int might match the return type of a GCC
13628 builtin and then its argument prototype would still apply. */
13632 char XpmReadFileToPixmap ();
13636 return XpmReadFileToPixmap ();
13641 if ac_fn_c_try_link
"$LINENO"; then :
13642 ac_cv_lib_Xpm_XpmReadFileToPixmap
=yes
13644 ac_cv_lib_Xpm_XpmReadFileToPixmap
=no
13646 rm -f core conftest.err conftest.
$ac_objext \
13647 conftest
$ac_exeext conftest.
$ac_ext
13648 LIBS
=$ac_check_lib_save_LIBS
13650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
13651 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
13652 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x
""yes; then :
13659 if test "${HAVE_XPM}" = "yes"; then
13660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
13661 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
13662 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13663 /* end confdefs.h. */
13664 #include "X11/xpm.h"
13665 #ifndef XpmReturnAllocPixels
13666 no_return_alloc_pixels
13670 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13671 $EGREP "no_return_alloc_pixels" >/dev
/null
2>&1; then :
13679 if test "${HAVE_XPM}" = "yes"; then
13680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13681 $as_echo "yes" >&6; }
13683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13684 $as_echo "no" >&6; }
13689 if test "${HAVE_XPM}" = "yes"; then
13691 $as_echo "#define HAVE_XPM 1" >>confdefs.h
13697 ### FIXME: Perhaps regroup to minimize code duplication due to MinGW's
13698 ### slightly different requirements wrt image libraries (it doesn't
13699 ### use -lXpm because it loads the xpm shared library dynamically at
13701 if test "${opsys}" = "mingw32"; then
13702 if test "${with_xpm}" != "no"; then
13703 ac_fn_c_check_header_compile
"$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "
13706 if test "x$ac_cv_header_X11_xpm_h" = x
""yes; then :
13715 if test "${HAVE_XPM}" = "yes"; then
13717 $as_echo "#define HAVE_XPM 1" >>confdefs.h
13724 ### Use -ljpeg if available, unless `--with-jpeg=no'.
13725 ### mingw32 doesn't use -ljpeg, since it loads the library dynamically.
13728 if test "${opsys}" = "mingw32"; then
13729 if test "${with_jpeg}" != "no"; then
13730 ac_fn_c_check_header_mongrel
"$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
13731 if test "x$ac_cv_header_jerror_h" = x
""yes; then :
13739 if test "${HAVE_JPEG}" = "yes"; then
13740 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
13742 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13743 /* end confdefs.h. */
13744 #include <jpeglib.h>
13745 version=JPEG_LIB_VERSION
13748 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13749 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev
/null
2>&1; then :
13750 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
13753 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
13754 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13760 elif test "${HAVE_X11}" = "yes" ||
test "${HAVE_W32}" = "yes"; then
13761 if test "${with_jpeg}" != "no"; then
13762 ac_fn_c_check_header_mongrel
"$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
13763 if test "x$ac_cv_header_jerror_h" = x
""yes; then :
13764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
13765 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
13766 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then :
13767 $as_echo_n "(cached) " >&6
13769 ac_check_lib_save_LIBS
=$LIBS
13770 LIBS
="-ljpeg $LIBS"
13771 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13772 /* end confdefs.h. */
13774 /* Override any GCC internal prototype to avoid an error.
13775 Use char because int might match the return type of a GCC
13776 builtin and then its argument prototype would still apply. */
13780 char jpeg_destroy_compress ();
13784 return jpeg_destroy_compress ();
13789 if ac_fn_c_try_link
"$LINENO"; then :
13790 ac_cv_lib_jpeg_jpeg_destroy_compress
=yes
13792 ac_cv_lib_jpeg_jpeg_destroy_compress
=no
13794 rm -f core conftest.err conftest.
$ac_objext \
13795 conftest
$ac_exeext conftest.
$ac_ext
13796 LIBS
=$ac_check_lib_save_LIBS
13798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13799 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13800 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x
""yes; then :
13809 if test "${HAVE_JPEG}" = "yes"; then
13810 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
13812 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13813 /* end confdefs.h. */
13814 #include <jpeglib.h>
13815 version=JPEG_LIB_VERSION
13818 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13819 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev
/null
2>&1; then :
13820 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
13823 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
13824 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13830 if test "${HAVE_JPEG}" = "yes"; then
13836 ### Use -lpng if available, unless `--with-png=no'.
13837 ### mingw32 doesn't use -lpng, since it loads the library dynamically.
13840 if test "${opsys}" = "mingw32"; then
13841 if test "${with_png}" != "no"; then
13842 ac_fn_c_check_header_mongrel
"$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
13843 if test "x$ac_cv_header_png_h" = x
""yes; then :
13851 if test "${HAVE_PNG}" = "yes"; then
13853 $as_echo "#define HAVE_PNG 1" >>confdefs.h
13856 ac_fn_c_check_decl
"$LINENO" "png_longjmp" "ac_cv_have_decl_png_longjmp" "#ifdef HAVE_LIBPNG_PNG_H
13857 # include <libpng/png.h>
13863 if test "x$ac_cv_have_decl_png_longjmp" = x
""yes; then :
13867 $as_echo "#define PNG_DEPSTRUCT /**/" >>confdefs.h
13872 elif test "${HAVE_X11}" = "yes" ||
test "${HAVE_W32}" = "yes"; then
13873 if test "${with_png}" != "no"; then
13874 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13875 # in /usr/include/libpng.
13876 for ac_header
in png.h libpng
/png.h
13878 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13879 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13880 eval as_val
=\$
$as_ac_Header
13881 if test "x$as_val" = x
""yes; then :
13882 cat >>confdefs.h
<<_ACEOF
13883 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13890 if test "$ac_cv_header_png_h" = yes ||
test "$ac_cv_header_libpng_png_h" = yes ; then
13891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
13892 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
13893 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then :
13894 $as_echo_n "(cached) " >&6
13896 ac_check_lib_save_LIBS
=$LIBS
13897 LIBS
="-lpng -lz -lm $LIBS"
13898 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13899 /* end confdefs.h. */
13901 /* Override any GCC internal prototype to avoid an error.
13902 Use char because int might match the return type of a GCC
13903 builtin and then its argument prototype would still apply. */
13907 char png_get_channels ();
13911 return png_get_channels ();
13916 if ac_fn_c_try_link
"$LINENO"; then :
13917 ac_cv_lib_png_png_get_channels
=yes
13919 ac_cv_lib_png_png_get_channels
=no
13921 rm -f core conftest.err conftest.
$ac_objext \
13922 conftest
$ac_exeext conftest.
$ac_ext
13923 LIBS
=$ac_check_lib_save_LIBS
13925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
13926 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
13927 if test "x$ac_cv_lib_png_png_get_channels" = x
""yes; then :
13934 if test "${HAVE_PNG}" = "yes"; then
13936 $as_echo "#define HAVE_PNG 1" >>confdefs.h
13938 LIBPNG
="-lpng -lz -lm"
13940 ac_fn_c_check_decl
"$LINENO" "png_longjmp" "ac_cv_have_decl_png_longjmp" "#ifdef HAVE_LIBPNG_PNG_H
13941 # include <libpng/png.h>
13947 if test "x$ac_cv_have_decl_png_longjmp" = x
""yes; then :
13951 $as_echo "#define PNG_DEPSTRUCT /**/" >>confdefs.h
13961 if test "${with_zlib}" != "no"; then
13963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inflateEnd" >&5
13964 $as_echo_n "checking for library containing inflateEnd... " >&6; }
13965 if test "${ac_cv_search_inflateEnd+set}" = set; then :
13966 $as_echo_n "(cached) " >&6
13968 ac_func_search_save_LIBS
=$LIBS
13969 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13970 /* end confdefs.h. */
13972 /* Override any GCC internal prototype to avoid an error.
13973 Use char because int might match the return type of a GCC
13974 builtin and then its argument prototype would still apply. */
13978 char inflateEnd ();
13982 return inflateEnd ();
13987 for ac_lib
in '' z
; do
13988 if test -z "$ac_lib"; then
13989 ac_res
="none required"
13992 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
13994 if ac_fn_c_try_link
"$LINENO"; then :
13995 ac_cv_search_inflateEnd
=$ac_res
13997 rm -f core conftest.err conftest.
$ac_objext \
13999 if test "${ac_cv_search_inflateEnd+set}" = set; then :
14003 if test "${ac_cv_search_inflateEnd+set}" = set; then :
14006 ac_cv_search_inflateEnd
=no
14008 rm conftest.
$ac_ext
14009 LIBS
=$ac_func_search_save_LIBS
14011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inflateEnd" >&5
14012 $as_echo "$ac_cv_search_inflateEnd" >&6; }
14013 ac_res
=$ac_cv_search_inflateEnd
14014 if test "$ac_res" != no
; then :
14015 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
14020 case $ac_cv_search_inflateEnd in
14021 -*) LIBZ
=$ac_cv_search_inflateEnd ;;
14024 if test "${HAVE_ZLIB}" = "yes"; then
14026 $as_echo "#define HAVE_ZLIB 1" >>confdefs.h
14028 ### mingw32 doesn't use -lz, since it loads the library dynamically.
14029 if test "${opsys}" = "mingw32"; then
14036 ### Use -ltiff if available, unless `--with-tiff=no'.
14037 ### mingw32 doesn't use -ltiff, since it loads the library dynamically.
14040 if test "${opsys}" = "mingw32"; then
14041 if test "${with_tiff}" != "no"; then
14042 ac_fn_c_check_header_mongrel
"$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
14043 if test "x$ac_cv_header_tiffio_h" = x
""yes; then :
14051 if test "${HAVE_TIFF}" = "yes"; then
14053 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
14056 elif test "${HAVE_X11}" = "yes" ||
test "${HAVE_W32}" = "yes"; then
14057 if test "${with_tiff}" != "no"; then
14058 ac_fn_c_check_header_mongrel
"$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
14059 if test "x$ac_cv_header_tiffio_h" = x
""yes; then :
14061 # At least one tiff package requires the jpeg library.
14062 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
14063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
14064 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
14065 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then :
14066 $as_echo_n "(cached) " >&6
14068 ac_check_lib_save_LIBS
=$LIBS
14069 LIBS
="-ltiff $tifflibs $LIBS"
14070 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14071 /* end confdefs.h. */
14073 /* Override any GCC internal prototype to avoid an error.
14074 Use char because int might match the return type of a GCC
14075 builtin and then its argument prototype would still apply. */
14079 char TIFFGetVersion ();
14083 return TIFFGetVersion ();
14088 if ac_fn_c_try_link
"$LINENO"; then :
14089 ac_cv_lib_tiff_TIFFGetVersion
=yes
14091 ac_cv_lib_tiff_TIFFGetVersion
=no
14093 rm -f core conftest.err conftest.
$ac_objext \
14094 conftest
$ac_exeext conftest.
$ac_ext
14095 LIBS
=$ac_check_lib_save_LIBS
14097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
14098 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
14099 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x
""yes; then :
14108 if test "${HAVE_TIFF}" = "yes"; then
14110 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
14117 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
14118 ### mingw32 doesn't use -lgif/-lungif, since it loads the library dynamically.
14121 if test "${opsys}" = "mingw32"; then
14122 if test "${with_gif}" != "no"; then
14123 ac_fn_c_check_header_mongrel
"$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
14124 if test "x$ac_cv_header_gif_lib_h" = x
""yes; then :
14132 if test "${HAVE_GIF}" = "yes"; then
14134 $as_echo "#define HAVE_GIF 1" >>confdefs.h
14137 elif test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no" \
14138 ||
test "${HAVE_W32}" = "yes"; then
14139 ac_fn_c_check_header_mongrel
"$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
14140 if test "x$ac_cv_header_gif_lib_h" = x
""yes; then :
14141 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
14142 # Earlier versions can crash Emacs, but version 5.0 removes EGifPutExtensionLast.
14143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GifMakeMapObject in -lgif" >&5
14144 $as_echo_n "checking for GifMakeMapObject in -lgif... " >&6; }
14145 if test "${ac_cv_lib_gif_GifMakeMapObject+set}" = set; then :
14146 $as_echo_n "(cached) " >&6
14148 ac_check_lib_save_LIBS
=$LIBS
14150 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14151 /* end confdefs.h. */
14153 /* Override any GCC internal prototype to avoid an error.
14154 Use char because int might match the return type of a GCC
14155 builtin and then its argument prototype would still apply. */
14159 char GifMakeMapObject ();
14163 return GifMakeMapObject ();
14168 if ac_fn_c_try_link
"$LINENO"; then :
14169 ac_cv_lib_gif_GifMakeMapObject
=yes
14171 ac_cv_lib_gif_GifMakeMapObject
=no
14173 rm -f core conftest.err conftest.
$ac_objext \
14174 conftest
$ac_exeext conftest.
$ac_ext
14175 LIBS
=$ac_check_lib_save_LIBS
14177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_GifMakeMapObject" >&5
14178 $as_echo "$ac_cv_lib_gif_GifMakeMapObject" >&6; }
14179 if test "x$ac_cv_lib_gif_GifMakeMapObject" = x
""yes; then :
14182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
14183 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
14184 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then :
14185 $as_echo_n "(cached) " >&6
14187 ac_check_lib_save_LIBS
=$LIBS
14189 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14190 /* end confdefs.h. */
14192 /* Override any GCC internal prototype to avoid an error.
14193 Use char because int might match the return type of a GCC
14194 builtin and then its argument prototype would still apply. */
14198 char EGifPutExtensionLast ();
14202 return EGifPutExtensionLast ();
14207 if ac_fn_c_try_link
"$LINENO"; then :
14208 ac_cv_lib_gif_EGifPutExtensionLast
=yes
14210 ac_cv_lib_gif_EGifPutExtensionLast
=no
14212 rm -f core conftest.err conftest.
$ac_objext \
14213 conftest
$ac_exeext conftest.
$ac_ext
14214 LIBS
=$ac_check_lib_save_LIBS
14216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
14217 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
14218 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x
""yes; then :
14230 if test "$HAVE_GIF" = yes; then
14232 elif test "$HAVE_GIF" = maybe
; then
14233 # If gif_lib.h but no libgif, try libungif.
14234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
14235 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
14236 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then :
14237 $as_echo_n "(cached) " >&6
14239 ac_check_lib_save_LIBS
=$LIBS
14240 LIBS
="-lungif $LIBS"
14241 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14242 /* end confdefs.h. */
14244 /* Override any GCC internal prototype to avoid an error.
14245 Use char because int might match the return type of a GCC
14246 builtin and then its argument prototype would still apply. */
14250 char EGifPutExtensionLast ();
14254 return EGifPutExtensionLast ();
14259 if ac_fn_c_try_link
"$LINENO"; then :
14260 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
14262 ac_cv_lib_ungif_EGifPutExtensionLast
=no
14264 rm -f core conftest.err conftest.
$ac_objext \
14265 conftest
$ac_exeext conftest.
$ac_ext
14266 LIBS
=$ac_check_lib_save_LIBS
14268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
14269 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
14270 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x
""yes; then :
14276 test "$HAVE_GIF" = yes && LIBGIF
=-lungif
14279 if test "${HAVE_GIF}" = "yes"; then
14281 $as_echo "#define HAVE_GIF 1" >>confdefs.h
14287 if test "${HAVE_X11}" = "yes"; then
14290 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
14291 MISSING
="libXpm" && WITH_NO
="--with-xpm=no"
14292 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
14293 MISSING
="$MISSING libjpeg" && WITH_NO
="$WITH_NO --with-jpeg=no"
14294 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
14295 MISSING
="$MISSING libpng" && WITH_NO
="$WITH_NO --with-png=no"
14296 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
14297 MISSING
="$MISSING libgif/libungif" && WITH_NO
="$WITH_NO --with-gif=no"
14298 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
14299 MISSING
="$MISSING libtiff" && WITH_NO
="$WITH_NO --with-tiff=no"
14301 if test "X${MISSING}" != X
; then
14302 as_fn_error
"The following required libraries were not found:
14304 Maybe some development libraries/packages are missing?
14305 If you don't want to link with them give
14307 as options to configure" "$LINENO" 5
14311 ### Use -lgpm if available, unless `--with-gpm=no'.
14314 if test "${with_gpm}" != "no"; then
14315 ac_fn_c_check_header_mongrel
"$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
14316 if test "x$ac_cv_header_gpm_h" = x
""yes; then :
14317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
14318 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
14319 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then :
14320 $as_echo_n "(cached) " >&6
14322 ac_check_lib_save_LIBS
=$LIBS
14324 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14325 /* end confdefs.h. */
14327 /* Override any GCC internal prototype to avoid an error.
14328 Use char because int might match the return type of a GCC
14329 builtin and then its argument prototype would still apply. */
14337 return Gpm_Open ();
14342 if ac_fn_c_try_link
"$LINENO"; then :
14343 ac_cv_lib_gpm_Gpm_Open
=yes
14345 ac_cv_lib_gpm_Gpm_Open
=no
14347 rm -f core conftest.err conftest.
$ac_objext \
14348 conftest
$ac_exeext conftest.
$ac_ext
14349 LIBS
=$ac_check_lib_save_LIBS
14351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
14352 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
14353 if test "x$ac_cv_lib_gpm_Gpm_Open" = x
""yes; then :
14361 if test "${HAVE_GPM}" = "yes"; then
14363 $as_echo "#define HAVE_GPM 1" >>confdefs.h
14375 ### Use NeXTstep API to implement GUI.
14376 if test "${HAVE_NS}" = "yes"; then
14378 $as_echo "#define HAVE_NS 1" >>confdefs.h
14380 if test "${NS_IMPL_COCOA}" = "yes"; then
14382 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
14385 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
14387 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
14389 # See also .m.o rule in Makefile.in */
14390 # FIXME: are all these flags really needed? Document here why. */
14391 GNUSTEP_CFLAGS
="-D_REENTRANT -fPIC -fno-strict-aliasing -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
14392 ## Extra CFLAGS applied to src/*.m files.
14393 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"
14398 ### Use session management (-lSM -lICE) if available
14401 if test "${HAVE_X11}" = "yes"; then
14402 ac_fn_c_check_header_mongrel
"$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
14403 if test "x$ac_cv_header_X11_SM_SMlib_h" = x
""yes; then :
14404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
14405 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
14406 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then :
14407 $as_echo_n "(cached) " >&6
14409 ac_check_lib_save_LIBS
=$LIBS
14410 LIBS
="-lSM -lICE $LIBS"
14411 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14412 /* end confdefs.h. */
14414 /* Override any GCC internal prototype to avoid an error.
14415 Use char because int might match the return type of a GCC
14416 builtin and then its argument prototype would still apply. */
14420 char SmcOpenConnection ();
14424 return SmcOpenConnection ();
14429 if ac_fn_c_try_link
"$LINENO"; then :
14430 ac_cv_lib_SM_SmcOpenConnection
=yes
14432 ac_cv_lib_SM_SmcOpenConnection
=no
14434 rm -f core conftest.err conftest.
$ac_objext \
14435 conftest
$ac_exeext conftest.
$ac_ext
14436 LIBS
=$ac_check_lib_save_LIBS
14438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
14439 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
14440 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x
""yes; then :
14448 if test "${HAVE_X_SM}" = "yes"; then
14450 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
14452 LIBXSM
="-lSM -lICE"
14455 *) LIBS
="$LIBXSM $LIBS" ;;
14461 ### Use XRandr (-lXrandr) if available
14463 if test "${HAVE_X11}" = "yes"; then
14464 XRANDR_REQUIRED
=1.2.2
14465 XRANDR_MODULES
="xrandr >= $XRANDR_REQUIRED"
14469 if test "$PKG_CONFIG" = "no" ; then
14472 PKG_CONFIG_MIN_VERSION
=0.9.0
14473 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $XRANDR_MODULES" >&5
14475 $as_echo_n "checking for $XRANDR_MODULES... " >&6; }
14477 if "$PKG_CONFIG" --exists "$XRANDR_MODULES" 2>&5 &&
14478 XRANDR_CFLAGS
=`"$PKG_CONFIG" --cflags "$XRANDR_MODULES" 2>&5` &&
14479 XRANDR_LIBS
=`"$PKG_CONFIG" --libs "$XRANDR_MODULES" 2>&5`; then
14486 XRANDR_CFLAGS
=`$as_echo "$XRANDR_CFLAGS" | sed -e "$edit_cflags"`
14487 XRANDR_LIBS
=`$as_echo "$XRANDR_LIBS" | sed -e 's,///*,/,g'`
14488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$XRANDR_CFLAGS' LIBS='$XRANDR_LIBS'" >&5
14489 $as_echo "yes CFLAGS='$XRANDR_CFLAGS' LIBS='$XRANDR_LIBS'" >&6; }
14492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14493 $as_echo "no" >&6; }
14496 ## If we have a custom action on failure, don't print errors, but
14497 ## do set a variable so people can do so. Do it in a subshell
14498 ## to capture any diagnostics in invoking pkg-config.
14499 XRANDR_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "$XRANDR_MODULES") 2>&1`
14506 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14507 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14511 if test $succeeded = yes; then
14517 if test $HAVE_XRANDR = no
; then
14518 # Test old way in case pkg-config doesn't have it (older machines).
14519 ac_fn_c_check_header_mongrel
"$LINENO" "X11/extensions/Xrandr.h" "ac_cv_header_X11_extensions_Xrandr_h" "$ac_includes_default"
14520 if test "x$ac_cv_header_X11_extensions_Xrandr_h" = x
""yes; then :
14521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRRGetScreenResources in -lXrandr" >&5
14522 $as_echo_n "checking for XRRGetScreenResources in -lXrandr... " >&6; }
14523 if test "${ac_cv_lib_Xrandr_XRRGetScreenResources+set}" = set; then :
14524 $as_echo_n "(cached) " >&6
14526 ac_check_lib_save_LIBS
=$LIBS
14527 LIBS
="-lXrandr $LIBS"
14528 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14529 /* end confdefs.h. */
14531 /* Override any GCC internal prototype to avoid an error.
14532 Use char because int might match the return type of a GCC
14533 builtin and then its argument prototype would still apply. */
14537 char XRRGetScreenResources ();
14541 return XRRGetScreenResources ();
14546 if ac_fn_c_try_link
"$LINENO"; then :
14547 ac_cv_lib_Xrandr_XRRGetScreenResources
=yes
14549 ac_cv_lib_Xrandr_XRRGetScreenResources
=no
14551 rm -f core conftest.err conftest.
$ac_objext \
14552 conftest
$ac_exeext conftest.
$ac_ext
14553 LIBS
=$ac_check_lib_save_LIBS
14555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrandr_XRRGetScreenResources" >&5
14556 $as_echo "$ac_cv_lib_Xrandr_XRRGetScreenResources" >&6; }
14557 if test "x$ac_cv_lib_Xrandr_XRRGetScreenResources" = x
""yes; then :
14564 if test $HAVE_XRANDR = yes; then
14565 XRANDR_LIBS
=-lXrandr
14569 if test $HAVE_XRANDR = yes; then
14570 SAVE_CFLAGS
="$CFLAGS"
14572 CFLAGS
="$XRANDR_CFLAGS $CFLAGS"
14573 LIBS
="$XRANDR_LIBS $LIBS"
14574 for ac_func
in XRRGetOutputPrimary XRRGetScreenResourcesCurrent
14576 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14577 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
14578 eval as_val
=\$
$as_ac_var
14579 if test "x$as_val" = x
""yes; then :
14580 cat >>confdefs.h
<<_ACEOF
14581 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14587 CFLAGS
="$SAVE_CFLAGS"
14591 $as_echo "#define HAVE_XRANDR 1" >>confdefs.h
14596 ### Use Xinerama (-lXinerama) if available
14598 if test "${HAVE_X11}" = "yes"; then
14599 XINERAMA_REQUIRED
=1.0.2
14600 XINERAMA_MODULES
="xinerama >= $XINERAMA_REQUIRED"
14604 if test "$PKG_CONFIG" = "no" ; then
14607 PKG_CONFIG_MIN_VERSION
=0.9.0
14608 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $XINERAMA_MODULES" >&5
14610 $as_echo_n "checking for $XINERAMA_MODULES... " >&6; }
14612 if "$PKG_CONFIG" --exists "$XINERAMA_MODULES" 2>&5 &&
14613 XINERAMA_CFLAGS
=`"$PKG_CONFIG" --cflags "$XINERAMA_MODULES" 2>&5` &&
14614 XINERAMA_LIBS
=`"$PKG_CONFIG" --libs "$XINERAMA_MODULES" 2>&5`; then
14621 XINERAMA_CFLAGS
=`$as_echo "$XINERAMA_CFLAGS" | sed -e "$edit_cflags"`
14622 XINERAMA_LIBS
=`$as_echo "$XINERAMA_LIBS" | sed -e 's,///*,/,g'`
14623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$XINERAMA_CFLAGS' LIBS='$XINERAMA_LIBS'" >&5
14624 $as_echo "yes CFLAGS='$XINERAMA_CFLAGS' LIBS='$XINERAMA_LIBS'" >&6; }
14627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14628 $as_echo "no" >&6; }
14631 ## If we have a custom action on failure, don't print errors, but
14632 ## do set a variable so people can do so. Do it in a subshell
14633 ## to capture any diagnostics in invoking pkg-config.
14634 XINERAMA_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "$XINERAMA_MODULES") 2>&1`
14641 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14642 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14646 if test $succeeded = yes; then
14652 if test $HAVE_XINERAMA = no
; then
14653 # Test old way in case pkg-config doesn't have it (older machines).
14654 ac_fn_c_check_header_mongrel
"$LINENO" "X11/extensions/Xinerama.h" "ac_cv_header_X11_extensions_Xinerama_h" "$ac_includes_default"
14655 if test "x$ac_cv_header_X11_extensions_Xinerama_h" = x
""yes; then :
14656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XineramaQueryExtension in -lXinerama" >&5
14657 $as_echo_n "checking for XineramaQueryExtension in -lXinerama... " >&6; }
14658 if test "${ac_cv_lib_Xinerama_XineramaQueryExtension+set}" = set; then :
14659 $as_echo_n "(cached) " >&6
14661 ac_check_lib_save_LIBS
=$LIBS
14662 LIBS
="-lXinerama $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. */
14672 char XineramaQueryExtension ();
14676 return XineramaQueryExtension ();
14681 if ac_fn_c_try_link
"$LINENO"; then :
14682 ac_cv_lib_Xinerama_XineramaQueryExtension
=yes
14684 ac_cv_lib_Xinerama_XineramaQueryExtension
=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_Xinerama_XineramaQueryExtension" >&5
14691 $as_echo "$ac_cv_lib_Xinerama_XineramaQueryExtension" >&6; }
14692 if test "x$ac_cv_lib_Xinerama_XineramaQueryExtension" = x
""yes; then :
14699 if test $HAVE_XINERAMA = yes; then
14700 XINERAMA_LIBS
=-lXinerama
14704 if test $HAVE_XINERAMA = yes; then
14706 $as_echo "#define HAVE_XINERAMA 1" >>confdefs.h
14712 ### Use libxml (-lxml2) if available
14713 ### mingw32 doesn't use -lxml2, since it loads the library dynamically.
14715 if test "${with_xml2}" != "no"; then
14716 ### I'm not sure what the version number should be, so I just guessed.
14720 if test "$PKG_CONFIG" = "no" ; then
14723 PKG_CONFIG_MIN_VERSION
=0.9.0
14724 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.6.17" >&5
14726 $as_echo_n "checking for libxml-2.0 > 2.6.17... " >&6; }
14728 if "$PKG_CONFIG" --exists "libxml-2.0 > 2.6.17" 2>&5 &&
14729 LIBXML2_CFLAGS
=`"$PKG_CONFIG" --cflags "libxml-2.0 > 2.6.17" 2>&5` &&
14730 LIBXML2_LIBS
=`"$PKG_CONFIG" --libs "libxml-2.0 > 2.6.17" 2>&5`; then
14737 LIBXML2_CFLAGS
=`$as_echo "$LIBXML2_CFLAGS" | sed -e "$edit_cflags"`
14738 LIBXML2_LIBS
=`$as_echo "$LIBXML2_LIBS" | sed -e 's,///*,/,g'`
14739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBXML2_CFLAGS' LIBS='$LIBXML2_LIBS'" >&5
14740 $as_echo "yes CFLAGS='$LIBXML2_CFLAGS' LIBS='$LIBXML2_LIBS'" >&6; }
14743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14744 $as_echo "no" >&6; }
14747 ## If we have a custom action on failure, don't print errors, but
14748 ## do set a variable so people can do so. Do it in a subshell
14749 ## to capture any diagnostics in invoking pkg-config.
14750 LIBXML2_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "libxml-2.0 > 2.6.17") 2>&1`
14757 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14758 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14762 if test $succeeded = yes; then
14768 # Built-in libxml2 on OS X 10.8 lacks libxml-2.0.pc.
14769 if test "${HAVE_LIBXML2}" != "yes" -a "$opsys" = "darwin"; then
14770 SAVE_CPPFLAGS
="$CPPFLAGS"
14771 CPPFLAGS
="$CPPFLAGS -I/usr/include/libxml2"
14772 ac_fn_c_check_header_mongrel
"$LINENO" "libxml/HTMLparser.h" "ac_cv_header_libxml_HTMLparser_h" "$ac_includes_default"
14773 if test "x$ac_cv_header_libxml_HTMLparser_h" = x
""yes; then :
14774 ac_fn_c_check_decl
"$LINENO" "HTML_PARSE_RECOVER" "ac_cv_have_decl_HTML_PARSE_RECOVER" "#include <libxml/HTMLparser.h>
14776 if test "x$ac_cv_have_decl_HTML_PARSE_RECOVER" = x
""yes; then :
14783 CPPFLAGS
="$SAVE_CPPFLAGS"
14784 if test "${HAVE_LIBXML2}" = "yes"; then
14785 LIBXML2_LIBS
="-lxml2"
14786 LIBXML2_CFLAGS
="-I/usr/include/libxml2"
14789 if test "${HAVE_LIBXML2}" = "yes"; then
14790 if test "${opsys}" != "mingw32"; then
14791 LIBS
="$LIBXML2_LIBS $LIBS"
14792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5
14793 $as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; }
14794 if test "${ac_cv_lib_xml2_htmlReadMemory+set}" = set; then :
14795 $as_echo_n "(cached) " >&6
14797 ac_check_lib_save_LIBS
=$LIBS
14798 LIBS
="-lxml2 $LIBS"
14799 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14800 /* end confdefs.h. */
14802 /* Override any GCC internal prototype to avoid an error.
14803 Use char because int might match the return type of a GCC
14804 builtin and then its argument prototype would still apply. */
14808 char htmlReadMemory ();
14812 return htmlReadMemory ();
14817 if ac_fn_c_try_link
"$LINENO"; then :
14818 ac_cv_lib_xml2_htmlReadMemory
=yes
14820 ac_cv_lib_xml2_htmlReadMemory
=no
14822 rm -f core conftest.err conftest.
$ac_objext \
14823 conftest
$ac_exeext conftest.
$ac_ext
14824 LIBS
=$ac_check_lib_save_LIBS
14826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5
14827 $as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; }
14828 if test "x$ac_cv_lib_xml2_htmlReadMemory" = x
""yes; then :
14837 if test "${HAVE_LIBXML2}" = "yes"; then
14839 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
14850 # If netdb.h doesn't declare h_errno, we must declare it by hand.
14851 # On MinGW, that is provided by nt/inc/sys/socket.h and w32.c.
14852 if test "${opsys}" = "mingw32"; then
14853 emacs_cv_netdb_declares_h_errno
=yes
14855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
14856 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
14857 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then :
14858 $as_echo_n "(cached) " >&6
14860 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14861 /* end confdefs.h. */
14871 if ac_fn_c_try_link
"$LINENO"; then :
14872 emacs_cv_netdb_declares_h_errno
=yes
14874 emacs_cv_netdb_declares_h_errno
=no
14876 rm -f core conftest.err conftest.
$ac_objext \
14877 conftest
$ac_exeext conftest.
$ac_ext
14879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
14880 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
14881 if test $emacs_cv_netdb_declares_h_errno = yes; then
14883 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
14887 # sqrt and other floating-point functions such as fmod and frexp
14888 # are found in -lm on most systems, but mingw32 doesn't use -lm.
14889 if test "${opsys}" != "mingw32"; then
14890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
14891 $as_echo_n "checking for sqrt in -lm... " >&6; }
14892 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
14893 $as_echo_n "(cached) " >&6
14895 ac_check_lib_save_LIBS
=$LIBS
14897 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14898 /* end confdefs.h. */
14900 /* Override any GCC internal prototype to avoid an error.
14901 Use char because int might match the return type of a GCC
14902 builtin and then its argument prototype would still apply. */
14915 if ac_fn_c_try_link
"$LINENO"; then :
14916 ac_cv_lib_m_sqrt
=yes
14918 ac_cv_lib_m_sqrt
=no
14920 rm -f core conftest.err conftest.
$ac_objext \
14921 conftest
$ac_exeext conftest.
$ac_ext
14922 LIBS
=$ac_check_lib_save_LIBS
14924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
14925 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
14926 if test "x$ac_cv_lib_m_sqrt" = x
""yes; then :
14927 cat >>confdefs.h
<<_ACEOF
14928 #define HAVE_LIBM 1
14937 # Check for mail-locking functions in a "mail" library. Probably this should
14938 # have the same check as for liblockfile below.
14939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
14940 $as_echo_n "checking for maillock in -lmail... " >&6; }
14941 if test "${ac_cv_lib_mail_maillock+set}" = set; then :
14942 $as_echo_n "(cached) " >&6
14944 ac_check_lib_save_LIBS
=$LIBS
14945 LIBS
="-lmail $LIBS"
14946 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14947 /* end confdefs.h. */
14949 /* Override any GCC internal prototype to avoid an error.
14950 Use char because int might match the return type of a GCC
14951 builtin and then its argument prototype would still apply. */
14959 return maillock ();
14964 if ac_fn_c_try_link
"$LINENO"; then :
14965 ac_cv_lib_mail_maillock
=yes
14967 ac_cv_lib_mail_maillock
=no
14969 rm -f core conftest.err conftest.
$ac_objext \
14970 conftest
$ac_exeext conftest.
$ac_ext
14971 LIBS
=$ac_check_lib_save_LIBS
14973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
14974 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
14975 if test "x$ac_cv_lib_mail_maillock" = x
""yes; then :
14981 if test $have_mail = yes; then
14983 LIBS
="$LIBS_MAIL $LIBS"
14985 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
14990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
14991 $as_echo_n "checking for maillock in -llockfile... " >&6; }
14992 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then :
14993 $as_echo_n "(cached) " >&6
14995 ac_check_lib_save_LIBS
=$LIBS
14996 LIBS
="-llockfile $LIBS"
14997 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14998 /* end confdefs.h. */
15000 /* Override any GCC internal prototype to avoid an error.
15001 Use char because int might match the return type of a GCC
15002 builtin and then its argument prototype would still apply. */
15010 return maillock ();
15015 if ac_fn_c_try_link
"$LINENO"; then :
15016 ac_cv_lib_lockfile_maillock
=yes
15018 ac_cv_lib_lockfile_maillock
=no
15020 rm -f core conftest.err conftest.
$ac_objext \
15021 conftest
$ac_exeext conftest.
$ac_ext
15022 LIBS
=$ac_check_lib_save_LIBS
15024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
15025 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
15026 if test "x$ac_cv_lib_lockfile_maillock" = x
""yes; then :
15032 if test $have_lockfile = yes; then
15033 LIBS_MAIL
=-llockfile
15034 LIBS
="$LIBS_MAIL $LIBS"
15036 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
15039 # If we have the shared liblockfile, assume we must use it for mail
15040 # locking (e.g. Debian). If we couldn't link against liblockfile
15041 # (no liblockfile.a installed), ensure that we don't need to.
15042 # Extract the first word of "liblockfile.so", so it can be a program name with args.
15043 set dummy liblockfile.so
; ac_word
=$2
15044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15045 $as_echo_n "checking for $ac_word... " >&6; }
15046 if test "${ac_cv_prog_liblockfile+set}" = set; then :
15047 $as_echo_n "(cached) " >&6
15049 if test -n "$liblockfile"; then
15050 ac_cv_prog_liblockfile
="$liblockfile" # Let the user override the test.
15052 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
15053 as_dummy
="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
15054 for as_dir
in $as_dummy
15057 test -z "$as_dir" && as_dir
=.
15058 for ac_exec_ext
in '' $ac_executable_extensions; do
15059 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15060 ac_cv_prog_liblockfile
="yes"
15061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15068 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile
="no"
15071 liblockfile
=$ac_cv_prog_liblockfile
15072 if test -n "$liblockfile"; then
15073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
15074 $as_echo "$liblockfile" >&6; }
15076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15077 $as_echo "no" >&6; }
15081 if test $ac_cv_prog_liblockfile = yes; then
15082 as_fn_error
"Shared liblockfile found but can't link against it.
15083 This probably means that movemail could lose mail.
15084 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
15092 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
15093 ## interlock access to the mail spool. The alternative is a lock file named
15094 ## /usr/spool/mail/$USER.lock.
15097 aix4-2
) mail_lock
="lockf" ;;
15099 gnu|freebsd|dragonfly|netbsd|openbsd|darwin|irix6-5
) mail_lock
="flock" ;;
15101 ## On GNU/Linux systems, both methods are used by various mail programs.
15102 ## I assume most people are using newer mailers that have heard of flock.
15103 ## Change this if you need to.
15104 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
15105 ## configure gets the right answers, and that means *NOT* using flock.
15106 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
15107 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
15108 ## Debian maintainer hasn't provided a clean fix for Emacs.
15109 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
15110 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
15111 ## correct logic. -- fx
15112 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
15113 ## liblockfile is a Free Software replacement for libmail, used on
15114 ## Debian systems and elsewhere. -rfr.
15117 if test $have_mail = yes ||
test $have_lockfile = yes; then
15118 test $ac_cv_header_maillock_h = yes && mail_lock
=no
15123 mail_lock
="none-needed" ;;
15127 case "$mail_lock" in
15129 $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
15133 $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
15138 *) BLESSMAIL_TARGET
="need-blessmail" ;;
15143 for ac_func
in accept4 gethostname \
15144 getrusage get_current_dir_name \
15146 select getpagesize setlocale \
15147 getrlimit setrlimit shutdown getaddrinfo \
15148 strsignal setitimer \
15149 sendto recvfrom getsockname getpeername getifaddrs freeifaddrs \
15150 gai_strerror getline getdelim sync \
15151 difftime posix_memalign \
15152 getpwent endpwent getgrent endgrent \
15154 cfmakeraw cfsetspeed copysign __executable_start log2
15156 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15157 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
15158 eval as_val
=\$
$as_ac_var
15159 if test "x$as_val" = x
""yes; then :
15160 cat >>confdefs.h
<<_ACEOF
15161 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15168 ## Eric Backus <ericb@lsid.hp.com> says, HP-UX 9.x on HP 700 machines
15169 ## has a broken `rint' in some library versions including math library
15170 ## version number A.09.05.
15171 ## You can fix the math library by installing patch number PHSS_4630.
15172 ## But we can fix it more reliably for Emacs by just not using rint.
15173 ## We also skip HAVE_RANDOM - see comments in src/conf_post.h.
15176 *) for ac_func
in random rint
15178 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15179 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
15180 eval as_val
=\$
$as_ac_var
15181 if test "x$as_val" = x
""yes; then :
15182 cat >>confdefs.h
<<_ACEOF
15183 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unwind_init" >&5
15192 $as_echo_n "checking for __builtin_unwind_init... " >&6; }
15193 if test "${emacs_cv_func___builtin_unwind_init+set}" = set; then :
15194 $as_echo_n "(cached) " >&6
15196 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15197 /* end confdefs.h. */
15202 __builtin_unwind_init ();
15207 if ac_fn_c_try_link
"$LINENO"; then :
15208 emacs_cv_func___builtin_unwind_init
=yes
15210 emacs_cv_func___builtin_unwind_init
=no
15212 rm -f core conftest.err conftest.
$ac_objext \
15213 conftest
$ac_exeext conftest.
$ac_ext
15215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func___builtin_unwind_init" >&5
15216 $as_echo "$emacs_cv_func___builtin_unwind_init" >&6; }
15217 if test $emacs_cv_func___builtin_unwind_init = yes; then
15219 $as_echo "#define HAVE___BUILTIN_UNWIND_INIT 1" >>confdefs.h
15227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
15228 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
15229 if test "${ac_cv_sys_largefile_source+set}" = set; then :
15230 $as_echo_n "(cached) " >&6
15233 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15234 /* end confdefs.h. */
15235 #include <sys/types.h> /* for off_t */
15240 int (*fp) (FILE *, off_t, int) = fseeko;
15241 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
15246 if ac_fn_c_try_link
"$LINENO"; then :
15247 ac_cv_sys_largefile_source
=no
; break
15249 rm -f core conftest.err conftest.
$ac_objext \
15250 conftest
$ac_exeext conftest.
$ac_ext
15251 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15252 /* end confdefs.h. */
15253 #define _LARGEFILE_SOURCE 1
15254 #include <sys/types.h> /* for off_t */
15259 int (*fp) (FILE *, off_t, int) = fseeko;
15260 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
15265 if ac_fn_c_try_link
"$LINENO"; then :
15266 ac_cv_sys_largefile_source
=1; break
15268 rm -f core conftest.err conftest.
$ac_objext \
15269 conftest
$ac_exeext conftest.
$ac_ext
15270 ac_cv_sys_largefile_source
=unknown
15274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
15275 $as_echo "$ac_cv_sys_largefile_source" >&6; }
15276 case $ac_cv_sys_largefile_source in #(
15279 cat >>confdefs.h
<<_ACEOF
15280 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
15286 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
15287 # in glibc 2.1.3, but that breaks too many other things.
15288 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
15289 if test $ac_cv_sys_largefile_source != unknown
; then
15291 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
15297 for ac_func
in grantpt
15299 ac_fn_c_check_func
"$LINENO" "grantpt" "ac_cv_func_grantpt"
15300 if test "x$ac_cv_func_grantpt" = x
""yes; then :
15301 cat >>confdefs.h
<<_ACEOF
15302 #define HAVE_GRANTPT 1
15309 # PTY-related GNU extensions.
15310 for ac_func
in getpt posix_openpt
15312 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15313 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
15314 eval as_val
=\$
$as_ac_var
15315 if test "x$as_val" = x
""yes; then :
15316 cat >>confdefs.h
<<_ACEOF
15317 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15324 # Check this now, so that we will NOT find the above functions in ncurses.
15325 # That is because we have not set up to link ncurses in lib-src.
15326 # It's better to believe a function is not available
15327 # than to expect to find it in ncurses.
15328 # Also we need tputs and friends to be able to build at all.
15329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
15330 $as_echo_n "checking for library containing tputs... " >&6; }
15331 # Run a test program that contains a call to tputs, a call that is
15332 # never executed. This tests whether a pre-'main' dynamic linker
15333 # works with the library. It's too much trouble to actually call
15334 # tputs in the test program, due to portability hassles. When
15335 # cross-compiling, assume the test program will run if it links.
15337 if test "${opsys}" = "mingw32"; then
15338 msg
='none required'
15340 # Maybe curses should be tried earlier?
15341 # See http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9736#35
15342 for tputs_library
in '' tinfo ncurses terminfo termcap curses
; do
15344 if test -z "$tputs_library"; then
15346 msg
='none required'
15348 LIBS_TERMCAP
=-l$tputs_library
15350 LIBS
="$LIBS_TERMCAP $LIBS"
15352 if test "$cross_compiling" = yes; then :
15353 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15354 /* end confdefs.h. */
15356 extern void tputs (const char *, int, int (*)(int));
15357 int main (int argc, char **argv)
15360 tputs (argv[0], 0, 0);
15365 if ac_fn_c_try_link
"$LINENO"; then :
15370 rm -f core conftest.err conftest.
$ac_objext \
15371 conftest
$ac_exeext conftest.
$ac_ext
15373 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15374 /* end confdefs.h. */
15376 extern void tputs (const char *, int, int (*)(int));
15377 int main (int argc, char **argv)
15380 tputs (argv[0], 0, 0);
15385 if ac_fn_c_try_run
"$LINENO"; then :
15390 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15391 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15395 if test "X$msg" != Xno
; then
15400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5
15401 $as_echo "$msg" >&6; }
15402 if test "X$msg" = Xno
; then
15403 as_fn_error
"The required function \`tputs' was not found in any library.
15404 The following libraries were tried (in order):
15405 libtinfo, libncurses, libterminfo, libtermcap, libcurses
15406 Please try installing whichever of these libraries is most appropriate
15407 for your system, together with its header files.
15408 For example, a libncurses-dev(el) or similar package." "$LINENO" 5
15411 ## Use termcap instead of terminfo?
15412 ## Only true for: freebsd < 40000, ms-w32, msdos, netbsd < 599002500.
15414 ## FIXME? In the cases below where we unconditionally set
15415 ## LIBS_TERMCAP="-lncurses", this overrides LIBS_TERMCAP = -ltinfo,
15416 ## if that was found above to have tputs.
15417 ## Should we use the gnu* logic everywhere?
15419 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
15420 ## The ncurses library has been moved out of the System framework in
15421 ## Mac OS X 10.2. So if configure detects it, set the command-line
15422 ## option to use it.
15423 darwin
) LIBS_TERMCAP
="-lncurses" ;;
15425 gnu
*) test -z "$LIBS_TERMCAP" && LIBS_TERMCAP
="-lncurses" ;;
15428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
15429 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
15430 if test "${emacs_cv_freebsd_terminfo+set}" = set; then :
15431 $as_echo_n "(cached) " >&6
15433 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15434 /* end confdefs.h. */
15435 #include <osreldate.h>
15439 #if __FreeBSD_version < 400000
15447 if ac_fn_c_try_link
"$LINENO"; then :
15448 emacs_cv_freebsd_terminfo
=yes
15450 emacs_cv_freebsd_terminfo
=no
15452 rm -f core conftest.err conftest.
$ac_objext \
15453 conftest
$ac_exeext conftest.
$ac_ext
15457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
15458 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
15460 if test $emacs_cv_freebsd_terminfo = yes; then
15461 LIBS_TERMCAP
="-lncurses"
15464 LIBS_TERMCAP
="-ltermcap"
15474 if test "x$LIBS_TERMCAP" != "x-lterminfo"; then
15476 LIBS_TERMCAP
="-ltermcap"
15480 openbsd | dragonfly
) LIBS_TERMCAP
="-lncurses" ;;
15482 ## hpux: Make sure we get select from libc rather than from libcurses
15483 ## because libcurses on HPUX 10.10 has a broken version of select.
15484 ## We used to use -lc -lcurses, but this may be cleaner.
15485 ## FIXME? But TERMINFO = yes on hpux (it used to be explicitly
15486 # set that way, now it uses the default). Isn't this a contradiction?
15487 hpux
*) LIBS_TERMCAP
="-ltermcap" ;;
15491 TERMCAP_OBJ
=tparam.o
15492 if test $TERMINFO = yes; then
15494 $as_echo "#define TERMINFO 1" >>confdefs.h
15496 TERMCAP_OBJ
=terminfo.o
15498 if test "X$LIBS_TERMCAP" = "X-lncurses"; then
15500 $as_echo "#define USE_NCURSES 1" >>confdefs.h
15507 # Do we have res_init, for detecting changes in /etc/resolv.conf?
15508 # On Darwin, res_init appears not to be useful: see bug#562 and
15509 # http://lists.gnu.org/archive/html/emacs-devel/2007-11/msg01467.html
15512 if test $opsys != darwin
; then
15514 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15515 /* end confdefs.h. */
15516 #include <netinet/in.h>
15517 #include <arpa/nameser.h>
15518 #include <resolv.h>
15527 if ac_fn_c_try_link
"$LINENO"; then :
15532 rm -f core conftest.err conftest.
$ac_objext \
15533 conftest
$ac_exeext conftest.
$ac_ext
15534 if test "$have_res_init" = no
; then
15536 LIBS
="$LIBS -lresolv"
15537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
15538 $as_echo_n "checking for res_init with -lresolv... " >&6; }
15539 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15540 /* end confdefs.h. */
15541 #include <netinet/in.h>
15542 #include <arpa/nameser.h>
15543 #include <resolv.h>
15552 if ac_fn_c_try_link
"$LINENO"; then :
15557 rm -f core conftest.err conftest.
$ac_objext \
15558 conftest
$ac_exeext conftest.
$ac_ext
15559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
15560 $as_echo "$have_res_init" >&6; }
15561 if test "$have_res_init" = yes ; then
15567 if test "$have_res_init" = yes; then
15569 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
15573 # Do we need the Hesiod library to provide the support routines?
15575 if test "$with_hesiod" != no
; then
15576 # Don't set $LIBS here -- see comments above. FIXME which comments?
15577 ac_fn_c_check_func
"$LINENO" "res_send" "ac_cv_func_res_send"
15578 if test "x$ac_cv_func_res_send" = x
""yes; then :
15581 ac_fn_c_check_func
"$LINENO" "__res_send" "ac_cv_func___res_send"
15582 if test "x$ac_cv_func___res_send" = x
""yes; then :
15585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
15586 $as_echo_n "checking for res_send in -lresolv... " >&6; }
15587 if test "${ac_cv_lib_resolv_res_send+set}" = set; then :
15588 $as_echo_n "(cached) " >&6
15590 ac_check_lib_save_LIBS
=$LIBS
15591 LIBS
="-lresolv $LIBS"
15592 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15593 /* end confdefs.h. */
15595 /* Override any GCC internal prototype to avoid an error.
15596 Use char because int might match the return type of a GCC
15597 builtin and then its argument prototype would still apply. */
15605 return res_send ();
15610 if ac_fn_c_try_link
"$LINENO"; then :
15611 ac_cv_lib_resolv_res_send
=yes
15613 ac_cv_lib_resolv_res_send
=no
15615 rm -f core conftest.err conftest.
$ac_objext \
15616 conftest
$ac_exeext conftest.
$ac_ext
15617 LIBS
=$ac_check_lib_save_LIBS
15619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
15620 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
15621 if test "x$ac_cv_lib_resolv_res_send" = x
""yes; then :
15624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
15625 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
15626 if test "${ac_cv_lib_resolv___res_send+set}" = set; then :
15627 $as_echo_n "(cached) " >&6
15629 ac_check_lib_save_LIBS
=$LIBS
15630 LIBS
="-lresolv $LIBS"
15631 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15632 /* end confdefs.h. */
15634 /* Override any GCC internal prototype to avoid an error.
15635 Use char because int might match the return type of a GCC
15636 builtin and then its argument prototype would still apply. */
15640 char __res_send ();
15644 return __res_send ();
15649 if ac_fn_c_try_link
"$LINENO"; then :
15650 ac_cv_lib_resolv___res_send
=yes
15652 ac_cv_lib_resolv___res_send
=no
15654 rm -f core conftest.err conftest.
$ac_objext \
15655 conftest
$ac_exeext conftest.
$ac_ext
15656 LIBS
=$ac_check_lib_save_LIBS
15658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
15659 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
15660 if test "x$ac_cv_lib_resolv___res_send" = x
""yes; then :
15670 if test "$resolv" = yes ; then
15675 ac_fn_c_check_func
"$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
15676 if test "x$ac_cv_func_hes_getmailhost" = x
""yes; then :
15679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
15680 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
15681 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then :
15682 $as_echo_n "(cached) " >&6
15684 ac_check_lib_save_LIBS
=$LIBS
15685 LIBS
="-lhesiod $RESOLVLIB $LIBS"
15686 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15687 /* end confdefs.h. */
15689 /* Override any GCC internal prototype to avoid an error.
15690 Use char because int might match the return type of a GCC
15691 builtin and then its argument prototype would still apply. */
15695 char hes_getmailhost ();
15699 return hes_getmailhost ();
15704 if ac_fn_c_try_link
"$LINENO"; then :
15705 ac_cv_lib_hesiod_hes_getmailhost
=yes
15707 ac_cv_lib_hesiod_hes_getmailhost
=no
15709 rm -f core conftest.err conftest.
$ac_objext \
15710 conftest
$ac_exeext conftest.
$ac_ext
15711 LIBS
=$ac_check_lib_save_LIBS
15713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
15714 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
15715 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x
""yes; then :
15724 if test x
"$hesiod" = xyes
; then
15730 # Do we need libresolv (due to res_init or Hesiod)?
15731 if test "$resolv" = yes && test $opsys != darwin
; then
15738 # These tell us which Kerberos-related libraries to use.
15745 if test "${with_kerberos}" != no
; then
15746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
15747 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
15748 if test "${ac_cv_lib_com_err_com_err+set}" = set; then :
15749 $as_echo_n "(cached) " >&6
15751 ac_check_lib_save_LIBS
=$LIBS
15752 LIBS
="-lcom_err $LIBS"
15753 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15754 /* end confdefs.h. */
15756 /* Override any GCC internal prototype to avoid an error.
15757 Use char because int might match the return type of a GCC
15758 builtin and then its argument prototype would still apply. */
15771 if ac_fn_c_try_link
"$LINENO"; then :
15772 ac_cv_lib_com_err_com_err
=yes
15774 ac_cv_lib_com_err_com_err
=no
15776 rm -f core conftest.err conftest.
$ac_objext \
15777 conftest
$ac_exeext conftest.
$ac_ext
15778 LIBS
=$ac_check_lib_save_LIBS
15780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
15781 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
15782 if test "x$ac_cv_lib_com_err_com_err" = x
""yes; then :
15788 if test $have_com_err = yes; then
15789 COM_ERRLIB
=-lcom_err
15790 LIBS
="$COM_ERRLIB $LIBS"
15792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
15793 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
15794 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then :
15795 $as_echo_n "(cached) " >&6
15797 ac_check_lib_save_LIBS
=$LIBS
15798 LIBS
="-lcrypto $LIBS"
15799 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15800 /* end confdefs.h. */
15802 /* Override any GCC internal prototype to avoid an error.
15803 Use char because int might match the return type of a GCC
15804 builtin and then its argument prototype would still apply. */
15808 char mit_des_cbc_encrypt ();
15812 return mit_des_cbc_encrypt ();
15817 if ac_fn_c_try_link
"$LINENO"; then :
15818 ac_cv_lib_crypto_mit_des_cbc_encrypt
=yes
15820 ac_cv_lib_crypto_mit_des_cbc_encrypt
=no
15822 rm -f core conftest.err conftest.
$ac_objext \
15823 conftest
$ac_exeext conftest.
$ac_ext
15824 LIBS
=$ac_check_lib_save_LIBS
15826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
15827 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
15828 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x
""yes; then :
15834 if test $have_crypto = yes; then
15836 LIBS
="$CRYPTOLIB $LIBS"
15838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
15839 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
15840 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then :
15841 $as_echo_n "(cached) " >&6
15843 ac_check_lib_save_LIBS
=$LIBS
15844 LIBS
="-lk5crypto $LIBS"
15845 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15846 /* end confdefs.h. */
15848 /* Override any GCC internal prototype to avoid an error.
15849 Use char because int might match the return type of a GCC
15850 builtin and then its argument prototype would still apply. */
15854 char mit_des_cbc_encrypt ();
15858 return mit_des_cbc_encrypt ();
15863 if ac_fn_c_try_link
"$LINENO"; then :
15864 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=yes
15866 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=no
15868 rm -f core conftest.err conftest.
$ac_objext \
15869 conftest
$ac_exeext conftest.
$ac_ext
15870 LIBS
=$ac_check_lib_save_LIBS
15872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
15873 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
15874 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x
""yes; then :
15880 if test $have_k5crypto = yes; then
15881 CRYPTOLIB
=-lk5crypto
15882 LIBS
="$CRYPTOLIB $LIBS"
15884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
15885 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
15886 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then :
15887 $as_echo_n "(cached) " >&6
15889 ac_check_lib_save_LIBS
=$LIBS
15890 LIBS
="-lkrb5 $LIBS"
15891 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15892 /* end confdefs.h. */
15894 /* Override any GCC internal prototype to avoid an error.
15895 Use char because int might match the return type of a GCC
15896 builtin and then its argument prototype would still apply. */
15900 char krb5_init_context ();
15904 return krb5_init_context ();
15909 if ac_fn_c_try_link
"$LINENO"; then :
15910 ac_cv_lib_krb5_krb5_init_context
=yes
15912 ac_cv_lib_krb5_krb5_init_context
=no
15914 rm -f core conftest.err conftest.
$ac_objext \
15915 conftest
$ac_exeext conftest.
$ac_ext
15916 LIBS
=$ac_check_lib_save_LIBS
15918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
15919 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
15920 if test "x$ac_cv_lib_krb5_krb5_init_context" = x
""yes; then :
15926 if test $have_krb5=yes; then
15928 LIBS
="$KRB5LIB $LIBS"
15930 if test "${with_kerberos5}" = no
; then
15931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
15932 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
15933 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
15934 $as_echo_n "(cached) " >&6
15936 ac_check_lib_save_LIBS
=$LIBS
15937 LIBS
="-ldes425 $LIBS"
15938 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15939 /* end confdefs.h. */
15941 /* Override any GCC internal prototype to avoid an error.
15942 Use char because int might match the return type of a GCC
15943 builtin and then its argument prototype would still apply. */
15947 char des_cbc_encrypt ();
15951 return des_cbc_encrypt ();
15956 if ac_fn_c_try_link
"$LINENO"; then :
15957 ac_cv_lib_des425_des_cbc_encrypt
=yes
15959 ac_cv_lib_des425_des_cbc_encrypt
=no
15961 rm -f core conftest.err conftest.
$ac_objext \
15962 conftest
$ac_exeext conftest.
$ac_ext
15963 LIBS
=$ac_check_lib_save_LIBS
15965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
15966 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
15967 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x
""yes; then :
15973 if test $have_des425 = yes; then
15975 LIBS
="$DESLIB $LIBS"
15977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
15978 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
15979 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
15980 $as_echo_n "(cached) " >&6
15982 ac_check_lib_save_LIBS
=$LIBS
15984 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15985 /* end confdefs.h. */
15987 /* Override any GCC internal prototype to avoid an error.
15988 Use char because int might match the return type of a GCC
15989 builtin and then its argument prototype would still apply. */
15993 char des_cbc_encrypt ();
15997 return des_cbc_encrypt ();
16002 if ac_fn_c_try_link
"$LINENO"; then :
16003 ac_cv_lib_des_des_cbc_encrypt
=yes
16005 ac_cv_lib_des_des_cbc_encrypt
=no
16007 rm -f core conftest.err conftest.
$ac_objext \
16008 conftest
$ac_exeext conftest.
$ac_ext
16009 LIBS
=$ac_check_lib_save_LIBS
16011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
16012 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
16013 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x
""yes; then :
16019 if test $have_des = yes; then
16021 LIBS
="$DESLIB $LIBS"
16024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
16025 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
16026 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then :
16027 $as_echo_n "(cached) " >&6
16029 ac_check_lib_save_LIBS
=$LIBS
16030 LIBS
="-lkrb4 $LIBS"
16031 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16032 /* end confdefs.h. */
16034 /* Override any GCC internal prototype to avoid an error.
16035 Use char because int might match the return type of a GCC
16036 builtin and then its argument prototype would still apply. */
16040 char krb_get_cred ();
16044 return krb_get_cred ();
16049 if ac_fn_c_try_link
"$LINENO"; then :
16050 ac_cv_lib_krb4_krb_get_cred
=yes
16052 ac_cv_lib_krb4_krb_get_cred
=no
16054 rm -f core conftest.err conftest.
$ac_objext \
16055 conftest
$ac_exeext conftest.
$ac_ext
16056 LIBS
=$ac_check_lib_save_LIBS
16058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
16059 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
16060 if test "x$ac_cv_lib_krb4_krb_get_cred" = x
""yes; then :
16066 if test $have_krb4 = yes; then
16068 LIBS
="$KRB4LIB $LIBS"
16070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
16071 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
16072 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then :
16073 $as_echo_n "(cached) " >&6
16075 ac_check_lib_save_LIBS
=$LIBS
16077 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16078 /* end confdefs.h. */
16080 /* Override any GCC internal prototype to avoid an error.
16081 Use char because int might match the return type of a GCC
16082 builtin and then its argument prototype would still apply. */
16086 char krb_get_cred ();
16090 return krb_get_cred ();
16095 if ac_fn_c_try_link
"$LINENO"; then :
16096 ac_cv_lib_krb_krb_get_cred
=yes
16098 ac_cv_lib_krb_krb_get_cred
=no
16100 rm -f core conftest.err conftest.
$ac_objext \
16101 conftest
$ac_exeext conftest.
$ac_ext
16102 LIBS
=$ac_check_lib_save_LIBS
16104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
16105 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
16106 if test "x$ac_cv_lib_krb_krb_get_cred" = x
""yes; then :
16112 if test $have_krb = yes; then
16114 LIBS
="$KRB4LIB $LIBS"
16119 if test "${with_kerberos5}" != no
; then
16120 for ac_header
in krb5.h
16122 ac_fn_c_check_header_mongrel
"$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
16123 if test "x$ac_cv_header_krb5_h" = x
""yes; then :
16124 cat >>confdefs.h
<<_ACEOF
16125 #define HAVE_KRB5_H 1
16127 ac_fn_c_check_member
"$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
16129 if test "x$ac_cv_member_krb5_error_text" = x
""yes; then :
16131 cat >>confdefs.h
<<_ACEOF
16132 #define HAVE_KRB5_ERROR_TEXT 1
16137 ac_fn_c_check_member
"$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
16139 if test "x$ac_cv_member_krb5_error_e_text" = x
""yes; then :
16141 cat >>confdefs.h
<<_ACEOF
16142 #define HAVE_KRB5_ERROR_E_TEXT 1
16153 for ac_header
in krb.h
16155 ac_fn_c_check_header_mongrel
"$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
16156 if test "x$ac_cv_header_krb_h" = x
""yes; then :
16157 cat >>confdefs.h
<<_ACEOF
16158 #define HAVE_KRB_H 1
16162 for ac_header
in kerberosIV
/krb.h
16164 ac_fn_c_check_header_mongrel
"$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
16165 if test "x$ac_cv_header_kerberosIV_krb_h" = x
""yes; then :
16166 cat >>confdefs.h
<<_ACEOF
16167 #define HAVE_KERBEROSIV_KRB_H 1
16171 for ac_header
in kerberos
/krb.h
16173 ac_fn_c_check_header_mongrel
"$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
16174 if test "x$ac_cv_header_kerberos_krb_h" = x
""yes; then :
16175 cat >>confdefs.h
<<_ACEOF
16176 #define HAVE_KERBEROS_KRB_H 1
16192 for ac_header
in com_err.h
16194 ac_fn_c_check_header_mongrel
"$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
16195 if test "x$ac_cv_header_com_err_h" = x
""yes; then :
16196 cat >>confdefs.h
<<_ACEOF
16197 #define HAVE_COM_ERR_H 1
16212 for ac_header
in valgrind
/valgrind.h
16214 ac_fn_c_check_header_mongrel
"$LINENO" "valgrind/valgrind.h" "ac_cv_header_valgrind_valgrind_h" "$ac_includes_default"
16215 if test "x$ac_cv_header_valgrind_valgrind_h" = x
""yes; then :
16216 cat >>confdefs.h
<<_ACEOF
16217 #define HAVE_VALGRIND_VALGRIND_H 1
16228 for ac_func
in $ac_func_list
16230 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16231 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
16232 eval as_val
=\$
$as_ac_var
16233 if test "x$as_val" = x
""yes; then :
16234 cat >>confdefs.h
<<_ACEOF
16235 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
16245 $as_echo_n "checking whether localtime caches TZ... " >&6; }
16246 if test "${emacs_cv_localtime_cache+set}" = set; then :
16247 $as_echo_n "(cached) " >&6
16249 if test x
$ac_cv_func_tzset = xyes
; then
16250 if test "$cross_compiling" = yes; then :
16251 # If we have tzset, assume the worst when cross-compiling.
16252 emacs_cv_localtime_cache
=yes
16254 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16255 /* end confdefs.h. */
16257 char TZ_GMT0[] = "TZ=GMT0";
16258 char TZ_PST8[] = "TZ=PST8";
16261 time_t now = time ((time_t *) 0);
16262 int hour_GMT0, hour_unset;
16263 if (putenv (TZ_GMT0) != 0)
16265 hour_GMT0 = localtime (&now)->tm_hour;
16267 hour_unset = localtime (&now)->tm_hour;
16268 if (putenv (TZ_PST8) != 0)
16270 if (localtime (&now)->tm_hour == hour_GMT0)
16273 if (localtime (&now)->tm_hour != hour_unset)
16278 if ac_fn_c_try_run
"$LINENO"; then :
16279 emacs_cv_localtime_cache
=no
16281 emacs_cv_localtime_cache
=yes
16283 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16284 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16288 # If we lack tzset, report that localtime does not cache TZ,
16289 # since we can't invalidate the cache if we don't have tzset.
16290 emacs_cv_localtime_cache
=no
16293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
16294 $as_echo "$emacs_cv_localtime_cache" >&6; }
16295 if test $emacs_cv_localtime_cache = yes; then
16297 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
16302 ac_fn_c_check_func
"$LINENO" "socket" "ac_cv_func_socket"
16303 if test "x$ac_cv_func_socket" = x
""yes; then :
16309 if test $ok_so_far = yes; then
16310 ac_fn_c_check_header_mongrel
"$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
16311 if test "x$ac_cv_header_netinet_in_h" = x
""yes; then :
16319 if test $ok_so_far = yes; then
16320 ac_fn_c_check_header_mongrel
"$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
16321 if test "x$ac_cv_header_arpa_inet_h" = x
""yes; then :
16329 if test $ok_so_far = yes; then
16331 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
16336 *-solaris2.4 |
*-solaris2.4.
*)
16337 : ${ac_cv_func_vfork_works=no};;
16340 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
16341 if test "x$ac_cv_type_pid_t" = x
""yes; then :
16345 cat >>confdefs.h
<<_ACEOF
16351 for ac_header
in vfork.h
16353 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
16354 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
16355 cat >>confdefs.h
<<_ACEOF
16356 #define HAVE_VFORK_H 1
16363 for ac_func
in fork vfork
16365 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16366 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
16367 eval as_val
=\$
$as_ac_var
16368 if test "x$as_val" = x
""yes; then :
16369 cat >>confdefs.h
<<_ACEOF
16370 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16376 if test "x$ac_cv_func_fork" = xyes
; then
16377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
16378 $as_echo_n "checking for working fork... " >&6; }
16379 if test "${ac_cv_func_fork_works+set}" = set; then :
16380 $as_echo_n "(cached) " >&6
16382 if test "$cross_compiling" = yes; then :
16383 ac_cv_func_fork_works
=cross
16385 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16386 /* end confdefs.h. */
16387 $ac_includes_default
16392 /* By Ruediger Kuhlmann. */
16393 return fork () < 0;
16399 if ac_fn_c_try_run
"$LINENO"; then :
16400 ac_cv_func_fork_works
=yes
16402 ac_cv_func_fork_works
=no
16404 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16405 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
16410 $as_echo "$ac_cv_func_fork_works" >&6; }
16413 ac_cv_func_fork_works
=$ac_cv_func_fork
16415 if test "x$ac_cv_func_fork_works" = xcross
; then
16417 *-*-amigaos* |
*-*-msdosdjgpp*)
16418 # Override, as these systems have only a dummy fork() stub
16419 ac_cv_func_fork_works
=no
16422 ac_cv_func_fork_works
=yes
16425 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
16426 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
16428 ac_cv_func_vfork_works
=$ac_cv_func_vfork
16429 if test "x$ac_cv_func_vfork" = xyes
; then
16430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
16431 $as_echo_n "checking for working vfork... " >&6; }
16432 if test "${ac_cv_func_vfork_works+set}" = set; then :
16433 $as_echo_n "(cached) " >&6
16435 if test "$cross_compiling" = yes; then :
16436 ac_cv_func_vfork_works
=cross
16438 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16439 /* end confdefs.h. */
16440 /* Thanks to Paul Eggert for this test. */
16441 $ac_includes_default
16442 #include <sys/wait.h>
16443 #ifdef HAVE_VFORK_H
16444 # include <vfork.h>
16446 /* On some sparc systems, changes by the child to local and incoming
16447 argument registers are propagated back to the parent. The compiler
16448 is told about this with #include <vfork.h>, but some compilers
16449 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
16450 static variable whose address is put into a register that is
16451 clobbered by the vfork. */
16454 sparc_address_test (int arg)
16456 sparc_address_test (arg) int arg;
16459 static pid_t child;
16477 pid_t parent = getpid ();
16480 sparc_address_test (0);
16485 /* Here is another test for sparc vfork register problems. This
16486 test uses lots of local variables, at least as many local
16487 variables as main has allocated so far including compiler
16488 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
16489 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
16490 reuse the register of parent for one of the local variables,
16491 since it will think that parent can't possibly be used any more
16492 in this routine. Assigning to the local variable will thus
16493 munge parent in the parent process. */
16495 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
16496 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
16497 /* Convince the compiler that p..p7 are live; otherwise, it might
16498 use the same hardware register for all 8 local variables. */
16499 if (p != p1 || p != p2 || p != p3 || p != p4
16500 || p != p5 || p != p6 || p != p7)
16503 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
16504 from child file descriptors. If the child closes a descriptor
16505 before it execs or exits, this munges the parent's descriptor
16506 as well. Test for this by closing stdout in the child. */
16507 _exit(close(fileno(stdout)) != 0);
16512 while (wait(&status) != child)
16515 /* Was there some problem with vforking? */
16518 /* Did the child fail? (This shouldn't happen.) */
16521 /* Did the vfork/compiler bug occur? */
16522 || parent != getpid()
16524 /* Did the file descriptor bug occur? */
16525 || fstat(fileno(stdout), &st) != 0
16530 if ac_fn_c_try_run
"$LINENO"; then :
16531 ac_cv_func_vfork_works
=yes
16533 ac_cv_func_vfork_works
=no
16535 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16536 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
16541 $as_echo "$ac_cv_func_vfork_works" >&6; }
16544 if test "x$ac_cv_func_fork_works" = xcross
; then
16545 ac_cv_func_vfork_works
=$ac_cv_func_vfork
16546 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
16547 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
16550 if test "x$ac_cv_func_vfork_works" = xyes
; then
16552 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
16556 $as_echo "#define vfork fork" >>confdefs.h
16559 if test "x$ac_cv_func_fork_works" = xyes
; then
16561 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
16566 for ac_func
in snprintf
16568 ac_fn_c_check_func
"$LINENO" "snprintf" "ac_cv_func_snprintf"
16569 if test "x$ac_cv_func_snprintf" = x
""yes; then :
16570 cat >>confdefs.h
<<_ACEOF
16571 #define HAVE_SNPRINTF 1
16579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GLib is linked in" >&5
16580 $as_echo_n "checking whether GLib is linked in... " >&6; }
16581 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16582 /* end confdefs.h. */
16588 g_print ("Hello world");
16593 if ac_fn_c_try_link
"$LINENO"; then :
16598 rm -f core conftest.err conftest.
$ac_objext \
16599 conftest
$ac_exeext conftest.
$ac_ext
16600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $links_glib" >&5
16601 $as_echo "$links_glib" >&6; }
16602 if test "${links_glib}" = "yes"; then
16604 $as_echo "#define HAVE_GLIB 1" >>confdefs.h
16606 if test "$HAVE_NS" = no
;then
16607 XGSELOBJ
=xgselect.o
16612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
16613 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
16614 if test "${emacs_cv_langinfo_codeset+set}" = set; then :
16615 $as_echo_n "(cached) " >&6
16617 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16618 /* end confdefs.h. */
16619 #include <langinfo.h>
16623 char* cs = nl_langinfo(CODESET);
16628 if ac_fn_c_try_link
"$LINENO"; then :
16629 emacs_cv_langinfo_codeset
=yes
16631 emacs_cv_langinfo_codeset
=no
16633 rm -f core conftest.err conftest.
$ac_objext \
16634 conftest
$ac_exeext conftest.
$ac_ext
16637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
16638 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
16639 if test $emacs_cv_langinfo_codeset = yes; then
16641 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
16645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
16646 $as_echo_n "checking for mbstate_t... " >&6; }
16647 if test "${ac_cv_type_mbstate_t+set}" = set; then :
16648 $as_echo_n "(cached) " >&6
16650 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16651 /* end confdefs.h. */
16652 $ac_includes_default
16653 # include <wchar.h>
16657 mbstate_t x; return sizeof x;
16662 if ac_fn_c_try_compile
"$LINENO"; then :
16663 ac_cv_type_mbstate_t
=yes
16665 ac_cv_type_mbstate_t
=no
16667 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
16670 $as_echo "$ac_cv_type_mbstate_t" >&6; }
16671 if test $ac_cv_type_mbstate_t = yes; then
16673 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
16677 $as_echo "#define mbstate_t int" >>confdefs.h
16681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
16682 $as_echo_n "checking for C restricted array declarations... " >&6; }
16683 if test "${emacs_cv_c_restrict_arr+set}" = set; then :
16684 $as_echo_n "(cached) " >&6
16686 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16687 /* end confdefs.h. */
16688 void fred (int x[__restrict]);
16697 if ac_fn_c_try_compile
"$LINENO"; then :
16698 emacs_cv_c_restrict_arr
=yes
16700 emacs_cv_c_restrict_arr
=no
16702 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
16705 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
16706 if test "$emacs_cv_c_restrict_arr" = yes; then
16708 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
16713 if test "${opsys}" != "mingw32"; then
16715 $as_echo "#define AMPERSAND_FULL_NAME 1" >>confdefs.h
16720 $as_echo "#define CLASH_DETECTION 1" >>confdefs.h
16723 ## Note: PTYs are broken on darwin <6. Use at your own risk.
16724 if test "${opsys}" != "mingw32"; then
16726 $as_echo "#define HAVE_PTYS 1" >>confdefs.h
16731 $as_echo "#define HAVE_SOCKETS 1" >>confdefs.h
16737 if test "${opsys}" = "mingw32"; then
16738 $as_echo "#define NULL_DEVICE \"NUL:\"" >>confdefs.h
16741 $as_echo "#define NULL_DEVICE \"/dev/null\"" >>confdefs.h
16746 if test "${opsys}" = "mingw32"; then
16747 $as_echo "#define SEPCHAR ';'" >>confdefs.h
16750 $as_echo "#define SEPCHAR ':'" >>confdefs.h
16755 $as_echo "#define subprocesses 1" >>confdefs.h
16759 $as_echo "#define USER_FULL_NAME pw->pw_gecos" >>confdefs.h
16764 $as_echo "#define DIRECTORY_SEP '/'" >>confdefs.h
16767 if test "${opsys}" = "mingw32"; then
16769 $as_echo "#define IS_DEVICE_SEP(_c_) ((_c_) == ':')" >>confdefs.h
16773 $as_echo "#define IS_DIRECTORY_SEP(_c_) ((_c_) == '/' || (_c_) == '\\\\')" >>confdefs.h
16777 $as_echo "#define IS_ANY_SEP(_c_) (IS_DIRECTORY_SEP (_c_) || IS_DEVICE_SEP(_c_))" >>confdefs.h
16781 $as_echo "#define IS_DEVICE_SEP(_c_) 0" >>confdefs.h
16785 $as_echo "#define IS_DIRECTORY_SEP(_c_) ((_c_) == DIRECTORY_SEP)" >>confdefs.h
16789 $as_echo "#define IS_ANY_SEP(_c_) (IS_DIRECTORY_SEP (_c_))" >>confdefs.h
16797 if test x
$ac_cv_lib_Xmu_XmuConvertStandardSelection != xyes
; then
16798 $as_echo "#define NO_EDITRES 1" >>confdefs.h
16804 $as_echo "#define NO_EDITRES 1" >>confdefs.h
16811 irix6-5 | sol2
* | unixware
)
16813 $as_echo "#define NSIG_MINIMUM 32" >>confdefs.h
16818 emacs_broken_SIGIO
=no
16821 hpux
* | irix6-5 | openbsd | sol2
* | unixware
)
16822 emacs_broken_SIGIO
=yes
16827 $as_echo "#define BROKEN_GET_CURRENT_DIR_NAME 1" >>confdefs.h
16833 $as_echo "#define BROKEN_PTY_READ_AFTER_EAGAIN 1" >>confdefs.h
16841 $as_echo "#define HAVE_PROCFS 1" >>confdefs.h
16847 darwin | dragonfly | freebsd | netbsd | openbsd
)
16849 $as_echo "#define DONT_REOPEN_PTY 1" >>confdefs.h
16855 netbsd | openbsd
) sound_device
="/dev/audio" ;;
16856 *) sound_device
="/dev/dsp" ;;
16860 cat >>confdefs.h
<<_ACEOF
16861 #define DEFAULT_SOUND_DEVICE "$sound_device"
16867 darwin | gnu-linux | gnu-kfreebsd
)
16869 $as_echo "#define INTERRUPT_INPUT 1" >>confdefs.h
16876 cygwin|gnu|gnu-linux|gnu-kfreebsd|irix6-5|freebsd|netbsd|openbsd
)
16878 $as_echo "#define NARROWPROTO 1" >>confdefs.h
16892 $as_echo "#define PTY_ITERATION int c; for (c = 0; !c ; c++)" >>confdefs.h
16894 $as_echo "#define PTY_NAME_SPRINTF strcpy (pty_name, \"/dev/ptc\");" >>confdefs.h
16896 $as_echo "#define PTY_TTY_NAME_SPRINTF strcpy (pty_name, ttyname (fd));" >>confdefs.h
16901 $as_echo "#define PTY_ITERATION int i; for (i = 0; i < 1; i++)" >>confdefs.h
16903 $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
16905 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
16907 $as_echo "#define PTY_TTY_NAME_SPRINTF /**/" >>confdefs.h
16912 $as_echo "#define PTY_ITERATION int i; for (i = 0; i < 1; i++)" >>confdefs.h
16914 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
16916 $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
16918 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
16920 $as_echo "#define PTY_TTY_NAME_SPRINTF /**/" >>confdefs.h
16925 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
16929 gnu-linux | gnu-kfreebsd | dragonfly | freebsd | netbsd
)
16930 if test "x$ac_cv_func_grantpt" = xyes
; then
16932 $as_echo "#define UNIX98_PTYS 1" >>confdefs.h
16934 $as_echo "#define PTY_ITERATION int i; for (i = 0; i < 1; i++)" >>confdefs.h
16936 $as_echo "#define PTY_TTY_NAME_SPRINTF { char *ptyname = 0; sigset_t blocked; sigemptyset (&blocked); sigaddset (&blocked, SIGCHLD); pthread_sigmask (SIG_BLOCK, &blocked, 0); if (grantpt (fd) != -1 && unlockpt (fd) != -1) ptyname = ptsname(fd); pthread_sigmask (SIG_UNBLOCK, &blocked, 0); if (!ptyname) { emacs_close (fd); return -1; } snprintf (pty_name, PTY_NAME_SIZE, \"%s\", ptyname); }" >>confdefs.h
16938 if test "x$ac_cv_func_posix_openpt" = xyes
; then
16939 $as_echo "#define PTY_OPEN do { fd = posix_openpt (O_RDWR | O_CLOEXEC | O_NOCTTY); if (fd < 0 && errno == EINVAL) fd = posix_openpt (O_RDWR | O_NOCTTY); } while (0)" >>confdefs.h
16941 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
16943 elif test "x$ac_cv_func_getpt" = xyes
; then
16944 $as_echo "#define PTY_OPEN fd = getpt ()" >>confdefs.h
16946 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
16949 $as_echo "#define PTY_NAME_SPRINTF strcpy (pty_name, \"/dev/ptmx\");" >>confdefs.h
16953 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
16959 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
16961 $as_echo "#define PTY_NAME_SPRINTF sprintf (pty_name, \"/dev/ptym/pty%c%x\", c, i);" >>confdefs.h
16963 $as_echo "#define PTY_TTY_NAME_SPRINTF sprintf (pty_name, \"/dev/pty/tty%c%x\", c, i);" >>confdefs.h
16968 $as_echo "#define PTY_ITERATION /**/" >>confdefs.h
16970 $as_echo "#define FIRST_PTY_LETTER 'q'" >>confdefs.h
16972 $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
16974 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
16976 $as_echo "#define PTY_TTY_NAME_SPRINTF /**/" >>confdefs.h
16981 $as_echo "#define PTY_TTY_NAME_SPRINTF { char *ptsname (int), *ptyname; int grantpt_result; sigset_t blocked; sigemptyset (&blocked); sigaddset (&blocked, SIGCHLD); pthread_sigmask (SIG_BLOCK, &blocked, 0); grantpt_result = grantpt (fd); pthread_sigmask (SIG_UNBLOCK, &blocked, 0); if (grantpt_result == -1 || unlockpt (fd) == -1 || !(ptyname = ptsname (fd))) { emacs_close (fd); return -1; } snprintf (pty_name, PTY_NAME_SIZE, \"%s\", ptyname); }" >>confdefs.h
16986 $as_echo "#define PTY_TTY_NAME_SPRINTF { char *ptsname (int), *ptyname; int grantpt_result; sigset_t blocked; sigemptyset (&blocked); sigaddset (&blocked, SIGCHLD); pthread_sigmask (SIG_BLOCK, &blocked, 0); grantpt_result = grantpt (fd); pthread_sigmask (SIG_UNBLOCK, &blocked, 0); if (grantpt_result == -1) fatal(\"could not grant slave pty\"); if (unlockpt(fd) == -1) fatal(\"could not unlock slave pty\"); if (!(ptyname = ptsname(fd))) fatal (\"could not enable slave pty\"); snprintf (pty_name, PTY_NAME_SIZE, \"%s\", ptyname); }" >>confdefs.h
16994 $as_echo "#define FIRST_PTY_LETTER 'z'" >>confdefs.h
16996 $as_echo "#define PTY_NAME_SPRINTF strcpy (pty_name, \"/dev/ptmx\");" >>confdefs.h
16999 $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
17008 aix4-2 | cygwin | gnu | irix6-5 | dragonfly | freebsd | netbsd | openbsd | darwin
)
17009 $as_echo "#define SIGNALS_VIA_CHARACTERS 1" >>confdefs.h
17013 gnu-linux | gnu-kfreebsd
)
17015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signals via characters" >&5
17016 $as_echo_n "checking for signals via characters... " >&6; }
17017 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17018 /* end confdefs.h. */
17020 #include <linux/version.h>
17021 #if LINUX_VERSION_CODE < 0x20400
17022 # error "Linux version too old"
17033 if ac_fn_c_try_cpp
"$LINENO"; then :
17034 emacs_signals_via_chars
=yes
17036 emacs_signals_via_chars
=no
17038 rm -f conftest.err conftest.
$ac_ext
17040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_signals_via_chars" >&5
17041 $as_echo "$emacs_signals_via_chars" >&6; }
17042 test $emacs_signals_via_chars = yes && $as_echo "#define SIGNALS_VIA_CHARACTERS 1" >>confdefs.h
17052 $as_echo "#define DATA_SEG_BITS 0x20000000" >>confdefs.h
17056 $as_echo "#define DATA_SEG_BITS 0x40000000" >>confdefs.h
17060 $as_echo "#define DATA_SEG_BITS 0x10000000" >>confdefs.h
17069 darwin
) $as_echo "#define TAB3 OXTABS" >>confdefs.h
17072 gnu | dragonfly | freebsd | netbsd | openbsd
)
17074 $as_echo "#define TABDLY OXTABS" >>confdefs.h
17076 $as_echo "#define TAB3 OXTABS" >>confdefs.h
17080 gnu-linux | gnu-kfreebsd
)
17081 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17082 /* end confdefs.h. */
17096 if ac_fn_c_try_cpp
"$LINENO"; then :
17098 $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
17101 rm -f conftest.err conftest.
$ac_ext
17106 $as_echo "#define RUN_TIME_REMAP 1" >>confdefs.h
17116 gnu-linux | gnu-kfreebsd
)
17117 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17118 /* end confdefs.h. */
17120 #if defined __i386__ || defined __sparc__ || defined __mc68000__ \
17121 || defined __alpha__ || defined __mips__ || defined __s390__ \
17122 || defined __arm__ || defined __powerpc__ || defined __amd64__ \
17123 || defined __ia64__ || defined __sh__
17126 # error "setjmp not known to work on this arch"
17137 if ac_fn_c_try_cpp
"$LINENO"; then :
17138 $as_echo "#define GC_SETJMP_WORKS 1" >>confdefs.h
17141 rm -f conftest.err conftest.
$ac_ext
17146 if test x
$GCC = xyes
; then
17147 $as_echo "#define GC_SETJMP_WORKS 1" >>confdefs.h
17151 dragonfly | freebsd | netbsd | openbsd | irix6-5 | sol2
* )
17152 $as_echo "#define GC_SETJMP_WORKS 1" >>confdefs.h
17157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _setjmp" >&5
17158 $as_echo_n "checking for _setjmp... " >&6; }
17159 if test "${emacs_cv_func__setjmp+set}" = set; then :
17160 $as_echo_n "(cached) " >&6
17162 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17163 /* end confdefs.h. */
17164 #include <setjmp.h>
17166 # define _longjmp longjmp
17179 if ac_fn_c_try_link
"$LINENO"; then :
17180 emacs_cv_func__setjmp
=yes
17182 emacs_cv_func__setjmp
=no
17184 rm -f core conftest.err conftest.
$ac_objext \
17185 conftest
$ac_exeext conftest.
$ac_ext
17187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func__setjmp" >&5
17188 $as_echo "$emacs_cv_func__setjmp" >&6; }
17189 if test $emacs_cv_func__setjmp = yes; then
17191 $as_echo "#define HAVE__SETJMP 1" >>confdefs.h
17194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
17195 $as_echo_n "checking for sigsetjmp... " >&6; }
17196 if test "${emacs_cv_func_sigsetjmp+set}" = set; then :
17197 $as_echo_n "(cached) " >&6
17199 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17200 /* end confdefs.h. */
17201 #include <setjmp.h>
17207 if (! sigsetjmp (j, 1))
17213 if ac_fn_c_try_link
"$LINENO"; then :
17214 emacs_cv_func_sigsetjmp
=yes
17216 emacs_cv_func_sigsetjmp
=no
17218 rm -f core conftest.err conftest.
$ac_objext \
17219 conftest
$ac_exeext conftest.
$ac_ext
17221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func_sigsetjmp" >&5
17222 $as_echo "$emacs_cv_func_sigsetjmp" >&6; }
17223 if test $emacs_cv_func_sigsetjmp = yes; then
17225 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
17233 $as_echo "#define TIOCSIGSEND TIOCSIGNAL" >>confdefs.h
17242 $as_echo "#define XOS_NEEDS_TIME_H 1" >>confdefs.h
17255 $as_echo "#define USG /**/" >>confdefs.h
17257 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17258 /* end confdefs.h. */
17261 # error "_AIX not defined"
17272 if ac_fn_c_try_cpp
"$LINENO"; then :
17276 $as_echo "#define _AIX /**/" >>confdefs.h
17279 rm -f conftest.err conftest.
$ac_ext
17284 $as_echo "#define CYGWIN 1" >>confdefs.h
17290 $as_echo "#define DARWIN_OS /**/" >>confdefs.h
17294 gnu-linux | gnu-kfreebsd
)
17295 $as_echo "#define USG /**/" >>confdefs.h
17298 $as_echo "#define GNU_LINUX /**/" >>confdefs.h
17303 $as_echo "#define USG /**/" >>confdefs.h
17306 $as_echo "#define HPUX /**/" >>confdefs.h
17311 $as_echo "#define USG /**/" >>confdefs.h
17313 $as_echo "#define USG5_4 /**/" >>confdefs.h
17316 $as_echo "#define IRIX6_5 /**/" >>confdefs.h
17321 $as_echo "#define DOS_NT /**/" >>confdefs.h
17324 $as_echo "#define WINDOWSNT 1" >>confdefs.h
17326 if test "x$ac_enable_checking" != "x" ; then
17328 $as_echo "#define EMACSDEBUG 1" >>confdefs.h
17334 $as_echo "#define USG /**/" >>confdefs.h
17336 $as_echo "#define USG5_4 /**/" >>confdefs.h
17339 $as_echo "#define SOLARIS2 /**/" >>confdefs.h
17344 $as_echo "#define USG /**/" >>confdefs.h
17346 $as_echo "#define USG5_4 /**/" >>confdefs.h
17351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable FIONREAD" >&5
17352 $as_echo_n "checking for usable FIONREAD... " >&6; }
17353 if test "${emacs_cv_usable_FIONREAD+set}" = set; then :
17354 $as_echo_n "(cached) " >&6
17358 emacs_cv_usable_FIONREAD
=no
17362 emacs_cv_usable_FIONREAD
=yes
17366 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17367 /* end confdefs.h. */
17368 #include <sys/types.h>
17369 #include <sys/ioctl.h>
17371 # include <sys/filio.h>
17377 int foo = ioctl (0, FIONREAD, &foo);
17382 if ac_fn_c_try_compile
"$LINENO"; then :
17383 emacs_cv_usable_FIONREAD
=yes
17385 emacs_cv_usable_FIONREAD
=no
17387 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_usable_FIONREAD" >&5
17392 $as_echo "$emacs_cv_usable_FIONREAD" >&6; }
17393 if test $emacs_cv_usable_FIONREAD = yes; then
17395 $as_echo "#define USABLE_FIONREAD 1" >>confdefs.h
17398 if test $emacs_broken_SIGIO = no
; then
17399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable SIGIO" >&5
17400 $as_echo_n "checking for usable SIGIO... " >&6; }
17401 if test "${emacs_cv_usable_SIGIO+set}" = set; then :
17402 $as_echo_n "(cached) " >&6
17404 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17405 /* end confdefs.h. */
17407 #include <signal.h>
17412 int foo = SIGIO | F_SETFL | FASYNC;
17417 if ac_fn_c_try_compile
"$LINENO"; then :
17418 emacs_cv_usable_SIGIO
=yes
17420 emacs_cv_usable_SIGIO
=no
17422 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_usable_SIGIO" >&5
17425 $as_echo "$emacs_cv_usable_SIGIO" >&6; }
17426 if test $emacs_cv_usable_SIGIO = yes; then
17428 $as_echo "#define USABLE_SIGIO 1" >>confdefs.h
17438 $as_echo "#define G_SLICE_ALWAYS_MALLOC 1" >>confdefs.h
17444 $as_echo "#define USG_SUBTTY_WORKS 1" >>confdefs.h
17450 $as_echo "#define PREFER_VSUSP 1" >>confdefs.h
17456 $as_echo "#define _STRUCTURED_PROC 1" >>confdefs.h
17461 # Set up the CFLAGS for real compilation, so we can substitute it.
17462 CFLAGS
="$REAL_CFLAGS"
17463 CPPFLAGS
="$REAL_CPPFLAGS"
17465 ## Hack to detect a buggy GCC version.
17466 if test "x$GCC" = xyes \
17467 && test x
"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
17468 && test x
"`echo $CFLAGS | grep '\-O[23]'`" != x \
17469 && test x
"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x
; then
17470 as_fn_error
"GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
17473 version
=$PACKAGE_VERSION
17475 copyright
="Copyright (C) 2013 Free Software Foundation, Inc."
17477 cat >>confdefs.h
<<_ACEOF
17478 #define COPYRIGHT "$copyright"
17483 ### Specify what sort of things we'll be editing into Makefile and config.h.
17484 ### Use configuration here uncanonicalized to avoid exceeding size limits.
17510 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
17511 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
17512 ## end of LIBX_BASE, but nothing ever set it.
17517 ## Used in lwlib/Makefile.in.
17526 if test -n "${term_header}"; then
17528 cat >>confdefs.h
<<_ACEOF
17529 #define TERM_HEADER "${term_header}"
17535 cat >>confdefs.h
<<_ACEOF
17536 #define EMACS_CONFIGURATION "${canonical}"
17540 cat >>confdefs.h
<<_ACEOF
17541 #define EMACS_CONFIG_OPTIONS "${emacs_config_options}"
17548 $as_echo "#define config_opsysfile <ms-w32.h>" >>confdefs.h
17556 if test "${HAVE_X_WINDOWS}" = "yes" ; then
17558 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
17561 XOBJ
="xterm.o xfns.o xselect.o xrdb.o xsmfns.o xsettings.o"
17563 if test "$HAVE_XFT" = "yes"; then
17564 FONT_OBJ
="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
17565 elif test "$HAVE_FREETYPE" = "yes"; then
17566 FONT_OBJ
="$FONT_OBJ ftfont.o ftxfont.o"
17576 if test "${USE_X_TOOLKIT}" != "none" ; then
17577 WIDGET_OBJ
=widget.o
17579 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
17581 if test "${USE_X_TOOLKIT}" = "LUCID"; then
17583 $as_echo "#define USE_LUCID 1" >>confdefs.h
17585 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
17587 $as_echo "#define USE_MOTIF 1" >>confdefs.h
17592 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
17593 MOTIF_LIBW
="$MOTIF_LIBW -lXpm"
17597 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
17598 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
17599 MOTIF_LIBW
="MOTIF_LIBW -lXimp"
17603 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
17604 MOTIF_LIBW
="$MOTIF_LIBW -li18n"
17607 MOTIF_LIBW
="$MOTIF_LIBW $LIBXP"
17613 case "$USE_X_TOOLKIT" in
17614 MOTIF
) TOOLKIT_LIBW
="$MOTIF_LIBW" ;;
17615 LUCID
) TOOLKIT_LIBW
="$LUCID_LIBW" ;;
17616 none
) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW
="$GTK_LIBS" ;;
17620 if test "${opsys}" != "mingw32"; then
17621 if test "$USE_X_TOOLKIT" = "none"; then
17622 LIBXT_OTHER
="\$(LIBXSM)"
17623 OLDXMENU_TARGET
="really-oldXMenu"
17625 LIBXT_OTHER
="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
17626 OLDXMENU_TARGET
="really-lwlib"
17631 ## The X Menu stuff is present in the X10 distribution, but missing
17632 ## from X11. If we have X10, just use the installed library;
17633 ## otherwise, use our own copy.
17634 if test "${HAVE_X11}" = "yes" ; then
17636 $as_echo "#define HAVE_X11 1" >>confdefs.h
17639 if test "$USE_X_TOOLKIT" = "none"; then
17640 OLDXMENU
="\${oldXMenudir}/libXMenu11.a"
17642 OLDXMENU
="\${lwlibdir}/liblw.a"
17644 LIBXMENU
="\$(OLDXMENU)"
17645 LIBX_OTHER
="\$(LIBXT) \$(LIBX_EXTRA)"
17646 OLDXMENU_DEPS
="\${OLDXMENU} ../src/\${OLDXMENU}"
17648 ## For a syntactically valid Makefile; not actually used for anything.
17649 ## See comments in src/Makefile.in.
17651 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
17652 if test "${HAVE_X_WINDOWS}" = "yes"; then
17661 if test "$HAVE_GTK" = "yes" ||
test "$HAVE_MENUS" != "yes"; then
17674 if test "${HAVE_MENUS}" = "yes" ; then
17676 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
17680 if test "${GNU_MALLOC}" = "yes" ; then
17682 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
17687 if test "${REL_ALLOC}" = "yes" ; then
17689 $as_echo "#define REL_ALLOC 1" >>confdefs.h
17692 test "$system_malloc" != "yes" && RALLOC_OBJ
=ralloc.o
17696 if test "$opsys" = "cygwin"; then
17697 CYGWIN_OBJ
="sheap.o cygw32.o"
17698 ## Cygwin differs because of its unexec().
17700 POST_ALLOC_OBJ
=lastfile.o
17701 elif test "$opsys" = "mingw32"; then
17704 POST_ALLOC_OBJ
=lastfile.o
17707 PRE_ALLOC_OBJ
=lastfile.o
17716 # Configure gnulib. Although this does not affect CFLAGS or LIBS permanently.
17717 # it temporarily reverts them to their pre-pkg-config values,
17718 # because gnulib needs to work with both src (which uses the
17719 # pkg-config stuff) and lib-src (which does not). For example, gnulib
17720 # may need to determine whether LIB_CLOCK_GETTIME should contain -lrt,
17721 # and it therefore needs to run in an environment where LIBS does not
17722 # already contain -lrt merely because 'pkg-config --libs' printed '-lrt'
17723 # for some package unrelated to lib-src.
17724 SAVE_CFLAGS
=$CFLAGS
17726 CFLAGS
=$pre_PKG_CONFIG_CFLAGS
17727 LIBS
="$LIB_PTHREAD $pre_PKG_CONFIG_LIBS"
17739 LIBC_FATAL_STDERR_
=1
17740 export LIBC_FATAL_STDERR_
17742 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
17743 # for constant arguments. Useless!
17744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
17745 $as_echo_n "checking for working alloca.h... " >&6; }
17746 if test "${ac_cv_working_alloca_h+set}" = set; then :
17747 $as_echo_n "(cached) " >&6
17749 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17750 /* end confdefs.h. */
17751 #include <alloca.h>
17755 char *p = (char *) alloca (2 * sizeof (int));
17761 if ac_fn_c_try_link
"$LINENO"; then :
17762 ac_cv_working_alloca_h
=yes
17764 ac_cv_working_alloca_h
=no
17766 rm -f core conftest.err conftest.
$ac_objext \
17767 conftest
$ac_exeext conftest.
$ac_ext
17769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
17770 $as_echo "$ac_cv_working_alloca_h" >&6; }
17771 if test $ac_cv_working_alloca_h = yes; then
17773 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
17777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
17778 $as_echo_n "checking for alloca... " >&6; }
17779 if test "${ac_cv_func_alloca_works+set}" = set; then :
17780 $as_echo_n "(cached) " >&6
17782 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17783 /* end confdefs.h. */
17785 # define alloca __builtin_alloca
17788 # include <malloc.h>
17789 # define alloca _alloca
17791 # ifdef HAVE_ALLOCA_H
17792 # include <alloca.h>
17797 # ifndef alloca /* predefined by HP cc +Olibcalls */
17808 char *p = (char *) alloca (1);
17814 if ac_fn_c_try_link
"$LINENO"; then :
17815 ac_cv_func_alloca_works
=yes
17817 ac_cv_func_alloca_works
=no
17819 rm -f core conftest.err conftest.
$ac_objext \
17820 conftest
$ac_exeext conftest.
$ac_ext
17822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
17823 $as_echo "$ac_cv_func_alloca_works" >&6; }
17825 if test $ac_cv_func_alloca_works = yes; then
17827 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
17830 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
17831 # that cause trouble. Some versions do not even contain alloca or
17832 # contain a buggy version. If you still want to use their alloca,
17833 # use ar to extract alloca.o from them instead of compiling alloca.c.
17839 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
17841 $as_echo "#define C_ALLOCA 1" >>confdefs.h
17844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 'alloca.c' needs Cray hooks" >&5
17845 $as_echo_n "checking whether 'alloca.c' needs Cray hooks... " >&6; }
17846 if test "${ac_cv_os_cray+set}" = set; then :
17847 $as_echo_n "(cached) " >&6
17849 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17850 /* end confdefs.h. */
17851 #if defined CRAY && ! defined CRAY2
17858 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17859 $EGREP "webecray" >/dev
/null
2>&1; then :
17867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
17868 $as_echo "$ac_cv_os_cray" >&6; }
17869 if test $ac_cv_os_cray = yes; then
17870 for ac_func
in _getb67 GETB67 getb67
; do
17871 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17872 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
17873 eval as_val
=\$
$as_ac_var
17874 if test "x$as_val" = x
""yes; then :
17876 cat >>confdefs.h
<<_ACEOF
17877 #define CRAY_STACKSEG_END $ac_func
17886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
17887 $as_echo_n "checking stack direction for C alloca... " >&6; }
17888 if test "${ac_cv_c_stack_direction+set}" = set; then :
17889 $as_echo_n "(cached) " >&6
17891 if test "$cross_compiling" = yes; then :
17892 ac_cv_c_stack_direction
=0
17894 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17895 /* end confdefs.h. */
17896 $ac_includes_default
17898 find_stack_direction (int *addr, int depth)
17900 int dir, dummy = 0;
17903 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
17904 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
17905 return dir + dummy;
17909 main (int argc, char **argv)
17911 return find_stack_direction (0, argc + !argv + 20) < 0;
17914 if ac_fn_c_try_run
"$LINENO"; then :
17915 ac_cv_c_stack_direction
=1
17917 ac_cv_c_stack_direction
=-1
17919 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17920 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
17925 $as_echo "$ac_cv_c_stack_direction" >&6; }
17926 cat >>confdefs.h
<<_ACEOF
17927 #define STACK_DIRECTION $ac_cv_c_stack_direction
17936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
17937 $as_echo_n "checking for unsigned long long int... " >&6; }
17938 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
17939 $as_echo_n "(cached) " >&6
17941 ac_cv_type_unsigned_long_long_int
=yes
17942 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
17943 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17944 /* end confdefs.h. */
17946 /* For now, do not test the preprocessor; as of 2007 there are too many
17947 implementations with broken preprocessors. Perhaps this can
17948 be revisited in 2012. In the meantime, code should not expect
17949 #if to work with literals wider than 32 bits. */
17950 /* Test literals. */
17951 long long int ll = 9223372036854775807ll;
17952 long long int nll = -9223372036854775807LL;
17953 unsigned long long int ull = 18446744073709551615ULL;
17954 /* Test constant expressions. */
17955 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
17957 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
17963 /* Test availability of runtime routines for shift and division. */
17964 long long int llmax = 9223372036854775807ll;
17965 unsigned long long int ullmax = 18446744073709551615ull;
17966 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
17967 | (llmax / ll) | (llmax % ll)
17968 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
17969 | (ullmax / ull) | (ullmax % ull));
17975 if ac_fn_c_try_link
"$LINENO"; then :
17978 ac_cv_type_unsigned_long_long_int
=no
17980 rm -f core conftest.err conftest.
$ac_objext \
17981 conftest
$ac_exeext conftest.
$ac_ext
17984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
17985 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
17986 if test $ac_cv_type_unsigned_long_long_int = yes; then
17988 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
17993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
17994 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
17995 if test "${ac_cv_c_bigendian+set}" = set; then :
17996 $as_echo_n "(cached) " >&6
17998 ac_cv_c_bigendian
=unknown
17999 # See if we're dealing with a universal compiler.
18000 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18001 /* end confdefs.h. */
18002 #ifndef __APPLE_CC__
18003 not a universal capable compiler
18008 if ac_fn_c_try_compile
"$LINENO"; then :
18010 # Check for potential -arch flags. It is not universal unless
18011 # there are at least two -arch flags with different values.
18014 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
18015 if test -n "$ac_prev"; then
18017 i?
86 | x86_64 | ppc | ppc64
)
18018 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
18021 ac_cv_c_bigendian
=universal
18027 elif test "x$ac_word" = "x-arch"; then
18032 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18033 if test $ac_cv_c_bigendian = unknown
; then
18034 # See if sys/param.h defines the BYTE_ORDER macro.
18035 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18036 /* end confdefs.h. */
18037 #include <sys/types.h>
18038 #include <sys/param.h>
18043 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
18044 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
18046 bogus endian macros
18053 if ac_fn_c_try_compile
"$LINENO"; then :
18054 # It does; now see whether it defined to BIG_ENDIAN or not.
18055 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18056 /* end confdefs.h. */
18057 #include <sys/types.h>
18058 #include <sys/param.h>
18063 #if BYTE_ORDER != BIG_ENDIAN
18071 if ac_fn_c_try_compile
"$LINENO"; then :
18072 ac_cv_c_bigendian
=yes
18074 ac_cv_c_bigendian
=no
18076 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18078 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18080 if test $ac_cv_c_bigendian = unknown
; then
18081 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
18082 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18083 /* end confdefs.h. */
18084 #include <limits.h>
18089 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
18090 bogus endian macros
18097 if ac_fn_c_try_compile
"$LINENO"; then :
18098 # It does; now see whether it defined to _BIG_ENDIAN or not.
18099 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18100 /* end confdefs.h. */
18101 #include <limits.h>
18106 #ifndef _BIG_ENDIAN
18114 if ac_fn_c_try_compile
"$LINENO"; then :
18115 ac_cv_c_bigendian
=yes
18117 ac_cv_c_bigendian
=no
18119 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18121 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18123 if test $ac_cv_c_bigendian = unknown
; then
18124 # Compile a test program.
18125 if test "$cross_compiling" = yes; then :
18126 # Try to guess by grepping values from an object file.
18127 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18128 /* end confdefs.h. */
18129 short int ascii_mm[] =
18130 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
18131 short int ascii_ii[] =
18132 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
18133 int use_ascii (int i) {
18134 return ascii_mm[i] + ascii_ii[i];
18136 short int ebcdic_ii[] =
18137 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
18138 short int ebcdic_mm[] =
18139 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
18140 int use_ebcdic (int i) {
18141 return ebcdic_mm[i] + ebcdic_ii[i];
18148 return use_ascii (foo) == use_ebcdic (foo);
18153 if ac_fn_c_try_compile
"$LINENO"; then :
18154 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
18155 ac_cv_c_bigendian
=yes
18157 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
18158 if test "$ac_cv_c_bigendian" = unknown
; then
18159 ac_cv_c_bigendian
=no
18161 # finding both strings is unlikely to happen, but who knows?
18162 ac_cv_c_bigendian
=unknown
18166 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18168 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18169 /* end confdefs.h. */
18170 $ac_includes_default
18175 /* Are we little or big endian? From Harbison&Steele. */
18179 char c[sizeof (long int)];
18182 return u.c[sizeof (long int) - 1] == 1;
18188 if ac_fn_c_try_run
"$LINENO"; then :
18189 ac_cv_c_bigendian
=no
18191 ac_cv_c_bigendian
=yes
18193 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18194 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
18200 $as_echo "$ac_cv_c_bigendian" >&6; }
18201 case $ac_cv_c_bigendian in #(
18203 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
18209 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
18213 as_fn_error
"unknown endianness
18214 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
18226 GNULIB_EUIDACCESS
=0;
18227 GNULIB_FACCESSAT
=0;
18230 GNULIB_FDATASYNC
=0;
18232 GNULIB_FTRUNCATE
=0;
18234 GNULIB_GETDOMAINNAME
=0;
18235 GNULIB_GETDTABLESIZE
=0;
18236 GNULIB_GETGROUPS
=0;
18237 GNULIB_GETHOSTNAME
=0;
18239 GNULIB_GETLOGIN_R
=0;
18240 GNULIB_GETPAGESIZE
=0;
18241 GNULIB_GETUSERSHELL
=0;
18242 GNULIB_GROUP_MEMBER
=0;
18254 GNULIB_READLINKAT
=0;
18256 GNULIB_SETHOSTNAME
=0;
18259 GNULIB_SYMLINKAT
=0;
18260 GNULIB_TTYNAME_R
=0;
18261 GNULIB_UNISTD_H_NONBLOCKING
=0;
18262 GNULIB_UNISTD_H_SIGPIPE
=0;
18277 HAVE_GETDTABLESIZE
=1;
18279 HAVE_GETHOSTNAME
=1;
18281 HAVE_GETPAGESIZE
=1;
18282 HAVE_GROUP_MEMBER
=1;
18292 HAVE_SETHOSTNAME
=1;
18298 HAVE_DECL_ENVIRON
=1;
18299 HAVE_DECL_FCHDIR
=1;
18300 HAVE_DECL_FDATASYNC
=1;
18301 HAVE_DECL_GETDOMAINNAME
=1;
18302 HAVE_DECL_GETLOGIN_R
=1;
18303 HAVE_DECL_GETPAGESIZE
=1;
18304 HAVE_DECL_GETUSERSHELL
=1;
18305 HAVE_DECL_SETHOSTNAME
=1;
18306 HAVE_DECL_TTYNAME_R
=1;
18308 HAVE_SYS_PARAM_H
=0;
18313 REPLACE_FCHOWNAT
=0;
18314 REPLACE_FTRUNCATE
=0;
18316 REPLACE_GETDOMAINNAME
=0;
18317 REPLACE_GETDTABLESIZE
=0;
18318 REPLACE_GETLOGIN_R
=0;
18319 REPLACE_GETGROUPS
=0;
18320 REPLACE_GETPAGESIZE
=0;
18329 REPLACE_READLINK
=0;
18333 REPLACE_TTYNAME_R
=0;
18335 REPLACE_UNLINKAT
=0;
18338 UNISTD_H_HAVE_WINSOCK2_H
=0;
18339 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
=0;
18345 GNULIB_REWINDDIR
=0;
18348 GNULIB_FDOPENDIR
=0;
18350 GNULIB_ALPHASORT
=0;
18356 HAVE_DECL_FDOPENDIR
=1;
18361 REPLACE_CLOSEDIR
=0;
18363 REPLACE_FDOPENDIR
=0;
18367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
18368 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
18369 if test "${gl_cv_have_include_next+set}" = set; then :
18370 $as_echo_n "(cached) " >&6
18372 rm -rf conftestd1a conftestd1b conftestd2
18373 mkdir conftestd1a conftestd1b conftestd2
18374 cat <<EOF > conftestd1a/conftest.h
18375 #define DEFINED_IN_CONFTESTD1
18376 #include_next <conftest.h>
18377 #ifdef DEFINED_IN_CONFTESTD2
18380 #error "include_next doesn't work"
18383 cat <<EOF > conftestd1b/conftest.h
18384 #define DEFINED_IN_CONFTESTD1
18386 #include_next <conftest.h>
18387 #ifdef DEFINED_IN_CONFTESTD2
18390 #error "include_next doesn't work"
18393 cat <<EOF > conftestd2/conftest.h
18394 #ifndef DEFINED_IN_CONFTESTD1
18395 #error "include_next test doesn't work"
18397 #define DEFINED_IN_CONFTESTD2
18399 gl_save_CPPFLAGS
="$CPPFLAGS"
18400 CPPFLAGS
="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
18401 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18402 /* end confdefs.h. */
18403 #include <conftest.h>
18405 if ac_fn_c_try_compile
"$LINENO"; then :
18406 gl_cv_have_include_next
=yes
18408 CPPFLAGS
="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
18409 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18410 /* end confdefs.h. */
18411 #include <conftest.h>
18413 if ac_fn_c_try_compile
"$LINENO"; then :
18414 gl_cv_have_include_next
=buggy
18416 gl_cv_have_include_next
=no
18418 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18421 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18422 CPPFLAGS
="$gl_save_CPPFLAGS"
18423 rm -rf conftestd1a conftestd1b conftestd2
18426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
18427 $as_echo "$gl_cv_have_include_next" >&6; }
18428 PRAGMA_SYSTEM_HEADER
=
18429 if test $gl_cv_have_include_next = yes; then
18430 INCLUDE_NEXT
=include_next
18431 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include_next
18432 if test -n "$GCC"; then
18433 PRAGMA_SYSTEM_HEADER
='#pragma GCC system_header'
18436 if test $gl_cv_have_include_next = buggy
; then
18437 INCLUDE_NEXT
=include
18438 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include_next
18440 INCLUDE_NEXT
=include
18441 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include
18447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
18448 $as_echo_n "checking whether system header files limit the line length... " >&6; }
18449 if test "${gl_cv_pragma_columns+set}" = set; then :
18450 $as_echo_n "(cached) " >&6
18452 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18453 /* end confdefs.h. */
18460 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18461 $EGREP "choke me" >/dev
/null
2>&1; then :
18462 gl_cv_pragma_columns
=yes
18464 gl_cv_pragma_columns
=no
18470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
18471 $as_echo "$gl_cv_pragma_columns" >&6; }
18472 if test $gl_cv_pragma_columns = yes; then
18473 PRAGMA_COLUMNS
="#pragma COLUMNS 10000"
18482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtold conforms to C99" >&5
18483 $as_echo_n "checking whether strtold conforms to C99... " >&6; }
18484 if test "${gl_cv_func_c99_strtold+set}" = set; then :
18485 $as_echo_n "(cached) " >&6
18487 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18488 /* end confdefs.h. */
18489 /* On HP-UX before 11.23, strtold returns a struct instead of
18490 long double. Reject implementations like that, by requiring
18491 compatibility with the C99 prototype. */
18492 #include <stdlib.h>
18493 static long double (*p) (char const *, char **) = strtold;
18495 test (char const *nptr, char **endptr)
18498 r = strtold (nptr, endptr);
18504 return test ("1.0", NULL) != 1 || p ("1.0", NULL) != 1;
18509 if ac_fn_c_try_link
"$LINENO"; then :
18510 gl_cv_func_c99_strtold
=yes
18512 gl_cv_func_c99_strtold
=no
18514 rm -f core conftest.err conftest.
$ac_objext \
18515 conftest
$ac_exeext conftest.
$ac_ext
18517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_c99_strtold" >&5
18518 $as_echo "$gl_cv_func_c99_strtold" >&6; }
18519 if test $gl_cv_func_c99_strtold = yes; then
18521 $as_echo "#define HAVE_C99_STRTOLD 1" >>confdefs.h
18532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if environ is properly declared" >&5
18533 $as_echo_n "checking if environ is properly declared... " >&6; }
18534 if test "${gt_cv_var_environ_declaration+set}" = set; then :
18535 $as_echo_n "(cached) " >&6
18538 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18539 /* end confdefs.h. */
18541 #include <unistd.h>
18543 /* mingw, BeOS, Haiku declare environ in <stdlib.h>, not in <unistd.h>. */
18544 #include <stdlib.h>
18546 extern struct { int foo; } environ;
18555 if ac_fn_c_try_compile
"$LINENO"; then :
18556 gt_cv_var_environ_declaration
=no
18558 gt_cv_var_environ_declaration
=yes
18560 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_var_environ_declaration" >&5
18564 $as_echo "$gt_cv_var_environ_declaration" >&6; }
18565 if test $gt_cv_var_environ_declaration = yes; then
18567 $as_echo "#define HAVE_ENVIRON_DECL 1" >>confdefs.h
18572 if test $gt_cv_var_environ_declaration != yes; then
18573 HAVE_DECL_ENVIRON
=0
18578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5
18579 $as_echo_n "checking for complete errno.h... " >&6; }
18580 if test "${gl_cv_header_errno_h_complete+set}" = set; then :
18581 $as_echo_n "(cached) " >&6
18584 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18585 /* end confdefs.h. */
18588 #if !defined ETXTBSY
18591 #if !defined ENOMSG
18597 #if !defined ENOLINK
18600 #if !defined EPROTO
18603 #if !defined EMULTIHOP
18606 #if !defined EBADMSG
18609 #if !defined EOVERFLOW
18612 #if !defined ENOTSUP
18615 #if !defined ENETRESET
18618 #if !defined ECONNABORTED
18621 #if !defined ESTALE
18624 #if !defined EDQUOT
18627 #if !defined ECANCELED
18630 #if !defined EOWNERDEAD
18633 #if !defined ENOTRECOVERABLE
18636 #if !defined EILSEQ
18641 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18642 $EGREP "booboo" >/dev
/null
2>&1; then :
18643 gl_cv_header_errno_h_complete
=no
18645 gl_cv_header_errno_h_complete
=yes
18651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5
18652 $as_echo "$gl_cv_header_errno_h_complete" >&6; }
18653 if test $gl_cv_header_errno_h_complete = yes; then
18664 if test $gl_cv_have_include_next = yes; then
18665 gl_cv_next_errno_h
='<'errno.h
'>'
18667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5
18668 $as_echo_n "checking absolute name of <errno.h>... " >&6; }
18669 if test "${gl_cv_next_errno_h+set}" = set; then :
18670 $as_echo_n "(cached) " >&6
18673 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18674 /* end confdefs.h. */
18679 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
18680 *) gl_absname_cpp
="$ac_cpp" ;;
18685 gl_dirsep_regex
='[/\\]'
18688 gl_dirsep_regex
='\/'
18691 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
18693 gl_header_literal_regex
=`echo 'errno.h' \
18694 | sed -e "$gl_make_literal_regex_sed"`
18695 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18696 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18701 gl_cv_next_errno_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18702 sed -n "$gl_absolute_header_sed"`'"'
18706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5
18707 $as_echo "$gl_cv_next_errno_h" >&6; }
18709 NEXT_ERRNO_H
=$gl_cv_next_errno_h
18711 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
18712 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18713 gl_next_as_first_directive
='<'errno.h
'>'
18715 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18716 gl_next_as_first_directive
=$gl_cv_next_errno_h
18718 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
=$gl_next_as_first_directive
18726 if test -n "$ERRNO_H"; then
18727 GL_GENERATE_ERRNO_H_TRUE
=
18728 GL_GENERATE_ERRNO_H_FALSE
='#'
18730 GL_GENERATE_ERRNO_H_TRUE
='#'
18731 GL_GENERATE_ERRNO_H_FALSE
=
18735 if test -n "$ERRNO_H"; then
18736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5
18737 $as_echo_n "checking for EMULTIHOP value... " >&6; }
18738 if test "${gl_cv_header_errno_h_EMULTIHOP+set}" = set; then :
18739 $as_echo_n "(cached) " >&6
18742 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18743 /* end confdefs.h. */
18751 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18752 $EGREP "yes" >/dev
/null
2>&1; then :
18753 gl_cv_header_errno_h_EMULTIHOP
=yes
18755 gl_cv_header_errno_h_EMULTIHOP
=no
18759 if test $gl_cv_header_errno_h_EMULTIHOP = no
; then
18760 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18761 /* end confdefs.h. */
18763 #define _XOPEN_SOURCE_EXTENDED 1
18770 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18771 $EGREP "yes" >/dev
/null
2>&1; then :
18772 gl_cv_header_errno_h_EMULTIHOP
=hidden
18776 if test $gl_cv_header_errno_h_EMULTIHOP = hidden
; then
18777 if ac_fn_c_compute_int
"$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP" "
18778 #define _XOPEN_SOURCE_EXTENDED 1
18780 /* The following two lines are a workaround against an autoconf-2.52 bug. */
18782 #include <stdlib.h>
18791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
18792 $as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
18793 case $gl_cv_header_errno_h_EMULTIHOP in
18795 EMULTIHOP_HIDDEN
=0; EMULTIHOP_VALUE
=
18798 EMULTIHOP_HIDDEN
=1; EMULTIHOP_VALUE
="$gl_cv_header_errno_h_EMULTIHOP"
18806 if test -n "$ERRNO_H"; then
18807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5
18808 $as_echo_n "checking for ENOLINK value... " >&6; }
18809 if test "${gl_cv_header_errno_h_ENOLINK+set}" = set; then :
18810 $as_echo_n "(cached) " >&6
18813 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18814 /* end confdefs.h. */
18822 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18823 $EGREP "yes" >/dev
/null
2>&1; then :
18824 gl_cv_header_errno_h_ENOLINK
=yes
18826 gl_cv_header_errno_h_ENOLINK
=no
18830 if test $gl_cv_header_errno_h_ENOLINK = no
; then
18831 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18832 /* end confdefs.h. */
18834 #define _XOPEN_SOURCE_EXTENDED 1
18841 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18842 $EGREP "yes" >/dev
/null
2>&1; then :
18843 gl_cv_header_errno_h_ENOLINK
=hidden
18847 if test $gl_cv_header_errno_h_ENOLINK = hidden
; then
18848 if ac_fn_c_compute_int
"$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK" "
18849 #define _XOPEN_SOURCE_EXTENDED 1
18851 /* The following two lines are a workaround against an autoconf-2.52 bug. */
18853 #include <stdlib.h>
18862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5
18863 $as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
18864 case $gl_cv_header_errno_h_ENOLINK in
18866 ENOLINK_HIDDEN
=0; ENOLINK_VALUE
=
18869 ENOLINK_HIDDEN
=1; ENOLINK_VALUE
="$gl_cv_header_errno_h_ENOLINK"
18877 if test -n "$ERRNO_H"; then
18878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5
18879 $as_echo_n "checking for EOVERFLOW value... " >&6; }
18880 if test "${gl_cv_header_errno_h_EOVERFLOW+set}" = set; then :
18881 $as_echo_n "(cached) " >&6
18884 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18885 /* end confdefs.h. */
18893 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18894 $EGREP "yes" >/dev
/null
2>&1; then :
18895 gl_cv_header_errno_h_EOVERFLOW
=yes
18897 gl_cv_header_errno_h_EOVERFLOW
=no
18901 if test $gl_cv_header_errno_h_EOVERFLOW = no
; then
18902 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18903 /* end confdefs.h. */
18905 #define _XOPEN_SOURCE_EXTENDED 1
18912 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18913 $EGREP "yes" >/dev
/null
2>&1; then :
18914 gl_cv_header_errno_h_EOVERFLOW
=hidden
18918 if test $gl_cv_header_errno_h_EOVERFLOW = hidden
; then
18919 if ac_fn_c_compute_int
"$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW" "
18920 #define _XOPEN_SOURCE_EXTENDED 1
18922 /* The following two lines are a workaround against an autoconf-2.52 bug. */
18924 #include <stdlib.h>
18933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
18934 $as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
18935 case $gl_cv_header_errno_h_EOVERFLOW in
18937 EOVERFLOW_HIDDEN
=0; EOVERFLOW_VALUE
=
18940 EOVERFLOW_HIDDEN
=1; EOVERFLOW_VALUE
="$gl_cv_header_errno_h_EOVERFLOW"
18957 GNULIB_NONBLOCKING
=0;
18969 ac_fn_c_check_type
"$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
18970 if test "x$ac_cv_type_mode_t" = x
""yes; then :
18974 cat >>confdefs.h
<<_ACEOF
18980 ac_fn_c_check_decl
"$LINENO" "fdatasync" "ac_cv_have_decl_fdatasync" "$ac_includes_default"
18981 if test "x$ac_cv_have_decl_fdatasync" = x
""yes; then :
18987 cat >>confdefs.h
<<_ACEOF
18988 #define HAVE_DECL_FDATASYNC $ac_have_decl
18993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_dm_mode in struct stat" >&5
18994 $as_echo_n "checking for st_dm_mode in struct stat... " >&6; }
18995 if test "${ac_cv_struct_st_dm_mode+set}" = set; then :
18996 $as_echo_n "(cached) " >&6
18998 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18999 /* end confdefs.h. */
19001 #include <sys/types.h>
19002 #include <sys/stat.h>
19006 struct stat s; s.st_dm_mode;
19011 if ac_fn_c_try_compile
"$LINENO"; then :
19012 ac_cv_struct_st_dm_mode
=yes
19014 ac_cv_struct_st_dm_mode
=no
19016 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_st_dm_mode" >&5
19019 $as_echo "$ac_cv_struct_st_dm_mode" >&6; }
19021 if test $ac_cv_struct_st_dm_mode = yes; then
19023 $as_echo "#define HAVE_ST_DM_MODE 1" >>confdefs.h
19028 ac_fn_c_check_decl
"$LINENO" "strmode" "ac_cv_have_decl_strmode" "$ac_includes_default"
19029 if test "x$ac_cv_have_decl_strmode" = x
""yes; then :
19035 cat >>confdefs.h
<<_ACEOF
19036 #define HAVE_DECL_STRMODE $ac_have_decl
19054 GNULIB_UTIMENSAT
=0;
19068 REPLACE_FUTIMENS
=0;
19074 REPLACE_UTIMENSAT
=0;
19077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
19078 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
19079 if test "${gl_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
19080 $as_echo_n "(cached) " >&6
19082 rm -f conftest.sym conftest.
file
19083 echo >conftest.
file
19084 if test "$as_ln_s" = "ln -s" && ln -s conftest.
file conftest.sym
; then
19085 if test "$cross_compiling" = yes; then :
19087 # Guess yes on glibc systems.
19088 *-gnu*) gl_cv_func_lstat_dereferences_slashed_symlink
="guessing yes" ;;
19089 # If we don't know, assume the worst.
19090 *) gl_cv_func_lstat_dereferences_slashed_symlink
="guessing no" ;;
19094 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19095 /* end confdefs.h. */
19096 $ac_includes_default
19101 /* Linux will dereference the symlink and fail, as required by
19102 POSIX. That is better in the sense that it means we will not
19103 have to compile and use the lstat wrapper. */
19104 return lstat ("conftest.sym/", &sbuf) == 0;
19110 if ac_fn_c_try_run
"$LINENO"; then :
19111 gl_cv_func_lstat_dereferences_slashed_symlink
=yes
19113 gl_cv_func_lstat_dereferences_slashed_symlink
=no
19115 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19116 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19120 # If the 'ln -s' command failed, then we probably don't even
19121 # have an lstat function.
19122 gl_cv_func_lstat_dereferences_slashed_symlink
="guessing no"
19124 rm -f conftest.sym conftest.
file
19127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
19128 $as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
19129 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
19132 cat >>confdefs.h
<<_ACEOF
19133 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
19146 GNULIB_CALLOC_POSIX
=0;
19147 GNULIB_CANONICALIZE_FILE_NAME
=0;
19148 GNULIB_GETLOADAVG
=0;
19149 GNULIB_GETSUBOPT
=0;
19151 GNULIB_MALLOC_POSIX
=0;
19155 GNULIB_MKOSTEMPS
=0;
19158 GNULIB_POSIX_OPENPT
=0;
19160 GNULIB_PTSNAME_R
=0;
19164 GNULIB_REALLOC_POSIX
=0;
19167 GNULIB_SECURE_GETENV
=0;
19172 GNULIB_SYSTEM_POSIX
=0;
19178 HAVE_CANONICALIZE_FILE_NAME
=1;
19179 HAVE_DECL_GETLOADAVG
=1;
19187 HAVE_POSIX_OPENPT
=1;
19195 HAVE_SECURE_GETENV
=1;
19197 HAVE_DECL_SETENV
=1;
19201 HAVE_STRUCT_RANDOM_DATA
=1;
19202 HAVE_SYS_LOADAVG_H
=0;
19204 HAVE_DECL_UNSETENV
=1;
19206 REPLACE_CANONICALIZE_FILE_NAME
=0;
19211 REPLACE_PTSNAME_R
=0;
19213 REPLACE_RANDOM_R
=0;
19215 REPLACE_REALPATH
=0;
19218 REPLACE_UNSETENV
=0;
19236 if test $gl_cv_have_include_next = yes; then
19237 gl_cv_next_getopt_h
='<'getopt.h
'>'
19239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
19240 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
19241 if test "${gl_cv_next_getopt_h+set}" = set; then :
19242 $as_echo_n "(cached) " >&6
19245 if test $ac_cv_header_getopt_h = yes; then
19248 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19249 /* end confdefs.h. */
19250 #include <getopt.h>
19254 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
19255 *) gl_absname_cpp
="$ac_cpp" ;;
19260 gl_dirsep_regex
='[/\\]'
19263 gl_dirsep_regex
='\/'
19266 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
19268 gl_header_literal_regex
=`echo 'getopt.h' \
19269 | sed -e "$gl_make_literal_regex_sed"`
19270 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19271 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19276 gl_cv_next_getopt_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19277 sed -n "$gl_absolute_header_sed"`'"'
19279 gl_cv_next_getopt_h
='<'getopt.h
'>'
19284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
19285 $as_echo "$gl_cv_next_getopt_h" >&6; }
19287 NEXT_GETOPT_H
=$gl_cv_next_getopt_h
19289 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
19290 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19291 gl_next_as_first_directive
='<'getopt.h
'>'
19293 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19294 gl_next_as_first_directive
=$gl_cv_next_getopt_h
19296 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
=$gl_next_as_first_directive
19301 if test $ac_cv_header_getopt_h = yes; then
19310 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
19311 for ac_header
in getopt.h
19313 ac_fn_c_check_header_mongrel
"$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
19314 if test "x$ac_cv_header_getopt_h" = x
""yes; then :
19315 cat >>confdefs.h
<<_ACEOF
19316 #define HAVE_GETOPT_H 1
19320 gl_replace_getopt
=yes
19327 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
19328 for ac_func
in getopt_long_only
19330 ac_fn_c_check_func
"$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
19331 if test "x$ac_cv_func_getopt_long_only" = x
""yes; then :
19332 cat >>confdefs.h
<<_ACEOF
19333 #define HAVE_GETOPT_LONG_ONLY 1
19337 gl_replace_getopt
=yes
19343 if test -z "$gl_replace_getopt"; then
19344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
19345 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
19346 if test "${gl_cv_func_getopt_posix+set}" = set; then :
19347 $as_echo_n "(cached) " >&6
19350 if test $cross_compiling = no
; then
19351 if test "$cross_compiling" = yes; then :
19352 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19353 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19354 as_fn_error
"cannot run test program while cross compiling
19355 See \`config.log' for more details." "$LINENO" 5; }
19357 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19358 /* end confdefs.h. */
19360 #include <unistd.h>
19361 #include <stdlib.h>
19362 #include <string.h>
19367 static char program[] = "program";
19368 static char a[] = "-a";
19369 static char foo[] = "foo";
19370 static char bar[] = "bar";
19371 char *argv[] = { program, a, foo, bar, NULL };
19374 c = getopt (4, argv, "ab");
19377 c = getopt (4, argv, "ab");
19380 if (!(optind == 2))
19386 if ac_fn_c_try_run
"$LINENO"; then :
19387 gl_cv_func_getopt_posix
=maybe
19389 gl_cv_func_getopt_posix
=no
19391 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19392 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19395 if test $gl_cv_func_getopt_posix = maybe
; then
19396 if test "$cross_compiling" = yes; then :
19397 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19398 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19399 as_fn_error
"cannot run test program while cross compiling
19400 See \`config.log' for more details." "$LINENO" 5; }
19402 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19403 /* end confdefs.h. */
19405 #include <unistd.h>
19406 #include <stdlib.h>
19407 #include <string.h>
19412 static char program[] = "program";
19413 static char donald[] = "donald";
19414 static char p[] = "-p";
19415 static char billy[] = "billy";
19416 static char duck[] = "duck";
19417 static char a[] = "-a";
19418 static char bar[] = "bar";
19419 char *argv[] = { program, donald, p, billy, duck, a, bar, NULL };
19422 c = getopt (7, argv, "+abp:q:");
19425 if (!(strcmp (argv[0], "program") == 0))
19427 if (!(strcmp (argv[1], "donald") == 0))
19429 if (!(strcmp (argv[2], "-p") == 0))
19431 if (!(strcmp (argv[3], "billy") == 0))
19433 if (!(strcmp (argv[4], "duck") == 0))
19435 if (!(strcmp (argv[5], "-a") == 0))
19437 if (!(strcmp (argv[6], "bar") == 0))
19439 if (!(optind == 1))
19445 if ac_fn_c_try_run
"$LINENO"; then :
19446 gl_cv_func_getopt_posix
=maybe
19448 gl_cv_func_getopt_posix
=no
19450 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19451 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19455 if test $gl_cv_func_getopt_posix = maybe
; then
19456 if test "$cross_compiling" = yes; then :
19457 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19458 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19459 as_fn_error
"cannot run test program while cross compiling
19460 See \`config.log' for more details." "$LINENO" 5; }
19462 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19463 /* end confdefs.h. */
19465 #include <unistd.h>
19466 #include <stdlib.h>
19467 #include <string.h>
19472 static char program[] = "program";
19473 static char ab[] = "-ab";
19474 char *argv[3] = { program, ab, NULL };
19475 if (getopt (2, argv, "ab:") != 'a')
19477 if (getopt (2, argv, "ab:") != '?')
19487 if ac_fn_c_try_run
"$LINENO"; then :
19488 gl_cv_func_getopt_posix
=yes
19490 gl_cv_func_getopt_posix
=no
19492 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19493 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19499 darwin
* | aix
* | mingw
*) gl_cv_func_getopt_posix
="guessing no";;
19500 *) gl_cv_func_getopt_posix
="guessing yes";;
19505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
19506 $as_echo "$gl_cv_func_getopt_posix" >&6; }
19507 case "$gl_cv_func_getopt_posix" in
19508 *no
) gl_replace_getopt
=yes ;;
19512 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
19513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
19514 $as_echo_n "checking for working GNU getopt function... " >&6; }
19515 if test "${gl_cv_func_getopt_gnu+set}" = set; then :
19516 $as_echo_n "(cached) " >&6
19518 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
19519 # optstring is necessary for programs like m4 that have POSIX-mandated
19520 # semantics for supporting options interspersed with files.
19521 # Also, since getopt_long is a GNU extension, we require optind=0.
19522 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
19523 # so take care to revert to the correct (non-)export state.
19524 gl_awk_probe
='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
19525 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
19526 xx
) gl_had_POSIXLY_CORRECT
=exported
;;
19527 x
) gl_had_POSIXLY_CORRECT
=yes ;;
19528 *) gl_had_POSIXLY_CORRECT
= ;;
19531 export POSIXLY_CORRECT
19532 if test "$cross_compiling" = yes; then :
19533 gl_cv_func_getopt_gnu
="guessing no"
19536 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19537 /* end confdefs.h. */
19538 #include <getopt.h>
19539 #include <stddef.h>
19540 #include <string.h>
19542 #include <stdlib.h>
19543 #if defined __MACH__ && defined __APPLE__
19544 /* Avoid a crash on Mac OS X. */
19545 #include <mach/mach.h>
19546 #include <mach/mach_error.h>
19547 #include <mach/thread_status.h>
19548 #include <mach/exception.h>
19549 #include <mach/task.h>
19550 #include <pthread.h>
19551 /* The exception port on which our thread listens. */
19552 static mach_port_t our_exception_port;
19553 /* The main function of the thread listening for exceptions of type
19556 mach_exception_thread (void *arg)
19558 /* Buffer for a message to be received. */
19560 mach_msg_header_t head;
19561 mach_msg_body_t msgh_body;
19564 mach_msg_return_t retval;
19565 /* Wait for a message on the exception port. */
19566 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
19567 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
19568 if (retval != MACH_MSG_SUCCESS)
19573 nocrash_init (void)
19575 mach_port_t self = mach_task_self ();
19576 /* Allocate a port on which the thread shall listen for exceptions. */
19577 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
19579 /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
19580 if (mach_port_insert_right (self, our_exception_port, our_exception_port,
19581 MACH_MSG_TYPE_MAKE_SEND)
19583 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
19585 exception_mask_t mask = EXC_MASK_BAD_ACCESS;
19586 /* Create the thread listening on the exception port. */
19587 pthread_attr_t attr;
19589 if (pthread_attr_init (&attr) == 0
19590 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
19591 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
19592 pthread_attr_destroy (&attr);
19593 /* Replace the exception port info for these exceptions with our own.
19594 Note that we replace the exception port for the entire task, not only
19595 for a particular thread. This has the effect that when our exception
19596 port gets the message, the thread specific exception port has already
19597 been asked, and we don't need to bother about it.
19598 See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
19599 task_set_exception_ports (self, mask, our_exception_port,
19600 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
19605 #elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
19606 /* Avoid a crash on native Windows. */
19607 #define WIN32_LEAN_AND_MEAN
19608 #include <windows.h>
19609 #include <winerror.h>
19611 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
19613 switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
19615 case EXCEPTION_ACCESS_VIOLATION:
19616 case EXCEPTION_IN_PAGE_ERROR:
19617 case EXCEPTION_STACK_OVERFLOW:
19618 case EXCEPTION_GUARD_PAGE:
19619 case EXCEPTION_PRIV_INSTRUCTION:
19620 case EXCEPTION_ILLEGAL_INSTRUCTION:
19621 case EXCEPTION_DATATYPE_MISALIGNMENT:
19622 case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
19623 case EXCEPTION_NONCONTINUABLE_EXCEPTION:
19626 return EXCEPTION_CONTINUE_SEARCH;
19629 nocrash_init (void)
19631 SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
19634 /* Avoid a crash on POSIX systems. */
19635 #include <signal.h>
19636 /* A POSIX signal handler. */
19638 exception_handler (int sig)
19643 nocrash_init (void)
19646 signal (SIGSEGV, exception_handler);
19649 signal (SIGBUS, exception_handler);
19663 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
19664 and fails on Mac OS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
19665 OSF/1 5.1, Solaris 10. */
19667 static char conftest[] = "conftest";
19668 static char plus[] = "-+";
19669 char *argv[3] = { conftest, plus, NULL };
19671 if (getopt (2, argv, "+a") != '?')
19674 /* This code succeeds on glibc 2.8, mingw,
19675 and fails on Mac OS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
19676 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
19678 static char program[] = "program";
19679 static char p[] = "-p";
19680 static char foo[] = "foo";
19681 static char bar[] = "bar";
19682 char *argv[] = { program, p, foo, bar, NULL };
19685 if (getopt (4, argv, "p::") != 'p')
19687 else if (optarg != NULL)
19689 else if (getopt (4, argv, "p::") != -1)
19691 else if (optind != 2)
19694 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
19696 static char program[] = "program";
19697 static char foo[] = "foo";
19698 static char p[] = "-p";
19699 char *argv[] = { program, foo, p, NULL };
19701 if (getopt (3, argv, "-p") != 1)
19703 else if (getopt (3, argv, "-p") != 'p')
19706 /* This code fails on glibc 2.11. */
19708 static char program[] = "program";
19709 static char b[] = "-b";
19710 static char a[] = "-a";
19711 char *argv[] = { program, b, a, NULL };
19712 optind = opterr = 0;
19713 if (getopt (3, argv, "+:a:b") != 'b')
19715 else if (getopt (3, argv, "+:a:b") != ':')
19718 /* This code dumps core on glibc 2.14. */
19720 static char program[] = "program";
19721 static char w[] = "-W";
19722 static char dummy[] = "dummy";
19723 char *argv[] = { program, w, dummy, NULL };
19724 optind = opterr = 1;
19725 if (getopt (3, argv, "W;") != 'W')
19734 if ac_fn_c_try_run
"$LINENO"; then :
19735 gl_cv_func_getopt_gnu
=yes
19737 gl_cv_func_getopt_gnu
=no
19739 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19740 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19743 case $gl_had_POSIXLY_CORRECT in
19745 yes) { POSIXLY_CORRECT
=; unset POSIXLY_CORRECT
;}; POSIXLY_CORRECT
=1 ;;
19746 *) { POSIXLY_CORRECT
=; unset POSIXLY_CORRECT
;} ;;
19750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
19751 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
19752 if test "$gl_cv_func_getopt_gnu" != yes; then
19753 gl_replace_getopt
=yes
19755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt_long function" >&5
19756 $as_echo_n "checking for working GNU getopt_long function... " >&6; }
19757 if test "${gl_cv_func_getopt_long_gnu+set}" = set; then :
19758 $as_echo_n "(cached) " >&6
19760 if test "$cross_compiling" = yes; then :
19762 openbsd
*) gl_cv_func_getopt_long_gnu
="guessing no";;
19763 *) gl_cv_func_getopt_long_gnu
="guessing yes";;
19767 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19768 /* end confdefs.h. */
19769 #include <getopt.h>
19770 #include <stddef.h>
19771 #include <string.h>
19776 static const struct option long_options[] =
19778 { "xtremely-",no_argument, NULL, 1003 },
19779 { "xtra", no_argument, NULL, 1001 },
19780 { "xtreme", no_argument, NULL, 1002 },
19781 { "xtremely", no_argument, NULL, 1003 },
19782 { NULL, 0, NULL, 0 }
19784 /* This code fails on OpenBSD 5.0. */
19786 static char program[] = "program";
19787 static char xtremel[] = "--xtremel";
19788 char *argv[] = { program, xtremel, NULL };
19790 optind = 1; opterr = 0;
19791 if (getopt_long (2, argv, "", long_options, &option_index) != 1003)
19800 if ac_fn_c_try_run
"$LINENO"; then :
19801 gl_cv_func_getopt_long_gnu
=yes
19803 gl_cv_func_getopt_long_gnu
=no
19805 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19806 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_long_gnu" >&5
19812 $as_echo "$gl_cv_func_getopt_long_gnu" >&6; }
19813 case "$gl_cv_func_getopt_long_gnu" in
19815 *) gl_replace_getopt
=yes ;;
19826 if test -n "$gl_replace_getopt"; then
19830 if test $REPLACE_GETOPT = 1; then
19834 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
19840 ac_fn_c_check_decl
"$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
19841 if test "x$ac_cv_have_decl_getenv" = x
""yes; then :
19847 cat >>confdefs.h
<<_ACEOF
19848 #define HAVE_DECL_GETENV $ac_have_decl
19856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
19857 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
19858 if test "${ac_cv_c_restrict+set}" = set; then :
19859 $as_echo_n "(cached) " >&6
19861 ac_cv_c_restrict
=no
19862 # The order here caters to the fact that C++ does not require restrict.
19863 for ac_kw
in __restrict __restrict__ _Restrict restrict
; do
19864 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19865 /* end confdefs.h. */
19866 typedef int * int_ptr;
19867 int foo (int_ptr $ac_kw ip) {
19874 int * $ac_kw t = s;
19881 if ac_fn_c_try_compile
"$LINENO"; then :
19882 ac_cv_c_restrict
=$ac_kw
19884 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19885 test "$ac_cv_c_restrict" != no
&& break
19889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
19890 $as_echo "$ac_cv_c_restrict" >&6; }
19892 case $ac_cv_c_restrict in
19894 no
) $as_echo "#define restrict /**/" >>confdefs.h
19896 *) cat >>confdefs.h
<<_ACEOF
19897 #define restrict $ac_cv_c_restrict
19903 GNULIB_GETTIMEOFDAY
=0;
19904 HAVE_GETTIMEOFDAY
=1;
19905 HAVE_STRUCT_TIMEVAL
=1;
19907 REPLACE_GETTIMEOFDAY
=0;
19908 REPLACE_STRUCT_TIMEVAL
=0;
19925 if test $gl_cv_have_include_next = yes; then
19926 gl_cv_next_sys_time_h
='<'sys
/time.h
'>'
19928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/time.h>" >&5
19929 $as_echo_n "checking absolute name of <sys/time.h>... " >&6; }
19930 if test "${gl_cv_next_sys_time_h+set}" = set; then :
19931 $as_echo_n "(cached) " >&6
19934 if test $ac_cv_header_sys_time_h = yes; then
19937 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19938 /* end confdefs.h. */
19939 #include <sys/time.h>
19943 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
19944 *) gl_absname_cpp
="$ac_cpp" ;;
19949 gl_dirsep_regex
='[/\\]'
19952 gl_dirsep_regex
='\/'
19955 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
19957 gl_header_literal_regex
=`echo 'sys/time.h' \
19958 | sed -e "$gl_make_literal_regex_sed"`
19959 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19960 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19965 gl_cv_next_sys_time_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19966 sed -n "$gl_absolute_header_sed"`'"'
19968 gl_cv_next_sys_time_h
='<'sys
/time.h
'>'
19973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_time_h" >&5
19974 $as_echo "$gl_cv_next_sys_time_h" >&6; }
19976 NEXT_SYS_TIME_H
=$gl_cv_next_sys_time_h
19978 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
19979 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19980 gl_next_as_first_directive
='<'sys
/time.h
'>'
19982 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19983 gl_next_as_first_directive
=$gl_cv_next_sys_time_h
19985 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
=$gl_next_as_first_directive
19991 if test $ac_cv_header_sys_time_h != yes; then
19999 if test $ac_cv_header_sys_socket_h != yes; then
20000 for ac_header
in winsock2.h
20002 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
20003 if test "x$ac_cv_header_winsock2_h" = x
""yes; then :
20004 cat >>confdefs.h
<<_ACEOF
20005 #define HAVE_WINSOCK2_H 1
20013 if test "$ac_cv_header_winsock2_h" = yes; then
20015 UNISTD_H_HAVE_WINSOCK2_H
=1
20016 SYS_IOCTL_H_HAVE_WINSOCK2_H
=1
20022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
20023 $as_echo_n "checking for struct timeval... " >&6; }
20024 if test "${gl_cv_sys_struct_timeval+set}" = set; then :
20025 $as_echo_n "(cached) " >&6
20027 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20028 /* end confdefs.h. */
20029 #if HAVE_SYS_TIME_H
20030 #include <sys/time.h>
20033 #if HAVE_WINSOCK2_H
20034 # include <winsock2.h>
20040 static struct timeval x; x.tv_sec = x.tv_usec;
20045 if ac_fn_c_try_compile
"$LINENO"; then :
20046 gl_cv_sys_struct_timeval
=yes
20048 gl_cv_sys_struct_timeval
=no
20050 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval" >&5
20054 $as_echo "$gl_cv_sys_struct_timeval" >&6; }
20055 if test $gl_cv_sys_struct_timeval != yes; then
20056 HAVE_STRUCT_TIMEVAL
=0
20058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wide-enough struct timeval.tv_sec member" >&5
20059 $as_echo_n "checking for wide-enough struct timeval.tv_sec member... " >&6; }
20060 if test "${gl_cv_sys_struct_timeval_tv_sec+set}" = set; then :
20061 $as_echo_n "(cached) " >&6
20063 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20064 /* end confdefs.h. */
20065 #if HAVE_SYS_TIME_H
20066 #include <sys/time.h>
20069 #if HAVE_WINSOCK2_H
20070 # include <winsock2.h>
20076 static struct timeval x;
20077 typedef int verify_tv_sec_type[
20078 sizeof (time_t) <= sizeof x.tv_sec ? 1 : -1
20085 if ac_fn_c_try_compile
"$LINENO"; then :
20086 gl_cv_sys_struct_timeval_tv_sec
=yes
20088 gl_cv_sys_struct_timeval_tv_sec
=no
20090 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval_tv_sec" >&5
20094 $as_echo "$gl_cv_sys_struct_timeval_tv_sec" >&6; }
20095 if test $gl_cv_sys_struct_timeval_tv_sec != yes; then
20096 REPLACE_STRUCT_TIMEVAL
=1
20107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
20108 $as_echo_n "checking for long long int... " >&6; }
20109 if test "${ac_cv_type_long_long_int+set}" = set; then :
20110 $as_echo_n "(cached) " >&6
20112 ac_cv_type_long_long_int
=yes
20113 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
20114 ac_cv_type_long_long_int
=$ac_cv_type_unsigned_long_long_int
20115 if test $ac_cv_type_long_long_int = yes; then
20116 if test "$cross_compiling" = yes; then :
20119 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20120 /* end confdefs.h. */
20121 #include <limits.h>
20124 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
20125 # define LLONG_MAX (HALF - 1 + HALF)
20130 long long int n = 1;
20134 long long int m = n << i;
20137 if (LLONG_MAX / 2 < m)
20145 if ac_fn_c_try_run
"$LINENO"; then :
20148 ac_cv_type_long_long_int
=no
20150 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20151 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
20158 $as_echo "$ac_cv_type_long_long_int" >&6; }
20159 if test $ac_cv_type_long_long_int = yes; then
20161 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
20170 gl_cv_c_multiarch
=no
20171 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20172 /* end confdefs.h. */
20173 #ifndef __APPLE_CC__
20174 not a universal capable compiler
20179 if ac_fn_c_try_compile
"$LINENO"; then :
20183 for word
in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
20184 if test -n "$prev"; then
20186 i?
86 | x86_64 | ppc | ppc64
)
20187 if test -z "$arch" ||
test "$arch" = "$word"; then
20190 gl_cv_c_multiarch
=yes
20196 if test "x$word" = "x-arch"; then
20203 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20204 if test $gl_cv_c_multiarch = yes; then
20205 APPLE_UNIVERSAL_BUILD
=1
20207 APPLE_UNIVERSAL_BUILD
=0
20214 if test $ac_cv_type_long_long_int = yes; then
20215 HAVE_LONG_LONG_INT
=1
20217 HAVE_LONG_LONG_INT
=0
20221 if test $ac_cv_type_unsigned_long_long_int = yes; then
20222 HAVE_UNSIGNED_LONG_LONG_INT
=1
20224 HAVE_UNSIGNED_LONG_LONG_INT
=0
20229 if test $ac_cv_header_wchar_h = yes; then
20236 if test $ac_cv_header_inttypes_h = yes; then
20243 if test $ac_cv_header_sys_types_h = yes; then
20259 if test $gl_cv_have_include_next = yes; then
20260 gl_cv_next_stdint_h
='<'stdint.h
'>'
20262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
20263 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
20264 if test "${gl_cv_next_stdint_h+set}" = set; then :
20265 $as_echo_n "(cached) " >&6
20268 if test $ac_cv_header_stdint_h = yes; then
20271 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20272 /* end confdefs.h. */
20273 #include <stdint.h>
20277 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
20278 *) gl_absname_cpp
="$ac_cpp" ;;
20283 gl_dirsep_regex
='[/\\]'
20286 gl_dirsep_regex
='\/'
20289 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
20291 gl_header_literal_regex
=`echo 'stdint.h' \
20292 | sed -e "$gl_make_literal_regex_sed"`
20293 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
20294 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
20299 gl_cv_next_stdint_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20300 sed -n "$gl_absolute_header_sed"`'"'
20302 gl_cv_next_stdint_h
='<'stdint.h
'>'
20307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
20308 $as_echo "$gl_cv_next_stdint_h" >&6; }
20310 NEXT_STDINT_H
=$gl_cv_next_stdint_h
20312 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
20313 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20314 gl_next_as_first_directive
='<'stdint.h
'>'
20316 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20317 gl_next_as_first_directive
=$gl_cv_next_stdint_h
20319 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
=$gl_next_as_first_directive
20324 if test $ac_cv_header_stdint_h = yes; then
20331 if test $ac_cv_header_stdint_h = yes; then
20332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
20333 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
20334 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
20335 $as_echo_n "(cached) " >&6
20337 gl_cv_header_working_stdint_h
=no
20338 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20339 /* end confdefs.h. */
20342 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
20343 #include <stdint.h>
20344 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
20345 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
20346 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
20350 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20351 included before <wchar.h>. */
20352 #include <stddef.h>
20353 #include <signal.h>
20355 # include <stdio.h>
20357 # include <wchar.h>
20362 int8_t a1 = INT8_MAX;
20363 int8_t a1min = INT8_MIN;
20366 int16_t a2 = INT16_MAX;
20367 int16_t a2min = INT16_MIN;
20370 int32_t a3 = INT32_MAX;
20371 int32_t a3min = INT32_MIN;
20374 int64_t a4 = INT64_MAX;
20375 int64_t a4min = INT64_MIN;
20378 uint8_t b1 = UINT8_MAX;
20380 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
20383 uint16_t b2 = UINT16_MAX;
20386 uint32_t b3 = UINT32_MAX;
20389 uint64_t b4 = UINT64_MAX;
20391 int_least8_t c1 = INT8_C (0x7f);
20392 int_least8_t c1max = INT_LEAST8_MAX;
20393 int_least8_t c1min = INT_LEAST8_MIN;
20394 int_least16_t c2 = INT16_C (0x7fff);
20395 int_least16_t c2max = INT_LEAST16_MAX;
20396 int_least16_t c2min = INT_LEAST16_MIN;
20397 int_least32_t c3 = INT32_C (0x7fffffff);
20398 int_least32_t c3max = INT_LEAST32_MAX;
20399 int_least32_t c3min = INT_LEAST32_MIN;
20400 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
20401 int_least64_t c4max = INT_LEAST64_MAX;
20402 int_least64_t c4min = INT_LEAST64_MIN;
20403 uint_least8_t d1 = UINT8_C (0xff);
20404 uint_least8_t d1max = UINT_LEAST8_MAX;
20405 uint_least16_t d2 = UINT16_C (0xffff);
20406 uint_least16_t d2max = UINT_LEAST16_MAX;
20407 uint_least32_t d3 = UINT32_C (0xffffffff);
20408 uint_least32_t d3max = UINT_LEAST32_MAX;
20409 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
20410 uint_least64_t d4max = UINT_LEAST64_MAX;
20411 int_fast8_t e1 = INT_FAST8_MAX;
20412 int_fast8_t e1min = INT_FAST8_MIN;
20413 int_fast16_t e2 = INT_FAST16_MAX;
20414 int_fast16_t e2min = INT_FAST16_MIN;
20415 int_fast32_t e3 = INT_FAST32_MAX;
20416 int_fast32_t e3min = INT_FAST32_MIN;
20417 int_fast64_t e4 = INT_FAST64_MAX;
20418 int_fast64_t e4min = INT_FAST64_MIN;
20419 uint_fast8_t f1 = UINT_FAST8_MAX;
20420 uint_fast16_t f2 = UINT_FAST16_MAX;
20421 uint_fast32_t f3 = UINT_FAST32_MAX;
20422 uint_fast64_t f4 = UINT_FAST64_MAX;
20424 intptr_t g = INTPTR_MAX;
20425 intptr_t gmin = INTPTR_MIN;
20428 uintptr_t h = UINTPTR_MAX;
20430 intmax_t i = INTMAX_MAX;
20431 uintmax_t j = UINTMAX_MAX;
20433 #include <limits.h> /* for CHAR_BIT */
20434 #define TYPE_MINIMUM(t) \
20435 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
20436 #define TYPE_MAXIMUM(t) \
20437 ((t) ((t) 0 < (t) -1 \
20439 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
20442 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
20443 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
20445 /* Detect bug in FreeBSD 6.0 / ia64. */
20446 int check_SIG_ATOMIC:
20447 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
20448 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
20450 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
20452 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
20453 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
20455 /* Detect bug in mingw. */
20457 WINT_MIN == TYPE_MINIMUM (wint_t)
20458 && WINT_MAX == TYPE_MAXIMUM (wint_t)
20461 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
20463 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
20464 int check_UINT16_C:
20465 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
20467 /* Detect bugs in OpenBSD 3.9 stdint.h. */
20469 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
20472 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
20475 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
20478 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
20480 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
20481 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
20482 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
20483 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
20484 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
20485 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
20486 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
20487 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
20488 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
20489 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
20490 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
20501 if ac_fn_c_try_compile
"$LINENO"; then :
20502 if test "$cross_compiling" = yes; then :
20503 gl_cv_header_working_stdint_h
=yes
20506 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20507 /* end confdefs.h. */
20510 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
20511 #include <stdint.h>
20514 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20515 included before <wchar.h>. */
20516 #include <stddef.h>
20517 #include <signal.h>
20519 # include <stdio.h>
20521 # include <wchar.h>
20526 #include <string.h>
20527 #define MVAL(macro) MVAL1(macro)
20528 #define MVAL1(expression) #expression
20529 static const char *macro_values[] =
20563 for (mv = macro_values; *mv != NULL; mv++)
20565 const char *value = *mv;
20566 /* Test whether it looks like a cast expression. */
20567 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
20568 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
20569 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
20570 || strncmp (value, "((int)"/*)*/, 6) == 0
20571 || strncmp (value, "((signed short)"/*)*/, 15) == 0
20572 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
20573 return mv - macro_values + 1;
20581 if ac_fn_c_try_run
"$LINENO"; then :
20582 gl_cv_header_working_stdint_h
=yes
20584 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20585 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20590 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
20594 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
20596 if test "$gl_cv_header_working_stdint_h" = yes; then
20599 for ac_header
in sys
/inttypes.h sys
/bitypes.h
20601 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20602 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20603 eval as_val
=\$
$as_ac_Header
20604 if test "x$as_val" = x
""yes; then :
20605 cat >>confdefs.h
<<_ACEOF
20606 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20613 if test $ac_cv_header_sys_inttypes_h = yes; then
20614 HAVE_SYS_INTTYPES_H
=1
20616 HAVE_SYS_INTTYPES_H
=0
20619 if test $ac_cv_header_sys_bitypes_h = yes; then
20620 HAVE_SYS_BITYPES_H
=1
20622 HAVE_SYS_BITYPES_H
=0
20628 if test $APPLE_UNIVERSAL_BUILD = 0; then
20631 for gltype
in ptrdiff_t size_t
; do
20632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
20633 $as_echo_n "checking for bit size of $gltype... " >&6; }
20634 if { as_var
=gl_cv_bitsizeof_
${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
20635 $as_echo_n "(cached) " >&6
20637 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
20638 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20639 included before <wchar.h>. */
20640 #include <stddef.h>
20641 #include <signal.h>
20643 # include <stdio.h>
20645 # include <wchar.h>
20648 #include <limits.h>"; then :
20654 eval gl_cv_bitsizeof_
${gltype}=\
$result
20657 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
20658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20659 $as_echo "$ac_res" >&6; }
20660 eval result
=\
$gl_cv_bitsizeof_${gltype}
20661 if test $result = unknown
; then
20664 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
20665 cat >>confdefs.h
<<_ACEOF
20666 #define BITSIZEOF_${GLTYPE} $result
20669 eval BITSIZEOF_
${GLTYPE}=\
$result
20676 for gltype
in sig_atomic_t wchar_t wint_t
; do
20677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
20678 $as_echo_n "checking for bit size of $gltype... " >&6; }
20679 if { as_var
=gl_cv_bitsizeof_
${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
20680 $as_echo_n "(cached) " >&6
20682 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
20683 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20684 included before <wchar.h>. */
20685 #include <stddef.h>
20686 #include <signal.h>
20688 # include <stdio.h>
20690 # include <wchar.h>
20693 #include <limits.h>"; then :
20699 eval gl_cv_bitsizeof_
${gltype}=\
$result
20702 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
20703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20704 $as_echo "$ac_res" >&6; }
20705 eval result
=\
$gl_cv_bitsizeof_${gltype}
20706 if test $result = unknown
; then
20709 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
20710 cat >>confdefs.h
<<_ACEOF
20711 #define BITSIZEOF_${GLTYPE} $result
20714 eval BITSIZEOF_
${GLTYPE}=\
$result
20720 for gltype
in sig_atomic_t wchar_t wint_t
; do
20721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
20722 $as_echo_n "checking whether $gltype is signed... " >&6; }
20723 if { as_var
=gl_cv_type_
${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
20724 $as_echo_n "(cached) " >&6
20726 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20727 /* end confdefs.h. */
20729 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20730 included before <wchar.h>. */
20731 #include <stddef.h>
20732 #include <signal.h>
20734 # include <stdio.h>
20736 # include <wchar.h>
20739 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
20748 if ac_fn_c_try_compile
"$LINENO"; then :
20753 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20754 eval gl_cv_type_
${gltype}_signed
=\
$result
20757 eval ac_res
=\
$gl_cv_type_${gltype}_signed
20758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20759 $as_echo "$ac_res" >&6; }
20760 eval result
=\
$gl_cv_type_${gltype}_signed
20761 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
20762 if test "$result" = yes; then
20763 cat >>confdefs.h
<<_ACEOF
20764 #define HAVE_SIGNED_${GLTYPE} 1
20767 eval HAVE_SIGNED_
${GLTYPE}=1
20769 eval HAVE_SIGNED_
${GLTYPE}=0
20774 gl_cv_type_ptrdiff_t_signed
=yes
20775 gl_cv_type_size_t_signed
=no
20776 if test $APPLE_UNIVERSAL_BUILD = 0; then
20779 for gltype
in ptrdiff_t size_t
; do
20780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
20781 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
20782 if { as_var
=gl_cv_type_
${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
20783 $as_echo_n "(cached) " >&6
20785 eval gl_cv_type_
${gltype}_suffix
=no
20786 eval result
=\
$gl_cv_type_${gltype}_signed
20787 if test "$result" = yes; then
20792 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
20794 '') gltype1
='int';;
20795 l
) gltype1
='long int';;
20796 ll
) gltype1
='long long int';;
20797 i64
) gltype1
='__int64';;
20798 u
) gltype1
='unsigned int';;
20799 ul
) gltype1
='unsigned long int';;
20800 ull
) gltype1
='unsigned long long int';;
20801 ui64
)gltype1
='unsigned __int64';;
20803 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20804 /* end confdefs.h. */
20806 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20807 included before <wchar.h>. */
20808 #include <stddef.h>
20809 #include <signal.h>
20811 # include <stdio.h>
20813 # include <wchar.h>
20816 extern $gltype foo;
20817 extern $gltype1 foo;
20826 if ac_fn_c_try_compile
"$LINENO"; then :
20827 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
20829 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20830 eval result
=\
$gl_cv_type_${gltype}_suffix
20831 test "$result" != no
&& break
20834 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
20835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20836 $as_echo "$ac_res" >&6; }
20837 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
20838 eval result
=\
$gl_cv_type_${gltype}_suffix
20839 test "$result" = no
&& result
=
20840 eval ${GLTYPE}_SUFFIX
=\
$result
20841 cat >>confdefs.h
<<_ACEOF
20842 #define ${GLTYPE}_SUFFIX $result
20851 for gltype
in sig_atomic_t wchar_t wint_t
; do
20852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
20853 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
20854 if { as_var
=gl_cv_type_
${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
20855 $as_echo_n "(cached) " >&6
20857 eval gl_cv_type_
${gltype}_suffix
=no
20858 eval result
=\
$gl_cv_type_${gltype}_signed
20859 if test "$result" = yes; then
20864 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
20866 '') gltype1
='int';;
20867 l
) gltype1
='long int';;
20868 ll
) gltype1
='long long int';;
20869 i64
) gltype1
='__int64';;
20870 u
) gltype1
='unsigned int';;
20871 ul
) gltype1
='unsigned long int';;
20872 ull
) gltype1
='unsigned long long int';;
20873 ui64
)gltype1
='unsigned __int64';;
20875 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20876 /* end confdefs.h. */
20878 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20879 included before <wchar.h>. */
20880 #include <stddef.h>
20881 #include <signal.h>
20883 # include <stdio.h>
20885 # include <wchar.h>
20888 extern $gltype foo;
20889 extern $gltype1 foo;
20898 if ac_fn_c_try_compile
"$LINENO"; then :
20899 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
20901 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20902 eval result
=\
$gl_cv_type_${gltype}_suffix
20903 test "$result" != no
&& break
20906 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
20907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20908 $as_echo "$ac_res" >&6; }
20909 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
20910 eval result
=\
$gl_cv_type_${gltype}_suffix
20911 test "$result" = no
&& result
=
20912 eval ${GLTYPE}_SUFFIX
=\
$result
20913 cat >>confdefs.h
<<_ACEOF
20914 #define ${GLTYPE}_SUFFIX $result
20921 if test $BITSIZEOF_WINT_T -lt 32; then
20922 BITSIZEOF_WINT_T
=32
20928 if test -n "$STDINT_H"; then
20929 GL_GENERATE_STDINT_H_TRUE
=
20930 GL_GENERATE_STDINT_H_FALSE
='#'
20932 GL_GENERATE_STDINT_H_TRUE
='#'
20933 GL_GENERATE_STDINT_H_FALSE
=
20942 GNULIB_STRTOIMAX
=0;
20943 GNULIB_STRTOUMAX
=0;
20944 HAVE_DECL_IMAXABS
=1;
20945 HAVE_DECL_IMAXDIV
=1;
20946 HAVE_DECL_STRTOIMAX
=1;
20947 HAVE_DECL_STRTOUMAX
=1;
20948 REPLACE_STRTOIMAX
=0;
20949 REPLACE_STRTOUMAX
=0;
20950 INT32_MAX_LT_INTMAX_MAX
=1;
20951 INT64_MAX_EQ_LONG_MAX
='defined _LP64';
20952 PRI_MACROS_BROKEN
=0;
20953 PRIPTR_PREFIX
=__PRIPTR_PREFIX
;
20954 UINT32_MAX_LT_UINTMAX_MAX
=1;
20955 UINT64_MAX_EQ_ULONG_MAX
='defined _LP64';
20971 if test $gl_cv_have_include_next = yes; then
20972 gl_cv_next_inttypes_h
='<'inttypes.h
'>'
20974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
20975 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
20976 if test "${gl_cv_next_inttypes_h+set}" = set; then :
20977 $as_echo_n "(cached) " >&6
20980 if test $ac_cv_header_inttypes_h = yes; then
20983 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20984 /* end confdefs.h. */
20985 #include <inttypes.h>
20989 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
20990 *) gl_absname_cpp
="$ac_cpp" ;;
20995 gl_dirsep_regex
='[/\\]'
20998 gl_dirsep_regex
='\/'
21001 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
21003 gl_header_literal_regex
=`echo 'inttypes.h' \
21004 | sed -e "$gl_make_literal_regex_sed"`
21005 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21006 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21011 gl_cv_next_inttypes_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21012 sed -n "$gl_absolute_header_sed"`'"'
21014 gl_cv_next_inttypes_h
='<'inttypes.h
'>'
21019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
21020 $as_echo "$gl_cv_next_inttypes_h" >&6; }
21022 NEXT_INTTYPES_H
=$gl_cv_next_inttypes_h
21024 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
21025 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21026 gl_next_as_first_directive
='<'inttypes.h
'>'
21028 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21029 gl_next_as_first_directive
=$gl_cv_next_inttypes_h
21031 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
=$gl_next_as_first_directive
21045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5
21046 $as_echo_n "checking for 64-bit off_t... " >&6; }
21047 if test "${gl_cv_type_off_t_64+set}" = set; then :
21048 $as_echo_n "(cached) " >&6
21050 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21051 /* end confdefs.h. */
21052 #include <sys/types.h>
21053 int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1];
21063 if ac_fn_c_try_compile
"$LINENO"; then :
21064 gl_cv_type_off_t_64
=yes
21066 gl_cv_type_off_t_64
=no
21068 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5
21072 $as_echo "$gl_cv_type_off_t_64" >&6; }
21073 if test $gl_cv_type_off_t_64 = no
; then
21074 WINDOWS_64_BIT_OFF_T
=1
21076 WINDOWS_64_BIT_OFF_T
=0
21078 WINDOWS_64_BIT_ST_SIZE
=1
21081 WINDOWS_64_BIT_OFF_T
=0
21082 WINDOWS_64_BIT_ST_SIZE
=0
21095 GNULIB_RAWMEMCHR
=0;
21098 GNULIB_STRCHRNUL
=0;
21106 GNULIB_STRCASESTR
=0;
21113 GNULIB_MBSCASECMP
=0;
21114 GNULIB_MBSNCASECMP
=0;
21115 GNULIB_MBSPCASECMP
=0;
21116 GNULIB_MBSCASESTR
=0;
21123 GNULIB_STRERROR_R
=0;
21124 GNULIB_STRSIGNAL
=0;
21125 GNULIB_STRVERSCMP
=0;
21130 HAVE_DECL_MEMMEM
=1;
21132 HAVE_DECL_MEMRCHR
=1;
21137 HAVE_DECL_STRDUP
=1;
21138 HAVE_DECL_STRNDUP
=1;
21139 HAVE_DECL_STRNLEN
=1;
21143 HAVE_DECL_STRTOK_R
=1;
21144 HAVE_DECL_STRERROR_R
=1;
21145 HAVE_DECL_STRSIGNAL
=1;
21152 REPLACE_STRCASESTR
=0;
21153 REPLACE_STRCHRNUL
=0;
21154 REPLACE_STRERROR
=0;
21155 REPLACE_STRERROR_R
=0;
21159 REPLACE_STRSIGNAL
=0;
21160 REPLACE_STRTOK_R
=0;
21161 UNDEFINE_STRTOK_R
=0;
21163 ac_fn_c_check_decl
"$LINENO" "memrchr" "ac_cv_have_decl_memrchr" "$ac_includes_default"
21164 if test "x$ac_cv_have_decl_memrchr" = x
""yes; then :
21170 cat >>confdefs.h
<<_ACEOF
21171 #define HAVE_DECL_MEMRCHR $ac_have_decl
21178 GNULIB_NANOSLEEP
=0;
21182 HAVE_DECL_LOCALTIME_R
=1;
21186 REPLACE_LOCALTIME_R
=GNULIB_PORTCHECK
;
21187 REPLACE_MKTIME
=GNULIB_PORTCHECK
;
21188 REPLACE_NANOSLEEP
=GNULIB_PORTCHECK
;
21189 REPLACE_TIMEGM
=GNULIB_PORTCHECK
;
21191 ac_fn_c_check_decl
"$LINENO" "alarm" "ac_cv_have_decl_alarm" "$ac_includes_default"
21192 if test "x$ac_cv_have_decl_alarm" = x
""yes; then :
21198 cat >>confdefs.h
<<_ACEOF
21199 #define HAVE_DECL_ALARM $ac_have_decl
21216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/select.h> is self-contained" >&5
21217 $as_echo_n "checking whether <sys/select.h> is self-contained... " >&6; }
21218 if test "${gl_cv_header_sys_select_h_selfcontained+set}" = set; then :
21219 $as_echo_n "(cached) " >&6
21222 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21223 /* end confdefs.h. */
21224 #include <sys/select.h>
21233 if ac_fn_c_try_compile
"$LINENO"; then :
21234 gl_cv_header_sys_select_h_selfcontained
=yes
21236 gl_cv_header_sys_select_h_selfcontained
=no
21238 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21239 if test $gl_cv_header_sys_select_h_selfcontained = yes; then
21240 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21241 /* end confdefs.h. */
21242 #include <sys/select.h>
21246 int memset; int bzero;
21252 if ac_fn_c_try_compile
"$LINENO"; then :
21253 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21254 /* end confdefs.h. */
21255 #include <sys/select.h>
21261 #define memset nonexistent_memset
21266 void *memset (void *, int, unsigned long);
21268 #define bzero nonexistent_bzero
21273 void bzero (void *, unsigned long);
21282 if ac_fn_c_try_link
"$LINENO"; then :
21285 gl_cv_header_sys_select_h_selfcontained
=no
21287 rm -f core conftest.err conftest.
$ac_objext \
21288 conftest
$ac_exeext conftest.
$ac_ext
21291 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_selfcontained" >&5
21296 $as_echo "$gl_cv_header_sys_select_h_selfcontained" >&6; }
21306 if test $gl_cv_have_include_next = yes; then
21307 gl_cv_next_sys_select_h
='<'sys
/select.h
'>'
21309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/select.h>" >&5
21310 $as_echo_n "checking absolute name of <sys/select.h>... " >&6; }
21311 if test "${gl_cv_next_sys_select_h+set}" = set; then :
21312 $as_echo_n "(cached) " >&6
21315 if test $ac_cv_header_sys_select_h = yes; then
21318 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21319 /* end confdefs.h. */
21320 #include <sys/select.h>
21324 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
21325 *) gl_absname_cpp
="$ac_cpp" ;;
21330 gl_dirsep_regex
='[/\\]'
21333 gl_dirsep_regex
='\/'
21336 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
21338 gl_header_literal_regex
=`echo 'sys/select.h' \
21339 | sed -e "$gl_make_literal_regex_sed"`
21340 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21341 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21346 gl_cv_next_sys_select_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21347 sed -n "$gl_absolute_header_sed"`'"'
21349 gl_cv_next_sys_select_h
='<'sys
/select.h
'>'
21354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_select_h" >&5
21355 $as_echo "$gl_cv_next_sys_select_h" >&6; }
21357 NEXT_SYS_SELECT_H
=$gl_cv_next_sys_select_h
21359 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
21360 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21361 gl_next_as_first_directive
='<'sys
/select.h
'>'
21363 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21364 gl_next_as_first_directive
=$gl_cv_next_sys_select_h
21366 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H
=$gl_next_as_first_directive
21371 if test $ac_cv_header_sys_select_h = yes; then
21372 HAVE_SYS_SELECT_H
=1
21374 HAVE_SYS_SELECT_H
=0
21381 if test $ac_cv_header_sys_socket_h != yes; then
21382 for ac_header
in winsock2.h
21384 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
21385 if test "x$ac_cv_header_winsock2_h" = x
""yes; then :
21386 cat >>confdefs.h
<<_ACEOF
21387 #define HAVE_WINSOCK2_H 1
21395 if test "$ac_cv_header_winsock2_h" = yes; then
21397 UNISTD_H_HAVE_WINSOCK2_H
=1
21398 SYS_IOCTL_H_HAVE_WINSOCK2_H
=1
21410 GNULIB_PTHREAD_SIGMASK
=0;
21412 GNULIB_SIGNAL_H_SIGPIPE
=0;
21413 GNULIB_SIGPROCMASK
=0;
21414 GNULIB_SIGACTION
=0;
21415 HAVE_POSIX_SIGNALBLOCKING
=1;
21416 HAVE_PTHREAD_SIGMASK
=1;
21421 HAVE_STRUCT_SIGACTION_SA_SIGACTION
=1;
21423 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
=1;
21425 HAVE_SIGHANDLER_T
=1;
21426 REPLACE_PTHREAD_SIGMASK
=0;
21435 ac_fn_c_check_type
"$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
21436 #include <signal.h>
21437 /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */
21438 #include <sys/types.h>
21441 if test "x$ac_cv_type_sigset_t" = x
""yes; then :
21443 cat >>confdefs.h
<<_ACEOF
21444 #define HAVE_SIGSET_T 1
21447 gl_cv_type_sigset_t
=yes
21449 gl_cv_type_sigset_t
=no
21452 if test $gl_cv_type_sigset_t != yes; then
21458 if test $ac_cv_header_sys_socket_h = no
; then
21459 for ac_header
in ws2tcpip.h
21461 ac_fn_c_check_header_mongrel
"$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
21462 if test "x$ac_cv_header_ws2tcpip_h" = x
""yes; then :
21463 cat >>confdefs.h
<<_ACEOF
21464 #define HAVE_WS2TCPIP_H 1
21473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
21474 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
21475 if test "${ac_cv_header_stdbool_h+set}" = set; then :
21476 $as_echo_n "(cached) " >&6
21478 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21479 /* end confdefs.h. */
21481 #include <stdbool.h>
21483 "error: bool is not defined"
21486 "error: false is not defined"
21489 "error: false is not 0"
21492 "error: true is not defined"
21495 "error: true is not 1"
21497 #ifndef __bool_true_false_are_defined
21498 "error: __bool_true_false_are_defined is not defined"
21501 struct s { _Bool s: 1; _Bool t; } s;
21503 char a[true == 1 ? 1 : -1];
21504 char b[false == 0 ? 1 : -1];
21505 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
21506 char d[(bool) 0.5 == true ? 1 : -1];
21507 /* See body of main program for 'e'. */
21508 char f[(_Bool) 0.0 == false ? 1 : -1];
21510 char h[sizeof (_Bool)];
21511 char i[sizeof s.t];
21512 enum { j = false, k = true, l = false * true, m = true * 256 };
21513 /* The following fails for
21514 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
21516 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
21517 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
21518 /* Catch a bug in an HP-UX C compiler. See
21519 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
21520 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
21532 /* Refer to every declared value, to avoid compiler optimizations. */
21533 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
21534 + !m + !n + !o + !p + !q + !pq);
21540 if ac_fn_c_try_compile
"$LINENO"; then :
21541 ac_cv_header_stdbool_h
=yes
21543 ac_cv_header_stdbool_h
=no
21545 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
21548 $as_echo "$ac_cv_header_stdbool_h" >&6; }
21549 ac_fn_c_check_type
"$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
21550 if test "x$ac_cv_type__Bool" = x
""yes; then :
21552 cat >>confdefs.h
<<_ACEOF
21553 #define HAVE__BOOL 1
21565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
21566 $as_echo_n "checking for wchar_t... " >&6; }
21567 if test "${gt_cv_c_wchar_t+set}" = set; then :
21568 $as_echo_n "(cached) " >&6
21570 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21571 /* end confdefs.h. */
21572 #include <stddef.h>
21573 wchar_t foo = (wchar_t)'\0';
21582 if ac_fn_c_try_compile
"$LINENO"; then :
21583 gt_cv_c_wchar_t
=yes
21587 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
21590 $as_echo "$gt_cv_c_wchar_t" >&6; }
21591 if test $gt_cv_c_wchar_t = yes; then
21593 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
21606 GNULIB_FPRINTF_POSIX
=0;
21622 GNULIB_OBSTACK_PRINTF
=0;
21623 GNULIB_OBSTACK_PRINTF_POSIX
=0;
21628 GNULIB_PRINTF_POSIX
=0;
21637 GNULIB_SPRINTF_POSIX
=0;
21638 GNULIB_STDIO_H_NONBLOCKING
=0;
21639 GNULIB_STDIO_H_SIGPIPE
=0;
21641 GNULIB_VASPRINTF
=0;
21646 GNULIB_VFPRINTF_POSIX
=0;
21648 GNULIB_VPRINTF_POSIX
=0;
21649 GNULIB_VSNPRINTF
=0;
21650 GNULIB_VSPRINTF_POSIX
=0;
21651 HAVE_DECL_FPURGE
=1;
21652 HAVE_DECL_FSEEKO
=1;
21653 HAVE_DECL_FTELLO
=1;
21654 HAVE_DECL_GETDELIM
=1;
21655 HAVE_DECL_GETLINE
=1;
21656 HAVE_DECL_OBSTACK_PRINTF
=1;
21657 HAVE_DECL_SNPRINTF
=1;
21658 HAVE_DECL_VSNPRINTF
=1;
21679 REPLACE_GETDELIM
=0;
21681 REPLACE_OBSTACK_PRINTF
=0;
21687 REPLACE_RENAMEAT
=0;
21688 REPLACE_SNPRINTF
=0;
21690 REPLACE_STDIO_READ_FUNCS
=0;
21691 REPLACE_STDIO_WRITE_FUNCS
=0;
21693 REPLACE_VASPRINTF
=0;
21694 REPLACE_VDPRINTF
=0;
21695 REPLACE_VFPRINTF
=0;
21697 REPLACE_VSNPRINTF
=0;
21698 REPLACE_VSPRINTF
=0;
21700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
21701 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
21702 if test "${ac_cv_struct_tm+set}" = set; then :
21703 $as_echo_n "(cached) " >&6
21705 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21706 /* end confdefs.h. */
21707 #include <sys/types.h>
21714 int *p = &tm.tm_sec;
21720 if ac_fn_c_try_compile
"$LINENO"; then :
21721 ac_cv_struct_tm
=time.h
21723 ac_cv_struct_tm
=sys
/time.h
21725 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
21728 $as_echo "$ac_cv_struct_tm" >&6; }
21729 if test $ac_cv_struct_tm = sys
/time.h
; then
21731 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
21735 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
21736 #include <$ac_cv_struct_tm>
21739 if test "x$ac_cv_member_struct_tm_tm_zone" = x
""yes; then :
21741 cat >>confdefs.h
<<_ACEOF
21742 #define HAVE_STRUCT_TM_TM_ZONE 1
21748 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21750 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
21753 ac_fn_c_check_decl
"$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
21755 if test "x$ac_cv_have_decl_tzname" = x
""yes; then :
21761 cat >>confdefs.h
<<_ACEOF
21762 #define HAVE_DECL_TZNAME $ac_have_decl
21765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
21766 $as_echo_n "checking for tzname... " >&6; }
21767 if test "${ac_cv_var_tzname+set}" = set; then :
21768 $as_echo_n "(cached) " >&6
21770 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21771 /* end confdefs.h. */
21773 #if !HAVE_DECL_TZNAME
21774 extern char *tzname[];
21780 return tzname[0][0];
21785 if ac_fn_c_try_link
"$LINENO"; then :
21786 ac_cv_var_tzname
=yes
21788 ac_cv_var_tzname
=no
21790 rm -f core conftest.err conftest.
$ac_objext \
21791 conftest
$ac_exeext conftest.
$ac_ext
21793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
21794 $as_echo "$ac_cv_var_tzname" >&6; }
21795 if test $ac_cv_var_tzname = yes; then
21797 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
21803 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
21805 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x
""yes; then :
21807 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
21823 if test $gl_cv_have_include_next = yes; then
21824 gl_cv_next_string_h
='<'string.h
'>'
21826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
21827 $as_echo_n "checking absolute name of <string.h>... " >&6; }
21828 if test "${gl_cv_next_string_h+set}" = set; then :
21829 $as_echo_n "(cached) " >&6
21832 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21833 /* end confdefs.h. */
21834 #include <string.h>
21838 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
21839 *) gl_absname_cpp
="$ac_cpp" ;;
21844 gl_dirsep_regex
='[/\\]'
21847 gl_dirsep_regex
='\/'
21850 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
21852 gl_header_literal_regex
=`echo 'string.h' \
21853 | sed -e "$gl_make_literal_regex_sed"`
21854 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21855 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21860 gl_cv_next_string_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21861 sed -n "$gl_absolute_header_sed"`'"'
21865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
21866 $as_echo "$gl_cv_next_string_h" >&6; }
21868 NEXT_STRING_H
=$gl_cv_next_string_h
21870 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
21871 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21872 gl_next_as_first_directive
='<'string.h
'>'
21874 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21875 gl_next_as_first_directive
=$gl_cv_next_string_h
21877 NEXT_AS_FIRST_DIRECTIVE_STRING_H
=$gl_next_as_first_directive
21887 ac_fn_c_check_decl
"$LINENO" "strtoimax" "ac_cv_have_decl_strtoimax" "$ac_includes_default"
21888 if test "x$ac_cv_have_decl_strtoimax" = x
""yes; then :
21894 cat >>confdefs.h
<<_ACEOF
21895 #define HAVE_DECL_STRTOIMAX $ac_have_decl
21900 ac_fn_c_check_decl
"$LINENO" "strtoumax" "ac_cv_have_decl_strtoumax" "$ac_includes_default"
21901 if test "x$ac_cv_have_decl_strtoumax" = x
""yes; then :
21907 cat >>confdefs.h
<<_ACEOF
21908 #define HAVE_DECL_STRTOUMAX $ac_have_decl
21913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
21914 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
21915 if test "${ac_cv_header_stat_broken+set}" = set; then :
21916 $as_echo_n "(cached) " >&6
21918 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21919 /* end confdefs.h. */
21920 #include <sys/types.h>
21921 #include <sys/stat.h>
21923 #if defined S_ISBLK && defined S_IFDIR
21924 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
21927 #if defined S_ISBLK && defined S_IFCHR
21928 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
21931 #if defined S_ISLNK && defined S_IFREG
21932 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
21935 #if defined S_ISSOCK && defined S_IFREG
21936 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
21940 if ac_fn_c_try_compile
"$LINENO"; then :
21941 ac_cv_header_stat_broken
=no
21943 ac_cv_header_stat_broken
=yes
21945 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
21948 $as_echo "$ac_cv_header_stat_broken" >&6; }
21949 if test $ac_cv_header_stat_broken = yes; then
21951 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
21959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
21960 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
21961 if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then :
21962 $as_echo_n "(cached) " >&6
21964 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21965 /* end confdefs.h. */
21971 static struct timespec x; x.tv_sec = x.tv_nsec;
21976 if ac_fn_c_try_compile
"$LINENO"; then :
21977 gl_cv_sys_struct_timespec_in_time_h
=yes
21979 gl_cv_sys_struct_timespec_in_time_h
=no
21981 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
21984 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
21986 TIME_H_DEFINES_STRUCT_TIMESPEC
=0
21987 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
=0
21988 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
=0
21989 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
21990 TIME_H_DEFINES_STRUCT_TIMESPEC
=1
21992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
21993 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
21994 if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then :
21995 $as_echo_n "(cached) " >&6
21997 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21998 /* end confdefs.h. */
21999 #include <sys/time.h>
22004 static struct timespec x; x.tv_sec = x.tv_nsec;
22009 if ac_fn_c_try_compile
"$LINENO"; then :
22010 gl_cv_sys_struct_timespec_in_sys_time_h
=yes
22012 gl_cv_sys_struct_timespec_in_sys_time_h
=no
22014 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
22017 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
22018 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
22019 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
=1
22021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
22022 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
22023 if test "${gl_cv_sys_struct_timespec_in_pthread_h+set}" = set; then :
22024 $as_echo_n "(cached) " >&6
22026 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22027 /* end confdefs.h. */
22028 #include <pthread.h>
22033 static struct timespec x; x.tv_sec = x.tv_nsec;
22038 if ac_fn_c_try_compile
"$LINENO"; then :
22039 gl_cv_sys_struct_timespec_in_pthread_h
=yes
22041 gl_cv_sys_struct_timespec_in_pthread_h
=no
22043 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
22046 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
22047 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
22048 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
=1
22067 if test $gl_cv_have_include_next = yes; then
22068 gl_cv_next_time_h
='<'time.h
'>'
22070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
22071 $as_echo_n "checking absolute name of <time.h>... " >&6; }
22072 if test "${gl_cv_next_time_h+set}" = set; then :
22073 $as_echo_n "(cached) " >&6
22076 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22077 /* end confdefs.h. */
22082 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
22083 *) gl_absname_cpp
="$ac_cpp" ;;
22088 gl_dirsep_regex
='[/\\]'
22091 gl_dirsep_regex
='\/'
22094 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
22096 gl_header_literal_regex
=`echo 'time.h' \
22097 | sed -e "$gl_make_literal_regex_sed"`
22098 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22099 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22104 gl_cv_next_time_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22105 sed -n "$gl_absolute_header_sed"`'"'
22109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
22110 $as_echo "$gl_cv_next_time_h" >&6; }
22112 NEXT_TIME_H
=$gl_cv_next_time_h
22114 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
22115 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22116 gl_next_as_first_directive
='<'time.h
'>'
22118 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22119 gl_next_as_first_directive
=$gl_cv_next_time_h
22121 NEXT_AS_FIRST_DIRECTIVE_TIME_H
=$gl_next_as_first_directive
22136 ac_fn_c_check_decl
"$LINENO" "unsetenv" "ac_cv_have_decl_unsetenv" "$ac_includes_default"
22137 if test "x$ac_cv_have_decl_unsetenv" = x
""yes; then :
22143 cat >>confdefs.h
<<_ACEOF
22144 #define HAVE_DECL_UNSETENV $ac_have_decl
22148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the utimes function works" >&5
22149 $as_echo_n "checking whether the utimes function works... " >&6; }
22150 if test "${gl_cv_func_working_utimes+set}" = set; then :
22151 $as_echo_n "(cached) " >&6
22154 if test "$cross_compiling" = yes; then :
22155 gl_cv_func_working_utimes
=no
22157 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22158 /* end confdefs.h. */
22160 #include <sys/types.h>
22161 #include <sys/stat.h>
22163 #include <sys/time.h>
22165 #include <unistd.h>
22166 #include <stdlib.h>
22171 inorder (time_t a, time_t b, time_t c)
22173 return a <= b && b <= c;
22180 char const *file = "conftest.utimes";
22181 static struct timeval timeval[2] = {{9, 10}, {999999, 999999}};
22183 /* Test whether utimes() essentially works. */
22186 FILE *f = fopen (file, "w");
22189 else if (fclose (f) != 0)
22191 else if (utimes (file, timeval) != 0)
22193 else if (lstat (file, &sbuf) != 0)
22195 else if (!(sbuf.st_atime == timeval[0].tv_sec
22196 && sbuf.st_mtime == timeval[1].tv_sec))
22198 if (unlink (file) != 0)
22202 /* Test whether utimes() with a NULL argument sets the file's timestamp
22203 to the current time. Use 'fstat' as well as 'time' to
22204 determine the "current" time, to accommodate NFS file systems
22205 if there is a time skew between the host and the NFS server. */
22207 int fd = open (file, O_WRONLY|O_CREAT, 0644);
22213 struct stat st0, st1, st2;
22214 if (time (&t0) == (time_t) -1)
22216 else if (fstat (fd, &st0) != 0)
22218 else if (utimes (file, timeval) != 0)
22220 else if (utimes (file, NULL) != 0)
22222 else if (fstat (fd, &st1) != 0)
22224 else if (write (fd, "\n", 1) != 1)
22226 else if (fstat (fd, &st2) != 0)
22228 else if (time (&t2) == (time_t) -1)
22232 int m_ok_POSIX = inorder (t0, st1.st_mtime, t2);
22233 int m_ok_NFS = inorder (st0.st_mtime, st1.st_mtime, st2.st_mtime);
22234 if (! (st1.st_atime == st1.st_mtime))
22236 if (! (m_ok_POSIX || m_ok_NFS))
22239 if (close (fd) != 0)
22242 if (unlink (file) != 0)
22246 /* Test whether utimes() with a NULL argument works on read-only files. */
22248 int fd = open (file, O_WRONLY|O_CREAT, 0444);
22251 else if (close (fd) != 0)
22253 else if (utimes (file, NULL) != 0)
22255 if (unlink (file) != 0)
22263 if ac_fn_c_try_run
"$LINENO"; then :
22264 gl_cv_func_working_utimes
=yes
22266 gl_cv_func_working_utimes
=no
22268 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22269 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_utimes" >&5
22274 $as_echo "$gl_cv_func_working_utimes" >&6; }
22276 if test $gl_cv_func_working_utimes = yes; then
22278 $as_echo "#define HAVE_WORKING_UTIMES 1" >>confdefs.h
22286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
22287 $as_echo_n "checking for struct utimbuf... " >&6; }
22288 if test "${gl_cv_sys_struct_utimbuf+set}" = set; then :
22289 $as_echo_n "(cached) " >&6
22291 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22292 /* end confdefs.h. */
22293 #if HAVE_SYS_TIME_H
22294 #include <sys/time.h>
22297 #ifdef HAVE_UTIME_H
22304 static struct utimbuf x; x.actime = x.modtime;
22309 if ac_fn_c_try_compile
"$LINENO"; then :
22310 gl_cv_sys_struct_utimbuf
=yes
22312 gl_cv_sys_struct_utimbuf
=no
22314 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_utimbuf" >&5
22317 $as_echo "$gl_cv_sys_struct_utimbuf" >&6; }
22319 if test $gl_cv_sys_struct_utimbuf = yes; then
22321 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
22335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5
22336 $as_echo_n "checking type of array argument to getgroups... " >&6; }
22337 if test "${ac_cv_type_getgroups+set}" = set; then :
22338 $as_echo_n "(cached) " >&6
22340 if test "$cross_compiling" = yes; then :
22341 ac_cv_type_getgroups
=cross
22343 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22344 /* end confdefs.h. */
22345 /* Thanks to Mike Rendell for this test. */
22346 $ac_includes_default
22349 #define MAX(x, y) ((x) > (y) ? (x) : (y))
22354 gid_t gidset[NGID];
22356 union { gid_t gval; long int lval; } val;
22359 for (i = 0; i < NGID; i++)
22360 gidset[i] = val.gval;
22361 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
22363 /* Exit non-zero if getgroups seems to require an array of ints. This
22364 happens when gid_t is short int but getgroups modifies an array
22366 return n > 0 && gidset[n] != val.gval;
22369 if ac_fn_c_try_run
"$LINENO"; then :
22370 ac_cv_type_getgroups
=gid_t
22372 ac_cv_type_getgroups
=int
22374 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22375 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22378 if test $ac_cv_type_getgroups = cross
; then
22379 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22380 /* end confdefs.h. */
22381 #include <unistd.h>
22384 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22385 $EGREP "getgroups.*int.*gid_t" >/dev
/null
2>&1; then :
22386 ac_cv_type_getgroups
=gid_t
22388 ac_cv_type_getgroups
=int
22394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5
22395 $as_echo "$ac_cv_type_getgroups" >&6; }
22397 cat >>confdefs.h
<<_ACEOF
22398 #define GETGROUPS_T $ac_cv_type_getgroups
22409 GL_COND_LIBTOOL_TRUE
=
22410 GL_COND_LIBTOOL_FALSE
='#'
22412 GL_COND_LIBTOOL_TRUE
='#'
22413 GL_COND_LIBTOOL_FALSE
=
22416 gl_cond_libtool
=false
22429 gl_source_base
='lib'
22432 if test $ac_cv_func_alloca_works = no
; then
22436 # Define an additional variable used in the Makefile substitution.
22437 if test $ac_cv_working_alloca_h = yes; then
22438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
22439 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
22440 if test "${gl_cv_rpl_alloca+set}" = set; then :
22441 $as_echo_n "(cached) " >&6
22444 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22445 /* end confdefs.h. */
22447 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
22452 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22453 $EGREP "Need own alloca" >/dev
/null
2>&1; then :
22454 gl_cv_rpl_alloca
=yes
22456 gl_cv_rpl_alloca
=no
22462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
22463 $as_echo "$gl_cv_rpl_alloca" >&6; }
22464 if test $gl_cv_rpl_alloca = yes; then
22466 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
22476 if test -n "$ALLOCA_H"; then
22477 GL_GENERATE_ALLOCA_H_TRUE
=
22478 GL_GENERATE_ALLOCA_H_FALSE
='#'
22480 GL_GENERATE_ALLOCA_H_TRUE
='#'
22481 GL_GENERATE_ALLOCA_H_FALSE
=
22486 for ac_header
in byteswap.h
22488 ac_fn_c_check_header_mongrel
"$LINENO" "byteswap.h" "ac_cv_header_byteswap_h" "$ac_includes_default"
22489 if test "x$ac_cv_header_byteswap_h" = x
""yes; then :
22490 cat >>confdefs.h
<<_ACEOF
22491 #define HAVE_BYTESWAP_H 1
22498 BYTESWAP_H
='byteswap.h'
22505 if test -n "$BYTESWAP_H"; then
22506 GL_GENERATE_BYTESWAP_H_TRUE
=
22507 GL_GENERATE_BYTESWAP_H_FALSE
='#'
22509 GL_GENERATE_BYTESWAP_H_TRUE
='#'
22510 GL_GENERATE_BYTESWAP_H_FALSE
=
22518 # Solaris 2.5.1 needs -lposix4 to get the clock_gettime function.
22519 # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
22521 # Save and restore LIBS so e.g., -lrt, isn't added to it. Otherwise, *all*
22522 # programs in the package would end up linked with that potentially-shared
22523 # library, inducing unnecessary run-time overhead.
22526 gl_saved_libs
=$LIBS
22527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
22528 $as_echo_n "checking for library containing clock_gettime... " >&6; }
22529 if test "${ac_cv_search_clock_gettime+set}" = set; then :
22530 $as_echo_n "(cached) " >&6
22532 ac_func_search_save_LIBS
=$LIBS
22533 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22534 /* end confdefs.h. */
22536 /* Override any GCC internal prototype to avoid an error.
22537 Use char because int might match the return type of a GCC
22538 builtin and then its argument prototype would still apply. */
22542 char clock_gettime ();
22546 return clock_gettime ();
22551 for ac_lib
in '' rt posix4
; do
22552 if test -z "$ac_lib"; then
22553 ac_res
="none required"
22556 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
22558 if ac_fn_c_try_link
"$LINENO"; then :
22559 ac_cv_search_clock_gettime
=$ac_res
22561 rm -f core conftest.err conftest.
$ac_objext \
22563 if test "${ac_cv_search_clock_gettime+set}" = set; then :
22567 if test "${ac_cv_search_clock_gettime+set}" = set; then :
22570 ac_cv_search_clock_gettime
=no
22572 rm conftest.
$ac_ext
22573 LIBS
=$ac_func_search_save_LIBS
22575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
22576 $as_echo "$ac_cv_search_clock_gettime" >&6; }
22577 ac_res
=$ac_cv_search_clock_gettime
22578 if test "$ac_res" != no
; then :
22579 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
22580 test "$ac_cv_search_clock_gettime" = "none required" ||
22581 LIB_CLOCK_GETTIME
=$ac_cv_search_clock_gettime
22584 for ac_func
in clock_gettime clock_settime
22586 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22587 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
22588 eval as_val
=\$
$as_ac_var
22589 if test "x$as_val" = x
""yes; then :
22590 cat >>confdefs.h
<<_ACEOF
22591 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22597 LIBS
=$gl_saved_libs
22604 cat >>confdefs.h
<<_ACEOF
22605 #define GNULIB_CLOSE_STREAM 1
22643 if test $gl_cv_have_include_next = yes; then
22644 gl_cv_next_dirent_h
='<'dirent.h
'>'
22646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <dirent.h>" >&5
22647 $as_echo_n "checking absolute name of <dirent.h>... " >&6; }
22648 if test "${gl_cv_next_dirent_h+set}" = set; then :
22649 $as_echo_n "(cached) " >&6
22652 if test $ac_cv_header_dirent_h = yes; then
22655 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22656 /* end confdefs.h. */
22657 #include <dirent.h>
22661 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
22662 *) gl_absname_cpp
="$ac_cpp" ;;
22667 gl_dirsep_regex
='[/\\]'
22670 gl_dirsep_regex
='\/'
22673 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
22675 gl_header_literal_regex
=`echo 'dirent.h' \
22676 | sed -e "$gl_make_literal_regex_sed"`
22677 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22678 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22683 gl_cv_next_dirent_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22684 sed -n "$gl_absolute_header_sed"`'"'
22686 gl_cv_next_dirent_h
='<'dirent.h
'>'
22691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_dirent_h" >&5
22692 $as_echo "$gl_cv_next_dirent_h" >&6; }
22694 NEXT_DIRENT_H
=$gl_cv_next_dirent_h
22696 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
22697 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22698 gl_next_as_first_directive
='<'dirent.h
'>'
22700 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22701 gl_next_as_first_directive
=$gl_cv_next_dirent_h
22703 NEXT_AS_FIRST_DIRECTIVE_DIRENT_H
=$gl_next_as_first_directive
22708 if test $ac_cv_header_dirent_h = yes; then
22723 $as_echo "#define HAVE_DUP2 1" >>confdefs.h
22726 if test $HAVE_DUP2 = 1; then
22727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5
22728 $as_echo_n "checking whether dup2 works... " >&6; }
22729 if test "${gl_cv_func_dup2_works+set}" = set; then :
22730 $as_echo_n "(cached) " >&6
22732 if test "$cross_compiling" = yes; then :
22734 mingw
*) # on this platform, dup2 always returns 0 for success
22735 gl_cv_func_dup2_works
="guessing no" ;;
22736 cygwin
*) # on cygwin 1.5.x, dup2(1,1) returns 0
22737 gl_cv_func_dup2_works
="guessing no" ;;
22738 linux
*) # On linux between 2008-07-27 and 2009-05-11, dup2 of a
22739 # closed fd may yield -EBADF instead of -1 / errno=EBADF.
22740 gl_cv_func_dup2_works
="guessing no" ;;
22741 freebsd
*) # on FreeBSD 6.1, dup2(1,1000000) gives EMFILE, not EBADF.
22742 gl_cv_func_dup2_works
="guessing no" ;;
22743 haiku
*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC.
22744 gl_cv_func_dup2_works
="guessing no" ;;
22745 *) gl_cv_func_dup2_works
="guessing yes" ;;
22748 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22749 /* end confdefs.h. */
22751 #include <unistd.h>
22759 if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1)
22762 if (dup2 (1, 1) == 0)
22765 if (fcntl (1, F_GETFD) != FD_CLOEXEC)
22769 if (dup2 (0, 0) != -1)
22771 /* Many gnulib modules require POSIX conformance of EBADF. */
22772 if (dup2 (2, 1000000) == -1 && errno != EBADF)
22774 /* Flush out some cygwin core dumps. */
22775 if (dup2 (2, -1) != -1 || errno != EBADF)
22786 if ac_fn_c_try_run
"$LINENO"; then :
22787 gl_cv_func_dup2_works
=yes
22789 gl_cv_func_dup2_works
=no
22791 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22792 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5
22798 $as_echo "$gl_cv_func_dup2_works" >&6; }
22799 case "$gl_cv_func_dup2_works" in
22803 for ac_func
in setdtablesize
22805 ac_fn_c_check_func
"$LINENO" "setdtablesize" "ac_cv_func_setdtablesize"
22806 if test "x$ac_cv_func_setdtablesize" = x
""yes; then :
22807 cat >>confdefs.h
<<_ACEOF
22808 #define HAVE_SETDTABLESIZE 1
22819 if test $HAVE_DUP2 = 0 ||
test $REPLACE_DUP2 = 1; then
22828 gl_LIBOBJS
="$gl_LIBOBJS dup2.$ac_objext"
22860 EXECINFO_H
='execinfo.h'
22862 if test $ac_cv_header_execinfo_h = yes; then
22863 gl_saved_libs
=$LIBS
22864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing backtrace_symbols_fd" >&5
22865 $as_echo_n "checking for library containing backtrace_symbols_fd... " >&6; }
22866 if test "${ac_cv_search_backtrace_symbols_fd+set}" = set; then :
22867 $as_echo_n "(cached) " >&6
22869 ac_func_search_save_LIBS
=$LIBS
22870 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22871 /* end confdefs.h. */
22873 /* Override any GCC internal prototype to avoid an error.
22874 Use char because int might match the return type of a GCC
22875 builtin and then its argument prototype would still apply. */
22879 char backtrace_symbols_fd ();
22883 return backtrace_symbols_fd ();
22888 for ac_lib
in '' execinfo
; do
22889 if test -z "$ac_lib"; then
22890 ac_res
="none required"
22893 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
22895 if ac_fn_c_try_link
"$LINENO"; then :
22896 ac_cv_search_backtrace_symbols_fd
=$ac_res
22898 rm -f core conftest.err conftest.
$ac_objext \
22900 if test "${ac_cv_search_backtrace_symbols_fd+set}" = set; then :
22904 if test "${ac_cv_search_backtrace_symbols_fd+set}" = set; then :
22907 ac_cv_search_backtrace_symbols_fd
=no
22909 rm conftest.
$ac_ext
22910 LIBS
=$ac_func_search_save_LIBS
22912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_backtrace_symbols_fd" >&5
22913 $as_echo "$ac_cv_search_backtrace_symbols_fd" >&6; }
22914 ac_res
=$ac_cv_search_backtrace_symbols_fd
22915 if test "$ac_res" != no
; then :
22916 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
22917 test "$ac_cv_search_backtrace_symbols_fd" = "none required" ||
22918 LIB_EXECINFO
=$ac_cv_search_backtrace_symbols_fd
22921 LIBS
=$gl_saved_libs
22922 test "$ac_cv_search_backtrace_symbols_fd" = no || EXECINFO_H
=''
22925 if test -n "$EXECINFO_H"; then
22934 gl_LIBOBJS
="$gl_LIBOBJS execinfo.$ac_objext"
22940 if test -n "$EXECINFO_H"; then
22941 GL_GENERATE_EXECINFO_H_TRUE
=
22942 GL_GENERATE_EXECINFO_H_FALSE
='#'
22944 GL_GENERATE_EXECINFO_H_TRUE
='#'
22945 GL_GENERATE_EXECINFO_H_FALSE
=
22956 if test $ac_cv_func_faccessat = no
; then
22960 if test $HAVE_FACCESSAT = 0; then
22969 gl_LIBOBJS
="$gl_LIBOBJS faccessat.$ac_objext"
22972 for ac_func
in access
22974 ac_fn_c_check_func
"$LINENO" "access" "ac_cv_func_access"
22975 if test "x$ac_cv_func_access" = x
""yes; then :
22976 cat >>confdefs.h
<<_ACEOF
22977 #define HAVE_ACCESS 1
22987 cat >>confdefs.h
<<_ACEOF
22988 #define GNULIB_FACCESSAT 1
23008 if test $ac_cv_func_fcntl = no
; then
23012 if test $ac_cv_func_fcntl = no
; then
23019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fcntl handles F_DUPFD correctly" >&5
23020 $as_echo_n "checking whether fcntl handles F_DUPFD correctly... " >&6; }
23021 if test "${gl_cv_func_fcntl_f_dupfd_works+set}" = set; then :
23022 $as_echo_n "(cached) " >&6
23024 if test "$cross_compiling" = yes; then :
23025 # Guess that it works on glibc systems
23026 case $host_os in #((
23027 *-gnu*) gl_cv_func_fcntl_f_dupfd_works
="guessing yes";;
23028 *) gl_cv_func_fcntl_f_dupfd_works
="guessing no";;
23031 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23032 /* end confdefs.h. */
23041 if (fcntl (0, F_DUPFD, -1) != -1) result |= 1;
23042 if (errno != EINVAL) result |= 2;
23049 if ac_fn_c_try_run
"$LINENO"; then :
23050 gl_cv_func_fcntl_f_dupfd_works
=yes
23052 gl_cv_func_fcntl_f_dupfd_works
=no
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_fcntl_f_dupfd_works" >&5
23060 $as_echo "$gl_cv_func_fcntl_f_dupfd_works" >&6; }
23061 case $gl_cv_func_fcntl_f_dupfd_works in
23066 if test $ac_cv_func_fcntl = no
; then
23073 $as_echo "#define FCNTL_DUPFD_BUGGY 1" >>confdefs.h
23077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fcntl understands F_DUPFD_CLOEXEC" >&5
23078 $as_echo_n "checking whether fcntl understands F_DUPFD_CLOEXEC... " >&6; }
23079 if test "${gl_cv_func_fcntl_f_dupfd_cloexec+set}" = set; then :
23080 $as_echo_n "(cached) " >&6
23082 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23083 /* end confdefs.h. */
23086 #ifndef F_DUPFD_CLOEXEC
23098 if ac_fn_c_try_compile
"$LINENO"; then :
23099 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23100 /* end confdefs.h. */
23103 /* The Linux kernel only added F_DUPFD_CLOEXEC in 2.6.24, so we always replace
23104 it to support the semantics on older kernels that failed with EINVAL. */
23116 if ac_fn_c_try_compile
"$LINENO"; then :
23117 gl_cv_func_fcntl_f_dupfd_cloexec
=yes
23119 gl_cv_func_fcntl_f_dupfd_cloexec
="needs runtime check"
23121 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23123 gl_cv_func_fcntl_f_dupfd_cloexec
=no
23125 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fcntl_f_dupfd_cloexec" >&5
23128 $as_echo "$gl_cv_func_fcntl_f_dupfd_cloexec" >&6; }
23129 if test "$gl_cv_func_fcntl_f_dupfd_cloexec" != yes; then
23133 if test $ac_cv_func_fcntl = no
; then
23143 if test $HAVE_FCNTL = 0 ||
test $REPLACE_FCNTL = 1; then
23152 gl_LIBOBJS
="$gl_LIBOBJS fcntl.$ac_objext"
23177 if test $gl_cv_have_include_next = yes; then
23178 gl_cv_next_fcntl_h
='<'fcntl.h
'>'
23180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <fcntl.h>" >&5
23181 $as_echo_n "checking absolute name of <fcntl.h>... " >&6; }
23182 if test "${gl_cv_next_fcntl_h+set}" = set; then :
23183 $as_echo_n "(cached) " >&6
23186 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23187 /* end confdefs.h. */
23192 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
23193 *) gl_absname_cpp
="$ac_cpp" ;;
23198 gl_dirsep_regex
='[/\\]'
23201 gl_dirsep_regex
='\/'
23204 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
23206 gl_header_literal_regex
=`echo 'fcntl.h' \
23207 | sed -e "$gl_make_literal_regex_sed"`
23208 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23209 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23214 gl_cv_next_fcntl_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23215 sed -n "$gl_absolute_header_sed"`'"'
23219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_fcntl_h" >&5
23220 $as_echo "$gl_cv_next_fcntl_h" >&6; }
23222 NEXT_FCNTL_H
=$gl_cv_next_fcntl_h
23224 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
23225 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23226 gl_next_as_first_directive
='<'fcntl.h
'>'
23228 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23229 gl_next_as_first_directive
=$gl_cv_next_fcntl_h
23231 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H
=$gl_next_as_first_directive
23250 if test $ac_cv_have_decl_fdatasync = no
; then
23251 HAVE_DECL_FDATASYNC
=0
23252 for ac_func
in fdatasync
23254 ac_fn_c_check_func
"$LINENO" "fdatasync" "ac_cv_func_fdatasync"
23255 if test "x$ac_cv_func_fdatasync" = x
""yes; then :
23256 cat >>confdefs.h
<<_ACEOF
23257 #define HAVE_FDATASYNC 1
23263 if test $ac_cv_func_fdatasync = no
; then
23267 gl_saved_libs
=$LIBS
23268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fdatasync" >&5
23269 $as_echo_n "checking for library containing fdatasync... " >&6; }
23270 if test "${ac_cv_search_fdatasync+set}" = set; then :
23271 $as_echo_n "(cached) " >&6
23273 ac_func_search_save_LIBS
=$LIBS
23274 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23275 /* end confdefs.h. */
23277 /* Override any GCC internal prototype to avoid an error.
23278 Use char because int might match the return type of a GCC
23279 builtin and then its argument prototype would still apply. */
23287 return fdatasync ();
23292 for ac_lib
in '' rt posix4
; do
23293 if test -z "$ac_lib"; then
23294 ac_res
="none required"
23297 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
23299 if ac_fn_c_try_link
"$LINENO"; then :
23300 ac_cv_search_fdatasync
=$ac_res
23302 rm -f core conftest.err conftest.
$ac_objext \
23304 if test "${ac_cv_search_fdatasync+set}" = set; then :
23308 if test "${ac_cv_search_fdatasync+set}" = set; then :
23311 ac_cv_search_fdatasync
=no
23313 rm conftest.
$ac_ext
23314 LIBS
=$ac_func_search_save_LIBS
23316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fdatasync" >&5
23317 $as_echo "$ac_cv_search_fdatasync" >&6; }
23318 ac_res
=$ac_cv_search_fdatasync
23319 if test "$ac_res" != no
; then :
23320 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
23321 test "$ac_cv_search_fdatasync" = "none required" ||
23322 LIB_FDATASYNC
=$ac_cv_search_fdatasync
23325 LIBS
=$gl_saved_libs
23328 if test $HAVE_FDATASYNC = 0; then
23337 gl_LIBOBJS
="$gl_LIBOBJS fdatasync.$ac_objext"
23356 ac_fn_c_check_decl
"$LINENO" "fdopendir" "ac_cv_have_decl_fdopendir" "
23357 #include <dirent.h>
23360 if test "x$ac_cv_have_decl_fdopendir" = x
""yes; then :
23366 cat >>confdefs.h
<<_ACEOF
23367 #define HAVE_DECL_FDOPENDIR $ac_have_decl
23369 if test $ac_have_decl = 1; then :
23372 HAVE_DECL_FDOPENDIR
=0
23376 if test $ac_cv_func_fdopendir = no
; then
23379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fdopendir works" >&5
23380 $as_echo_n "checking whether fdopendir works... " >&6; }
23381 if test "${gl_cv_func_fdopendir_works+set}" = set; then :
23382 $as_echo_n "(cached) " >&6
23384 if test "$cross_compiling" = yes; then :
23386 # Guess yes on glibc systems.
23387 *-gnu*) gl_cv_func_fdopendir_works
="guessing yes" ;;
23388 # If we don't know, assume the worst.
23389 *) gl_cv_func_fdopendir_works
="guessing no" ;;
23393 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23394 /* end confdefs.h. */
23396 #include <dirent.h>
23398 #include <unistd.h>
23399 #if !HAVE_DECL_FDOPENDIR
23401 # ifdef __cplusplus
23404 DIR *fdopendir (int);
23411 int fd = open ("conftest.c", O_RDONLY);
23412 if (fd < 0) result |= 1;
23413 if (fdopendir (fd)) result |= 2;
23414 if (close (fd)) result |= 4;
23420 if ac_fn_c_try_run
"$LINENO"; then :
23421 gl_cv_func_fdopendir_works
=yes
23423 gl_cv_func_fdopendir_works
=no
23425 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23426 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fdopendir_works" >&5
23431 $as_echo "$gl_cv_func_fdopendir_works" >&6; }
23432 case "$gl_cv_func_fdopendir_works" in
23435 REPLACE_FDOPENDIR
=1
23440 if test $HAVE_FDOPENDIR = 0 ||
test $REPLACE_FDOPENDIR = 1; then
23449 gl_LIBOBJS
="$gl_LIBOBJS fdopendir.$ac_objext"
23465 cat >>confdefs.h
<<_ACEOF
23466 #define GNULIB_FDOPENDIR 1
23476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __fpending" >&5
23477 $as_echo_n "checking for __fpending... " >&6; }
23478 if test "${gl_cv_func___fpending+set}" = set; then :
23479 $as_echo_n "(cached) " >&6
23482 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23483 /* end confdefs.h. */
23485 #if HAVE_STDIO_EXT_H
23486 # include <stdio_ext.h>
23492 return ! __fpending (stdin);
23497 if ac_fn_c_try_link
"$LINENO"; then :
23498 gl_cv_func___fpending
=yes
23500 gl_cv_func___fpending
=no
23502 rm -f core conftest.err conftest.
$ac_objext \
23503 conftest
$ac_exeext conftest.
$ac_ext
23506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func___fpending" >&5
23507 $as_echo "$gl_cv_func___fpending" >&6; }
23509 if test $gl_cv_func___fpending = no
; then
23518 gl_LIBOBJS
="$gl_LIBOBJS fpending.$ac_objext"
23521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to determine the number of pending output bytes on a stream" >&5
23522 $as_echo_n "checking how to determine the number of pending output bytes on a stream... " >&6; }
23523 if test "${ac_cv_sys_pending_output_n_bytes+set}" = set; then :
23524 $as_echo_n "(cached) " >&6
23530 'fp->_IO_write_ptr - fp->_IO_write_base' \
23532 '# traditional Unix' \
23533 'fp->_ptr - fp->_base' \
23536 'fp->_p - fp->_bf._base' \
23538 '# SCO, Unixware' \
23539 '(fp->__ptr ? fp->__ptr - fp->__base : 0)' \
23542 '(fp->_Mode & 0x2000 /*_MWRITE*/ ? fp->_Next - fp->_Buf : 0)' \
23545 'fp->__bufp - fp->__buffer' \
23547 '# old glibc iostream?' \
23548 'fp->_pptr - fp->_pbase' \
23551 'fp->_ptr - fp->_buffer' \
23554 'fp->_ptr - fp->_buf' \
23557 'fp->wp - fp->buf' \
23560 '(*fp)->_ptr - (*fp)->_base' \
23562 '# e.g., DGUX R4.11; the info is not available' \
23566 # Skip each embedded comment.
23567 case "$ac_expr" in '#'*) continue;; esac
23569 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23570 /* end confdefs.h. */
23575 FILE *fp = stdin; (void) ($ac_expr);
23580 if ac_fn_c_try_compile
"$LINENO"; then :
23584 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23585 test "$fp_done" = yes && break
23588 ac_cv_sys_pending_output_n_bytes
=$ac_expr
23592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_pending_output_n_bytes" >&5
23593 $as_echo "$ac_cv_sys_pending_output_n_bytes" >&6; }
23595 cat >>confdefs.h
<<_ACEOF
23596 #define PENDING_OUTPUT_N_BYTES $ac_cv_sys_pending_output_n_bytes
23607 if test $ac_cv_func_fstatat = no
; then
23610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fstatat (..., 0) works" >&5
23611 $as_echo_n "checking whether fstatat (..., 0) works... " >&6; }
23612 if test "${gl_cv_func_fstatat_zero_flag+set}" = set; then :
23613 $as_echo_n "(cached) " >&6
23615 if test "$cross_compiling" = yes; then :
23617 aix
*) gl_cv_func_fstatat_zero_flag
="guessing no";;
23618 *) gl_cv_func_fstatat_zero_flag
="guessing yes";;
23622 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23623 /* end confdefs.h. */
23626 #include <sys/stat.h>
23631 return fstatat (AT_FDCWD, ".", &a, 0) != 0;
23635 if ac_fn_c_try_run
"$LINENO"; then :
23636 gl_cv_func_fstatat_zero_flag
=yes
23638 gl_cv_func_fstatat_zero_flag
=no
23640 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23641 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fstatat_zero_flag" >&5
23647 $as_echo "$gl_cv_func_fstatat_zero_flag" >&6; }
23649 case $gl_cv_func_fstatat_zero_flag+$gl_cv_func_lstat_dereferences_slashed_symlink in
23651 *) REPLACE_FSTATAT
=1
23652 case $gl_cv_func_fstatat_zero_flag in
23655 $as_echo "#define HAVE_WORKING_FSTATAT_ZERO_FLAG 1" >>confdefs.h
23663 if test $HAVE_FSTATAT = 0 ||
test $REPLACE_FSTATAT = 1; then
23672 gl_LIBOBJS
="$gl_LIBOBJS fstatat.$ac_objext"
23689 if test $ac_cv_func_fsync = no
; then
23693 if test $HAVE_FSYNC = 0; then
23702 gl_LIBOBJS
="$gl_LIBOBJS fsync.$ac_objext"
23719 # Persuade glibc <stdlib.h> to declare getloadavg().
23724 # getloadvg is present in libc on glibc >= 2.2, Mac OS X, FreeBSD >= 2.0,
23725 # NetBSD >= 0.9, OpenBSD >= 2.0, Solaris >= 7.
23727 ac_fn_c_check_func
"$LINENO" "getloadavg" "ac_cv_func_getloadavg"
23728 if test "x$ac_cv_func_getloadavg" = x
""yes; then :
23731 gl_func_getloadavg_done
=no
23733 # Some systems with -lutil have (and need) -lkvm as well, some do not.
23734 # On Solaris, -lkvm requires nlist from -lelf, so check that first
23735 # to get the right answer into the cache.
23736 # For kstat on solaris, we need to test for libelf and libkvm to force the
23737 # definition of SVR4 below.
23738 if test $gl_func_getloadavg_done = no
; then
23739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
23740 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
23741 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then :
23742 $as_echo_n "(cached) " >&6
23744 ac_check_lib_save_LIBS
=$LIBS
23746 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23747 /* end confdefs.h. */
23749 /* Override any GCC internal prototype to avoid an error.
23750 Use char because int might match the return type of a GCC
23751 builtin and then its argument prototype would still apply. */
23759 return elf_begin ();
23764 if ac_fn_c_try_link
"$LINENO"; then :
23765 ac_cv_lib_elf_elf_begin
=yes
23767 ac_cv_lib_elf_elf_begin
=no
23769 rm -f core conftest.err conftest.
$ac_objext \
23770 conftest
$ac_exeext conftest.
$ac_ext
23771 LIBS
=$ac_check_lib_save_LIBS
23773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
23774 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
23775 if test "x$ac_cv_lib_elf_elf_begin" = x
""yes; then :
23779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
23780 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
23781 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then :
23782 $as_echo_n "(cached) " >&6
23784 ac_check_lib_save_LIBS
=$LIBS
23786 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23787 /* end confdefs.h. */
23789 /* Override any GCC internal prototype to avoid an error.
23790 Use char because int might match the return type of a GCC
23791 builtin and then its argument prototype would still apply. */
23799 return kvm_open ();
23804 if ac_fn_c_try_link
"$LINENO"; then :
23805 ac_cv_lib_kvm_kvm_open
=yes
23807 ac_cv_lib_kvm_kvm_open
=no
23809 rm -f core conftest.err conftest.
$ac_objext \
23810 conftest
$ac_exeext conftest.
$ac_ext
23811 LIBS
=$ac_check_lib_save_LIBS
23813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
23814 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
23815 if test "x$ac_cv_lib_kvm_kvm_open" = x
""yes; then :
23819 # Check for the 4.4BSD definition of getloadavg.
23820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
23821 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
23822 if test "${ac_cv_lib_util_getloadavg+set}" = set; then :
23823 $as_echo_n "(cached) " >&6
23825 ac_check_lib_save_LIBS
=$LIBS
23826 LIBS
="-lutil $LIBS"
23827 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23828 /* end confdefs.h. */
23830 /* Override any GCC internal prototype to avoid an error.
23831 Use char because int might match the return type of a GCC
23832 builtin and then its argument prototype would still apply. */
23836 char getloadavg ();
23840 return getloadavg ();
23845 if ac_fn_c_try_link
"$LINENO"; then :
23846 ac_cv_lib_util_getloadavg
=yes
23848 ac_cv_lib_util_getloadavg
=no
23850 rm -f core conftest.err conftest.
$ac_objext \
23851 conftest
$ac_exeext conftest.
$ac_ext
23852 LIBS
=$ac_check_lib_save_LIBS
23854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
23855 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
23856 if test "x$ac_cv_lib_util_getloadavg" = x
""yes; then :
23857 LIBS
="-lutil $LIBS" gl_func_getloadavg_done
=yes
23862 if test $gl_func_getloadavg_done = no
; then
23863 # There is a commonly available library for RS/6000 AIX.
23864 # Since it is not a standard part of AIX, it might be installed locally.
23865 gl_getloadavg_LIBS
=$LIBS
23866 LIBS
="-L/usr/local/lib $LIBS"
23867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
23868 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
23869 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then :
23870 $as_echo_n "(cached) " >&6
23872 ac_check_lib_save_LIBS
=$LIBS
23873 LIBS
="-lgetloadavg $LIBS"
23874 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23875 /* end confdefs.h. */
23877 /* Override any GCC internal prototype to avoid an error.
23878 Use char because int might match the return type of a GCC
23879 builtin and then its argument prototype would still apply. */
23883 char getloadavg ();
23887 return getloadavg ();
23892 if ac_fn_c_try_link
"$LINENO"; then :
23893 ac_cv_lib_getloadavg_getloadavg
=yes
23895 ac_cv_lib_getloadavg_getloadavg
=no
23897 rm -f core conftest.err conftest.
$ac_objext \
23898 conftest
$ac_exeext conftest.
$ac_ext
23899 LIBS
=$ac_check_lib_save_LIBS
23901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
23902 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
23903 if test "x$ac_cv_lib_getloadavg_getloadavg" = x
""yes; then :
23904 LIBS
="-lgetloadavg $LIBS" gl_func_getloadavg_done
=yes
23906 LIBS
=$gl_getloadavg_LIBS
23911 # Set up the replacement function if necessary.
23912 if test $gl_func_getloadavg_done = no
; then
23915 # Solaris has libkstat which does not require root.
23916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
23917 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
23918 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
23919 $as_echo_n "(cached) " >&6
23921 ac_check_lib_save_LIBS
=$LIBS
23922 LIBS
="-lkstat $LIBS"
23923 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23924 /* end confdefs.h. */
23926 /* Override any GCC internal prototype to avoid an error.
23927 Use char because int might match the return type of a GCC
23928 builtin and then its argument prototype would still apply. */
23932 char kstat_open ();
23936 return kstat_open ();
23941 if ac_fn_c_try_link
"$LINENO"; then :
23942 ac_cv_lib_kstat_kstat_open
=yes
23944 ac_cv_lib_kstat_kstat_open
=no
23946 rm -f core conftest.err conftest.
$ac_objext \
23947 conftest
$ac_exeext conftest.
$ac_ext
23948 LIBS
=$ac_check_lib_save_LIBS
23950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
23951 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
23952 if test "x$ac_cv_lib_kstat_kstat_open" = x
""yes; then :
23953 cat >>confdefs.h
<<_ACEOF
23954 #define HAVE_LIBKSTAT 1
23957 LIBS
="-lkstat $LIBS"
23961 test $ac_cv_lib_kstat_kstat_open = yes && gl_func_getloadavg_done
=yes
23963 # AIX has libperfstat which does not require root
23964 if test $gl_func_getloadavg_done = no
; then
23965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perfstat_cpu_total in -lperfstat" >&5
23966 $as_echo_n "checking for perfstat_cpu_total in -lperfstat... " >&6; }
23967 if test "${ac_cv_lib_perfstat_perfstat_cpu_total+set}" = set; then :
23968 $as_echo_n "(cached) " >&6
23970 ac_check_lib_save_LIBS
=$LIBS
23971 LIBS
="-lperfstat $LIBS"
23972 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23973 /* end confdefs.h. */
23975 /* Override any GCC internal prototype to avoid an error.
23976 Use char because int might match the return type of a GCC
23977 builtin and then its argument prototype would still apply. */
23981 char perfstat_cpu_total ();
23985 return perfstat_cpu_total ();
23990 if ac_fn_c_try_link
"$LINENO"; then :
23991 ac_cv_lib_perfstat_perfstat_cpu_total
=yes
23993 ac_cv_lib_perfstat_perfstat_cpu_total
=no
23995 rm -f core conftest.err conftest.
$ac_objext \
23996 conftest
$ac_exeext conftest.
$ac_ext
23997 LIBS
=$ac_check_lib_save_LIBS
23999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_perfstat_perfstat_cpu_total" >&5
24000 $as_echo "$ac_cv_lib_perfstat_perfstat_cpu_total" >&6; }
24001 if test "x$ac_cv_lib_perfstat_perfstat_cpu_total" = x
""yes; then :
24002 cat >>confdefs.h
<<_ACEOF
24003 #define HAVE_LIBPERFSTAT 1
24006 LIBS
="-lperfstat $LIBS"
24010 test $ac_cv_lib_perfstat_perfstat_cpu_total = yes && gl_func_getloadavg_done
=yes
24013 if test $gl_func_getloadavg_done = no
; then
24014 ac_fn_c_check_header_mongrel
"$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
24015 if test "x$ac_cv_header_sys_dg_sys_info_h" = x
""yes; then :
24016 gl_func_getloadavg_done
=yes
24018 $as_echo "#define DGUX 1" >>confdefs.h
24020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
24021 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
24022 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then :
24023 $as_echo_n "(cached) " >&6
24025 ac_check_lib_save_LIBS
=$LIBS
24027 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24028 /* end confdefs.h. */
24030 /* Override any GCC internal prototype to avoid an error.
24031 Use char because int might match the return type of a GCC
24032 builtin and then its argument prototype would still apply. */
24036 char dg_sys_info ();
24040 return dg_sys_info ();
24045 if ac_fn_c_try_link
"$LINENO"; then :
24046 ac_cv_lib_dgc_dg_sys_info
=yes
24048 ac_cv_lib_dgc_dg_sys_info
=no
24050 rm -f core conftest.err conftest.
$ac_objext \
24051 conftest
$ac_exeext conftest.
$ac_ext
24052 LIBS
=$ac_check_lib_save_LIBS
24054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
24055 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
24056 if test "x$ac_cv_lib_dgc_dg_sys_info" = x
""yes; then :
24057 cat >>confdefs.h
<<_ACEOF
24058 #define HAVE_LIBDGC 1
24073 if test "x$gl_save_LIBS" = x
; then
24074 GETLOADAVG_LIBS
=$LIBS
24076 GETLOADAVG_LIBS
=`echo "$LIBS" | sed "s!$gl_save_LIBS!!"`
24081 # Test whether the system declares getloadavg. Solaris has the function
24082 # but declares it in <sys/loadavg.h>, not <stdlib.h>.
24083 for ac_header
in sys
/loadavg.h
24085 ac_fn_c_check_header_mongrel
"$LINENO" "sys/loadavg.h" "ac_cv_header_sys_loadavg_h" "$ac_includes_default"
24086 if test "x$ac_cv_header_sys_loadavg_h" = x
""yes; then :
24087 cat >>confdefs.h
<<_ACEOF
24088 #define HAVE_SYS_LOADAVG_H 1
24095 if test $ac_cv_header_sys_loadavg_h = yes; then
24096 HAVE_SYS_LOADAVG_H
=1
24098 HAVE_SYS_LOADAVG_H
=0
24100 ac_fn_c_check_decl
"$LINENO" "getloadavg" "ac_cv_have_decl_getloadavg" "#if HAVE_SYS_LOADAVG_H
24101 # include <sys/loadavg.h>
24103 #include <stdlib.h>
24105 if test "x$ac_cv_have_decl_getloadavg" = x
""yes; then :
24108 HAVE_DECL_GETLOADAVG
=0
24112 if test $HAVE_GETLOADAVG = 0; then
24121 gl_LIBOBJS
="$gl_LIBOBJS getloadavg.$ac_objext"
24124 # Figure out what our getloadavg.c needs.
24128 # On HPUX9, an unprivileged user can get load averages this way.
24129 if test $gl_func_getloadavg_done = no
; then
24130 for ac_func
in pstat_getdynamic
24132 ac_fn_c_check_func
"$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
24133 if test "x$ac_cv_func_pstat_getdynamic" = x
""yes; then :
24134 cat >>confdefs.h
<<_ACEOF
24135 #define HAVE_PSTAT_GETDYNAMIC 1
24137 gl_func_getloadavg_done
=yes
24143 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
24144 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
24145 # Irix 4.0.5F has the header but not the library.
24146 if test $gl_func_getloadavg_done = no
&& test "$ac_cv_lib_elf_elf_begin" = yes \
24147 && test "$ac_cv_lib_kvm_kvm_open" = yes; then
24148 gl_func_getloadavg_done
=yes
24150 $as_echo "#define SVR4 1" >>confdefs.h
24154 if test $gl_func_getloadavg_done = no
; then
24155 ac_fn_c_check_header_mongrel
"$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
24156 if test "x$ac_cv_header_inq_stats_cpustats_h" = x
""yes; then :
24157 gl_func_getloadavg_done
=yes
24159 $as_echo "#define UMAX 1" >>confdefs.h
24162 $as_echo "#define UMAX4_3 1" >>confdefs.h
24169 if test $gl_func_getloadavg_done = no
; then
24170 ac_fn_c_check_header_mongrel
"$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
24171 if test "x$ac_cv_header_sys_cpustats_h" = x
""yes; then :
24172 gl_func_getloadavg_done
=yes; $as_echo "#define UMAX 1" >>confdefs.h
24179 if test $gl_func_getloadavg_done = no
; then
24180 for ac_header
in mach
/mach.h
24182 ac_fn_c_check_header_mongrel
"$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
24183 if test "x$ac_cv_header_mach_mach_h" = x
""yes; then :
24184 cat >>confdefs.h
<<_ACEOF
24185 #define HAVE_MACH_MACH_H 1
24194 for ac_header
in nlist.h
24196 ac_fn_c_check_header_mongrel
"$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
24197 if test "x$ac_cv_header_nlist_h" = x
""yes; then :
24198 cat >>confdefs.h
<<_ACEOF
24199 #define HAVE_NLIST_H 1
24201 ac_fn_c_check_member
"$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
24203 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x
""yes; then :
24205 cat >>confdefs.h
<<_ACEOF
24206 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
24212 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24213 /* end confdefs.h. */
24219 #ifdef HAVE_STRUCT_NLIST_N_UN_N_NAME
24220 x.n_un.n_name = "";
24228 if ac_fn_c_try_link
"$LINENO"; then :
24230 $as_echo "#define N_NAME_POINTER 1" >>confdefs.h
24233 rm -f core conftest.err conftest.
$ac_objext \
24234 conftest
$ac_exeext conftest.
$ac_ext
24246 GNULIB_GETLOADAVG
=1
24257 if test $REPLACE_GETOPT = 1; then
24266 gl_LIBOBJS
="$gl_LIBOBJS getopt.$ac_objext"
24276 gl_LIBOBJS
="$gl_LIBOBJS getopt1.$ac_objext"
24281 GNULIB_GL_UNISTD_H_GETOPT
=1
24291 if test -n "$gl_replace_getopt"; then
24295 if test $REPLACE_GETOPT = 1; then
24299 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
24305 if test $REPLACE_GETOPT = 1; then
24314 gl_LIBOBJS
="$gl_LIBOBJS getopt.$ac_objext"
24324 gl_LIBOBJS
="$gl_LIBOBJS getopt1.$ac_objext"
24329 GNULIB_GL_UNISTD_H_GETOPT
=1
24343 gl_gettimeofday_timezone
=void
24344 if test $ac_cv_func_gettimeofday != yes; then
24345 HAVE_GETTIMEOFDAY
=0
24350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday clobbers localtime buffer" >&5
24351 $as_echo_n "checking whether gettimeofday clobbers localtime buffer... " >&6; }
24352 if test "${gl_cv_func_gettimeofday_clobber+set}" = set; then :
24353 $as_echo_n "(cached) " >&6
24355 if test "$cross_compiling" = yes; then :
24356 # When cross-compiling:
24358 # Guess all is fine on glibc systems.
24359 *-gnu*) gl_cv_func_gettimeofday_clobber
="guessing no" ;;
24360 # If we don't know, assume the worst.
24361 *) gl_cv_func_gettimeofday_clobber
="guessing yes" ;;
24365 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24366 /* end confdefs.h. */
24367 #include <string.h>
24368 #include <sys/time.h>
24370 #include <stdlib.h>
24378 struct tm saved_lt;
24380 lt = localtime (&t);
24382 gettimeofday (&tv, NULL);
24383 return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0;
24389 if ac_fn_c_try_run
"$LINENO"; then :
24390 gl_cv_func_gettimeofday_clobber
=no
24392 gl_cv_func_gettimeofday_clobber
=yes
24394 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24395 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_clobber" >&5
24400 $as_echo "$gl_cv_func_gettimeofday_clobber" >&6; }
24402 case "$gl_cv_func_gettimeofday_clobber" in
24404 REPLACE_GETTIMEOFDAY
=1
24407 $as_echo "#define gmtime rpl_gmtime" >>confdefs.h
24410 $as_echo "#define localtime rpl_localtime" >>confdefs.h
24414 $as_echo "#define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1" >>confdefs.h
24419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday with POSIX signature" >&5
24420 $as_echo_n "checking for gettimeofday with POSIX signature... " >&6; }
24421 if test "${gl_cv_func_gettimeofday_posix_signature+set}" = set; then :
24422 $as_echo_n "(cached) " >&6
24424 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24425 /* end confdefs.h. */
24426 #include <sys/time.h>
24428 int gettimeofday (struct timeval *restrict, void *restrict);
24433 /* glibc uses struct timezone * rather than the POSIX void *
24434 if _GNU_SOURCE is defined. However, since the only portable
24435 use of gettimeofday uses NULL as the second parameter, and
24436 since the glibc definition is actually more typesafe, it is
24437 not worth wrapping this to get a compliant signature. */
24438 int (*f) (struct timeval *restrict, void *restrict)
24441 return !(x | c.tv_sec | c.tv_usec);
24447 if ac_fn_c_try_compile
"$LINENO"; then :
24448 gl_cv_func_gettimeofday_posix_signature
=yes
24450 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24451 /* end confdefs.h. */
24452 #include <sys/time.h>
24453 int gettimeofday (struct timeval *restrict, struct timezone *restrict);
24463 if ac_fn_c_try_compile
"$LINENO"; then :
24464 gl_cv_func_gettimeofday_posix_signature
=almost
24466 gl_cv_func_gettimeofday_posix_signature
=no
24468 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24470 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_posix_signature" >&5
24473 $as_echo "$gl_cv_func_gettimeofday_posix_signature" >&6; }
24474 if test $gl_cv_func_gettimeofday_posix_signature = almost
; then
24475 gl_gettimeofday_timezone
='struct timezone'
24476 elif test $gl_cv_func_gettimeofday_posix_signature != yes; then
24477 REPLACE_GETTIMEOFDAY
=1
24479 if test $REPLACE_STRUCT_TIMEVAL = 1; then
24480 REPLACE_GETTIMEOFDAY
=1
24485 cat >>confdefs.h
<<_ACEOF
24486 #define GETTIMEOFDAY_TIMEZONE $gl_gettimeofday_timezone
24490 if test $HAVE_GETTIMEOFDAY = 0 ||
test $REPLACE_GETTIMEOFDAY = 1; then
24499 gl_LIBOBJS
="$gl_LIBOBJS gettimeofday.$ac_objext"
24502 for ac_header
in sys
/timeb.h
24504 ac_fn_c_check_header_mongrel
"$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
24505 if test "x$ac_cv_header_sys_timeb_h" = x
""yes; then :
24506 cat >>confdefs.h
<<_ACEOF
24507 #define HAVE_SYS_TIMEB_H 1
24514 for ac_func
in _ftime
24516 ac_fn_c_check_func
"$LINENO" "_ftime" "ac_cv_func__ftime"
24517 if test "x$ac_cv_func__ftime" = x
""yes; then :
24518 cat >>confdefs.h
<<_ACEOF
24519 #define HAVE__FTIME 1
24532 GNULIB_GETTIMEOFDAY
=1
24543 if test $ac_cv_func_lstat = yes; then
24545 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
24554 if test $REPLACE_LSTAT = 1; then
24563 gl_LIBOBJS
="$gl_LIBOBJS lstat.$ac_objext"
24583 if test $ac_cv_have_decl_memrchr = no
; then
24584 HAVE_DECL_MEMRCHR
=0
24587 for ac_func
in memrchr
24589 ac_fn_c_check_func
"$LINENO" "memrchr" "ac_cv_func_memrchr"
24590 if test "x$ac_cv_func_memrchr" = x
""yes; then :
24591 cat >>confdefs.h
<<_ACEOF
24592 #define HAVE_MEMRCHR 1
24599 if test $ac_cv_func_memrchr = no
; then
24608 gl_LIBOBJS
="$gl_LIBOBJS memrchr.$ac_objext"
24629 if test $ac_cv_func_mkostemp != yes; then
24633 if test $HAVE_MKOSTEMP = 0; then
24642 gl_LIBOBJS
="$gl_LIBOBJS mkostemp.$ac_objext"
24649 cat >>confdefs.h
<<_ACEOF
24650 #define GNULIB_MKOSTEMP 1
24671 if test $APPLE_UNIVERSAL_BUILD = 1; then
24672 # A universal build on Apple Mac OS X platforms.
24673 # The test result would be 'yes' in 32-bit mode and 'no' in 64-bit mode.
24674 # But we need a configuration result that is valid in both modes.
24675 gl_cv_func_working_mktime
=no
24677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
24678 $as_echo_n "checking for working mktime... " >&6; }
24679 if test "${gl_cv_func_working_mktime+set}" = set; then :
24680 $as_echo_n "(cached) " >&6
24682 if test "$cross_compiling" = yes; then :
24683 gl_cv_func_working_mktime
=no
24685 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24686 /* end confdefs.h. */
24687 /* Test program from Paul Eggert and Tony Leneis. */
24688 #include <limits.h>
24689 #include <stdlib.h>
24692 #ifdef HAVE_UNISTD_H
24693 # include <unistd.h>
24696 #if HAVE_DECL_ALARM
24697 # include <signal.h>
24700 /* Work around redefinition to rpl_putenv by other config tests. */
24703 static time_t time_t_max;
24704 static time_t time_t_min;
24706 /* Values we'll use to set the TZ environment variable. */
24707 static char *tz_strings[] = {
24708 (char *) 0, "TZ=GMT0", "TZ=JST-9",
24709 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
24711 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
24713 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
24714 Based on a problem report from Andreas Jaeger. */
24716 spring_forward_gap ()
24718 /* glibc (up to about 1998-10-07) failed this test. */
24721 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
24722 instead of "TZ=America/Vancouver" in order to detect the bug even
24723 on systems that don't support the Olson extension, or don't have the
24724 full zoneinfo tables installed. */
24725 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
24734 return mktime (&tm) != (time_t) -1;
24738 mktime_test1 (time_t now)
24741 return ! (lt = localtime (&now)) || mktime (lt) == now;
24745 mktime_test (time_t now)
24747 return (mktime_test1 (now)
24748 && mktime_test1 ((time_t) (time_t_max - now))
24749 && mktime_test1 ((time_t) (time_t_min + now)));
24755 /* Based on code from Ariel Faigon. */
24765 return tm.tm_mon == 2 && tm.tm_mday == 31;
24769 bigtime_test (int j)
24773 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
24774 now = mktime (&tm);
24775 if (now != (time_t) -1)
24777 struct tm *lt = localtime (&now);
24779 && lt->tm_year == tm.tm_year
24780 && lt->tm_mon == tm.tm_mon
24781 && lt->tm_mday == tm.tm_mday
24782 && lt->tm_hour == tm.tm_hour
24783 && lt->tm_min == tm.tm_min
24784 && lt->tm_sec == tm.tm_sec
24785 && lt->tm_yday == tm.tm_yday
24786 && lt->tm_wday == tm.tm_wday
24787 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
24788 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
24797 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
24798 ignoring leap seconds. */
24799 unsigned long int answer = 2527315200UL;
24803 tm.tm_year = 2050 - 1900;
24806 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
24809 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
24810 instead of "TZ=America/Vancouver" in order to detect the bug even
24811 on systems that don't support the Olson extension, or don't have the
24812 full zoneinfo tables installed. */
24813 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
24817 /* Check that the result is either a failure, or close enough
24818 to the correct answer that we can assume the discrepancy is
24819 due to leap seconds. */
24820 return (t == (time_t) -1
24821 || (0 < t && answer - 120 <= t && t <= answer + 120));
24830 int time_t_signed_magnitude = (time_t) ~ (time_t) 0 < (time_t) -1;
24831 int time_t_signed = ! ((time_t) 0 < (time_t) -1);
24833 #if HAVE_DECL_ALARM
24834 /* This test makes some buggy mktime implementations loop.
24835 Give up after 60 seconds; a mktime slower than that
24836 isn't worth using anyway. */
24837 signal (SIGALRM, SIG_DFL);
24841 time_t_max = (! time_t_signed
24843 : ((((time_t) 1 << (sizeof (time_t) * CHAR_BIT - 2)) - 1)
24845 time_t_min = (! time_t_signed
24847 : time_t_signed_magnitude
24851 delta = time_t_max / 997; /* a suitable prime number */
24852 for (i = 0; i < N_STRINGS; i++)
24855 putenv (tz_strings[i]);
24857 for (t = 0; t <= time_t_max - delta && (result & 1) == 0; t += delta)
24858 if (! mktime_test (t))
24860 if ((result & 2) == 0
24861 && ! (mktime_test ((time_t) 1)
24862 && mktime_test ((time_t) (60 * 60))
24863 && mktime_test ((time_t) (60 * 60 * 24))))
24866 for (j = 1; (result & 4) == 0; j <<= 1)
24868 if (! bigtime_test (j))
24870 if (INT_MAX / 2 < j)
24873 if ((result & 8) == 0 && ! bigtime_test (INT_MAX))
24876 if (! irix_6_4_bug ())
24878 if (! spring_forward_gap ())
24880 if (! year_2050_test ())
24885 if ac_fn_c_try_run
"$LINENO"; then :
24886 gl_cv_func_working_mktime
=yes
24888 gl_cv_func_working_mktime
=no
24890 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24891 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_mktime" >&5
24897 $as_echo "$gl_cv_func_working_mktime" >&6; }
24899 if test $gl_cv_func_working_mktime = no
; then
24905 if test $REPLACE_MKTIME = 1; then
24914 gl_LIBOBJS
="$gl_LIBOBJS mktime.$ac_objext"
24936 if test $ac_cv_func_pipe2 != yes; then
24956 if test $ac_cv_func_pselect = yes; then
24957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether signature of pselect conforms to POSIX" >&5
24958 $as_echo_n "checking whether signature of pselect conforms to POSIX... " >&6; }
24959 if test "${gl_cv_sig_pselect+set}" = set; then :
24960 $as_echo_n "(cached) " >&6
24962 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24963 /* end confdefs.h. */
24964 #include <sys/select.h>
24969 int (*p) (int, fd_set *, fd_set *, fd_set *restrict,
24970 struct timespec const *restrict,
24971 sigset_t const *restrict) = pselect;
24977 if ac_fn_c_try_link
"$LINENO"; then :
24978 gl_cv_sig_pselect
=yes
24980 gl_cv_sig_pselect
=no
24982 rm -f core conftest.err conftest.
$ac_objext \
24983 conftest
$ac_exeext conftest.
$ac_ext
24985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sig_pselect" >&5
24986 $as_echo "$gl_cv_sig_pselect" >&6; }
24988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pselect detects invalid fds" >&5
24989 $as_echo_n "checking whether pselect detects invalid fds... " >&6; }
24990 if test "${gl_cv_func_pselect_detects_ebadf+set}" = set; then :
24991 $as_echo_n "(cached) " >&6
24994 if test "$cross_compiling" = yes; then :
24997 # Guess yes on glibc systems.
24998 *-gnu*) gl_cv_func_pselect_detects_ebadf
="guessing yes" ;;
24999 # If we don't know, assume the worst.
25000 *) gl_cv_func_pselect_detects_ebadf
="guessing no" ;;
25004 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25005 /* end confdefs.h. */
25007 #include <sys/types.h>
25008 #include <sys/time.h>
25009 #if HAVE_SYS_SELECT_H
25010 # include <sys/select.h>
25012 #include <unistd.h>
25024 struct timespec timeout;
25025 timeout.tv_sec = 0;
25026 timeout.tv_nsec = 5000;
25027 return pselect (17, &set, NULL, NULL, &timeout, NULL) != -1 || errno != EBADF;
25033 if ac_fn_c_try_run
"$LINENO"; then :
25034 gl_cv_func_pselect_detects_ebadf
=yes
25036 gl_cv_func_pselect_detects_ebadf
=no
25038 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
25039 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
25044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pselect_detects_ebadf" >&5
25045 $as_echo "$gl_cv_func_pselect_detects_ebadf" >&6; }
25046 case $gl_cv_func_pselect_detects_ebadf in
25048 *) REPLACE_PSELECT
=1 ;;
25052 if test $ac_cv_func_pselect = no ||
test $gl_cv_sig_pselect = no
; then
25056 if test $HAVE_PSELECT = 0 ||
test $REPLACE_PSELECT = 1; then
25065 gl_LIBOBJS
="$gl_LIBOBJS pselect.$ac_objext"
25083 LIB_PTHREAD_SIGMASK
=
25088 if test "$gl_threads_api" = posix
; then
25089 if test $ac_cv_func_pthread_sigmask = yes; then
25092 if test -n "$LIBMULTITHREAD"; then
25093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_sigmask in $LIBMULTITHREAD" >&5
25094 $as_echo_n "checking for pthread_sigmask in $LIBMULTITHREAD... " >&6; }
25095 if test "${gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD+set}" = set; then :
25096 $as_echo_n "(cached) " >&6
25098 gl_save_LIBS
="$LIBS"
25099 LIBS
="$LIBS $LIBMULTITHREAD"
25100 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25101 /* end confdefs.h. */
25102 #include <pthread.h>
25103 #include <signal.h>
25108 return pthread_sigmask (0, (sigset_t *) 0, (sigset_t *) 0);
25114 if ac_fn_c_try_link
"$LINENO"; then :
25115 gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD
=yes
25117 gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD
=no
25119 rm -f core conftest.err conftest.
$ac_objext \
25120 conftest
$ac_exeext conftest.
$ac_ext
25121 LIBS
="$gl_save_LIBS"
25124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD" >&5
25125 $as_echo "$gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD" >&6; }
25126 if test $gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD = yes; then
25127 LIB_PTHREAD_SIGMASK
="$LIBMULTITHREAD"
25129 HAVE_PTHREAD_SIGMASK
=0
25132 HAVE_PTHREAD_SIGMASK
=0
25136 if test $ac_cv_func_pthread_sigmask = yes; then
25137 REPLACE_PTHREAD_SIGMASK
=1
25139 HAVE_PTHREAD_SIGMASK
=0
25146 if test $HAVE_PTHREAD_SIGMASK = 1; then
25149 if test -z "$LIB_PTHREAD_SIGMASK"; then
25150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask works without -lpthread" >&5
25151 $as_echo_n "checking whether pthread_sigmask works without -lpthread... " >&6; }
25152 if test "${gl_cv_func_pthread_sigmask_in_libc_works+set}" = set; then :
25153 $as_echo_n "(cached) " >&6
25156 if test "$cross_compiling" = yes; then :
25159 freebsd
* | hpux
* | solaris | solaris2.
[2-9]*)
25160 gl_cv_func_pthread_sigmask_in_libc_works
="guessing no";;
25162 gl_cv_func_pthread_sigmask_in_libc_works
="guessing yes";;
25166 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25167 /* end confdefs.h. */
25169 #include <pthread.h>
25170 #include <signal.h>
25171 #include <stddef.h>
25175 sigemptyset (&set);
25176 return pthread_sigmask (1729, &set, NULL) != 0;
25179 if ac_fn_c_try_run
"$LINENO"; then :
25180 gl_cv_func_pthread_sigmask_in_libc_works
=no
25182 gl_cv_func_pthread_sigmask_in_libc_works
=yes
25184 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
25185 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
25190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_in_libc_works" >&5
25191 $as_echo "$gl_cv_func_pthread_sigmask_in_libc_works" >&6; }
25192 case "$gl_cv_func_pthread_sigmask_in_libc_works" in
25194 REPLACE_PTHREAD_SIGMASK
=1
25196 $as_echo "#define PTHREAD_SIGMASK_INEFFECTIVE 1" >>confdefs.h
25202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask returns error numbers" >&5
25203 $as_echo_n "checking whether pthread_sigmask returns error numbers... " >&6; }
25204 if test "${gl_cv_func_pthread_sigmask_return_works+set}" = set; then :
25205 $as_echo_n "(cached) " >&6
25208 gl_save_LIBS
="$LIBS"
25209 LIBS
="$LIBS $LIB_PTHREAD_SIGMASK"
25210 if test "$cross_compiling" = yes; then :
25213 gl_cv_func_pthread_sigmask_return_works
="guessing no";;
25215 gl_cv_func_pthread_sigmask_return_works
="guessing yes";;
25219 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25220 /* end confdefs.h. */
25222 #include <pthread.h>
25223 #include <signal.h>
25224 #include <stddef.h>
25228 sigemptyset (&set);
25229 if (pthread_sigmask (1729, &set, NULL) == -1)
25234 if ac_fn_c_try_run
"$LINENO"; then :
25235 gl_cv_func_pthread_sigmask_return_works
=yes
25237 gl_cv_func_pthread_sigmask_return_works
=no
25239 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
25240 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
25243 LIBS
="$gl_save_LIBS"
25246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_return_works" >&5
25247 $as_echo "$gl_cv_func_pthread_sigmask_return_works" >&6; }
25248 case "$gl_cv_func_pthread_sigmask_return_works" in
25250 REPLACE_PTHREAD_SIGMASK
=1
25252 $as_echo "#define PTHREAD_SIGMASK_FAILS_WITH_ERRNO 1" >>confdefs.h
25257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask unblocks signals correctly" >&5
25258 $as_echo_n "checking whether pthread_sigmask unblocks signals correctly... " >&6; }
25259 if test "${gl_cv_func_pthread_sigmask_unblock_works+set}" = set; then :
25260 $as_echo_n "(cached) " >&6
25265 gl_cv_func_pthread_sigmask_unblock_works
="guessing no";;
25267 gl_cv_func_pthread_sigmask_unblock_works
="guessing yes";;
25269 gl_save_LIBS
="$LIBS"
25270 LIBS
="$LIBS $LIBMULTITHREAD"
25271 if test "$cross_compiling" = yes; then :
25274 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25275 /* end confdefs.h. */
25277 #include <pthread.h>
25278 #include <signal.h>
25280 #include <stdlib.h>
25281 #include <unistd.h>
25282 static volatile int sigint_occurred;
25284 sigint_handler (int sig)
25291 int pid = getpid ();
25293 signal (SIGINT, sigint_handler);
25294 sigemptyset (&set);
25295 sigaddset (&set, SIGINT);
25296 if (!(pthread_sigmask (SIG_BLOCK, &set, NULL) == 0))
25298 sprintf (command, "sh -c 'sleep 1; kill -%d %d' &", SIGINT, pid);
25299 if (!(system (command) == 0))
25302 if (!(sigint_occurred == 0))
25304 if (!(pthread_sigmask (SIG_UNBLOCK, &set, NULL) == 0))
25306 if (!(sigint_occurred == 1)) /* This fails on IRIX. */
25311 if ac_fn_c_try_run
"$LINENO"; then :
25314 gl_cv_func_pthread_sigmask_unblock_works
=no
25316 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
25317 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
25320 LIBS
="$gl_save_LIBS"
25323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_unblock_works" >&5
25324 $as_echo "$gl_cv_func_pthread_sigmask_unblock_works" >&6; }
25325 case "$gl_cv_func_pthread_sigmask_unblock_works" in
25327 REPLACE_PTHREAD_SIGMASK
=1
25329 $as_echo "#define PTHREAD_SIGMASK_UNBLOCK_BUG 1" >>confdefs.h
25335 if test $HAVE_PTHREAD_SIGMASK = 0 ||
test $REPLACE_PTHREAD_SIGMASK = 1; then
25344 gl_LIBOBJS
="$gl_LIBOBJS pthread_sigmask.$ac_objext"
25347 if test $HAVE_PTHREAD_SIGMASK = 1; then
25349 $as_echo "#define HAVE_PTHREAD_SIGMASK 1" >>confdefs.h
25359 GNULIB_PTHREAD_SIGMASK
=1
25367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for putenv compatible with GNU and SVID" >&5
25368 $as_echo_n "checking for putenv compatible with GNU and SVID... " >&6; }
25369 if test "${gl_cv_func_svid_putenv+set}" = set; then :
25370 $as_echo_n "(cached) " >&6
25372 if test "$cross_compiling" = yes; then :
25374 # Guess yes on glibc systems.
25375 *-gnu*) gl_cv_func_svid_putenv
="guessing yes" ;;
25376 # If we don't know, assume the worst.
25377 *) gl_cv_func_svid_putenv
="guessing no" ;;
25381 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25382 /* end confdefs.h. */
25383 $ac_includes_default
25388 /* Put it in env. */
25389 if (putenv ("CONFTEST_putenv=val"))
25392 /* Try to remove it. */
25393 if (putenv ("CONFTEST_putenv"))
25396 /* Make sure it was deleted. */
25397 if (getenv ("CONFTEST_putenv") != 0)
25406 if ac_fn_c_try_run
"$LINENO"; then :
25407 gl_cv_func_svid_putenv
=yes
25409 gl_cv_func_svid_putenv
=no
25411 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
25412 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
25417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_svid_putenv" >&5
25418 $as_echo "$gl_cv_func_svid_putenv" >&6; }
25419 case "$gl_cv_func_svid_putenv" in
25426 if test $REPLACE_PUTENV = 1; then
25435 gl_LIBOBJS
="$gl_LIBOBJS putenv.$ac_objext"
25438 ac_fn_c_check_decl
"$LINENO" "_putenv" "ac_cv_have_decl__putenv" "$ac_includes_default"
25439 if test "x$ac_cv_have_decl__putenv" = x
""yes; then :
25445 cat >>confdefs.h
<<_ACEOF
25446 #define HAVE_DECL__PUTENV $ac_have_decl
25463 # Check whether --enable-acl was given.
25464 if test "${enable_acl+set}" = set; then :
25465 enableval
=$enable_acl;
25473 if test "x$enable_acl" != "xno"; then
25474 for ac_header
in sys
/acl.h
25476 ac_fn_c_check_header_mongrel
"$LINENO" "sys/acl.h" "ac_cv_header_sys_acl_h" "$ac_includes_default"
25477 if test "x$ac_cv_header_sys_acl_h" = x
""yes; then :
25478 cat >>confdefs.h
<<_ACEOF
25479 #define HAVE_SYS_ACL_H 1
25486 if test $ac_cv_header_sys_acl_h = yes; then
25489 if test $use_acl = 0; then
25490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing acl_get_file" >&5
25491 $as_echo_n "checking for library containing acl_get_file... " >&6; }
25492 if test "${ac_cv_search_acl_get_file+set}" = set; then :
25493 $as_echo_n "(cached) " >&6
25495 ac_func_search_save_LIBS
=$LIBS
25496 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25497 /* end confdefs.h. */
25499 /* Override any GCC internal prototype to avoid an error.
25500 Use char because int might match the return type of a GCC
25501 builtin and then its argument prototype would still apply. */
25505 char acl_get_file ();
25509 return acl_get_file ();
25514 for ac_lib
in '' acl pacl
; do
25515 if test -z "$ac_lib"; then
25516 ac_res
="none required"
25519 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
25521 if ac_fn_c_try_link
"$LINENO"; then :
25522 ac_cv_search_acl_get_file
=$ac_res
25524 rm -f core conftest.err conftest.
$ac_objext \
25526 if test "${ac_cv_search_acl_get_file+set}" = set; then :
25530 if test "${ac_cv_search_acl_get_file+set}" = set; then :
25533 ac_cv_search_acl_get_file
=no
25535 rm conftest.
$ac_ext
25536 LIBS
=$ac_func_search_save_LIBS
25538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_acl_get_file" >&5
25539 $as_echo "$ac_cv_search_acl_get_file" >&6; }
25540 ac_res
=$ac_cv_search_acl_get_file
25541 if test "$ac_res" != no
; then :
25542 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
25543 if test "$ac_cv_search_acl_get_file" != "none required"; then
25544 LIB_ACL
=$ac_cv_search_acl_get_file
25546 for ac_func
in acl_get_file acl_get_fd acl_set_file acl_set_fd \
25547 acl_free acl_from_mode acl_from_text \
25548 acl_delete_def_file acl_extended_file \
25549 acl_delete_fd_np acl_delete_file_np \
25550 acl_copy_ext_native acl_create_entry_np \
25551 acl_to_short_text acl_free_text
25553 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25554 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
25555 eval as_val
=\$
$as_ac_var
25556 if test "x$as_val" = x
""yes; then :
25557 cat >>confdefs.h
<<_ACEOF
25558 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25564 # If the acl_get_file bug is detected, don't enable the ACL support.
25566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working acl_get_file" >&5
25567 $as_echo_n "checking for working acl_get_file... " >&6; }
25568 if test "${gl_cv_func_working_acl_get_file+set}" = set; then :
25569 $as_echo_n "(cached) " >&6
25571 gl_cv_func_working_acl_get_file
=no
25572 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25573 /* end confdefs.h. */
25574 #include <sys/types.h>
25575 #include <sys/acl.h>
25581 if (!acl_get_file (".", ACL_TYPE_ACCESS) && errno == ENOENT)
25589 if ac_fn_c_try_link
"$LINENO"; then :
25590 if test $cross_compiling = yes; then
25591 gl_cv_func_working_acl_get_file
="guessing yes"
25592 elif .
/conftest
$ac_exeext; then
25593 gl_cv_func_working_acl_get_file
=yes
25596 rm -f core conftest.err conftest.
$ac_objext \
25597 conftest
$ac_exeext conftest.
$ac_ext
25599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_acl_get_file" >&5
25600 $as_echo "$gl_cv_func_working_acl_get_file" >&6; }
25601 if test "$gl_cv_func_working_acl_get_file" != no
; then :
25605 if test $use_acl = 1; then
25606 for ac_header
in acl
/libacl.h
25608 ac_fn_c_check_header_mongrel
"$LINENO" "acl/libacl.h" "ac_cv_header_acl_libacl_h" "$ac_includes_default"
25609 if test "x$ac_cv_header_acl_libacl_h" = x
""yes; then :
25610 cat >>confdefs.h
<<_ACEOF
25611 #define HAVE_ACL_LIBACL_H 1
25626 for ac_func
in acl_entries
25628 ac_fn_c_check_func
"$LINENO" "acl_entries" "ac_cv_func_acl_entries"
25629 if test "x$ac_cv_func_acl_entries" = x
""yes; then :
25630 cat >>confdefs.h
<<_ACEOF
25631 #define HAVE_ACL_ENTRIES 1
25636 gl_LIBOBJS
="$gl_LIBOBJS $ac_func.$ac_objext"
25642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_FIRST_ENTRY" >&5
25643 $as_echo_n "checking for ACL_FIRST_ENTRY... " >&6; }
25644 if test "${gl_cv_acl_ACL_FIRST_ENTRY+set}" = set; then :
25645 $as_echo_n "(cached) " >&6
25647 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25648 /* end confdefs.h. */
25649 #include <sys/types.h>
25650 #include <sys/acl.h>
25651 int type = ACL_FIRST_ENTRY;
25660 if ac_fn_c_try_compile
"$LINENO"; then :
25661 gl_cv_acl_ACL_FIRST_ENTRY
=yes
25663 gl_cv_acl_ACL_FIRST_ENTRY
=no
25665 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_acl_ACL_FIRST_ENTRY" >&5
25668 $as_echo "$gl_cv_acl_ACL_FIRST_ENTRY" >&6; }
25669 if test $gl_cv_acl_ACL_FIRST_ENTRY = yes; then
25671 $as_echo "#define HAVE_ACL_FIRST_ENTRY 1" >>confdefs.h
25674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_EXTENDED" >&5
25675 $as_echo_n "checking for ACL_TYPE_EXTENDED... " >&6; }
25676 if test "${gl_cv_acl_ACL_TYPE_EXTENDED+set}" = set; then :
25677 $as_echo_n "(cached) " >&6
25679 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25680 /* end confdefs.h. */
25681 #include <sys/types.h>
25682 #include <sys/acl.h>
25683 int type = ACL_TYPE_EXTENDED;
25692 if ac_fn_c_try_compile
"$LINENO"; then :
25693 gl_cv_acl_ACL_TYPE_EXTENDED
=yes
25695 gl_cv_acl_ACL_TYPE_EXTENDED
=no
25697 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_acl_ACL_TYPE_EXTENDED" >&5
25700 $as_echo "$gl_cv_acl_ACL_TYPE_EXTENDED" >&6; }
25701 if test $gl_cv_acl_ACL_TYPE_EXTENDED = yes; then
25703 $as_echo "#define HAVE_ACL_TYPE_EXTENDED 1" >>confdefs.h
25714 if test $use_acl = 0; then
25715 for ac_func
in facl
25717 ac_fn_c_check_func
"$LINENO" "facl" "ac_cv_func_facl"
25718 if test "x$ac_cv_func_facl" = x
""yes; then :
25719 cat >>confdefs.h
<<_ACEOF
25720 #define HAVE_FACL 1
25726 if test $ac_cv_func_facl = yes; then
25727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing acl_trivial" >&5
25728 $as_echo_n "checking for library containing acl_trivial... " >&6; }
25729 if test "${ac_cv_search_acl_trivial+set}" = set; then :
25730 $as_echo_n "(cached) " >&6
25732 ac_func_search_save_LIBS
=$LIBS
25733 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25734 /* end confdefs.h. */
25736 /* Override any GCC internal prototype to avoid an error.
25737 Use char because int might match the return type of a GCC
25738 builtin and then its argument prototype would still apply. */
25742 char acl_trivial ();
25746 return acl_trivial ();
25751 for ac_lib
in '' sec
; do
25752 if test -z "$ac_lib"; then
25753 ac_res
="none required"
25756 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
25758 if ac_fn_c_try_link
"$LINENO"; then :
25759 ac_cv_search_acl_trivial
=$ac_res
25761 rm -f core conftest.err conftest.
$ac_objext \
25763 if test "${ac_cv_search_acl_trivial+set}" = set; then :
25767 if test "${ac_cv_search_acl_trivial+set}" = set; then :
25770 ac_cv_search_acl_trivial
=no
25772 rm conftest.
$ac_ext
25773 LIBS
=$ac_func_search_save_LIBS
25775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_acl_trivial" >&5
25776 $as_echo "$ac_cv_search_acl_trivial" >&6; }
25777 ac_res
=$ac_cv_search_acl_trivial
25778 if test "$ac_res" != no
; then :
25779 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
25780 if test "$ac_cv_search_acl_trivial" != "none required"; then
25781 LIB_ACL
=$ac_cv_search_acl_trivial
25786 for ac_func
in acl_trivial
25788 ac_fn_c_check_func
"$LINENO" "acl_trivial" "ac_cv_func_acl_trivial"
25789 if test "x$ac_cv_func_acl_trivial" = x
""yes; then :
25790 cat >>confdefs.h
<<_ACEOF
25791 #define HAVE_ACL_TRIVIAL 1
25801 if test $use_acl = 0; then
25802 for ac_func
in getacl
25804 ac_fn_c_check_func
"$LINENO" "getacl" "ac_cv_func_getacl"
25805 if test "x$ac_cv_func_getacl" = x
""yes; then :
25806 cat >>confdefs.h
<<_ACEOF
25807 #define HAVE_GETACL 1
25813 if test $ac_cv_func_getacl = yes; then
25816 for ac_header
in aclv.h
25818 ac_fn_c_check_header_compile
"$LINENO" "aclv.h" "ac_cv_header_aclv_h" "#include <sys/types.h>
25820 if test "x$ac_cv_header_aclv_h" = x
""yes; then :
25821 cat >>confdefs.h
<<_ACEOF
25822 #define HAVE_ACLV_H 1
25831 if test $use_acl = 0; then
25832 for ac_func
in aclx_get
25834 ac_fn_c_check_func
"$LINENO" "aclx_get" "ac_cv_func_aclx_get"
25835 if test "x$ac_cv_func_aclx_get" = x
""yes; then :
25836 cat >>confdefs.h
<<_ACEOF
25837 #define HAVE_ACLX_GET 1
25843 if test $ac_cv_func_aclx_get = yes; then
25848 if test $use_acl = 0 ||
test "$ac_cv_func_aclx_get" = yes; then
25849 for ac_func
in statacl
25851 ac_fn_c_check_func
"$LINENO" "statacl" "ac_cv_func_statacl"
25852 if test "x$ac_cv_func_statacl" = x
""yes; then :
25853 cat >>confdefs.h
<<_ACEOF
25854 #define HAVE_STATACL 1
25860 if test $ac_cv_func_statacl = yes; then
25865 if test $use_acl = 0; then
25866 for ac_func
in aclsort
25868 ac_fn_c_check_func
"$LINENO" "aclsort" "ac_cv_func_aclsort"
25869 if test "x$ac_cv_func_aclsort" = x
""yes; then :
25870 cat >>confdefs.h
<<_ACEOF
25871 #define HAVE_ACLSORT 1
25877 if test $ac_cv_func_aclsort = yes; then
25884 if test "x$enable_acl$use_acl" = "xyes0"; then
25885 as_fn_error
"ACLs enabled but support not detected" "$LINENO" 5
25886 elif test "x$enable_acl$use_acl" = "xauto0"; then
25887 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libacl development library was not found or not usable." >&5
25888 $as_echo "$as_me: WARNING: libacl development library was not found or not usable." >&2;}
25889 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: emacs will be built without ACL support." >&5
25890 $as_echo "$as_me: WARNING: emacs will be built without ACL support." >&2;}
25895 cat >>confdefs.h
<<_ACEOF
25896 #define USE_ACL $use_acl
25905 if test $ac_cv_func_readlink = no
; then
25908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
25909 $as_echo_n "checking whether readlink signature is correct... " >&6; }
25910 if test "${gl_cv_decl_readlink_works+set}" = set; then :
25911 $as_echo_n "(cached) " >&6
25913 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25914 /* end confdefs.h. */
25915 #include <unistd.h>
25916 /* Cause compilation failure if original declaration has wrong type. */
25917 ssize_t readlink (const char *, char *, size_t);
25926 if ac_fn_c_try_compile
"$LINENO"; then :
25927 gl_cv_decl_readlink_works
=yes
25929 gl_cv_decl_readlink_works
=no
25931 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
25934 $as_echo "$gl_cv_decl_readlink_works" >&6; }
25935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
25936 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
25937 if test "${gl_cv_func_readlink_works+set}" = set; then :
25938 $as_echo_n "(cached) " >&6
25940 # We have readlink, so assume ln -s works.
25941 ln -s conftest.no-such conftest.link
25942 ln -s conftest.link conftest.lnk2
25943 if test "$cross_compiling" = yes; then :
25945 # Guess yes on glibc systems.
25946 *-gnu*) gl_cv_func_readlink_works
="guessing yes" ;;
25947 # If we don't know, assume the worst.
25948 *) gl_cv_func_readlink_works
="guessing no" ;;
25952 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25953 /* end confdefs.h. */
25954 #include <unistd.h>
25960 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
25965 if ac_fn_c_try_run
"$LINENO"; then :
25966 gl_cv_func_readlink_works
=yes
25968 gl_cv_func_readlink_works
=no
25970 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
25971 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
25974 rm -f conftest.link conftest.lnk2
25976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
25977 $as_echo "$gl_cv_func_readlink_works" >&6; }
25978 case "$gl_cv_func_readlink_works" in
25980 if test "$gl_cv_decl_readlink_works" != yes; then
25986 $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
25993 if test $HAVE_READLINK = 0 ||
test $REPLACE_READLINK = 1; then
26002 gl_LIBOBJS
="$gl_LIBOBJS readlink.$ac_objext"
26023 if test $ac_cv_func_readlinkat = no
; then
26027 if test $HAVE_READLINKAT = 0; then
26036 gl_LIBOBJS
="$gl_LIBOBJS readlinkat.$ac_objext"
26044 GNULIB_READLINKAT
=1
26051 for ac_func
in sig2str
26053 ac_fn_c_check_func
"$LINENO" "sig2str" "ac_cv_func_sig2str"
26054 if test "x$ac_cv_func_sig2str" = x
""yes; then :
26055 cat >>confdefs.h
<<_ACEOF
26056 #define HAVE_SIG2STR 1
26063 if test $ac_cv_func_sig2str = no
; then
26072 gl_LIBOBJS
="$gl_LIBOBJS sig2str.$ac_objext"
26089 if test $gl_cv_have_include_next = yes; then
26090 gl_cv_next_signal_h
='<'signal.h
'>'
26092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
26093 $as_echo_n "checking absolute name of <signal.h>... " >&6; }
26094 if test "${gl_cv_next_signal_h+set}" = set; then :
26095 $as_echo_n "(cached) " >&6
26098 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26099 /* end confdefs.h. */
26100 #include <signal.h>
26104 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
26105 *) gl_absname_cpp
="$ac_cpp" ;;
26110 gl_dirsep_regex
='[/\\]'
26113 gl_dirsep_regex
='\/'
26116 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
26118 gl_header_literal_regex
=`echo 'signal.h' \
26119 | sed -e "$gl_make_literal_regex_sed"`
26120 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
26121 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
26126 gl_cv_next_signal_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
26127 sed -n "$gl_absolute_header_sed"`'"'
26131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
26132 $as_echo "$gl_cv_next_signal_h" >&6; }
26134 NEXT_SIGNAL_H
=$gl_cv_next_signal_h
26136 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
26137 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
26138 gl_next_as_first_directive
='<'signal.h
'>'
26140 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
26141 gl_next_as_first_directive
=$gl_cv_next_signal_h
26143 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
=$gl_next_as_first_directive
26149 # AIX declares sig_atomic_t to already include volatile, and C89 compilers
26150 # then choke on 'volatile sig_atomic_t'. C99 requires that it compile.
26151 ac_fn_c_check_type
"$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
26152 #include <signal.h>
26155 if test "x$ac_cv_type_volatile_sig_atomic_t" = x
""yes; then :
26158 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
=0
26167 ac_fn_c_check_type
"$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
26168 #include <signal.h>
26171 if test "x$ac_cv_type_sighandler_t" = x
""yes; then :
26174 HAVE_SIGHANDLER_T
=0
26180 ac_fn_c_check_type
"$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
26181 /* <sys/types.h> is not needed according to POSIX, but the
26182 <sys/socket.h> in i386-unknown-freebsd4.10 and
26183 powerpc-apple-darwin5.5 required it. */
26184 #include <sys/types.h>
26185 #if HAVE_SYS_SOCKET_H
26186 # include <sys/socket.h>
26187 #elif HAVE_WS2TCPIP_H
26188 # include <ws2tcpip.h>
26192 if test "x$ac_cv_type_socklen_t" = x
""yes; then :
26195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
26196 $as_echo_n "checking for socklen_t equivalent... " >&6; }
26197 if test "${gl_cv_socklen_t_equiv+set}" = set; then :
26198 $as_echo_n "(cached) " >&6
26200 # Systems have either "struct sockaddr *" or
26201 # "void *" as the second argument to getpeername
26202 gl_cv_socklen_t_equiv
=
26203 for arg2
in "struct sockaddr" void
; do
26204 for t
in int size_t
"unsigned int" "long int" "unsigned long int"; do
26205 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26206 /* end confdefs.h. */
26207 #include <sys/types.h>
26208 #include <sys/socket.h>
26210 int getpeername (int, $arg2 *, $t *);
26215 getpeername (0, 0, &len);
26220 if ac_fn_c_try_compile
"$LINENO"; then :
26221 gl_cv_socklen_t_equiv
="$t"
26223 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26224 test "$gl_cv_socklen_t_equiv" != "" && break
26226 test "$gl_cv_socklen_t_equiv" != "" && break
26231 if test "$gl_cv_socklen_t_equiv" = ""; then
26232 as_fn_error
"Cannot find a type to use in place of socklen_t" "$LINENO" 5
26234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
26235 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
26237 cat >>confdefs.h
<<_ACEOF
26238 #define socklen_t $gl_cv_socklen_t_equiv
26244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
26245 $as_echo_n "checking for ssize_t... " >&6; }
26246 if test "${gt_cv_ssize_t+set}" = set; then :
26247 $as_echo_n "(cached) " >&6
26249 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26250 /* end confdefs.h. */
26251 #include <sys/types.h>
26255 int x = sizeof (ssize_t *) + sizeof (ssize_t);
26261 if ac_fn_c_try_compile
"$LINENO"; then :
26266 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
26269 $as_echo "$gt_cv_ssize_t" >&6; }
26270 if test $gt_cv_ssize_t = no
; then
26272 $as_echo "#define ssize_t int" >>confdefs.h
26280 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>
26281 #include <sys/stat.h>
26283 if test "x$ac_cv_member_struct_stat_st_atim_tv_nsec" = x
""yes; then :
26285 cat >>confdefs.h
<<_ACEOF
26286 #define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1
26289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat.st_atim is of type struct timespec" >&5
26290 $as_echo_n "checking whether struct stat.st_atim is of type struct timespec... " >&6; }
26291 if test "${ac_cv_typeof_struct_stat_st_atim_is_struct_timespec+set}" = set; then :
26292 $as_echo_n "(cached) " >&6
26294 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26295 /* end confdefs.h. */
26297 #include <sys/types.h>
26298 #include <sys/stat.h>
26299 #if HAVE_SYS_TIME_H
26300 # include <sys/time.h>
26303 struct timespec ts;
26316 if ac_fn_c_try_compile
"$LINENO"; then :
26317 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec
=yes
26319 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec
=no
26321 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&5
26324 $as_echo "$ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&6; }
26325 if test $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec = yes; then
26327 $as_echo "#define TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC 1" >>confdefs.h
26331 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>
26332 #include <sys/stat.h>
26334 if test "x$ac_cv_member_struct_stat_st_atimespec_tv_nsec" = x
""yes; then :
26336 cat >>confdefs.h
<<_ACEOF
26337 #define HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC 1
26342 ac_fn_c_check_member
"$LINENO" "struct stat" "st_atimensec" "ac_cv_member_struct_stat_st_atimensec" "#include <sys/types.h>
26343 #include <sys/stat.h>
26345 if test "x$ac_cv_member_struct_stat_st_atimensec" = x
""yes; then :
26347 cat >>confdefs.h
<<_ACEOF
26348 #define HAVE_STRUCT_STAT_ST_ATIMENSEC 1
26353 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>
26354 #include <sys/stat.h>
26356 if test "x$ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" = x
""yes; then :
26358 cat >>confdefs.h
<<_ACEOF
26359 #define HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC 1
26375 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>
26376 #include <sys/stat.h>
26378 if test "x$ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" = x
""yes; then :
26380 cat >>confdefs.h
<<_ACEOF
26381 #define HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC 1
26386 ac_fn_c_check_member
"$LINENO" "struct stat" "st_birthtimensec" "ac_cv_member_struct_stat_st_birthtimensec" "#include <sys/types.h>
26387 #include <sys/stat.h>
26389 if test "x$ac_cv_member_struct_stat_st_birthtimensec" = x
""yes; then :
26391 cat >>confdefs.h
<<_ACEOF
26392 #define HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC 1
26397 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>
26398 #include <sys/stat.h>
26400 if test "x$ac_cv_member_struct_stat_st_birthtim_tv_nsec" = x
""yes; then :
26402 cat >>confdefs.h
<<_ACEOF
26403 #define HAVE_STRUCT_STAT_ST_BIRTHTIM_TV_NSEC 1
26415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdalign.h" >&5
26416 $as_echo_n "checking for working stdalign.h... " >&6; }
26417 if test "${gl_cv_header_working_stdalign_h+set}" = set; then :
26418 $as_echo_n "(cached) " >&6
26420 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26421 /* end confdefs.h. */
26422 #include <stdalign.h>
26423 #include <stddef.h>
26425 /* Test that alignof yields a result consistent with offsetof.
26426 This catches GCC bug 52023
26427 <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023>. */
26429 template <class t> struct alignof_helper { char a; t b; };
26430 # define ao(type) offsetof (alignof_helper<type>, b)
26432 # define ao(type) offsetof (struct { char a; type b; }, b)
26434 char test_double[ao (double) % _Alignof (double) == 0 ? 1 : -1];
26435 char test_long[ao (long int) % _Alignof (long int) == 0 ? 1 : -1];
26436 char test_alignof[alignof (double) == _Alignof (double) ? 1 : -1];
26438 /* Test _Alignas only on platforms where gnulib can help. */
26440 ((defined __cplusplus && 201103 <= __cplusplus) \
26441 || __GNUC__ || __IBMC__ || __IBMCPP__ || __ICC \
26442 || 0x5110 <= __SUNPRO_C || 1300 <= _MSC_VER)
26443 struct alignas_test { char c; char alignas (8) alignas_8; };
26444 char test_alignas[offsetof (struct alignas_test, alignas_8) == 8
26456 if ac_fn_c_try_compile
"$LINENO"; then :
26457 gl_cv_header_working_stdalign_h
=yes
26459 gl_cv_header_working_stdalign_h
=no
26461 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdalign_h" >&5
26464 $as_echo "$gl_cv_header_working_stdalign_h" >&6; }
26466 if test $gl_cv_header_working_stdalign_h = yes; then
26469 STDALIGN_H
='stdalign.h'
26473 if test -n "$STDALIGN_H"; then
26474 GL_GENERATE_STDALIGN_H_TRUE
=
26475 GL_GENERATE_STDALIGN_H_FALSE
='#'
26477 GL_GENERATE_STDALIGN_H_TRUE
='#'
26478 GL_GENERATE_STDALIGN_H_FALSE
=
26484 NEXT_STDARG_H
='<stdarg.h>'
26485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
26486 $as_echo_n "checking for va_copy... " >&6; }
26487 if test "${gl_cv_func_va_copy+set}" = set; then :
26488 $as_echo_n "(cached) " >&6
26491 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26492 /* end confdefs.h. */
26493 #include <stdarg.h>
26499 void (*func) (va_list, va_list) = va_copy;
26506 if ac_fn_c_try_compile
"$LINENO"; then :
26507 gl_cv_func_va_copy
=yes
26509 gl_cv_func_va_copy
=no
26511 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_va_copy" >&5
26515 $as_echo "$gl_cv_func_va_copy" >&6; }
26516 if test $gl_cv_func_va_copy = no
; then
26517 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26518 /* end confdefs.h. */
26519 #if defined _AIX && !defined __GNUC__
26524 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26525 $EGREP "vaccine" >/dev
/null
2>&1; then :
26532 if test $gl_aixcc = yes; then
26542 if test $gl_cv_have_include_next = yes; then
26543 gl_cv_next_stdarg_h
='<'stdarg.h
'>'
26545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdarg.h>" >&5
26546 $as_echo_n "checking absolute name of <stdarg.h>... " >&6; }
26547 if test "${gl_cv_next_stdarg_h+set}" = set; then :
26548 $as_echo_n "(cached) " >&6
26551 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26552 /* end confdefs.h. */
26553 #include <stdarg.h>
26557 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
26558 *) gl_absname_cpp
="$ac_cpp" ;;
26563 gl_dirsep_regex
='[/\\]'
26566 gl_dirsep_regex
='\/'
26569 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
26571 gl_header_literal_regex
=`echo 'stdarg.h' \
26572 | sed -e "$gl_make_literal_regex_sed"`
26573 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
26574 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
26579 gl_cv_next_stdarg_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
26580 sed -n "$gl_absolute_header_sed"`'"'
26584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdarg_h" >&5
26585 $as_echo "$gl_cv_next_stdarg_h" >&6; }
26587 NEXT_STDARG_H
=$gl_cv_next_stdarg_h
26589 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
26590 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
26591 gl_next_as_first_directive
='<'stdarg.h
'>'
26593 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
26594 gl_next_as_first_directive
=$gl_cv_next_stdarg_h
26596 NEXT_AS_FIRST_DIRECTIVE_STDARG_H
=$gl_next_as_first_directive
26601 if test "$gl_cv_next_stdarg_h" = '""'; then
26602 gl_cv_next_stdarg_h
='"///usr/include/stdarg.h"'
26603 NEXT_STDARG_H
="$gl_cv_next_stdarg_h"
26607 saved_as_echo_n
="$as_echo_n"
26609 if test "${gl_cv_func___va_copy+set}" = set; then :
26610 $as_echo_n "(cached) " >&6
26613 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26614 /* end confdefs.h. */
26615 #include <stdarg.h>
26628 if ac_fn_c_try_compile
"$LINENO"; then :
26629 gl_cv_func___va_copy
=yes
26631 gl_cv_func___va_copy
=no
26633 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26636 as_echo_n
="$saved_as_echo_n"
26638 if test $gl_cv_func___va_copy = yes; then
26640 $as_echo "#define va_copy __va_copy" >>confdefs.h
26645 $as_echo "#define va_copy gl_va_copy" >>confdefs.h
26651 if test -n "$STDARG_H"; then
26652 GL_GENERATE_STDARG_H_TRUE
=
26653 GL_GENERATE_STDARG_H_FALSE
='#'
26655 GL_GENERATE_STDARG_H_TRUE
='#'
26656 GL_GENERATE_STDARG_H_FALSE
=
26664 # Define two additional variables used in the Makefile substitution.
26666 if test "$ac_cv_header_stdbool_h" = yes; then
26669 STDBOOL_H
='stdbool.h'
26672 if test -n "$STDBOOL_H"; then
26673 GL_GENERATE_STDBOOL_H_TRUE
=
26674 GL_GENERATE_STDBOOL_H_FALSE
='#'
26676 GL_GENERATE_STDBOOL_H_TRUE
='#'
26677 GL_GENERATE_STDBOOL_H_FALSE
=
26681 if test "$ac_cv_type__Bool" = yes; then
26692 if test $gt_cv_c_wchar_t = no
; then
26696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
26697 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
26698 if test "${gl_cv_decl_null_works+set}" = set; then :
26699 $as_echo_n "(cached) " >&6
26701 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26702 /* end confdefs.h. */
26703 #include <stddef.h>
26704 int test[2 * (sizeof NULL == sizeof (void *)) -1];
26714 if ac_fn_c_try_compile
"$LINENO"; then :
26715 gl_cv_decl_null_works
=yes
26717 gl_cv_decl_null_works
=no
26719 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
26722 $as_echo "$gl_cv_decl_null_works" >&6; }
26723 if test $gl_cv_decl_null_works = no
; then
26728 if test -n "$STDDEF_H"; then
26729 GL_GENERATE_STDDEF_H_TRUE
=
26730 GL_GENERATE_STDDEF_H_FALSE
='#'
26732 GL_GENERATE_STDDEF_H_TRUE
='#'
26733 GL_GENERATE_STDDEF_H_FALSE
=
26736 if test -n "$STDDEF_H"; then
26745 if test $gl_cv_have_include_next = yes; then
26746 gl_cv_next_stddef_h
='<'stddef.h
'>'
26748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
26749 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
26750 if test "${gl_cv_next_stddef_h+set}" = set; then :
26751 $as_echo_n "(cached) " >&6
26754 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26755 /* end confdefs.h. */
26756 #include <stddef.h>
26760 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
26761 *) gl_absname_cpp
="$ac_cpp" ;;
26766 gl_dirsep_regex
='[/\\]'
26769 gl_dirsep_regex
='\/'
26772 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
26774 gl_header_literal_regex
=`echo 'stddef.h' \
26775 | sed -e "$gl_make_literal_regex_sed"`
26776 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
26777 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
26782 gl_cv_next_stddef_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
26783 sed -n "$gl_absolute_header_sed"`'"'
26787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
26788 $as_echo "$gl_cv_next_stddef_h" >&6; }
26790 NEXT_STDDEF_H
=$gl_cv_next_stddef_h
26792 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
26793 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
26794 gl_next_as_first_directive
='<'stddef.h
'>'
26796 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
26797 gl_next_as_first_directive
=$gl_cv_next_stddef_h
26799 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
=$gl_next_as_first_directive
26817 if test $gl_cv_have_include_next = yes; then
26818 gl_cv_next_stdio_h
='<'stdio.h
'>'
26820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
26821 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
26822 if test "${gl_cv_next_stdio_h+set}" = set; then :
26823 $as_echo_n "(cached) " >&6
26826 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26827 /* end confdefs.h. */
26832 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
26833 *) gl_absname_cpp
="$ac_cpp" ;;
26838 gl_dirsep_regex
='[/\\]'
26841 gl_dirsep_regex
='\/'
26844 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
26846 gl_header_literal_regex
=`echo 'stdio.h' \
26847 | sed -e "$gl_make_literal_regex_sed"`
26848 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
26849 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
26854 gl_cv_next_stdio_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
26855 sed -n "$gl_absolute_header_sed"`'"'
26859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
26860 $as_echo "$gl_cv_next_stdio_h" >&6; }
26862 NEXT_STDIO_H
=$gl_cv_next_stdio_h
26864 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
26865 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
26866 gl_next_as_first_directive
='<'stdio.h
'>'
26868 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
26869 gl_next_as_first_directive
=$gl_cv_next_stdio_h
26871 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
=$gl_next_as_first_directive
26880 cat >>confdefs.h
<<_ACEOF
26881 #define GNULIB_FSCANF 1
26888 cat >>confdefs.h
<<_ACEOF
26889 #define GNULIB_SCANF 1
26925 if test $gl_cv_have_include_next = yes; then
26926 gl_cv_next_stdlib_h
='<'stdlib.h
'>'
26928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
26929 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
26930 if test "${gl_cv_next_stdlib_h+set}" = set; then :
26931 $as_echo_n "(cached) " >&6
26934 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26935 /* end confdefs.h. */
26936 #include <stdlib.h>
26940 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
26941 *) gl_absname_cpp
="$ac_cpp" ;;
26946 gl_dirsep_regex
='[/\\]'
26949 gl_dirsep_regex
='\/'
26952 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
26954 gl_header_literal_regex
=`echo 'stdlib.h' \
26955 | sed -e "$gl_make_literal_regex_sed"`
26956 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
26957 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
26962 gl_cv_next_stdlib_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
26963 sed -n "$gl_absolute_header_sed"`'"'
26967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
26968 $as_echo "$gl_cv_next_stdlib_h" >&6; }
26970 NEXT_STDLIB_H
=$gl_cv_next_stdlib_h
26972 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
26973 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
26974 gl_next_as_first_directive
='<'stdlib.h
'>'
26976 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
26977 gl_next_as_first_directive
=$gl_cv_next_stdlib_h
26979 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
=$gl_next_as_first_directive
26989 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
26997 $as_echo "#define my_strftime nstrftime" >>confdefs.h
27009 if test "$ac_cv_have_decl_strtoimax" != yes; then
27010 HAVE_DECL_STRTOIMAX
=0
27013 if test "$ac_cv_func_strtoimax" = yes; then
27015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtoimax works" >&5
27016 $as_echo_n "checking whether strtoimax works... " >&6; }
27017 if test "${gl_cv_func_strtoimax+set}" = set; then :
27018 $as_echo_n "(cached) " >&6
27020 if test "$cross_compiling" = yes; then :
27022 # Guess no on AIX 5.
27023 aix5
*) gl_cv_func_strtoimax
="guessing no" ;;
27024 # Guess yes otherwise.
27025 *) gl_cv_func_strtoimax
="guessing yes" ;;
27029 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27030 /* end confdefs.h. */
27033 #include <string.h>
27034 #include <inttypes.h>
27037 if (sizeof (intmax_t) > sizeof (int))
27039 const char *s = "4294967295";
27043 res = strtoimax (s, &p, 10);
27044 if (p != s + strlen (s))
27048 if (res != (intmax_t) 65535 * (intmax_t) 65537)
27053 const char *s = "2147483647";
27057 res = strtoimax (s, &p, 10);
27058 if (p != s + strlen (s))
27062 if (res != 2147483647)
27069 if ac_fn_c_try_run
"$LINENO"; then :
27070 gl_cv_func_strtoimax
=yes
27072 gl_cv_func_strtoimax
=no
27074 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
27075 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
27080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strtoimax" >&5
27081 $as_echo "$gl_cv_func_strtoimax" >&6; }
27082 case "$gl_cv_func_strtoimax" in
27083 *no
) REPLACE_STRTOIMAX
=1 ;;
27086 if test "$ac_cv_have_decl_strtoimax" = yes; then
27087 # HP-UX 11.11 has "#define strtoimax(...) ..." but no function.
27088 REPLACE_STRTOIMAX
=1
27093 if test $HAVE_DECL_STRTOIMAX = 0 ||
test $REPLACE_STRTOIMAX = 1; then
27102 gl_LIBOBJS
="$gl_LIBOBJS strtoimax.$ac_objext"
27105 ac_fn_c_check_decl
"$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
27106 if test "x$ac_cv_have_decl_strtoll" = x
""yes; then :
27112 cat >>confdefs.h
<<_ACEOF
27113 #define HAVE_DECL_STRTOLL $ac_have_decl
27134 if test "$ac_cv_have_decl_strtoumax" = yes; then
27135 if test "$ac_cv_func_strtoumax" != yes; then
27136 # HP-UX 11.11 has "#define strtoimax(...) ..." but no function.
27137 REPLACE_STRTOUMAX
=1
27140 HAVE_DECL_STRTOUMAX
=0
27143 if test $HAVE_DECL_STRTOUMAX = 0 ||
test $REPLACE_STRTOUMAX = 1; then
27152 gl_LIBOBJS
="$gl_LIBOBJS strtoumax.$ac_objext"
27155 ac_fn_c_check_decl
"$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
27156 if test "x$ac_cv_have_decl_strtoull" = x
""yes; then :
27162 cat >>confdefs.h
<<_ACEOF
27163 #define HAVE_DECL_STRTOULL $ac_have_decl
27182 if test $ac_cv_func_symlink = no
; then
27185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symlink handles trailing slash correctly" >&5
27186 $as_echo_n "checking whether symlink handles trailing slash correctly... " >&6; }
27187 if test "${gl_cv_func_symlink_works+set}" = set; then :
27188 $as_echo_n "(cached) " >&6
27190 if test "$cross_compiling" = yes; then :
27192 # Guess yes on glibc systems.
27193 *-gnu*) gl_cv_func_symlink_works
="guessing yes" ;;
27194 # If we don't know, assume the worst.
27195 *) gl_cv_func_symlink_works
="guessing no" ;;
27199 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27200 /* end confdefs.h. */
27201 #include <unistd.h>
27207 if (!symlink ("a", "conftest.link/"))
27209 if (symlink ("conftest.f", "conftest.lnk2"))
27211 else if (!symlink ("a", "conftest.lnk2/"))
27219 if ac_fn_c_try_run
"$LINENO"; then :
27220 gl_cv_func_symlink_works
=yes
27222 gl_cv_func_symlink_works
=no
27224 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
27225 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
27228 rm -f conftest.f conftest.link conftest.lnk2
27230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_symlink_works" >&5
27231 $as_echo "$gl_cv_func_symlink_works" >&6; }
27232 case "$gl_cv_func_symlink_works" in
27240 if test $HAVE_SYMLINK = 0 ||
test $REPLACE_SYMLINK = 1; then
27249 gl_LIBOBJS
="$gl_LIBOBJS symlink.$ac_objext"
27266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/select.h> is self-contained" >&5
27267 $as_echo_n "checking whether <sys/select.h> is self-contained... " >&6; }
27268 if test "${gl_cv_header_sys_select_h_selfcontained+set}" = set; then :
27269 $as_echo_n "(cached) " >&6
27272 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27273 /* end confdefs.h. */
27274 #include <sys/select.h>
27283 if ac_fn_c_try_compile
"$LINENO"; then :
27284 gl_cv_header_sys_select_h_selfcontained
=yes
27286 gl_cv_header_sys_select_h_selfcontained
=no
27288 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27289 if test $gl_cv_header_sys_select_h_selfcontained = yes; then
27290 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27291 /* end confdefs.h. */
27292 #include <sys/select.h>
27296 int memset; int bzero;
27302 if ac_fn_c_try_compile
"$LINENO"; then :
27303 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27304 /* end confdefs.h. */
27305 #include <sys/select.h>
27311 #define memset nonexistent_memset
27316 void *memset (void *, int, unsigned long);
27318 #define bzero nonexistent_bzero
27323 void bzero (void *, unsigned long);
27332 if ac_fn_c_try_link
"$LINENO"; then :
27335 gl_cv_header_sys_select_h_selfcontained
=no
27337 rm -f core conftest.err conftest.
$ac_objext \
27338 conftest
$ac_exeext conftest.
$ac_ext
27341 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_selfcontained" >&5
27346 $as_echo "$gl_cv_header_sys_select_h_selfcontained" >&6; }
27356 if test $gl_cv_have_include_next = yes; then
27357 gl_cv_next_sys_select_h
='<'sys
/select.h
'>'
27359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/select.h>" >&5
27360 $as_echo_n "checking absolute name of <sys/select.h>... " >&6; }
27361 if test "${gl_cv_next_sys_select_h+set}" = set; then :
27362 $as_echo_n "(cached) " >&6
27365 if test $ac_cv_header_sys_select_h = yes; then
27368 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27369 /* end confdefs.h. */
27370 #include <sys/select.h>
27374 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
27375 *) gl_absname_cpp
="$ac_cpp" ;;
27380 gl_dirsep_regex
='[/\\]'
27383 gl_dirsep_regex
='\/'
27386 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
27388 gl_header_literal_regex
=`echo 'sys/select.h' \
27389 | sed -e "$gl_make_literal_regex_sed"`
27390 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
27391 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
27396 gl_cv_next_sys_select_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
27397 sed -n "$gl_absolute_header_sed"`'"'
27399 gl_cv_next_sys_select_h
='<'sys
/select.h
'>'
27404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_select_h" >&5
27405 $as_echo "$gl_cv_next_sys_select_h" >&6; }
27407 NEXT_SYS_SELECT_H
=$gl_cv_next_sys_select_h
27409 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
27410 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
27411 gl_next_as_first_directive
='<'sys
/select.h
'>'
27413 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
27414 gl_next_as_first_directive
=$gl_cv_next_sys_select_h
27416 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H
=$gl_next_as_first_directive
27421 if test $ac_cv_header_sys_select_h = yes; then
27422 HAVE_SYS_SELECT_H
=1
27424 HAVE_SYS_SELECT_H
=0
27431 if test $ac_cv_header_sys_socket_h != yes; then
27432 for ac_header
in winsock2.h
27434 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
27435 if test "x$ac_cv_header_winsock2_h" = x
""yes; then :
27436 cat >>confdefs.h
<<_ACEOF
27437 #define HAVE_WINSOCK2_H 1
27445 if test "$ac_cv_header_winsock2_h" = yes; then
27447 UNISTD_H_HAVE_WINSOCK2_H
=1
27448 SYS_IOCTL_H_HAVE_WINSOCK2_H
=1
27472 if test $gl_cv_have_include_next = yes; then
27473 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
27475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
27476 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
27477 if test "${gl_cv_next_sys_stat_h+set}" = set; then :
27478 $as_echo_n "(cached) " >&6
27481 if test $ac_cv_header_sys_stat_h = yes; then
27484 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27485 /* end confdefs.h. */
27486 #include <sys/stat.h>
27490 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
27491 *) gl_absname_cpp
="$ac_cpp" ;;
27496 gl_dirsep_regex
='[/\\]'
27499 gl_dirsep_regex
='\/'
27502 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
27504 gl_header_literal_regex
=`echo 'sys/stat.h' \
27505 | sed -e "$gl_make_literal_regex_sed"`
27506 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
27507 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
27512 gl_cv_next_sys_stat_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
27513 sed -n "$gl_absolute_header_sed"`'"'
27515 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
27520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
27521 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
27523 NEXT_SYS_STAT_H
=$gl_cv_next_sys_stat_h
27525 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
27526 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
27527 gl_next_as_first_directive
='<'sys
/stat.h
'>'
27529 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
27530 gl_next_as_first_directive
=$gl_cv_next_sys_stat_h
27532 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
=$gl_next_as_first_directive
27544 if test $WINDOWS_64_BIT_ST_SIZE = 1; then
27546 $as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h
27550 ac_fn_c_check_type
"$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
27551 #include <sys/stat.h>
27553 if test "x$ac_cv_type_nlink_t" = x
""yes; then :
27557 $as_echo "#define nlink_t int" >>confdefs.h
27578 ac_fn_c_check_decl
"$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "#include <time.h>
27580 if test "x$ac_cv_have_decl_localtime_r" = x
""yes; then :
27586 cat >>confdefs.h
<<_ACEOF
27587 #define HAVE_DECL_LOCALTIME_R $ac_have_decl
27590 if test $ac_cv_have_decl_localtime_r = no
; then
27591 HAVE_DECL_LOCALTIME_R
=0
27595 if test $ac_cv_func_localtime_r = yes; then
27597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
27598 $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
27599 if test "${gl_cv_time_r_posix+set}" = set; then :
27600 $as_echo_n "(cached) " >&6
27602 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27603 /* end confdefs.h. */
27608 /* We don't need to append 'restrict's to the argument types,
27609 even though the POSIX signature has the 'restrict's,
27610 since C99 says they can't affect type compatibility. */
27611 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
27613 /* Check the return type is a pointer.
27614 On HP-UX 10 it is 'int'. */
27615 *localtime_r (0, 0);
27621 if ac_fn_c_try_compile
"$LINENO"; then :
27622 gl_cv_time_r_posix
=yes
27624 gl_cv_time_r_posix
=no
27626 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
27630 $as_echo "$gl_cv_time_r_posix" >&6; }
27631 if test $gl_cv_time_r_posix = yes; then
27632 REPLACE_LOCALTIME_R
=0
27634 REPLACE_LOCALTIME_R
=1
27640 if test $HAVE_LOCALTIME_R = 0 ||
test $REPLACE_LOCALTIME_R = 1; then
27649 gl_LIBOBJS
="$gl_LIBOBJS time_r.$ac_objext"
27673 gl_saved_libs
=$LIBS
27674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing timer_settime" >&5
27675 $as_echo_n "checking for library containing timer_settime... " >&6; }
27676 if test "${ac_cv_search_timer_settime+set}" = set; then :
27677 $as_echo_n "(cached) " >&6
27679 ac_func_search_save_LIBS
=$LIBS
27680 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27681 /* end confdefs.h. */
27683 /* Override any GCC internal prototype to avoid an error.
27684 Use char because int might match the return type of a GCC
27685 builtin and then its argument prototype would still apply. */
27689 char timer_settime ();
27693 return timer_settime ();
27698 for ac_lib
in '' rt posix4
; do
27699 if test -z "$ac_lib"; then
27700 ac_res
="none required"
27703 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
27705 if ac_fn_c_try_link
"$LINENO"; then :
27706 ac_cv_search_timer_settime
=$ac_res
27708 rm -f core conftest.err conftest.
$ac_objext \
27710 if test "${ac_cv_search_timer_settime+set}" = set; then :
27714 if test "${ac_cv_search_timer_settime+set}" = set; then :
27717 ac_cv_search_timer_settime
=no
27719 rm conftest.
$ac_ext
27720 LIBS
=$ac_func_search_save_LIBS
27722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_timer_settime" >&5
27723 $as_echo "$ac_cv_search_timer_settime" >&6; }
27724 ac_res
=$ac_cv_search_timer_settime
27725 if test "$ac_res" != no
; then :
27726 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
27727 test "$ac_cv_search_timer_settime" = "none required" ||
27728 LIB_TIMER_TIME
=$ac_cv_search_timer_settime
27731 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27732 /* end confdefs.h. */
27734 #include <features.h>
27735 #ifdef __GNU_LIBRARY__
27736 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2) || (__GLIBC__ > 2)) \
27737 && !defined __UCLIBC__
27738 Thread emulation available
27743 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27744 $EGREP "Thread" >/dev
/null
2>&1; then :
27745 LIB_TIMER_TIME
="$LIB_TIMER_TIME $LIBMULTITHREAD"
27749 for ac_func
in timer_settime
27751 ac_fn_c_check_func
"$LINENO" "timer_settime" "ac_cv_func_timer_settime"
27752 if test "x$ac_cv_func_timer_settime" = x
""yes; then :
27753 cat >>confdefs.h
<<_ACEOF
27754 #define HAVE_TIMER_SETTIME 1
27760 LIBS
=$gl_saved_libs
27775 if test $gl_cv_have_include_next = yes; then
27776 gl_cv_next_unistd_h
='<'unistd.h
'>'
27778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
27779 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
27780 if test "${gl_cv_next_unistd_h+set}" = set; then :
27781 $as_echo_n "(cached) " >&6
27784 if test $ac_cv_header_unistd_h = yes; then
27787 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27788 /* end confdefs.h. */
27789 #include <unistd.h>
27793 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
27794 *) gl_absname_cpp
="$ac_cpp" ;;
27799 gl_dirsep_regex
='[/\\]'
27802 gl_dirsep_regex
='\/'
27805 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
27807 gl_header_literal_regex
=`echo 'unistd.h' \
27808 | sed -e "$gl_make_literal_regex_sed"`
27809 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
27810 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
27815 gl_cv_next_unistd_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
27816 sed -n "$gl_absolute_header_sed"`'"'
27818 gl_cv_next_unistd_h
='<'unistd.h
'>'
27823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
27824 $as_echo "$gl_cv_next_unistd_h" >&6; }
27826 NEXT_UNISTD_H
=$gl_cv_next_unistd_h
27828 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
27829 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
27830 gl_next_as_first_directive
='<'unistd.h
'>'
27832 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
27833 gl_next_as_first_directive
=$gl_cv_next_unistd_h
27835 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
=$gl_next_as_first_directive
27840 if test $ac_cv_header_unistd_h = yes; then
27856 if test $ac_cv_have_decl_unsetenv = no
; then
27857 HAVE_DECL_UNSETENV
=0
27859 for ac_func
in unsetenv
27861 ac_fn_c_check_func
"$LINENO" "unsetenv" "ac_cv_func_unsetenv"
27862 if test "x$ac_cv_func_unsetenv" = x
""yes; then :
27863 cat >>confdefs.h
<<_ACEOF
27864 #define HAVE_UNSETENV 1
27870 if test $ac_cv_func_unsetenv = no
; then
27874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsetenv() return type" >&5
27875 $as_echo_n "checking for unsetenv() return type... " >&6; }
27876 if test "${gt_cv_func_unsetenv_ret+set}" = set; then :
27877 $as_echo_n "(cached) " >&6
27879 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27880 /* end confdefs.h. */
27883 #define _BSD 1 /* unhide unsetenv declaration in OSF/1 5.1 <stdlib.h> */
27884 #include <stdlib.h>
27889 int unsetenv (const char *name);
27899 if ac_fn_c_try_compile
"$LINENO"; then :
27900 gt_cv_func_unsetenv_ret
='int'
27902 gt_cv_func_unsetenv_ret
='void'
27904 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_unsetenv_ret" >&5
27907 $as_echo "$gt_cv_func_unsetenv_ret" >&6; }
27908 if test $gt_cv_func_unsetenv_ret = 'void'; then
27910 $as_echo "#define VOID_UNSETENV 1" >>confdefs.h
27915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether unsetenv obeys POSIX" >&5
27916 $as_echo_n "checking whether unsetenv obeys POSIX... " >&6; }
27917 if test "${gl_cv_func_unsetenv_works+set}" = set; then :
27918 $as_echo_n "(cached) " >&6
27920 if test "$cross_compiling" = yes; then :
27922 # Guess yes on glibc systems.
27923 *-gnu*) gl_cv_func_unsetenv_works
="guessing yes" ;;
27924 # If we don't know, assume the worst.
27925 *) gl_cv_func_unsetenv_works
="guessing no" ;;
27929 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27930 /* end confdefs.h. */
27932 #include <stdlib.h>
27934 extern char **environ;
27940 char entry1[] = "a=1";
27941 char entry2[] = "b=2";
27942 char *env[] = { entry1, entry2, NULL };
27943 if (putenv ((char *) "a=1")) return 1;
27944 if (putenv (entry2)) return 2;
27947 if (getenv ("a")) return 3;
27948 if (!unsetenv ("") || errno != EINVAL) return 4;
27951 if (!getenv ("a")) return 5;
27954 if (getenv ("a")) return 6;
27960 if ac_fn_c_try_run
"$LINENO"; then :
27961 gl_cv_func_unsetenv_works
=yes
27963 gl_cv_func_unsetenv_works
=no
27965 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
27966 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
27970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_unsetenv_works" >&5
27971 $as_echo "$gl_cv_func_unsetenv_works" >&6; }
27972 case "$gl_cv_func_unsetenv_works" in
27980 if test $HAVE_UNSETENV = 0 ||
test $REPLACE_UNSETENV = 1; then
27989 gl_LIBOBJS
="$gl_LIBOBJS unsetenv.$ac_objext"
28013 if test $ac_cv_func_futimens = no
&& test $ac_cv_func_futimesat = yes; then
28014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether futimesat handles NULL file" >&5
28015 $as_echo_n "checking whether futimesat handles NULL file... " >&6; }
28016 if test "${gl_cv_func_futimesat_works+set}" = set; then :
28017 $as_echo_n "(cached) " >&6
28019 touch conftest.
file
28020 if test "$cross_compiling" = yes; then :
28022 # Guess yes on glibc systems.
28023 *-gnu*) gl_cv_func_futimesat_works
="guessing yes" ;;
28024 # If we don't know, assume the worst.
28025 *) gl_cv_func_futimesat_works
="guessing no" ;;
28029 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28030 /* end confdefs.h. */
28032 #include <stddef.h>
28033 #include <sys/times.h>
28039 int fd = open ("conftest.file", O_RDWR);
28040 if (fd < 0) return 1;
28041 if (futimesat (fd, NULL, NULL)) return 2;
28047 if ac_fn_c_try_run
"$LINENO"; then :
28048 gl_cv_func_futimesat_works
=yes
28050 gl_cv_func_futimesat_works
=no
28052 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
28053 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
28056 rm -f conftest.
file
28058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_futimesat_works" >&5
28059 $as_echo "$gl_cv_func_futimesat_works" >&6; }
28060 case "$gl_cv_func_futimesat_works" in
28064 $as_echo "#define FUTIMESAT_NULL_BUG 1" >>confdefs.h
28070 gl_gnulib_enabled_260941c0e5dc67ec9e87d1fb321c300b
=false
28071 gl_gnulib_enabled_dosname
=false
28072 gl_gnulib_enabled_euidaccess
=false
28073 gl_gnulib_enabled_getdtablesize
=false
28074 gl_gnulib_enabled_getgroups
=false
28075 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36
=false
28076 gl_gnulib_enabled_a9786850e999ae65a836a6041e8e5ed1
=false
28077 gl_gnulib_enabled_03e0aaad4cb89ca757653bd367a6ccb7
=false
28078 gl_gnulib_enabled_pathmax
=false
28079 gl_gnulib_enabled_6099e9737f757db36c47fa9d9f02e88c
=false
28080 gl_gnulib_enabled_secure_getenv
=false
28081 gl_gnulib_enabled_stat
=false
28082 gl_gnulib_enabled_strtoll
=false
28083 gl_gnulib_enabled_strtoull
=false
28084 gl_gnulib_enabled_tempname
=false
28085 gl_gnulib_enabled_682e609604ccaac6be382e4ee3a4eaec
=false
28086 func_gl_gnulib_m4code_260941c0e5dc67ec9e87d1fb321c300b
()
28088 if ! $gl_gnulib_enabled_260941c0e5dc67ec9e87d1fb321c300b; then
28097 gl_LIBOBJS
="$gl_LIBOBJS openat-proc.$ac_objext"
28099 gl_gnulib_enabled_260941c0e5dc67ec9e87d1fb321c300b
=true
28102 func_gl_gnulib_m4code_dosname
()
28104 if ! $gl_gnulib_enabled_dosname; then
28105 gl_gnulib_enabled_dosname
=true
28108 func_gl_gnulib_m4code_euidaccess
()
28110 if ! $gl_gnulib_enabled_euidaccess; then
28116 for ac_func
in euidaccess
28118 ac_fn_c_check_func
"$LINENO" "euidaccess" "ac_cv_func_euidaccess"
28119 if test "x$ac_cv_func_euidaccess" = x
""yes; then :
28120 cat >>confdefs.h
<<_ACEOF
28121 #define HAVE_EUIDACCESS 1
28127 if test $ac_cv_func_euidaccess = no
; then
28131 if test $HAVE_EUIDACCESS = 0; then
28140 gl_LIBOBJS
="$gl_LIBOBJS euidaccess.$ac_objext"
28144 for ac_header
in libgen.h
28146 ac_fn_c_check_header_mongrel
"$LINENO" "libgen.h" "ac_cv_header_libgen_h" "$ac_includes_default"
28147 if test "x$ac_cv_header_libgen_h" = x
""yes; then :
28148 cat >>confdefs.h
<<_ACEOF
28149 #define HAVE_LIBGEN_H 1
28157 ac_fn_c_check_func
"$LINENO" "getgroups" "ac_cv_func_getgroups"
28158 if test "x$ac_cv_func_getgroups" = x
""yes; then :
28163 # If we don't yet have getgroups, see if it's in -lbsd.
28164 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
28166 if test $ac_cv_func_getgroups = no
; then
28167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getgroups in -lbsd" >&5
28168 $as_echo_n "checking for getgroups in -lbsd... " >&6; }
28169 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then :
28170 $as_echo_n "(cached) " >&6
28172 ac_check_lib_save_LIBS
=$LIBS
28174 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28175 /* end confdefs.h. */
28177 /* Override any GCC internal prototype to avoid an error.
28178 Use char because int might match the return type of a GCC
28179 builtin and then its argument prototype would still apply. */
28187 return getgroups ();
28192 if ac_fn_c_try_link
"$LINENO"; then :
28193 ac_cv_lib_bsd_getgroups
=yes
28195 ac_cv_lib_bsd_getgroups
=no
28197 rm -f core conftest.err conftest.
$ac_objext \
28198 conftest
$ac_exeext conftest.
$ac_ext
28199 LIBS
=$ac_check_lib_save_LIBS
28201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_getgroups" >&5
28202 $as_echo "$ac_cv_lib_bsd_getgroups" >&6; }
28203 if test "x$ac_cv_lib_bsd_getgroups" = x
""yes; then :
28204 GETGROUPS_LIB
=-lbsd
28209 # Run the program to test the functionality of the system-supplied
28210 # getgroups function only if there is such a function.
28211 if test $ac_cv_func_getgroups = yes; then
28212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getgroups" >&5
28213 $as_echo_n "checking for working getgroups... " >&6; }
28214 if test "${ac_cv_func_getgroups_works+set}" = set; then :
28215 $as_echo_n "(cached) " >&6
28217 if test "$cross_compiling" = yes; then :
28218 case "$host_os" in # ((
28219 # Guess yes on glibc systems.
28220 *-gnu*) ac_cv_func_getgroups_works
="guessing yes" ;;
28221 # If we don't know, assume the worst.
28222 *) ac_cv_func_getgroups_works
="guessing no" ;;
28226 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28227 /* end confdefs.h. */
28228 $ac_includes_default
28232 /* On Ultrix 4.3, getgroups (0, 0) always fails. */
28233 return getgroups (0, 0) == -1;
28239 if ac_fn_c_try_run
"$LINENO"; then :
28240 ac_cv_func_getgroups_works
=yes
28242 ac_cv_func_getgroups_works
=no
28244 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
28245 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
28250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getgroups_works" >&5
28251 $as_echo "$ac_cv_func_getgroups_works" >&6; }
28253 ac_cv_func_getgroups_works
=no
28255 case "$ac_cv_func_getgroups_works" in
28258 $as_echo "#define HAVE_GETGROUPS 1" >>confdefs.h
28265 # Solaris 9 and 10 need -lgen to get the eaccess function.
28266 # Save and restore LIBS so -lgen isn't added to it. Otherwise, *all*
28267 # programs in the package would end up linked with that potentially-shared
28268 # library, inducing unnecessary run-time overhead.
28271 gl_saved_libs
=$LIBS
28272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing eaccess" >&5
28273 $as_echo_n "checking for library containing eaccess... " >&6; }
28274 if test "${ac_cv_search_eaccess+set}" = set; then :
28275 $as_echo_n "(cached) " >&6
28277 ac_func_search_save_LIBS
=$LIBS
28278 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28279 /* end confdefs.h. */
28281 /* Override any GCC internal prototype to avoid an error.
28282 Use char because int might match the return type of a GCC
28283 builtin and then its argument prototype would still apply. */
28296 for ac_lib
in '' gen
; do
28297 if test -z "$ac_lib"; then
28298 ac_res
="none required"
28301 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
28303 if ac_fn_c_try_link
"$LINENO"; then :
28304 ac_cv_search_eaccess
=$ac_res
28306 rm -f core conftest.err conftest.
$ac_objext \
28308 if test "${ac_cv_search_eaccess+set}" = set; then :
28312 if test "${ac_cv_search_eaccess+set}" = set; then :
28315 ac_cv_search_eaccess
=no
28317 rm conftest.
$ac_ext
28318 LIBS
=$ac_func_search_save_LIBS
28320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_eaccess" >&5
28321 $as_echo "$ac_cv_search_eaccess" >&6; }
28322 ac_res
=$ac_cv_search_eaccess
28323 if test "$ac_res" != no
; then :
28324 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
28325 test "$ac_cv_search_eaccess" = "none required" ||
28326 LIB_EACCESS
=$ac_cv_search_eaccess
28329 for ac_func
in eaccess
28331 ac_fn_c_check_func
"$LINENO" "eaccess" "ac_cv_func_eaccess"
28332 if test "x$ac_cv_func_eaccess" = x
""yes; then :
28333 cat >>confdefs.h
<<_ACEOF
28334 #define HAVE_EACCESS 1
28340 LIBS
=$gl_saved_libs
28348 GNULIB_EUIDACCESS
=1
28354 gl_gnulib_enabled_euidaccess
=true
28355 if test $HAVE_EUIDACCESS = 0; then
28356 func_gl_gnulib_m4code_a9786850e999ae65a836a6041e8e5ed1
28358 func_gl_gnulib_m4code_6099e9737f757db36c47fa9d9f02e88c
28359 if test $HAVE_EUIDACCESS = 0; then
28360 func_gl_gnulib_m4code_stat
28364 func_gl_gnulib_m4code_getdtablesize
()
28366 if ! $gl_gnulib_enabled_getdtablesize; then
28371 if test $ac_cv_func_getdtablesize = yes; then
28372 # Cygwin 1.7.25 automatically increases the RLIMIT_NOFILE soft limit
28373 # up to an unchangeable hard limit; all other platforms correctly
28374 # require setrlimit before getdtablesize() can report a larger value.
28375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getdtablesize works" >&5
28376 $as_echo_n "checking whether getdtablesize works... " >&6; }
28377 if test "${gl_cv_func_getdtablesize_works+set}" = set; then :
28378 $as_echo_n "(cached) " >&6
28380 if test "$cross_compiling" = yes; then :
28382 cygwin
*) # on cygwin 1.5.25, getdtablesize() automatically grows
28383 gl_cv_func_getdtablesize_works
="guessing no" ;;
28384 *) gl_cv_func_getdtablesize_works
="guessing yes" ;;
28387 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28388 /* end confdefs.h. */
28390 #include <unistd.h>
28394 int size = getdtablesize();
28395 if (dup2 (0, getdtablesize()) != -1)
28397 if (size != getdtablesize())
28404 if ac_fn_c_try_run
"$LINENO"; then :
28405 gl_cv_func_getdtablesize_works
=yes
28407 gl_cv_func_getdtablesize_works
=no
28409 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
28410 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
28415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getdtablesize_works" >&5
28416 $as_echo "$gl_cv_func_getdtablesize_works" >&6; }
28417 case "$gl_cv_func_getdtablesize_works" in
28419 *) REPLACE_GETDTABLESIZE
=1 ;;
28422 HAVE_GETDTABLESIZE
=0
28425 if test $HAVE_GETDTABLESIZE = 0 ||
test $REPLACE_GETDTABLESIZE = 1; then
28434 gl_LIBOBJS
="$gl_LIBOBJS getdtablesize.$ac_objext"
28443 GNULIB_GETDTABLESIZE
=1
28449 gl_gnulib_enabled_getdtablesize
=true
28452 func_gl_gnulib_m4code_getgroups
()
28454 if ! $gl_gnulib_enabled_getgroups; then
28460 ac_fn_c_check_func
"$LINENO" "getgroups" "ac_cv_func_getgroups"
28461 if test "x$ac_cv_func_getgroups" = x
""yes; then :
28466 # If we don't yet have getgroups, see if it's in -lbsd.
28467 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
28469 if test $ac_cv_func_getgroups = no
; then
28470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getgroups in -lbsd" >&5
28471 $as_echo_n "checking for getgroups in -lbsd... " >&6; }
28472 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then :
28473 $as_echo_n "(cached) " >&6
28475 ac_check_lib_save_LIBS
=$LIBS
28477 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28478 /* end confdefs.h. */
28480 /* Override any GCC internal prototype to avoid an error.
28481 Use char because int might match the return type of a GCC
28482 builtin and then its argument prototype would still apply. */
28490 return getgroups ();
28495 if ac_fn_c_try_link
"$LINENO"; then :
28496 ac_cv_lib_bsd_getgroups
=yes
28498 ac_cv_lib_bsd_getgroups
=no
28500 rm -f core conftest.err conftest.
$ac_objext \
28501 conftest
$ac_exeext conftest.
$ac_ext
28502 LIBS
=$ac_check_lib_save_LIBS
28504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_getgroups" >&5
28505 $as_echo "$ac_cv_lib_bsd_getgroups" >&6; }
28506 if test "x$ac_cv_lib_bsd_getgroups" = x
""yes; then :
28507 GETGROUPS_LIB
=-lbsd
28512 # Run the program to test the functionality of the system-supplied
28513 # getgroups function only if there is such a function.
28514 if test $ac_cv_func_getgroups = yes; then
28515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getgroups" >&5
28516 $as_echo_n "checking for working getgroups... " >&6; }
28517 if test "${ac_cv_func_getgroups_works+set}" = set; then :
28518 $as_echo_n "(cached) " >&6
28520 if test "$cross_compiling" = yes; then :
28521 case "$host_os" in # ((
28522 # Guess yes on glibc systems.
28523 *-gnu*) ac_cv_func_getgroups_works
="guessing yes" ;;
28524 # If we don't know, assume the worst.
28525 *) ac_cv_func_getgroups_works
="guessing no" ;;
28529 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28530 /* end confdefs.h. */
28531 $ac_includes_default
28535 /* On Ultrix 4.3, getgroups (0, 0) always fails. */
28536 return getgroups (0, 0) == -1;
28542 if ac_fn_c_try_run
"$LINENO"; then :
28543 ac_cv_func_getgroups_works
=yes
28545 ac_cv_func_getgroups_works
=no
28547 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
28548 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
28553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getgroups_works" >&5
28554 $as_echo "$ac_cv_func_getgroups_works" >&6; }
28556 ac_cv_func_getgroups_works
=no
28558 case "$ac_cv_func_getgroups_works" in
28561 $as_echo "#define HAVE_GETGROUPS 1" >>confdefs.h
28567 if test $ac_cv_func_getgroups != yes; then
28570 if test "$ac_cv_type_getgroups" != gid_t \
28571 ||
{ case "$ac_cv_func_getgroups_works" in
28576 REPLACE_GETGROUPS
=1
28578 $as_echo "#define GETGROUPS_ZERO_BUG 1" >>confdefs.h
28581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getgroups handles negative values" >&5
28582 $as_echo_n "checking whether getgroups handles negative values... " >&6; }
28583 if test "${gl_cv_func_getgroups_works+set}" = set; then :
28584 $as_echo_n "(cached) " >&6
28586 if test "$cross_compiling" = yes; then :
28588 # Guess yes on glibc systems.
28589 *-gnu*) gl_cv_func_getgroups_works
="guessing yes" ;;
28590 # If we don't know, assume the worst.
28591 *) gl_cv_func_getgroups_works
="guessing no" ;;
28595 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28596 /* end confdefs.h. */
28597 $ac_includes_default
28601 int size = getgroups (0, 0);
28602 gid_t *list = malloc (size * sizeof *list);
28603 return getgroups (-1, list) != -1;
28608 if ac_fn_c_try_run
"$LINENO"; then :
28609 gl_cv_func_getgroups_works
=yes
28611 gl_cv_func_getgroups_works
=no
28613 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
28614 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
28618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getgroups_works" >&5
28619 $as_echo "$gl_cv_func_getgroups_works" >&6; }
28620 case "$gl_cv_func_getgroups_works" in
28622 *) REPLACE_GETGROUPS
=1 ;;
28626 test -n "$GETGROUPS_LIB" && LIBS
="$GETGROUPS_LIB $LIBS"
28628 if test $HAVE_GETGROUPS = 0 ||
test $REPLACE_GETGROUPS = 1; then
28637 gl_LIBOBJS
="$gl_LIBOBJS getgroups.$ac_objext"
28651 gl_gnulib_enabled_getgroups
=true
28654 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36
()
28656 if ! $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
28659 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36
=true
28662 func_gl_gnulib_m4code_a9786850e999ae65a836a6041e8e5ed1
()
28664 if ! $gl_gnulib_enabled_a9786850e999ae65a836a6041e8e5ed1; then
28670 ac_fn_c_check_func
"$LINENO" "group_member" "ac_cv_func_group_member"
28671 if test "x$ac_cv_func_group_member" = x
""yes; then :
28675 HAVE_GROUP_MEMBER
=0
28680 if test $HAVE_GROUP_MEMBER = 0; then
28689 gl_LIBOBJS
="$gl_LIBOBJS group-member.$ac_objext"
28700 GNULIB_GROUP_MEMBER
=1
28706 gl_gnulib_enabled_a9786850e999ae65a836a6041e8e5ed1
=true
28707 if test $HAVE_GROUP_MEMBER = 0; then
28708 func_gl_gnulib_m4code_getgroups
28710 if test $HAVE_GROUP_MEMBER = 0; then
28711 func_gl_gnulib_m4code_682e609604ccaac6be382e4ee3a4eaec
28715 func_gl_gnulib_m4code_03e0aaad4cb89ca757653bd367a6ccb7
()
28717 if ! $gl_gnulib_enabled_03e0aaad4cb89ca757653bd367a6ccb7; then
28718 gl_gnulib_enabled_03e0aaad4cb89ca757653bd367a6ccb7
=true
28721 func_gl_gnulib_m4code_pathmax
()
28723 if ! $gl_gnulib_enabled_pathmax; then
28727 gl_gnulib_enabled_pathmax
=true
28730 func_gl_gnulib_m4code_6099e9737f757db36c47fa9d9f02e88c
()
28732 if ! $gl_gnulib_enabled_6099e9737f757db36c47fa9d9f02e88c; then
28733 gl_gnulib_enabled_6099e9737f757db36c47fa9d9f02e88c
=true
28736 func_gl_gnulib_m4code_secure_getenv
()
28738 if ! $gl_gnulib_enabled_secure_getenv; then
28744 if test $ac_cv_func_secure_getenv = no
; then
28745 HAVE_SECURE_GETENV
=0
28748 if test $HAVE_SECURE_GETENV = 0; then
28757 gl_LIBOBJS
="$gl_LIBOBJS secure_getenv.$ac_objext"
28760 for ac_func
in __secure_getenv
28762 ac_fn_c_check_func
"$LINENO" "__secure_getenv" "ac_cv_func___secure_getenv"
28763 if test "x$ac_cv_func___secure_getenv" = x
""yes; then :
28764 cat >>confdefs.h
<<_ACEOF
28765 #define HAVE___SECURE_GETENV 1
28771 if test $ac_cv_func___secure_getenv = no
; then
28772 for ac_func
in issetugid
28774 ac_fn_c_check_func
"$LINENO" "issetugid" "ac_cv_func_issetugid"
28775 if test "x$ac_cv_func_issetugid" = x
""yes; then :
28776 cat >>confdefs.h
<<_ACEOF
28777 #define HAVE_ISSETUGID 1
28791 GNULIB_SECURE_GETENV
=1
28797 gl_gnulib_enabled_secure_getenv
=true
28800 func_gl_gnulib_m4code_stat
()
28802 if ! $gl_gnulib_enabled_stat; then
28806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
28807 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
28808 if test "${gl_cv_func_stat_dir_slash+set}" = set; then :
28809 $as_echo_n "(cached) " >&6
28811 if test "$cross_compiling" = yes; then :
28813 mingw
*) gl_cv_func_stat_dir_slash
="guessing no";;
28814 *) gl_cv_func_stat_dir_slash
="guessing yes";;
28817 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28818 /* end confdefs.h. */
28819 #include <sys/stat.h>
28824 struct stat st; return stat (".", &st) != stat ("./", &st);
28829 if ac_fn_c_try_run
"$LINENO"; then :
28830 gl_cv_func_stat_dir_slash
=yes
28832 gl_cv_func_stat_dir_slash
=no
28834 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
28835 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
28839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
28840 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
28841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
28842 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
28843 if test "${gl_cv_func_stat_file_slash+set}" = set; then :
28844 $as_echo_n "(cached) " >&6
28847 # Assume that if we have lstat, we can also check symlinks.
28848 if test $ac_cv_func_lstat = yes; then
28849 ln -s conftest.tmp conftest.lnk
28851 if test "$cross_compiling" = yes; then :
28853 # Guess yes on glibc systems.
28854 *-gnu*) gl_cv_func_stat_file_slash
="guessing yes" ;;
28855 # If we don't know, assume the worst.
28856 *) gl_cv_func_stat_file_slash
="guessing no" ;;
28860 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28861 /* end confdefs.h. */
28862 #include <sys/stat.h>
28869 if (!stat ("conftest.tmp/", &st))
28872 if (!stat ("conftest.lnk/", &st))
28881 if ac_fn_c_try_run
"$LINENO"; then :
28882 gl_cv_func_stat_file_slash
=yes
28884 gl_cv_func_stat_file_slash
=no
28886 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
28887 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
28890 rm -f conftest.tmp conftest.lnk
28892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
28893 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
28894 case $gl_cv_func_stat_dir_slash in
28895 *no
) REPLACE_STAT
=1
28897 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
28900 case $gl_cv_func_stat_file_slash in
28901 *no
) REPLACE_STAT
=1
28903 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
28907 if test $REPLACE_STAT = 1; then
28916 gl_LIBOBJS
="$gl_LIBOBJS stat.$ac_objext"
28931 gl_gnulib_enabled_stat
=true
28932 if test $REPLACE_STAT = 1; then
28933 func_gl_gnulib_m4code_dosname
28935 if test $REPLACE_STAT = 1; then
28936 func_gl_gnulib_m4code_pathmax
28940 func_gl_gnulib_m4code_strtoll
()
28942 if ! $gl_gnulib_enabled_strtoll; then
28946 if test "$ac_cv_type_long_long_int" = yes; then
28947 for ac_func
in strtoll
28949 ac_fn_c_check_func
"$LINENO" "strtoll" "ac_cv_func_strtoll"
28950 if test "x$ac_cv_func_strtoll" = x
""yes; then :
28951 cat >>confdefs.h
<<_ACEOF
28952 #define HAVE_STRTOLL 1
28958 if test $ac_cv_func_strtoll = no
; then
28963 if test $HAVE_STRTOLL = 0; then
28972 gl_LIBOBJS
="$gl_LIBOBJS strtoll.$ac_objext"
28989 gl_gnulib_enabled_strtoll
=true
28992 func_gl_gnulib_m4code_strtoull
()
28994 if ! $gl_gnulib_enabled_strtoull; then
28998 if test "$ac_cv_type_unsigned_long_long_int" = yes; then
28999 for ac_func
in strtoull
29001 ac_fn_c_check_func
"$LINENO" "strtoull" "ac_cv_func_strtoull"
29002 if test "x$ac_cv_func_strtoull" = x
""yes; then :
29003 cat >>confdefs.h
<<_ACEOF
29004 #define HAVE_STRTOULL 1
29010 if test $ac_cv_func_strtoull = no
; then
29015 if test $HAVE_STRTOULL = 0; then
29024 gl_LIBOBJS
="$gl_LIBOBJS strtoull.$ac_objext"
29041 gl_gnulib_enabled_strtoull
=true
29044 func_gl_gnulib_m4code_tempname
()
29046 if ! $gl_gnulib_enabled_tempname; then
29052 gl_gnulib_enabled_tempname
=true
29053 func_gl_gnulib_m4code_secure_getenv
29056 func_gl_gnulib_m4code_682e609604ccaac6be382e4ee3a4eaec
()
29058 if ! $gl_gnulib_enabled_682e609604ccaac6be382e4ee3a4eaec; then
29059 gl_gnulib_enabled_682e609604ccaac6be382e4ee3a4eaec
=true
29062 if test $HAVE_FACCESSAT = 0; then
29063 func_gl_gnulib_m4code_260941c0e5dc67ec9e87d1fb321c300b
29065 if test $HAVE_FACCESSAT = 0; then
29066 func_gl_gnulib_m4code_dosname
29068 if test $HAVE_FACCESSAT = 0; then
29069 func_gl_gnulib_m4code_euidaccess
29071 if test $HAVE_FACCESSAT = 0; then
29072 func_gl_gnulib_m4code_03e0aaad4cb89ca757653bd367a6ccb7
29074 if test $HAVE_FCNTL = 0 ||
test $REPLACE_FCNTL = 1; then
29075 func_gl_gnulib_m4code_getdtablesize
29077 if test $HAVE_FDOPENDIR = 0; then
29078 func_gl_gnulib_m4code_260941c0e5dc67ec9e87d1fb321c300b
29080 if test $HAVE_FSTATAT = 0 ||
test $REPLACE_FSTATAT = 1; then
29081 func_gl_gnulib_m4code_260941c0e5dc67ec9e87d1fb321c300b
29083 if test $HAVE_FSTATAT = 0 ||
test $REPLACE_FSTATAT = 1; then
29084 func_gl_gnulib_m4code_dosname
29086 if test $HAVE_FSTATAT = 0 ||
test $REPLACE_FSTATAT = 1; then
29087 func_gl_gnulib_m4code_03e0aaad4cb89ca757653bd367a6ccb7
29089 if test $REPLACE_GETOPT = 1; then
29090 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36
29092 if test $REPLACE_LSTAT = 1; then
29093 func_gl_gnulib_m4code_dosname
29095 if test $REPLACE_LSTAT = 1; then
29096 func_gl_gnulib_m4code_stat
29098 if test $HAVE_MKOSTEMP = 0; then
29099 func_gl_gnulib_m4code_tempname
29101 if test $HAVE_READLINK = 0 ||
test $REPLACE_READLINK = 1; then
29102 func_gl_gnulib_m4code_stat
29104 if test $HAVE_READLINKAT = 0; then
29105 func_gl_gnulib_m4code_260941c0e5dc67ec9e87d1fb321c300b
29107 if test $HAVE_READLINKAT = 0; then
29108 func_gl_gnulib_m4code_dosname
29110 if test $HAVE_READLINKAT = 0; then
29111 func_gl_gnulib_m4code_03e0aaad4cb89ca757653bd367a6ccb7
29113 if { test $HAVE_DECL_STRTOIMAX = 0 ||
test $REPLACE_STRTOIMAX = 1; } && test $ac_cv_type_long_long_int = yes; then
29114 func_gl_gnulib_m4code_strtoll
29116 if { test $HAVE_DECL_STRTOUMAX = 0 ||
test $REPLACE_STRTOUMAX = 1; } && test $ac_cv_type_unsigned_long_long_int = yes; then
29117 func_gl_gnulib_m4code_strtoull
29120 if $gl_gnulib_enabled_260941c0e5dc67ec9e87d1fb321c300b; then
29121 gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_TRUE
=
29122 gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_FALSE
='#'
29124 gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_TRUE
='#'
29125 gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_FALSE
=
29128 if $gl_gnulib_enabled_dosname; then
29129 gl_GNULIB_ENABLED_dosname_TRUE
=
29130 gl_GNULIB_ENABLED_dosname_FALSE
='#'
29132 gl_GNULIB_ENABLED_dosname_TRUE
='#'
29133 gl_GNULIB_ENABLED_dosname_FALSE
=
29136 if $gl_gnulib_enabled_euidaccess; then
29137 gl_GNULIB_ENABLED_euidaccess_TRUE
=
29138 gl_GNULIB_ENABLED_euidaccess_FALSE
='#'
29140 gl_GNULIB_ENABLED_euidaccess_TRUE
='#'
29141 gl_GNULIB_ENABLED_euidaccess_FALSE
=
29144 if $gl_gnulib_enabled_getdtablesize; then
29145 gl_GNULIB_ENABLED_getdtablesize_TRUE
=
29146 gl_GNULIB_ENABLED_getdtablesize_FALSE
='#'
29148 gl_GNULIB_ENABLED_getdtablesize_TRUE
='#'
29149 gl_GNULIB_ENABLED_getdtablesize_FALSE
=
29152 if $gl_gnulib_enabled_getgroups; then
29153 gl_GNULIB_ENABLED_getgroups_TRUE
=
29154 gl_GNULIB_ENABLED_getgroups_FALSE
='#'
29156 gl_GNULIB_ENABLED_getgroups_TRUE
='#'
29157 gl_GNULIB_ENABLED_getgroups_FALSE
=
29160 if $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
29161 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE
=
29162 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE
='#'
29164 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE
='#'
29165 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE
=
29168 if $gl_gnulib_enabled_a9786850e999ae65a836a6041e8e5ed1; then
29169 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_TRUE
=
29170 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_FALSE
='#'
29172 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_TRUE
='#'
29173 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_FALSE
=
29176 if $gl_gnulib_enabled_03e0aaad4cb89ca757653bd367a6ccb7; then
29177 gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_TRUE
=
29178 gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_FALSE
='#'
29180 gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_TRUE
='#'
29181 gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_FALSE
=
29184 if $gl_gnulib_enabled_pathmax; then
29185 gl_GNULIB_ENABLED_pathmax_TRUE
=
29186 gl_GNULIB_ENABLED_pathmax_FALSE
='#'
29188 gl_GNULIB_ENABLED_pathmax_TRUE
='#'
29189 gl_GNULIB_ENABLED_pathmax_FALSE
=
29192 if $gl_gnulib_enabled_6099e9737f757db36c47fa9d9f02e88c; then
29193 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_TRUE
=
29194 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_FALSE
='#'
29196 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_TRUE
='#'
29197 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_FALSE
=
29200 if $gl_gnulib_enabled_secure_getenv; then
29201 gl_GNULIB_ENABLED_secure_getenv_TRUE
=
29202 gl_GNULIB_ENABLED_secure_getenv_FALSE
='#'
29204 gl_GNULIB_ENABLED_secure_getenv_TRUE
='#'
29205 gl_GNULIB_ENABLED_secure_getenv_FALSE
=
29208 if $gl_gnulib_enabled_stat; then
29209 gl_GNULIB_ENABLED_stat_TRUE
=
29210 gl_GNULIB_ENABLED_stat_FALSE
='#'
29212 gl_GNULIB_ENABLED_stat_TRUE
='#'
29213 gl_GNULIB_ENABLED_stat_FALSE
=
29216 if $gl_gnulib_enabled_strtoll; then
29217 gl_GNULIB_ENABLED_strtoll_TRUE
=
29218 gl_GNULIB_ENABLED_strtoll_FALSE
='#'
29220 gl_GNULIB_ENABLED_strtoll_TRUE
='#'
29221 gl_GNULIB_ENABLED_strtoll_FALSE
=
29224 if $gl_gnulib_enabled_strtoull; then
29225 gl_GNULIB_ENABLED_strtoull_TRUE
=
29226 gl_GNULIB_ENABLED_strtoull_FALSE
='#'
29228 gl_GNULIB_ENABLED_strtoull_TRUE
='#'
29229 gl_GNULIB_ENABLED_strtoull_FALSE
=
29232 if $gl_gnulib_enabled_tempname; then
29233 gl_GNULIB_ENABLED_tempname_TRUE
=
29234 gl_GNULIB_ENABLED_tempname_FALSE
='#'
29236 gl_GNULIB_ENABLED_tempname_TRUE
='#'
29237 gl_GNULIB_ENABLED_tempname_FALSE
=
29240 if $gl_gnulib_enabled_682e609604ccaac6be382e4ee3a4eaec; then
29241 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_TRUE
=
29242 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_FALSE
='#'
29244 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_TRUE
='#'
29245 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_FALSE
=
29248 # End of code from modules
29269 gl_source_base
='tests'
29270 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
29272 gl_module_indicator_condition
=$gltests_WITNESS
29283 LIBGNU_LIBDEPS
="$gl_libdeps"
29285 LIBGNU_LTLIBDEPS
="$gl_ltlibdeps"
29288 CFLAGS
=$SAVE_CFLAGS
29291 if test "${opsys}" = "mingw32"; then
29292 CPPFLAGS
="$CPPFLAGS -DUSE_CRT_DLL=1 -I $srcdir/nt/inc"
29293 # Remove unneeded switches from the value of CC that goes to Makefiles
29294 CC
=`echo $CC | sed -e "s,$GCC_TEST_OPTIONS,,"`
29298 aix4-2
) LD_SWITCH_SYSTEM_TEMACS
="-Wl,-bnodelcsect" ;;
29301 ## The -headerpad option tells ld (see man page) to leave room at the
29302 ## end of the header for adding load commands. Needed for dumping.
29303 ## 0x690 is the total size of 30 segment load commands (at 56
29304 ## each); under Cocoa 31 commands are required.
29305 if test "$HAVE_NS" = "yes"; then
29306 libs_nsgui
="-framework AppKit"
29307 if test "$NS_IMPL_COCOA" = "yes"; then
29308 libs_nsgui
="$libs_nsgui -framework IOKit"
29310 headerpad_extra
=6C8
29313 headerpad_extra
=690
29315 LD_SWITCH_SYSTEM_TEMACS
="-fno-pie -prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
29317 ## This is here because src/Makefile.in did some extra fiddling around
29318 ## with LD_SWITCH_SYSTEM. It seems cleaner to put this in
29319 ## LD_SWITCH_SYSTEM_TEMACS instead,
29320 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
29321 LD_SWITCH_SYSTEM_TEMACS
="-X $LD_SWITCH_SYSTEM_TEMACS"
29324 ## LD_SWITCH_X_SITE_RPATH is a -rpath option saying where to
29325 ## find X at run-time.
29326 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at the
29327 ## point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_RPATH
29328 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
29329 ## had different values in configure (in ac_link) and src/Makefile.in.
29330 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
29331 gnu
*) LD_SWITCH_SYSTEM_TEMACS
="\$(LD_SWITCH_X_SITE_RPATH)" ;;
29334 ## MinGW64 does not prepend an underscore to symbols, so we must
29335 ## pass a different -entry switch to linker. FIXME: It is better
29336 ## to make the entry points the same by changing unexw32.c.
29337 case "$canonical" in
29338 x86_64-
*-*) LD_SWITCH_SYSTEM_TEMACS
="-Wl,-stack,0x00800000 -Wl,-heap,0x00100000 -Wl,-image-base,0x01000000 -Wl,-entry,_start -Wl,-Map,./temacs.map" ;;
29339 *) LD_SWITCH_SYSTEM_TEMACS
="-Wl,-stack,0x00800000 -Wl,-heap,0x00100000 -Wl,-image-base,0x01000000 -Wl,-entry,__start -Wl,-Map,./temacs.map" ;;
29343 openbsd
) LD_SWITCH_SYSTEM_TEMACS
='-nopie' ;;
29345 *) LD_SWITCH_SYSTEM_TEMACS
= ;;
29348 if test x
$ac_enable_profiling != x
; then
29350 *freebsd | gnu-linux
) ;;
29351 *) LD_SWITCH_SYSTEM_TEMACS
="$LD_SWITCH_SYSTEM_TEMACS -pg" ;;
29355 LD_SWITCH_SYSTEM_TEMACS
="$LDFLAGS_NOCOMBRELOC $LD_SWITCH_SYSTEM_TEMACS"
29359 ## MinGW-specific post-link processing of temacs.
29360 TEMACS_POST_LINK
=":"
29363 if test "${opsys}" = "mingw32"; then
29364 TEMACS_POST_LINK
="\$(MINGW_TEMACS_POST_LINK)"
29365 ADDSECTION
="../nt/addsection\$(EXEEXT)"
29366 ## Preload heap size of temacs.exe in MB.
29367 case "$canonical" in
29368 x86_64-
*-*) EMACS_HEAPSIZE
=42 ;;
29369 *) EMACS_HEAPSIZE
=27 ;;
29377 ## Common for all window systems
29378 if test "$window_system" != "none"; then
29380 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
29382 WINDOW_SYSTEM_OBJ
="fontset.o fringe.o image.o"
29389 #### Report on what we decided to do.
29390 #### Report GTK as a toolkit, even if it doesn't use Xt.
29391 #### It makes printing result more understandable as using GTK sets
29392 #### toolkit_scroll_bars to yes by default.
29393 if test "${HAVE_GTK}" = "yes"; then
29394 USE_X_TOOLKIT
="$USE_GTK_TOOLKIT"
29397 if test $USE_ACL -ne 0; then
29398 acl_summary
="yes $LIB_ACL"
29404 Configured for \`${canonical}'.
29406 Where should the build process find the source code? ${srcdir}
29407 What compiler should emacs be built with? ${CC} ${CFLAGS}
29408 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
29409 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
29410 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
29411 What window system should Emacs use? ${window_system}
29412 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
29414 if test -n "${x_includes}"; then
29415 echo " Where do we find X Windows header files? ${x_includes}"
29417 echo " Where do we find X Windows header files? Standard dirs"
29419 if test -n "${x_libraries}"; then
29420 echo " Where do we find X Windows libraries? ${x_libraries}"
29422 echo " Where do we find X Windows libraries? Standard dirs"
29425 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
29426 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
29427 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
29428 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
29429 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
29430 echo " Does Emacs use -lpng? ${HAVE_PNG}"
29431 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
29432 echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
29434 echo " Does Emacs support sound? ${HAVE_SOUND}"
29436 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
29437 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
29438 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
29439 echo " Does Emacs use GSettings? ${HAVE_GSETTINGS}"
29440 echo " Does Emacs use a file notification library? ${NOTIFY_SUMMARY}"
29441 echo " Does Emacs use access control lists? ${acl_summary}"
29442 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
29443 echo " Does Emacs use -lgnutls? ${HAVE_GNUTLS}"
29444 echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}"
29446 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
29447 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
29448 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
29449 echo " Does Emacs use -lxft? ${HAVE_XFT}"
29450 echo " Does Emacs directly use zlib? ${HAVE_ZLIB}"
29452 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
29455 if test -n "${EMACSDATA}"; then
29456 echo " Environment variable EMACSDATA set to: $EMACSDATA"
29458 if test -n "${EMACSDOC}"; then
29459 echo " Environment variable EMACSDOC set to: $EMACSDOC"
29464 if test "$HAVE_NS" = "yes"; then
29466 echo "You must run \"${MAKE-make} install\" in order to test the built application.
29467 The installed application will go to nextstep/Emacs.app and can be
29468 run or moved from there."
29469 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
29470 echo "The application will be fully self-contained."
29472 echo "The lisp resources for the application will be installed under ${prefix}.
29473 You may need to run \"${MAKE-make} install\" with sudo. The application will fail
29474 to run if these resources are not installed."
29479 if test "${opsys}" = "cygwin"; then
29481 1.5.
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: building Emacs on Cygwin 1.5 is not supported." >&5
29482 $as_echo "$as_me: WARNING: building Emacs on Cygwin 1.5 is not supported." >&2;}
29488 # Remove any trailing slashes in these variables.
29489 test "${prefix}" != NONE
&&
29490 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
29491 test "${exec_prefix}" != NONE
&&
29492 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
29494 if test "$HAVE_NS" = "yes"; then
29495 if test "$NS_IMPL_GNUSTEP" = yes; then
29496 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"
29498 ns_check_file
=Resources
/Info-gnustep.plist
29500 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"
29502 ns_check_file
=Contents
/Info.plist
29507 SUBDIR_MAKEFILES
="lib/Makefile lib-src/Makefile oldXMenu/Makefile doc/emacs/Makefile doc/misc/Makefile doc/lispintro/Makefile doc/lispref/Makefile src/Makefile lwlib/Makefile lisp/Makefile leim/Makefile nextstep/Makefile nt/Makefile"
29509 ac_config_files
="$ac_config_files Makefile lib/Makefile lib-src/Makefile oldXMenu/Makefile doc/emacs/Makefile doc/misc/Makefile doc/lispintro/Makefile doc/lispref/Makefile src/Makefile lwlib/Makefile lisp/Makefile leim/Makefile nextstep/Makefile nt/Makefile"
29512 opt_makefile
=test
/automated
/Makefile
29514 if test -f "$srcdir/$opt_makefile.in"; then
29515 SUBDIR_MAKEFILES
="$SUBDIR_MAKEFILES $opt_makefile"
29516 ac_config_files
="$ac_config_files test/automated/Makefile"
29521 opt_makefile
=admin
/unidata
/Makefile
29523 if test -f "$srcdir/$opt_makefile.in"; then
29524 SUBDIR_MAKEFILES
="$SUBDIR_MAKEFILES $opt_makefile"
29525 ac_config_files
="$ac_config_files admin/unidata/Makefile"
29530 SUBDIR_MAKEFILES_IN
=`echo " ${SUBDIR_MAKEFILES}" | sed -e 's| | $(srcdir)/|g' -e 's|Makefile|Makefile.in|g'`
29534 ac_config_commands
="$ac_config_commands src/epaths.h"
29537 ac_config_commands
="$ac_config_commands src/.gdbinit"
29540 cat >confcache
<<\_ACEOF
29541 # This file is a shell script that caches the results of configure
29542 # tests run on this system so they can be shared between configure
29543 # scripts and configure runs, see configure's option --config-cache.
29544 # It is not useful on other systems. If it contains results you don't
29545 # want to keep, you may remove or edit it.
29547 # config.status only pays attention to the cache file if you give it
29548 # the --recheck option to rerun configure.
29550 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29551 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29552 # following values.
29556 # The following way of writing the cache mishandles newlines in values,
29557 # but we know of no workaround that is simple, portable, and efficient.
29558 # So, we kill variables containing newlines.
29559 # Ultrix sh set writes to stderr and can't be redirected directly,
29560 # and sets the high bit in the cache file unless we assign to the vars.
29562 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
29563 eval ac_val
=\$
$ac_var
29567 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
29568 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
29571 _ | IFS | as_nl
) ;; #(
29572 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
29573 *) { eval $ac_var=; unset $ac_var;} ;;
29579 case $as_nl`(ac_space=' '; set) 2>&1` in #(
29580 *${as_nl}ac_space
=\
*)
29581 # `set' does not quote correctly, so add quotes: double-quote
29582 # substitution turns \\\\ into \\, and sed turns \\ into \.
29585 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29588 # `set' quotes correctly as required by POSIX, so do not add quotes.
29589 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
29598 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29600 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29602 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
29603 if test -w "$cache_file"; then
29604 test "x$cache_file" != "x/dev/null" &&
29605 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
29606 $as_echo "$as_me: updating cache $cache_file" >&6;}
29607 cat confcache
>$cache_file
29609 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
29610 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
29615 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
29616 # Let make expand exec_prefix.
29617 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
29619 DEFS
=-DHAVE_CONFIG_H
29623 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
29624 # 1. Remove the extension, and $U if already installed.
29625 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
29626 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
29627 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
29628 # will be set to the directory where LIBOBJS objects are built.
29629 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
29630 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
29632 LIBOBJS
=$ac_libobjs
29634 LTLIBOBJS
=$ac_ltlibobjs
29637 if test -n "$EXEEXT"; then
29639 am__EXEEXT_FALSE
='#'
29641 am__EXEEXT_TRUE
='#'
29645 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
29646 as_fn_error
"conditional \"AMDEP\" was never defined.
29647 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29649 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
29650 as_fn_error
"conditional \"am__fastdepCC\" was never defined.
29651 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29653 if test -z "${BUILDING_FOR_WINDOWSNT_TRUE}" && test -z "${BUILDING_FOR_WINDOWSNT_FALSE}"; then
29654 as_fn_error
"conditional \"BUILDING_FOR_WINDOWSNT\" was never defined.
29655 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29657 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
29658 as_fn_error
"conditional \"GL_COND_LIBTOOL\" was never defined.
29659 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29661 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
29662 as_fn_error
"conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
29663 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29665 if test -z "${GL_GENERATE_BYTESWAP_H_TRUE}" && test -z "${GL_GENERATE_BYTESWAP_H_FALSE}"; then
29666 as_fn_error
"conditional \"GL_GENERATE_BYTESWAP_H\" was never defined.
29667 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29670 if test -z "${GL_GENERATE_ERRNO_H_TRUE}" && test -z "${GL_GENERATE_ERRNO_H_FALSE}"; then
29671 as_fn_error
"conditional \"GL_GENERATE_ERRNO_H\" was never defined.
29672 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29674 if test -z "${GL_GENERATE_EXECINFO_H_TRUE}" && test -z "${GL_GENERATE_EXECINFO_H_FALSE}"; then
29675 as_fn_error
"conditional \"GL_GENERATE_EXECINFO_H\" was never defined.
29676 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29678 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
29679 as_fn_error
"conditional \"GL_GENERATE_STDINT_H\" was never defined.
29680 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29682 if test -z "${GL_GENERATE_STDALIGN_H_TRUE}" && test -z "${GL_GENERATE_STDALIGN_H_FALSE}"; then
29683 as_fn_error
"conditional \"GL_GENERATE_STDALIGN_H\" was never defined.
29684 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29686 if test -z "${GL_GENERATE_STDARG_H_TRUE}" && test -z "${GL_GENERATE_STDARG_H_FALSE}"; then
29687 as_fn_error
"conditional \"GL_GENERATE_STDARG_H\" was never defined.
29688 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29690 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
29691 as_fn_error
"conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
29692 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29694 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
29695 as_fn_error
"conditional \"GL_GENERATE_STDDEF_H\" was never defined.
29696 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29698 if test -z "${gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_TRUE}" && test -z "${gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_FALSE}"; then
29699 as_fn_error
"conditional \"gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b\" was never defined.
29700 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29702 if test -z "${gl_GNULIB_ENABLED_dosname_TRUE}" && test -z "${gl_GNULIB_ENABLED_dosname_FALSE}"; then
29703 as_fn_error
"conditional \"gl_GNULIB_ENABLED_dosname\" was never defined.
29704 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29706 if test -z "${gl_GNULIB_ENABLED_euidaccess_TRUE}" && test -z "${gl_GNULIB_ENABLED_euidaccess_FALSE}"; then
29707 as_fn_error
"conditional \"gl_GNULIB_ENABLED_euidaccess\" was never defined.
29708 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29710 if test -z "${gl_GNULIB_ENABLED_getdtablesize_TRUE}" && test -z "${gl_GNULIB_ENABLED_getdtablesize_FALSE}"; then
29711 as_fn_error
"conditional \"gl_GNULIB_ENABLED_getdtablesize\" was never defined.
29712 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29714 if test -z "${gl_GNULIB_ENABLED_getgroups_TRUE}" && test -z "${gl_GNULIB_ENABLED_getgroups_FALSE}"; then
29715 as_fn_error
"conditional \"gl_GNULIB_ENABLED_getgroups\" was never defined.
29716 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29718 if test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE}" && test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE}"; then
29719 as_fn_error
"conditional \"gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36\" was never defined.
29720 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29722 if test -z "${gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_TRUE}" && test -z "${gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_FALSE}"; then
29723 as_fn_error
"conditional \"gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1\" was never defined.
29724 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29726 if test -z "${gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_TRUE}" && test -z "${gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_FALSE}"; then
29727 as_fn_error
"conditional \"gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7\" was never defined.
29728 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29730 if test -z "${gl_GNULIB_ENABLED_pathmax_TRUE}" && test -z "${gl_GNULIB_ENABLED_pathmax_FALSE}"; then
29731 as_fn_error
"conditional \"gl_GNULIB_ENABLED_pathmax\" was never defined.
29732 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29734 if test -z "${gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_TRUE}" && test -z "${gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_FALSE}"; then
29735 as_fn_error
"conditional \"gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c\" was never defined.
29736 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29738 if test -z "${gl_GNULIB_ENABLED_secure_getenv_TRUE}" && test -z "${gl_GNULIB_ENABLED_secure_getenv_FALSE}"; then
29739 as_fn_error
"conditional \"gl_GNULIB_ENABLED_secure_getenv\" was never defined.
29740 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29742 if test -z "${gl_GNULIB_ENABLED_stat_TRUE}" && test -z "${gl_GNULIB_ENABLED_stat_FALSE}"; then
29743 as_fn_error
"conditional \"gl_GNULIB_ENABLED_stat\" was never defined.
29744 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29746 if test -z "${gl_GNULIB_ENABLED_strtoll_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoll_FALSE}"; then
29747 as_fn_error
"conditional \"gl_GNULIB_ENABLED_strtoll\" was never defined.
29748 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29750 if test -z "${gl_GNULIB_ENABLED_strtoull_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoull_FALSE}"; then
29751 as_fn_error
"conditional \"gl_GNULIB_ENABLED_strtoull\" was never defined.
29752 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29754 if test -z "${gl_GNULIB_ENABLED_tempname_TRUE}" && test -z "${gl_GNULIB_ENABLED_tempname_FALSE}"; then
29755 as_fn_error
"conditional \"gl_GNULIB_ENABLED_tempname\" was never defined.
29756 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29758 if test -z "${gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_TRUE}" && test -z "${gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_FALSE}"; then
29759 as_fn_error
"conditional \"gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec\" was never defined.
29760 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29765 if test -n "$gl_LIBOBJS"; then
29766 # Remove the extension.
29767 sed_drop_objext
='s/\.o$//;s/\.obj$//'
29768 for i
in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
29769 gl_libobjs
="$gl_libobjs $i.$ac_objext"
29770 gl_ltlibobjs
="$gl_ltlibobjs $i.lo"
29773 gl_LIBOBJS
=$gl_libobjs
29775 gl_LTLIBOBJS
=$gl_ltlibobjs
29781 if test -n "$gltests_LIBOBJS"; then
29782 # Remove the extension.
29783 sed_drop_objext
='s/\.o$//;s/\.obj$//'
29784 for i
in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
29785 gltests_libobjs
="$gltests_libobjs $i.$ac_objext"
29786 gltests_ltlibobjs
="$gltests_ltlibobjs $i.lo"
29789 gltests_LIBOBJS
=$gltests_libobjs
29791 gltests_LTLIBOBJS
=$gltests_ltlibobjs
29795 : ${CONFIG_STATUS=./config.status}
29797 ac_clean_files_save
=$ac_clean_files
29798 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
29799 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
29800 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
29802 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
29804 # Generated by $as_me.
29805 # Run this file to recreate the current configuration.
29806 # Compiler output produced by configure, useful for debugging
29807 # configure, is in config.log if it exists.
29810 ac_cs_recheck=false
29813 SHELL=\${CONFIG_SHELL-$SHELL}
29816 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
29817 ## -------------------- ##
29818 ## M4sh Initialization. ##
29819 ## -------------------- ##
29821 # Be more Bourne compatible
29822 DUALCASE
=1; export DUALCASE
# for MKS sh
29823 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
29826 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
29827 # is contrary to our usage. Disable this feature.
29828 alias -g '${1+"$@"}'='"$@"'
29829 setopt NO_GLOB_SUBST
29831 case `(set -o) 2>/dev/null` in #(
29843 # Printing a long string crashes Solaris 7 /usr/bin/printf.
29844 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
29845 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
29846 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
29847 # Prefer a ksh shell builtin over an external printf program on Solaris,
29848 # but without wasting forks for bash or zsh.
29849 if test -z "$BASH_VERSION$ZSH_VERSION" \
29850 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
29851 as_echo='print
-r --'
29852 as_echo_n='print
-rn --'
29853 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
29854 as_echo='printf %s
\n'
29855 as_echo_n='printf %s
'
29857 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
29858 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
29859 as_echo_n='/usr
/ucb
/echo -n'
29861 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
29862 as_echo_n_body='eval
29866 expr "X$arg" : "X\\(.*\\)$as_nl";
29867 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
29869 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
29871 export as_echo_n_body
29872 as_echo_n='sh
-c $as_echo_n_body as_echo
'
29874 export as_echo_body
29875 as_echo='sh
-c $as_echo_body as_echo
'
29878 # The user is always right.
29879 if test "${PATH_SEPARATOR+set}" != set; then
29881 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
29882 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
29889 # We need space, tab and new line, in precisely that order. Quoting is
29890 # there to prevent editors from complaining about space-tab.
29891 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
29892 # splitting by setting IFS to empty value.)
29895 # Find who we are. Look in the path if we contain no directory separator.
29897 *[\\/]* ) as_myself=$0 ;;
29898 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29899 for as_dir in $PATH
29902 test -z "$as_dir" && as_dir=.
29903 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
29909 # We did not find ourselves, most probably we were run as `sh COMMAND'
29910 # in which case we are not to be found in the path.
29911 if test "x$as_myself" = x
; then
29914 if test ! -f "$as_myself"; then
29915 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
29919 # Unset variables that we do not need and which cause bugs (e.g. in
29920 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
29921 # suppresses any "Segmentation fault" message there. '((' could
29922 # trigger a bug in pdksh 5.2.14.
29923 for as_var
in BASH_ENV ENV MAIL MAILPATH
29924 do eval test x\
${$as_var+set} = xset \
29925 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
29938 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
29941 # as_fn_error ERROR [LINENO LOG_FD]
29942 # ---------------------------------
29943 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
29944 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
29945 # script with status $?, using 1 if that was 0.
29948 as_status
=$?
; test $as_status -eq 0 && as_status
=1
29950 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
29951 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
29953 $as_echo "$as_me: error: $1" >&2
29954 as_fn_exit
$as_status
29958 # as_fn_set_status STATUS
29959 # -----------------------
29960 # Set $? to STATUS, without forking.
29961 as_fn_set_status
()
29964 } # as_fn_set_status
29966 # as_fn_exit STATUS
29967 # -----------------
29968 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
29972 as_fn_set_status
$1
29978 # Portably unset VAR.
29981 { eval $1=; unset $1;}
29983 as_unset
=as_fn_unset
29984 # as_fn_append VAR VALUE
29985 # ----------------------
29986 # Append the text in VALUE to the end of the definition contained in VAR. Take
29987 # advantage of any shell optimizations that allow amortized linear growth over
29988 # repeated appends, instead of the typical quadratic growth present in naive
29990 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
29991 eval 'as_fn_append ()
30002 # as_fn_arith ARG...
30003 # ------------------
30004 # Perform arithmetic evaluation on the ARGs, and store the result in the
30005 # global $as_val. Take advantage of shells that can avoid forks. The arguments
30006 # must be portable across $(()) and expr.
30007 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
30008 eval 'as_fn_arith ()
30015 as_val
=`expr "$@" || test $? -eq 1`
30020 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
30021 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
30027 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30028 as_basename
=basename
30033 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
30039 as_me
=`$as_basename -- "$0" ||
30040 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30041 X"$0" : 'X\(//\)$' \| \
30042 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
30044 sed '/^.*\/\([^/][^/]*\)\/*$/{
30058 # Avoid depending upon Character Ranges.
30059 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
30060 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30061 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
30062 as_cr_digits
='0123456789'
30063 as_cr_alnum
=$as_cr_Letters$as_cr_digits
30065 ECHO_C
= ECHO_N
= ECHO_T
=
30066 case `echo -n x` in #(((((
30068 case `echo 'xy\c'` in
30069 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
30071 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
30078 rm -f conf$$ conf$$.exe conf$$.
file
30079 if test -d conf$$.dir
; then
30080 rm -f conf$$.dir
/conf$$.
file
30083 mkdir conf$$.dir
2>/dev
/null
30085 if (echo >conf$$.
file) 2>/dev
/null
; then
30086 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
30088 # ... but there are two gotchas:
30089 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
30090 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
30091 # In both cases, we have to default to `cp -p'.
30092 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
30094 elif ln conf$$.
file conf$$
2>/dev
/null
; then
30102 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
30103 rmdir conf$$.dir
2>/dev
/null
30108 # Create "$as_dir" as a directory, including parents if necessary.
30113 -*) as_dir
=.
/$as_dir;;
30115 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
30119 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
30120 *) as_qdir
=$as_dir;;
30122 as_dirs
="'$as_qdir' $as_dirs"
30123 as_dir
=`$as_dirname -- "$as_dir" ||
30124 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30125 X"$as_dir" : 'X\(//\)[^/]' \| \
30126 X"$as_dir" : 'X\(//\)$' \| \
30127 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30128 $as_echo X"$as_dir" |
30129 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30133 /^X\(\/\/\)[^/].*/{
30146 test -d "$as_dir" && break
30148 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
30149 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
30153 if mkdir
-p .
2>/dev
/null
; then
30154 as_mkdir_p
='mkdir -p "$as_dir"'
30156 test -d .
/-p && rmdir .
/-p
30160 if test -x / >/dev
/null
2>&1; then
30161 as_test_x
='test -x'
30163 if ls -dL / >/dev
/null
2>&1; then
30170 if test -d "$1"; then
30176 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
30177 ???[sx]*):;;*)false;;esac;fi
30181 as_executable_p
=$as_test_x
30183 # Sed expression to map a string onto a valid CPP name.
30184 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30186 # Sed expression to map a string onto a valid variable name.
30187 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30191 ## ----------------------------------- ##
30192 ## Main body of $CONFIG_STATUS script. ##
30193 ## ----------------------------------- ##
30195 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
30197 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30198 # Save the log message, to keep $0 and so on meaningful, and to
30199 # report actual input values of CONFIG_FILES etc. instead of their
30200 # values after options handling.
30202 This file was extended by emacs $as_me 24.3.50, which was
30203 generated by GNU Autoconf 2.65. Invocation command line was
30205 CONFIG_FILES = $CONFIG_FILES
30206 CONFIG_HEADERS = $CONFIG_HEADERS
30207 CONFIG_LINKS = $CONFIG_LINKS
30208 CONFIG_COMMANDS = $CONFIG_COMMANDS
30211 on `(hostname || uname -n) 2>/dev/null | sed 1q`
30216 case $ac_config_files in *"
30217 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
30220 case $ac_config_headers in *"
30221 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
30225 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30226 # Files that config.status was made for.
30227 config_files="$ac_config_files"
30228 config_headers="$ac_config_headers"
30229 config_commands="$ac_config_commands"
30233 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30235 \`$as_me' instantiates files and other configuration actions
30236 from templates according to the current configuration. Unless the files
30237 and actions are specified as TAGs, all are instantiated by default.
30239 Usage: $0 [OPTION]... [TAG]...
30241 -h, --help print this help, then exit
30242 -V, --version print version number and configuration settings, then exit
30243 --config print configuration, then exit
30244 -q, --quiet, --silent
30245 do not print progress messages
30246 -d, --debug don't remove temporary files
30247 --recheck update $as_me by reconfiguring in the same conditions
30248 --file=FILE[:TEMPLATE]
30249 instantiate the configuration file FILE
30250 --header=FILE[:TEMPLATE]
30251 instantiate the configuration header FILE
30253 Configuration files:
30256 Configuration headers:
30259 Configuration commands:
30262 Report bugs to the package provider."
30265 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30266 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
30268 emacs config.status 24.3.50
30269 configured by $0, generated by GNU Autoconf 2.65,
30270 with options \\"\$ac_cs_config\\"
30272 Copyright (C) 2009 Free Software Foundation, Inc.
30273 This config.status script is free software; the Free Software Foundation
30274 gives unlimited permission to copy, distribute and modify it."
30281 test -n "\$AWK" || AWK=awk
30284 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30285 # The default lists apply if the user does not specify any file.
30291 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
30292 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
30303 # Handling of the options.
30304 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
30306 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
30307 $as_echo "$ac_cs_version"; exit ;;
30308 --config |
--confi |
--conf |
--con |
--co |
--c )
30309 $as_echo "$ac_cs_config"; exit ;;
30310 --debug |
--debu |
--deb |
--de |
--d |
-d )
30312 --file |
--fil |
--fi |
--f )
30315 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30317 as_fn_append CONFIG_FILES
" '$ac_optarg'"
30318 ac_need_defaults
=false
;;
30319 --header |
--heade |
--head |
--hea )
30322 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30324 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
30325 ac_need_defaults
=false
;;
30327 # Conflict between --help and --header
30328 as_fn_error
"ambiguous option: \`$1'
30329 Try \`$0 --help' for more information.";;
30330 --help |
--hel |
-h )
30331 $as_echo "$ac_cs_usage"; exit ;;
30332 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
30333 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
30336 # This is an error.
30337 -*) as_fn_error
"unrecognized option: \`$1'
30338 Try \`$0 --help' for more information." ;;
30340 *) as_fn_append ac_config_targets
" $1"
30341 ac_need_defaults
=false
;;
30347 ac_configure_extra_args
=
30349 if $ac_cs_silent; then
30351 ac_configure_extra_args
="$ac_configure_extra_args --silent"
30355 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30356 if \$ac_cs_recheck; then
30357 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30359 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
30360 CONFIG_SHELL='$SHELL'
30361 export CONFIG_SHELL
30366 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30370 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30371 ## Running $as_me. ##
30377 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30381 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
30382 GCC="$GCC" CPPFLAGS="$CPPFLAGS" opsys="$opsys"
30386 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30388 # Handling of arguments.
30389 for ac_config_target
in $ac_config_targets
30391 case $ac_config_target in
30392 "src/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
30393 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
30394 "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" ;;
30395 "nextstep/GNUstep/Emacs.base/Resources/Emacs.desktop") CONFIG_FILES
="$CONFIG_FILES nextstep/GNUstep/Emacs.base/Resources/Emacs.desktop:nextstep/templates/Emacs.desktop.in" ;;
30396 "nextstep/Cocoa/Emacs.base/Contents/Info.plist") CONFIG_FILES
="$CONFIG_FILES nextstep/Cocoa/Emacs.base/Contents/Info.plist:nextstep/templates/Info.plist.in" ;;
30397 "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" ;;
30398 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
30399 "lib/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/Makefile" ;;
30400 "lib-src/Makefile") CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile" ;;
30401 "oldXMenu/Makefile") CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
30402 "doc/emacs/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/emacs/Makefile" ;;
30403 "doc/misc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/misc/Makefile" ;;
30404 "doc/lispintro/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispintro/Makefile" ;;
30405 "doc/lispref/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispref/Makefile" ;;
30406 "src/Makefile") CONFIG_FILES
="$CONFIG_FILES src/Makefile" ;;
30407 "lwlib/Makefile") CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
30408 "lisp/Makefile") CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
30409 "leim/Makefile") CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
30410 "nextstep/Makefile") CONFIG_FILES
="$CONFIG_FILES nextstep/Makefile" ;;
30411 "nt/Makefile") CONFIG_FILES
="$CONFIG_FILES nt/Makefile" ;;
30412 "test/automated/Makefile") CONFIG_FILES
="$CONFIG_FILES test/automated/Makefile" ;;
30413 "admin/unidata/Makefile") CONFIG_FILES
="$CONFIG_FILES admin/unidata/Makefile" ;;
30414 "src/epaths.h") CONFIG_COMMANDS
="$CONFIG_COMMANDS src/epaths.h" ;;
30415 "src/.gdbinit") CONFIG_COMMANDS
="$CONFIG_COMMANDS src/.gdbinit" ;;
30417 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
30422 # If the user did not use the arguments to specify the items to instantiate,
30423 # then the envvar interface is used. Set only those that are not.
30424 # We use the long form for the default assignment because of an extremely
30425 # bizarre bug on SunOS 4.1.3.
30426 if $ac_need_defaults; then
30427 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
30428 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
30429 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
30432 # Have a temporary directory for convenience. Make it in the build tree
30433 # simply because there is no reason against having it here, and in addition,
30434 # creating and moving files from /tmp can sometimes cause problems.
30435 # Hook for its removal unless debugging.
30436 # Note that there is a small window in which the directory will not be cleaned:
30437 # after its creation but before its name has been assigned to `$tmp'.
30441 trap 'exit_status=$?
30442 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
30444 trap 'as_fn_exit 1' 1 2 13 15
30446 # Create a (secure) tmp directory for tmp files.
30449 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
30450 test -n "$tmp" && test -d "$tmp"
30453 tmp
=.
/conf$$
-$RANDOM
30454 (umask 077 && mkdir
"$tmp")
30455 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
30457 # Set up the scripts for CONFIG_FILES section.
30458 # No need to generate them if there are no CONFIG_FILES.
30459 # This happens for instance with `./config.status config.h'.
30460 if test -n "$CONFIG_FILES"; then
30462 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
30463 ac_cs_awk_getline
=:
30464 ac_cs_awk_pipe_init
=
30465 ac_cs_awk_read_file
='
30466 while ((getline aline < (F[key])) > 0)
30469 ac_cs_awk_pipe_fini
=
30471 ac_cs_awk_getline
=false
30472 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
30473 ac_cs_awk_read_file
='
30475 print "cat " F[key] " &&"
30476 '$ac_cs_awk_pipe_init
30477 # The final `:' finishes the AND list.
30478 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
30480 ac_cr
=`echo X | tr X '\015'`
30481 # On cygwin, bash can eat \r inside `` if the user requested igncr.
30482 # But we know of no other shell where ac_cr would be empty at this
30483 # point, so we can use a bashism as a fallback.
30484 if test "x$ac_cr" = x
; then
30485 eval ac_cr
=\$
\'\\r
\'
30487 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
30488 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
30491 ac_cs_awk_cr
=$ac_cr
30494 echo 'BEGIN {' >"$tmp/subs1.awk" &&
30497 # Create commands to substitute file output variables.
30499 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
30500 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
30501 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
30504 } >conf$
$files.sh
&&
30505 . .
/conf$
$files.sh ||
30506 as_fn_error
"could not make $CONFIG_STATUS" "$LINENO" 5
30507 rm -f conf$
$files.sh
30510 echo "cat >conf$$subs.awk <<_ACEOF" &&
30511 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
30513 } >conf$$subs.sh ||
30514 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
30515 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
30517 for ac_last_try in false false false false false :; do
30518 . ./conf$$subs.sh ||
30519 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
30521 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
30522 if test $ac_delim_n = $ac_delim_num; then
30524 elif $ac_last_try; then
30525 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
30527 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
30530 rm -f conf$$subs.sh
30532 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30533 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
30537 s/^/S["/; s
/!.
*/"]=/
30547 s/\(.\{148\}\)..*/\1/
30549 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
30554 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
30561 s/\(.\{148\}\)..*/\1/
30563 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
30567 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
30572 ' <conf$$subs.awk | sed '
30577 ' >>$CONFIG_STATUS || ac_write_fail=1
30578 rm -f conf$$subs.awk
30579 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30581 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
30582 for (key in S) S_is_set[key] = 1
30584 \$ac_cs_awk_pipe_init
30588 nfields = split(line, field, "@
")
30590 len = length(field[1])
30591 for (i = 2; i < nfields; i++) {
30593 keylen = length(key)
30594 if (S_is_set[key]) {
30596 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
30597 len += length(value) + length(field[++i])
30602 if (nfields == 3 && !substed) {
30604 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
30605 \$ac_cs_awk_read_file
30611 \$ac_cs_awk_pipe_fini
30614 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30615 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
30616 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
30619 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
30620 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
30623 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30624 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
30625 # trailing colons and then remove the whole line if VPATH becomes empty
30626 # (actually we leave an empty line to preserve line numbers).
30627 if test "x
$srcdir" = x.; then
30628 ac_vpsub='/^[ ]*VPATH[ ]*=/{
30629 s/:*\$(srcdir):*/:/
30630 s/:*\${srcdir}:*/:/
30632 s/^\([^=]*=[ ]*\):*/\1/
30638 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30639 fi # test -n "$CONFIG_FILES"
30641 # Set up the scripts for CONFIG_HEADERS section.
30642 # No need to generate them if there are no CONFIG_HEADERS.
30643 # This happens for instance with `./config.status Makefile'.
30644 if test -n "$CONFIG_HEADERS"; then
30645 cat >"$tmp/defines.
awk" <<\_ACAWK ||
30649 # Transform confdefs.h into an awk script `defines.awk', embedded as
30650 # here-document in config.status, that substitutes the proper values into
30651 # config.h.in to produce config.h.
30653 # Create a delimiter string that does not exist in confdefs.h, to ease
30654 # handling of long lines.
30656 for ac_last_try in false false :; do
30657 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
30658 if test -z "$ac_t"; then
30660 elif $ac_last_try; then
30661 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
30663 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
30667 # For the awk script, D is an array of macro values keyed by name,
30668 # likewise P contains macro parameters if any. Preserve backslash
30669 # newline sequences.
30671 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
30673 s/.\{148\}/&'"$ac_delim"'/g
30676 s/^[ ]*#[ ]*define[ ][ ]*/ /
30683 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
30685 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
30689 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
30690 D["\
1"]=" \
3\\\\\\n
"\\/p
30692 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
30697 s/.\{148\}/&'"$ac_delim"'/g
30702 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
30705 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
30707 ' <confdefs.h | sed '
30708 s/'"$ac_delim"'/"\\\
30709 "/g' >>$CONFIG_STATUS || ac_write_fail=1
30711 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30712 for (key in D) D_is_set[key] = 1
30715 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
30717 split(line, arg, " ")
30718 if (arg[1] == "#") {
30722 defundef
= substr
(arg
[1], 2)
30725 split(mac1
, mac2
, "(") #)
30727 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
30728 if (D_is_set
[macro
]) {
30729 # Preserve the white space surrounding the "#".
30730 print prefix
"define", macro P
[macro
] D
[macro
]
30733 # Replace #undef with comments. This is necessary, for example,
30734 # in the case of _POSIX_SOURCE, which is predefined and required
30735 # on some systems where configure will not decide to define it.
30736 if (defundef
== "undef") {
30737 print
"/*", prefix defundef
, macro
, "*/"
30745 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30746 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
30747 fi # test -n "$CONFIG_HEADERS"
30750 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
30755 :[FHLC
]) ac_mode
=$ac_tag; continue;;
30757 case $ac_mode$ac_tag in
30759 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
30760 :[FH
]-) ac_tag
=-:-;;
30761 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
30778 -) ac_f
="$tmp/stdin";;
30779 *) # Look for the file first in the build tree, then in the source tree
30780 # (if the path is not absolute). The absolute path cannot be DOS-style,
30781 # because $ac_f cannot contain `:'.
30785 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
30787 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
30789 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
30790 as_fn_append ac_file_inputs
" '$ac_f'"
30793 # Let's still pretend it is `configure' which instantiates (i.e., don't
30794 # use $as_me), people would be surprised to read:
30795 # /* config.h. Generated by config.status. */
30796 configure_input
='Generated from '`
30797 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
30799 if test x
"$ac_file" != x-
; then
30800 configure_input
="$ac_file. $configure_input"
30801 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
30802 $as_echo "$as_me: creating $ac_file" >&6;}
30804 # Neutralize special characters interpreted by sed in replacement strings.
30805 case $configure_input in #(
30806 *\
&* |
*\|
* |
*\\* )
30807 ac_sed_conf_input
=`$as_echo "$configure_input" |
30808 sed 's/[\\\\&|]/\\\\&/g'`;; #(
30809 *) ac_sed_conf_input
=$configure_input;;
30813 *:-:* |
*:-) cat >"$tmp/stdin" \
30814 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
30819 ac_dir
=`$as_dirname -- "$ac_file" ||
30820 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30821 X"$ac_file" : 'X\(//\)[^/]' \| \
30822 X"$ac_file" : 'X\(//\)$' \| \
30823 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
30824 $as_echo X"$ac_file" |
30825 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30829 /^X\(\/\/\)[^/].*/{
30842 as_dir
="$ac_dir"; as_fn_mkdir_p
30846 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
30848 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
30849 # A ".." for each directory in $ac_dir_suffix.
30850 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
30851 case $ac_top_builddir_sub in
30852 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
30853 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
30856 ac_abs_top_builddir
=$ac_pwd
30857 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
30858 # for backward compatibility:
30859 ac_top_builddir
=$ac_top_build_prefix
30862 .
) # We are building in place.
30864 ac_top_srcdir
=$ac_top_builddir_sub
30865 ac_abs_top_srcdir
=$ac_pwd ;;
30866 [\\/]* | ?
:[\\/]* ) # Absolute name.
30867 ac_srcdir
=$srcdir$ac_dir_suffix;
30868 ac_top_srcdir
=$srcdir
30869 ac_abs_top_srcdir
=$srcdir ;;
30870 *) # Relative name.
30871 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
30872 ac_top_srcdir
=$ac_top_build_prefix$srcdir
30873 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
30875 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
30885 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
30886 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
30888 ac_MKDIR_P
=$MKDIR_P
30890 [\\/$
]* | ?
:[\\/]* ) ;;
30891 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
30895 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30896 # If the template does not know about datarootdir, expand it.
30897 # FIXME: This hack should be removed a few years after 2.60.
30898 ac_datarootdir_hack
=; ac_datarootdir_seen
=
30909 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
30910 *datarootdir
*) ac_datarootdir_seen
=yes;;
30911 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
30912 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
30913 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
30915 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30916 ac_datarootdir_hack='
30917 s&@datadir@&$datadir&g
30918 s&@docdir@&$docdir&g
30919 s&@infodir@&$infodir&g
30920 s&@localedir@&$localedir&g
30921 s&@mandir@&$mandir&g
30922 s&\\\${datarootdir}&$datarootdir&g' ;;
30926 # Neutralize VPATH when `$srcdir' = `.'.
30927 # Shell code in configure.ac might set extrasub.
30928 # FIXME: do we really want to maintain this feature?
30929 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30930 ac_sed_extra="$ac_vpsub
30933 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30935 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
30936 s|@configure_input@|
$ac_sed_conf_input|
;t t
30937 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
30938 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
30939 s
&@srcdir@
&$ac_srcdir&;t t
30940 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
30941 s
&@top_srcdir@
&$ac_top_srcdir&;t t
30942 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
30943 s
&@builddir@
&$ac_builddir&;t t
30944 s
&@abs_builddir@
&$ac_abs_builddir&;t t
30945 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
30946 s
&@INSTALL@
&$ac_INSTALL&;t t
30947 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
30948 $ac_datarootdir_hack
30950 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
30951 if $ac_cs_awk_getline; then
30952 $AWK -f "$tmp/subs.
awk"
30954 $AWK -f "$tmp/subs.
awk" | $SHELL
30956 || as_fn_error "could not create
$ac_file" "$LINENO" 5
30958 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
30959 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
30960 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
30961 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
30962 which seems to be undefined. Please make sure it is defined." >&5
30963 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
30964 which seems to be undefined. Please make sure it is defined." >&2;}
30968 -) cat "$tmp/out" && rm -f "$tmp/out";;
30969 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
30971 || as_fn_error "could not create $ac_file" "$LINENO" 5
30977 if test x"$ac_file" != x-; then
30979 $as_echo "/* $configure_input */" \
30980 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
30981 } >"$tmp/config.h" \
30982 || as_fn_error "could not create $ac_file" "$LINENO" 5
30983 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
30984 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
30985 $as_echo "$as_me: $ac_file is unchanged" >&6;}
30988 mv "$tmp/config.h" "$ac_file" \
30989 || as_fn_error "could not create $ac_file" "$LINENO" 5
30992 $as_echo "/* $configure_input */" \
30993 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
30994 || as_fn_error "could not create -" "$LINENO" 5
30996 # Compute "$ac_file"'s index
in $config_headers.
30999 for _am_header
in $config_headers :; do
31000 case $_am_header in
31001 $_am_arg |
$_am_arg:* )
31004 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
31007 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
31008 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31009 X"$_am_arg" : 'X\(//\)[^/]' \| \
31010 X"$_am_arg" : 'X\(//\)$' \| \
31011 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
31012 $as_echo X"$_am_arg" |
31013 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31017 /^X\(\/\/\)[^/].*/{
31029 s/.*/./; q'`/stamp-h
$_am_stamp_count
31032 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
31033 $as_echo "$as_me: executing $ac_file commands" >&6;}
31038 case $ac_file$ac_mode in
31039 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
31040 # Autoconf 2.62 quotes --file arguments for eval, but not when files
31041 # are listed without --file. Let's play safe and only enable the eval
31042 # if we detect the quoting.
31043 case $CONFIG_FILES in
31044 *\'*) eval set x
"$CONFIG_FILES" ;;
31045 *) set x
$CONFIG_FILES ;;
31050 # Strip MF so we end up with the name of the file.
31051 mf
=`echo "$mf" | sed -e 's/:.*$//'`
31052 # Check whether this is an Automake generated Makefile or not.
31053 # We used to match only the files named `Makefile.in', but
31054 # some people rename them; so instead we look at the file content.
31055 # Grep'ing the first line is not enough: some people post-process
31056 # each Makefile.in and add a new line on top of each file to say so.
31057 # Grep'ing the whole file is not good either: AIX grep has a line
31058 # limit of 2048, but all sed's we know have understand at least 4000.
31059 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
31060 dirpart
=`$as_dirname -- "$mf" ||
31061 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31062 X"$mf" : 'X\(//\)[^/]' \| \
31063 X"$mf" : 'X\(//\)$' \| \
31064 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
31066 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31070 /^X\(\/\/\)[^/].*/{
31086 # Extract the definition of DEPDIR, am__include, and am__quote
31087 # from the Makefile without running `make'.
31088 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
31089 test -z "$DEPDIR" && continue
31090 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
31091 test -z "am__include" && continue
31092 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
31093 # When using ansi2knr, U may be empty or an underscore; expand it
31094 U
=`sed -n 's/^U = //p' < "$mf"`
31095 # Find all dependency output files, they are included files with
31096 # $(DEPDIR) in their names. We invoke sed twice because it is the
31097 # simplest approach to changing $(DEPDIR) to its actual value in the
31099 for file in `sed -n "
31100 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
31101 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
31102 # Make sure the directory exists.
31103 test -f "$dirpart/$file" && continue
31104 fdir
=`$as_dirname -- "$file" ||
31105 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31106 X"$file" : 'X\(//\)[^/]' \| \
31107 X"$file" : 'X\(//\)$' \| \
31108 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
31109 $as_echo X"$file" |
31110 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31114 /^X\(\/\/\)[^/].*/{
31127 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
31128 # echo "creating $dirpart/$file"
31129 echo '# dummy' > "$dirpart/$file"
31135 if test "${opsys}" = "mingw32"; then
31136 ${MAKE-make} MAKEFILE_NAME
=do-not-make-Makefile epaths-force-w32
31138 ${MAKE-make} MAKEFILE_NAME
=do-not-make-Makefile epaths-force
31142 if test ! -f src
/.gdbinit
&& test -f "$srcdir/src/.gdbinit"; then
31143 echo "source $srcdir/src/.gdbinit" > src
/.gdbinit
31153 ac_clean_files
=$ac_clean_files_save
31155 test $ac_write_fail = 0 ||
31156 as_fn_error
"write failure creating $CONFIG_STATUS" "$LINENO" 5
31159 # configure is writing to config.log, and then calls config.status.
31160 # config.status does its own redirection, appending to config.log.
31161 # Unfortunately, on DOS this fails, as config.log is still kept open
31162 # by configure, so config.status won't be able to write to it; its
31163 # output is simply discarded. So we exec the FD to /dev/null,
31164 # effectively closing config.log, so it can be properly (re)opened and
31165 # appended to by config.status. When coming back to configure, we
31166 # need to make the FD available again.
31167 if test "$no_create" != yes; then
31169 ac_config_status_args
=
31170 test "$silent" = yes &&
31171 ac_config_status_args
="$ac_config_status_args --quiet"
31173 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
31175 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31176 # would make configure fail if this is the last instruction.
31177 $ac_cs_success || as_fn_exit $?
31179 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
31180 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
31181 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}