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 -'
4038 temp_srcdir
=`cd "$srcdir"; pwd`
4040 for var
in "`pwd`" "$temp_srcdir" "$prefix" "$exec_prefix" \
4041 "$datarootdir" "$bindir" "$datadir" "$sharedstatedir" "$libexecdir"; do
4044 *[^\
-~
]*) as_fn_error
"Emacs cannot be built or installed in a directory whose name contains non-ASCII characters: $var" "$LINENO" 5 ;;
4049 lispdir
='${datadir}/emacs/${version}/lisp'
4050 leimdir
='${datadir}/emacs/${version}/leim'
4051 standardlisppath
='${lispdir}:${leimdir}'
4052 locallisppath
='${datadir}/emacs/${version}/site-lisp:'\
4053 '${datadir}/emacs/site-lisp'
4054 lisppath
='${locallisppath}:${standardlisppath}'
4055 etcdir
='${datadir}/emacs/${version}/etc'
4056 archlibdir
='${libexecdir}/emacs/${version}/${configuration}'
4057 etcdocdir
='${datadir}/emacs/${version}/etc'
4058 gamedir
='${localstatedir}/games/emacs'
4061 # Check whether --with-all was given.
4062 if test "${with_all+set}" = set; then :
4063 withval
=$with_all; with_features
=$withval
4072 # Check whether --with-pop was given.
4073 if test "${with_pop+set}" = set; then :
4076 with_pop
=$with_features
4079 if test "$with_pop" = yes; then
4080 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
4085 # Check whether --with-kerberos was given.
4086 if test "${with_kerberos+set}" = set; then :
4087 withval
=$with_kerberos;
4092 if test "$with_kerberos" != no
; then
4093 $as_echo "#define KERBEROS 1" >>confdefs.h
4098 # Check whether --with-kerberos5 was given.
4099 if test "${with_kerberos5+set}" = set; then :
4100 withval
=$with_kerberos5;
4105 if test "${with_kerberos5}" != no
; then
4106 if test "${with_kerberos}" = no
; then
4108 $as_echo "#define KERBEROS 1" >>confdefs.h
4112 $as_echo "#define KERBEROS5 1" >>confdefs.h
4117 # Check whether --with-hesiod was given.
4118 if test "${with_hesiod+set}" = set; then :
4119 withval
=$with_hesiod;
4124 if test "$with_hesiod" != no
; then
4126 $as_echo "#define HESIOD 1" >>confdefs.h
4131 # Check whether --with-mmdf was given.
4132 if test "${with_mmdf+set}" = set; then :
4138 if test "$with_mmdf" != no
; then
4140 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
4145 # Check whether --with-mail-unlink was given.
4146 if test "${with_mail_unlink+set}" = set; then :
4147 withval
=$with_mail_unlink;
4152 if test "$with_mail_unlink" != no
; then
4154 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
4159 # Check whether --with-mailhost was given.
4160 if test "${with_mailhost+set}" = set; then :
4161 withval
=$with_mailhost;
4162 cat >>confdefs.h
<<_ACEOF
4163 #define MAILHOST "$withval"
4170 # Check whether --with-sound was given.
4171 if test "${with_sound+set}" = set; then :
4172 withval
=$with_sound; case "${withval}" in
4173 yes|no|alsa|oss|bsd-ossaudio
) val
=$withval ;;
4174 *) as_fn_error
"\`--with-sound=$withval' is invalid;
4175 this option's value should be \`yes', \`no', \`alsa', \`oss', or \`bsd-ossaudio'." "$LINENO" 5
4181 with_sound
=$with_features
4186 # Check whether --with-x-toolkit was given.
4187 if test "${with_x_toolkit+set}" = set; then :
4188 withval
=$with_x_toolkit; case "${withval}" in
4189 y | ye |
yes ) val
=gtk
;;
4191 l | lu | luc | luci | lucid
) val
=lucid
;;
4192 a |
at | ath | athe | athen | athena
) val
=athena
;;
4193 m | mo | mot | moti | motif
) val
=motif
;;
4194 g | gt | gtk
) val
=gtk
;;
4198 as_fn_error
"\`--with-x-toolkit=$withval' is invalid;
4199 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk',
4200 \`gtk2' or \`gtk3'. \`yes' and \`gtk' are synonyms.
4201 \`athena' and \`lucid' are synonyms." "$LINENO" 5
4210 # Check whether --with-wide-int was given.
4211 if test "${with_wide_int+set}" = set; then :
4212 withval
=$with_wide_int;
4217 if test "$with_wide_int" = yes; then
4219 $as_echo "#define WIDE_EMACS_INT 1" >>confdefs.h
4224 # Check whether --with-xpm was given.
4225 if test "${with_xpm+set}" = set; then :
4228 with_xpm
=$with_features
4232 # Check whether --with-jpeg was given.
4233 if test "${with_jpeg+set}" = set; then :
4236 with_jpeg
=$with_features
4240 # Check whether --with-tiff was given.
4241 if test "${with_tiff+set}" = set; then :
4244 with_tiff
=$with_features
4248 # Check whether --with-gif was given.
4249 if test "${with_gif+set}" = set; then :
4252 with_gif
=$with_features
4256 # Check whether --with-png was given.
4257 if test "${with_png+set}" = set; then :
4260 with_png
=$with_features
4264 # Check whether --with-rsvg was given.
4265 if test "${with_rsvg+set}" = set; then :
4268 with_rsvg
=$with_features
4272 # Check whether --with-xml2 was given.
4273 if test "${with_xml2+set}" = set; then :
4276 with_xml2
=$with_features
4280 # Check whether --with-imagemagick was given.
4281 if test "${with_imagemagick+set}" = set; then :
4282 withval
=$with_imagemagick;
4284 with_imagemagick
=$with_features
4289 # Check whether --with-xft was given.
4290 if test "${with_xft+set}" = set; then :
4293 with_xft
=$with_features
4297 # Check whether --with-libotf was given.
4298 if test "${with_libotf+set}" = set; then :
4299 withval
=$with_libotf;
4301 with_libotf
=$with_features
4305 # Check whether --with-m17n-flt was given.
4306 if test "${with_m17n_flt+set}" = set; then :
4307 withval
=$with_m17n_flt;
4309 with_m17n_flt
=$with_features
4314 # Check whether --with-toolkit-scroll-bars was given.
4315 if test "${with_toolkit_scroll_bars+set}" = set; then :
4316 withval
=$with_toolkit_scroll_bars;
4318 with_toolkit_scroll_bars
=$with_features
4322 # Check whether --with-xaw3d was given.
4323 if test "${with_xaw3d+set}" = set; then :
4324 withval
=$with_xaw3d;
4326 with_xaw3d
=$with_features
4330 # Check whether --with-xim was given.
4331 if test "${with_xim+set}" = set; then :
4334 with_xim
=$with_features
4338 # Check whether --with-ns was given.
4339 if test "${with_ns+set}" = set; then :
4346 # Check whether --with-w32 was given.
4347 if test "${with_w32+set}" = set; then :
4355 # Check whether --with-gpm was given.
4356 if test "${with_gpm+set}" = set; then :
4359 with_gpm
=$with_features
4363 # Check whether --with-dbus was given.
4364 if test "${with_dbus+set}" = set; then :
4367 with_dbus
=$with_features
4371 # Check whether --with-gconf was given.
4372 if test "${with_gconf+set}" = set; then :
4373 withval
=$with_gconf;
4375 with_gconf
=$with_features
4379 # Check whether --with-gsettings was given.
4380 if test "${with_gsettings+set}" = set; then :
4381 withval
=$with_gsettings;
4383 with_gsettings
=$with_features
4387 # Check whether --with-selinux was given.
4388 if test "${with_selinux+set}" = set; then :
4389 withval
=$with_selinux;
4391 with_selinux
=$with_features
4395 # Check whether --with-gnutls was given.
4396 if test "${with_gnutls+set}" = set; then :
4397 withval
=$with_gnutls;
4399 with_gnutls
=$with_features
4403 # Check whether --with-zlib was given.
4404 if test "${with_zlib+set}" = set; then :
4407 with_zlib
=$with_features
4412 # Check whether --with-file-notification was given.
4413 if test "${with_file_notification+set}" = set; then :
4414 withval
=$with_file_notification; case "${withval}" in
4415 y | ye |
yes ) val
=yes ;;
4417 g | gf | gfi | gfil | gfile
) val
=gfile
;;
4418 i |
in | ino | inot | inoti | inotif | inotify
) val
=inotify
;;
4419 w | w3 | w32
) val
=w32
;;
4420 * ) as_fn_error
"\`--with-file-notification=$withval' is invalid;
4421 this option's value should be \`yes', \`no', \`gfile', \`inotify' or \`w32'.
4422 \`yes' is a synonym for \`w32' on MS-Windows, for \`no' on Nextstep,
4423 otherwise for the first of \`gfile' or \`inotify' that is usable." "$LINENO" 5
4426 with_file_notification
=$val
4429 with_file_notification
=$with_features
4433 ## For the times when you want to build Emacs but don't have
4434 ## a suitable makeinfo, and can live without the manuals.
4436 # Check whether --with-makeinfo was given.
4437 if test "${with_makeinfo+set}" = set; then :
4438 withval
=$with_makeinfo;
4440 with_makeinfo
=$with_features
4444 ## Makefile.in needs the cache file name.
4447 ## This is an option because I do not know if all info/man support
4448 ## compressed files, nor how to test if they do so.
4450 # Check whether --with-compress-install was given.
4451 if test "${with_compress_install+set}" = set; then :
4452 withval
=$with_compress_install;
4454 with_compress_install
=$with_features
4459 # Check whether --with-pkg-config-prog was given.
4460 if test "${with_pkg_config_prog+set}" = set; then :
4461 withval
=$with_pkg_config_prog;
4464 if test "X${with_pkg_config_prog}" != X
; then
4465 if test "${with_pkg_config_prog}" != yes; then
4466 PKG_CONFIG
="${with_pkg_config_prog}"
4471 # Check whether --with-gameuser was given.
4472 if test "${with_gameuser+set}" = set; then :
4473 withval
=$with_gameuser;
4476 test "X${with_gameuser}" != X
&& test "${with_gameuser}" != yes \
4477 && gameuser
="${with_gameuser}"
4478 test "X$gameuser" = X
&& gameuser
=games
4481 # Check whether --with-gnustep-conf was given.
4482 if test "${with_gnustep_conf+set}" = set; then :
4483 withval
=$with_gnustep_conf;
4486 test "X${with_gnustep_conf}" != X
&& test "${with_gnustep_conf}" != yes && \
4487 GNUSTEP_CONFIG_FILE
="${with_gnustep_conf}"
4488 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
4489 GNUSTEP_CONFIG_FILE
=/etc
/GNUstep
/GNUstep.conf
4491 # Check whether --enable-ns-self-contained was given.
4492 if test "${enable_ns_self_contained+set}" = set; then :
4493 enableval
=$enable_ns_self_contained; EN_NS_SELF_CONTAINED
=$enableval
4495 EN_NS_SELF_CONTAINED
=yes
4499 # Check whether --enable-locallisppath was given.
4500 if test "${enable_locallisppath+set}" = set; then :
4501 enableval
=$enable_locallisppath; if test "${enableval}" = "no"; then
4503 elif test "${enableval}" != "yes"; then
4504 locallisppath
=${enableval}
4509 # Check whether --enable-checking was given.
4510 if test "${enable_checking+set}" = set; then :
4511 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
4514 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
4515 for check
in $ac_checking_flags
4518 # these set all the flags to specific states
4519 yes) ac_enable_checking
=1 ;;
4520 no
) ac_enable_checking
= ;
4521 ac_gc_check_stringbytes
= ;
4522 ac_gc_check_string_overrun
= ;
4523 ac_gc_check_string_free_list
= ;
4524 ac_xmalloc_overrun
= ;
4525 ac_gc_check_cons_list
= ;
4527 all
) ac_enable_checking
=1 ;
4528 ac_gc_check_stringbytes
=1 ;
4529 ac_gc_check_string_overrun
=1 ;
4530 ac_gc_check_string_free_list
=1 ;
4531 ac_xmalloc_overrun
=1 ;
4532 ac_gc_check_cons_list
=1 ;
4533 ac_glyphs_debug
=1 ;;
4534 # these enable particular checks
4535 stringbytes
) ac_gc_check_stringbytes
=1 ;;
4536 stringoverrun
) ac_gc_check_string_overrun
=1 ;;
4537 stringfreelist
) ac_gc_check_string_free_list
=1 ;;
4538 xmallocoverrun
) ac_xmalloc_overrun
=1 ;;
4539 conslist
) ac_gc_check_cons_list
=1 ;;
4540 glyphs
) ac_glyphs_debug
=1 ;;
4541 *) as_fn_error
"unknown check category $check" "$LINENO" 5 ;;
4546 if test x
$ac_enable_checking != x
; then
4548 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
4551 if test x
$ac_gc_check_stringbytes != x
; then
4553 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
4556 if test x
$ac_gc_check_string_overrun != x
; then
4558 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
4561 if test x
$ac_gc_check_string_free_list != x
; then
4563 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
4566 if test x
$ac_xmalloc_overrun != x
; then
4568 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
4571 if test x
$ac_gc_check_cons_list != x
; then
4573 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
4576 if test x
$ac_glyphs_debug != x
; then
4578 $as_echo "#define GLYPH_DEBUG 1" >>confdefs.h
4582 # Check whether --enable-check-lisp-object-type was given.
4583 if test "${enable_check_lisp_object_type+set}" = set; then :
4584 enableval
=$enable_check_lisp_object_type; if test "${enableval}" != "no"; then
4586 $as_echo "#define CHECK_LISP_OBJECT_TYPE 1" >>confdefs.h
4593 # Check whether --enable-profiling was given.
4594 if test "${enable_profiling+set}" = set; then :
4595 enableval
=$enable_profiling; ac_enable_profiling
="${enableval}"
4598 if test x
$ac_enable_profiling != x
; then
4599 PROFILING_CFLAGS
="-DPROFILING=1 -pg"
4605 # Check whether --enable-autodepend was given.
4606 if test "${enable_autodepend+set}" = set; then :
4607 enableval
=$enable_autodepend; ac_enable_autodepend
="${enableval}"
4609 ac_enable_autodepend
=yes
4613 # Check whether --enable-gtk-deprecation-warnings was given.
4614 if test "${enable_gtk_deprecation_warnings+set}" = set; then :
4615 enableval
=$enable_gtk_deprecation_warnings; ac_enable_gtk_deprecation_warnings
="${enableval}"
4619 #### When building with MinGW inside the MSYS tree, 'pwd' produces
4620 #### directories relative to the root of the MSYS tree,
4621 #### e.g. '/home/user/foo' instead of '/d/MSYS/home/user/foo'. When
4622 #### such a value of srcdir is written to the top-level Makefile, it
4623 #### gets propagated to src/epaths.h, and that causes temacs to fail,
4624 #### because, being a MinGW program that knows nothing of MSYS root
4625 #### substitution, it cannot find the data directory. "pwd -W"
4626 #### produces Windows-style 'd:/foo/bar' absolute directory names, so
4627 #### we use it here to countermand that lossage.
4628 test "$MSYSTEM" = "MINGW32" && abs_srcdir
=`(cd "$abs_srcdir"; pwd -W | sed -e 's,^\([A-Za-z]\):,/\1,')`
4630 ### Canonicalize the configuration name.
4632 # Make sure we can run config.sub.
4633 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
4634 as_fn_error
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4637 $as_echo_n "checking build system type... " >&6; }
4638 if test "${ac_cv_build+set}" = set; then :
4639 $as_echo_n "(cached) " >&6
4641 ac_build_alias
=$build_alias
4642 test "x$ac_build_alias" = x
&&
4643 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
4644 test "x$ac_build_alias" = x
&&
4645 as_fn_error
"cannot guess build type; you must specify one" "$LINENO" 5
4646 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4647 as_fn_error
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4651 $as_echo "$ac_cv_build" >&6; }
4652 case $ac_cv_build in
4654 *) as_fn_error
"invalid value of canonical build" "$LINENO" 5;;
4657 ac_save_IFS
=$IFS; IFS
='-'
4663 # Remember, the first character of IFS is used to create $*,
4664 # except with old shells:
4667 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
4670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4671 $as_echo_n "checking host system type... " >&6; }
4672 if test "${ac_cv_host+set}" = set; then :
4673 $as_echo_n "(cached) " >&6
4675 if test "x$host_alias" = x
; then
4676 ac_cv_host
=$ac_cv_build
4678 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4679 as_fn_error
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4684 $as_echo "$ac_cv_host" >&6; }
4687 *) as_fn_error
"invalid value of canonical host" "$LINENO" 5;;
4690 ac_save_IFS
=$IFS; IFS
='-'
4696 # Remember, the first character of IFS is used to create $*,
4697 # except with old shells:
4700 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
4704 configuration
=${host_alias-${build_alias-$host}}
4708 ### If you add support for a new configuration, add code to this
4709 ### switch statement to recognize your configuration name and select
4710 ### the appropriate operating system file.
4712 ### You would hope that you could choose an s/*.h
4713 ### file based on the operating system portion. However, it turns out
4714 ### that each s/*.h file is pretty manufacturer-specific.
4715 ### So we basically have to have a special case for each
4716 ### configuration name.
4718 ### As far as handling version numbers on operating systems is
4719 ### concerned, make sure things will fail in a fixable way. If
4720 ### /etc/MACHINES doesn't say anything about version numbers, be
4721 ### prepared to handle anything reasonably. If version numbers
4722 ### matter, be sure /etc/MACHINES says something about it.
4724 opsys
='' unported
=no
4725 case "${canonical}" in
4727 ## GNU/Linux and similar ports
4742 ## FreeBSD kernel + glibc based userland
4757 ## Apple Darwin / Mac OS X
4759 case "${canonical}" in
4766 ## Use fink packages if available.
4767 ## FIXME find a better way to do this: http://debbugs.gnu.org/11507
4768 ## if test -d /sw/include && test -d /sw/lib; then
4769 ## GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
4770 ## NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
4779 ## HP 9000 series 700 and 800, running HP/UX
4780 hppa
*-hp-hpux10.2
* )
4783 hppa
*-hp-hpux1[1-9]* )
4785 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
4789 rs6000-ibm-aix4.
[23]* )
4792 powerpc-ibm-aix4.
[23]* )
4795 rs6000-ibm-aix
[56]* )
4798 powerpc-ibm-aix
[56]* )
4802 ## Silicon Graphics machines
4806 # Without defining _LANGUAGE_C, things get masked out in the headers
4807 # so that, for instance, grepping for `free' in stdlib.h fails and
4808 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
4809 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
4814 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* \
4815 | x86_64-
*-solaris2* | x86_64-
*-sunos5*)
4816 case "${canonical}" in
4818 amd64-
*-*|x86_64-
*-*) ;;
4822 case "${canonical}" in
4823 *-sunos5.6
* |
*-solaris2.6
* )
4827 *-sunos5.
[7-9]* |
*-solaris2.
[7-9]* )
4829 emacs_check_sunpro_c
=yes
4831 *-sunos5* |
*-solaris* )
4833 emacs_check_sunpro_c
=yes
4836 ## Watch out for a compiler that we know will not work.
4837 case "${canonical}" in
4838 *-solaris* |
*-sunos5* )
4839 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
4840 ## /usr/ucb/cc doesn't work;
4841 ## we should find some other compiler that does work.
4849 ## Intel 386 machines where we don't care about the manufacturer.
4851 case "${canonical}" in
4852 *-darwin* ) opsys
=darwin
;;
4855 # MinGW overrides and adds some system headers in nt/inc.
4856 GCC_TEST_OPTIONS
="-I $srcdir/nt/inc"
4858 *-sysv4.2uw
* ) opsys
=unixware
;;
4859 *-sysv5uw* ) opsys
=unixware
;;
4860 *-sysv5OpenUNIX* ) opsys
=unixware
;;
4861 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
4870 ### If the code above didn't choose an operating system, just choose
4871 ### an operating system based on the configuration name. You really
4872 ### only want to use this when you have no idea what the right
4873 ### operating system is; if you know what operating systems a machine
4874 ### runs, it's cleaner to make it explicit in the case statement
4876 if test x
"${opsys}" = x
; then
4877 case "${canonical}" in
4878 *-gnu* ) opsys
=gnu
;;
4887 if test $unported = yes; then
4888 as_fn_error
"Emacs hasn't been ported to \`${canonical}' systems.
4889 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
4893 #### Choose a compiler.
4896 ac_cpp
='$CPP $CPPFLAGS'
4897 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4898 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4899 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4900 if test -n "$ac_tool_prefix"; then
4901 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4902 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
4903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4904 $as_echo_n "checking for $ac_word... " >&6; }
4905 if test "${ac_cv_prog_CC+set}" = set; then :
4906 $as_echo_n "(cached) " >&6
4908 if test -n "$CC"; then
4909 ac_cv_prog_CC
="$CC" # Let the user override the test.
4911 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4915 test -z "$as_dir" && as_dir
=.
4916 for ac_exec_ext
in '' $ac_executable_extensions; do
4917 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4918 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
4919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4929 if test -n "$CC"; then
4930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4931 $as_echo "$CC" >&6; }
4933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4934 $as_echo "no" >&6; }
4939 if test -z "$ac_cv_prog_CC"; then
4941 # Extract the first word of "gcc", so it can be a program name with args.
4942 set dummy gcc
; ac_word
=$2
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4944 $as_echo_n "checking for $ac_word... " >&6; }
4945 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4946 $as_echo_n "(cached) " >&6
4948 if test -n "$ac_ct_CC"; then
4949 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4951 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4955 test -z "$as_dir" && as_dir
=.
4956 for ac_exec_ext
in '' $ac_executable_extensions; do
4957 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4958 ac_cv_prog_ac_ct_CC
="gcc"
4959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4968 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4969 if test -n "$ac_ct_CC"; then
4970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4971 $as_echo "$ac_ct_CC" >&6; }
4973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4974 $as_echo "no" >&6; }
4977 if test "x$ac_ct_CC" = x
; then
4980 case $cross_compiling:$ac_tool_warned in
4982 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4983 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4984 ac_tool_warned
=yes ;;
4992 if test -z "$CC"; then
4993 if test -n "$ac_tool_prefix"; then
4994 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4995 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
4996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4997 $as_echo_n "checking for $ac_word... " >&6; }
4998 if test "${ac_cv_prog_CC+set}" = set; then :
4999 $as_echo_n "(cached) " >&6
5001 if test -n "$CC"; then
5002 ac_cv_prog_CC
="$CC" # Let the user override the test.
5004 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5008 test -z "$as_dir" && as_dir
=.
5009 for ac_exec_ext
in '' $ac_executable_extensions; do
5010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5011 ac_cv_prog_CC
="${ac_tool_prefix}cc"
5012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5022 if test -n "$CC"; then
5023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5024 $as_echo "$CC" >&6; }
5026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5027 $as_echo "no" >&6; }
5033 if test -z "$CC"; then
5034 # Extract the first word of "cc", so it can be a program name with args.
5035 set dummy cc
; ac_word
=$2
5036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5037 $as_echo_n "checking for $ac_word... " >&6; }
5038 if test "${ac_cv_prog_CC+set}" = set; then :
5039 $as_echo_n "(cached) " >&6
5041 if test -n "$CC"; then
5042 ac_cv_prog_CC
="$CC" # Let the user override the test.
5045 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5049 test -z "$as_dir" && as_dir
=.
5050 for ac_exec_ext
in '' $ac_executable_extensions; do
5051 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5052 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5053 ac_prog_rejected
=yes
5057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5064 if test $ac_prog_rejected = yes; then
5065 # We found a bogon in the path, so make sure we never use it.
5066 set dummy
$ac_cv_prog_CC
5068 if test $# != 0; then
5069 # We chose a different compiler from the bogus one.
5070 # However, it has the same basename, so the bogon will be chosen
5071 # first if we set CC to just the basename; use the full file name.
5073 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
5079 if test -n "$CC"; then
5080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5081 $as_echo "$CC" >&6; }
5083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5084 $as_echo "no" >&6; }
5089 if test -z "$CC"; then
5090 if test -n "$ac_tool_prefix"; then
5091 for ac_prog
in cl.exe
5093 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5094 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
5095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5096 $as_echo_n "checking for $ac_word... " >&6; }
5097 if test "${ac_cv_prog_CC+set}" = set; then :
5098 $as_echo_n "(cached) " >&6
5100 if test -n "$CC"; then
5101 ac_cv_prog_CC
="$CC" # Let the user override the test.
5103 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5107 test -z "$as_dir" && as_dir
=.
5108 for ac_exec_ext
in '' $ac_executable_extensions; do
5109 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5110 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
5111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5121 if test -n "$CC"; then
5122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5123 $as_echo "$CC" >&6; }
5125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5126 $as_echo "no" >&6; }
5130 test -n "$CC" && break
5133 if test -z "$CC"; then
5135 for ac_prog
in cl.exe
5137 # Extract the first word of "$ac_prog", so it can be a program name with args.
5138 set dummy
$ac_prog; ac_word
=$2
5139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5140 $as_echo_n "checking for $ac_word... " >&6; }
5141 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5142 $as_echo_n "(cached) " >&6
5144 if test -n "$ac_ct_CC"; then
5145 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
5147 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5151 test -z "$as_dir" && as_dir
=.
5152 for ac_exec_ext
in '' $ac_executable_extensions; do
5153 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5154 ac_cv_prog_ac_ct_CC
="$ac_prog"
5155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5164 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
5165 if test -n "$ac_ct_CC"; then
5166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5167 $as_echo "$ac_ct_CC" >&6; }
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5170 $as_echo "no" >&6; }
5174 test -n "$ac_ct_CC" && break
5177 if test "x$ac_ct_CC" = x
; then
5180 case $cross_compiling:$ac_tool_warned in
5182 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5183 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5184 ac_tool_warned
=yes ;;
5193 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5194 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5195 as_fn_error
"no acceptable C compiler found in \$PATH
5196 See \`config.log' for more details." "$LINENO" 5; }
5198 # Provide some information about the compiler.
5199 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5202 for ac_option
in --version -v -V -qversion; do
5203 { { ac_try
="$ac_compiler $ac_option >&5"
5205 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5206 *) ac_try_echo=$ac_try;;
5208 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5209 $as_echo "$ac_try_echo"; } >&5
5210 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5212 if test -s conftest.err; then
5214 ... rest of stderr output deleted ...
5215 10q' conftest.err >conftest.er1
5216 cat conftest.er1 >&5
5218 rm -f conftest.er1 conftest.err
5219 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5220 test $ac_status = 0; }
5223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5224 /* end confdefs.h. */
5234 ac_clean_files_save=$ac_clean_files
5235 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
5236 # Try to create an executable without -o first, disregard a.out.
5237 # It will help us diagnose broken compilers, and finding out an intuition
5239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
5240 $as_echo_n "checking whether the C compiler works... " >&6; }
5241 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
5243 # The possible output files:
5244 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
5247 for ac_file in $ac_files
5250 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5251 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
5256 if { { ac_try="$ac_link_default"
5258 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5259 *) ac_try_echo
=$ac_try;;
5261 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5262 $as_echo "$ac_try_echo"; } >&5
5263 (eval "$ac_link_default") 2>&5
5265 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5266 test $ac_status = 0; }; then :
5267 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
5268 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
5269 # in a Makefile. We should not override ac_cv_exeext if it was cached,
5270 # so that the user can short-circuit this test for compilers unknown to
5272 for ac_file
in $ac_files ''
5274 test -f "$ac_file" ||
continue
5276 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
5279 # We found the default executable, but exeext='' is most
5283 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
5285 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
5287 # We set ac_cv_exeext here because the later test for it is not
5288 # safe: cross compilers may not add the suffix if given an `-o'
5289 # argument, so we may need to know it at that point already.
5290 # Even if this section looks crufty: it has the advantage of
5297 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
5302 if test -z "$ac_file"; then :
5303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5304 $as_echo "no" >&6; }
5305 $as_echo "$as_me: failed program was:" >&5
5306 sed 's/^/| /' conftest.
$ac_ext >&5
5308 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5309 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5310 { as_fn_set_status
77
5311 as_fn_error
"C compiler cannot create executables
5312 See \`config.log' for more details." "$LINENO" 5; }; }
5314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5315 $as_echo "yes" >&6; }
5317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5318 $as_echo_n "checking for C compiler default output file name... " >&6; }
5319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5320 $as_echo "$ac_file" >&6; }
5321 ac_exeext
=$ac_cv_exeext
5323 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
5324 ac_clean_files
=$ac_clean_files_save
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5326 $as_echo_n "checking for suffix of executables... " >&6; }
5327 if { { ac_try
="$ac_link"
5329 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5330 *) ac_try_echo=$ac_try;;
5332 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5333 $as_echo "$ac_try_echo"; } >&5
5334 (eval "$ac_link") 2>&5
5336 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5337 test $ac_status = 0; }; then :
5338 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
5339 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
5340 # work properly (i.e., refer to `conftest.exe'), while it won't with
5342 for ac_file
in conftest.exe conftest conftest.
*; do
5343 test -f "$ac_file" ||
continue
5345 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
5346 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
5352 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5353 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5354 as_fn_error
"cannot compute suffix of executables: cannot compile and link
5355 See \`config.log' for more details." "$LINENO" 5; }
5357 rm -f conftest conftest
$ac_cv_exeext
5358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5359 $as_echo "$ac_cv_exeext" >&6; }
5361 rm -f conftest.
$ac_ext
5362 EXEEXT
=$ac_cv_exeext
5364 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5365 /* end confdefs.h. */
5370 FILE *f = fopen ("conftest.out", "w");
5371 return ferror (f) || fclose (f) != 0;
5377 ac_clean_files
="$ac_clean_files conftest.out"
5378 # Check that the compiler produces executables we can run. If not, either
5379 # the compiler is broken, or we cross compile.
5380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5381 $as_echo_n "checking whether we are cross compiling... " >&6; }
5382 if test "$cross_compiling" != yes; then
5383 { { ac_try
="$ac_link"
5385 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5386 *) ac_try_echo=$ac_try;;
5388 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5389 $as_echo "$ac_try_echo"; } >&5
5390 (eval "$ac_link") 2>&5
5392 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5393 test $ac_status = 0; }
5394 if { ac_try='./conftest$ac_cv_exeext'
5395 { { case "(($ac_try" in
5396 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5397 *) ac_try_echo
=$ac_try;;
5399 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5400 $as_echo "$ac_try_echo"; } >&5
5401 (eval "$ac_try") 2>&5
5403 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5404 test $ac_status = 0; }; }; then
5407 if test "$cross_compiling" = maybe
; then
5410 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5411 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5412 as_fn_error
"cannot run C compiled programs.
5413 If you meant to cross compile, use \`--host'.
5414 See \`config.log' for more details." "$LINENO" 5; }
5418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5419 $as_echo "$cross_compiling" >&6; }
5421 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
5422 ac_clean_files
=$ac_clean_files_save
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5424 $as_echo_n "checking for suffix of object files... " >&6; }
5425 if test "${ac_cv_objext+set}" = set; then :
5426 $as_echo_n "(cached) " >&6
5428 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5429 /* end confdefs.h. */
5439 rm -f conftest.o conftest.obj
5440 if { { ac_try
="$ac_compile"
5442 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5443 *) ac_try_echo=$ac_try;;
5445 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5446 $as_echo "$ac_try_echo"; } >&5
5447 (eval "$ac_compile") 2>&5
5449 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5450 test $ac_status = 0; }; then :
5451 for ac_file in conftest.o conftest.obj conftest.*; do
5452 test -f "$ac_file" || continue;
5454 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5455 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5460 $as_echo "$as_me: failed program was:" >&5
5461 sed 's/^/| /' conftest.$ac_ext >&5
5463 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5464 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5465 as_fn_error "cannot compute suffix of object files
: cannot compile
5466 See \
`config.log' for more details." "$LINENO" 5; }
5468 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5471 $as_echo "$ac_cv_objext" >&6; }
5472 OBJEXT=$ac_cv_objext
5474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5475 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5476 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5477 $as_echo_n "(cached) " >&6
5479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5480 /* end confdefs.h. */
5493 if ac_fn_c_try_compile "$LINENO"; then :
5498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5499 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5503 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5504 if test $ac_compiler_gnu = yes; then
5509 ac_test_CFLAGS=${CFLAGS+set}
5510 ac_save_CFLAGS=$CFLAGS
5511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5512 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5513 if test "${ac_cv_prog_cc_g+set}" = set; then :
5514 $as_echo_n "(cached) " >&6
5516 ac_save_c_werror_flag=$ac_c_werror_flag
5517 ac_c_werror_flag=yes
5520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5521 /* end confdefs.h. */
5531 if ac_fn_c_try_compile "$LINENO"; then :
5535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5536 /* end confdefs.h. */
5546 if ac_fn_c_try_compile "$LINENO"; then :
5549 ac_c_werror_flag=$ac_save_c_werror_flag
5551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5552 /* end confdefs.h. */
5562 if ac_fn_c_try_compile "$LINENO"; then :
5565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5570 ac_c_werror_flag=$ac_save_c_werror_flag
5572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5573 $as_echo "$ac_cv_prog_cc_g" >&6; }
5574 if test "$ac_test_CFLAGS" = set; then
5575 CFLAGS=$ac_save_CFLAGS
5576 elif test $ac_cv_prog_cc_g = yes; then
5577 if test "$GCC" = yes; then
5583 if test "$GCC" = yes; then
5589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5590 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5591 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5592 $as_echo_n "(cached) " >&6
5594 ac_cv_prog_cc_c89=no
5596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5597 /* end confdefs.h. */
5600 #include <sys/types.h>
5601 #include <sys/stat.h>
5602 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5603 struct buf { int x; };
5604 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5605 static char *e (p, i)
5611 static char *f (char * (*g) (char **, int), char **p, ...)
5616 s = g (p, va_arg (v,int));
5621 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5622 function prototypes and stuff, but not '\xHH' hex character constants.
5623 These don't provoke an error unfortunately, instead are silently treated
5624 as 'x'. The following induces an error, until -std is added to get
5625 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5626 array size at least. It's necessary to write '\x00'==0 to get something
5627 that's true only with -std. */
5628 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5630 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5631 inside strings and character constants. */
5633 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5635 int test (int i, double x);
5636 struct s1 {int (*f) (int a);};
5637 struct s2 {int (*f) (double a);};
5638 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5644 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5649 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5650 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5652 CC="$ac_save_CC $ac_arg"
5653 if ac_fn_c_try_compile "$LINENO"; then :
5654 ac_cv_prog_cc_c89=$ac_arg
5656 rm -f core conftest.err conftest.$ac_objext
5657 test "x$ac_cv_prog_cc_c89" != "xno" && break
5659 rm -f conftest.$ac_ext
5664 case "x$ac_cv_prog_cc_c89" in
5666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5667 $as_echo "none needed" >&6; } ;;
5669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5670 $as_echo "unsupported" >&6; } ;;
5672 CC="$CC $ac_cv_prog_cc_c89"
5673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5674 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5676 if test "x$ac_cv_prog_cc_c89" != xno; then :
5681 ac_cpp='$CPP $CPPFLAGS'
5682 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5683 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5684 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5685 DEPDIR="${am__leading_dot}deps"
5687 ac_config_commands="$ac_config_commands depfiles"
5690 am_make=${MAKE-make}
5691 cat > confinc << 'END'
5693 @echo this is the am__doit target
5696 # If we don't find an include directive, just comment out the code.
5697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5698 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5702 # First try GNU make style include.
5703 echo "include confinc" > confmf
5704 # Ignore all kinds of additional output from `make'.
5705 case `$am_make -s -f confmf 2> /dev/null` in #(
5706 *the\ am__doit\ target*)
5712 # Now try BSD make style include.
5713 if test "$am__include" = "#"; then
5714 echo '.include
"confinc"' > confmf
5715 case `$am_make -s -f confmf 2> /dev/null` in #(
5716 *the\ am__doit\ target*)
5717 am__include=.include
5725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5726 $as_echo "$_am_result" >&6; }
5727 rm -f confinc confmf
5729 # Check whether --enable-dependency-tracking was given.
5730 if test "${enable_dependency_tracking+set}" = set; then :
5731 enableval=$enable_dependency_tracking;
5734 if test "x$enable_dependency_tracking" != xno; then
5735 am_depcomp="$ac_aux_dir/depcomp"
5738 if test "x$enable_dependency_tracking" != xno
; then
5748 depcc
="$CC" am_compiler_list
=
5750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5751 $as_echo_n "checking dependency style of $depcc... " >&6; }
5752 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5753 $as_echo_n "(cached) " >&6
5755 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5756 # We make a subdir and do the tests there. Otherwise we can end up
5757 # making bogus files that we don't know about and never remove. For
5758 # instance it was reported that on HP-UX the gcc test will end up
5759 # making a dummy file named `D' -- because `-MD' means `put the output
5762 # Copy depcomp to subdir because otherwise we won't find it if we're
5763 # using a relative directory.
5764 cp "$am_depcomp" conftest.dir
5766 # We will build objects and dependencies in a subdirectory because
5767 # it helps to detect inapplicable dependency modes. For instance
5768 # both Tru64's cc and ICC support -MD to output dependencies as a
5769 # side effect of compilation, but ICC will put the dependencies in
5770 # the current directory while Tru64 will put them in the object
5774 am_cv_CC_dependencies_compiler_type
=none
5775 if test "$am_compiler_list" = ""; then
5776 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5779 case " $depcc " in #(
5780 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
5783 for depmode
in $am_compiler_list; do
5784 # Setup a source with many dependencies, because some compilers
5785 # like to wrap large dependency lists on column 80 (with \), and
5786 # we should not choose a depcomp mode which is confused by this.
5788 # We need to recreate these files for each test, as the compiler may
5789 # overwrite some of them when testing with obscure command lines.
5790 # This happens at least with the AIX C compiler.
5792 for i
in 1 2 3 4 5 6; do
5793 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
5794 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5795 # Solaris 8's {/usr,}/bin/sh.
5796 touch sub
/conftst
$i.h
5798 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5800 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5801 # mode. It turns out that the SunPro C++ compiler does not properly
5802 # handle `-M -o', and we need to detect this. Also, some Intel
5803 # versions had trouble with output in subdirs
5804 am__obj
=sub
/conftest.
${OBJEXT-o}
5805 am__minus_obj
="-o $am__obj"
5808 # This depmode causes a compiler race in universal mode.
5809 test "$am__universal" = false ||
continue
5812 # after this tag, mechanisms are not by side-effect, so they'll
5813 # only be used when explicitly requested
5814 if test "x$enable_dependency_tracking" = xyes
; then
5820 msvisualcpp | msvcmsys
)
5821 # This compiler won't grok `-c -o', but also, the minuso test has
5822 # not run yet. These depmodes are late enough in the game, and
5823 # so weak that their functioning should not be impacted.
5824 am__obj
=conftest.
${OBJEXT-o}
5829 if depmode
=$depmode \
5830 source=sub
/conftest.c object
=$am__obj \
5831 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
5832 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
5833 >/dev
/null
2>conftest.err
&&
5834 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
5835 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
5836 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
5837 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
5838 # icc doesn't choke on unknown options, it will just issue warnings
5839 # or remarks (even with -Werror). So we grep stderr for any message
5840 # that says an option was ignored or not supported.
5841 # When given -MP, icc 7.0 and 7.1 complain thusly:
5842 # icc: Command line warning: ignoring option '-M'; no argument required
5843 # The diagnosis changed in icc 8.0:
5844 # icc: Command line remark: option '-MP' not supported
5845 if (grep 'ignoring option' conftest.err ||
5846 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
5847 am_cv_CC_dependencies_compiler_type
=$depmode
5856 am_cv_CC_dependencies_compiler_type
=none
5860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5861 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5862 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
5865 test "x$enable_dependency_tracking" != xno \
5866 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
5868 am__fastdepCC_FALSE
='#'
5870 am__fastdepCC_TRUE
='#'
5871 am__fastdepCC_FALSE
=
5875 if test "x$CC" != xcc
; then
5876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5877 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5880 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5882 set dummy
$CC; ac_cc
=`$as_echo "$2" |
5883 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5884 if { as_var
=ac_cv_prog_cc_
${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
5885 $as_echo_n "(cached) " >&6
5887 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5888 /* end confdefs.h. */
5898 # Make sure it works both with $CC and with simple cc.
5899 # We do the test twice because some compilers refuse to overwrite an
5900 # existing .o file with -o, though they will create one.
5901 ac_try
='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5903 if { { case "(($ac_try" in
5904 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5905 *) ac_try_echo=$ac_try;;
5907 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5908 $as_echo "$ac_try_echo"; } >&5
5909 (eval "$ac_try") 2>&5
5911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5912 test $ac_status = 0; } &&
5913 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5914 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5915 *) ac_try_echo
=$ac_try;;
5917 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5918 $as_echo "$ac_try_echo"; } >&5
5919 (eval "$ac_try") 2>&5
5921 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5922 test $ac_status = 0; };
5924 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
5925 if test "x$CC" != xcc
; then
5926 # Test first that cc exists at all.
5927 if { ac_try
='cc -c conftest.$ac_ext >&5'
5928 { { case "(($ac_try" in
5929 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5930 *) ac_try_echo=$ac_try;;
5932 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5933 $as_echo "$ac_try_echo"; } >&5
5934 (eval "$ac_try") 2>&5
5936 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5937 test $ac_status = 0; }; }; then
5938 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5940 if { { case "(($ac_try" in
5941 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5942 *) ac_try_echo
=$ac_try;;
5944 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5945 $as_echo "$ac_try_echo"; } >&5
5946 (eval "$ac_try") 2>&5
5948 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5949 test $ac_status = 0; } &&
5950 test -f conftest2.
$ac_objext && { { case "(($ac_try" in
5951 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5952 *) ac_try_echo=$ac_try;;
5954 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5955 $as_echo "$ac_try_echo"; } >&5
5956 (eval "$ac_try") 2>&5
5958 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5959 test $ac_status = 0; };
5964 # cc exists but doesn't like -o.
5965 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5970 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5972 rm -f core conftest*
5975 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5977 $as_echo "yes" >&6; }
5979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5980 $as_echo "no" >&6; }
5982 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5986 # FIXME: we rely on the cache variable name because
5987 # there is no other way.
5989 am_cc=`echo $2 |
sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5990 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5991 if test "$am_t" != yes; then
5992 # Losing compiler, so override with the script.
5993 # FIXME: It is wrong to rewrite CC.
5994 # But if we don't then we get into trouble of one sort or another.
5995 # A longer-term fix would be to have automake use am__CC in this case,
5996 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5997 CC="$am_aux_dir/compile $CC"
6002 if test x$GCC = xyes; then
6003 test "x$GCC_TEST_OPTIONS" != x && CC="$CC $GCC_TEST_OPTIONS"
6005 test "x$NON_GCC_TEST_OPTIONS" != x && CC="$CC $NON_GCC_TEST_OPTIONS"
6008 if test "x$opsys" = "xmingw32"; then
6009 BUILDING_FOR_WINDOWSNT_TRUE=
6010 BUILDING_FOR_WINDOWSNT_FALSE='#'
6012 BUILDING_FOR_WINDOWSNT_TRUE='#'
6013 BUILDING_FOR_WINDOWSNT_FALSE=
6017 # Avoid gnulib's tests for HAVE_WORKING_O_NOATIME and HAVE_WORKING_O_NOFOLLOW,
6018 # as we don't use them.
6020 # Avoid gnulib's threadlib module, as we do threads our own way.
6023 # Initialize gnulib right after choosing the compiler.
6026 ac_cpp='$CPP $CPPFLAGS'
6027 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6028 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6029 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6031 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6032 # On Suns, sometimes $CPP names a directory.
6033 if test -n "$CPP" && test -d "$CPP"; then
6036 if test -z "$CPP"; then
6037 if test "${ac_cv_prog_CPP+set}" = set; then :
6038 $as_echo_n "(cached) " >&6
6040 # Double quotes because CPP needs to be expanded
6041 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6044 for ac_c_preproc_warn_flag in '' yes
6046 # Use a header file that comes with gcc, so configuring glibc
6047 # with a fresh cross-compiler works.
6048 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6049 # <limits.h> exists even on freestanding compilers.
6050 # On the NeXT, cc -E runs the code through the compiler's parser,
6051 # not just through cpp. "Syntax error" is here to catch this case.
6052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6053 /* end confdefs.h. */
6055 # include <limits.h>
6057 # include <assert.h>
6061 if ac_fn_c_try_cpp "$LINENO"; then :
6064 # Broken: fails on valid input.
6067 rm -f conftest.err conftest.$ac_ext
6069 # OK, works on sane cases. Now check whether nonexistent headers
6070 # can be detected and how.
6071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6072 /* end confdefs.h. */
6073 #include <ac_nonexistent.h>
6075 if ac_fn_c_try_cpp "$LINENO"; then :
6076 # Broken: success on invalid input.
6079 # Passes both tests.
6083 rm -f conftest.err conftest.$ac_ext
6086 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6087 rm -f conftest.err conftest.
$ac_ext
6088 if $ac_preproc_ok; then :
6100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6101 $as_echo "$CPP" >&6; }
6103 for ac_c_preproc_warn_flag
in '' yes
6105 # Use a header file that comes with gcc, so configuring glibc
6106 # with a fresh cross-compiler works.
6107 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6108 # <limits.h> exists even on freestanding compilers.
6109 # On the NeXT, cc -E runs the code through the compiler's parser,
6110 # not just through cpp. "Syntax error" is here to catch this case.
6111 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6112 /* end confdefs.h. */
6114 # include <limits.h>
6116 # include <assert.h>
6120 if ac_fn_c_try_cpp
"$LINENO"; then :
6123 # Broken: fails on valid input.
6126 rm -f conftest.err conftest.
$ac_ext
6128 # OK, works on sane cases. Now check whether nonexistent headers
6129 # can be detected and how.
6130 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6131 /* end confdefs.h. */
6132 #include <ac_nonexistent.h>
6134 if ac_fn_c_try_cpp
"$LINENO"; then :
6135 # Broken: success on invalid input.
6138 # Passes both tests.
6142 rm -f conftest.err conftest.
$ac_ext
6145 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6146 rm -f conftest.err conftest.
$ac_ext
6147 if $ac_preproc_ok; then :
6150 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6151 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6152 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
6153 See \`config.log' for more details." "$LINENO" 5; }
6157 ac_cpp
='$CPP $CPPFLAGS'
6158 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6159 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6160 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6164 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6165 if test "${ac_cv_path_GREP+set}" = set; then :
6166 $as_echo_n "(cached) " >&6
6168 if test -z "$GREP"; then
6169 ac_path_GREP_found
=false
6170 # Loop through the user's path and test for each of PROGNAME-LIST
6171 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6172 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
6175 test -z "$as_dir" && as_dir
=.
6176 for ac_prog
in grep ggrep
; do
6177 for ac_exec_ext
in '' $ac_executable_extensions; do
6178 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
6179 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
6180 # Check for GNU ac_path_GREP and select it if it is found.
6181 # Check for GNU $ac_path_GREP
6182 case `"$ac_path_GREP" --version 2>&1` in
6184 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
6187 $as_echo_n 0123456789 >"conftest.in"
6190 cat "conftest.in" "conftest.in" >"conftest.tmp"
6191 mv "conftest.tmp" "conftest.in"
6192 cp "conftest.in" "conftest.nl"
6193 $as_echo 'GREP' >> "conftest.nl"
6194 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
6195 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
6196 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
6197 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6198 # Best one so far, save it but keep looking for a better one
6199 ac_cv_path_GREP
="$ac_path_GREP"
6200 ac_path_GREP_max
=$ac_count
6202 # 10*(2^10) chars as input seems more than enough
6203 test $ac_count -gt 10 && break
6205 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
6208 $ac_path_GREP_found && break 3
6213 if test -z "$ac_cv_path_GREP"; then
6214 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6217 ac_cv_path_GREP
=$GREP
6221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6222 $as_echo "$ac_cv_path_GREP" >&6; }
6223 GREP
="$ac_cv_path_GREP"
6226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6227 $as_echo_n "checking for egrep... " >&6; }
6228 if test "${ac_cv_path_EGREP+set}" = set; then :
6229 $as_echo_n "(cached) " >&6
6231 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
6232 then ac_cv_path_EGREP
="$GREP -E"
6234 if test -z "$EGREP"; then
6235 ac_path_EGREP_found
=false
6236 # Loop through the user's path and test for each of PROGNAME-LIST
6237 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6238 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
6241 test -z "$as_dir" && as_dir
=.
6242 for ac_prog
in egrep; do
6243 for ac_exec_ext
in '' $ac_executable_extensions; do
6244 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
6245 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
6246 # Check for GNU ac_path_EGREP and select it if it is found.
6247 # Check for GNU $ac_path_EGREP
6248 case `"$ac_path_EGREP" --version 2>&1` in
6250 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
6253 $as_echo_n 0123456789 >"conftest.in"
6256 cat "conftest.in" "conftest.in" >"conftest.tmp"
6257 mv "conftest.tmp" "conftest.in"
6258 cp "conftest.in" "conftest.nl"
6259 $as_echo 'EGREP' >> "conftest.nl"
6260 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
6261 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
6262 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
6263 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6264 # Best one so far, save it but keep looking for a better one
6265 ac_cv_path_EGREP
="$ac_path_EGREP"
6266 ac_path_EGREP_max
=$ac_count
6268 # 10*(2^10) chars as input seems more than enough
6269 test $ac_count -gt 10 && break
6271 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
6274 $ac_path_EGREP_found && break 3
6279 if test -z "$ac_cv_path_EGREP"; then
6280 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6283 ac_cv_path_EGREP
=$EGREP
6288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6289 $as_echo "$ac_cv_path_EGREP" >&6; }
6290 EGREP
="$ac_cv_path_EGREP"
6295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
6296 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
6297 if test "${gl_cv_c_amsterdam_compiler+set}" = set; then :
6298 $as_echo_n "(cached) " >&6
6301 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6302 /* end confdefs.h. */
6309 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6310 $EGREP "Amsterdam" >/dev
/null
2>&1; then :
6311 gl_cv_c_amsterdam_compiler
=yes
6313 gl_cv_c_amsterdam_compiler
=no
6319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
6320 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
6321 if test -z "$AR"; then
6322 if test $gl_cv_c_amsterdam_compiler = yes; then
6324 if test -z "$ARFLAGS"; then
6328 if test -n "$ac_tool_prefix"; then
6329 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6330 set dummy
${ac_tool_prefix}ar; ac_word
=$2
6331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6332 $as_echo_n "checking for $ac_word... " >&6; }
6333 if test "${ac_cv_prog_AR+set}" = set; then :
6334 $as_echo_n "(cached) " >&6
6336 if test -n "$AR"; then
6337 ac_cv_prog_AR
="$AR" # Let the user override the test.
6339 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6343 test -z "$as_dir" && as_dir
=.
6344 for ac_exec_ext
in '' $ac_executable_extensions; do
6345 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6346 ac_cv_prog_AR
="${ac_tool_prefix}ar"
6347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6357 if test -n "$AR"; then
6358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6359 $as_echo "$AR" >&6; }
6361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6362 $as_echo "no" >&6; }
6367 if test -z "$ac_cv_prog_AR"; then
6369 # Extract the first word of "ar", so it can be a program name with args.
6370 set dummy
ar; ac_word
=$2
6371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6372 $as_echo_n "checking for $ac_word... " >&6; }
6373 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6374 $as_echo_n "(cached) " >&6
6376 if test -n "$ac_ct_AR"; then
6377 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
6379 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6383 test -z "$as_dir" && as_dir
=.
6384 for ac_exec_ext
in '' $ac_executable_extensions; do
6385 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6386 ac_cv_prog_ac_ct_AR
="ar"
6387 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6396 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
6397 if test -n "$ac_ct_AR"; then
6398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6399 $as_echo "$ac_ct_AR" >&6; }
6401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6402 $as_echo "no" >&6; }
6405 if test "x$ac_ct_AR" = x
; then
6408 case $cross_compiling:$ac_tool_warned in
6410 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6411 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6412 ac_tool_warned
=yes ;;
6420 if test -z "$ARFLAGS"; then
6425 if test -z "$ARFLAGS"; then
6431 if test -z "$RANLIB"; then
6432 if test $gl_cv_c_amsterdam_compiler = yes; then
6435 if test -n "$ac_tool_prefix"; then
6436 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6437 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
6438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6439 $as_echo_n "checking for $ac_word... " >&6; }
6440 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6441 $as_echo_n "(cached) " >&6
6443 if test -n "$RANLIB"; then
6444 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
6446 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6450 test -z "$as_dir" && as_dir
=.
6451 for ac_exec_ext
in '' $ac_executable_extensions; do
6452 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6453 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
6454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6463 RANLIB
=$ac_cv_prog_RANLIB
6464 if test -n "$RANLIB"; then
6465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6466 $as_echo "$RANLIB" >&6; }
6468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6469 $as_echo "no" >&6; }
6474 if test -z "$ac_cv_prog_RANLIB"; then
6475 ac_ct_RANLIB
=$RANLIB
6476 # Extract the first word of "ranlib", so it can be a program name with args.
6477 set dummy ranlib
; ac_word
=$2
6478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6479 $as_echo_n "checking for $ac_word... " >&6; }
6480 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6481 $as_echo_n "(cached) " >&6
6483 if test -n "$ac_ct_RANLIB"; then
6484 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
6486 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6490 test -z "$as_dir" && as_dir
=.
6491 for ac_exec_ext
in '' $ac_executable_extensions; do
6492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6493 ac_cv_prog_ac_ct_RANLIB
="ranlib"
6494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6503 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
6504 if test -n "$ac_ct_RANLIB"; then
6505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6506 $as_echo "$ac_ct_RANLIB" >&6; }
6508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6509 $as_echo "no" >&6; }
6512 if test "x$ac_ct_RANLIB" = x
; then
6515 case $cross_compiling:$ac_tool_warned in
6517 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6518 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6519 ac_tool_warned
=yes ;;
6521 RANLIB
=$ac_ct_RANLIB
6524 RANLIB
="$ac_cv_prog_RANLIB"
6531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6532 $as_echo_n "checking for ANSI C header files... " >&6; }
6533 if test "${ac_cv_header_stdc+set}" = set; then :
6534 $as_echo_n "(cached) " >&6
6536 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6537 /* end confdefs.h. */
6551 if ac_fn_c_try_compile
"$LINENO"; then :
6552 ac_cv_header_stdc
=yes
6554 ac_cv_header_stdc
=no
6556 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6558 if test $ac_cv_header_stdc = yes; then
6559 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6560 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6561 /* end confdefs.h. */
6565 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6566 $EGREP "memchr" >/dev
/null
2>&1; then :
6569 ac_cv_header_stdc
=no
6575 if test $ac_cv_header_stdc = yes; then
6576 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6577 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6578 /* end confdefs.h. */
6582 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6583 $EGREP "free" >/dev
/null
2>&1; then :
6586 ac_cv_header_stdc
=no
6592 if test $ac_cv_header_stdc = yes; then
6593 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6594 if test "$cross_compiling" = yes; then :
6597 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6598 /* end confdefs.h. */
6601 #if ((' ' & 0x0FF) == 0x020)
6602 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6603 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6605 # define ISLOWER(c) \
6606 (('a' <= (c) && (c) <= 'i') \
6607 || ('j' <= (c) && (c) <= 'r') \
6608 || ('s' <= (c) && (c) <= 'z'))
6609 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6612 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6617 for (i = 0; i < 256; i++)
6618 if (XOR (islower (i), ISLOWER (i))
6619 || toupper (i) != TOUPPER (i))
6624 if ac_fn_c_try_run
"$LINENO"; then :
6627 ac_cv_header_stdc
=no
6629 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6630 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6636 $as_echo "$ac_cv_header_stdc" >&6; }
6637 if test $ac_cv_header_stdc = yes; then
6639 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6643 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6644 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
6645 inttypes.h stdint.h unistd.h
6647 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6648 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6650 eval as_val
=\$
$as_ac_Header
6651 if test "x$as_val" = x
""yes; then :
6652 cat >>confdefs.h
<<_ACEOF
6653 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6662 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
6663 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
6670 if test "$MINIX" = yes; then
6672 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6675 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6678 $as_echo "#define _MINIX 1" >>confdefs.h
6681 $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
6686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6687 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6688 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
6689 $as_echo_n "(cached) " >&6
6691 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6692 /* end confdefs.h. */
6694 # define __EXTENSIONS__ 1
6695 $ac_includes_default
6704 if ac_fn_c_try_compile
"$LINENO"; then :
6705 ac_cv_safe_to_define___extensions__
=yes
6707 ac_cv_safe_to_define___extensions__
=no
6709 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6712 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6713 test $ac_cv_safe_to_define___extensions__ = yes &&
6714 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6716 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6718 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
6720 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6722 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6724 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
6727 $as_echo_n "checking whether _XOPEN_SOURCE should be defined... " >&6; }
6728 if test "${ac_cv_should_define__xopen_source+set}" = set; then :
6729 $as_echo_n "(cached) " >&6
6731 ac_cv_should_define__xopen_source
=no
6732 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6733 /* end confdefs.h. */
6745 if ac_fn_c_try_compile
"$LINENO"; then :
6748 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6749 /* end confdefs.h. */
6751 #define _XOPEN_SOURCE 500
6762 if ac_fn_c_try_compile
"$LINENO"; then :
6763 ac_cv_should_define__xopen_source
=yes
6765 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6767 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
6770 $as_echo "$ac_cv_should_define__xopen_source" >&6; }
6771 test $ac_cv_should_define__xopen_source = yes &&
6772 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
6781 # Check whether --enable-largefile was given.
6782 if test "${enable_largefile+set}" = set; then :
6783 enableval
=$enable_largefile;
6786 if test "$enable_largefile" != no
; then
6788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6789 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6790 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
6791 $as_echo_n "(cached) " >&6
6793 ac_cv_sys_largefile_CC
=no
6794 if test "$GCC" != yes; then
6797 # IRIX 6.2 and later do not support large files by default,
6798 # so use the C compiler's -n32 option if that helps.
6799 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6800 /* end confdefs.h. */
6801 #include <sys/types.h>
6802 /* Check that off_t can represent 2**63 - 1 correctly.
6803 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6804 since some C++ compilers masquerading as C compilers
6805 incorrectly reject 9223372036854775807. */
6806 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6807 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6808 && LARGE_OFF_T % 2147483647 == 1)
6818 if ac_fn_c_try_compile
"$LINENO"; then :
6821 rm -f core conftest.err conftest.
$ac_objext
6823 if ac_fn_c_try_compile
"$LINENO"; then :
6824 ac_cv_sys_largefile_CC
=' -n32'; break
6826 rm -f core conftest.err conftest.
$ac_objext
6830 rm -f conftest.
$ac_ext
6833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6834 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6835 if test "$ac_cv_sys_largefile_CC" != no
; then
6836 CC
=$CC$ac_cv_sys_largefile_CC
6839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6840 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6841 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
6842 $as_echo_n "(cached) " >&6
6845 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6846 /* end confdefs.h. */
6847 #include <sys/types.h>
6848 /* Check that off_t can represent 2**63 - 1 correctly.
6849 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6850 since some C++ compilers masquerading as C compilers
6851 incorrectly reject 9223372036854775807. */
6852 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6853 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6854 && LARGE_OFF_T % 2147483647 == 1)
6864 if ac_fn_c_try_compile
"$LINENO"; then :
6865 ac_cv_sys_file_offset_bits
=no
; break
6867 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6868 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6869 /* end confdefs.h. */
6870 #define _FILE_OFFSET_BITS 64
6871 #include <sys/types.h>
6872 /* Check that off_t can represent 2**63 - 1 correctly.
6873 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6874 since some C++ compilers masquerading as C compilers
6875 incorrectly reject 9223372036854775807. */
6876 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6877 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6878 && LARGE_OFF_T % 2147483647 == 1)
6888 if ac_fn_c_try_compile
"$LINENO"; then :
6889 ac_cv_sys_file_offset_bits
=64; break
6891 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6892 ac_cv_sys_file_offset_bits
=unknown
6896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6897 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6898 case $ac_cv_sys_file_offset_bits in #(
6901 cat >>confdefs.h
<<_ACEOF
6902 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6907 if test $ac_cv_sys_file_offset_bits = unknown
; then
6908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6909 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6910 if test "${ac_cv_sys_large_files+set}" = set; then :
6911 $as_echo_n "(cached) " >&6
6914 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6915 /* end confdefs.h. */
6916 #include <sys/types.h>
6917 /* Check that off_t can represent 2**63 - 1 correctly.
6918 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6919 since some C++ compilers masquerading as C compilers
6920 incorrectly reject 9223372036854775807. */
6921 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6922 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6923 && LARGE_OFF_T % 2147483647 == 1)
6933 if ac_fn_c_try_compile
"$LINENO"; then :
6934 ac_cv_sys_large_files
=no
; break
6936 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6937 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6938 /* end confdefs.h. */
6939 #define _LARGE_FILES 1
6940 #include <sys/types.h>
6941 /* Check that off_t can represent 2**63 - 1 correctly.
6942 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6943 since some C++ compilers masquerading as C compilers
6944 incorrectly reject 9223372036854775807. */
6945 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6946 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6947 && LARGE_OFF_T % 2147483647 == 1)
6957 if ac_fn_c_try_compile
"$LINENO"; then :
6958 ac_cv_sys_large_files
=1; break
6960 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6961 ac_cv_sys_large_files
=unknown
6965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6966 $as_echo "$ac_cv_sys_large_files" >&6; }
6967 case $ac_cv_sys_large_files in #(
6970 cat >>confdefs.h
<<_ACEOF
6971 #define _LARGE_FILES $ac_cv_sys_large_files
6979 $as_echo "#define _DARWIN_USE_64_BIT_INODE 1" >>confdefs.h
6983 case $ac_cv_prog_cc_stdc in #(
6985 ac_cv_prog_cc_c99
=no
; ac_cv_prog_cc_c89
=no
;; #(
6987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
6988 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
6989 if test "${ac_cv_prog_cc_c99+set}" = set; then :
6990 $as_echo_n "(cached) " >&6
6992 ac_cv_prog_cc_c99
=no
6994 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6995 /* end confdefs.h. */
6997 #include <stdbool.h>
7002 // Check varargs macros. These examples are taken from C99 6.10.3.5.
7003 #define debug(...) fprintf (stderr, __VA_ARGS__)
7004 #define showlist(...) puts (#__VA_ARGS__)
7005 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7007 test_varargs_macros (void)
7012 debug ("X = %d\n", x);
7013 showlist (The first, second, and third items.);
7014 report (x>y, "x is %d but y is %d", x, y);
7017 // Check long long types.
7018 #define BIG64 18446744073709551615ull
7019 #define BIG32 4294967295ul
7020 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7022 your preprocessor is broken;
7026 your preprocessor is broken;
7028 static long long int bignum = -9223372036854775807LL;
7029 static unsigned long long int ubignum = BIG64;
7031 struct incomplete_array
7039 const wchar_t *name;
7043 typedef const char *ccp;
7046 test_restrict (ccp restrict text)
7048 // See if C++-style comments work.
7049 // Iterate through items via the restricted pointer.
7050 // Also check for declarations in for loops.
7051 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7056 // Check varargs and va_copy.
7058 test_varargs (const char *format, ...)
7061 va_start (args, format);
7063 va_copy (args_copy, args);
7074 str = va_arg (args_copy, const char *);
7077 number = va_arg (args_copy, int);
7080 fnumber = va_arg (args_copy, double);
7095 _Bool success = false;
7098 if (test_restrict ("String literal") == 0)
7100 char *restrict newvar = "Another string";
7103 test_varargs ("s, d' f .", "string", 65, 34.234);
7104 test_varargs_macros ();
7106 // Check flexible array members.
7107 struct incomplete_array *ia =
7108 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7110 for (int i = 0; i < ia->datasize; ++i)
7111 ia->data[i] = i * 1.234;
7113 // Check named initializers.
7114 struct named_init ni = {
7116 .name = L"Test wide string",
7117 .average = 543.34343,
7122 int dynamic_array[ni.number];
7123 dynamic_array[ni.number - 1] = 543;
7125 // work around unused variable warnings
7126 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7127 || dynamic_array[ni.number - 1] != 543);
7133 for ac_arg
in '' -std=gnu99
-std=c99
-c99 -AC99 -xc99=all
-qlanglvl=extc99
7135 CC
="$ac_save_CC $ac_arg"
7136 if ac_fn_c_try_compile
"$LINENO"; then :
7137 ac_cv_prog_cc_c99
=$ac_arg
7139 rm -f core conftest.err conftest.
$ac_objext
7140 test "x$ac_cv_prog_cc_c99" != "xno" && break
7142 rm -f conftest.
$ac_ext
7147 case "x$ac_cv_prog_cc_c99" in
7149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7150 $as_echo "none needed" >&6; } ;;
7152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7153 $as_echo "unsupported" >&6; } ;;
7155 CC
="$CC $ac_cv_prog_cc_c99"
7156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
7157 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7159 if test "x$ac_cv_prog_cc_c99" != xno
; then :
7160 ac_cv_prog_cc_stdc
=$ac_cv_prog_cc_c99
7162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
7163 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
7164 if test "${ac_cv_prog_cc_c89+set}" = set; then :
7165 $as_echo_n "(cached) " >&6
7167 ac_cv_prog_cc_c89
=no
7169 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7170 /* end confdefs.h. */
7173 #include <sys/types.h>
7174 #include <sys/stat.h>
7175 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
7176 struct buf { int x; };
7177 FILE * (*rcsopen) (struct buf *, struct stat *, int);
7178 static char *e (p, i)
7184 static char *f (char * (*g) (char **, int), char **p, ...)
7189 s = g (p, va_arg (v,int));
7194 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
7195 function prototypes and stuff, but not '\xHH' hex character constants.
7196 These don't provoke an error unfortunately, instead are silently treated
7197 as 'x'. The following induces an error, until -std is added to get
7198 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
7199 array size at least. It's necessary to write '\x00'==0 to get something
7200 that's true only with -std. */
7201 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
7203 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
7204 inside strings and character constants. */
7206 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
7208 int test (int i, double x);
7209 struct s1 {int (*f) (int a);};
7210 struct s2 {int (*f) (double a);};
7211 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7217 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
7222 for ac_arg
in '' -qlanglvl=extc89
-qlanglvl=ansi
-std \
7223 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7225 CC
="$ac_save_CC $ac_arg"
7226 if ac_fn_c_try_compile
"$LINENO"; then :
7227 ac_cv_prog_cc_c89
=$ac_arg
7229 rm -f core conftest.err conftest.
$ac_objext
7230 test "x$ac_cv_prog_cc_c89" != "xno" && break
7232 rm -f conftest.
$ac_ext
7237 case "x$ac_cv_prog_cc_c89" in
7239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7240 $as_echo "none needed" >&6; } ;;
7242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7243 $as_echo "unsupported" >&6; } ;;
7245 CC
="$CC $ac_cv_prog_cc_c89"
7246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
7247 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
7249 if test "x$ac_cv_prog_cc_c89" != xno
; then :
7250 ac_cv_prog_cc_stdc
=$ac_cv_prog_cc_c89
7252 ac_cv_prog_cc_stdc
=no
7258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
7259 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
7260 if test "${ac_cv_prog_cc_stdc+set}" = set; then :
7261 $as_echo_n "(cached) " >&6
7264 case $ac_cv_prog_cc_stdc in #(
7266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7267 $as_echo "unsupported" >&6; } ;; #(
7269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7270 $as_echo "none needed" >&6; } ;; #(
7272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
7273 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
7278 # Code from module alloca-opt:
7279 # Code from module allocator:
7280 # Code from module at-internal:
7281 # Code from module binary-io:
7282 # Code from module byteswap:
7283 # Code from module c-ctype:
7284 # Code from module c-strcase:
7285 # Code from module careadlinkat:
7286 # Code from module clock-time:
7287 # Code from module close-stream:
7288 # Code from module count-one-bits:
7289 # Code from module count-trailing-zeros:
7290 # Code from module crypto/md5:
7291 # Code from module crypto/sha1:
7292 # Code from module crypto/sha256:
7293 # Code from module crypto/sha512:
7294 # Code from module dirent:
7295 # Code from module dosname:
7296 # Code from module dtoastr:
7297 # Code from module dtotimespec:
7298 # Code from module dup2:
7299 # Code from module environ:
7300 # Code from module errno:
7301 # Code from module euidaccess:
7302 # Code from module execinfo:
7303 # Code from module extensions:
7305 # Code from module extern-inline:
7306 # Code from module faccessat:
7307 # Code from module fcntl:
7308 # Code from module fcntl-h:
7309 # Code from module fdatasync:
7310 # Code from module fdopendir:
7311 # Code from module filemode:
7312 # Code from module fpending:
7313 # Code from module fstatat:
7314 # Code from module fsync:
7315 # Code from module getdtablesize:
7316 # Code from module getgroups:
7317 # Code from module getloadavg:
7318 # Code from module getopt-gnu:
7319 # Code from module getopt-posix:
7320 # Code from module gettext-h:
7321 # Code from module gettime:
7322 # Code from module gettimeofday:
7323 # Code from module group-member:
7324 # Code from module include_next:
7325 # Code from module intprops:
7326 # Code from module inttypes-incomplete:
7327 # Code from module largefile:
7329 # Code from module lstat:
7330 # Code from module manywarnings:
7331 # Code from module memrchr:
7332 # Code from module mkostemp:
7333 # Code from module mktime:
7334 # Code from module multiarch:
7335 # Code from module nocrash:
7336 # Code from module openat-h:
7337 # Code from module pathmax:
7338 # Code from module pipe2:
7339 # Code from module pselect:
7340 # Code from module pthread_sigmask:
7341 # Code from module putenv:
7342 # Code from module qacl:
7343 # Code from module readlink:
7344 # Code from module readlinkat:
7345 # Code from module root-uid:
7346 # Code from module secure_getenv:
7347 # Code from module sig2str:
7348 # Code from module signal-h:
7349 # Code from module snippet/_Noreturn:
7350 # Code from module snippet/arg-nonnull:
7351 # Code from module snippet/c++defs:
7352 # Code from module snippet/warn-on-use:
7353 # Code from module socklen:
7354 # Code from module ssize_t:
7355 # Code from module stat:
7356 # Code from module stat-time:
7357 # Code from module stdalign:
7358 # Code from module stdarg:
7362 # Code from module stdbool:
7363 # Code from module stddef:
7364 # Code from module stdint:
7365 # Code from module stdio:
7366 # Code from module stdlib:
7367 # Code from module strftime:
7368 # Code from module string:
7369 # Code from module strtoimax:
7370 # Code from module strtoll:
7371 # Code from module strtoull:
7372 # Code from module strtoumax:
7373 # Code from module symlink:
7374 # Code from module sys_select:
7375 # Code from module sys_stat:
7376 # Code from module sys_time:
7377 # Code from module tempname:
7378 # Code from module time:
7379 # Code from module time_r:
7380 # Code from module timer-time:
7381 # Code from module timespec:
7382 # Code from module timespec-add:
7383 # Code from module timespec-sub:
7384 # Code from module u64:
7385 # Code from module unistd:
7386 # Code from module unsetenv:
7387 # Code from module utimens:
7388 # Code from module verify:
7389 # Code from module warnings:
7390 # Code from module xalloc-oversized:
7393 if test "$ac_test_CFLAGS" != set; then
7394 # It's helpful to have C macros available to GDB, so prefer -g3 to -g
7395 # if -g3 works and the user does not specify CFLAGS.
7396 # This test must follow gl_EARLY; otherwise AC_LINK_IFELSE complains.
7399 emacs_g3_CFLAGS
='-g3';;
7401 emacs_g3_CFLAGS
='-g3 -O2';;
7403 emacs_g3_CFLAGS
='';;
7405 if test -n "$emacs_g3_CFLAGS"; then
7406 emacs_save_CFLAGS
=$CFLAGS
7407 CFLAGS
=$emacs_g3_CFLAGS
7408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts $emacs_g3_CFLAGS" >&5
7409 $as_echo_n "checking whether $CC accepts $emacs_g3_CFLAGS... " >&6; }
7410 if test "${emacs_cv_prog_cc_g3+set}" = set; then :
7411 $as_echo_n "(cached) " >&6
7413 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7414 /* end confdefs.h. */
7424 if ac_fn_c_try_link
"$LINENO"; then :
7425 emacs_cv_prog_cc_g3
=yes
7427 emacs_cv_prog_cc_g3
=no
7429 rm -f core conftest.err conftest.
$ac_objext \
7430 conftest
$ac_exeext conftest.
$ac_ext
7432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_prog_cc_g3" >&5
7433 $as_echo "$emacs_cv_prog_cc_g3" >&6; }
7434 if test $emacs_cv_prog_cc_g3 != yes; then
7435 CFLAGS
=$emacs_save_CFLAGS
7437 if test $opsys = mingw32
; then
7438 CFLAGS
="$CFLAGS -gdwarf-2"
7445 # No optimization flag was inferred for this non-GCC compiler.
7446 # Try -O. This is needed for xlc on AIX; see Bug#14258.
7447 emacs_save_CFLAGS
=$CFLAGS
7448 test -z "$CFLAGS" || CFLAGS
="$CFLAGS "
7450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -O" >&5
7451 $as_echo_n "checking whether $CC accepts -O... " >&6; }
7452 if test "${emacs_cv_prog_cc_o+set}" = set; then :
7453 $as_echo_n "(cached) " >&6
7455 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7456 /* end confdefs.h. */
7466 if ac_fn_c_try_link
"$LINENO"; then :
7467 emacs_cv_prog_cc_o
=yes
7469 emacs_cv_prog_cc_o
=no
7471 rm -f core conftest.err conftest.
$ac_objext \
7472 conftest
$ac_exeext conftest.
$ac_ext
7474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_prog_cc_o" >&5
7475 $as_echo "$emacs_cv_prog_cc_o" >&6; }
7476 if test $emacs_cv_prog_cc_o != yes; then
7477 CFLAGS
=$emacs_save_CFLAGS
7482 # Check whether --enable-gcc-warnings was given.
7483 if test "${enable_gcc_warnings+set}" = set; then :
7484 enableval
=$enable_gcc_warnings; case $enableval in
7486 *) as_fn_error
"bad value $enableval for gcc-warnings option" "$LINENO" 5 ;;
7488 gl_gcc_warnings
=$enableval
7495 # Check whether --enable-link-time-optimization was given.
7496 if test "${enable_link_time_optimization+set}" = set; then :
7497 enableval
=$enable_link_time_optimization; if test "${enableval}" != "no"; then
7498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether link-time optimization is supported" >&5
7499 $as_echo_n "checking whether link-time optimization is supported... " >&6; }
7501 if test x
$GCC = xyes
; then
7502 CPUS
=`getconf _NPROCESSORS_ONLN 2>/dev/null`
7503 if test x
$CPUS != x
; then
7509 CFLAGS
="$CFLAGS $LTO"
7510 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7511 /* end confdefs.h. */
7521 if ac_fn_c_try_compile
"$LINENO"; then :
7522 ac_lto_supported
=yes
7526 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7527 CFLAGS
="$old_CFLAGS"
7529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_lto_supported" >&5
7530 $as_echo "$ac_lto_supported" >&6; }
7531 if test "$ac_lto_supported" = "yes"; then
7532 CFLAGS
="$CFLAGS $LTO"
7538 # gl_GCC_VERSION_IFELSE([major], [minor], [run-if-found], [run-if-not-found])
7539 # ------------------------------------------------
7540 # If $CPP is gcc-MAJOR.MINOR or newer, then run RUN-IF-FOUND.
7541 # Otherwise, run RUN-IF-NOT-FOUND.
7544 # clang is unduly picky about some things.
7545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler is clang" >&5
7546 $as_echo_n "checking whether the compiler is clang... " >&6; }
7547 if test "${emacs_cv_clang+set}" = set; then :
7548 $as_echo_n "(cached) " >&6
7550 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7551 /* end confdefs.h. */
7565 if ac_fn_c_try_compile
"$LINENO"; then :
7570 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_clang" >&5
7573 $as_echo "$emacs_cv_clang" >&6; }
7575 # When compiling with GCC, prefer -isystem to -I when including system
7576 # include files, to avoid generating useless diagnostics for the files.
7577 if test "$gl_gcc_warnings" != yes; then
7579 if test "$emacs_cv_clang" = yes
7581 # Turn off some warnings if supported.
7582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Werror -Wunknown-warning-option" >&5
7583 $as_echo_n "checking whether C compiler handles -Werror -Wunknown-warning-option... " >&6; }
7584 if test "${gl_cv_warn_c__Werror__Wunknown_warning_option+set}" = set; then :
7585 $as_echo_n "(cached) " >&6
7588 gl_save_compiler_FLAGS
="$CFLAGS"
7589 as_fn_append CFLAGS
" $gl_unknown_warnings_are_errors -Werror -Wunknown-warning-option"
7590 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7591 /* end confdefs.h. */
7601 if ac_fn_c_try_link
"$LINENO"; then :
7602 gl_cv_warn_c__Werror__Wunknown_warning_option
=yes
7604 gl_cv_warn_c__Werror__Wunknown_warning_option
=no
7606 rm -f core conftest.err conftest.
$ac_objext \
7607 conftest
$ac_exeext conftest.
$ac_ext
7608 CFLAGS
="$gl_save_compiler_FLAGS"
7611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Werror__Wunknown_warning_option" >&5
7612 $as_echo "$gl_cv_warn_c__Werror__Wunknown_warning_option" >&6; }
7613 if test "x$gl_cv_warn_c__Werror__Wunknown_warning_option" = x
""yes; then :
7614 gl_unknown_warnings_are_errors
='-Wunknown-warning-option -Werror'
7616 gl_unknown_warnings_are_errors
=
7620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-switch" >&5
7621 $as_echo_n "checking whether C compiler handles -Wno-switch... " >&6; }
7622 if test "${gl_cv_warn_c__Wno_switch+set}" = set; then :
7623 $as_echo_n "(cached) " >&6
7626 gl_save_compiler_FLAGS
="$CFLAGS"
7627 as_fn_append CFLAGS
" $gl_unknown_warnings_are_errors -Wswitch"
7628 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7629 /* end confdefs.h. */
7639 if ac_fn_c_try_link
"$LINENO"; then :
7640 gl_cv_warn_c__Wno_switch
=yes
7642 gl_cv_warn_c__Wno_switch
=no
7644 rm -f core conftest.err conftest.
$ac_objext \
7645 conftest
$ac_exeext conftest.
$ac_ext
7646 CFLAGS
="$gl_save_compiler_FLAGS"
7649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_switch" >&5
7650 $as_echo "$gl_cv_warn_c__Wno_switch" >&6; }
7651 if test "x$gl_cv_warn_c__Wno_switch" = x
""yes; then :
7652 as_fn_append WARN_CFLAGS
" -Wno-switch"
7657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-tautological-constant-out-of-range-compare" >&5
7658 $as_echo_n "checking whether C compiler handles -Wno-tautological-constant-out-of-range-compare... " >&6; }
7659 if test "${gl_cv_warn_c__Wno_tautological_constant_out_of_range_compare+set}" = set; then :
7660 $as_echo_n "(cached) " >&6
7663 gl_save_compiler_FLAGS
="$CFLAGS"
7664 as_fn_append CFLAGS
" $gl_unknown_warnings_are_errors -Wtautological-constant-out-of-range-compare"
7665 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7666 /* end confdefs.h. */
7676 if ac_fn_c_try_link
"$LINENO"; then :
7677 gl_cv_warn_c__Wno_tautological_constant_out_of_range_compare
=yes
7679 gl_cv_warn_c__Wno_tautological_constant_out_of_range_compare
=no
7681 rm -f core conftest.err conftest.
$ac_objext \
7682 conftest
$ac_exeext conftest.
$ac_ext
7683 CFLAGS
="$gl_save_compiler_FLAGS"
7686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_tautological_constant_out_of_range_compare" >&5
7687 $as_echo "$gl_cv_warn_c__Wno_tautological_constant_out_of_range_compare" >&6; }
7688 if test "x$gl_cv_warn_c__Wno_tautological_constant_out_of_range_compare" = x
""yes; then :
7689 as_fn_append WARN_CFLAGS
" -Wno-tautological-constant-out-of-range-compare"
7694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-pointer-sign" >&5
7695 $as_echo_n "checking whether C compiler handles -Wno-pointer-sign... " >&6; }
7696 if test "${gl_cv_warn_c__Wno_pointer_sign+set}" = set; then :
7697 $as_echo_n "(cached) " >&6
7700 gl_save_compiler_FLAGS
="$CFLAGS"
7701 as_fn_append CFLAGS
" $gl_unknown_warnings_are_errors -Wpointer-sign"
7702 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7703 /* end confdefs.h. */
7713 if ac_fn_c_try_link
"$LINENO"; then :
7714 gl_cv_warn_c__Wno_pointer_sign
=yes
7716 gl_cv_warn_c__Wno_pointer_sign
=no
7718 rm -f core conftest.err conftest.
$ac_objext \
7719 conftest
$ac_exeext conftest.
$ac_ext
7720 CFLAGS
="$gl_save_compiler_FLAGS"
7723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_pointer_sign" >&5
7724 $as_echo "$gl_cv_warn_c__Wno_pointer_sign" >&6; }
7725 if test "x$gl_cv_warn_c__Wno_pointer_sign" = x
""yes; then :
7726 as_fn_append WARN_CFLAGS
" -Wno-pointer-sign"
7734 # This, $nw, is the list of warnings we disable.
7737 case $with_x_toolkit in
7738 lucid | athena | motif
)
7739 # Old toolkits mishandle 'const'.
7740 nw
="$nw -Wwrite-strings"
7744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Werror" >&5
7745 $as_echo_n "checking whether C compiler handles -Werror... " >&6; }
7746 if test "${gl_cv_warn_c__Werror+set}" = set; then :
7747 $as_echo_n "(cached) " >&6
7750 gl_save_compiler_FLAGS
="$CFLAGS"
7751 as_fn_append CFLAGS
" $gl_unknown_warnings_are_errors -Werror"
7752 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7753 /* end confdefs.h. */
7763 if ac_fn_c_try_link
"$LINENO"; then :
7764 gl_cv_warn_c__Werror
=yes
7766 gl_cv_warn_c__Werror
=no
7768 rm -f core conftest.err conftest.
$ac_objext \
7769 conftest
$ac_exeext conftest.
$ac_ext
7770 CFLAGS
="$gl_save_compiler_FLAGS"
7773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Werror" >&5
7774 $as_echo "$gl_cv_warn_c__Werror" >&6; }
7775 if test "x$gl_cv_warn_c__Werror" = x
""yes; then :
7776 as_fn_append WERROR_CFLAGS
" -Werror"
7784 nw
="$nw -Wsystem-headers" # Don't let system headers trigger warnings
7785 nw
="$nw -Woverlength-strings" # Not a problem these days
7786 nw
="$nw -Wlogical-op" # any use of fwrite provokes this
7787 nw
="$nw -Wformat-nonliteral" # we do this a lot
7788 nw
="$nw -Wvla" # warnings in gettext.h
7789 nw
="$nw -Wnested-externs" # use of XARGMATCH/verify_function__
7790 nw
="$nw -Wswitch-default" # Too many warnings for now
7791 nw
="$nw -Winline" # OK to ignore 'inline'
7792 nw
="$nw -Wjump-misses-init" # We sometimes safely jump over init.
7793 nw
="$nw -Wstrict-overflow" # OK to optimize assuming that
7794 # signed overflow has undefined behavior
7795 nw
="$nw -Wsync-nand" # irrelevant here, and provokes ObjC warning
7796 nw
="$nw -Wunsafe-loop-optimizations" # OK to suppress unsafe optimizations
7797 nw
="$nw -Wbad-function-cast" # These casts are no worse than others.
7799 # Emacs doesn't care about shadowing; see
7800 # <http://lists.gnu.org/archive/html/emacs-diffs/2011-11/msg00265.html>.
7803 # Emacs's use of alloca inhibits protecting the stack.
7804 nw
="$nw -Wstack-protector"
7806 # The following line should be removable at some point.
7807 nw
="$nw -Wsuggest-attribute=pure"
7809 # This part is merely for shortening the command line,
7810 # since -Wno-FOO needs to be added below regardless.
7811 nw
="$nw -Wmissing-field-initializers"
7813 nw
="$nw -Wtype-limits"
7814 nw
="$nw -Wunused-parameter"
7816 if test $emacs_cv_clang = yes; then
7817 nw
="$nw -Wcast-align"
7822 if test -n "$GCC"; then
7824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is supported" >&5
7825 $as_echo_n "checking whether -Wno-missing-field-initializers is supported... " >&6; }
7826 if test "${gl_cv_cc_nomfi_supported+set}" = set; then :
7827 $as_echo_n "(cached) " >&6
7830 gl_save_CFLAGS
="$CFLAGS"
7831 CFLAGS
="$CFLAGS -W -Werror -Wno-missing-field-initializers"
7832 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7833 /* end confdefs.h. */
7843 if ac_fn_c_try_compile
"$LINENO"; then :
7844 gl_cv_cc_nomfi_supported
=yes
7846 gl_cv_cc_nomfi_supported
=no
7848 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7849 CFLAGS
="$gl_save_CFLAGS"
7852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_supported" >&5
7853 $as_echo "$gl_cv_cc_nomfi_supported" >&6; }
7855 if test "$gl_cv_cc_nomfi_supported" = yes; then
7856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is needed" >&5
7857 $as_echo_n "checking whether -Wno-missing-field-initializers is needed... " >&6; }
7858 if test "${gl_cv_cc_nomfi_needed+set}" = set; then :
7859 $as_echo_n "(cached) " >&6
7862 gl_save_CFLAGS
="$CFLAGS"
7863 CFLAGS
="$CFLAGS -W -Werror"
7864 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7865 /* end confdefs.h. */
7868 typedef struct { int a; int b; } s_t;
7880 if ac_fn_c_try_compile
"$LINENO"; then :
7881 gl_cv_cc_nomfi_needed
=no
7883 gl_cv_cc_nomfi_needed
=yes
7885 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7886 CFLAGS
="$gl_save_CFLAGS"
7890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_needed" >&5
7891 $as_echo "$gl_cv_cc_nomfi_needed" >&6; }
7894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wuninitialized is supported" >&5
7895 $as_echo_n "checking whether -Wuninitialized is supported... " >&6; }
7896 if test "${gl_cv_cc_uninitialized_supported+set}" = set; then :
7897 $as_echo_n "(cached) " >&6
7900 gl_save_CFLAGS
="$CFLAGS"
7901 CFLAGS
="$CFLAGS -Werror -Wuninitialized"
7902 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7903 /* end confdefs.h. */
7913 if ac_fn_c_try_compile
"$LINENO"; then :
7914 gl_cv_cc_uninitialized_supported
=yes
7916 gl_cv_cc_uninitialized_supported
=no
7918 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7919 CFLAGS
="$gl_save_CFLAGS"
7922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_uninitialized_supported" >&5
7923 $as_echo "$gl_cv_cc_uninitialized_supported" >&6; }
7927 # List all gcc warning categories.
7929 for gl_manywarn_item
in \
7933 -Waggressive-loop-optimizations \
7937 -Wbad-function-cast \
7938 -Wbuiltin-macro-redefined \
7944 -Wcoverage-mismatch \
7947 -Wdeprecated-declarations \
7948 -Wdisabled-optimization \
7950 -Wdouble-promotion \
7955 -Wformat-contains-nul \
7956 -Wformat-extra-args \
7957 -Wformat-nonliteral \
7960 -Wformat-zero-length \
7961 -Wfree-nonheap-object \
7962 -Wignored-qualifiers \
7964 -Wimplicit-function-declaration \
7968 -Wint-to-pointer-cast \
7969 -Winvalid-memory-model \
7971 -Wjump-misses-init \
7974 -Wmaybe-uninitialized \
7976 -Wmissing-declarations \
7977 -Wmissing-field-initializers \
7978 -Wmissing-include-dirs \
7979 -Wmissing-parameter-type \
7980 -Wmissing-prototypes \
7987 -Wold-style-declaration \
7988 -Wold-style-definition \
7990 -Woverlength-strings \
7993 -Wpacked-bitfield-compat \
7997 -Wpointer-to-int-cast \
7999 -Wreturn-local-addr \
8003 -Wsizeof-pointer-memaccess \
8007 -Wstrict-prototypes \
8008 -Wsuggest-attribute=const \
8009 -Wsuggest-attribute=format \
8010 -Wsuggest-attribute=noreturn \
8011 -Wsuggest-attribute=pure \
8021 -Wunsafe-loop-optimizations \
8023 -Wunused-but-set-parameter \
8024 -Wunused-but-set-variable \
8027 -Wunused-local-typedefs \
8029 -Wunused-parameter \
8035 -Wvector-operation-performance \
8037 -Wvolatile-register-var \
8039 -fdiagnostics-show-option \
8043 gl_manywarn_set
="$gl_manywarn_set $gl_manywarn_item"
8046 # Disable specific options as needed.
8047 if test "$gl_cv_cc_nomfi_needed" = yes; then
8048 gl_manywarn_set
="$gl_manywarn_set -Wno-missing-field-initializers"
8051 if test "$gl_cv_cc_uninitialized_supported" = no
; then
8052 gl_manywarn_set
="$gl_manywarn_set -Wno-uninitialized"
8063 *" $gl_warn_item "*)
8066 gl_warn_set
="$gl_warn_set $gl_warn_item"
8074 as_gl_Warn
=`$as_echo "gl_cv_warn_c_$w" | $as_tr_sh`
8076 case $gl_positive in
8077 -Wno-*) gl_positive
=-W`expr "X$gl_positive" : 'X-Wno-\(.*\)'` ;;
8079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles $w" >&5
8080 $as_echo_n "checking whether C compiler handles $w... " >&6; }
8081 if { as_var
=$as_gl_Warn; eval "test \"\${$as_var+set}\" = set"; }; then :
8082 $as_echo_n "(cached) " >&6
8085 gl_save_compiler_FLAGS
="$CFLAGS"
8086 as_fn_append CFLAGS
" $gl_unknown_warnings_are_errors $gl_positive"
8087 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8088 /* end confdefs.h. */
8098 if ac_fn_c_try_link
"$LINENO"; then :
8099 eval "$as_gl_Warn=yes"
8101 eval "$as_gl_Warn=no"
8103 rm -f core conftest.err conftest.
$ac_objext \
8104 conftest
$ac_exeext conftest.
$ac_ext
8105 CFLAGS
="$gl_save_compiler_FLAGS"
8108 eval ac_res
=\$
$as_gl_Warn
8109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8110 $as_echo "$ac_res" >&6; }
8111 eval as_val
=\$
$as_gl_Warn
8112 if test "x$as_val" = x
""yes; then :
8113 as_fn_append WARN_CFLAGS
" $w"
8119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-missing-field-initializers" >&5
8120 $as_echo_n "checking whether C compiler handles -Wno-missing-field-initializers... " >&6; }
8121 if test "${gl_cv_warn_c__Wno_missing_field_initializers+set}" = set; then :
8122 $as_echo_n "(cached) " >&6
8125 gl_save_compiler_FLAGS
="$CFLAGS"
8126 as_fn_append CFLAGS
" $gl_unknown_warnings_are_errors -Wmissing-field-initializers"
8127 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8128 /* end confdefs.h. */
8138 if ac_fn_c_try_link
"$LINENO"; then :
8139 gl_cv_warn_c__Wno_missing_field_initializers
=yes
8141 gl_cv_warn_c__Wno_missing_field_initializers
=no
8143 rm -f core conftest.err conftest.
$ac_objext \
8144 conftest
$ac_exeext conftest.
$ac_ext
8145 CFLAGS
="$gl_save_compiler_FLAGS"
8148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_missing_field_initializers" >&5
8149 $as_echo "$gl_cv_warn_c__Wno_missing_field_initializers" >&6; }
8150 if test "x$gl_cv_warn_c__Wno_missing_field_initializers" = x
""yes; then :
8151 as_fn_append WARN_CFLAGS
" -Wno-missing-field-initializers"
8156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-sign-compare" >&5
8157 $as_echo_n "checking whether C compiler handles -Wno-sign-compare... " >&6; }
8158 if test "${gl_cv_warn_c__Wno_sign_compare+set}" = set; then :
8159 $as_echo_n "(cached) " >&6
8162 gl_save_compiler_FLAGS
="$CFLAGS"
8163 as_fn_append CFLAGS
" $gl_unknown_warnings_are_errors -Wsign-compare"
8164 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8165 /* end confdefs.h. */
8175 if ac_fn_c_try_link
"$LINENO"; then :
8176 gl_cv_warn_c__Wno_sign_compare
=yes
8178 gl_cv_warn_c__Wno_sign_compare
=no
8180 rm -f core conftest.err conftest.
$ac_objext \
8181 conftest
$ac_exeext conftest.
$ac_ext
8182 CFLAGS
="$gl_save_compiler_FLAGS"
8185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_sign_compare" >&5
8186 $as_echo "$gl_cv_warn_c__Wno_sign_compare" >&6; }
8187 if test "x$gl_cv_warn_c__Wno_sign_compare" = x
""yes; then :
8188 as_fn_append WARN_CFLAGS
" -Wno-sign-compare"
8191 # Too many warnings for now
8193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-type-limits" >&5
8194 $as_echo_n "checking whether C compiler handles -Wno-type-limits... " >&6; }
8195 if test "${gl_cv_warn_c__Wno_type_limits+set}" = set; then :
8196 $as_echo_n "(cached) " >&6
8199 gl_save_compiler_FLAGS
="$CFLAGS"
8200 as_fn_append CFLAGS
" $gl_unknown_warnings_are_errors -Wtype-limits"
8201 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8202 /* end confdefs.h. */
8212 if ac_fn_c_try_link
"$LINENO"; then :
8213 gl_cv_warn_c__Wno_type_limits
=yes
8215 gl_cv_warn_c__Wno_type_limits
=no
8217 rm -f core conftest.err conftest.
$ac_objext \
8218 conftest
$ac_exeext conftest.
$ac_ext
8219 CFLAGS
="$gl_save_compiler_FLAGS"
8222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_type_limits" >&5
8223 $as_echo "$gl_cv_warn_c__Wno_type_limits" >&6; }
8224 if test "x$gl_cv_warn_c__Wno_type_limits" = x
""yes; then :
8225 as_fn_append WARN_CFLAGS
" -Wno-type-limits"
8228 # Too many warnings for now
8230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-switch" >&5
8231 $as_echo_n "checking whether C compiler handles -Wno-switch... " >&6; }
8232 if test "${gl_cv_warn_c__Wno_switch+set}" = set; then :
8233 $as_echo_n "(cached) " >&6
8236 gl_save_compiler_FLAGS
="$CFLAGS"
8237 as_fn_append CFLAGS
" $gl_unknown_warnings_are_errors -Wswitch"
8238 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8239 /* end confdefs.h. */
8249 if ac_fn_c_try_link
"$LINENO"; then :
8250 gl_cv_warn_c__Wno_switch
=yes
8252 gl_cv_warn_c__Wno_switch
=no
8254 rm -f core conftest.err conftest.
$ac_objext \
8255 conftest
$ac_exeext conftest.
$ac_ext
8256 CFLAGS
="$gl_save_compiler_FLAGS"
8259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_switch" >&5
8260 $as_echo "$gl_cv_warn_c__Wno_switch" >&6; }
8261 if test "x$gl_cv_warn_c__Wno_switch" = x
""yes; then :
8262 as_fn_append WARN_CFLAGS
" -Wno-switch"
8265 # Too many warnings for now
8267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-unused-parameter" >&5
8268 $as_echo_n "checking whether C compiler handles -Wno-unused-parameter... " >&6; }
8269 if test "${gl_cv_warn_c__Wno_unused_parameter+set}" = set; then :
8270 $as_echo_n "(cached) " >&6
8273 gl_save_compiler_FLAGS
="$CFLAGS"
8274 as_fn_append CFLAGS
" $gl_unknown_warnings_are_errors -Wunused-parameter"
8275 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8276 /* end confdefs.h. */
8286 if ac_fn_c_try_link
"$LINENO"; then :
8287 gl_cv_warn_c__Wno_unused_parameter
=yes
8289 gl_cv_warn_c__Wno_unused_parameter
=no
8291 rm -f core conftest.err conftest.
$ac_objext \
8292 conftest
$ac_exeext conftest.
$ac_ext
8293 CFLAGS
="$gl_save_compiler_FLAGS"
8296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_unused_parameter" >&5
8297 $as_echo "$gl_cv_warn_c__Wno_unused_parameter" >&6; }
8298 if test "x$gl_cv_warn_c__Wno_unused_parameter" = x
""yes; then :
8299 as_fn_append WARN_CFLAGS
" -Wno-unused-parameter"
8302 # Too many warnings for now
8304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-format-nonliteral" >&5
8305 $as_echo_n "checking whether C compiler handles -Wno-format-nonliteral... " >&6; }
8306 if test "${gl_cv_warn_c__Wno_format_nonliteral+set}" = set; then :
8307 $as_echo_n "(cached) " >&6
8310 gl_save_compiler_FLAGS
="$CFLAGS"
8311 as_fn_append CFLAGS
" $gl_unknown_warnings_are_errors -Wformat-nonliteral"
8312 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8313 /* end confdefs.h. */
8323 if ac_fn_c_try_link
"$LINENO"; then :
8324 gl_cv_warn_c__Wno_format_nonliteral
=yes
8326 gl_cv_warn_c__Wno_format_nonliteral
=no
8328 rm -f core conftest.err conftest.
$ac_objext \
8329 conftest
$ac_exeext conftest.
$ac_ext
8330 CFLAGS
="$gl_save_compiler_FLAGS"
8333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_format_nonliteral" >&5
8334 $as_echo "$gl_cv_warn_c__Wno_format_nonliteral" >&6; }
8335 if test "x$gl_cv_warn_c__Wno_format_nonliteral" = x
""yes; then :
8336 as_fn_append WARN_CFLAGS
" -Wno-format-nonliteral"
8341 # In spite of excluding -Wlogical-op above, it is enabled, as of
8342 # gcc 4.5.0 20090517.
8344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-logical-op" >&5
8345 $as_echo_n "checking whether C compiler handles -Wno-logical-op... " >&6; }
8346 if test "${gl_cv_warn_c__Wno_logical_op+set}" = set; then :
8347 $as_echo_n "(cached) " >&6
8350 gl_save_compiler_FLAGS
="$CFLAGS"
8351 as_fn_append CFLAGS
" $gl_unknown_warnings_are_errors -Wlogical-op"
8352 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8353 /* end confdefs.h. */
8363 if ac_fn_c_try_link
"$LINENO"; then :
8364 gl_cv_warn_c__Wno_logical_op
=yes
8366 gl_cv_warn_c__Wno_logical_op
=no
8368 rm -f core conftest.err conftest.
$ac_objext \
8369 conftest
$ac_exeext conftest.
$ac_ext
8370 CFLAGS
="$gl_save_compiler_FLAGS"
8373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_logical_op" >&5
8374 $as_echo "$gl_cv_warn_c__Wno_logical_op" >&6; }
8375 if test "x$gl_cv_warn_c__Wno_logical_op" = x
""yes; then :
8376 as_fn_append WARN_CFLAGS
" -Wno-logical-op"
8381 # More things that clang is unduly picky about.
8382 if test $emacs_cv_clang = yes; then
8384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-format-extra-args" >&5
8385 $as_echo_n "checking whether C compiler handles -Wno-format-extra-args... " >&6; }
8386 if test "${gl_cv_warn_c__Wno_format_extra_args+set}" = set; then :
8387 $as_echo_n "(cached) " >&6
8390 gl_save_compiler_FLAGS
="$CFLAGS"
8391 as_fn_append CFLAGS
" $gl_unknown_warnings_are_errors -Wformat-extra-args"
8392 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8393 /* end confdefs.h. */
8403 if ac_fn_c_try_link
"$LINENO"; then :
8404 gl_cv_warn_c__Wno_format_extra_args
=yes
8406 gl_cv_warn_c__Wno_format_extra_args
=no
8408 rm -f core conftest.err conftest.
$ac_objext \
8409 conftest
$ac_exeext conftest.
$ac_ext
8410 CFLAGS
="$gl_save_compiler_FLAGS"
8413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_format_extra_args" >&5
8414 $as_echo "$gl_cv_warn_c__Wno_format_extra_args" >&6; }
8415 if test "x$gl_cv_warn_c__Wno_format_extra_args" = x
""yes; then :
8416 as_fn_append WARN_CFLAGS
" -Wno-format-extra-args"
8421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-tautological-constant-out-of-range-compare" >&5
8422 $as_echo_n "checking whether C compiler handles -Wno-tautological-constant-out-of-range-compare... " >&6; }
8423 if test "${gl_cv_warn_c__Wno_tautological_constant_out_of_range_compare+set}" = set; then :
8424 $as_echo_n "(cached) " >&6
8427 gl_save_compiler_FLAGS
="$CFLAGS"
8428 as_fn_append CFLAGS
" $gl_unknown_warnings_are_errors -Wtautological-constant-out-of-range-compare"
8429 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8430 /* end confdefs.h. */
8440 if ac_fn_c_try_link
"$LINENO"; then :
8441 gl_cv_warn_c__Wno_tautological_constant_out_of_range_compare
=yes
8443 gl_cv_warn_c__Wno_tautological_constant_out_of_range_compare
=no
8445 rm -f core conftest.err conftest.
$ac_objext \
8446 conftest
$ac_exeext conftest.
$ac_ext
8447 CFLAGS
="$gl_save_compiler_FLAGS"
8450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_tautological_constant_out_of_range_compare" >&5
8451 $as_echo "$gl_cv_warn_c__Wno_tautological_constant_out_of_range_compare" >&6; }
8452 if test "x$gl_cv_warn_c__Wno_tautological_constant_out_of_range_compare" = x
""yes; then :
8453 as_fn_append WARN_CFLAGS
" -Wno-tautological-constant-out-of-range-compare"
8458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-unused-command-line-argument" >&5
8459 $as_echo_n "checking whether C compiler handles -Wno-unused-command-line-argument... " >&6; }
8460 if test "${gl_cv_warn_c__Wno_unused_command_line_argument+set}" = set; then :
8461 $as_echo_n "(cached) " >&6
8464 gl_save_compiler_FLAGS
="$CFLAGS"
8465 as_fn_append CFLAGS
" $gl_unknown_warnings_are_errors -Wunused-command-line-argument"
8466 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8467 /* end confdefs.h. */
8477 if ac_fn_c_try_link
"$LINENO"; then :
8478 gl_cv_warn_c__Wno_unused_command_line_argument
=yes
8480 gl_cv_warn_c__Wno_unused_command_line_argument
=no
8482 rm -f core conftest.err conftest.
$ac_objext \
8483 conftest
$ac_exeext conftest.
$ac_ext
8484 CFLAGS
="$gl_save_compiler_FLAGS"
8487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_unused_command_line_argument" >&5
8488 $as_echo "$gl_cv_warn_c__Wno_unused_command_line_argument" >&6; }
8489 if test "x$gl_cv_warn_c__Wno_unused_command_line_argument" = x
""yes; then :
8490 as_fn_append WARN_CFLAGS
" -Wno-unused-command-line-argument"
8495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-unused-value" >&5
8496 $as_echo_n "checking whether C compiler handles -Wno-unused-value... " >&6; }
8497 if test "${gl_cv_warn_c__Wno_unused_value+set}" = set; then :
8498 $as_echo_n "(cached) " >&6
8501 gl_save_compiler_FLAGS
="$CFLAGS"
8502 as_fn_append CFLAGS
" $gl_unknown_warnings_are_errors -Wunused-value"
8503 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8504 /* end confdefs.h. */
8514 if ac_fn_c_try_link
"$LINENO"; then :
8515 gl_cv_warn_c__Wno_unused_value
=yes
8517 gl_cv_warn_c__Wno_unused_value
=no
8519 rm -f core conftest.err conftest.
$ac_objext \
8520 conftest
$ac_exeext conftest.
$ac_ext
8521 CFLAGS
="$gl_save_compiler_FLAGS"
8524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_unused_value" >&5
8525 $as_echo "$gl_cv_warn_c__Wno_unused_value" >&6; }
8526 if test "x$gl_cv_warn_c__Wno_unused_value" = x
""yes; then :
8527 as_fn_append WARN_CFLAGS
" -Wno-unused-value"
8534 $as_echo "#define lint 1" >>confdefs.h
8538 $as_echo "#define GNULIB_PORTCHECK 1" >>confdefs.h
8541 # We use a slightly smaller set of warning options for lib/.
8542 # Remove the following and save the result in GNULIB_WARN_CFLAGS.
8544 nw
="$nw -Wunused-macros"
8548 set x
$WARN_CFLAGS; shift
8552 *" $gl_warn_item "*)
8555 gl_warn_set
="$gl_warn_set $gl_warn_item"
8559 GNULIB_WARN_CFLAGS
=$gl_warn_set
8569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works for files in the same directory" >&5
8570 $as_echo_n "checking whether ln -s works for files in the same directory... " >&6; }
8571 rm -f conf$$ conf$$.
file
8573 LN_S_FILEONLY
='cp -p'
8575 if (echo >conf$$.
file) 2>/dev
/null
; then
8576 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
8577 LN_S_FILEONLY
='ln -s'
8578 elif ln conf$$.
file conf$$
2>/dev
/null
; then
8583 rm -f conf$$ conf$$.
file
8585 if test "$LN_S_FILEONLY" = "ln -s"; then
8586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8587 $as_echo "yes" >&6; }
8589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S_FILEONLY" >&5
8590 $as_echo "no, using $LN_S_FILEONLY" >&6; }
8596 if test "$opsys" = "mingw32"; then
8600 # Extract the first word of "install-info", so it can be a program name with args.
8601 set dummy install-info
; ac_word
=$2
8602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8603 $as_echo_n "checking for $ac_word... " >&6; }
8604 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
8605 $as_echo_n "(cached) " >&6
8607 case $INSTALL_INFO in
8609 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
8612 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8613 for as_dir
in $PATH$PATH_SEPARATOR/usr
/sbin
$PATH_SEPARATOR/sbin
8616 test -z "$as_dir" && as_dir
=.
8617 for ac_exec_ext
in '' $ac_executable_extensions; do
8618 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8619 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
8620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8627 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
8631 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
8632 if test -n "$INSTALL_INFO"; then
8633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
8634 $as_echo "$INSTALL_INFO" >&6; }
8636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8637 $as_echo "no" >&6; }
8641 # Extract the first word of "gzip", so it can be a program name with args.
8642 set dummy
gzip; ac_word
=$2
8643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8644 $as_echo_n "checking for $ac_word... " >&6; }
8645 if test "${ac_cv_path_GZIP_PROG+set}" = set; then :
8646 $as_echo_n "(cached) " >&6
8650 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
8653 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8657 test -z "$as_dir" && as_dir
=.
8658 for ac_exec_ext
in '' $ac_executable_extensions; do
8659 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8660 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
8661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8671 GZIP_PROG
=$ac_cv_path_GZIP_PROG
8672 if test -n "$GZIP_PROG"; then
8673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
8674 $as_echo "$GZIP_PROG" >&6; }
8676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8677 $as_echo "no" >&6; }
8682 test $with_compress_install != yes && test -n "$GZIP_PROG" && \
8683 GZIP_PROG
=" # $GZIP_PROG # (disabled by configure --without-compress-install)"
8685 if test $opsys = gnu-linux
; then
8686 # Extract the first word of "paxctl", so it can be a program name with args.
8687 set dummy paxctl
; ac_word
=$2
8688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8689 $as_echo_n "checking for $ac_word... " >&6; }
8690 if test "${ac_cv_path_PAXCTL+set}" = set; then :
8691 $as_echo_n "(cached) " >&6
8695 ac_cv_path_PAXCTL
="$PAXCTL" # Let the user override the test with a path.
8698 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8699 for as_dir
in $PATH$PATH_SEPARATOR/sbin
$PATH_SEPARATOR/usr
/sbin
8702 test -z "$as_dir" && as_dir
=.
8703 for ac_exec_ext
in '' $ac_executable_extensions; do
8704 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8705 ac_cv_path_PAXCTL
="$as_dir/$ac_word$ac_exec_ext"
8706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8716 PAXCTL
=$ac_cv_path_PAXCTL
8717 if test -n "$PAXCTL"; then
8718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PAXCTL" >&5
8719 $as_echo "$PAXCTL" >&6; }
8721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8722 $as_echo "no" >&6; }
8726 if test "X$PAXCTL" != X
; then
8727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether binaries have a PT_PAX_FLAGS header" >&5
8728 $as_echo_n "checking whether binaries have a PT_PAX_FLAGS header... " >&6; }
8729 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8730 /* end confdefs.h. */
8740 if ac_fn_c_try_link
"$LINENO"; then :
8741 if $PAXCTL -v conftest
$EXEEXT >/dev
/null
2>&1; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8742 $as_echo "yes" >&6; }
8743 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8744 $as_echo "no" >&6; }; PAXCTL
=""; fi
8746 rm -f core conftest.err conftest.
$ac_objext \
8747 conftest
$ac_exeext conftest.
$ac_ext
8751 ## Need makeinfo >= 4.7 (?) to build the manuals.
8752 # Extract the first word of "makeinfo", so it can be a program name with args.
8753 set dummy makeinfo
; ac_word
=$2
8754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8755 $as_echo_n "checking for $ac_word... " >&6; }
8756 if test "${ac_cv_path_MAKEINFO+set}" = set; then :
8757 $as_echo_n "(cached) " >&6
8761 ac_cv_path_MAKEINFO
="$MAKEINFO" # Let the user override the test with a path.
8764 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8768 test -z "$as_dir" && as_dir
=.
8769 for ac_exec_ext
in '' $ac_executable_extensions; do
8770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8771 ac_cv_path_MAKEINFO
="$as_dir/$ac_word$ac_exec_ext"
8772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8779 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO
="no"
8783 MAKEINFO
=$ac_cv_path_MAKEINFO
8784 if test -n "$MAKEINFO"; then
8785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8786 $as_echo "$MAKEINFO" >&6; }
8788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8789 $as_echo "no" >&6; }
8793 if test "$MAKEINFO" != "no"; then
8795 $MAKEINFO --version 2> /dev/null |
8796 $EGREP 'texinfo[^0-9]*([1-4][0-9]+|[5-9]|4\.[7-9]|4\.[1-6][0-9]+)'
8802 ## Makeinfo is unusual. For a released Emacs, the manuals are
8803 ## pre-built, and not deleted by the normal clean rules. makeinfo is
8804 ## therefore in the category of "special tools" not normally required, which
8805 ## configure does not have to check for (eg autoconf itself).
8806 ## In a Bazaar checkout on the other hand, the manuals are not included.
8807 ## So makeinfo is a requirement to build from Bazaar, and configure
8808 ## should test for it as it does for any other build requirement.
8809 ## We use the presence of $srcdir/info/emacs to distinguish a release,
8810 ## with pre-built manuals, from a Bazaar checkout.
8813 if test "$MAKEINFO" = "no"; then
8815 if test "x${with_makeinfo}" = "xno"; then
8817 elif test ! -e "$srcdir/info/emacs" && test ! -e "$srcdir/info/emacs.info"; then
8818 as_fn_error
"You do not seem to have makeinfo >= 4.7, and your
8819 source tree does not seem to have pre-built manuals in the \`info' directory.
8820 Either install a suitable version of makeinfo, or re-run configure
8821 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
8827 INFO_OPTS
=--no-split
8831 if test $opsys = mingw32
; then
8832 DOCMISC_W32
=efaq-w32
8839 if test x
$GCC = xyes
; then
8840 test "x$GCC_LINK_TEST_OPTIONS" != x
&& \
8841 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
8843 test "x$NON_GCC_LINK_TEST_OPTIONS" != x
&& \
8844 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
8848 late_LDFLAGS
="$LDFLAGS"
8849 if test x
$GCC = xyes
; then
8850 LDFLAGS_NOCOMBRELOC
="-Wl,-znocombreloc"
8852 LDFLAGS_NOCOMBRELOC
="-znocombreloc"
8855 LDFLAGS
="$LDFLAGS $LDFLAGS_NOCOMBRELOC"
8857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
8858 $as_echo_n "checking for -znocombreloc... " >&6; }
8859 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8860 /* end confdefs.h. */
8870 if ac_fn_c_try_link
"$LINENO"; then :
8871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8872 $as_echo "yes" >&6; }
8874 LDFLAGS_NOCOMBRELOC
=
8875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8876 $as_echo "no" >&6; }
8878 rm -f core conftest.err conftest.
$ac_objext \
8879 conftest
$ac_exeext conftest.
$ac_ext
8881 LDFLAGS
="$late_LDFLAGS"
8883 test "x$CANNOT_DUMP" = "x" && CANNOT_DUMP
=no
8885 your-opsys-here
) CANNOT_DUMP
=yes ;;
8888 test "$CANNOT_DUMP" = "yes" && \
8890 $as_echo "#define CANNOT_DUMP 1" >>confdefs.h
8896 UNEXEC_OBJ
=unexelf.o
8898 # MSDOS uses unexcoff.o
8900 UNEXEC_OBJ
=unexaix.o
8906 UNEXEC_OBJ
=unexmacosx.o
8909 UNEXEC_OBJ
=unexhp9k800.o
8912 UNEXEC_OBJ
=unexw32.o
8915 # Use the Solaris dldump() function, called from unexsol.c, to dump
8916 # emacs, instead of the generic ELF dump code found in unexelf.c.
8917 # The resulting binary has a complete symbol table, and is better
8918 # for debugging and other observability tools (debuggers, pstack, etc).
8920 # If you encounter a problem using dldump(), please consider sending
8921 # a message to the OpenSolaris tools-linking mailing list:
8922 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
8924 # It is likely that dldump() works with older Solaris too, but this has
8925 # not been tested, so for now this change is for Solaris 10 or newer.
8926 UNEXEC_OBJ
=unexsol.o
8933 ## Let `ld' find image libs and similar things in /usr/local/lib.
8934 ## The system compiler, GCC, has apparently been modified to not
8935 ## look there, contrary to what a stock GCC would do.
8936 ### It's not our place to do this. See bug#10313#17.
8937 ### LD_SWITCH_SYSTEM=-L/usr/local/lib
8942 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
8943 case $host_cpu in mips
*) LD_SWITCH_SYSTEM
="-G 0";; esac
8947 ### It's not our place to do this. See bug#10313#17.
8948 ### LD_SWITCH_SYSTEM="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
8953 ## Han Boetes <han@boetes.org> says this is necessary,
8954 ## otherwise Emacs dumps core on elf systems.
8955 LD_SWITCH_SYSTEM
="-Z"
8960 ac_link
="$ac_link $LD_SWITCH_SYSTEM"
8962 ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_RPATH,
8963 ## which has not been defined yet. When this was handled with cpp,
8964 ## it was expanded to null when configure sourced the s/*.h file.
8965 ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
8966 ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
8967 ## (or somesuch), but because it is supposed to go at the _front_
8968 ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
8969 ## Compare with the gnu-linux case below, which added to the end
8970 ## of LD_SWITCH_SYSTEM, and so can instead go at the front of
8971 ## LD_SWITCH_SYSTEM_TEMACS.
8974 LD_SWITCH_SYSTEM
="\$(LD_SWITCH_X_SITE_RPATH) $LD_SWITCH_SYSTEM" ;;
8981 ac_fn_c_check_decl
"$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
8982 if test "x$ac_cv_have_decl___ELF__" = x
""yes; then :
8986 if test "$ac_cv_have_decl___ELF__" = "yes"; then
8987 ## With ELF, make sure that all common symbols get allocated to in the
8988 ## data section. Otherwise, the dump of temacs may miss variables in
8989 ## the shared library that have been initialized. For example, with
8990 ## GNU libc, __malloc_initialized would normally be resolved to the
8991 ## shared library's .bss section, which is fatal.
8992 if test "x$GCC" = "xyes"; then
8993 C_SWITCH_MACHINE
="-fno-common"
8995 as_fn_error
"Non-GCC compilers are not supported." "$LINENO" 5
8998 as_fn_error
"Non-ELF systems are not supported since Emacs 24.1." "$LINENO" 5
9007 ## Some programs in src produce warnings saying certain subprograms
9008 ## are too complex and need a MAXMEM value greater than 2000 for
9009 ## additional optimization. --nils@exp-math.uni-essen.de
9010 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
9011 C_SWITCH_SYSTEM
="-ma -qmaxmem=4000"
9012 test "$opsys" = "mingw32" && C_SWITCH_SYSTEM
="-mtune=pentium4"
9013 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
9014 ## It is redundant in glibc2, since we define _GNU_SOURCE.
9020 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
9021 aix4-2
) LIBS_SYSTEM
="-lrts -lIM -liconv" ;;
9023 freebsd|dragonfly
) LIBS_SYSTEM
="-lutil" ;;
9025 hpux
*) LIBS_SYSTEM
="-l:libdld.sl" ;;
9027 sol2
*) LIBS_SYSTEM
="-lsocket -lnsl" ;;
9029 ## Motif needs -lgen.
9030 unixware
) LIBS_SYSTEM
="-lsocket -lnsl -lelf -lgen" ;;
9035 ### Make sure subsequent tests use flags consistent with the build flags.
9037 if test x
"${OVERRIDE_CPPFLAGS}" != x
; then
9038 CPPFLAGS
="${OVERRIDE_CPPFLAGS}"
9040 CPPFLAGS
="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
9043 # Suppress obsolescent Autoconf test for size_t; Emacs assumes C89 or better.
9045 # Likewise for obsolescent test for uid_t, gid_t; Emacs assumes them.
9050 SYSTEM_TYPE
=`echo $opsys | sed -e 's/[0-9].*//' -e 's|-|/|'`
9057 ## Adding -lm confuses the dynamic linker, so omit it.
9060 freebsd | dragonfly
)
9061 SYSTEM_TYPE
=berkeley-unix
9063 gnu-linux | gnu-kfreebsd
)
9065 hpux10-20 | hpux11
)
9069 SYSTEM_TYPE
=windows-nt
9072 SYSTEM_TYPE
=berkeley-unix
9076 SYSTEM_TYPE
=usg-unix-v
9083 cat >>confdefs.h
<<_ACEOF
9084 #define SYSTEM_TYPE "$SYSTEM_TYPE"
9089 pre_PKG_CONFIG_CFLAGS
=$CFLAGS
9090 pre_PKG_CONFIG_LIBS
=$LIBS
9092 # Extract the first word of "pkg-config", so it can be a program name with args.
9093 set dummy pkg-config
; ac_word
=$2
9094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9095 $as_echo_n "checking for $ac_word... " >&6; }
9096 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9097 $as_echo_n "(cached) " >&6
9101 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
9104 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9108 test -z "$as_dir" && as_dir
=.
9109 for ac_exec_ext
in '' $ac_executable_extensions; do
9110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9111 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
9112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9119 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
9123 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
9124 if test -n "$PKG_CONFIG"; then
9125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9126 $as_echo "$PKG_CONFIG" >&6; }
9128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9129 $as_echo "no" >&6; }
9137 if test "${with_sound}" != "no"; then
9138 # Sound support for GNU/Linux, the free BSDs, and MinGW.
9139 for ac_header
in machine
/soundcard.h sys
/soundcard.h soundcard.h
9141 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9142 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "
9144 #define WIN32_LEAN_AND_MEAN
9145 #include <windows.h>
9149 eval as_val
=\$
$as_ac_Header
9150 if test "x$as_val" = x
""yes; then :
9151 cat >>confdefs.h
<<_ACEOF
9152 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9154 have_sound_header
=yes
9159 test "${with_sound}" = "oss" && test "${have_sound_header}" != "yes" && \
9160 as_fn_error
"OSS sound support requested but not found." "$LINENO" 5
9162 if test "${with_sound}" = "bsd-ossaudio" ||
test "${with_sound}" = "yes"; then
9163 # Emulation library used on NetBSD.
9164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
9165 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
9166 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
9167 $as_echo_n "(cached) " >&6
9169 ac_check_lib_save_LIBS
=$LIBS
9170 LIBS
="-lossaudio $LIBS"
9171 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9172 /* end confdefs.h. */
9174 /* Override any GCC internal prototype to avoid an error.
9175 Use char because int might match the return type of a GCC
9176 builtin and then its argument prototype would still apply. */
9184 return _oss_ioctl ();
9189 if ac_fn_c_try_link
"$LINENO"; then :
9190 ac_cv_lib_ossaudio__oss_ioctl
=yes
9192 ac_cv_lib_ossaudio__oss_ioctl
=no
9194 rm -f core conftest.err conftest.
$ac_objext \
9195 conftest
$ac_exeext conftest.
$ac_ext
9196 LIBS
=$ac_check_lib_save_LIBS
9198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
9199 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
9200 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x
""yes; then :
9206 test "${with_sound}" = "bsd-ossaudio" && test -z "$LIBSOUND" && \
9207 as_fn_error
"bsd-ossaudio sound support requested but not found." "$LINENO" 5
9211 if test "${with_sound}" = "alsa" ||
test "${with_sound}" = "yes"; then
9213 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
9217 if test "$PKG_CONFIG" = "no" ; then
9220 PKG_CONFIG_MIN_VERSION
=0.9.0
9221 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
9223 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
9225 if "$PKG_CONFIG" --exists "$ALSA_MODULES" 2>&5 &&
9226 ALSA_CFLAGS
=`"$PKG_CONFIG" --cflags "$ALSA_MODULES" 2>&5` &&
9227 ALSA_LIBS
=`"$PKG_CONFIG" --libs "$ALSA_MODULES" 2>&5`; then
9234 ALSA_CFLAGS
=`$as_echo "$ALSA_CFLAGS" | sed -e "$edit_cflags"`
9235 ALSA_LIBS
=`$as_echo "$ALSA_LIBS" | sed -e 's,///*,/,g'`
9236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$ALSA_CFLAGS' LIBS='$ALSA_LIBS'" >&5
9237 $as_echo "yes CFLAGS='$ALSA_CFLAGS' LIBS='$ALSA_LIBS'" >&6; }
9240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9241 $as_echo "no" >&6; }
9244 ## If we have a custom action on failure, don't print errors, but
9245 ## do set a variable so people can do so. Do it in a subshell
9246 ## to capture any diagnostics in invoking pkg-config.
9247 ALSA_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "$ALSA_MODULES") 2>&1`
9254 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9255 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9259 if test $succeeded = yes; then
9265 if test $HAVE_ALSA = yes; then
9266 SAVE_CFLAGS
="$CFLAGS"
9268 CFLAGS
="$ALSA_CFLAGS $CFLAGS"
9269 LIBS
="$ALSA_LIBS $LIBS"
9270 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9271 /* end confdefs.h. */
9272 #include <asoundlib.h>
9276 snd_lib_error_set_handler (0);
9281 if ac_fn_c_try_compile
"$LINENO"; then :
9282 emacs_alsa_normal
=yes
9284 emacs_alsa_normal
=no
9286 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9287 if test "$emacs_alsa_normal" != yes; then
9288 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9289 /* end confdefs.h. */
9290 #include <alsa/asoundlib.h>
9294 snd_lib_error_set_handler (0);
9299 if ac_fn_c_try_compile
"$LINENO"; then :
9300 emacs_alsa_subdir
=yes
9302 emacs_alsa_subdir
=no
9304 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9305 if test "$emacs_alsa_subdir" != yes; then
9306 as_fn_error
"pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
9308 ALSA_CFLAGS
="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
9311 CFLAGS
="$SAVE_CFLAGS"
9313 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
9314 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
9316 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
9318 elif test "${with_sound}" = "alsa"; then
9319 as_fn_error
"ALSA sound support requested but not found." "$LINENO" 5
9322 if test x
$have_sound_header = xyes ||
test $HAVE_ALSA = yes; then
9324 gnu-linux|freebsd|netbsd|mingw32
)
9326 $as_echo "#define HAVE_SOUND 1" >>confdefs.h
9339 for ac_header
in $ac_header_list
9341 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9342 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9344 eval as_val
=\$
$as_ac_Header
9345 if test "x$as_val" = x
""yes; then :
9346 cat >>confdefs.h
<<_ACEOF
9347 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
9373 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
9374 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9375 /* end confdefs.h. */
9376 #include <sys/personality.h>
9380 personality (PER_LINUX32)
9385 if ac_fn_c_try_compile
"$LINENO"; then :
9386 emacs_cv_personality_linux32
=yes
9388 emacs_cv_personality_linux32
=no
9390 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
9392 $as_echo "$emacs_cv_personality_linux32" >&6; }
9394 if test $emacs_cv_personality_linux32 = yes; then
9396 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
9400 for ac_header
in term.h
9402 ac_fn_c_check_header_preproc
"$LINENO" "term.h" "ac_cv_header_term_h"
9403 if test "x$ac_cv_header_term_h" = x
""yes; then :
9404 cat >>confdefs.h
<<_ACEOF
9405 #define HAVE_TERM_H 1
9412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
9413 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
9414 if test "${ac_cv_header_time+set}" = set; then :
9415 $as_echo_n "(cached) " >&6
9417 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9418 /* end confdefs.h. */
9419 #include <sys/types.h>
9420 #include <sys/time.h>
9426 if ((struct tm *) 0)
9432 if ac_fn_c_try_compile
"$LINENO"; then :
9433 ac_cv_header_time
=yes
9435 ac_cv_header_time
=no
9437 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
9440 $as_echo "$ac_cv_header_time" >&6; }
9441 if test $ac_cv_header_time = yes; then
9443 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
9447 ac_fn_c_check_decl
"$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "#include <signal.h>
9450 if test "x$ac_cv_have_decl_sys_siglist" = x
""yes; then :
9456 cat >>confdefs.h
<<_ACEOF
9457 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
9460 if test $ac_cv_have_decl_sys_siglist != yes; then
9461 # For Tru64, at least:
9462 ac_fn_c_check_decl
"$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "#include <signal.h>
9465 if test "x$ac_cv_have_decl___sys_siglist" = x
""yes; then :
9471 cat >>confdefs.h
<<_ACEOF
9472 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
9476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
9477 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
9478 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
9479 $as_echo_n "(cached) " >&6
9481 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9482 /* end confdefs.h. */
9483 #include <sys/types.h>
9484 #include <sys/wait.h>
9486 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
9489 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9497 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9502 if ac_fn_c_try_compile
"$LINENO"; then :
9503 ac_cv_header_sys_wait_h
=yes
9505 ac_cv_header_sys_wait_h
=no
9507 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
9510 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
9511 if test $ac_cv_header_sys_wait_h = yes; then
9513 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
9521 for ac_header
in net
/if.h
9523 ac_fn_c_check_header_compile
"$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
9524 #if HAVE_SYS_SOCKET_H
9525 #include <sys/socket.h>
9528 if test "x$ac_cv_header_net_if_h" = x
""yes; then :
9529 cat >>confdefs.h
<<_ACEOF
9530 #define HAVE_NET_IF_H 1
9537 for ac_header
in ifaddrs.h
9539 ac_fn_c_check_header_compile
"$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default
9540 #if HAVE_SYS_SOCKET_H
9541 #include <sys/socket.h>
9544 if test "x$ac_cv_header_ifaddrs_h" = x
""yes; then :
9545 cat >>confdefs.h
<<_ACEOF
9546 #define HAVE_IFADDRS_H 1
9553 for ac_header
in net
/if_dl.h
9555 ac_fn_c_check_header_compile
"$LINENO" "net/if_dl.h" "ac_cv_header_net_if_dl_h" "$ac_includes_default
9556 #if HAVE_SYS_SOCKET_H
9557 #include <sys/socket.h>
9560 if test "x$ac_cv_header_net_if_dl_h" = x
""yes; then :
9561 cat >>confdefs.h
<<_ACEOF
9562 #define HAVE_NET_IF_DL_H 1
9570 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
9571 #if HAVE_SYS_SOCKET_H
9572 #include <sys/socket.h>
9578 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x
""yes; then :
9580 cat >>confdefs.h
<<_ACEOF
9581 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
9586 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
9587 #if HAVE_SYS_SOCKET_H
9588 #include <sys/socket.h>
9594 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x
""yes; then :
9596 cat >>confdefs.h
<<_ACEOF
9597 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
9602 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
9603 #if HAVE_SYS_SOCKET_H
9604 #include <sys/socket.h>
9610 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x
""yes; then :
9612 cat >>confdefs.h
<<_ACEOF
9613 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
9618 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
9619 #if HAVE_SYS_SOCKET_H
9620 #include <sys/socket.h>
9626 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x
""yes; then :
9628 cat >>confdefs.h
<<_ACEOF
9629 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
9634 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
9635 #if HAVE_SYS_SOCKET_H
9636 #include <sys/socket.h>
9642 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x
""yes; then :
9644 cat >>confdefs.h
<<_ACEOF
9645 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
9650 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_addr.sa_len" "ac_cv_member_struct_ifreq_ifr_addr_sa_len" "$ac_includes_default
9651 #if HAVE_SYS_SOCKET_H
9652 #include <sys/socket.h>
9658 if test "x$ac_cv_member_struct_ifreq_ifr_addr_sa_len" = x
""yes; then :
9660 cat >>confdefs.h
<<_ACEOF
9661 #define HAVE_STRUCT_IFREQ_IFR_ADDR_SA_LEN 1
9673 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
9674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
9675 $as_echo_n "checking whether we are using GNU Make... " >&6; }
9677 testval
=`${MAKE-make} --version 2>/dev/null | grep 'GNU Make'`
9678 if test "x$testval" != x
; then
9681 ac_enable_autodepend
=no
9683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
9684 $as_echo "$HAVE_GNU_MAKE" >&6; }
9685 if test $HAVE_GNU_MAKE = yes; then
9686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
9687 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
9688 SAVE_CFLAGS
="$CFLAGS"
9689 CFLAGS
="$CFLAGS -MMD -MF deps.d -MP"
9690 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9691 /* end confdefs.h. */
9701 if ac_fn_c_try_compile
"$LINENO"; then :
9704 ac_enable_autodepend
=no
9706 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9707 CFLAGS
="$SAVE_CFLAGS"
9708 test -f deps.d || ac_enable_autodepend
=no
9710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
9711 $as_echo "$ac_enable_autodepend" >&6; }
9713 if test $ac_enable_autodepend = yes; then
9714 DEPFLAGS
='-MMD -MF ${DEPDIR}/$*.d -MP'
9715 ## MKDIR_P is documented (see AC_PROG_MKDIR_P) to be parallel-safe.
9716 MKDEPDIR
='${MKDIR_P} ${DEPDIR}'
9717 deps_frag
=autodeps.mk
9720 deps_frag
=$srcdir/src
/$deps_frag
9726 lisp_frag
=$srcdir/src
/lisp.mk
9730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
9731 $as_echo_n "checking for long file names... " >&6; }
9732 if test "${ac_cv_sys_long_file_names+set}" = set; then :
9733 $as_echo_n "(cached) " >&6
9735 ac_cv_sys_long_file_names
=yes
9736 # Test for long file names in all the places we know might matter:
9737 # . the current directory, where building will happen
9738 # $prefix/lib where we will be installing things
9739 # $exec_prefix/lib likewise
9740 # $TMPDIR if set, where it might want to write temporary files
9741 # /tmp where it might want to write temporary files
9744 for ac_dir
in .
"$TMPDIR" /tmp
/var
/tmp
/usr
/tmp
"$prefix/lib" "$exec_prefix/lib"; do
9745 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9746 # in the usual case where exec_prefix is '${prefix}'.
9748 . |
/* | ?
:[\\/]*) ;; #(
9751 test -w "$ac_dir/." ||
continue # It is less confusing to not echo anything here.
9752 ac_xdir
=$ac_dir/cf$$
9753 (umask 077 && mkdir
"$ac_xdir" 2>/dev
/null
) ||
continue
9754 ac_tf1
=$ac_xdir/conftest9012345
9755 ac_tf2
=$ac_xdir/conftest9012346
9756 touch "$ac_tf1" 2>/dev
/null
&& test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9757 ac_cv_sys_long_file_names
=no
9758 rm -f -r "$ac_xdir" 2>/dev
/null
9759 test $ac_cv_sys_long_file_names = no
&& break
9762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
9763 $as_echo "$ac_cv_sys_long_file_names" >&6; }
9764 if test $ac_cv_sys_long_file_names = yes; then
9766 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
9771 #### Choose a window system.
9773 ## We leave window_system equal to none if
9774 ## we end up building without one. Any new window system should
9775 ## set window_system to an appropriate value and add objects to
9776 ## window-system-specific substs.
9779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
9780 $as_echo_n "checking for X... " >&6; }
9783 # Check whether --with-x was given.
9784 if test "${with_x+set}" = set; then :
9788 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9789 if test "x$with_x" = xno
; then
9790 # The user explicitly disabled X.
9793 case $x_includes,$x_libraries in #(
9794 *\'*) as_fn_error
"cannot use X directory names containing '" "$LINENO" 5;; #(
9795 *,NONE | NONE
,*) if test "${ac_cv_have_x+set}" = set; then :
9796 $as_echo_n "(cached) " >&6
9798 # One or both of the vars are not set, and there is no cached value.
9799 ac_x_includes
=no ac_x_libraries
=no
9800 rm -f -r conftest.dir
9801 if mkdir conftest.dir
; then
9803 cat >Imakefile
<<'_ACEOF'
9805 @echo incroot='${INCROOT}'
9807 @echo usrlibdir='${USRLIBDIR}'
9809 @echo libdir='${LIBDIR}'
9811 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
9812 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9813 for ac_var
in incroot usrlibdir libdir
; do
9814 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9816 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9817 for ac_extension
in a so sl dylib la dll
; do
9818 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9819 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9820 ac_im_usrlibdir
=$ac_im_libdir; break
9823 # Screen out bogus values from the imake configuration. They are
9824 # bogus both because they are the default anyway, and because
9825 # using them would break gcc on systems where it needs fixed includes.
9826 case $ac_im_incroot in
9827 /usr
/include
) ac_x_includes
= ;;
9828 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
9830 case $ac_im_usrlibdir in
9831 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
9832 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
9836 rm -f -r conftest.dir
9839 # Standard set of common directories for X headers.
9840 # Check X11 before X11Rn because it is often a symlink to the current release.
9854 /usr/local/X11/include
9855 /usr/local/X11R7/include
9856 /usr/local/X11R6/include
9857 /usr/local/X11R5/include
9858 /usr/local/X11R4/include
9860 /usr/local/include/X11
9861 /usr/local/include/X11R7
9862 /usr/local/include/X11R6
9863 /usr/local/include/X11R5
9864 /usr/local/include/X11R4
9868 /usr/XFree86/include/X11
9872 /usr/unsupported/include
9874 /usr/local/x11r5/include
9875 /usr/lpp/Xamples/include
9877 /usr/openwin/include
9878 /usr/openwin/share/include'
9880 if test "$ac_x_includes" = no
; then
9881 # Guess where to find include files, by looking for Xlib.h.
9882 # First, try using that file with no special directory specified.
9883 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9884 /* end confdefs.h. */
9885 #include <X11/Xlib.h>
9887 if ac_fn_c_try_cpp
"$LINENO"; then :
9888 # We can compile using X headers with no special include directory.
9891 for ac_dir
in $ac_x_header_dirs; do
9892 if test -r "$ac_dir/X11/Xlib.h"; then
9893 ac_x_includes
=$ac_dir
9898 rm -f conftest.err conftest.
$ac_ext
9899 fi # $ac_x_includes = no
9901 if test "$ac_x_libraries" = no
; then
9902 # Check for the libraries.
9903 # See if we find them without any special options.
9904 # Don't add to $LIBS permanently.
9907 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9908 /* end confdefs.h. */
9909 #include <X11/Xlib.h>
9918 if ac_fn_c_try_link
"$LINENO"; then :
9920 # We can link X programs with no special library path.
9924 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9926 # Don't even attempt the hair of trying to link an X program!
9927 for ac_extension
in a so sl dylib la dll
; do
9928 if test -r "$ac_dir/libX11.$ac_extension"; then
9929 ac_x_libraries
=$ac_dir
9935 rm -f core conftest.err conftest.
$ac_objext \
9936 conftest
$ac_exeext conftest.
$ac_ext
9937 fi # $ac_x_libraries = no
9939 case $ac_x_includes,$ac_x_libraries in #(
9941 # Didn't find X, or a directory has "'" in its name.
9942 ac_cv_have_x
="have_x=no";; #(
9944 # Record where we found X for the cache.
9945 ac_cv_have_x
="have_x=yes\
9946 ac_x_includes='$ac_x_includes'\
9947 ac_x_libraries='$ac_x_libraries'"
9953 eval "$ac_cv_have_x"
9956 if test "$have_x" != yes; then
9957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
9958 $as_echo "$have_x" >&6; }
9961 # If each of the values was on the command line, it overrides each guess.
9962 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
9963 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
9964 # Update the cache value to reflect the command line values.
9965 ac_cv_have_x
="have_x=yes\
9966 ac_x_includes='$x_includes'\
9967 ac_x_libraries='$x_libraries'"
9968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
9969 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
9972 if test "$no_x" != yes; then
9976 LD_SWITCH_X_SITE_RPATH
=
9977 if test "${x_libraries}" != NONE
; then
9978 if test -n "${x_libraries}"; then
9979 LD_SWITCH_X_SITE
=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9980 LD_SWITCH_X_SITE_RPATH
=-Wl,-rpath,`echo ${x_libraries} | sed -e "s/:/ -Wl,-rpath,/g"`
9982 x_default_search_path
=""
9983 x_search_path
=${x_libraries}
9984 if test -z "${x_search_path}"; then
9985 x_search_path
=/usr
/lib
9987 for x_library
in `echo ${x_search_path}: | \
9988 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9990 ${x_library}/X11/%L/%T/%N%C%S:\
9991 ${x_library}/X11/%l/%T/%N%C%S:\
9992 ${x_library}/X11/%T/%N%C%S:\
9993 ${x_library}/X11/%L/%T/%N%S:\
9994 ${x_library}/X11/%l/%T/%N%S:\
9995 ${x_library}/X11/%T/%N%S"
9996 if test x
"${x_default_search_path}" = x
; then
9997 x_default_search_path
=${x_search_path}
9999 x_default_search_path
="${x_search_path}:${x_default_search_path}"
10005 if test "${x_includes}" != NONE
&& test -n "${x_includes}"; then
10006 C_SWITCH_X_SITE
="$isystem"`echo ${x_includes} | sed -e "s/:/ $isystem/g"`
10009 if test x
"${x_includes}" = x
; then
10010 bitmapdir
=/usr
/include
/X11
/bitmaps
10012 # accumulate include directories that have X11 bitmap subdirectories
10014 for bmd
in `echo ${x_includes} | sed -e "s/:/ /g"`; do
10015 if test -d "${bmd}/X11/bitmaps"; then
10016 bmd_acc
="${bmd_acc}:${bmd}/X11/bitmaps"
10018 if test -d "${bmd}/bitmaps"; then
10019 bmd_acc
="${bmd_acc}:${bmd}/bitmaps"
10022 if test ${bmd_acc} != "dummyval"; then
10023 bitmapdir
=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
10030 tmp_CPPFLAGS
="$CPPFLAGS"
10031 tmp_CFLAGS
="$CFLAGS"
10032 CPPFLAGS
="$CPPFLAGS -x objective-c"
10033 CFLAGS
="$CFLAGS -x objective-c"
10036 if test "${with_ns}" != no
; then
10037 if test "${opsys}" = darwin
; then
10039 ns_appdir
=`pwd`/nextstep
/Emacs.app
10040 ns_appbindir
=${ns_appdir}/Contents
/MacOS
10041 ns_appresdir
=${ns_appdir}/Contents
/Resources
10042 ns_appsrc
=Cocoa
/Emacs.base
10043 elif test -f $GNUSTEP_CONFIG_FILE; then
10044 NS_IMPL_GNUSTEP
=yes
10045 ns_appdir
=`pwd`/nextstep
/Emacs.app
10046 ns_appbindir
=${ns_appdir}
10047 ns_appresdir
=${ns_appdir}/Resources
10048 ns_appsrc
=GNUstep
/Emacs.base
10049 GNUSTEP_SYSTEM_HEADERS
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
10050 GNUSTEP_SYSTEM_LIBRARIES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
10051 GNUSTEP_LOCAL_HEADERS
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
10052 GNUSTEP_LOCAL_LIBRARIES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
10053 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
10054 GNUSTEP_LOCAL_HEADERS
="-I${GNUSTEP_LOCAL_HEADERS}"
10055 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
10056 GNUSTEP_LOCAL_LIBRARIES
="-L${GNUSTEP_LOCAL_LIBRARIES}"
10057 CPPFLAGS
="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
10058 CFLAGS
="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
10059 LDFLAGS
="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
10060 LIBS_GNUSTEP
="-lgnustep-gui -lgnustep-base -lobjc -lpthread"
10061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS" >&5
10062 $as_echo_n "checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS... " >&6; }
10063 if test "${emacs_cv_objc_exceptions+set}" = set; then :
10064 $as_echo_n "(cached) " >&6
10066 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10067 /* end confdefs.h. */
10068 #include <GNUstepBase/GSConfig.h>
10072 #if defined BASE_NATIVE_OBJC_EXCEPTIONS && BASE_NATIVE_OBJC_EXCEPTIONS > 0
10081 if ac_fn_c_try_compile
"$LINENO"; then :
10082 emacs_cv_objc_exceptions
=yes
10084 emacs_cv_objc_exceptions
=no
10086 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_objc_exceptions" >&5
10089 $as_echo "$emacs_cv_objc_exceptions" >&6; }
10090 if test $emacs_cv_objc_exceptions = yes; then
10092 $as_echo "#define _NATIVE_OBJC_EXCEPTIONS 1" >>confdefs.h
10094 GNU_OBJC_CFLAGS
="-fobjc-exceptions"
10098 CFLAGS
="$CFLAGS $GNU_OBJC_CFLAGS"
10100 ac_fn_c_check_header_mongrel
"$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
10101 if test "x$ac_cv_header_AppKit_AppKit_h" = x
""yes; then :
10104 as_fn_error
"\`--with-ns' was specified, but the include
10105 files are missing or cannot be compiled." "$LINENO" 5
10111 if test "${NS_IMPL_COCOA}" = "yes"; then
10112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OSX 10.4 or newer" >&5
10113 $as_echo_n "checking for OSX 10.4 or newer... " >&6; }
10114 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10115 /* end confdefs.h. */
10116 #include <AppKit/AppKit.h>
10121 #ifdef MAC_OS_X_VERSION_MAX_ALLOWED
10122 #if MAC_OS_X_VERSION_MAX_ALLOWED >= 1040
10125 #error "OSX 10.4 or newer required"
10133 if ac_fn_c_try_compile
"$LINENO"; then :
10134 ns_osx_have_104
=yes
10138 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ns_osx_have_104" >&5
10140 $as_echo "$ns_osx_have_104" >&6; }
10142 if test $ns_osx_have_104 = no
; then
10143 as_fn_error
"\`OSX 10.4 or newer is required'" "$LINENO" 5;
10145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OSX 10.5 or newer" >&5
10146 $as_echo_n "checking for OSX 10.5 or newer... " >&6; }
10147 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10148 /* end confdefs.h. */
10149 #include <AppKit/AppKit.h>
10154 #ifdef MAC_OS_X_VERSION_MAX_ALLOWED
10155 #if MAC_OS_X_VERSION_MAX_ALLOWED >= 1050
10158 #error "OSX 10.5 not found"
10166 if ac_fn_c_try_compile
"$LINENO"; then :
10167 ns_osx_have_105
=yes
10171 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ns_osx_have_105" >&5
10173 $as_echo "$ns_osx_have_105" >&6; }
10174 if test $ns_osx_have_105 = yes; then
10175 macfont_file
="macfont.o"
10178 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10179 /* end confdefs.h. */
10180 #include <Foundation/NSObjCRuntime.h>
10189 if ac_fn_c_try_compile
"$LINENO"; then :
10190 ns_have_nsinteger
=yes
10192 ns_have_nsinteger
=no
10194 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10195 if test $ns_have_nsinteger = yes; then
10197 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
10204 INSTALL_ARCH_INDEP_EXTRA
=install-etc
10205 ns_self_contained
=no
10208 if test "${HAVE_NS}" = yes; then
10209 if test "$with_toolkit_scroll_bars" = "no"; then
10210 as_fn_error
"Non-toolkit scroll bars are not implemented for Nextstep." "$LINENO" 5
10213 window_system
=nextstep
10214 # set up packaging dirs
10215 if test "${EN_NS_SELF_CONTAINED}" = yes; then
10216 ns_self_contained
=yes
10217 prefix
=${ns_appresdir}
10218 exec_prefix
=${ns_appbindir}
10219 libexecdir
="\${ns_appbindir}/libexec"
10220 archlibdir
="\${ns_appbindir}/libexec"
10221 etcdocdir
="\${ns_appresdir}/etc"
10222 etcdir
="\${ns_appresdir}/etc"
10223 infodir
="\${ns_appresdir}/info"
10224 mandir
="\${ns_appresdir}/man"
10225 lispdir
="\${ns_appresdir}/lisp"
10226 leimdir
="\${ns_appresdir}/leim"
10227 INSTALL_ARCH_INDEP_EXTRA
=
10230 NS_OBJC_OBJ
="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o $macfont_file"
10232 CFLAGS
="$tmp_CFLAGS"
10233 CPPFLAGS
="$tmp_CPPFLAGS"
10248 if test "${with_w32}" != no
; then
10251 ac_fn_c_check_header_mongrel
"$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
10252 if test "x$ac_cv_header_windows_h" = x
""yes; then :
10255 as_fn_error
"\`--with-w32' was specified, but windows.h
10256 cannot be found." "$LINENO" 5
10262 ## Using --with-w32 with MinGW is a no-op, but we allow it.
10265 as_fn_error
"Using w32 with an autotools build is only supported for Cygwin and MinGW32." "$LINENO" 5
10270 if test "${opsys}" = "mingw32"; then
10271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Windows API headers are recent enough" >&5
10272 $as_echo_n "checking whether Windows API headers are recent enough... " >&6; }
10273 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10274 /* end confdefs.h. */
10276 #include <windows.h>
10281 PIMAGE_NT_HEADERS pHeader;
10282 PIMAGE_SECTION_HEADER pSection = IMAGE_FIRST_SECTION(pHeader)
10287 if ac_fn_c_try_compile
"$LINENO"; then :
10288 emacs_cv_w32api
=yes
10293 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_w32api" >&5
10295 $as_echo "$emacs_cv_w32api" >&6; }
10296 if test "${emacs_cv_w32api}" = "no"; then
10297 as_fn_error
"the Windows API headers are too old to support this build." "$LINENO" 5
10308 if test "${HAVE_W32}" = "yes"; then
10310 $as_echo "#define HAVE_NTGUI 1" >>confdefs.h
10312 if test -n "$ac_tool_prefix"; then
10313 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
10314 set dummy
${ac_tool_prefix}windres
; ac_word
=$2
10315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10316 $as_echo_n "checking for $ac_word... " >&6; }
10317 if test "${ac_cv_prog_WINDRES+set}" = set; then :
10318 $as_echo_n "(cached) " >&6
10320 if test -n "$WINDRES"; then
10321 ac_cv_prog_WINDRES
="$WINDRES" # Let the user override the test.
10323 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10324 for as_dir
in $PATH
10327 test -z "$as_dir" && as_dir
=.
10328 for ac_exec_ext
in '' $ac_executable_extensions; do
10329 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10330 ac_cv_prog_WINDRES
="${ac_tool_prefix}windres"
10331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10340 WINDRES
=$ac_cv_prog_WINDRES
10341 if test -n "$WINDRES"; then
10342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
10343 $as_echo "$WINDRES" >&6; }
10345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10346 $as_echo "no" >&6; }
10351 if test -z "$ac_cv_prog_WINDRES"; then
10352 ac_ct_WINDRES
=$WINDRES
10353 # Extract the first word of "windres", so it can be a program name with args.
10354 set dummy windres
; ac_word
=$2
10355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10356 $as_echo_n "checking for $ac_word... " >&6; }
10357 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then :
10358 $as_echo_n "(cached) " >&6
10360 if test -n "$ac_ct_WINDRES"; then
10361 ac_cv_prog_ac_ct_WINDRES
="$ac_ct_WINDRES" # Let the user override the test.
10363 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10364 for as_dir
in $PATH
10367 test -z "$as_dir" && as_dir
=.
10368 for ac_exec_ext
in '' $ac_executable_extensions; do
10369 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10370 ac_cv_prog_ac_ct_WINDRES
="windres"
10371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10380 ac_ct_WINDRES
=$ac_cv_prog_ac_ct_WINDRES
10381 if test -n "$ac_ct_WINDRES"; then
10382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
10383 $as_echo "$ac_ct_WINDRES" >&6; }
10385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10386 $as_echo "no" >&6; }
10389 if test "x$ac_ct_WINDRES" = x
; then
10390 WINDRES
="as_fn_error "No resource compiler found.
" "$LINENO" 5"
10392 case $cross_compiling:$ac_tool_warned in
10394 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10395 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10396 ac_tool_warned
=yes ;;
10398 WINDRES
=$ac_ct_WINDRES
10401 WINDRES
="$ac_cv_prog_WINDRES"
10404 W32_OBJ
="w32fns.o w32menu.o w32reg.o w32font.o w32term.o"
10405 W32_OBJ
="$W32_OBJ w32xfns.o w32select.o w32uniscribe.o"
10406 EMACSRES
="emacs.res"
10407 case "$canonical" in
10408 x86_64-
*-*) EMACS_MANIFEST
="emacs-x64.manifest" ;;
10409 *) EMACS_MANIFEST
="emacs-x86.manifest" ;;
10411 UPDATE_MANIFEST
=update-game-score.exe.manifest
10412 if test "${opsys}" = "cygwin"; then
10413 W32_LIBS
="$W32_LIBS -lkernel32 -luser32 -lgdi32 -lole32 -lcomdlg32"
10414 W32_LIBS
="$W32_LIBS -lusp10 -lcomctl32 -lwinspool"
10415 # Tell the linker that emacs.res is an object (which we compile from
10416 # the rc file), not a linker script.
10417 W32_RES_LINK
="-Wl,emacs.res"
10419 W32_OBJ
="$W32_OBJ w32.o w32console.o w32heap.o w32inevt.o w32proc.o"
10420 W32_LIBS
="$W32_LIBS -lwinmm -lgdi32 -lcomdlg32"
10421 W32_LIBS
="$W32_LIBS -lmpr -lwinspool -lole32 -lcomctl32 -lusp10"
10422 W32_RES_LINK
="\$(EMACSRES)"
10423 CLIENTRES
="emacsclient.res"
10424 CLIENTW
="emacsclientw\$(EXEEXT)"
10425 FIRSTFILE_OBJ
=firstfile.o
10428 LIBS_ECLIENT
="-lcomctl32"
10429 LIB_WSOCK32
="-lwsock32"
10430 NTLIB
="ntlib.$ac_objext"
10431 XARGS_LIMIT
="-s 10000"
10450 if test "${HAVE_W32}" = "yes"; then
10455 ## $window_system is now set to the window system we will
10458 if test "$window_system" = none
&& test "$gl_gcc_warnings" = yes; then
10459 # Too many warnings for now.
10461 nw
="$nw -Wsuggest-attribute=const"
10462 nw
="$nw -Wsuggest-attribute=noreturn"
10465 set x
$WARN_CFLAGS; shift
10469 *" $gl_warn_item "*)
10472 gl_warn_set
="$gl_warn_set $gl_warn_item"
10476 WARN_CFLAGS
=$gl_warn_set
10480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-unused-variable" >&5
10481 $as_echo_n "checking whether C compiler handles -Wno-unused-variable... " >&6; }
10482 if test "${gl_cv_warn_c__Wno_unused_variable+set}" = set; then :
10483 $as_echo_n "(cached) " >&6
10486 gl_save_compiler_FLAGS
="$CFLAGS"
10487 as_fn_append CFLAGS
" $gl_unknown_warnings_are_errors -Wunused-variable"
10488 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10489 /* end confdefs.h. */
10499 if ac_fn_c_try_link
"$LINENO"; then :
10500 gl_cv_warn_c__Wno_unused_variable
=yes
10502 gl_cv_warn_c__Wno_unused_variable
=no
10504 rm -f core conftest.err conftest.
$ac_objext \
10505 conftest
$ac_exeext conftest.
$ac_ext
10506 CFLAGS
="$gl_save_compiler_FLAGS"
10509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_unused_variable" >&5
10510 $as_echo "$gl_cv_warn_c__Wno_unused_variable" >&6; }
10511 if test "x$gl_cv_warn_c__Wno_unused_variable" = x
""yes; then :
10512 as_fn_append WARN_CFLAGS
" -Wno-unused-variable"
10517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-unused-but-set-variable" >&5
10518 $as_echo_n "checking whether C compiler handles -Wno-unused-but-set-variable... " >&6; }
10519 if test "${gl_cv_warn_c__Wno_unused_but_set_variable+set}" = set; then :
10520 $as_echo_n "(cached) " >&6
10523 gl_save_compiler_FLAGS
="$CFLAGS"
10524 as_fn_append CFLAGS
" $gl_unknown_warnings_are_errors -Wunused-but-set-variable"
10525 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10526 /* end confdefs.h. */
10536 if ac_fn_c_try_link
"$LINENO"; then :
10537 gl_cv_warn_c__Wno_unused_but_set_variable
=yes
10539 gl_cv_warn_c__Wno_unused_but_set_variable
=no
10541 rm -f core conftest.err conftest.
$ac_objext \
10542 conftest
$ac_exeext conftest.
$ac_ext
10543 CFLAGS
="$gl_save_compiler_FLAGS"
10546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_unused_but_set_variable" >&5
10547 $as_echo "$gl_cv_warn_c__Wno_unused_but_set_variable" >&6; }
10548 if test "x$gl_cv_warn_c__Wno_unused_but_set_variable" = x
""yes; then :
10549 as_fn_append WARN_CFLAGS
" -Wno-unused-but-set-variable"
10554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-unused-but-set-parameter" >&5
10555 $as_echo_n "checking whether C compiler handles -Wno-unused-but-set-parameter... " >&6; }
10556 if test "${gl_cv_warn_c__Wno_unused_but_set_parameter+set}" = set; then :
10557 $as_echo_n "(cached) " >&6
10560 gl_save_compiler_FLAGS
="$CFLAGS"
10561 as_fn_append CFLAGS
" $gl_unknown_warnings_are_errors -Wunused-but-set-parameter"
10562 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10563 /* end confdefs.h. */
10573 if ac_fn_c_try_link
"$LINENO"; then :
10574 gl_cv_warn_c__Wno_unused_but_set_parameter
=yes
10576 gl_cv_warn_c__Wno_unused_but_set_parameter
=no
10578 rm -f core conftest.err conftest.
$ac_objext \
10579 conftest
$ac_exeext conftest.
$ac_ext
10580 CFLAGS
="$gl_save_compiler_FLAGS"
10583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_unused_but_set_parameter" >&5
10584 $as_echo "$gl_cv_warn_c__Wno_unused_but_set_parameter" >&6; }
10585 if test "x$gl_cv_warn_c__Wno_unused_but_set_parameter" = x
""yes; then :
10586 as_fn_append WARN_CFLAGS
" -Wno-unused-but-set-parameter"
10597 case "${window_system}" in
10601 term_header
=xterm.h
10602 case "${with_x_toolkit}" in
10603 athena | lucid
) USE_X_TOOLKIT
=LUCID
;;
10604 motif
) USE_X_TOOLKIT
=MOTIF
;;
10606 term_header
=gtkutil.h
10607 USE_X_TOOLKIT
=none
;;
10608 gtk2
) with_gtk2
=yes
10609 term_header
=gtkutil.h
10610 USE_X_TOOLKIT
=none
;;
10611 gtk3
) with_gtk3
=yes
10612 term_header
=gtkutil.h
10613 USE_X_TOOLKIT
=none
;;
10614 no
) USE_X_TOOLKIT
=none
;;
10615 * ) USE_X_TOOLKIT
=maybe
;;
10619 term_header
=nsterm.h
10622 term_header
=w32term.h
10626 if test "$window_system" = none
&& test "X$with_x" != "Xno"; then
10627 # Extract the first word of "X", so it can be a program name with args.
10628 set dummy X
; ac_word
=$2
10629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10630 $as_echo_n "checking for $ac_word... " >&6; }
10631 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then :
10632 $as_echo_n "(cached) " >&6
10634 if test -n "$HAVE_XSERVER"; then
10635 ac_cv_prog_HAVE_XSERVER
="$HAVE_XSERVER" # Let the user override the test.
10637 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10638 for as_dir
in $PATH
10641 test -z "$as_dir" && as_dir
=.
10642 for ac_exec_ext
in '' $ac_executable_extensions; do
10643 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10644 ac_cv_prog_HAVE_XSERVER
="true"
10645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10652 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER
="false"
10655 HAVE_XSERVER
=$ac_cv_prog_HAVE_XSERVER
10656 if test -n "$HAVE_XSERVER"; then
10657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
10658 $as_echo "$HAVE_XSERVER" >&6; }
10660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10661 $as_echo "no" >&6; }
10665 if test "$HAVE_XSERVER" = true ||
10666 test -n "$DISPLAY" ||
10667 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
10668 as_fn_error
"You seem to be running X, but no X development libraries
10669 were found. You should install the relevant development files for X
10670 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
10671 sure you have development files for image handling, i.e.
10672 tiff, gif, jpeg, png and xpm.
10673 If you are sure you want Emacs compiled without X window support, pass
10675 to configure." "$LINENO" 5
10679 ### We always support menus.
10682 # Does the opsystem file prohibit the use of the GNU malloc?
10683 # Assume not, until told otherwise.
10686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc is Doug Lea style" >&5
10687 $as_echo_n "checking whether malloc is Doug Lea style... " >&6; }
10688 if test "${emacs_cv_var_doug_lea_malloc+set}" = set; then :
10689 $as_echo_n "(cached) " >&6
10691 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10692 /* end confdefs.h. */
10693 #include <malloc.h>
10694 static void hook (void) {}
10698 malloc_set_state (malloc_get_state ());
10699 __after_morecore_hook = hook;
10700 __malloc_initialize_hook = hook;
10705 if ac_fn_c_try_link
"$LINENO"; then :
10706 emacs_cv_var_doug_lea_malloc
=yes
10708 emacs_cv_var_doug_lea_malloc
=no
10710 rm -f core conftest.err conftest.
$ac_objext \
10711 conftest
$ac_exeext conftest.
$ac_ext
10713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var_doug_lea_malloc" >&5
10714 $as_echo "$emacs_cv_var_doug_lea_malloc" >&6; }
10715 doug_lea_malloc
=$emacs_cv_var_doug_lea_malloc
10720 ## darwin ld insists on the use of malloc routines in the System framework.
10721 darwin|sol2-10
) system_malloc
=yes ;;
10724 if test "${system_malloc}" = "yes"; then
10726 $as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
10729 GNU_MALLOC_reason
="
10730 (The GNU allocators don't work with this system configuration.)"
10734 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ
=gmalloc.o
10735 VMLIMIT_OBJ
=vm-limit.o
10737 for ac_header
in sys
/vlimit.h
10739 ac_fn_c_check_header_mongrel
"$LINENO" "sys/vlimit.h" "ac_cv_header_sys_vlimit_h" "$ac_includes_default"
10740 if test "x$ac_cv_header_sys_vlimit_h" = x
""yes; then :
10741 cat >>confdefs.h
<<_ACEOF
10742 #define HAVE_SYS_VLIMIT_H 1
10749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for data_start" >&5
10750 $as_echo_n "checking for data_start... " >&6; }
10751 if test "${emacs_cv_data_start+set}" = set; then :
10752 $as_echo_n "(cached) " >&6
10754 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10755 /* end confdefs.h. */
10756 extern char data_start[]; char ch;
10760 return data_start < &ch;
10765 if ac_fn_c_try_link
"$LINENO"; then :
10766 emacs_cv_data_start
=yes
10768 emacs_cv_data_start
=no
10770 rm -f core conftest.err conftest.
$ac_objext \
10771 conftest
$ac_exeext conftest.
$ac_ext
10773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_data_start" >&5
10774 $as_echo "$emacs_cv_data_start" >&6; }
10775 if test $emacs_cv_data_start = yes; then
10777 $as_echo "#define HAVE_DATA_START 1" >>confdefs.h
10784 if test "$doug_lea_malloc" = "yes" ; then
10785 if test "$GNU_MALLOC" = yes ; then
10786 GNU_MALLOC_reason
="
10787 (Using Doug Lea's new malloc from the GNU C Library.)"
10790 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
10793 ## Use mmap directly for allocating larger buffers.
10794 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
10795 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
10796 ## Does the AC_FUNC_MMAP test below make this check unnecessary?
10798 gnu
*) REL_ALLOC
=no
;;
10802 if test x
"${REL_ALLOC}" = x
; then
10803 REL_ALLOC
=${GNU_MALLOC}
10806 use_mmap_for_buffers
=no
10808 cygwin|freebsd|irix6-5
) use_mmap_for_buffers
=yes ;;
10818 for ac_func
in getpagesize
10820 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
10821 if test "x$ac_cv_func_getpagesize" = x
""yes; then :
10822 cat >>confdefs.h
<<_ACEOF
10823 #define HAVE_GETPAGESIZE 1
10829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
10830 $as_echo_n "checking for working mmap... " >&6; }
10831 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
10832 $as_echo_n "(cached) " >&6
10834 if test "$cross_compiling" = yes; then :
10835 ac_cv_func_mmap_fixed_mapped
=no
10837 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10838 /* end confdefs.h. */
10839 $ac_includes_default
10840 /* malloc might have been renamed as rpl_malloc. */
10843 /* Thanks to Mike Haertel and Jim Avera for this test.
10844 Here is a matrix of mmap possibilities:
10845 mmap private not fixed
10846 mmap private fixed at somewhere currently unmapped
10847 mmap private fixed at somewhere already mapped
10848 mmap shared not fixed
10849 mmap shared fixed at somewhere currently unmapped
10850 mmap shared fixed at somewhere already mapped
10851 For private mappings, we should verify that changes cannot be read()
10852 back from the file, nor mmap's back from the file at a different
10853 address. (There have been systems where private was not correctly
10854 implemented like the infamous i386 svr4.0, and systems where the
10855 VM page cache was not coherent with the file system buffer cache
10856 like early versions of FreeBSD and possibly contemporary NetBSD.)
10857 For shared mappings, we should conversely verify that changes get
10858 propagated back to all the places they're supposed to be.
10860 Grep wants private fixed already mapped.
10861 The main things grep needs to know about mmap are:
10862 * does it exist and is it safe to write into the mmap'd area
10863 * how to use it (BSD variants) */
10866 #include <sys/mman.h>
10868 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10872 /* This mess was copied from the GNU getpagesize.h. */
10873 #ifndef HAVE_GETPAGESIZE
10874 # ifdef _SC_PAGESIZE
10875 # define getpagesize() sysconf(_SC_PAGESIZE)
10876 # else /* no _SC_PAGESIZE */
10877 # ifdef HAVE_SYS_PARAM_H
10878 # include <sys/param.h>
10879 # ifdef EXEC_PAGESIZE
10880 # define getpagesize() EXEC_PAGESIZE
10881 # else /* no EXEC_PAGESIZE */
10883 # define getpagesize() NBPG * CLSIZE
10886 # endif /* no CLSIZE */
10887 # else /* no NBPG */
10889 # define getpagesize() NBPC
10890 # else /* no NBPC */
10892 # define getpagesize() PAGESIZE
10893 # endif /* PAGESIZE */
10894 # endif /* no NBPC */
10895 # endif /* no NBPG */
10896 # endif /* no EXEC_PAGESIZE */
10897 # else /* no HAVE_SYS_PARAM_H */
10898 # define getpagesize() 8192 /* punt totally */
10899 # endif /* no HAVE_SYS_PARAM_H */
10900 # endif /* no _SC_PAGESIZE */
10902 #endif /* no HAVE_GETPAGESIZE */
10907 char *data, *data2, *data3;
10908 const char *cdata2;
10912 pagesize = getpagesize ();
10914 /* First, make a file with some known garbage in it. */
10915 data = (char *) malloc (pagesize);
10918 for (i = 0; i < pagesize; ++i)
10919 *(data + i) = rand ();
10921 fd = creat ("conftest.mmap", 0600);
10924 if (write (fd, data, pagesize) != pagesize)
10928 /* Next, check that the tail of a page is zero-filled. File must have
10929 non-zero length, otherwise we risk SIGBUS for entire page. */
10930 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
10934 if (write (fd2, cdata2, 1) != 1)
10936 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
10937 if (data2 == MAP_FAILED)
10939 for (i = 0; i < pagesize; ++i)
10943 if (munmap (data2, pagesize))
10946 /* Next, try to mmap the file at a fixed address which already has
10947 something else allocated at it. If we can, also make sure that
10948 we see the same garbage. */
10949 fd = open ("conftest.mmap", O_RDWR);
10952 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10953 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10955 for (i = 0; i < pagesize; ++i)
10956 if (*(data + i) != *(data2 + i))
10959 /* Finally, make sure that changes to the mapped area do not
10960 percolate back to the file as seen by read(). (This is a bug on
10961 some variants of i386 svr4.0.) */
10962 for (i = 0; i < pagesize; ++i)
10963 *(data2 + i) = *(data2 + i) + 1;
10964 data3 = (char *) malloc (pagesize);
10967 if (read (fd, data3, pagesize) != pagesize)
10969 for (i = 0; i < pagesize; ++i)
10970 if (*(data + i) != *(data3 + i))
10976 if ac_fn_c_try_run
"$LINENO"; then :
10977 ac_cv_func_mmap_fixed_mapped
=yes
10979 ac_cv_func_mmap_fixed_mapped
=no
10981 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10982 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
10987 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
10988 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10990 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
10993 rm -f conftest.mmap conftest.txt
10995 if test $use_mmap_for_buffers = yes; then
10997 $as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
11002 LIBS
="$LIBS_SYSTEM $LIBS"
11004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
11005 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
11006 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
11007 $as_echo_n "(cached) " >&6
11009 ac_check_lib_save_LIBS
=$LIBS
11010 LIBS
="-ldnet $LIBS"
11011 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11012 /* end confdefs.h. */
11014 /* Override any GCC internal prototype to avoid an error.
11015 Use char because int might match the return type of a GCC
11016 builtin and then its argument prototype would still apply. */
11024 return dnet_ntoa ();
11029 if ac_fn_c_try_link
"$LINENO"; then :
11030 ac_cv_lib_dnet_dnet_ntoa
=yes
11032 ac_cv_lib_dnet_dnet_ntoa
=no
11034 rm -f core conftest.err conftest.
$ac_objext \
11035 conftest
$ac_exeext conftest.
$ac_ext
11036 LIBS
=$ac_check_lib_save_LIBS
11038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
11039 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
11040 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x
""yes; then :
11041 cat >>confdefs.h
<<_ACEOF
11042 #define HAVE_LIBDNET 1
11045 LIBS
="-ldnet $LIBS"
11050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
11051 $as_echo_n "checking for main in -lXbsd... " >&6; }
11052 if test "${ac_cv_lib_Xbsd_main+set}" = set; then :
11053 $as_echo_n "(cached) " >&6
11055 ac_check_lib_save_LIBS
=$LIBS
11056 LIBS
="-lXbsd $LIBS"
11057 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11058 /* end confdefs.h. */
11069 if ac_fn_c_try_link
"$LINENO"; then :
11070 ac_cv_lib_Xbsd_main
=yes
11072 ac_cv_lib_Xbsd_main
=no
11074 rm -f core conftest.err conftest.
$ac_objext \
11075 conftest
$ac_exeext conftest.
$ac_ext
11076 LIBS
=$ac_check_lib_save_LIBS
11078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
11079 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
11080 if test "x$ac_cv_lib_Xbsd_main" = x
""yes; then :
11081 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -lXbsd"
11089 if test "$ac_cv_header_pthread_h"; then
11090 if test "$GMALLOC_OBJ" = gmalloc.o
; then
11091 emacs_pthread_function
=pthread_atfork
11093 emacs_pthread_function
=pthread_self
11095 as_ac_Lib
=`$as_echo "ac_cv_lib_pthread_$emacs_pthread_function" | $as_tr_sh`
11096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $emacs_pthread_function in -lpthread" >&5
11097 $as_echo_n "checking for $emacs_pthread_function in -lpthread... " >&6; }
11098 if { as_var
=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
11099 $as_echo_n "(cached) " >&6
11101 ac_check_lib_save_LIBS
=$LIBS
11102 LIBS
="-lpthread $LIBS"
11103 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11104 /* end confdefs.h. */
11106 /* Override any GCC internal prototype to avoid an error.
11107 Use char because int might match the return type of a GCC
11108 builtin and then its argument prototype would still apply. */
11112 char $emacs_pthread_function ();
11116 return $emacs_pthread_function ();
11121 if ac_fn_c_try_link
"$LINENO"; then :
11122 eval "$as_ac_Lib=yes"
11124 eval "$as_ac_Lib=no"
11126 rm -f core conftest.err conftest.
$ac_objext \
11127 conftest
$ac_exeext conftest.
$ac_ext
11128 LIBS
=$ac_check_lib_save_LIBS
11130 eval ac_res
=\$
$as_ac_Lib
11131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11132 $as_echo "$ac_res" >&6; }
11133 eval as_val
=\$
$as_ac_Lib
11134 if test "x$as_val" = x
""yes; then :
11139 if test "$HAVE_PTHREAD" = yes; then
11140 case "${canonical}" in
11142 *) LIB_PTHREAD
="-lpthread"
11143 LIBS
="$LIB_PTHREAD $LIBS" ;;
11146 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
11151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
11152 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
11153 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then :
11154 $as_echo_n "(cached) " >&6
11156 ac_check_lib_save_LIBS
=$LIBS
11157 LIBS
="-lpthreads $LIBS"
11158 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11159 /* end confdefs.h. */
11161 /* Override any GCC internal prototype to avoid an error.
11162 Use char because int might match the return type of a GCC
11163 builtin and then its argument prototype would still apply. */
11171 return cma_open ();
11176 if ac_fn_c_try_link
"$LINENO"; then :
11177 ac_cv_lib_pthreads_cma_open
=yes
11179 ac_cv_lib_pthreads_cma_open
=no
11181 rm -f core conftest.err conftest.
$ac_objext \
11182 conftest
$ac_exeext conftest.
$ac_ext
11183 LIBS
=$ac_check_lib_save_LIBS
11185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
11186 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
11187 if test "x$ac_cv_lib_pthreads_cma_open" = x
""yes; then :
11188 cat >>confdefs.h
<<_ACEOF
11189 #define HAVE_LIBPTHREADS 1
11192 LIBS
="-lpthreads $LIBS"
11197 ## Note: when using cpp in s/aix4.2.h, this definition depended on
11198 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
11199 ## the system file was sourced. Hence the value of LIBS_SYSTEM
11200 ## added to LIBS in configure would never contain the pthreads part,
11201 ## but the value used in Makefiles might. FIXME?
11203 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
11204 ## be harmless on older versions of X where it happens to exist.
11205 test "$opsys" = "aix4-2" && \
11206 test $ac_cv_lib_pthreads_cma_open = yes && \
11207 LIBS_SYSTEM
="$LIBS_SYSTEM -lpthreads"
11212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
11213 $as_echo_n "checking for -bbigtoc option... " >&6; }
11214 if test "${gdb_cv_bigtoc+set}" = set; then :
11215 $as_echo_n "(cached) " >&6
11219 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
11220 *) gdb_cv_bigtoc
=-bbigtoc ;;
11223 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
11224 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11225 /* end confdefs.h. */
11235 if ac_fn_c_try_link
"$LINENO"; then :
11240 rm -f core conftest.err conftest.
$ac_objext \
11241 conftest
$ac_exeext conftest.
$ac_ext
11244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
11245 $as_echo "$gdb_cv_bigtoc" >&6; }
11249 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
11250 # used for the tests that follow. We set them back to REAL_CFLAGS and
11251 # REAL_CPPFLAGS later on.
11253 REAL_CFLAGS
="$CFLAGS"
11254 REAL_CPPFLAGS
="$CPPFLAGS"
11256 if test "${HAVE_X11}" = "yes"; then
11257 DEFS
="$C_SWITCH_X_SITE $DEFS"
11258 LDFLAGS
="$LDFLAGS $LD_SWITCH_X_SITE"
11260 CFLAGS
="$C_SWITCH_X_SITE $CFLAGS"
11261 CPPFLAGS
="$C_SWITCH_X_SITE $CPPFLAGS"
11263 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
11264 # This is handled by LD_SWITCH_X_SITE_RPATH during the real build,
11265 # but it's more convenient here to set LD_RUN_PATH since this
11266 # also works on hosts that don't understand LD_SWITCH_X_SITE_RPATH.
11267 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
11268 LD_RUN_PATH
=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
11272 if test "${opsys}" = "gnu-linux"; then
11273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
11274 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
11275 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11276 /* end confdefs.h. */
11281 XOpenDisplay ("foo");
11286 if ac_fn_c_try_link
"$LINENO"; then :
11287 xgnu_linux_first_failure
=no
11289 xgnu_linux_first_failure
=yes
11291 rm -f core conftest.err conftest.
$ac_objext \
11292 conftest
$ac_exeext conftest.
$ac_ext
11293 if test "${xgnu_linux_first_failure}" = "yes"; then
11294 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
11295 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
11296 OLD_CPPFLAGS
="$CPPFLAGS"
11298 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
11299 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
11300 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
11301 LIBS
="$LIBS -b i486-linuxaout"
11302 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11303 /* end confdefs.h. */
11308 XOpenDisplay ("foo");
11313 if ac_fn_c_try_link
"$LINENO"; then :
11314 xgnu_linux_second_failure
=no
11316 xgnu_linux_second_failure
=yes
11318 rm -f core conftest.err conftest.
$ac_objext \
11319 conftest
$ac_exeext conftest.
$ac_ext
11320 if test "${xgnu_linux_second_failure}" = "yes"; then
11321 # If we get the same failure with -b, there is no use adding -b.
11322 # So take it out. This plays safe.
11323 LD_SWITCH_X_SITE
="$OLD_LD_SWITCH_X_SITE"
11324 C_SWITCH_X_SITE
="$OLD_C_SWITCH_X_SITE"
11325 CPPFLAGS
="$OLD_CPPFLAGS"
11327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11328 $as_echo "no" >&6; }
11330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11331 $as_echo "yes" >&6; }
11334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11335 $as_echo "no" >&6; }
11339 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
11340 # header files included from there.
11341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
11342 $as_echo_n "checking for Xkb... " >&6; }
11343 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11344 /* end confdefs.h. */
11345 #include <X11/Xlib.h>
11346 #include <X11/XKBlib.h>
11350 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
11355 if ac_fn_c_try_link
"$LINENO"; then :
11360 rm -f core conftest.err conftest.
$ac_objext \
11361 conftest
$ac_exeext conftest.
$ac_ext
11362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
11363 $as_echo "$emacs_xkb" >&6; }
11364 if test $emacs_xkb = yes; then
11366 $as_echo "#define HAVE_XKB 1" >>confdefs.h
11370 for ac_func
in XrmSetDatabase XScreenResourceString \
11371 XScreenNumberOfScreen
11373 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11374 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11375 eval as_val
=\$
$as_ac_var
11376 if test "x$as_val" = x
""yes; then :
11377 cat >>confdefs.h
<<_ACEOF
11378 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11386 if test "${window_system}" = "x11"; then
11387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
11388 $as_echo_n "checking X11 version 6... " >&6; }
11389 if test "${emacs_cv_x11_version_6+set}" = set; then :
11390 $as_echo_n "(cached) " >&6
11392 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11393 /* end confdefs.h. */
11394 #include <X11/Xlib.h>
11398 #if XlibSpecificationRelease < 6
11406 if ac_fn_c_try_link
"$LINENO"; then :
11407 emacs_cv_x11_version_6
=yes
11409 emacs_cv_x11_version_6
=no
11411 rm -f core conftest.err conftest.
$ac_objext \
11412 conftest
$ac_exeext conftest.
$ac_ext
11415 if test $emacs_cv_x11_version_6 = yes; then
11416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
11417 $as_echo "6 or newer" >&6; }
11419 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
11422 $as_echo "#define HAVE_X_I18N 1" >>confdefs.h
11424 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
11429 $as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
11434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
11435 $as_echo "before 6" >&6; }
11440 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
11442 if test "${HAVE_X11}" = "yes" || test "${HAVE_NS}" = "yes" || test "${opsys}" = "mingw32"; then
11443 if test "${with_rsvg}" != "no"; then
11444 RSVG_REQUIRED
=2.11.0
11445 RSVG_MODULE
="librsvg-2.0 >= $RSVG_REQUIRED"
11450 if test "$PKG_CONFIG" = "no" ; then
11453 PKG_CONFIG_MIN_VERSION
=0.9.0
11454 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
11456 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
11458 if "$PKG_CONFIG" --exists "$RSVG_MODULE" 2>&5 &&
11459 RSVG_CFLAGS
=`"$PKG_CONFIG" --cflags "$RSVG_MODULE" 2>&5` &&
11460 RSVG_LIBS
=`"$PKG_CONFIG" --libs "$RSVG_MODULE" 2>&5`; then
11467 RSVG_CFLAGS
=`$as_echo "$RSVG_CFLAGS" | sed -e "$edit_cflags"`
11468 RSVG_LIBS
=`$as_echo "$RSVG_LIBS" | sed -e 's,///*,/,g'`
11469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$RSVG_CFLAGS' LIBS='$RSVG_LIBS'" >&5
11470 $as_echo "yes CFLAGS='$RSVG_CFLAGS' LIBS='$RSVG_LIBS'" >&6; }
11473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11474 $as_echo "no" >&6; }
11477 ## If we have a custom action on failure, don't print errors, but
11478 ## do set a variable so people can do so. Do it in a subshell
11479 ## to capture any diagnostics in invoking pkg-config.
11480 RSVG_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "$RSVG_MODULE") 2>&1`
11487 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11488 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11492 if test $succeeded = yes; then
11501 if test $HAVE_RSVG = yes; then
11503 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
11505 CFLAGS
="$CFLAGS $RSVG_CFLAGS"
11506 LIBS
="$RSVG_LIBS $LIBS"
11511 HAVE_IMAGEMAGICK
=no
11512 if test "${HAVE_X11}" = "yes" ||
test "${HAVE_NS}" = "yes"; then
11513 if test "${with_imagemagick}" != "no"; then
11514 ## 6.2.8 is the earliest version known to work, but earlier versions
11515 ## might work - let us know if you find one.
11516 ## 6.0.7 does not work. See bug#7955.
11517 ## 6.8.2 makes Emacs crash; see Bug#13867.
11518 IMAGEMAGICK_MODULE
="Wand >= 6.2.8 Wand != 6.8.2"
11522 if test "$PKG_CONFIG" = "no" ; then
11525 PKG_CONFIG_MIN_VERSION
=0.9.0
11526 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
11528 $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
11530 if "$PKG_CONFIG" --exists "$IMAGEMAGICK_MODULE" 2>&5 &&
11531 IMAGEMAGICK_CFLAGS
=`"$PKG_CONFIG" --cflags "$IMAGEMAGICK_MODULE" 2>&5` &&
11532 IMAGEMAGICK_LIBS
=`"$PKG_CONFIG" --libs "$IMAGEMAGICK_MODULE" 2>&5`; then
11539 IMAGEMAGICK_CFLAGS
=`$as_echo "$IMAGEMAGICK_CFLAGS" | sed -e "$edit_cflags"`
11540 IMAGEMAGICK_LIBS
=`$as_echo "$IMAGEMAGICK_LIBS" | sed -e 's,///*,/,g'`
11541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$IMAGEMAGICK_CFLAGS' LIBS='$IMAGEMAGICK_LIBS'" >&5
11542 $as_echo "yes CFLAGS='$IMAGEMAGICK_CFLAGS' LIBS='$IMAGEMAGICK_LIBS'" >&6; }
11545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11546 $as_echo "no" >&6; }
11547 IMAGEMAGICK_CFLAGS
=""
11548 IMAGEMAGICK_LIBS
=""
11549 ## If we have a custom action on failure, don't print errors, but
11550 ## do set a variable so people can do so. Do it in a subshell
11551 ## to capture any diagnostics in invoking pkg-config.
11552 IMAGEMAGICK_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "$IMAGEMAGICK_MODULE") 2>&1`
11559 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11560 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11564 if test $succeeded = yes; then
11565 HAVE_IMAGEMAGICK
=yes
11573 if test $HAVE_IMAGEMAGICK = yes; then
11575 $as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
11577 CFLAGS
="$CFLAGS $IMAGEMAGICK_CFLAGS"
11578 LIBS
="$IMAGEMAGICK_LIBS $LIBS"
11579 for ac_func
in MagickExportImagePixels MagickMergeImageLayers
11581 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11582 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11583 eval as_val
=\$
$as_ac_var
11584 if test "x$as_val" = x
""yes; then :
11585 cat >>confdefs.h
<<_ACEOF
11586 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11599 gtk_term_header
=$term_header
11602 if test "${opsys}" != "mingw32"; then
11603 if test "${with_gtk3}" = "yes" ||
test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "maybe"; then
11606 GTK_MODULES
="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11611 if test "$PKG_CONFIG" = "no" ; then
11614 PKG_CONFIG_MIN_VERSION
=0.9.0
11615 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
11617 $as_echo_n "checking for $GTK_MODULES... " >&6; }
11619 if "$PKG_CONFIG" --exists "$GTK_MODULES" 2>&5 &&
11620 GTK_CFLAGS
=`"$PKG_CONFIG" --cflags "$GTK_MODULES" 2>&5` &&
11621 GTK_LIBS
=`"$PKG_CONFIG" --libs "$GTK_MODULES" 2>&5`; then
11628 GTK_CFLAGS
=`$as_echo "$GTK_CFLAGS" | sed -e "$edit_cflags"`
11629 GTK_LIBS
=`$as_echo "$GTK_LIBS" | sed -e 's,///*,/,g'`
11630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&5
11631 $as_echo "yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&6; }
11634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11635 $as_echo "no" >&6; }
11638 ## If we have a custom action on failure, don't print errors, but
11639 ## do set a variable so people can do so. Do it in a subshell
11640 ## to capture any diagnostics in invoking pkg-config.
11641 GTK_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "$GTK_MODULES") 2>&1`
11648 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11649 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11653 if test $succeeded = yes; then
11659 if test "$pkg_check_gtk" = "no" && test "$with_gtk3" = "yes"; then
11660 as_fn_error
"$GTK_PKG_ERRORS" "$LINENO" 5
11662 if test "$pkg_check_gtk" = "yes"; then
11664 $as_echo "#define HAVE_GTK3 1" >>confdefs.h
11666 GTK_OBJ
=emacsgtkfixed.o
11667 gtk_term_header
=gtkutil.h
11668 USE_GTK_TOOLKIT
="GTK3"
11669 if test "x$ac_enable_gtk_deprecation_warnings" = x
; then
11670 GTK_CFLAGS
="$GTK_CFLAGS -DGDK_DISABLE_DEPRECATION_WARNINGS"
11671 GTK_CFLAGS
="$GTK_CFLAGS -DGLIB_DISABLE_DEPRECATION_WARNINGS"
11675 gtk3_pkg_errors
="$GTK_PKG_ERRORS "
11679 if test "${with_gtk2}" = "yes" ||
test "$check_gtk2" = "yes"; then
11682 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11687 if test "$PKG_CONFIG" = "no" ; then
11690 PKG_CONFIG_MIN_VERSION
=0.9.0
11691 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
11693 $as_echo_n "checking for $GTK_MODULES... " >&6; }
11695 if "$PKG_CONFIG" --exists "$GTK_MODULES" 2>&5 &&
11696 GTK_CFLAGS
=`"$PKG_CONFIG" --cflags "$GTK_MODULES" 2>&5` &&
11697 GTK_LIBS
=`"$PKG_CONFIG" --libs "$GTK_MODULES" 2>&5`; then
11704 GTK_CFLAGS
=`$as_echo "$GTK_CFLAGS" | sed -e "$edit_cflags"`
11705 GTK_LIBS
=`$as_echo "$GTK_LIBS" | sed -e 's,///*,/,g'`
11706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&5
11707 $as_echo "yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&6; }
11710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11711 $as_echo "no" >&6; }
11714 ## If we have a custom action on failure, don't print errors, but
11715 ## do set a variable so people can do so. Do it in a subshell
11716 ## to capture any diagnostics in invoking pkg-config.
11717 GTK_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "$GTK_MODULES") 2>&1`
11724 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11725 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11729 if test $succeeded = yes; then
11735 if test "$pkg_check_gtk" = "no" &&
11736 { test "$with_gtk" = yes ||
test "$with_gtk2" = "yes"; }
11738 as_fn_error
"$gtk3_pkg_errors$GTK_PKG_ERRORS" "$LINENO" 5
11740 test "$pkg_check_gtk" = "yes" && USE_GTK_TOOLKIT
="GTK2"
11744 if test x
"$pkg_check_gtk" = xyes
; then
11748 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
11749 CFLAGS
="$CFLAGS $GTK_CFLAGS"
11750 LIBS
="$GTK_LIBS $LIBS"
11751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GTK compiles" >&5
11752 $as_echo_n "checking whether GTK compiles... " >&6; }
11754 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11755 /* end confdefs.h. */
11756 /* Check the Gtk and Glib APIs. */
11757 #include <gtk/gtk.h>
11758 #include <glib-object.h>
11760 callback (GObject *go, GParamSpec *spec, gpointer user_data)
11767 GtkSettings *gs = 0;
11768 /* Use G_CALLBACK to make sure function pointers can be cast to void *;
11769 strict C prohibits this. Use gtk_main_iteration to test that the
11770 libraries are there. */
11771 if (g_signal_handler_find (G_OBJECT (gs), G_SIGNAL_MATCH_FUNC,
11772 0, 0, 0, G_CALLBACK (callback), 0))
11773 gtk_main_iteration ();
11779 if ac_fn_c_try_link
"$LINENO"; then :
11782 rm -f core conftest.err conftest.
$ac_objext \
11783 conftest
$ac_exeext conftest.
$ac_ext
11784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_COMPILES" >&5
11785 $as_echo "$GTK_COMPILES" >&6; }
11786 if test "${GTK_COMPILES}" != "yes"; then
11788 if test "$USE_X_TOOLKIT" != "maybe"; then
11789 as_fn_error
"Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
11794 $as_echo "#define USE_GTK 1" >>confdefs.h
11796 GTK_OBJ
="gtkutil.o $GTK_OBJ"
11797 term_header
=$gtk_term_header
11799 if "$PKG_CONFIG" --atleast-version=2.10 gtk
+-2.0
; then
11802 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
11803 closing open displays. This is no problem if you just use
11804 one display, but if you use more than one and close one of them
11805 Emacs may crash." >&5
11806 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
11807 closing open displays. This is no problem if you just use
11808 one display, but if you use more than one and close one of them
11809 Emacs may crash." >&2;}
11818 if test "${HAVE_GTK}" = "yes"; then
11820 if test "$with_toolkit_scroll_bars" != no
; then
11821 with_toolkit_scroll_bars
=yes
11824 HAVE_GTK_FILE_SELECTION
=no
11825 ac_fn_c_check_decl
"$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
11826 #include <gtk/gtk.h>
11828 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x
""yes; then :
11829 HAVE_GTK_FILE_SELECTION
=yes
11831 HAVE_GTK_FILE_SELECTION
=no
11834 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
11835 for ac_func
in gtk_file_selection_new
11837 ac_fn_c_check_func
"$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
11838 if test "x$ac_cv_func_gtk_file_selection_new" = x
""yes; then :
11839 cat >>confdefs.h
<<_ACEOF
11840 #define HAVE_GTK_FILE_SELECTION_NEW 1
11848 HAVE_GTK_HANDLE_BOX
=no
11849 ac_fn_c_check_decl
"$LINENO" "GTK_TYPE_HANDLE_BOX" "ac_cv_have_decl_GTK_TYPE_HANDLE_BOX" "$ac_includes_default
11850 #include <gtk/gtk.h>
11852 if test "x$ac_cv_have_decl_GTK_TYPE_HANDLE_BOX" = x
""yes; then :
11853 HAVE_GTK_HANDLE_BOX
=yes
11855 HAVE_GTK_HANDLE_BOX
=no
11858 if test "$HAVE_GTK_HANDLE_BOX" = yes; then
11859 for ac_func
in gtk_handle_box_new
11861 ac_fn_c_check_func
"$LINENO" "gtk_handle_box_new" "ac_cv_func_gtk_handle_box_new"
11862 if test "x$ac_cv_func_gtk_handle_box_new" = x
""yes; then :
11863 cat >>confdefs.h
<<_ACEOF
11864 #define HAVE_GTK_HANDLE_BOX_NEW 1
11872 HAVE_GTK_TEAROFF_MENU_ITEM
=no
11873 ac_fn_c_check_decl
"$LINENO" "GTK_TYPE_TEAROFF_MENU_ITEM" "ac_cv_have_decl_GTK_TYPE_TEAROFF_MENU_ITEM" "$ac_includes_default
11874 #include <gtk/gtk.h>
11876 if test "x$ac_cv_have_decl_GTK_TYPE_TEAROFF_MENU_ITEM" = x
""yes; then :
11877 HAVE_GTK_TEAROFF_MENU_ITEM
=yes
11879 HAVE_GTK_TEAROFF_MENU_ITEM
=no
11882 if test "$HAVE_GTK_TEAROFF_MENU_ITEM" = yes; then
11883 for ac_func
in gtk_tearoff_menu_item_new
11885 ac_fn_c_check_func
"$LINENO" "gtk_tearoff_menu_item_new" "ac_cv_func_gtk_tearoff_menu_item_new"
11886 if test "x$ac_cv_func_gtk_tearoff_menu_item_new" = x
""yes; then :
11887 cat >>confdefs.h
<<_ACEOF
11888 #define HAVE_GTK_TEAROFF_MENU_ITEM_NEW 1
11896 for ac_func
in gtk_widget_get_window gtk_widget_set_has_window \
11897 gtk_dialog_get_action_area gtk_widget_get_sensitive \
11898 gtk_widget_get_mapped gtk_adjustment_get_page_size \
11899 gtk_orientable_set_orientation \
11900 gtk_window_set_has_resize_grip
11902 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11903 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11904 eval as_val
=\$
$as_ac_var
11905 if test "x$as_val" = x
""yes; then :
11906 cat >>confdefs.h
<<_ACEOF
11907 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11914 term_header
=gtkutil.h
11919 if test "${with_dbus}" = "yes"; then
11923 if test "$PKG_CONFIG" = "no" ; then
11926 PKG_CONFIG_MIN_VERSION
=0.9.0
11927 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
11929 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
11931 if "$PKG_CONFIG" --exists "dbus-1 >= 1.0" 2>&5 &&
11932 DBUS_CFLAGS
=`"$PKG_CONFIG" --cflags "dbus-1 >= 1.0" 2>&5` &&
11933 DBUS_LIBS
=`"$PKG_CONFIG" --libs "dbus-1 >= 1.0" 2>&5`; then
11940 DBUS_CFLAGS
=`$as_echo "$DBUS_CFLAGS" | sed -e "$edit_cflags"`
11941 DBUS_LIBS
=`$as_echo "$DBUS_LIBS" | sed -e 's,///*,/,g'`
11942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$DBUS_CFLAGS' LIBS='$DBUS_LIBS'" >&5
11943 $as_echo "yes CFLAGS='$DBUS_CFLAGS' LIBS='$DBUS_LIBS'" >&6; }
11946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11947 $as_echo "no" >&6; }
11950 ## If we have a custom action on failure, don't print errors, but
11951 ## do set a variable so people can do so. Do it in a subshell
11952 ## to capture any diagnostics in invoking pkg-config.
11953 DBUS_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "dbus-1 >= 1.0") 2>&1`
11960 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11961 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11965 if test $succeeded = yes; then
11971 if test "$HAVE_DBUS" = yes; then
11972 LIBS
="$LIBS $DBUS_LIBS"
11974 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
11976 for ac_func
in dbus_watch_get_unix_fd \
11977 dbus_type_is_valid \
11978 dbus_validate_bus_name \
11979 dbus_validate_path \
11980 dbus_validate_interface \
11981 dbus_validate_member
11983 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11984 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11985 eval as_val
=\$
$as_ac_var
11986 if test "x$as_val" = x
""yes; then :
11987 cat >>confdefs.h
<<_ACEOF
11988 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11994 DBUS_OBJ
=dbusbind.o
12000 if test "${HAVE_X11}" = "yes" && test "${with_gsettings}" = "yes"; then
12004 if test "$PKG_CONFIG" = "no" ; then
12007 PKG_CONFIG_MIN_VERSION
=0.9.0
12008 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gio-2.0 >= 2.26" >&5
12010 $as_echo_n "checking for gio-2.0 >= 2.26... " >&6; }
12012 if "$PKG_CONFIG" --exists "gio-2.0 >= 2.26" 2>&5 &&
12013 GSETTINGS_CFLAGS
=`"$PKG_CONFIG" --cflags "gio-2.0 >= 2.26" 2>&5` &&
12014 GSETTINGS_LIBS
=`"$PKG_CONFIG" --libs "gio-2.0 >= 2.26" 2>&5`; then
12021 GSETTINGS_CFLAGS
=`$as_echo "$GSETTINGS_CFLAGS" | sed -e "$edit_cflags"`
12022 GSETTINGS_LIBS
=`$as_echo "$GSETTINGS_LIBS" | sed -e 's,///*,/,g'`
12023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GSETTINGS_CFLAGS' LIBS='$GSETTINGS_LIBS'" >&5
12024 $as_echo "yes CFLAGS='$GSETTINGS_CFLAGS' LIBS='$GSETTINGS_LIBS'" >&6; }
12027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12028 $as_echo "no" >&6; }
12029 GSETTINGS_CFLAGS
=""
12031 ## If we have a custom action on failure, don't print errors, but
12032 ## do set a variable so people can do so. Do it in a subshell
12033 ## to capture any diagnostics in invoking pkg-config.
12034 GSETTINGS_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "gio-2.0 >= 2.26") 2>&1`
12041 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12042 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12046 if test $succeeded = yes; then
12052 if test "$HAVE_GSETTINGS" = "yes"; then
12054 $as_echo "#define HAVE_GSETTINGS 1" >>confdefs.h
12056 SETTINGS_CFLAGS
="$GSETTINGS_CFLAGS"
12057 SETTINGS_LIBS
="$GSETTINGS_LIBS"
12062 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
12066 if test "$PKG_CONFIG" = "no" ; then
12069 PKG_CONFIG_MIN_VERSION
=0.9.0
12070 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
12072 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
12074 if "$PKG_CONFIG" --exists "gconf-2.0 >= 2.13" 2>&5 &&
12075 GCONF_CFLAGS
=`"$PKG_CONFIG" --cflags "gconf-2.0 >= 2.13" 2>&5` &&
12076 GCONF_LIBS
=`"$PKG_CONFIG" --libs "gconf-2.0 >= 2.13" 2>&5`; then
12083 GCONF_CFLAGS
=`$as_echo "$GCONF_CFLAGS" | sed -e "$edit_cflags"`
12084 GCONF_LIBS
=`$as_echo "$GCONF_LIBS" | sed -e 's,///*,/,g'`
12085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GCONF_CFLAGS' LIBS='$GCONF_LIBS'" >&5
12086 $as_echo "yes CFLAGS='$GCONF_CFLAGS' LIBS='$GCONF_LIBS'" >&6; }
12089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12090 $as_echo "no" >&6; }
12093 ## If we have a custom action on failure, don't print errors, but
12094 ## do set a variable so people can do so. Do it in a subshell
12095 ## to capture any diagnostics in invoking pkg-config.
12096 GCONF_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "gconf-2.0 >= 2.13") 2>&1`
12103 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12104 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12108 if test $succeeded = yes; then
12114 if test "$HAVE_GCONF" = yes; then
12116 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
12118 SETTINGS_CFLAGS
="$SETTINGS_CFLAGS $GCONF_CFLAGS"
12119 SETTINGS_LIBS
="$SETTINGS_LIBS $GCONF_LIBS"
12123 if test "$HAVE_GSETTINGS" = "yes" ||
test "$HAVE_GCONF" = "yes"; then
12127 if test "$PKG_CONFIG" = "no" ; then
12130 PKG_CONFIG_MIN_VERSION
=0.9.0
12131 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gobject-2.0 >= 2.0" >&5
12133 $as_echo_n "checking for gobject-2.0 >= 2.0... " >&6; }
12135 if "$PKG_CONFIG" --exists "gobject-2.0 >= 2.0" 2>&5 &&
12136 GOBJECT_CFLAGS
=`"$PKG_CONFIG" --cflags "gobject-2.0 >= 2.0" 2>&5` &&
12137 GOBJECT_LIBS
=`"$PKG_CONFIG" --libs "gobject-2.0 >= 2.0" 2>&5`; then
12144 GOBJECT_CFLAGS
=`$as_echo "$GOBJECT_CFLAGS" | sed -e "$edit_cflags"`
12145 GOBJECT_LIBS
=`$as_echo "$GOBJECT_LIBS" | sed -e 's,///*,/,g'`
12146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GOBJECT_CFLAGS' LIBS='$GOBJECT_LIBS'" >&5
12147 $as_echo "yes CFLAGS='$GOBJECT_CFLAGS' LIBS='$GOBJECT_LIBS'" >&6; }
12150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12151 $as_echo "no" >&6; }
12154 ## If we have a custom action on failure, don't print errors, but
12155 ## do set a variable so people can do so. Do it in a subshell
12156 ## to capture any diagnostics in invoking pkg-config.
12157 GOBJECT_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "gobject-2.0 >= 2.0") 2>&1`
12164 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12165 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12169 if test $succeeded = yes; then
12175 if test "$HAVE_GOBJECT" = "yes"; then
12176 SETTINGS_CFLAGS
="$SETTINGS_CFLAGS $GOBJECT_CFLAGS"
12177 SETTINGS_LIBS
="$SETTINGS_LIBS $GOBJECT_LIBS"
12179 SAVE_CFLAGS
="$CFLAGS"
12181 CFLAGS
="$SETTINGS_CFLAGS $CFLAGS"
12182 LIBS
="$SETTINGS_LIBS $LIBS"
12183 CFLAGS
="$SAVE_CFLAGS"
12192 if test "${with_selinux}" = "yes"; then
12193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
12194 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
12195 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then :
12196 $as_echo_n "(cached) " >&6
12198 ac_check_lib_save_LIBS
=$LIBS
12199 LIBS
="-lselinux $LIBS"
12200 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12201 /* end confdefs.h. */
12203 /* Override any GCC internal prototype to avoid an error.
12204 Use char because int might match the return type of a GCC
12205 builtin and then its argument prototype would still apply. */
12209 char lgetfilecon ();
12213 return lgetfilecon ();
12218 if ac_fn_c_try_link
"$LINENO"; then :
12219 ac_cv_lib_selinux_lgetfilecon
=yes
12221 ac_cv_lib_selinux_lgetfilecon
=no
12223 rm -f core conftest.err conftest.
$ac_objext \
12224 conftest
$ac_exeext conftest.
$ac_ext
12225 LIBS
=$ac_check_lib_save_LIBS
12227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
12228 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
12229 if test "x$ac_cv_lib_selinux_lgetfilecon" = x
""yes; then :
12230 HAVE_LIBSELINUX
=yes
12235 if test "$HAVE_LIBSELINUX" = yes; then
12237 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
12239 LIBSELINUX_LIBS
=-lselinux
12246 if test "${with_gnutls}" = "yes" ; then
12250 if test "$PKG_CONFIG" = "no" ; then
12253 PKG_CONFIG_MIN_VERSION
=0.9.0
12254 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 3.0.0" >&5
12256 $as_echo_n "checking for gnutls >= 3.0.0... " >&6; }
12258 if "$PKG_CONFIG" --exists "gnutls >= 3.0.0" 2>&5 &&
12259 LIBGNUTLS_CFLAGS
=`"$PKG_CONFIG" --cflags "gnutls >= 3.0.0" 2>&5` &&
12260 LIBGNUTLS_LIBS
=`"$PKG_CONFIG" --libs "gnutls >= 3.0.0" 2>&5`; then
12267 LIBGNUTLS_CFLAGS
=`$as_echo "$LIBGNUTLS_CFLAGS" | sed -e "$edit_cflags"`
12268 LIBGNUTLS_LIBS
=`$as_echo "$LIBGNUTLS_LIBS" | sed -e 's,///*,/,g'`
12269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBGNUTLS_CFLAGS' LIBS='$LIBGNUTLS_LIBS'" >&5
12270 $as_echo "yes CFLAGS='$LIBGNUTLS_CFLAGS' LIBS='$LIBGNUTLS_LIBS'" >&6; }
12273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12274 $as_echo "no" >&6; }
12275 LIBGNUTLS_CFLAGS
=""
12277 ## If we have a custom action on failure, don't print errors, but
12278 ## do set a variable so people can do so. Do it in a subshell
12279 ## to capture any diagnostics in invoking pkg-config.
12280 LIBGNUTLS_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "gnutls >= 3.0.0") 2>&1`
12287 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12288 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12292 if test $succeeded = yes; then
12298 if test "${HAVE_GNUTLS3}" = "yes"; then
12300 $as_echo "#define HAVE_GNUTLS3 1" >>confdefs.h
12307 if test "$PKG_CONFIG" = "no" ; then
12310 PKG_CONFIG_MIN_VERSION
=0.9.0
12311 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.6.6" >&5
12313 $as_echo_n "checking for gnutls >= 2.6.6... " >&6; }
12315 if "$PKG_CONFIG" --exists "gnutls >= 2.6.6" 2>&5 &&
12316 LIBGNUTLS_CFLAGS
=`"$PKG_CONFIG" --cflags "gnutls >= 2.6.6" 2>&5` &&
12317 LIBGNUTLS_LIBS
=`"$PKG_CONFIG" --libs "gnutls >= 2.6.6" 2>&5`; then
12324 LIBGNUTLS_CFLAGS
=`$as_echo "$LIBGNUTLS_CFLAGS" | sed -e "$edit_cflags"`
12325 LIBGNUTLS_LIBS
=`$as_echo "$LIBGNUTLS_LIBS" | sed -e 's,///*,/,g'`
12326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBGNUTLS_CFLAGS' LIBS='$LIBGNUTLS_LIBS'" >&5
12327 $as_echo "yes CFLAGS='$LIBGNUTLS_CFLAGS' LIBS='$LIBGNUTLS_LIBS'" >&6; }
12330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12331 $as_echo "no" >&6; }
12332 LIBGNUTLS_CFLAGS
=""
12334 ## If we have a custom action on failure, don't print errors, but
12335 ## do set a variable so people can do so. Do it in a subshell
12336 ## to capture any diagnostics in invoking pkg-config.
12337 LIBGNUTLS_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "gnutls >= 2.6.6") 2>&1`
12344 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12345 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12349 if test $succeeded = yes; then
12356 if test "${HAVE_GNUTLS}" = "yes"; then
12358 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
12362 # Windows loads GnuTLS dynamically
12363 if test "${opsys}" = "mingw32"; then
12366 CFLAGS
="$CFLAGS $LIBGNUTLS_CFLAGS"
12367 LIBS
="$LIBGNUTLS_LIBS $LIBS"
12377 if test "${with_ns}" = yes && test ${with_file_notification} = yes; then
12378 with_file_notification
=no
12381 case $with_file_notification,$opsys in
12382 w32
,* |
yes,mingw32
)
12383 ac_fn_c_check_header_mongrel
"$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
12384 if test "x$ac_cv_header_windows_h" = x
""yes; then :
12389 if test "$ac_cv_header_windows_h" = yes ; then
12391 $as_echo "#define HAVE_W32NOTIFY 1" >>confdefs.h
12393 NOTIFY_OBJ
=w32notify.o
12394 NOTIFY_SUMMARY
="yes (w32)"
12398 case $with_file_notification,$NOTIFY_OBJ in
12403 if test "$PKG_CONFIG" = "no" ; then
12404 HAVE_GFILENOTIFY
=no
12406 PKG_CONFIG_MIN_VERSION
=0.9.0
12407 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gio-2.0 >= 2.24" >&5
12409 $as_echo_n "checking for gio-2.0 >= 2.24... " >&6; }
12411 if "$PKG_CONFIG" --exists "gio-2.0 >= 2.24" 2>&5 &&
12412 GFILENOTIFY_CFLAGS
=`"$PKG_CONFIG" --cflags "gio-2.0 >= 2.24" 2>&5` &&
12413 GFILENOTIFY_LIBS
=`"$PKG_CONFIG" --libs "gio-2.0 >= 2.24" 2>&5`; then
12420 GFILENOTIFY_CFLAGS
=`$as_echo "$GFILENOTIFY_CFLAGS" | sed -e "$edit_cflags"`
12421 GFILENOTIFY_LIBS
=`$as_echo "$GFILENOTIFY_LIBS" | sed -e 's,///*,/,g'`
12422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GFILENOTIFY_CFLAGS' LIBS='$GFILENOTIFY_LIBS'" >&5
12423 $as_echo "yes CFLAGS='$GFILENOTIFY_CFLAGS' LIBS='$GFILENOTIFY_LIBS'" >&6; }
12426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12427 $as_echo "no" >&6; }
12428 GFILENOTIFY_CFLAGS
=""
12429 GFILENOTIFY_LIBS
=""
12430 ## If we have a custom action on failure, don't print errors, but
12431 ## do set a variable so people can do so. Do it in a subshell
12432 ## to capture any diagnostics in invoking pkg-config.
12433 GFILENOTIFY_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "gio-2.0 >= 2.24") 2>&1`
12440 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12441 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12445 if test $succeeded = yes; then
12446 HAVE_GFILENOTIFY
=yes
12448 HAVE_GFILENOTIFY
=no
12451 if test "$HAVE_GFILENOTIFY" = "yes"; then
12453 $as_echo "#define HAVE_GFILENOTIFY 1" >>confdefs.h
12455 NOTIFY_OBJ
=gfilenotify.o
12456 NOTIFY_SUMMARY
="yes -lgio (gfile)"
12460 case $with_file_notification,$NOTIFY_OBJ in
12462 ac_fn_c_check_header_mongrel
"$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
12463 if test "x$ac_cv_header_sys_inotify_h" = x
""yes; then :
12468 if test "$ac_cv_header_sys_inotify_h" = yes ; then
12469 ac_fn_c_check_func
"$LINENO" "inotify_init1" "ac_cv_func_inotify_init1"
12470 if test "x$ac_cv_func_inotify_init1" = x
""yes; then :
12474 if test "$ac_cv_func_inotify_init1" = yes; then
12476 $as_echo "#define HAVE_INOTIFY 1" >>confdefs.h
12478 NOTIFY_OBJ
=inotify.o
12479 NOTIFY_SUMMARY
="yes -lglibc (inotify)"
12484 case $with_file_notification,$NOTIFY_OBJ in
12485 yes,* | no
,* |
*,?
*) ;;
12486 *) as_fn_error
"File notification \`$with_file_notification' requested but requirements not found." "$LINENO" 5 ;;
12489 if test -n "$NOTIFY_OBJ"; then
12491 $as_echo "#define USE_FILE_NOTIFY 1" >>confdefs.h
12500 if test x
"${USE_X_TOOLKIT}" = xmaybe ||
test x
"${USE_X_TOOLKIT}" = xLUCID
; then
12501 if test "$with_xaw3d" != no
; then
12502 if test "${emacs_cv_xaw3d+set}" = set; then :
12503 $as_echo_n "(cached) " >&6
12505 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12506 /* end confdefs.h. */
12508 #include <X11/Intrinsic.h>
12509 #include <X11/Xaw3d/Simple.h>
12518 if ac_fn_c_try_link
"$LINENO"; then :
12519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XawScrollbarSetThumb in -lXaw3d" >&5
12520 $as_echo_n "checking for XawScrollbarSetThumb in -lXaw3d... " >&6; }
12521 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then :
12522 $as_echo_n "(cached) " >&6
12524 ac_check_lib_save_LIBS
=$LIBS
12525 LIBS
="-lXaw3d $LIBS"
12526 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12527 /* end confdefs.h. */
12529 /* Override any GCC internal prototype to avoid an error.
12530 Use char because int might match the return type of a GCC
12531 builtin and then its argument prototype would still apply. */
12535 char XawScrollbarSetThumb ();
12539 return XawScrollbarSetThumb ();
12544 if ac_fn_c_try_link
"$LINENO"; then :
12545 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=yes
12547 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=no
12549 rm -f core conftest.err conftest.
$ac_objext \
12550 conftest
$ac_exeext conftest.
$ac_ext
12551 LIBS
=$ac_check_lib_save_LIBS
12553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
12554 $as_echo "$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
12555 if test "x$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" = x
""yes; then :
12564 rm -f core conftest.err conftest.
$ac_objext \
12565 conftest
$ac_exeext conftest.
$ac_ext
12571 if test $emacs_cv_xaw3d = yes; then
12572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
12573 $as_echo_n "checking for xaw3d... " >&6; }
12574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
12575 $as_echo "yes; using Lucid toolkit" >&6; }
12576 USE_X_TOOLKIT
=LUCID
12580 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
12583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
12584 $as_echo_n "checking for xaw3d... " >&6; }
12585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12586 $as_echo "no" >&6; }
12587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
12588 $as_echo_n "checking for libXaw... " >&6; }
12589 if test "${emacs_cv_xaw+set}" = set; then :
12590 $as_echo_n "(cached) " >&6
12592 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12593 /* end confdefs.h. */
12595 #include <X11/Intrinsic.h>
12596 #include <X11/Xaw/Simple.h>
12605 if ac_fn_c_try_link
"$LINENO"; then :
12610 rm -f core conftest.err conftest.
$ac_objext \
12611 conftest
$ac_exeext conftest.
$ac_ext
12614 if test $emacs_cv_xaw = yes; then
12615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
12616 $as_echo "yes; using Lucid toolkit" >&6; }
12617 USE_X_TOOLKIT
=LUCID
12619 elif test x
"${USE_X_TOOLKIT}" = xLUCID
; then
12620 as_fn_error
"Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
12622 as_fn_error
"No X toolkit could be found.
12623 If you are sure you want Emacs compiled without an X toolkit, pass
12624 --with-x-toolkit=no
12625 to configure. Otherwise, install the development libraries for the toolkit
12626 that you want to use (e.g. Gtk+) and re-run configure." "$LINENO" 5
12631 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
12634 if test "${USE_X_TOOLKIT}" != "none"; then
12635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
12636 $as_echo_n "checking X11 toolkit version... " >&6; }
12637 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then :
12638 $as_echo_n "(cached) " >&6
12640 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12641 /* end confdefs.h. */
12642 #include <X11/Intrinsic.h>
12646 #if XtSpecificationRelease < 6
12654 if ac_fn_c_try_link
"$LINENO"; then :
12655 emacs_cv_x11_toolkit_version_6
=yes
12657 emacs_cv_x11_toolkit_version_6
=no
12659 rm -f core conftest.err conftest.
$ac_objext \
12660 conftest
$ac_exeext conftest.
$ac_ext
12663 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
12664 if test $emacs_cv_x11_toolkit_version_6 = yes; then
12665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
12666 $as_echo "6 or newer" >&6; }
12668 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
12670 LIBXTR6
="-lSM -lICE"
12672 ## Use libw.a along with X11R6 Xt.
12673 unixware
) LIBXTR6
="$LIBXTR6 -lw" ;;
12676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
12677 $as_echo "before 6" >&6; }
12681 if test x
$HAVE_X11XTR6 = xyes
; then
12682 LIBS
="-lXt -lSM -lICE $LIBS"
12686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
12687 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
12688 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then :
12689 $as_echo_n "(cached) " >&6
12691 ac_check_lib_save_LIBS
=$LIBS
12693 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12694 /* end confdefs.h. */
12696 /* Override any GCC internal prototype to avoid an error.
12697 Use char because int might match the return type of a GCC
12698 builtin and then its argument prototype would still apply. */
12702 char XmuConvertStandardSelection ();
12706 return XmuConvertStandardSelection ();
12711 if ac_fn_c_try_link
"$LINENO"; then :
12712 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
12714 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
12716 rm -f core conftest.err conftest.
$ac_objext \
12717 conftest
$ac_exeext conftest.
$ac_ext
12718 LIBS
=$ac_check_lib_save_LIBS
12720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
12721 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
12722 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x
""yes; then :
12723 cat >>confdefs.h
<<_ACEOF
12724 #define HAVE_LIBXMU 1
12731 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
12737 ## These systems don't supply Xmu.
12739 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU
=
12747 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
12748 if test "${HAVE_X11}" = "yes"; then
12749 if test "${USE_X_TOOLKIT}" != "none"; then
12750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
12751 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
12752 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
12753 $as_echo_n "(cached) " >&6
12755 ac_check_lib_save_LIBS
=$LIBS
12756 LIBS
="-lXext $LIBS"
12757 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12758 /* end confdefs.h. */
12760 /* Override any GCC internal prototype to avoid an error.
12761 Use char because int might match the return type of a GCC
12762 builtin and then its argument prototype would still apply. */
12766 char XShapeQueryExtension ();
12770 return XShapeQueryExtension ();
12775 if ac_fn_c_try_link
"$LINENO"; then :
12776 ac_cv_lib_Xext_XShapeQueryExtension
=yes
12778 ac_cv_lib_Xext_XShapeQueryExtension
=no
12780 rm -f core conftest.err conftest.
$ac_objext \
12781 conftest
$ac_exeext conftest.
$ac_ext
12782 LIBS
=$ac_check_lib_save_LIBS
12784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12785 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12786 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x
""yes; then :
12787 cat >>confdefs.h
<<_ACEOF
12788 #define HAVE_LIBXEXT 1
12791 LIBS
="-lXext $LIBS"
12799 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12800 # OpenMotif may be installed in such a way on some GNU/Linux systems.
12801 if test -d /usr
/include
/openmotif
; then
12802 CPPFLAGS
="-I/usr/include/openmotif $CPPFLAGS"
12803 emacs_cv_openmotif
=yes
12804 case "$canonical" in
12805 x86_64-
*-linux-gnu* | powerpc64-
*-linux-gnu* | sparc64-
*-linux-gnu*)
12806 test -d /usr
/lib64
/openmotif
&& LDFLAGS
="-L/usr/lib64/openmotif $LDFLAGS"
12809 test -d /usr
/lib
/openmotif
&& LDFLAGS
="-L/usr/lib/openmotif $LDFLAGS"
12812 emacs_cv_openmotif
=no
12814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for (Open)Motif version 2.1" >&5
12815 $as_echo_n "checking for (Open)Motif version 2.1... " >&6; }
12816 if test "${emacs_cv_motif_version_2_1+set}" = set; then :
12817 $as_echo_n "(cached) " >&6
12819 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12820 /* end confdefs.h. */
12825 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12828 Motif version prior to 2.1.
12834 if ac_fn_c_try_compile
"$LINENO"; then :
12835 emacs_cv_motif_version_2_1
=yes
12837 emacs_cv_motif_version_2_1
=no
12839 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
12842 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
12843 if test $emacs_cv_motif_version_2_1 = yes; then
12844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
12845 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
12846 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then :
12847 $as_echo_n "(cached) " >&6
12849 ac_check_lib_save_LIBS
=$LIBS
12851 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12852 /* end confdefs.h. */
12854 /* Override any GCC internal prototype to avoid an error.
12855 Use char because int might match the return type of a GCC
12856 builtin and then its argument prototype would still apply. */
12860 char XpCreateContext ();
12864 return XpCreateContext ();
12869 if ac_fn_c_try_link
"$LINENO"; then :
12870 ac_cv_lib_Xp_XpCreateContext
=yes
12872 ac_cv_lib_Xp_XpCreateContext
=no
12874 rm -f core conftest.err conftest.
$ac_objext \
12875 conftest
$ac_exeext conftest.
$ac_ext
12876 LIBS
=$ac_check_lib_save_LIBS
12878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12879 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
12880 if test "x$ac_cv_lib_Xp_XpCreateContext" = x
""yes; then :
12884 if test x
$emacs_cv_openmotif = xyes
; then
12885 REAL_CPPFLAGS
="-I/usr/include/openmotif $REAL_CPPFLAGS"
12888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
12889 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
12890 if test "${emacs_cv_lesstif+set}" = set; then :
12891 $as_echo_n "(cached) " >&6
12893 # We put this in CFLAGS temporarily to precede other -I options
12894 # that might be in CFLAGS temporarily.
12895 # We put this in CPPFLAGS where it precedes the other -I options.
12896 OLD_CPPFLAGS
=$CPPFLAGS
12898 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12899 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12900 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12901 /* end confdefs.h. */
12902 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12911 if ac_fn_c_try_compile
"$LINENO"; then :
12912 emacs_cv_lesstif
=yes
12914 emacs_cv_lesstif
=no
12916 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
12919 $as_echo "$emacs_cv_lesstif" >&6; }
12920 if test $emacs_cv_lesstif = yes; then
12921 # Make sure this -I option remains in CPPFLAGS after it is set
12922 # back to REAL_CPPFLAGS.
12923 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12924 # have those other -I options anyway. Ultimately, having this
12925 # directory ultimately in CPPFLAGS will be enough.
12926 REAL_CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12927 LDFLAGS
="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12930 CPPFLAGS
=$OLD_CPPFLAGS
12933 ac_fn_c_check_header_mongrel
"$LINENO" "Xm/BulletinB.h" "ac_cv_header_Xm_BulletinB_h" "$ac_includes_default"
12934 if test "x$ac_cv_header_Xm_BulletinB_h" = x
""yes; then :
12937 as_fn_error
"Motif toolkit requested but requirements not found." "$LINENO" 5
12944 USE_TOOLKIT_SCROLL_BARS
=no
12945 if test "${with_toolkit_scroll_bars}" != "no"; then
12946 if test "${USE_X_TOOLKIT}" != "none"; then
12947 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12948 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12951 USE_TOOLKIT_SCROLL_BARS
=yes
12952 elif test "${HAVE_XAW3D}" = "yes" ||
test "${USE_X_TOOLKIT}" = "LUCID"; then
12953 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12955 USE_TOOLKIT_SCROLL_BARS
=yes
12957 elif test "${HAVE_GTK}" = "yes"; then
12958 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12960 USE_TOOLKIT_SCROLL_BARS
=yes
12961 elif test "${HAVE_NS}" = "yes"; then
12962 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12964 USE_TOOLKIT_SCROLL_BARS
=yes
12965 elif test "${HAVE_W32}" = "yes"; then
12966 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12968 USE_TOOLKIT_SCROLL_BARS
=yes
12972 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12973 /* end confdefs.h. */
12975 #include <X11/Xlib.h>
12976 #include <X11/Xresource.h>
12985 if ac_fn_c_try_compile
"$LINENO"; then :
12988 $as_echo "#define HAVE_XIM 1" >>confdefs.h
12993 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12996 if test "${with_xim}" != "no"; then
12998 $as_echo "#define USE_XIM 1" >>confdefs.h
13003 if test "${HAVE_XIM}" != "no"; then
13004 late_CFLAGS
=$CFLAGS
13005 if test "$GCC" = yes; then
13006 CFLAGS
="$CFLAGS --pedantic-errors"
13008 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13009 /* end confdefs.h. */
13011 #include <X11/Xlib.h>
13012 #include <X11/Xresource.h>
13021 XPointer *client_data;
13023 /* If we're not using GCC, it's probably not XFree86, and this is
13024 probably right, but we can't use something like --pedantic-errors. */
13025 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
13026 char*, XIMProc, XPointer*);
13028 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
13034 if ac_fn_c_try_compile
"$LINENO"; then :
13035 emacs_cv_arg6_star
=yes
13037 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13038 if test "$emacs_cv_arg6_star" = yes; then
13039 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
13042 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
13045 CFLAGS
=$late_CFLAGS
13048 ### Start of font-backend (under any platform) section.
13049 # (nothing here yet -- this is a placeholder)
13050 ### End of font-backend (under any platform) section.
13052 ### Start of font-backend (under X11) section.
13053 if test "${HAVE_X11}" = "yes"; then
13057 if test "$PKG_CONFIG" = "no" ; then
13060 PKG_CONFIG_MIN_VERSION
=0.9.0
13061 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
13063 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
13065 if "$PKG_CONFIG" --exists "fontconfig >= 2.2.0" 2>&5 &&
13066 FONTCONFIG_CFLAGS
=`"$PKG_CONFIG" --cflags "fontconfig >= 2.2.0" 2>&5` &&
13067 FONTCONFIG_LIBS
=`"$PKG_CONFIG" --libs "fontconfig >= 2.2.0" 2>&5`; then
13074 FONTCONFIG_CFLAGS
=`$as_echo "$FONTCONFIG_CFLAGS" | sed -e "$edit_cflags"`
13075 FONTCONFIG_LIBS
=`$as_echo "$FONTCONFIG_LIBS" | sed -e 's,///*,/,g'`
13076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$FONTCONFIG_CFLAGS' LIBS='$FONTCONFIG_LIBS'" >&5
13077 $as_echo "yes CFLAGS='$FONTCONFIG_CFLAGS' LIBS='$FONTCONFIG_LIBS'" >&6; }
13080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13081 $as_echo "no" >&6; }
13082 FONTCONFIG_CFLAGS
=""
13084 ## If we have a custom action on failure, don't print errors, but
13085 ## do set a variable so people can do so. Do it in a subshell
13086 ## to capture any diagnostics in invoking pkg-config.
13087 FONTCONFIG_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "fontconfig >= 2.2.0") 2>&1`
13094 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13095 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13099 if test $succeeded = yes; then
13106 ## Use -lXft if available, unless `--with-xft=no'.
13108 if test "${HAVE_FC}" = "no" ||
test "x${with_x}" = "xno"; then
13111 if test "x${with_xft}" != "xno"; then
13116 if test "$PKG_CONFIG" = "no" ; then
13119 PKG_CONFIG_MIN_VERSION
=0.9.0
13120 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
13122 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
13124 if "$PKG_CONFIG" --exists "xft >= 0.13.0" 2>&5 &&
13125 XFT_CFLAGS
=`"$PKG_CONFIG" --cflags "xft >= 0.13.0" 2>&5` &&
13126 XFT_LIBS
=`"$PKG_CONFIG" --libs "xft >= 0.13.0" 2>&5`; then
13133 XFT_CFLAGS
=`$as_echo "$XFT_CFLAGS" | sed -e "$edit_cflags"`
13134 XFT_LIBS
=`$as_echo "$XFT_LIBS" | sed -e 's,///*,/,g'`
13135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$XFT_CFLAGS' LIBS='$XFT_LIBS'" >&5
13136 $as_echo "yes CFLAGS='$XFT_CFLAGS' LIBS='$XFT_LIBS'" >&6; }
13139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13140 $as_echo "no" >&6; }
13143 ## If we have a custom action on failure, don't print errors, but
13144 ## do set a variable so people can do so. Do it in a subshell
13145 ## to capture any diagnostics in invoking pkg-config.
13146 XFT_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "xft >= 0.13.0") 2>&1`
13153 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13154 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13158 if test $succeeded = yes; then
13164 ## Because xftfont.c uses XRenderQueryExtension, we also
13165 ## need to link to -lXrender.
13167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
13168 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
13169 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
13170 $as_echo_n "(cached) " >&6
13172 ac_check_lib_save_LIBS
=$LIBS
13173 LIBS
="-lXrender $LIBS"
13174 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13175 /* end confdefs.h. */
13177 /* Override any GCC internal prototype to avoid an error.
13178 Use char because int might match the return type of a GCC
13179 builtin and then its argument prototype would still apply. */
13183 char XRenderQueryExtension ();
13187 return XRenderQueryExtension ();
13192 if ac_fn_c_try_link
"$LINENO"; then :
13193 ac_cv_lib_Xrender_XRenderQueryExtension
=yes
13195 ac_cv_lib_Xrender_XRenderQueryExtension
=no
13197 rm -f core conftest.err conftest.
$ac_objext \
13198 conftest
$ac_exeext conftest.
$ac_ext
13199 LIBS
=$ac_check_lib_save_LIBS
13201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
13202 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
13203 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x
""yes; then :
13207 if test "$HAVE_XFT" != no
&& test "$HAVE_XRENDER" != no
; then
13208 OLD_CPPFLAGS
="$CPPFLAGS"
13209 OLD_CFLAGS
="$CFLAGS"
13211 CPPFLAGS
="$CPPFLAGS $XFT_CFLAGS"
13212 CFLAGS
="$CFLAGS $XFT_CFLAGS"
13213 XFT_LIBS
="-lXrender $XFT_LIBS"
13214 LIBS
="$XFT_LIBS $LIBS"
13215 ac_fn_c_check_header_compile
"$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "#include <X11/X.h>
13217 if test "x$ac_cv_header_X11_Xft_Xft_h" = x
""yes; then :
13218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
13219 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
13220 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then :
13221 $as_echo_n "(cached) " >&6
13223 ac_check_lib_save_LIBS
=$LIBS
13224 LIBS
="-lXft $XFT_LIBS $LIBS"
13225 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13226 /* end confdefs.h. */
13228 /* Override any GCC internal prototype to avoid an error.
13229 Use char because int might match the return type of a GCC
13230 builtin and then its argument prototype would still apply. */
13234 char XftFontOpen ();
13238 return XftFontOpen ();
13243 if ac_fn_c_try_link
"$LINENO"; then :
13244 ac_cv_lib_Xft_XftFontOpen
=yes
13246 ac_cv_lib_Xft_XftFontOpen
=no
13248 rm -f core conftest.err conftest.
$ac_objext \
13249 conftest
$ac_exeext conftest.
$ac_ext
13250 LIBS
=$ac_check_lib_save_LIBS
13252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
13253 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
13254 if test "x$ac_cv_lib_Xft_XftFontOpen" = x
""yes; then :
13262 if test "${HAVE_XFT}" = "yes"; then
13264 $as_echo "#define HAVE_XFT 1" >>confdefs.h
13267 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $XFT_CFLAGS"
13269 CPPFLAGS
="$OLD_CPPFLAGS"
13270 CFLAGS
="$OLD_CFLAGS"
13272 fi # "${HAVE_XFT}" = "yes"
13273 fi # "$HAVE_XFT" != no
13274 fi # "x${with_xft}" != "xno"
13276 ## We used to allow building with FreeType and without Xft.
13277 ## However, the ftx font backend driver is not in good shape.
13278 if test "$HAVE_XFT" != "yes"; then
13285 if test "$PKG_CONFIG" = "no" ; then
13288 PKG_CONFIG_MIN_VERSION
=0.9.0
13289 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype2" >&5
13291 $as_echo_n "checking for freetype2... " >&6; }
13293 if "$PKG_CONFIG" --exists "freetype2" 2>&5 &&
13294 FREETYPE_CFLAGS
=`"$PKG_CONFIG" --cflags "freetype2" 2>&5` &&
13295 FREETYPE_LIBS
=`"$PKG_CONFIG" --libs "freetype2" 2>&5`; then
13302 FREETYPE_CFLAGS
=`$as_echo "$FREETYPE_CFLAGS" | sed -e "$edit_cflags"`
13303 FREETYPE_LIBS
=`$as_echo "$FREETYPE_LIBS" | sed -e 's,///*,/,g'`
13304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$FREETYPE_CFLAGS' LIBS='$FREETYPE_LIBS'" >&5
13305 $as_echo "yes CFLAGS='$FREETYPE_CFLAGS' LIBS='$FREETYPE_LIBS'" >&6; }
13308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13309 $as_echo "no" >&6; }
13312 ## If we have a custom action on failure, don't print errors, but
13313 ## do set a variable so people can do so. Do it in a subshell
13314 ## to capture any diagnostics in invoking pkg-config.
13315 FREETYPE_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "freetype2") 2>&1`
13322 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13323 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13327 if test $succeeded = yes; then
13334 test "$HAVE_FREETYPE" = "no" && as_fn_error
"libxft requires libfreetype" "$LINENO" 5
13338 if test "${HAVE_FREETYPE}" = "yes"; then
13340 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
13342 if test "${with_libotf}" != "no"; then
13346 if test "$PKG_CONFIG" = "no" ; then
13349 PKG_CONFIG_MIN_VERSION
=0.9.0
13350 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
13352 $as_echo_n "checking for libotf... " >&6; }
13354 if "$PKG_CONFIG" --exists "libotf" 2>&5 &&
13355 LIBOTF_CFLAGS
=`"$PKG_CONFIG" --cflags "libotf" 2>&5` &&
13356 LIBOTF_LIBS
=`"$PKG_CONFIG" --libs "libotf" 2>&5`; then
13363 LIBOTF_CFLAGS
=`$as_echo "$LIBOTF_CFLAGS" | sed -e "$edit_cflags"`
13364 LIBOTF_LIBS
=`$as_echo "$LIBOTF_LIBS" | sed -e 's,///*,/,g'`
13365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBOTF_CFLAGS' LIBS='$LIBOTF_LIBS'" >&5
13366 $as_echo "yes CFLAGS='$LIBOTF_CFLAGS' LIBS='$LIBOTF_LIBS'" >&6; }
13369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13370 $as_echo "no" >&6; }
13373 ## If we have a custom action on failure, don't print errors, but
13374 ## do set a variable so people can do so. Do it in a subshell
13375 ## to capture any diagnostics in invoking pkg-config.
13376 LIBOTF_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "libotf") 2>&1`
13383 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13384 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13388 if test $succeeded = yes; then
13394 if test "$HAVE_LIBOTF" = "yes"; then
13396 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
13398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
13399 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
13400 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then :
13401 $as_echo_n "(cached) " >&6
13403 ac_check_lib_save_LIBS
=$LIBS
13405 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13406 /* end confdefs.h. */
13408 /* Override any GCC internal prototype to avoid an error.
13409 Use char because int might match the return type of a GCC
13410 builtin and then its argument prototype would still apply. */
13414 char OTF_get_variation_glyphs ();
13418 return OTF_get_variation_glyphs ();
13423 if ac_fn_c_try_link
"$LINENO"; then :
13424 ac_cv_lib_otf_OTF_get_variation_glyphs
=yes
13426 ac_cv_lib_otf_OTF_get_variation_glyphs
=no
13428 rm -f core conftest.err conftest.
$ac_objext \
13429 conftest
$ac_exeext conftest.
$ac_ext
13430 LIBS
=$ac_check_lib_save_LIBS
13432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
13433 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
13434 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x
""yes; then :
13435 HAVE_OTF_GET_VARIATION_GLYPHS
=yes
13437 HAVE_OTF_GET_VARIATION_GLYPHS
=no
13440 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
13442 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
13450 if test "${HAVE_LIBOTF}" = yes; then
13451 if test "${with_m17n_flt}" != "no"; then
13455 if test "$PKG_CONFIG" = "no" ; then
13458 PKG_CONFIG_MIN_VERSION
=0.9.0
13459 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
13461 $as_echo_n "checking for m17n-flt... " >&6; }
13463 if "$PKG_CONFIG" --exists "m17n-flt" 2>&5 &&
13464 M17N_FLT_CFLAGS
=`"$PKG_CONFIG" --cflags "m17n-flt" 2>&5` &&
13465 M17N_FLT_LIBS
=`"$PKG_CONFIG" --libs "m17n-flt" 2>&5`; then
13472 M17N_FLT_CFLAGS
=`$as_echo "$M17N_FLT_CFLAGS" | sed -e "$edit_cflags"`
13473 M17N_FLT_LIBS
=`$as_echo "$M17N_FLT_LIBS" | sed -e 's,///*,/,g'`
13474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$M17N_FLT_CFLAGS' LIBS='$M17N_FLT_LIBS'" >&5
13475 $as_echo "yes CFLAGS='$M17N_FLT_CFLAGS' LIBS='$M17N_FLT_LIBS'" >&6; }
13478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13479 $as_echo "no" >&6; }
13482 ## If we have a custom action on failure, don't print errors, but
13483 ## do set a variable so people can do so. Do it in a subshell
13484 ## to capture any diagnostics in invoking pkg-config.
13485 M17N_FLT_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "m17n-flt") 2>&1`
13492 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13493 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13497 if test $succeeded = yes; then
13503 if test "$HAVE_M17N_FLT" = "yes"; then
13505 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
13517 ### End of font-backend (under X11) section.
13528 ### Use -lXpm if available, unless `--with-xpm=no'.
13529 ### mingw32 doesn't use -lXpm, since it loads the library dynamically.
13532 if test "${HAVE_W32}" = "yes" && test "${opsys}" = "cygwin"; then
13533 if test "${with_xpm}" != "no"; then
13534 SAVE_CPPFLAGS
="$CPPFLAGS"
13535 SAVE_LDFLAGS
="$LDFLAGS"
13536 CPPFLAGS
="$CPPFLAGS -I/usr/include/noX"
13537 LDFLAGS
="$LDFLAGS -L/usr/lib/noX"
13538 ac_fn_c_check_header_mongrel
"$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
13539 if test "x$ac_cv_header_X11_xpm_h" = x
""yes; then :
13540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToImage in -lXpm" >&5
13541 $as_echo_n "checking for XpmReadFileToImage in -lXpm... " >&6; }
13542 if test "${ac_cv_lib_Xpm_XpmReadFileToImage+set}" = set; then :
13543 $as_echo_n "(cached) " >&6
13545 ac_check_lib_save_LIBS
=$LIBS
13547 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13548 /* end confdefs.h. */
13550 /* Override any GCC internal prototype to avoid an error.
13551 Use char because int might match the return type of a GCC
13552 builtin and then its argument prototype would still apply. */
13556 char XpmReadFileToImage ();
13560 return XpmReadFileToImage ();
13565 if ac_fn_c_try_link
"$LINENO"; then :
13566 ac_cv_lib_Xpm_XpmReadFileToImage
=yes
13568 ac_cv_lib_Xpm_XpmReadFileToImage
=no
13570 rm -f core conftest.err conftest.
$ac_objext \
13571 conftest
$ac_exeext conftest.
$ac_ext
13572 LIBS
=$ac_check_lib_save_LIBS
13574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToImage" >&5
13575 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToImage" >&6; }
13576 if test "x$ac_cv_lib_Xpm_XpmReadFileToImage" = x
""yes; then :
13583 if test "${HAVE_XPM}" = "yes"; then
13584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
13585 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
13586 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13587 /* end confdefs.h. */
13588 #include "X11/xpm.h"
13589 #ifndef XpmReturnAllocPixels
13590 no_return_alloc_pixels
13594 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13595 $EGREP "no_return_alloc_pixels" >/dev
/null
2>&1; then :
13603 if test "${HAVE_XPM}" = "yes"; then
13604 REAL_CPPFLAGS
="$REAL_CPPFLAGS -I/usr/include/noX"
13605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13606 $as_echo "yes" >&6; }
13608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13609 $as_echo "no" >&6; }
13610 CPPFLAGS
="$SAVE_CPPFLAGS"
13611 LDFLAGS
="$SAVE_LDFLAGS"
13616 if test "${HAVE_XPM}" = "yes"; then
13618 $as_echo "#define HAVE_XPM 1" >>confdefs.h
13624 if test "${HAVE_X11}" = "yes"; then
13625 if test "${with_xpm}" != "no"; then
13626 ac_fn_c_check_header_mongrel
"$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
13627 if test "x$ac_cv_header_X11_xpm_h" = x
""yes; then :
13628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
13629 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
13630 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then :
13631 $as_echo_n "(cached) " >&6
13633 ac_check_lib_save_LIBS
=$LIBS
13634 LIBS
="-lXpm -lX11 $LIBS"
13635 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13636 /* end confdefs.h. */
13638 /* Override any GCC internal prototype to avoid an error.
13639 Use char because int might match the return type of a GCC
13640 builtin and then its argument prototype would still apply. */
13644 char XpmReadFileToPixmap ();
13648 return XpmReadFileToPixmap ();
13653 if ac_fn_c_try_link
"$LINENO"; then :
13654 ac_cv_lib_Xpm_XpmReadFileToPixmap
=yes
13656 ac_cv_lib_Xpm_XpmReadFileToPixmap
=no
13658 rm -f core conftest.err conftest.
$ac_objext \
13659 conftest
$ac_exeext conftest.
$ac_ext
13660 LIBS
=$ac_check_lib_save_LIBS
13662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
13663 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
13664 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x
""yes; then :
13671 if test "${HAVE_XPM}" = "yes"; then
13672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
13673 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
13674 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13675 /* end confdefs.h. */
13676 #include "X11/xpm.h"
13677 #ifndef XpmReturnAllocPixels
13678 no_return_alloc_pixels
13682 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13683 $EGREP "no_return_alloc_pixels" >/dev
/null
2>&1; then :
13691 if test "${HAVE_XPM}" = "yes"; then
13692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13693 $as_echo "yes" >&6; }
13695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13696 $as_echo "no" >&6; }
13701 if test "${HAVE_XPM}" = "yes"; then
13703 $as_echo "#define HAVE_XPM 1" >>confdefs.h
13709 ### FIXME: Perhaps regroup to minimize code duplication due to MinGW's
13710 ### slightly different requirements wrt image libraries (it doesn't
13711 ### use -lXpm because it loads the xpm shared library dynamically at
13713 if test "${opsys}" = "mingw32"; then
13714 if test "${with_xpm}" != "no"; then
13715 ac_fn_c_check_header_compile
"$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "
13718 if test "x$ac_cv_header_X11_xpm_h" = x
""yes; then :
13727 if test "${HAVE_XPM}" = "yes"; then
13729 $as_echo "#define HAVE_XPM 1" >>confdefs.h
13736 ### Use -ljpeg if available, unless `--with-jpeg=no'.
13737 ### mingw32 doesn't use -ljpeg, since it loads the library dynamically.
13740 if test "${opsys}" = "mingw32"; then
13741 if test "${with_jpeg}" != "no"; then
13742 ac_fn_c_check_header_mongrel
"$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
13743 if test "x$ac_cv_header_jerror_h" = x
""yes; then :
13751 if test "${HAVE_JPEG}" = "yes"; then
13752 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
13754 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13755 /* end confdefs.h. */
13756 #include <jpeglib.h>
13757 version=JPEG_LIB_VERSION
13760 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13761 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev
/null
2>&1; then :
13762 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
13765 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
13766 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13772 elif test "${HAVE_X11}" = "yes" ||
test "${HAVE_W32}" = "yes"; then
13773 if test "${with_jpeg}" != "no"; then
13774 ac_fn_c_check_header_mongrel
"$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
13775 if test "x$ac_cv_header_jerror_h" = x
""yes; then :
13776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
13777 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
13778 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then :
13779 $as_echo_n "(cached) " >&6
13781 ac_check_lib_save_LIBS
=$LIBS
13782 LIBS
="-ljpeg $LIBS"
13783 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13784 /* end confdefs.h. */
13786 /* Override any GCC internal prototype to avoid an error.
13787 Use char because int might match the return type of a GCC
13788 builtin and then its argument prototype would still apply. */
13792 char jpeg_destroy_compress ();
13796 return jpeg_destroy_compress ();
13801 if ac_fn_c_try_link
"$LINENO"; then :
13802 ac_cv_lib_jpeg_jpeg_destroy_compress
=yes
13804 ac_cv_lib_jpeg_jpeg_destroy_compress
=no
13806 rm -f core conftest.err conftest.
$ac_objext \
13807 conftest
$ac_exeext conftest.
$ac_ext
13808 LIBS
=$ac_check_lib_save_LIBS
13810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13811 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13812 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x
""yes; then :
13821 if test "${HAVE_JPEG}" = "yes"; then
13822 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
13824 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13825 /* end confdefs.h. */
13826 #include <jpeglib.h>
13827 version=JPEG_LIB_VERSION
13830 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13831 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev
/null
2>&1; then :
13832 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
13835 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
13836 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13842 if test "${HAVE_JPEG}" = "yes"; then
13848 ### Use -lpng if available, unless `--with-png=no'.
13849 ### mingw32 doesn't use -lpng, since it loads the library dynamically.
13852 if test "${opsys}" = "mingw32"; then
13853 if test "${with_png}" != "no"; then
13854 ac_fn_c_check_header_mongrel
"$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
13855 if test "x$ac_cv_header_png_h" = x
""yes; then :
13863 if test "${HAVE_PNG}" = "yes"; then
13865 $as_echo "#define HAVE_PNG 1" >>confdefs.h
13868 ac_fn_c_check_decl
"$LINENO" "png_longjmp" "ac_cv_have_decl_png_longjmp" "#ifdef HAVE_LIBPNG_PNG_H
13869 # include <libpng/png.h>
13875 if test "x$ac_cv_have_decl_png_longjmp" = x
""yes; then :
13879 $as_echo "#define PNG_DEPSTRUCT /**/" >>confdefs.h
13884 elif test "${HAVE_X11}" = "yes" ||
test "${HAVE_W32}" = "yes"; then
13885 if test "${with_png}" != "no"; then
13886 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13887 # in /usr/include/libpng.
13888 for ac_header
in png.h libpng
/png.h
13890 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13891 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13892 eval as_val
=\$
$as_ac_Header
13893 if test "x$as_val" = x
""yes; then :
13894 cat >>confdefs.h
<<_ACEOF
13895 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13902 if test "$ac_cv_header_png_h" = yes ||
test "$ac_cv_header_libpng_png_h" = yes ; then
13903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
13904 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
13905 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then :
13906 $as_echo_n "(cached) " >&6
13908 ac_check_lib_save_LIBS
=$LIBS
13909 LIBS
="-lpng -lz -lm $LIBS"
13910 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13911 /* end confdefs.h. */
13913 /* Override any GCC internal prototype to avoid an error.
13914 Use char because int might match the return type of a GCC
13915 builtin and then its argument prototype would still apply. */
13919 char png_get_channels ();
13923 return png_get_channels ();
13928 if ac_fn_c_try_link
"$LINENO"; then :
13929 ac_cv_lib_png_png_get_channels
=yes
13931 ac_cv_lib_png_png_get_channels
=no
13933 rm -f core conftest.err conftest.
$ac_objext \
13934 conftest
$ac_exeext conftest.
$ac_ext
13935 LIBS
=$ac_check_lib_save_LIBS
13937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
13938 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
13939 if test "x$ac_cv_lib_png_png_get_channels" = x
""yes; then :
13946 if test "${HAVE_PNG}" = "yes"; then
13948 $as_echo "#define HAVE_PNG 1" >>confdefs.h
13950 LIBPNG
="-lpng -lz -lm"
13952 ac_fn_c_check_decl
"$LINENO" "png_longjmp" "ac_cv_have_decl_png_longjmp" "#ifdef HAVE_LIBPNG_PNG_H
13953 # include <libpng/png.h>
13959 if test "x$ac_cv_have_decl_png_longjmp" = x
""yes; then :
13963 $as_echo "#define PNG_DEPSTRUCT /**/" >>confdefs.h
13973 if test "${with_zlib}" != "no"; then
13975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inflateEnd" >&5
13976 $as_echo_n "checking for library containing inflateEnd... " >&6; }
13977 if test "${ac_cv_search_inflateEnd+set}" = set; then :
13978 $as_echo_n "(cached) " >&6
13980 ac_func_search_save_LIBS
=$LIBS
13981 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13982 /* end confdefs.h. */
13984 /* Override any GCC internal prototype to avoid an error.
13985 Use char because int might match the return type of a GCC
13986 builtin and then its argument prototype would still apply. */
13990 char inflateEnd ();
13994 return inflateEnd ();
13999 for ac_lib
in '' z
; do
14000 if test -z "$ac_lib"; then
14001 ac_res
="none required"
14004 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
14006 if ac_fn_c_try_link
"$LINENO"; then :
14007 ac_cv_search_inflateEnd
=$ac_res
14009 rm -f core conftest.err conftest.
$ac_objext \
14011 if test "${ac_cv_search_inflateEnd+set}" = set; then :
14015 if test "${ac_cv_search_inflateEnd+set}" = set; then :
14018 ac_cv_search_inflateEnd
=no
14020 rm conftest.
$ac_ext
14021 LIBS
=$ac_func_search_save_LIBS
14023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inflateEnd" >&5
14024 $as_echo "$ac_cv_search_inflateEnd" >&6; }
14025 ac_res
=$ac_cv_search_inflateEnd
14026 if test "$ac_res" != no
; then :
14027 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
14032 case $ac_cv_search_inflateEnd in
14033 -*) LIBZ
=$ac_cv_search_inflateEnd ;;
14036 if test "${HAVE_ZLIB}" = "yes"; then
14038 $as_echo "#define HAVE_ZLIB 1" >>confdefs.h
14040 ### mingw32 doesn't use -lz, since it loads the library dynamically.
14041 if test "${opsys}" = "mingw32"; then
14048 ### Use -ltiff if available, unless `--with-tiff=no'.
14049 ### mingw32 doesn't use -ltiff, since it loads the library dynamically.
14052 if test "${opsys}" = "mingw32"; then
14053 if test "${with_tiff}" != "no"; then
14054 ac_fn_c_check_header_mongrel
"$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
14055 if test "x$ac_cv_header_tiffio_h" = x
""yes; then :
14063 if test "${HAVE_TIFF}" = "yes"; then
14065 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
14068 elif test "${HAVE_X11}" = "yes" ||
test "${HAVE_W32}" = "yes"; then
14069 if test "${with_tiff}" != "no"; then
14070 ac_fn_c_check_header_mongrel
"$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
14071 if test "x$ac_cv_header_tiffio_h" = x
""yes; then :
14073 # At least one tiff package requires the jpeg library.
14074 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
14075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
14076 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
14077 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then :
14078 $as_echo_n "(cached) " >&6
14080 ac_check_lib_save_LIBS
=$LIBS
14081 LIBS
="-ltiff $tifflibs $LIBS"
14082 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14083 /* end confdefs.h. */
14085 /* Override any GCC internal prototype to avoid an error.
14086 Use char because int might match the return type of a GCC
14087 builtin and then its argument prototype would still apply. */
14091 char TIFFGetVersion ();
14095 return TIFFGetVersion ();
14100 if ac_fn_c_try_link
"$LINENO"; then :
14101 ac_cv_lib_tiff_TIFFGetVersion
=yes
14103 ac_cv_lib_tiff_TIFFGetVersion
=no
14105 rm -f core conftest.err conftest.
$ac_objext \
14106 conftest
$ac_exeext conftest.
$ac_ext
14107 LIBS
=$ac_check_lib_save_LIBS
14109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
14110 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
14111 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x
""yes; then :
14120 if test "${HAVE_TIFF}" = "yes"; then
14122 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
14129 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
14130 ### mingw32 doesn't use -lgif/-lungif, since it loads the library dynamically.
14133 if test "${opsys}" = "mingw32"; then
14134 if test "${with_gif}" != "no"; then
14135 ac_fn_c_check_header_mongrel
"$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
14136 if test "x$ac_cv_header_gif_lib_h" = x
""yes; then :
14144 if test "${HAVE_GIF}" = "yes"; then
14146 $as_echo "#define HAVE_GIF 1" >>confdefs.h
14149 elif test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no" \
14150 ||
test "${HAVE_W32}" = "yes"; then
14151 ac_fn_c_check_header_mongrel
"$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
14152 if test "x$ac_cv_header_gif_lib_h" = x
""yes; then :
14153 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
14154 # Earlier versions can crash Emacs, but version 5.0 removes EGifPutExtensionLast.
14155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GifMakeMapObject in -lgif" >&5
14156 $as_echo_n "checking for GifMakeMapObject in -lgif... " >&6; }
14157 if test "${ac_cv_lib_gif_GifMakeMapObject+set}" = set; then :
14158 $as_echo_n "(cached) " >&6
14160 ac_check_lib_save_LIBS
=$LIBS
14162 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14163 /* end confdefs.h. */
14165 /* Override any GCC internal prototype to avoid an error.
14166 Use char because int might match the return type of a GCC
14167 builtin and then its argument prototype would still apply. */
14171 char GifMakeMapObject ();
14175 return GifMakeMapObject ();
14180 if ac_fn_c_try_link
"$LINENO"; then :
14181 ac_cv_lib_gif_GifMakeMapObject
=yes
14183 ac_cv_lib_gif_GifMakeMapObject
=no
14185 rm -f core conftest.err conftest.
$ac_objext \
14186 conftest
$ac_exeext conftest.
$ac_ext
14187 LIBS
=$ac_check_lib_save_LIBS
14189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_GifMakeMapObject" >&5
14190 $as_echo "$ac_cv_lib_gif_GifMakeMapObject" >&6; }
14191 if test "x$ac_cv_lib_gif_GifMakeMapObject" = x
""yes; then :
14194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
14195 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
14196 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then :
14197 $as_echo_n "(cached) " >&6
14199 ac_check_lib_save_LIBS
=$LIBS
14201 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14202 /* end confdefs.h. */
14204 /* Override any GCC internal prototype to avoid an error.
14205 Use char because int might match the return type of a GCC
14206 builtin and then its argument prototype would still apply. */
14210 char EGifPutExtensionLast ();
14214 return EGifPutExtensionLast ();
14219 if ac_fn_c_try_link
"$LINENO"; then :
14220 ac_cv_lib_gif_EGifPutExtensionLast
=yes
14222 ac_cv_lib_gif_EGifPutExtensionLast
=no
14224 rm -f core conftest.err conftest.
$ac_objext \
14225 conftest
$ac_exeext conftest.
$ac_ext
14226 LIBS
=$ac_check_lib_save_LIBS
14228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
14229 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
14230 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x
""yes; then :
14242 if test "$HAVE_GIF" = yes; then
14244 elif test "$HAVE_GIF" = maybe
; then
14245 # If gif_lib.h but no libgif, try libungif.
14246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
14247 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
14248 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then :
14249 $as_echo_n "(cached) " >&6
14251 ac_check_lib_save_LIBS
=$LIBS
14252 LIBS
="-lungif $LIBS"
14253 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14254 /* end confdefs.h. */
14256 /* Override any GCC internal prototype to avoid an error.
14257 Use char because int might match the return type of a GCC
14258 builtin and then its argument prototype would still apply. */
14262 char EGifPutExtensionLast ();
14266 return EGifPutExtensionLast ();
14271 if ac_fn_c_try_link
"$LINENO"; then :
14272 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
14274 ac_cv_lib_ungif_EGifPutExtensionLast
=no
14276 rm -f core conftest.err conftest.
$ac_objext \
14277 conftest
$ac_exeext conftest.
$ac_ext
14278 LIBS
=$ac_check_lib_save_LIBS
14280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
14281 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
14282 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x
""yes; then :
14288 test "$HAVE_GIF" = yes && LIBGIF
=-lungif
14291 if test "${HAVE_GIF}" = "yes"; then
14293 $as_echo "#define HAVE_GIF 1" >>confdefs.h
14299 if test "${HAVE_X11}" = "yes"; then
14302 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
14303 MISSING
="libXpm" && WITH_NO
="--with-xpm=no"
14304 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
14305 MISSING
="$MISSING libjpeg" && WITH_NO
="$WITH_NO --with-jpeg=no"
14306 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
14307 MISSING
="$MISSING libpng" && WITH_NO
="$WITH_NO --with-png=no"
14308 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
14309 MISSING
="$MISSING libgif/libungif" && WITH_NO
="$WITH_NO --with-gif=no"
14310 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
14311 MISSING
="$MISSING libtiff" && WITH_NO
="$WITH_NO --with-tiff=no"
14313 if test "X${MISSING}" != X
; then
14314 as_fn_error
"The following required libraries were not found:
14316 Maybe some development libraries/packages are missing?
14317 If you don't want to link with them give
14319 as options to configure" "$LINENO" 5
14323 ### Use -lgpm if available, unless `--with-gpm=no'.
14326 if test "${with_gpm}" != "no"; then
14327 ac_fn_c_check_header_mongrel
"$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
14328 if test "x$ac_cv_header_gpm_h" = x
""yes; then :
14329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
14330 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
14331 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then :
14332 $as_echo_n "(cached) " >&6
14334 ac_check_lib_save_LIBS
=$LIBS
14336 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14337 /* end confdefs.h. */
14339 /* Override any GCC internal prototype to avoid an error.
14340 Use char because int might match the return type of a GCC
14341 builtin and then its argument prototype would still apply. */
14349 return Gpm_Open ();
14354 if ac_fn_c_try_link
"$LINENO"; then :
14355 ac_cv_lib_gpm_Gpm_Open
=yes
14357 ac_cv_lib_gpm_Gpm_Open
=no
14359 rm -f core conftest.err conftest.
$ac_objext \
14360 conftest
$ac_exeext conftest.
$ac_ext
14361 LIBS
=$ac_check_lib_save_LIBS
14363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
14364 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
14365 if test "x$ac_cv_lib_gpm_Gpm_Open" = x
""yes; then :
14373 if test "${HAVE_GPM}" = "yes"; then
14375 $as_echo "#define HAVE_GPM 1" >>confdefs.h
14387 ### Use NeXTstep API to implement GUI.
14388 if test "${HAVE_NS}" = "yes"; then
14390 $as_echo "#define HAVE_NS 1" >>confdefs.h
14392 if test "${NS_IMPL_COCOA}" = "yes"; then
14394 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
14397 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
14399 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
14401 # See also .m.o rule in Makefile.in */
14402 # FIXME: are all these flags really needed? Document here why. */
14403 GNUSTEP_CFLAGS
="-D_REENTRANT -fPIC -fno-strict-aliasing -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
14404 ## Extra CFLAGS applied to src/*.m files.
14405 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"
14410 ### Use session management (-lSM -lICE) if available
14413 if test "${HAVE_X11}" = "yes"; then
14414 ac_fn_c_check_header_mongrel
"$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
14415 if test "x$ac_cv_header_X11_SM_SMlib_h" = x
""yes; then :
14416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
14417 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
14418 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then :
14419 $as_echo_n "(cached) " >&6
14421 ac_check_lib_save_LIBS
=$LIBS
14422 LIBS
="-lSM -lICE $LIBS"
14423 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14424 /* end confdefs.h. */
14426 /* Override any GCC internal prototype to avoid an error.
14427 Use char because int might match the return type of a GCC
14428 builtin and then its argument prototype would still apply. */
14432 char SmcOpenConnection ();
14436 return SmcOpenConnection ();
14441 if ac_fn_c_try_link
"$LINENO"; then :
14442 ac_cv_lib_SM_SmcOpenConnection
=yes
14444 ac_cv_lib_SM_SmcOpenConnection
=no
14446 rm -f core conftest.err conftest.
$ac_objext \
14447 conftest
$ac_exeext conftest.
$ac_ext
14448 LIBS
=$ac_check_lib_save_LIBS
14450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
14451 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
14452 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x
""yes; then :
14460 if test "${HAVE_X_SM}" = "yes"; then
14462 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
14464 LIBXSM
="-lSM -lICE"
14467 *) LIBS
="$LIBXSM $LIBS" ;;
14473 ### Use XRandr (-lXrandr) if available
14475 if test "${HAVE_X11}" = "yes"; then
14476 XRANDR_REQUIRED
=1.2.2
14477 XRANDR_MODULES
="xrandr >= $XRANDR_REQUIRED"
14481 if test "$PKG_CONFIG" = "no" ; then
14484 PKG_CONFIG_MIN_VERSION
=0.9.0
14485 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $XRANDR_MODULES" >&5
14487 $as_echo_n "checking for $XRANDR_MODULES... " >&6; }
14489 if "$PKG_CONFIG" --exists "$XRANDR_MODULES" 2>&5 &&
14490 XRANDR_CFLAGS
=`"$PKG_CONFIG" --cflags "$XRANDR_MODULES" 2>&5` &&
14491 XRANDR_LIBS
=`"$PKG_CONFIG" --libs "$XRANDR_MODULES" 2>&5`; then
14498 XRANDR_CFLAGS
=`$as_echo "$XRANDR_CFLAGS" | sed -e "$edit_cflags"`
14499 XRANDR_LIBS
=`$as_echo "$XRANDR_LIBS" | sed -e 's,///*,/,g'`
14500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$XRANDR_CFLAGS' LIBS='$XRANDR_LIBS'" >&5
14501 $as_echo "yes CFLAGS='$XRANDR_CFLAGS' LIBS='$XRANDR_LIBS'" >&6; }
14504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14505 $as_echo "no" >&6; }
14508 ## If we have a custom action on failure, don't print errors, but
14509 ## do set a variable so people can do so. Do it in a subshell
14510 ## to capture any diagnostics in invoking pkg-config.
14511 XRANDR_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "$XRANDR_MODULES") 2>&1`
14518 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14519 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14523 if test $succeeded = yes; then
14529 if test $HAVE_XRANDR = no
; then
14530 # Test old way in case pkg-config doesn't have it (older machines).
14531 ac_fn_c_check_header_mongrel
"$LINENO" "X11/extensions/Xrandr.h" "ac_cv_header_X11_extensions_Xrandr_h" "$ac_includes_default"
14532 if test "x$ac_cv_header_X11_extensions_Xrandr_h" = x
""yes; then :
14533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRRGetScreenResources in -lXrandr" >&5
14534 $as_echo_n "checking for XRRGetScreenResources in -lXrandr... " >&6; }
14535 if test "${ac_cv_lib_Xrandr_XRRGetScreenResources+set}" = set; then :
14536 $as_echo_n "(cached) " >&6
14538 ac_check_lib_save_LIBS
=$LIBS
14539 LIBS
="-lXrandr $LIBS"
14540 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14541 /* end confdefs.h. */
14543 /* Override any GCC internal prototype to avoid an error.
14544 Use char because int might match the return type of a GCC
14545 builtin and then its argument prototype would still apply. */
14549 char XRRGetScreenResources ();
14553 return XRRGetScreenResources ();
14558 if ac_fn_c_try_link
"$LINENO"; then :
14559 ac_cv_lib_Xrandr_XRRGetScreenResources
=yes
14561 ac_cv_lib_Xrandr_XRRGetScreenResources
=no
14563 rm -f core conftest.err conftest.
$ac_objext \
14564 conftest
$ac_exeext conftest.
$ac_ext
14565 LIBS
=$ac_check_lib_save_LIBS
14567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrandr_XRRGetScreenResources" >&5
14568 $as_echo "$ac_cv_lib_Xrandr_XRRGetScreenResources" >&6; }
14569 if test "x$ac_cv_lib_Xrandr_XRRGetScreenResources" = x
""yes; then :
14576 if test $HAVE_XRANDR = yes; then
14577 XRANDR_LIBS
=-lXrandr
14581 if test $HAVE_XRANDR = yes; then
14582 SAVE_CFLAGS
="$CFLAGS"
14584 CFLAGS
="$XRANDR_CFLAGS $CFLAGS"
14585 LIBS
="$XRANDR_LIBS $LIBS"
14586 for ac_func
in XRRGetOutputPrimary XRRGetScreenResourcesCurrent
14588 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14589 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
14590 eval as_val
=\$
$as_ac_var
14591 if test "x$as_val" = x
""yes; then :
14592 cat >>confdefs.h
<<_ACEOF
14593 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14599 CFLAGS
="$SAVE_CFLAGS"
14603 $as_echo "#define HAVE_XRANDR 1" >>confdefs.h
14608 ### Use Xinerama (-lXinerama) if available
14610 if test "${HAVE_X11}" = "yes"; then
14611 XINERAMA_REQUIRED
=1.0.2
14612 XINERAMA_MODULES
="xinerama >= $XINERAMA_REQUIRED"
14616 if test "$PKG_CONFIG" = "no" ; then
14619 PKG_CONFIG_MIN_VERSION
=0.9.0
14620 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $XINERAMA_MODULES" >&5
14622 $as_echo_n "checking for $XINERAMA_MODULES... " >&6; }
14624 if "$PKG_CONFIG" --exists "$XINERAMA_MODULES" 2>&5 &&
14625 XINERAMA_CFLAGS
=`"$PKG_CONFIG" --cflags "$XINERAMA_MODULES" 2>&5` &&
14626 XINERAMA_LIBS
=`"$PKG_CONFIG" --libs "$XINERAMA_MODULES" 2>&5`; then
14633 XINERAMA_CFLAGS
=`$as_echo "$XINERAMA_CFLAGS" | sed -e "$edit_cflags"`
14634 XINERAMA_LIBS
=`$as_echo "$XINERAMA_LIBS" | sed -e 's,///*,/,g'`
14635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$XINERAMA_CFLAGS' LIBS='$XINERAMA_LIBS'" >&5
14636 $as_echo "yes CFLAGS='$XINERAMA_CFLAGS' LIBS='$XINERAMA_LIBS'" >&6; }
14639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14640 $as_echo "no" >&6; }
14643 ## If we have a custom action on failure, don't print errors, but
14644 ## do set a variable so people can do so. Do it in a subshell
14645 ## to capture any diagnostics in invoking pkg-config.
14646 XINERAMA_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "$XINERAMA_MODULES") 2>&1`
14653 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14654 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14658 if test $succeeded = yes; then
14664 if test $HAVE_XINERAMA = no
; then
14665 # Test old way in case pkg-config doesn't have it (older machines).
14666 ac_fn_c_check_header_mongrel
"$LINENO" "X11/extensions/Xinerama.h" "ac_cv_header_X11_extensions_Xinerama_h" "$ac_includes_default"
14667 if test "x$ac_cv_header_X11_extensions_Xinerama_h" = x
""yes; then :
14668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XineramaQueryExtension in -lXinerama" >&5
14669 $as_echo_n "checking for XineramaQueryExtension in -lXinerama... " >&6; }
14670 if test "${ac_cv_lib_Xinerama_XineramaQueryExtension+set}" = set; then :
14671 $as_echo_n "(cached) " >&6
14673 ac_check_lib_save_LIBS
=$LIBS
14674 LIBS
="-lXinerama $LIBS"
14675 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14676 /* end confdefs.h. */
14678 /* Override any GCC internal prototype to avoid an error.
14679 Use char because int might match the return type of a GCC
14680 builtin and then its argument prototype would still apply. */
14684 char XineramaQueryExtension ();
14688 return XineramaQueryExtension ();
14693 if ac_fn_c_try_link
"$LINENO"; then :
14694 ac_cv_lib_Xinerama_XineramaQueryExtension
=yes
14696 ac_cv_lib_Xinerama_XineramaQueryExtension
=no
14698 rm -f core conftest.err conftest.
$ac_objext \
14699 conftest
$ac_exeext conftest.
$ac_ext
14700 LIBS
=$ac_check_lib_save_LIBS
14702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xinerama_XineramaQueryExtension" >&5
14703 $as_echo "$ac_cv_lib_Xinerama_XineramaQueryExtension" >&6; }
14704 if test "x$ac_cv_lib_Xinerama_XineramaQueryExtension" = x
""yes; then :
14711 if test $HAVE_XINERAMA = yes; then
14712 XINERAMA_LIBS
=-lXinerama
14716 if test $HAVE_XINERAMA = yes; then
14718 $as_echo "#define HAVE_XINERAMA 1" >>confdefs.h
14724 ### Use libxml (-lxml2) if available
14725 ### mingw32 doesn't use -lxml2, since it loads the library dynamically.
14727 if test "${with_xml2}" != "no"; then
14728 ### I'm not sure what the version number should be, so I just guessed.
14732 if test "$PKG_CONFIG" = "no" ; then
14735 PKG_CONFIG_MIN_VERSION
=0.9.0
14736 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.6.17" >&5
14738 $as_echo_n "checking for libxml-2.0 > 2.6.17... " >&6; }
14740 if "$PKG_CONFIG" --exists "libxml-2.0 > 2.6.17" 2>&5 &&
14741 LIBXML2_CFLAGS
=`"$PKG_CONFIG" --cflags "libxml-2.0 > 2.6.17" 2>&5` &&
14742 LIBXML2_LIBS
=`"$PKG_CONFIG" --libs "libxml-2.0 > 2.6.17" 2>&5`; then
14749 LIBXML2_CFLAGS
=`$as_echo "$LIBXML2_CFLAGS" | sed -e "$edit_cflags"`
14750 LIBXML2_LIBS
=`$as_echo "$LIBXML2_LIBS" | sed -e 's,///*,/,g'`
14751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBXML2_CFLAGS' LIBS='$LIBXML2_LIBS'" >&5
14752 $as_echo "yes CFLAGS='$LIBXML2_CFLAGS' LIBS='$LIBXML2_LIBS'" >&6; }
14755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14756 $as_echo "no" >&6; }
14759 ## If we have a custom action on failure, don't print errors, but
14760 ## do set a variable so people can do so. Do it in a subshell
14761 ## to capture any diagnostics in invoking pkg-config.
14762 LIBXML2_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "libxml-2.0 > 2.6.17") 2>&1`
14769 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14770 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14774 if test $succeeded = yes; then
14780 # Built-in libxml2 on OS X 10.8 lacks libxml-2.0.pc.
14781 if test "${HAVE_LIBXML2}" != "yes" -a "$opsys" = "darwin"; then
14782 SAVE_CPPFLAGS
="$CPPFLAGS"
14783 CPPFLAGS
="$CPPFLAGS -I/usr/include/libxml2"
14784 ac_fn_c_check_header_mongrel
"$LINENO" "libxml/HTMLparser.h" "ac_cv_header_libxml_HTMLparser_h" "$ac_includes_default"
14785 if test "x$ac_cv_header_libxml_HTMLparser_h" = x
""yes; then :
14786 ac_fn_c_check_decl
"$LINENO" "HTML_PARSE_RECOVER" "ac_cv_have_decl_HTML_PARSE_RECOVER" "#include <libxml/HTMLparser.h>
14788 if test "x$ac_cv_have_decl_HTML_PARSE_RECOVER" = x
""yes; then :
14795 CPPFLAGS
="$SAVE_CPPFLAGS"
14796 if test "${HAVE_LIBXML2}" = "yes"; then
14797 LIBXML2_LIBS
="-lxml2"
14798 LIBXML2_CFLAGS
="-I/usr/include/libxml2"
14801 if test "${HAVE_LIBXML2}" = "yes"; then
14802 if test "${opsys}" != "mingw32"; then
14803 LIBS
="$LIBXML2_LIBS $LIBS"
14804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5
14805 $as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; }
14806 if test "${ac_cv_lib_xml2_htmlReadMemory+set}" = set; then :
14807 $as_echo_n "(cached) " >&6
14809 ac_check_lib_save_LIBS
=$LIBS
14810 LIBS
="-lxml2 $LIBS"
14811 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14812 /* end confdefs.h. */
14814 /* Override any GCC internal prototype to avoid an error.
14815 Use char because int might match the return type of a GCC
14816 builtin and then its argument prototype would still apply. */
14820 char htmlReadMemory ();
14824 return htmlReadMemory ();
14829 if ac_fn_c_try_link
"$LINENO"; then :
14830 ac_cv_lib_xml2_htmlReadMemory
=yes
14832 ac_cv_lib_xml2_htmlReadMemory
=no
14834 rm -f core conftest.err conftest.
$ac_objext \
14835 conftest
$ac_exeext conftest.
$ac_ext
14836 LIBS
=$ac_check_lib_save_LIBS
14838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5
14839 $as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; }
14840 if test "x$ac_cv_lib_xml2_htmlReadMemory" = x
""yes; then :
14849 if test "${HAVE_LIBXML2}" = "yes"; then
14851 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
14862 # If netdb.h doesn't declare h_errno, we must declare it by hand.
14863 # On MinGW, that is provided by nt/inc/sys/socket.h and w32.c.
14864 if test "${opsys}" = "mingw32"; then
14865 emacs_cv_netdb_declares_h_errno
=yes
14867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
14868 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
14869 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then :
14870 $as_echo_n "(cached) " >&6
14872 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14873 /* end confdefs.h. */
14883 if ac_fn_c_try_link
"$LINENO"; then :
14884 emacs_cv_netdb_declares_h_errno
=yes
14886 emacs_cv_netdb_declares_h_errno
=no
14888 rm -f core conftest.err conftest.
$ac_objext \
14889 conftest
$ac_exeext conftest.
$ac_ext
14891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
14892 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
14893 if test $emacs_cv_netdb_declares_h_errno = yes; then
14895 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
14899 # sqrt and other floating-point functions such as fmod and frexp
14900 # are found in -lm on most systems, but mingw32 doesn't use -lm.
14901 if test "${opsys}" != "mingw32"; then
14902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
14903 $as_echo_n "checking for sqrt in -lm... " >&6; }
14904 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
14905 $as_echo_n "(cached) " >&6
14907 ac_check_lib_save_LIBS
=$LIBS
14909 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14910 /* end confdefs.h. */
14912 /* Override any GCC internal prototype to avoid an error.
14913 Use char because int might match the return type of a GCC
14914 builtin and then its argument prototype would still apply. */
14927 if ac_fn_c_try_link
"$LINENO"; then :
14928 ac_cv_lib_m_sqrt
=yes
14930 ac_cv_lib_m_sqrt
=no
14932 rm -f core conftest.err conftest.
$ac_objext \
14933 conftest
$ac_exeext conftest.
$ac_ext
14934 LIBS
=$ac_check_lib_save_LIBS
14936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
14937 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
14938 if test "x$ac_cv_lib_m_sqrt" = x
""yes; then :
14939 cat >>confdefs.h
<<_ACEOF
14940 #define HAVE_LIBM 1
14949 # Check for mail-locking functions in a "mail" library. Probably this should
14950 # have the same check as for liblockfile below.
14951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
14952 $as_echo_n "checking for maillock in -lmail... " >&6; }
14953 if test "${ac_cv_lib_mail_maillock+set}" = set; then :
14954 $as_echo_n "(cached) " >&6
14956 ac_check_lib_save_LIBS
=$LIBS
14957 LIBS
="-lmail $LIBS"
14958 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14959 /* end confdefs.h. */
14961 /* Override any GCC internal prototype to avoid an error.
14962 Use char because int might match the return type of a GCC
14963 builtin and then its argument prototype would still apply. */
14971 return maillock ();
14976 if ac_fn_c_try_link
"$LINENO"; then :
14977 ac_cv_lib_mail_maillock
=yes
14979 ac_cv_lib_mail_maillock
=no
14981 rm -f core conftest.err conftest.
$ac_objext \
14982 conftest
$ac_exeext conftest.
$ac_ext
14983 LIBS
=$ac_check_lib_save_LIBS
14985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
14986 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
14987 if test "x$ac_cv_lib_mail_maillock" = x
""yes; then :
14993 if test $have_mail = yes; then
14995 LIBS
="$LIBS_MAIL $LIBS"
14997 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
15002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
15003 $as_echo_n "checking for maillock in -llockfile... " >&6; }
15004 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then :
15005 $as_echo_n "(cached) " >&6
15007 ac_check_lib_save_LIBS
=$LIBS
15008 LIBS
="-llockfile $LIBS"
15009 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15010 /* end confdefs.h. */
15012 /* Override any GCC internal prototype to avoid an error.
15013 Use char because int might match the return type of a GCC
15014 builtin and then its argument prototype would still apply. */
15022 return maillock ();
15027 if ac_fn_c_try_link
"$LINENO"; then :
15028 ac_cv_lib_lockfile_maillock
=yes
15030 ac_cv_lib_lockfile_maillock
=no
15032 rm -f core conftest.err conftest.
$ac_objext \
15033 conftest
$ac_exeext conftest.
$ac_ext
15034 LIBS
=$ac_check_lib_save_LIBS
15036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
15037 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
15038 if test "x$ac_cv_lib_lockfile_maillock" = x
""yes; then :
15044 if test $have_lockfile = yes; then
15045 LIBS_MAIL
=-llockfile
15046 LIBS
="$LIBS_MAIL $LIBS"
15048 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
15051 # If we have the shared liblockfile, assume we must use it for mail
15052 # locking (e.g. Debian). If we couldn't link against liblockfile
15053 # (no liblockfile.a installed), ensure that we don't need to.
15054 # Extract the first word of "liblockfile.so", so it can be a program name with args.
15055 set dummy liblockfile.so
; ac_word
=$2
15056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15057 $as_echo_n "checking for $ac_word... " >&6; }
15058 if test "${ac_cv_prog_liblockfile+set}" = set; then :
15059 $as_echo_n "(cached) " >&6
15061 if test -n "$liblockfile"; then
15062 ac_cv_prog_liblockfile
="$liblockfile" # Let the user override the test.
15064 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
15065 as_dummy
="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
15066 for as_dir
in $as_dummy
15069 test -z "$as_dir" && as_dir
=.
15070 for ac_exec_ext
in '' $ac_executable_extensions; do
15071 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15072 ac_cv_prog_liblockfile
="yes"
15073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15080 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile
="no"
15083 liblockfile
=$ac_cv_prog_liblockfile
15084 if test -n "$liblockfile"; then
15085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
15086 $as_echo "$liblockfile" >&6; }
15088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15089 $as_echo "no" >&6; }
15093 if test $ac_cv_prog_liblockfile = yes; then
15094 as_fn_error
"Shared liblockfile found but can't link against it.
15095 This probably means that movemail could lose mail.
15096 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
15104 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
15105 ## interlock access to the mail spool. The alternative is a lock file named
15106 ## /usr/spool/mail/$USER.lock.
15109 aix4-2
) mail_lock
="lockf" ;;
15111 gnu|freebsd|dragonfly|netbsd|openbsd|darwin|irix6-5
) mail_lock
="flock" ;;
15113 ## On GNU/Linux systems, both methods are used by various mail programs.
15114 ## I assume most people are using newer mailers that have heard of flock.
15115 ## Change this if you need to.
15116 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
15117 ## configure gets the right answers, and that means *NOT* using flock.
15118 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
15119 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
15120 ## Debian maintainer hasn't provided a clean fix for Emacs.
15121 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
15122 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
15123 ## correct logic. -- fx
15124 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
15125 ## liblockfile is a Free Software replacement for libmail, used on
15126 ## Debian systems and elsewhere. -rfr.
15129 if test $have_mail = yes ||
test $have_lockfile = yes; then
15130 test $ac_cv_header_maillock_h = yes && mail_lock
=no
15135 mail_lock
="none-needed" ;;
15139 case "$mail_lock" in
15141 $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
15145 $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
15150 *) BLESSMAIL_TARGET
="need-blessmail" ;;
15155 for ac_func
in accept4 gethostname \
15156 getrusage get_current_dir_name \
15158 select getpagesize setlocale \
15159 getrlimit setrlimit shutdown getaddrinfo \
15160 strsignal setitimer \
15161 sendto recvfrom getsockname getpeername getifaddrs freeifaddrs \
15162 gai_strerror getline getdelim sync \
15163 difftime posix_memalign \
15164 getpwent endpwent getgrent endgrent \
15166 cfmakeraw cfsetspeed copysign __executable_start log2
15168 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15169 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
15170 eval as_val
=\$
$as_ac_var
15171 if test "x$as_val" = x
""yes; then :
15172 cat >>confdefs.h
<<_ACEOF
15173 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15180 ## Eric Backus <ericb@lsid.hp.com> says, HP-UX 9.x on HP 700 machines
15181 ## has a broken `rint' in some library versions including math library
15182 ## version number A.09.05.
15183 ## You can fix the math library by installing patch number PHSS_4630.
15184 ## But we can fix it more reliably for Emacs by just not using rint.
15185 ## We also skip HAVE_RANDOM - see comments in src/conf_post.h.
15188 *) for ac_func
in random rint
15190 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15191 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
15192 eval as_val
=\$
$as_ac_var
15193 if test "x$as_val" = x
""yes; then :
15194 cat >>confdefs.h
<<_ACEOF
15195 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unwind_init" >&5
15204 $as_echo_n "checking for __builtin_unwind_init... " >&6; }
15205 if test "${emacs_cv_func___builtin_unwind_init+set}" = set; then :
15206 $as_echo_n "(cached) " >&6
15208 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15209 /* end confdefs.h. */
15214 __builtin_unwind_init ();
15219 if ac_fn_c_try_link
"$LINENO"; then :
15220 emacs_cv_func___builtin_unwind_init
=yes
15222 emacs_cv_func___builtin_unwind_init
=no
15224 rm -f core conftest.err conftest.
$ac_objext \
15225 conftest
$ac_exeext conftest.
$ac_ext
15227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func___builtin_unwind_init" >&5
15228 $as_echo "$emacs_cv_func___builtin_unwind_init" >&6; }
15229 if test $emacs_cv_func___builtin_unwind_init = yes; then
15231 $as_echo "#define HAVE___BUILTIN_UNWIND_INIT 1" >>confdefs.h
15239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
15240 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
15241 if test "${ac_cv_sys_largefile_source+set}" = set; then :
15242 $as_echo_n "(cached) " >&6
15245 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15246 /* end confdefs.h. */
15247 #include <sys/types.h> /* for off_t */
15252 int (*fp) (FILE *, off_t, int) = fseeko;
15253 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
15258 if ac_fn_c_try_link
"$LINENO"; then :
15259 ac_cv_sys_largefile_source
=no
; break
15261 rm -f core conftest.err conftest.
$ac_objext \
15262 conftest
$ac_exeext conftest.
$ac_ext
15263 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15264 /* end confdefs.h. */
15265 #define _LARGEFILE_SOURCE 1
15266 #include <sys/types.h> /* for off_t */
15271 int (*fp) (FILE *, off_t, int) = fseeko;
15272 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
15277 if ac_fn_c_try_link
"$LINENO"; then :
15278 ac_cv_sys_largefile_source
=1; break
15280 rm -f core conftest.err conftest.
$ac_objext \
15281 conftest
$ac_exeext conftest.
$ac_ext
15282 ac_cv_sys_largefile_source
=unknown
15286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
15287 $as_echo "$ac_cv_sys_largefile_source" >&6; }
15288 case $ac_cv_sys_largefile_source in #(
15291 cat >>confdefs.h
<<_ACEOF
15292 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
15298 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
15299 # in glibc 2.1.3, but that breaks too many other things.
15300 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
15301 if test $ac_cv_sys_largefile_source != unknown
; then
15303 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
15309 for ac_func
in grantpt
15311 ac_fn_c_check_func
"$LINENO" "grantpt" "ac_cv_func_grantpt"
15312 if test "x$ac_cv_func_grantpt" = x
""yes; then :
15313 cat >>confdefs.h
<<_ACEOF
15314 #define HAVE_GRANTPT 1
15321 # PTY-related GNU extensions.
15322 for ac_func
in getpt posix_openpt
15324 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15325 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
15326 eval as_val
=\$
$as_ac_var
15327 if test "x$as_val" = x
""yes; then :
15328 cat >>confdefs.h
<<_ACEOF
15329 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15336 # Check this now, so that we will NOT find the above functions in ncurses.
15337 # That is because we have not set up to link ncurses in lib-src.
15338 # It's better to believe a function is not available
15339 # than to expect to find it in ncurses.
15340 # Also we need tputs and friends to be able to build at all.
15341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
15342 $as_echo_n "checking for library containing tputs... " >&6; }
15343 # Run a test program that contains a call to tputs, a call that is
15344 # never executed. This tests whether a pre-'main' dynamic linker
15345 # works with the library. It's too much trouble to actually call
15346 # tputs in the test program, due to portability hassles. When
15347 # cross-compiling, assume the test program will run if it links.
15349 if test "${opsys}" = "mingw32"; then
15350 msg
='none required'
15352 # Maybe curses should be tried earlier?
15353 # See http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9736#35
15354 for tputs_library
in '' tinfo ncurses terminfo termcap curses
; do
15356 if test -z "$tputs_library"; then
15358 msg
='none required'
15360 LIBS_TERMCAP
=-l$tputs_library
15362 LIBS
="$LIBS_TERMCAP $LIBS"
15364 if test "$cross_compiling" = yes; then :
15365 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15366 /* end confdefs.h. */
15368 extern void tputs (const char *, int, int (*)(int));
15369 int main (int argc, char **argv)
15372 tputs (argv[0], 0, 0);
15377 if ac_fn_c_try_link
"$LINENO"; then :
15382 rm -f core conftest.err conftest.
$ac_objext \
15383 conftest
$ac_exeext conftest.
$ac_ext
15385 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15386 /* end confdefs.h. */
15388 extern void tputs (const char *, int, int (*)(int));
15389 int main (int argc, char **argv)
15392 tputs (argv[0], 0, 0);
15397 if ac_fn_c_try_run
"$LINENO"; then :
15402 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15403 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15407 if test "X$msg" != Xno
; then
15412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5
15413 $as_echo "$msg" >&6; }
15414 if test "X$msg" = Xno
; then
15415 as_fn_error
"The required function \`tputs' was not found in any library.
15416 The following libraries were tried (in order):
15417 libtinfo, libncurses, libterminfo, libtermcap, libcurses
15418 Please try installing whichever of these libraries is most appropriate
15419 for your system, together with its header files.
15420 For example, a libncurses-dev(el) or similar package." "$LINENO" 5
15423 ## Use termcap instead of terminfo?
15424 ## Only true for: freebsd < 40000, ms-w32, msdos, netbsd < 599002500.
15426 ## FIXME? In the cases below where we unconditionally set
15427 ## LIBS_TERMCAP="-lncurses", this overrides LIBS_TERMCAP = -ltinfo,
15428 ## if that was found above to have tputs.
15429 ## Should we use the gnu* logic everywhere?
15431 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
15432 ## The ncurses library has been moved out of the System framework in
15433 ## Mac OS X 10.2. So if configure detects it, set the command-line
15434 ## option to use it.
15435 darwin
) LIBS_TERMCAP
="-lncurses" ;;
15437 gnu
*) test -z "$LIBS_TERMCAP" && LIBS_TERMCAP
="-lncurses" ;;
15440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
15441 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
15442 if test "${emacs_cv_freebsd_terminfo+set}" = set; then :
15443 $as_echo_n "(cached) " >&6
15445 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15446 /* end confdefs.h. */
15447 #include <osreldate.h>
15451 #if __FreeBSD_version < 400000
15459 if ac_fn_c_try_link
"$LINENO"; then :
15460 emacs_cv_freebsd_terminfo
=yes
15462 emacs_cv_freebsd_terminfo
=no
15464 rm -f core conftest.err conftest.
$ac_objext \
15465 conftest
$ac_exeext conftest.
$ac_ext
15469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
15470 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
15472 if test $emacs_cv_freebsd_terminfo = yes; then
15473 LIBS_TERMCAP
="-lncurses"
15476 LIBS_TERMCAP
="-ltermcap"
15486 if test "x$LIBS_TERMCAP" != "x-lterminfo"; then
15488 LIBS_TERMCAP
="-ltermcap"
15492 openbsd | dragonfly
) LIBS_TERMCAP
="-lncurses" ;;
15494 ## hpux: Make sure we get select from libc rather than from libcurses
15495 ## because libcurses on HPUX 10.10 has a broken version of select.
15496 ## We used to use -lc -lcurses, but this may be cleaner.
15497 ## FIXME? But TERMINFO = yes on hpux (it used to be explicitly
15498 # set that way, now it uses the default). Isn't this a contradiction?
15499 hpux
*) LIBS_TERMCAP
="-ltermcap" ;;
15503 TERMCAP_OBJ
=tparam.o
15504 if test $TERMINFO = yes; then
15506 $as_echo "#define TERMINFO 1" >>confdefs.h
15508 TERMCAP_OBJ
=terminfo.o
15510 if test "X$LIBS_TERMCAP" = "X-lncurses"; then
15512 $as_echo "#define USE_NCURSES 1" >>confdefs.h
15519 # Do we have res_init, for detecting changes in /etc/resolv.conf?
15520 # On Darwin, res_init appears not to be useful: see bug#562 and
15521 # http://lists.gnu.org/archive/html/emacs-devel/2007-11/msg01467.html
15524 if test $opsys != darwin
; then
15526 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15527 /* end confdefs.h. */
15528 #include <netinet/in.h>
15529 #include <arpa/nameser.h>
15530 #include <resolv.h>
15539 if ac_fn_c_try_link
"$LINENO"; then :
15544 rm -f core conftest.err conftest.
$ac_objext \
15545 conftest
$ac_exeext conftest.
$ac_ext
15546 if test "$have_res_init" = no
; then
15548 LIBS
="$LIBS -lresolv"
15549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
15550 $as_echo_n "checking for res_init with -lresolv... " >&6; }
15551 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15552 /* end confdefs.h. */
15553 #include <netinet/in.h>
15554 #include <arpa/nameser.h>
15555 #include <resolv.h>
15564 if ac_fn_c_try_link
"$LINENO"; then :
15569 rm -f core conftest.err conftest.
$ac_objext \
15570 conftest
$ac_exeext conftest.
$ac_ext
15571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
15572 $as_echo "$have_res_init" >&6; }
15573 if test "$have_res_init" = yes ; then
15579 if test "$have_res_init" = yes; then
15581 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
15585 # Do we need the Hesiod library to provide the support routines?
15587 if test "$with_hesiod" != no
; then
15588 # Don't set $LIBS here -- see comments above. FIXME which comments?
15589 ac_fn_c_check_func
"$LINENO" "res_send" "ac_cv_func_res_send"
15590 if test "x$ac_cv_func_res_send" = x
""yes; then :
15593 ac_fn_c_check_func
"$LINENO" "__res_send" "ac_cv_func___res_send"
15594 if test "x$ac_cv_func___res_send" = x
""yes; then :
15597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
15598 $as_echo_n "checking for res_send in -lresolv... " >&6; }
15599 if test "${ac_cv_lib_resolv_res_send+set}" = set; then :
15600 $as_echo_n "(cached) " >&6
15602 ac_check_lib_save_LIBS
=$LIBS
15603 LIBS
="-lresolv $LIBS"
15604 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15605 /* end confdefs.h. */
15607 /* Override any GCC internal prototype to avoid an error.
15608 Use char because int might match the return type of a GCC
15609 builtin and then its argument prototype would still apply. */
15617 return res_send ();
15622 if ac_fn_c_try_link
"$LINENO"; then :
15623 ac_cv_lib_resolv_res_send
=yes
15625 ac_cv_lib_resolv_res_send
=no
15627 rm -f core conftest.err conftest.
$ac_objext \
15628 conftest
$ac_exeext conftest.
$ac_ext
15629 LIBS
=$ac_check_lib_save_LIBS
15631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
15632 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
15633 if test "x$ac_cv_lib_resolv_res_send" = x
""yes; then :
15636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
15637 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
15638 if test "${ac_cv_lib_resolv___res_send+set}" = set; then :
15639 $as_echo_n "(cached) " >&6
15641 ac_check_lib_save_LIBS
=$LIBS
15642 LIBS
="-lresolv $LIBS"
15643 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15644 /* end confdefs.h. */
15646 /* Override any GCC internal prototype to avoid an error.
15647 Use char because int might match the return type of a GCC
15648 builtin and then its argument prototype would still apply. */
15652 char __res_send ();
15656 return __res_send ();
15661 if ac_fn_c_try_link
"$LINENO"; then :
15662 ac_cv_lib_resolv___res_send
=yes
15664 ac_cv_lib_resolv___res_send
=no
15666 rm -f core conftest.err conftest.
$ac_objext \
15667 conftest
$ac_exeext conftest.
$ac_ext
15668 LIBS
=$ac_check_lib_save_LIBS
15670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
15671 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
15672 if test "x$ac_cv_lib_resolv___res_send" = x
""yes; then :
15682 if test "$resolv" = yes ; then
15687 ac_fn_c_check_func
"$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
15688 if test "x$ac_cv_func_hes_getmailhost" = x
""yes; then :
15691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
15692 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
15693 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then :
15694 $as_echo_n "(cached) " >&6
15696 ac_check_lib_save_LIBS
=$LIBS
15697 LIBS
="-lhesiod $RESOLVLIB $LIBS"
15698 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15699 /* end confdefs.h. */
15701 /* Override any GCC internal prototype to avoid an error.
15702 Use char because int might match the return type of a GCC
15703 builtin and then its argument prototype would still apply. */
15707 char hes_getmailhost ();
15711 return hes_getmailhost ();
15716 if ac_fn_c_try_link
"$LINENO"; then :
15717 ac_cv_lib_hesiod_hes_getmailhost
=yes
15719 ac_cv_lib_hesiod_hes_getmailhost
=no
15721 rm -f core conftest.err conftest.
$ac_objext \
15722 conftest
$ac_exeext conftest.
$ac_ext
15723 LIBS
=$ac_check_lib_save_LIBS
15725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
15726 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
15727 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x
""yes; then :
15736 if test x
"$hesiod" = xyes
; then
15742 # Do we need libresolv (due to res_init or Hesiod)?
15743 if test "$resolv" = yes && test $opsys != darwin
; then
15750 # These tell us which Kerberos-related libraries to use.
15757 if test "${with_kerberos}" != no
; then
15758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
15759 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
15760 if test "${ac_cv_lib_com_err_com_err+set}" = set; then :
15761 $as_echo_n "(cached) " >&6
15763 ac_check_lib_save_LIBS
=$LIBS
15764 LIBS
="-lcom_err $LIBS"
15765 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15766 /* end confdefs.h. */
15768 /* Override any GCC internal prototype to avoid an error.
15769 Use char because int might match the return type of a GCC
15770 builtin and then its argument prototype would still apply. */
15783 if ac_fn_c_try_link
"$LINENO"; then :
15784 ac_cv_lib_com_err_com_err
=yes
15786 ac_cv_lib_com_err_com_err
=no
15788 rm -f core conftest.err conftest.
$ac_objext \
15789 conftest
$ac_exeext conftest.
$ac_ext
15790 LIBS
=$ac_check_lib_save_LIBS
15792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
15793 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
15794 if test "x$ac_cv_lib_com_err_com_err" = x
""yes; then :
15800 if test $have_com_err = yes; then
15801 COM_ERRLIB
=-lcom_err
15802 LIBS
="$COM_ERRLIB $LIBS"
15804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
15805 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
15806 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then :
15807 $as_echo_n "(cached) " >&6
15809 ac_check_lib_save_LIBS
=$LIBS
15810 LIBS
="-lcrypto $LIBS"
15811 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15812 /* end confdefs.h. */
15814 /* Override any GCC internal prototype to avoid an error.
15815 Use char because int might match the return type of a GCC
15816 builtin and then its argument prototype would still apply. */
15820 char mit_des_cbc_encrypt ();
15824 return mit_des_cbc_encrypt ();
15829 if ac_fn_c_try_link
"$LINENO"; then :
15830 ac_cv_lib_crypto_mit_des_cbc_encrypt
=yes
15832 ac_cv_lib_crypto_mit_des_cbc_encrypt
=no
15834 rm -f core conftest.err conftest.
$ac_objext \
15835 conftest
$ac_exeext conftest.
$ac_ext
15836 LIBS
=$ac_check_lib_save_LIBS
15838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
15839 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
15840 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x
""yes; then :
15846 if test $have_crypto = yes; then
15848 LIBS
="$CRYPTOLIB $LIBS"
15850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
15851 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
15852 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then :
15853 $as_echo_n "(cached) " >&6
15855 ac_check_lib_save_LIBS
=$LIBS
15856 LIBS
="-lk5crypto $LIBS"
15857 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15858 /* end confdefs.h. */
15860 /* Override any GCC internal prototype to avoid an error.
15861 Use char because int might match the return type of a GCC
15862 builtin and then its argument prototype would still apply. */
15866 char mit_des_cbc_encrypt ();
15870 return mit_des_cbc_encrypt ();
15875 if ac_fn_c_try_link
"$LINENO"; then :
15876 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=yes
15878 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=no
15880 rm -f core conftest.err conftest.
$ac_objext \
15881 conftest
$ac_exeext conftest.
$ac_ext
15882 LIBS
=$ac_check_lib_save_LIBS
15884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
15885 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
15886 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x
""yes; then :
15892 if test $have_k5crypto = yes; then
15893 CRYPTOLIB
=-lk5crypto
15894 LIBS
="$CRYPTOLIB $LIBS"
15896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
15897 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
15898 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then :
15899 $as_echo_n "(cached) " >&6
15901 ac_check_lib_save_LIBS
=$LIBS
15902 LIBS
="-lkrb5 $LIBS"
15903 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15904 /* end confdefs.h. */
15906 /* Override any GCC internal prototype to avoid an error.
15907 Use char because int might match the return type of a GCC
15908 builtin and then its argument prototype would still apply. */
15912 char krb5_init_context ();
15916 return krb5_init_context ();
15921 if ac_fn_c_try_link
"$LINENO"; then :
15922 ac_cv_lib_krb5_krb5_init_context
=yes
15924 ac_cv_lib_krb5_krb5_init_context
=no
15926 rm -f core conftest.err conftest.
$ac_objext \
15927 conftest
$ac_exeext conftest.
$ac_ext
15928 LIBS
=$ac_check_lib_save_LIBS
15930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
15931 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
15932 if test "x$ac_cv_lib_krb5_krb5_init_context" = x
""yes; then :
15938 if test $have_krb5=yes; then
15940 LIBS
="$KRB5LIB $LIBS"
15942 if test "${with_kerberos5}" = no
; then
15943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
15944 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
15945 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
15946 $as_echo_n "(cached) " >&6
15948 ac_check_lib_save_LIBS
=$LIBS
15949 LIBS
="-ldes425 $LIBS"
15950 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15951 /* end confdefs.h. */
15953 /* Override any GCC internal prototype to avoid an error.
15954 Use char because int might match the return type of a GCC
15955 builtin and then its argument prototype would still apply. */
15959 char des_cbc_encrypt ();
15963 return des_cbc_encrypt ();
15968 if ac_fn_c_try_link
"$LINENO"; then :
15969 ac_cv_lib_des425_des_cbc_encrypt
=yes
15971 ac_cv_lib_des425_des_cbc_encrypt
=no
15973 rm -f core conftest.err conftest.
$ac_objext \
15974 conftest
$ac_exeext conftest.
$ac_ext
15975 LIBS
=$ac_check_lib_save_LIBS
15977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
15978 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
15979 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x
""yes; then :
15985 if test $have_des425 = yes; then
15987 LIBS
="$DESLIB $LIBS"
15989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
15990 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
15991 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
15992 $as_echo_n "(cached) " >&6
15994 ac_check_lib_save_LIBS
=$LIBS
15996 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15997 /* end confdefs.h. */
15999 /* Override any GCC internal prototype to avoid an error.
16000 Use char because int might match the return type of a GCC
16001 builtin and then its argument prototype would still apply. */
16005 char des_cbc_encrypt ();
16009 return des_cbc_encrypt ();
16014 if ac_fn_c_try_link
"$LINENO"; then :
16015 ac_cv_lib_des_des_cbc_encrypt
=yes
16017 ac_cv_lib_des_des_cbc_encrypt
=no
16019 rm -f core conftest.err conftest.
$ac_objext \
16020 conftest
$ac_exeext conftest.
$ac_ext
16021 LIBS
=$ac_check_lib_save_LIBS
16023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
16024 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
16025 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x
""yes; then :
16031 if test $have_des = yes; then
16033 LIBS
="$DESLIB $LIBS"
16036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
16037 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
16038 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then :
16039 $as_echo_n "(cached) " >&6
16041 ac_check_lib_save_LIBS
=$LIBS
16042 LIBS
="-lkrb4 $LIBS"
16043 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16044 /* end confdefs.h. */
16046 /* Override any GCC internal prototype to avoid an error.
16047 Use char because int might match the return type of a GCC
16048 builtin and then its argument prototype would still apply. */
16052 char krb_get_cred ();
16056 return krb_get_cred ();
16061 if ac_fn_c_try_link
"$LINENO"; then :
16062 ac_cv_lib_krb4_krb_get_cred
=yes
16064 ac_cv_lib_krb4_krb_get_cred
=no
16066 rm -f core conftest.err conftest.
$ac_objext \
16067 conftest
$ac_exeext conftest.
$ac_ext
16068 LIBS
=$ac_check_lib_save_LIBS
16070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
16071 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
16072 if test "x$ac_cv_lib_krb4_krb_get_cred" = x
""yes; then :
16078 if test $have_krb4 = yes; then
16080 LIBS
="$KRB4LIB $LIBS"
16082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
16083 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
16084 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then :
16085 $as_echo_n "(cached) " >&6
16087 ac_check_lib_save_LIBS
=$LIBS
16089 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16090 /* end confdefs.h. */
16092 /* Override any GCC internal prototype to avoid an error.
16093 Use char because int might match the return type of a GCC
16094 builtin and then its argument prototype would still apply. */
16098 char krb_get_cred ();
16102 return krb_get_cred ();
16107 if ac_fn_c_try_link
"$LINENO"; then :
16108 ac_cv_lib_krb_krb_get_cred
=yes
16110 ac_cv_lib_krb_krb_get_cred
=no
16112 rm -f core conftest.err conftest.
$ac_objext \
16113 conftest
$ac_exeext conftest.
$ac_ext
16114 LIBS
=$ac_check_lib_save_LIBS
16116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
16117 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
16118 if test "x$ac_cv_lib_krb_krb_get_cred" = x
""yes; then :
16124 if test $have_krb = yes; then
16126 LIBS
="$KRB4LIB $LIBS"
16131 if test "${with_kerberos5}" != no
; then
16132 for ac_header
in krb5.h
16134 ac_fn_c_check_header_mongrel
"$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
16135 if test "x$ac_cv_header_krb5_h" = x
""yes; then :
16136 cat >>confdefs.h
<<_ACEOF
16137 #define HAVE_KRB5_H 1
16139 ac_fn_c_check_member
"$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
16141 if test "x$ac_cv_member_krb5_error_text" = x
""yes; then :
16143 cat >>confdefs.h
<<_ACEOF
16144 #define HAVE_KRB5_ERROR_TEXT 1
16149 ac_fn_c_check_member
"$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
16151 if test "x$ac_cv_member_krb5_error_e_text" = x
""yes; then :
16153 cat >>confdefs.h
<<_ACEOF
16154 #define HAVE_KRB5_ERROR_E_TEXT 1
16165 for ac_header
in krb.h
16167 ac_fn_c_check_header_mongrel
"$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
16168 if test "x$ac_cv_header_krb_h" = x
""yes; then :
16169 cat >>confdefs.h
<<_ACEOF
16170 #define HAVE_KRB_H 1
16174 for ac_header
in kerberosIV
/krb.h
16176 ac_fn_c_check_header_mongrel
"$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
16177 if test "x$ac_cv_header_kerberosIV_krb_h" = x
""yes; then :
16178 cat >>confdefs.h
<<_ACEOF
16179 #define HAVE_KERBEROSIV_KRB_H 1
16183 for ac_header
in kerberos
/krb.h
16185 ac_fn_c_check_header_mongrel
"$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
16186 if test "x$ac_cv_header_kerberos_krb_h" = x
""yes; then :
16187 cat >>confdefs.h
<<_ACEOF
16188 #define HAVE_KERBEROS_KRB_H 1
16204 for ac_header
in com_err.h
16206 ac_fn_c_check_header_mongrel
"$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
16207 if test "x$ac_cv_header_com_err_h" = x
""yes; then :
16208 cat >>confdefs.h
<<_ACEOF
16209 #define HAVE_COM_ERR_H 1
16224 for ac_header
in valgrind
/valgrind.h
16226 ac_fn_c_check_header_mongrel
"$LINENO" "valgrind/valgrind.h" "ac_cv_header_valgrind_valgrind_h" "$ac_includes_default"
16227 if test "x$ac_cv_header_valgrind_valgrind_h" = x
""yes; then :
16228 cat >>confdefs.h
<<_ACEOF
16229 #define HAVE_VALGRIND_VALGRIND_H 1
16240 for ac_func
in $ac_func_list
16242 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16243 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
16244 eval as_val
=\$
$as_ac_var
16245 if test "x$as_val" = x
""yes; then :
16246 cat >>confdefs.h
<<_ACEOF
16247 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
16257 $as_echo_n "checking whether localtime caches TZ... " >&6; }
16258 if test "${emacs_cv_localtime_cache+set}" = set; then :
16259 $as_echo_n "(cached) " >&6
16261 if test x
$ac_cv_func_tzset = xyes
; then
16262 if test "$cross_compiling" = yes; then :
16263 # If we have tzset, assume the worst when cross-compiling.
16264 emacs_cv_localtime_cache
=yes
16266 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16267 /* end confdefs.h. */
16269 char TZ_GMT0[] = "TZ=GMT0";
16270 char TZ_PST8[] = "TZ=PST8";
16273 time_t now = time ((time_t *) 0);
16274 int hour_GMT0, hour_unset;
16275 if (putenv (TZ_GMT0) != 0)
16277 hour_GMT0 = localtime (&now)->tm_hour;
16279 hour_unset = localtime (&now)->tm_hour;
16280 if (putenv (TZ_PST8) != 0)
16282 if (localtime (&now)->tm_hour == hour_GMT0)
16285 if (localtime (&now)->tm_hour != hour_unset)
16290 if ac_fn_c_try_run
"$LINENO"; then :
16291 emacs_cv_localtime_cache
=no
16293 emacs_cv_localtime_cache
=yes
16295 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16296 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16300 # If we lack tzset, report that localtime does not cache TZ,
16301 # since we can't invalidate the cache if we don't have tzset.
16302 emacs_cv_localtime_cache
=no
16305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
16306 $as_echo "$emacs_cv_localtime_cache" >&6; }
16307 if test $emacs_cv_localtime_cache = yes; then
16309 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
16314 ac_fn_c_check_func
"$LINENO" "socket" "ac_cv_func_socket"
16315 if test "x$ac_cv_func_socket" = x
""yes; then :
16321 if test $ok_so_far = yes; then
16322 ac_fn_c_check_header_mongrel
"$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
16323 if test "x$ac_cv_header_netinet_in_h" = x
""yes; then :
16331 if test $ok_so_far = yes; then
16332 ac_fn_c_check_header_mongrel
"$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
16333 if test "x$ac_cv_header_arpa_inet_h" = x
""yes; then :
16341 if test $ok_so_far = yes; then
16343 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
16348 *-solaris2.4 |
*-solaris2.4.
*)
16349 : ${ac_cv_func_vfork_works=no};;
16352 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
16353 if test "x$ac_cv_type_pid_t" = x
""yes; then :
16357 cat >>confdefs.h
<<_ACEOF
16363 for ac_header
in vfork.h
16365 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
16366 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
16367 cat >>confdefs.h
<<_ACEOF
16368 #define HAVE_VFORK_H 1
16375 for ac_func
in fork vfork
16377 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16378 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
16379 eval as_val
=\$
$as_ac_var
16380 if test "x$as_val" = x
""yes; then :
16381 cat >>confdefs.h
<<_ACEOF
16382 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16388 if test "x$ac_cv_func_fork" = xyes
; then
16389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
16390 $as_echo_n "checking for working fork... " >&6; }
16391 if test "${ac_cv_func_fork_works+set}" = set; then :
16392 $as_echo_n "(cached) " >&6
16394 if test "$cross_compiling" = yes; then :
16395 ac_cv_func_fork_works
=cross
16397 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16398 /* end confdefs.h. */
16399 $ac_includes_default
16404 /* By Ruediger Kuhlmann. */
16405 return fork () < 0;
16411 if ac_fn_c_try_run
"$LINENO"; then :
16412 ac_cv_func_fork_works
=yes
16414 ac_cv_func_fork_works
=no
16416 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16417 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
16422 $as_echo "$ac_cv_func_fork_works" >&6; }
16425 ac_cv_func_fork_works
=$ac_cv_func_fork
16427 if test "x$ac_cv_func_fork_works" = xcross
; then
16429 *-*-amigaos* |
*-*-msdosdjgpp*)
16430 # Override, as these systems have only a dummy fork() stub
16431 ac_cv_func_fork_works
=no
16434 ac_cv_func_fork_works
=yes
16437 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
16438 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
16440 ac_cv_func_vfork_works
=$ac_cv_func_vfork
16441 if test "x$ac_cv_func_vfork" = xyes
; then
16442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
16443 $as_echo_n "checking for working vfork... " >&6; }
16444 if test "${ac_cv_func_vfork_works+set}" = set; then :
16445 $as_echo_n "(cached) " >&6
16447 if test "$cross_compiling" = yes; then :
16448 ac_cv_func_vfork_works
=cross
16450 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16451 /* end confdefs.h. */
16452 /* Thanks to Paul Eggert for this test. */
16453 $ac_includes_default
16454 #include <sys/wait.h>
16455 #ifdef HAVE_VFORK_H
16456 # include <vfork.h>
16458 /* On some sparc systems, changes by the child to local and incoming
16459 argument registers are propagated back to the parent. The compiler
16460 is told about this with #include <vfork.h>, but some compilers
16461 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
16462 static variable whose address is put into a register that is
16463 clobbered by the vfork. */
16466 sparc_address_test (int arg)
16468 sparc_address_test (arg) int arg;
16471 static pid_t child;
16489 pid_t parent = getpid ();
16492 sparc_address_test (0);
16497 /* Here is another test for sparc vfork register problems. This
16498 test uses lots of local variables, at least as many local
16499 variables as main has allocated so far including compiler
16500 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
16501 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
16502 reuse the register of parent for one of the local variables,
16503 since it will think that parent can't possibly be used any more
16504 in this routine. Assigning to the local variable will thus
16505 munge parent in the parent process. */
16507 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
16508 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
16509 /* Convince the compiler that p..p7 are live; otherwise, it might
16510 use the same hardware register for all 8 local variables. */
16511 if (p != p1 || p != p2 || p != p3 || p != p4
16512 || p != p5 || p != p6 || p != p7)
16515 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
16516 from child file descriptors. If the child closes a descriptor
16517 before it execs or exits, this munges the parent's descriptor
16518 as well. Test for this by closing stdout in the child. */
16519 _exit(close(fileno(stdout)) != 0);
16524 while (wait(&status) != child)
16527 /* Was there some problem with vforking? */
16530 /* Did the child fail? (This shouldn't happen.) */
16533 /* Did the vfork/compiler bug occur? */
16534 || parent != getpid()
16536 /* Did the file descriptor bug occur? */
16537 || fstat(fileno(stdout), &st) != 0
16542 if ac_fn_c_try_run
"$LINENO"; then :
16543 ac_cv_func_vfork_works
=yes
16545 ac_cv_func_vfork_works
=no
16547 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16548 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
16553 $as_echo "$ac_cv_func_vfork_works" >&6; }
16556 if test "x$ac_cv_func_fork_works" = xcross
; then
16557 ac_cv_func_vfork_works
=$ac_cv_func_vfork
16558 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
16559 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
16562 if test "x$ac_cv_func_vfork_works" = xyes
; then
16564 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
16568 $as_echo "#define vfork fork" >>confdefs.h
16571 if test "x$ac_cv_func_fork_works" = xyes
; then
16573 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
16578 for ac_func
in snprintf
16580 ac_fn_c_check_func
"$LINENO" "snprintf" "ac_cv_func_snprintf"
16581 if test "x$ac_cv_func_snprintf" = x
""yes; then :
16582 cat >>confdefs.h
<<_ACEOF
16583 #define HAVE_SNPRINTF 1
16591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GLib is linked in" >&5
16592 $as_echo_n "checking whether GLib is linked in... " >&6; }
16593 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16594 /* end confdefs.h. */
16600 g_print ("Hello world");
16605 if ac_fn_c_try_link
"$LINENO"; then :
16610 rm -f core conftest.err conftest.
$ac_objext \
16611 conftest
$ac_exeext conftest.
$ac_ext
16612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $links_glib" >&5
16613 $as_echo "$links_glib" >&6; }
16614 if test "${links_glib}" = "yes"; then
16616 $as_echo "#define HAVE_GLIB 1" >>confdefs.h
16618 if test "$HAVE_NS" = no
;then
16619 XGSELOBJ
=xgselect.o
16624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
16625 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
16626 if test "${emacs_cv_langinfo_codeset+set}" = set; then :
16627 $as_echo_n "(cached) " >&6
16629 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16630 /* end confdefs.h. */
16631 #include <langinfo.h>
16635 char* cs = nl_langinfo(CODESET);
16640 if ac_fn_c_try_link
"$LINENO"; then :
16641 emacs_cv_langinfo_codeset
=yes
16643 emacs_cv_langinfo_codeset
=no
16645 rm -f core conftest.err conftest.
$ac_objext \
16646 conftest
$ac_exeext conftest.
$ac_ext
16649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
16650 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
16651 if test $emacs_cv_langinfo_codeset = yes; then
16653 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
16657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
16658 $as_echo_n "checking for mbstate_t... " >&6; }
16659 if test "${ac_cv_type_mbstate_t+set}" = set; then :
16660 $as_echo_n "(cached) " >&6
16662 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16663 /* end confdefs.h. */
16664 $ac_includes_default
16665 # include <wchar.h>
16669 mbstate_t x; return sizeof x;
16674 if ac_fn_c_try_compile
"$LINENO"; then :
16675 ac_cv_type_mbstate_t
=yes
16677 ac_cv_type_mbstate_t
=no
16679 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
16682 $as_echo "$ac_cv_type_mbstate_t" >&6; }
16683 if test $ac_cv_type_mbstate_t = yes; then
16685 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
16689 $as_echo "#define mbstate_t int" >>confdefs.h
16693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
16694 $as_echo_n "checking for C restricted array declarations... " >&6; }
16695 if test "${emacs_cv_c_restrict_arr+set}" = set; then :
16696 $as_echo_n "(cached) " >&6
16698 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16699 /* end confdefs.h. */
16700 void fred (int x[__restrict]);
16709 if ac_fn_c_try_compile
"$LINENO"; then :
16710 emacs_cv_c_restrict_arr
=yes
16712 emacs_cv_c_restrict_arr
=no
16714 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
16717 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
16718 if test "$emacs_cv_c_restrict_arr" = yes; then
16720 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
16725 if test "${opsys}" != "mingw32"; then
16727 $as_echo "#define AMPERSAND_FULL_NAME 1" >>confdefs.h
16732 $as_echo "#define CLASH_DETECTION 1" >>confdefs.h
16735 ## Note: PTYs are broken on darwin <6. Use at your own risk.
16736 if test "${opsys}" != "mingw32"; then
16738 $as_echo "#define HAVE_PTYS 1" >>confdefs.h
16743 $as_echo "#define HAVE_SOCKETS 1" >>confdefs.h
16749 if test "${opsys}" = "mingw32"; then
16750 $as_echo "#define NULL_DEVICE \"NUL:\"" >>confdefs.h
16753 $as_echo "#define NULL_DEVICE \"/dev/null\"" >>confdefs.h
16758 if test "${opsys}" = "mingw32"; then
16759 $as_echo "#define SEPCHAR ';'" >>confdefs.h
16762 $as_echo "#define SEPCHAR ':'" >>confdefs.h
16767 $as_echo "#define subprocesses 1" >>confdefs.h
16771 $as_echo "#define USER_FULL_NAME pw->pw_gecos" >>confdefs.h
16776 $as_echo "#define DIRECTORY_SEP '/'" >>confdefs.h
16779 if test "${opsys}" = "mingw32"; then
16781 $as_echo "#define IS_DEVICE_SEP(_c_) ((_c_) == ':')" >>confdefs.h
16785 $as_echo "#define IS_DIRECTORY_SEP(_c_) ((_c_) == '/' || (_c_) == '\\\\')" >>confdefs.h
16789 $as_echo "#define IS_ANY_SEP(_c_) (IS_DIRECTORY_SEP (_c_) || IS_DEVICE_SEP(_c_))" >>confdefs.h
16793 $as_echo "#define IS_DEVICE_SEP(_c_) 0" >>confdefs.h
16797 $as_echo "#define IS_DIRECTORY_SEP(_c_) ((_c_) == DIRECTORY_SEP)" >>confdefs.h
16801 $as_echo "#define IS_ANY_SEP(_c_) (IS_DIRECTORY_SEP (_c_))" >>confdefs.h
16809 if test x
$ac_cv_lib_Xmu_XmuConvertStandardSelection != xyes
; then
16810 $as_echo "#define NO_EDITRES 1" >>confdefs.h
16816 $as_echo "#define NO_EDITRES 1" >>confdefs.h
16823 irix6-5 | sol2
* | unixware
)
16825 $as_echo "#define NSIG_MINIMUM 32" >>confdefs.h
16830 emacs_broken_SIGIO
=no
16833 hpux
* | irix6-5 | openbsd | sol2
* | unixware
)
16834 emacs_broken_SIGIO
=yes
16839 $as_echo "#define BROKEN_GET_CURRENT_DIR_NAME 1" >>confdefs.h
16845 $as_echo "#define BROKEN_PTY_READ_AFTER_EAGAIN 1" >>confdefs.h
16853 $as_echo "#define HAVE_PROCFS 1" >>confdefs.h
16859 darwin | dragonfly | freebsd | netbsd | openbsd
)
16861 $as_echo "#define DONT_REOPEN_PTY 1" >>confdefs.h
16867 netbsd | openbsd
) sound_device
="/dev/audio" ;;
16868 *) sound_device
="/dev/dsp" ;;
16872 cat >>confdefs.h
<<_ACEOF
16873 #define DEFAULT_SOUND_DEVICE "$sound_device"
16879 darwin | gnu-linux | gnu-kfreebsd
)
16881 $as_echo "#define INTERRUPT_INPUT 1" >>confdefs.h
16888 cygwin|gnu|gnu-linux|gnu-kfreebsd|irix6-5|freebsd|netbsd|openbsd
)
16890 $as_echo "#define NARROWPROTO 1" >>confdefs.h
16904 $as_echo "#define PTY_ITERATION int c; for (c = 0; !c ; c++)" >>confdefs.h
16906 $as_echo "#define PTY_NAME_SPRINTF strcpy (pty_name, \"/dev/ptc\");" >>confdefs.h
16908 $as_echo "#define PTY_TTY_NAME_SPRINTF strcpy (pty_name, ttyname (fd));" >>confdefs.h
16913 $as_echo "#define PTY_ITERATION int i; for (i = 0; i < 1; i++)" >>confdefs.h
16915 $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
16917 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
16919 $as_echo "#define PTY_TTY_NAME_SPRINTF /**/" >>confdefs.h
16924 $as_echo "#define PTY_ITERATION int i; for (i = 0; i < 1; i++)" >>confdefs.h
16926 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
16928 $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
16930 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
16932 $as_echo "#define PTY_TTY_NAME_SPRINTF /**/" >>confdefs.h
16937 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
16941 gnu-linux | gnu-kfreebsd | dragonfly | freebsd | netbsd
)
16942 if test "x$ac_cv_func_grantpt" = xyes
; then
16944 $as_echo "#define UNIX98_PTYS 1" >>confdefs.h
16946 $as_echo "#define PTY_ITERATION int i; for (i = 0; i < 1; i++)" >>confdefs.h
16948 $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
16950 if test "x$ac_cv_func_posix_openpt" = xyes
; then
16951 $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
16953 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
16955 elif test "x$ac_cv_func_getpt" = xyes
; then
16956 $as_echo "#define PTY_OPEN fd = getpt ()" >>confdefs.h
16958 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
16961 $as_echo "#define PTY_NAME_SPRINTF strcpy (pty_name, \"/dev/ptmx\");" >>confdefs.h
16965 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
16971 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
16973 $as_echo "#define PTY_NAME_SPRINTF sprintf (pty_name, \"/dev/ptym/pty%c%x\", c, i);" >>confdefs.h
16975 $as_echo "#define PTY_TTY_NAME_SPRINTF sprintf (pty_name, \"/dev/pty/tty%c%x\", c, i);" >>confdefs.h
16980 $as_echo "#define PTY_ITERATION /**/" >>confdefs.h
16982 $as_echo "#define FIRST_PTY_LETTER 'q'" >>confdefs.h
16984 $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
16986 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
16988 $as_echo "#define PTY_TTY_NAME_SPRINTF /**/" >>confdefs.h
16993 $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
16998 $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
17006 $as_echo "#define FIRST_PTY_LETTER 'z'" >>confdefs.h
17008 $as_echo "#define PTY_NAME_SPRINTF strcpy (pty_name, \"/dev/ptmx\");" >>confdefs.h
17011 $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
17020 aix4-2 | cygwin | gnu | irix6-5 | dragonfly | freebsd | netbsd | openbsd | darwin
)
17021 $as_echo "#define SIGNALS_VIA_CHARACTERS 1" >>confdefs.h
17025 gnu-linux | gnu-kfreebsd
)
17027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signals via characters" >&5
17028 $as_echo_n "checking for signals via characters... " >&6; }
17029 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17030 /* end confdefs.h. */
17032 #include <linux/version.h>
17033 #if LINUX_VERSION_CODE < 0x20400
17034 # error "Linux version too old"
17045 if ac_fn_c_try_cpp
"$LINENO"; then :
17046 emacs_signals_via_chars
=yes
17048 emacs_signals_via_chars
=no
17050 rm -f conftest.err conftest.
$ac_ext
17052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_signals_via_chars" >&5
17053 $as_echo "$emacs_signals_via_chars" >&6; }
17054 test $emacs_signals_via_chars = yes && $as_echo "#define SIGNALS_VIA_CHARACTERS 1" >>confdefs.h
17064 $as_echo "#define DATA_SEG_BITS 0x20000000" >>confdefs.h
17068 $as_echo "#define DATA_SEG_BITS 0x40000000" >>confdefs.h
17072 $as_echo "#define DATA_SEG_BITS 0x10000000" >>confdefs.h
17081 darwin
) $as_echo "#define TAB3 OXTABS" >>confdefs.h
17084 gnu | dragonfly | freebsd | netbsd | openbsd
)
17086 $as_echo "#define TABDLY OXTABS" >>confdefs.h
17088 $as_echo "#define TAB3 OXTABS" >>confdefs.h
17092 gnu-linux | gnu-kfreebsd
)
17093 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17094 /* end confdefs.h. */
17108 if ac_fn_c_try_cpp
"$LINENO"; then :
17110 $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
17113 rm -f conftest.err conftest.
$ac_ext
17118 $as_echo "#define RUN_TIME_REMAP 1" >>confdefs.h
17128 gnu-linux | gnu-kfreebsd
)
17129 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17130 /* end confdefs.h. */
17132 #if defined __i386__ || defined __sparc__ || defined __mc68000__ \
17133 || defined __alpha__ || defined __mips__ || defined __s390__ \
17134 || defined __arm__ || defined __powerpc__ || defined __amd64__ \
17135 || defined __ia64__ || defined __sh__
17138 # error "setjmp not known to work on this arch"
17149 if ac_fn_c_try_cpp
"$LINENO"; then :
17150 $as_echo "#define GC_SETJMP_WORKS 1" >>confdefs.h
17153 rm -f conftest.err conftest.
$ac_ext
17158 if test x
$GCC = xyes
; then
17159 $as_echo "#define GC_SETJMP_WORKS 1" >>confdefs.h
17163 dragonfly | freebsd | netbsd | openbsd | irix6-5 | sol2
* )
17164 $as_echo "#define GC_SETJMP_WORKS 1" >>confdefs.h
17169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _setjmp" >&5
17170 $as_echo_n "checking for _setjmp... " >&6; }
17171 if test "${emacs_cv_func__setjmp+set}" = set; then :
17172 $as_echo_n "(cached) " >&6
17174 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17175 /* end confdefs.h. */
17176 #include <setjmp.h>
17178 # define _longjmp longjmp
17191 if ac_fn_c_try_link
"$LINENO"; then :
17192 emacs_cv_func__setjmp
=yes
17194 emacs_cv_func__setjmp
=no
17196 rm -f core conftest.err conftest.
$ac_objext \
17197 conftest
$ac_exeext conftest.
$ac_ext
17199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func__setjmp" >&5
17200 $as_echo "$emacs_cv_func__setjmp" >&6; }
17201 if test $emacs_cv_func__setjmp = yes; then
17203 $as_echo "#define HAVE__SETJMP 1" >>confdefs.h
17206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
17207 $as_echo_n "checking for sigsetjmp... " >&6; }
17208 if test "${emacs_cv_func_sigsetjmp+set}" = set; then :
17209 $as_echo_n "(cached) " >&6
17211 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17212 /* end confdefs.h. */
17213 #include <setjmp.h>
17219 if (! sigsetjmp (j, 1))
17225 if ac_fn_c_try_link
"$LINENO"; then :
17226 emacs_cv_func_sigsetjmp
=yes
17228 emacs_cv_func_sigsetjmp
=no
17230 rm -f core conftest.err conftest.
$ac_objext \
17231 conftest
$ac_exeext conftest.
$ac_ext
17233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func_sigsetjmp" >&5
17234 $as_echo "$emacs_cv_func_sigsetjmp" >&6; }
17235 if test $emacs_cv_func_sigsetjmp = yes; then
17237 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
17245 $as_echo "#define TIOCSIGSEND TIOCSIGNAL" >>confdefs.h
17254 $as_echo "#define XOS_NEEDS_TIME_H 1" >>confdefs.h
17267 $as_echo "#define USG /**/" >>confdefs.h
17269 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17270 /* end confdefs.h. */
17273 # error "_AIX not defined"
17284 if ac_fn_c_try_cpp
"$LINENO"; then :
17288 $as_echo "#define _AIX /**/" >>confdefs.h
17291 rm -f conftest.err conftest.
$ac_ext
17296 $as_echo "#define CYGWIN 1" >>confdefs.h
17302 $as_echo "#define DARWIN_OS /**/" >>confdefs.h
17306 gnu-linux | gnu-kfreebsd
)
17307 $as_echo "#define USG /**/" >>confdefs.h
17310 $as_echo "#define GNU_LINUX /**/" >>confdefs.h
17315 $as_echo "#define USG /**/" >>confdefs.h
17318 $as_echo "#define HPUX /**/" >>confdefs.h
17323 $as_echo "#define USG /**/" >>confdefs.h
17325 $as_echo "#define USG5_4 /**/" >>confdefs.h
17328 $as_echo "#define IRIX6_5 /**/" >>confdefs.h
17333 $as_echo "#define DOS_NT /**/" >>confdefs.h
17336 $as_echo "#define WINDOWSNT 1" >>confdefs.h
17338 if test "x$ac_enable_checking" != "x" ; then
17340 $as_echo "#define EMACSDEBUG 1" >>confdefs.h
17346 $as_echo "#define USG /**/" >>confdefs.h
17348 $as_echo "#define USG5_4 /**/" >>confdefs.h
17351 $as_echo "#define SOLARIS2 /**/" >>confdefs.h
17356 $as_echo "#define USG /**/" >>confdefs.h
17358 $as_echo "#define USG5_4 /**/" >>confdefs.h
17363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable FIONREAD" >&5
17364 $as_echo_n "checking for usable FIONREAD... " >&6; }
17365 if test "${emacs_cv_usable_FIONREAD+set}" = set; then :
17366 $as_echo_n "(cached) " >&6
17370 emacs_cv_usable_FIONREAD
=no
17374 emacs_cv_usable_FIONREAD
=yes
17378 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17379 /* end confdefs.h. */
17380 #include <sys/types.h>
17381 #include <sys/ioctl.h>
17383 # include <sys/filio.h>
17389 int foo = ioctl (0, FIONREAD, &foo);
17394 if ac_fn_c_try_compile
"$LINENO"; then :
17395 emacs_cv_usable_FIONREAD
=yes
17397 emacs_cv_usable_FIONREAD
=no
17399 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_usable_FIONREAD" >&5
17404 $as_echo "$emacs_cv_usable_FIONREAD" >&6; }
17405 if test $emacs_cv_usable_FIONREAD = yes; then
17407 $as_echo "#define USABLE_FIONREAD 1" >>confdefs.h
17410 if test $emacs_broken_SIGIO = no
; then
17411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable SIGIO" >&5
17412 $as_echo_n "checking for usable SIGIO... " >&6; }
17413 if test "${emacs_cv_usable_SIGIO+set}" = set; then :
17414 $as_echo_n "(cached) " >&6
17416 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17417 /* end confdefs.h. */
17419 #include <signal.h>
17424 int foo = SIGIO | F_SETFL | FASYNC;
17429 if ac_fn_c_try_compile
"$LINENO"; then :
17430 emacs_cv_usable_SIGIO
=yes
17432 emacs_cv_usable_SIGIO
=no
17434 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_usable_SIGIO" >&5
17437 $as_echo "$emacs_cv_usable_SIGIO" >&6; }
17438 if test $emacs_cv_usable_SIGIO = yes; then
17440 $as_echo "#define USABLE_SIGIO 1" >>confdefs.h
17450 $as_echo "#define G_SLICE_ALWAYS_MALLOC 1" >>confdefs.h
17456 $as_echo "#define USG_SUBTTY_WORKS 1" >>confdefs.h
17462 $as_echo "#define PREFER_VSUSP 1" >>confdefs.h
17468 $as_echo "#define _STRUCTURED_PROC 1" >>confdefs.h
17473 # Set up the CFLAGS for real compilation, so we can substitute it.
17474 CFLAGS
="$REAL_CFLAGS"
17475 CPPFLAGS
="$REAL_CPPFLAGS"
17477 ## Hack to detect a buggy GCC version.
17478 if test "x$GCC" = xyes \
17479 && test x
"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
17480 && test x
"`echo $CFLAGS | grep '\-O[23]'`" != x \
17481 && test x
"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x
; then
17482 as_fn_error
"GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
17485 version
=$PACKAGE_VERSION
17487 copyright
="Copyright (C) 2013 Free Software Foundation, Inc."
17489 cat >>confdefs.h
<<_ACEOF
17490 #define COPYRIGHT "$copyright"
17495 ### Specify what sort of things we'll be editing into Makefile and config.h.
17496 ### Use configuration here uncanonicalized to avoid exceeding size limits.
17522 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
17523 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
17524 ## end of LIBX_BASE, but nothing ever set it.
17529 ## Used in lwlib/Makefile.in.
17538 if test -n "${term_header}"; then
17540 cat >>confdefs.h
<<_ACEOF
17541 #define TERM_HEADER "${term_header}"
17547 cat >>confdefs.h
<<_ACEOF
17548 #define EMACS_CONFIGURATION "${canonical}"
17552 cat >>confdefs.h
<<_ACEOF
17553 #define EMACS_CONFIG_OPTIONS "${emacs_config_options}"
17560 $as_echo "#define config_opsysfile <ms-w32.h>" >>confdefs.h
17568 if test "${HAVE_X_WINDOWS}" = "yes" ; then
17570 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
17573 XOBJ
="xterm.o xfns.o xselect.o xrdb.o xsmfns.o xsettings.o"
17575 if test "$HAVE_XFT" = "yes"; then
17576 FONT_OBJ
="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
17577 elif test "$HAVE_FREETYPE" = "yes"; then
17578 FONT_OBJ
="$FONT_OBJ ftfont.o ftxfont.o"
17588 if test "${USE_X_TOOLKIT}" != "none" ; then
17589 WIDGET_OBJ
=widget.o
17591 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
17593 if test "${USE_X_TOOLKIT}" = "LUCID"; then
17595 $as_echo "#define USE_LUCID 1" >>confdefs.h
17597 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
17599 $as_echo "#define USE_MOTIF 1" >>confdefs.h
17604 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
17605 MOTIF_LIBW
="$MOTIF_LIBW -lXpm"
17609 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
17610 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
17611 MOTIF_LIBW
="MOTIF_LIBW -lXimp"
17615 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
17616 MOTIF_LIBW
="$MOTIF_LIBW -li18n"
17619 MOTIF_LIBW
="$MOTIF_LIBW $LIBXP"
17625 case "$USE_X_TOOLKIT" in
17626 MOTIF
) TOOLKIT_LIBW
="$MOTIF_LIBW" ;;
17627 LUCID
) TOOLKIT_LIBW
="$LUCID_LIBW" ;;
17628 none
) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW
="$GTK_LIBS" ;;
17632 if test "${opsys}" != "mingw32"; then
17633 if test "$USE_X_TOOLKIT" = "none"; then
17634 LIBXT_OTHER
="\$(LIBXSM)"
17635 OLDXMENU_TARGET
="really-oldXMenu"
17637 LIBXT_OTHER
="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
17638 OLDXMENU_TARGET
="really-lwlib"
17643 ## The X Menu stuff is present in the X10 distribution, but missing
17644 ## from X11. If we have X10, just use the installed library;
17645 ## otherwise, use our own copy.
17646 if test "${HAVE_X11}" = "yes" ; then
17648 $as_echo "#define HAVE_X11 1" >>confdefs.h
17651 if test "$USE_X_TOOLKIT" = "none"; then
17652 OLDXMENU
="\${oldXMenudir}/libXMenu11.a"
17654 OLDXMENU
="\${lwlibdir}/liblw.a"
17656 LIBXMENU
="\$(OLDXMENU)"
17657 LIBX_OTHER
="\$(LIBXT) \$(LIBX_EXTRA)"
17658 OLDXMENU_DEPS
="\${OLDXMENU} ../src/\${OLDXMENU}"
17660 ## For a syntactically valid Makefile; not actually used for anything.
17661 ## See comments in src/Makefile.in.
17663 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
17664 if test "${HAVE_X_WINDOWS}" = "yes"; then
17673 if test "$HAVE_GTK" = "yes" ||
test "$HAVE_MENUS" != "yes"; then
17686 if test "${HAVE_MENUS}" = "yes" ; then
17688 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
17692 if test "${GNU_MALLOC}" = "yes" ; then
17694 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
17699 if test "${REL_ALLOC}" = "yes" ; then
17701 $as_echo "#define REL_ALLOC 1" >>confdefs.h
17704 test "$system_malloc" != "yes" && RALLOC_OBJ
=ralloc.o
17708 if test "$opsys" = "cygwin"; then
17709 CYGWIN_OBJ
="sheap.o cygw32.o"
17710 ## Cygwin differs because of its unexec().
17712 POST_ALLOC_OBJ
=lastfile.o
17713 elif test "$opsys" = "mingw32"; then
17716 POST_ALLOC_OBJ
=lastfile.o
17719 PRE_ALLOC_OBJ
=lastfile.o
17728 # Configure gnulib. Although this does not affect CFLAGS or LIBS permanently.
17729 # it temporarily reverts them to their pre-pkg-config values,
17730 # because gnulib needs to work with both src (which uses the
17731 # pkg-config stuff) and lib-src (which does not). For example, gnulib
17732 # may need to determine whether LIB_CLOCK_GETTIME should contain -lrt,
17733 # and it therefore needs to run in an environment where LIBS does not
17734 # already contain -lrt merely because 'pkg-config --libs' printed '-lrt'
17735 # for some package unrelated to lib-src.
17736 SAVE_CFLAGS
=$CFLAGS
17738 CFLAGS
=$pre_PKG_CONFIG_CFLAGS
17739 LIBS
="$LIB_PTHREAD $pre_PKG_CONFIG_LIBS"
17751 LIBC_FATAL_STDERR_
=1
17752 export LIBC_FATAL_STDERR_
17754 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
17755 # for constant arguments. Useless!
17756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
17757 $as_echo_n "checking for working alloca.h... " >&6; }
17758 if test "${ac_cv_working_alloca_h+set}" = set; then :
17759 $as_echo_n "(cached) " >&6
17761 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17762 /* end confdefs.h. */
17763 #include <alloca.h>
17767 char *p = (char *) alloca (2 * sizeof (int));
17773 if ac_fn_c_try_link
"$LINENO"; then :
17774 ac_cv_working_alloca_h
=yes
17776 ac_cv_working_alloca_h
=no
17778 rm -f core conftest.err conftest.
$ac_objext \
17779 conftest
$ac_exeext conftest.
$ac_ext
17781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
17782 $as_echo "$ac_cv_working_alloca_h" >&6; }
17783 if test $ac_cv_working_alloca_h = yes; then
17785 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
17789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
17790 $as_echo_n "checking for alloca... " >&6; }
17791 if test "${ac_cv_func_alloca_works+set}" = set; then :
17792 $as_echo_n "(cached) " >&6
17794 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17795 /* end confdefs.h. */
17797 # define alloca __builtin_alloca
17800 # include <malloc.h>
17801 # define alloca _alloca
17803 # ifdef HAVE_ALLOCA_H
17804 # include <alloca.h>
17809 # ifndef alloca /* predefined by HP cc +Olibcalls */
17820 char *p = (char *) alloca (1);
17826 if ac_fn_c_try_link
"$LINENO"; then :
17827 ac_cv_func_alloca_works
=yes
17829 ac_cv_func_alloca_works
=no
17831 rm -f core conftest.err conftest.
$ac_objext \
17832 conftest
$ac_exeext conftest.
$ac_ext
17834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
17835 $as_echo "$ac_cv_func_alloca_works" >&6; }
17837 if test $ac_cv_func_alloca_works = yes; then
17839 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
17842 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
17843 # that cause trouble. Some versions do not even contain alloca or
17844 # contain a buggy version. If you still want to use their alloca,
17845 # use ar to extract alloca.o from them instead of compiling alloca.c.
17851 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
17853 $as_echo "#define C_ALLOCA 1" >>confdefs.h
17856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 'alloca.c' needs Cray hooks" >&5
17857 $as_echo_n "checking whether 'alloca.c' needs Cray hooks... " >&6; }
17858 if test "${ac_cv_os_cray+set}" = set; then :
17859 $as_echo_n "(cached) " >&6
17861 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17862 /* end confdefs.h. */
17863 #if defined CRAY && ! defined CRAY2
17870 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17871 $EGREP "webecray" >/dev
/null
2>&1; then :
17879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
17880 $as_echo "$ac_cv_os_cray" >&6; }
17881 if test $ac_cv_os_cray = yes; then
17882 for ac_func
in _getb67 GETB67 getb67
; do
17883 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17884 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
17885 eval as_val
=\$
$as_ac_var
17886 if test "x$as_val" = x
""yes; then :
17888 cat >>confdefs.h
<<_ACEOF
17889 #define CRAY_STACKSEG_END $ac_func
17898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
17899 $as_echo_n "checking stack direction for C alloca... " >&6; }
17900 if test "${ac_cv_c_stack_direction+set}" = set; then :
17901 $as_echo_n "(cached) " >&6
17903 if test "$cross_compiling" = yes; then :
17904 ac_cv_c_stack_direction
=0
17906 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17907 /* end confdefs.h. */
17908 $ac_includes_default
17910 find_stack_direction (int *addr, int depth)
17912 int dir, dummy = 0;
17915 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
17916 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
17917 return dir + dummy;
17921 main (int argc, char **argv)
17923 return find_stack_direction (0, argc + !argv + 20) < 0;
17926 if ac_fn_c_try_run
"$LINENO"; then :
17927 ac_cv_c_stack_direction
=1
17929 ac_cv_c_stack_direction
=-1
17931 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17932 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
17937 $as_echo "$ac_cv_c_stack_direction" >&6; }
17938 cat >>confdefs.h
<<_ACEOF
17939 #define STACK_DIRECTION $ac_cv_c_stack_direction
17948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
17949 $as_echo_n "checking for unsigned long long int... " >&6; }
17950 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
17951 $as_echo_n "(cached) " >&6
17953 ac_cv_type_unsigned_long_long_int
=yes
17954 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
17955 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17956 /* end confdefs.h. */
17958 /* For now, do not test the preprocessor; as of 2007 there are too many
17959 implementations with broken preprocessors. Perhaps this can
17960 be revisited in 2012. In the meantime, code should not expect
17961 #if to work with literals wider than 32 bits. */
17962 /* Test literals. */
17963 long long int ll = 9223372036854775807ll;
17964 long long int nll = -9223372036854775807LL;
17965 unsigned long long int ull = 18446744073709551615ULL;
17966 /* Test constant expressions. */
17967 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
17969 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
17975 /* Test availability of runtime routines for shift and division. */
17976 long long int llmax = 9223372036854775807ll;
17977 unsigned long long int ullmax = 18446744073709551615ull;
17978 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
17979 | (llmax / ll) | (llmax % ll)
17980 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
17981 | (ullmax / ull) | (ullmax % ull));
17987 if ac_fn_c_try_link
"$LINENO"; then :
17990 ac_cv_type_unsigned_long_long_int
=no
17992 rm -f core conftest.err conftest.
$ac_objext \
17993 conftest
$ac_exeext conftest.
$ac_ext
17996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
17997 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
17998 if test $ac_cv_type_unsigned_long_long_int = yes; then
18000 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
18005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
18006 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
18007 if test "${ac_cv_c_bigendian+set}" = set; then :
18008 $as_echo_n "(cached) " >&6
18010 ac_cv_c_bigendian
=unknown
18011 # See if we're dealing with a universal compiler.
18012 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18013 /* end confdefs.h. */
18014 #ifndef __APPLE_CC__
18015 not a universal capable compiler
18020 if ac_fn_c_try_compile
"$LINENO"; then :
18022 # Check for potential -arch flags. It is not universal unless
18023 # there are at least two -arch flags with different values.
18026 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
18027 if test -n "$ac_prev"; then
18029 i?
86 | x86_64 | ppc | ppc64
)
18030 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
18033 ac_cv_c_bigendian
=universal
18039 elif test "x$ac_word" = "x-arch"; then
18044 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18045 if test $ac_cv_c_bigendian = unknown
; then
18046 # See if sys/param.h defines the BYTE_ORDER macro.
18047 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18048 /* end confdefs.h. */
18049 #include <sys/types.h>
18050 #include <sys/param.h>
18055 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
18056 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
18058 bogus endian macros
18065 if ac_fn_c_try_compile
"$LINENO"; then :
18066 # It does; now see whether it defined to BIG_ENDIAN or not.
18067 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18068 /* end confdefs.h. */
18069 #include <sys/types.h>
18070 #include <sys/param.h>
18075 #if BYTE_ORDER != BIG_ENDIAN
18083 if ac_fn_c_try_compile
"$LINENO"; then :
18084 ac_cv_c_bigendian
=yes
18086 ac_cv_c_bigendian
=no
18088 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18090 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18092 if test $ac_cv_c_bigendian = unknown
; then
18093 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
18094 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18095 /* end confdefs.h. */
18096 #include <limits.h>
18101 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
18102 bogus endian macros
18109 if ac_fn_c_try_compile
"$LINENO"; then :
18110 # It does; now see whether it defined to _BIG_ENDIAN or not.
18111 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18112 /* end confdefs.h. */
18113 #include <limits.h>
18118 #ifndef _BIG_ENDIAN
18126 if ac_fn_c_try_compile
"$LINENO"; then :
18127 ac_cv_c_bigendian
=yes
18129 ac_cv_c_bigendian
=no
18131 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18133 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18135 if test $ac_cv_c_bigendian = unknown
; then
18136 # Compile a test program.
18137 if test "$cross_compiling" = yes; then :
18138 # Try to guess by grepping values from an object file.
18139 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18140 /* end confdefs.h. */
18141 short int ascii_mm[] =
18142 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
18143 short int ascii_ii[] =
18144 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
18145 int use_ascii (int i) {
18146 return ascii_mm[i] + ascii_ii[i];
18148 short int ebcdic_ii[] =
18149 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
18150 short int ebcdic_mm[] =
18151 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
18152 int use_ebcdic (int i) {
18153 return ebcdic_mm[i] + ebcdic_ii[i];
18160 return use_ascii (foo) == use_ebcdic (foo);
18165 if ac_fn_c_try_compile
"$LINENO"; then :
18166 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
18167 ac_cv_c_bigendian
=yes
18169 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
18170 if test "$ac_cv_c_bigendian" = unknown
; then
18171 ac_cv_c_bigendian
=no
18173 # finding both strings is unlikely to happen, but who knows?
18174 ac_cv_c_bigendian
=unknown
18178 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18180 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18181 /* end confdefs.h. */
18182 $ac_includes_default
18187 /* Are we little or big endian? From Harbison&Steele. */
18191 char c[sizeof (long int)];
18194 return u.c[sizeof (long int) - 1] == 1;
18200 if ac_fn_c_try_run
"$LINENO"; then :
18201 ac_cv_c_bigendian
=no
18203 ac_cv_c_bigendian
=yes
18205 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18206 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
18212 $as_echo "$ac_cv_c_bigendian" >&6; }
18213 case $ac_cv_c_bigendian in #(
18215 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
18221 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
18225 as_fn_error
"unknown endianness
18226 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
18238 GNULIB_EUIDACCESS
=0;
18239 GNULIB_FACCESSAT
=0;
18242 GNULIB_FDATASYNC
=0;
18244 GNULIB_FTRUNCATE
=0;
18246 GNULIB_GETDOMAINNAME
=0;
18247 GNULIB_GETDTABLESIZE
=0;
18248 GNULIB_GETGROUPS
=0;
18249 GNULIB_GETHOSTNAME
=0;
18251 GNULIB_GETLOGIN_R
=0;
18252 GNULIB_GETPAGESIZE
=0;
18253 GNULIB_GETUSERSHELL
=0;
18254 GNULIB_GROUP_MEMBER
=0;
18266 GNULIB_READLINKAT
=0;
18268 GNULIB_SETHOSTNAME
=0;
18271 GNULIB_SYMLINKAT
=0;
18272 GNULIB_TTYNAME_R
=0;
18273 GNULIB_UNISTD_H_NONBLOCKING
=0;
18274 GNULIB_UNISTD_H_SIGPIPE
=0;
18289 HAVE_GETDTABLESIZE
=1;
18291 HAVE_GETHOSTNAME
=1;
18293 HAVE_GETPAGESIZE
=1;
18294 HAVE_GROUP_MEMBER
=1;
18304 HAVE_SETHOSTNAME
=1;
18310 HAVE_DECL_ENVIRON
=1;
18311 HAVE_DECL_FCHDIR
=1;
18312 HAVE_DECL_FDATASYNC
=1;
18313 HAVE_DECL_GETDOMAINNAME
=1;
18314 HAVE_DECL_GETLOGIN_R
=1;
18315 HAVE_DECL_GETPAGESIZE
=1;
18316 HAVE_DECL_GETUSERSHELL
=1;
18317 HAVE_DECL_SETHOSTNAME
=1;
18318 HAVE_DECL_TTYNAME_R
=1;
18320 HAVE_SYS_PARAM_H
=0;
18325 REPLACE_FCHOWNAT
=0;
18326 REPLACE_FTRUNCATE
=0;
18328 REPLACE_GETDOMAINNAME
=0;
18329 REPLACE_GETDTABLESIZE
=0;
18330 REPLACE_GETLOGIN_R
=0;
18331 REPLACE_GETGROUPS
=0;
18332 REPLACE_GETPAGESIZE
=0;
18341 REPLACE_READLINK
=0;
18345 REPLACE_TTYNAME_R
=0;
18347 REPLACE_UNLINKAT
=0;
18350 UNISTD_H_HAVE_WINSOCK2_H
=0;
18351 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
=0;
18357 GNULIB_REWINDDIR
=0;
18360 GNULIB_FDOPENDIR
=0;
18362 GNULIB_ALPHASORT
=0;
18368 HAVE_DECL_FDOPENDIR
=1;
18373 REPLACE_CLOSEDIR
=0;
18375 REPLACE_FDOPENDIR
=0;
18379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
18380 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
18381 if test "${gl_cv_have_include_next+set}" = set; then :
18382 $as_echo_n "(cached) " >&6
18384 rm -rf conftestd1a conftestd1b conftestd2
18385 mkdir conftestd1a conftestd1b conftestd2
18386 cat <<EOF > conftestd1a/conftest.h
18387 #define DEFINED_IN_CONFTESTD1
18388 #include_next <conftest.h>
18389 #ifdef DEFINED_IN_CONFTESTD2
18392 #error "include_next doesn't work"
18395 cat <<EOF > conftestd1b/conftest.h
18396 #define DEFINED_IN_CONFTESTD1
18398 #include_next <conftest.h>
18399 #ifdef DEFINED_IN_CONFTESTD2
18402 #error "include_next doesn't work"
18405 cat <<EOF > conftestd2/conftest.h
18406 #ifndef DEFINED_IN_CONFTESTD1
18407 #error "include_next test doesn't work"
18409 #define DEFINED_IN_CONFTESTD2
18411 gl_save_CPPFLAGS
="$CPPFLAGS"
18412 CPPFLAGS
="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
18413 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18414 /* end confdefs.h. */
18415 #include <conftest.h>
18417 if ac_fn_c_try_compile
"$LINENO"; then :
18418 gl_cv_have_include_next
=yes
18420 CPPFLAGS
="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
18421 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18422 /* end confdefs.h. */
18423 #include <conftest.h>
18425 if ac_fn_c_try_compile
"$LINENO"; then :
18426 gl_cv_have_include_next
=buggy
18428 gl_cv_have_include_next
=no
18430 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18433 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18434 CPPFLAGS
="$gl_save_CPPFLAGS"
18435 rm -rf conftestd1a conftestd1b conftestd2
18438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
18439 $as_echo "$gl_cv_have_include_next" >&6; }
18440 PRAGMA_SYSTEM_HEADER
=
18441 if test $gl_cv_have_include_next = yes; then
18442 INCLUDE_NEXT
=include_next
18443 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include_next
18444 if test -n "$GCC"; then
18445 PRAGMA_SYSTEM_HEADER
='#pragma GCC system_header'
18448 if test $gl_cv_have_include_next = buggy
; then
18449 INCLUDE_NEXT
=include
18450 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include_next
18452 INCLUDE_NEXT
=include
18453 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include
18459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
18460 $as_echo_n "checking whether system header files limit the line length... " >&6; }
18461 if test "${gl_cv_pragma_columns+set}" = set; then :
18462 $as_echo_n "(cached) " >&6
18464 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18465 /* end confdefs.h. */
18472 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18473 $EGREP "choke me" >/dev
/null
2>&1; then :
18474 gl_cv_pragma_columns
=yes
18476 gl_cv_pragma_columns
=no
18482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
18483 $as_echo "$gl_cv_pragma_columns" >&6; }
18484 if test $gl_cv_pragma_columns = yes; then
18485 PRAGMA_COLUMNS
="#pragma COLUMNS 10000"
18494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtold conforms to C99" >&5
18495 $as_echo_n "checking whether strtold conforms to C99... " >&6; }
18496 if test "${gl_cv_func_c99_strtold+set}" = set; then :
18497 $as_echo_n "(cached) " >&6
18499 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18500 /* end confdefs.h. */
18501 /* On HP-UX before 11.23, strtold returns a struct instead of
18502 long double. Reject implementations like that, by requiring
18503 compatibility with the C99 prototype. */
18504 #include <stdlib.h>
18505 static long double (*p) (char const *, char **) = strtold;
18507 test (char const *nptr, char **endptr)
18510 r = strtold (nptr, endptr);
18516 return test ("1.0", NULL) != 1 || p ("1.0", NULL) != 1;
18521 if ac_fn_c_try_link
"$LINENO"; then :
18522 gl_cv_func_c99_strtold
=yes
18524 gl_cv_func_c99_strtold
=no
18526 rm -f core conftest.err conftest.
$ac_objext \
18527 conftest
$ac_exeext conftest.
$ac_ext
18529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_c99_strtold" >&5
18530 $as_echo "$gl_cv_func_c99_strtold" >&6; }
18531 if test $gl_cv_func_c99_strtold = yes; then
18533 $as_echo "#define HAVE_C99_STRTOLD 1" >>confdefs.h
18544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if environ is properly declared" >&5
18545 $as_echo_n "checking if environ is properly declared... " >&6; }
18546 if test "${gt_cv_var_environ_declaration+set}" = set; then :
18547 $as_echo_n "(cached) " >&6
18550 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18551 /* end confdefs.h. */
18553 #include <unistd.h>
18555 /* mingw, BeOS, Haiku declare environ in <stdlib.h>, not in <unistd.h>. */
18556 #include <stdlib.h>
18558 extern struct { int foo; } environ;
18567 if ac_fn_c_try_compile
"$LINENO"; then :
18568 gt_cv_var_environ_declaration
=no
18570 gt_cv_var_environ_declaration
=yes
18572 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_var_environ_declaration" >&5
18576 $as_echo "$gt_cv_var_environ_declaration" >&6; }
18577 if test $gt_cv_var_environ_declaration = yes; then
18579 $as_echo "#define HAVE_ENVIRON_DECL 1" >>confdefs.h
18584 if test $gt_cv_var_environ_declaration != yes; then
18585 HAVE_DECL_ENVIRON
=0
18590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5
18591 $as_echo_n "checking for complete errno.h... " >&6; }
18592 if test "${gl_cv_header_errno_h_complete+set}" = set; then :
18593 $as_echo_n "(cached) " >&6
18596 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18597 /* end confdefs.h. */
18600 #if !defined ETXTBSY
18603 #if !defined ENOMSG
18609 #if !defined ENOLINK
18612 #if !defined EPROTO
18615 #if !defined EMULTIHOP
18618 #if !defined EBADMSG
18621 #if !defined EOVERFLOW
18624 #if !defined ENOTSUP
18627 #if !defined ENETRESET
18630 #if !defined ECONNABORTED
18633 #if !defined ESTALE
18636 #if !defined EDQUOT
18639 #if !defined ECANCELED
18642 #if !defined EOWNERDEAD
18645 #if !defined ENOTRECOVERABLE
18648 #if !defined EILSEQ
18653 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18654 $EGREP "booboo" >/dev
/null
2>&1; then :
18655 gl_cv_header_errno_h_complete
=no
18657 gl_cv_header_errno_h_complete
=yes
18663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5
18664 $as_echo "$gl_cv_header_errno_h_complete" >&6; }
18665 if test $gl_cv_header_errno_h_complete = yes; then
18676 if test $gl_cv_have_include_next = yes; then
18677 gl_cv_next_errno_h
='<'errno.h
'>'
18679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5
18680 $as_echo_n "checking absolute name of <errno.h>... " >&6; }
18681 if test "${gl_cv_next_errno_h+set}" = set; then :
18682 $as_echo_n "(cached) " >&6
18685 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18686 /* end confdefs.h. */
18691 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
18692 *) gl_absname_cpp
="$ac_cpp" ;;
18697 gl_dirsep_regex
='[/\\]'
18700 gl_dirsep_regex
='\/'
18703 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
18705 gl_header_literal_regex
=`echo 'errno.h' \
18706 | sed -e "$gl_make_literal_regex_sed"`
18707 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18708 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18713 gl_cv_next_errno_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18714 sed -n "$gl_absolute_header_sed"`'"'
18718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5
18719 $as_echo "$gl_cv_next_errno_h" >&6; }
18721 NEXT_ERRNO_H
=$gl_cv_next_errno_h
18723 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
18724 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18725 gl_next_as_first_directive
='<'errno.h
'>'
18727 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18728 gl_next_as_first_directive
=$gl_cv_next_errno_h
18730 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
=$gl_next_as_first_directive
18738 if test -n "$ERRNO_H"; then
18739 GL_GENERATE_ERRNO_H_TRUE
=
18740 GL_GENERATE_ERRNO_H_FALSE
='#'
18742 GL_GENERATE_ERRNO_H_TRUE
='#'
18743 GL_GENERATE_ERRNO_H_FALSE
=
18747 if test -n "$ERRNO_H"; then
18748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5
18749 $as_echo_n "checking for EMULTIHOP value... " >&6; }
18750 if test "${gl_cv_header_errno_h_EMULTIHOP+set}" = set; then :
18751 $as_echo_n "(cached) " >&6
18754 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18755 /* end confdefs.h. */
18763 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18764 $EGREP "yes" >/dev
/null
2>&1; then :
18765 gl_cv_header_errno_h_EMULTIHOP
=yes
18767 gl_cv_header_errno_h_EMULTIHOP
=no
18771 if test $gl_cv_header_errno_h_EMULTIHOP = no
; then
18772 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18773 /* end confdefs.h. */
18775 #define _XOPEN_SOURCE_EXTENDED 1
18782 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18783 $EGREP "yes" >/dev
/null
2>&1; then :
18784 gl_cv_header_errno_h_EMULTIHOP
=hidden
18788 if test $gl_cv_header_errno_h_EMULTIHOP = hidden
; then
18789 if ac_fn_c_compute_int
"$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP" "
18790 #define _XOPEN_SOURCE_EXTENDED 1
18792 /* The following two lines are a workaround against an autoconf-2.52 bug. */
18794 #include <stdlib.h>
18803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
18804 $as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
18805 case $gl_cv_header_errno_h_EMULTIHOP in
18807 EMULTIHOP_HIDDEN
=0; EMULTIHOP_VALUE
=
18810 EMULTIHOP_HIDDEN
=1; EMULTIHOP_VALUE
="$gl_cv_header_errno_h_EMULTIHOP"
18818 if test -n "$ERRNO_H"; then
18819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5
18820 $as_echo_n "checking for ENOLINK value... " >&6; }
18821 if test "${gl_cv_header_errno_h_ENOLINK+set}" = set; then :
18822 $as_echo_n "(cached) " >&6
18825 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18826 /* end confdefs.h. */
18834 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18835 $EGREP "yes" >/dev
/null
2>&1; then :
18836 gl_cv_header_errno_h_ENOLINK
=yes
18838 gl_cv_header_errno_h_ENOLINK
=no
18842 if test $gl_cv_header_errno_h_ENOLINK = no
; then
18843 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18844 /* end confdefs.h. */
18846 #define _XOPEN_SOURCE_EXTENDED 1
18853 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18854 $EGREP "yes" >/dev
/null
2>&1; then :
18855 gl_cv_header_errno_h_ENOLINK
=hidden
18859 if test $gl_cv_header_errno_h_ENOLINK = hidden
; then
18860 if ac_fn_c_compute_int
"$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK" "
18861 #define _XOPEN_SOURCE_EXTENDED 1
18863 /* The following two lines are a workaround against an autoconf-2.52 bug. */
18865 #include <stdlib.h>
18874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5
18875 $as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
18876 case $gl_cv_header_errno_h_ENOLINK in
18878 ENOLINK_HIDDEN
=0; ENOLINK_VALUE
=
18881 ENOLINK_HIDDEN
=1; ENOLINK_VALUE
="$gl_cv_header_errno_h_ENOLINK"
18889 if test -n "$ERRNO_H"; then
18890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5
18891 $as_echo_n "checking for EOVERFLOW value... " >&6; }
18892 if test "${gl_cv_header_errno_h_EOVERFLOW+set}" = set; then :
18893 $as_echo_n "(cached) " >&6
18896 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18897 /* end confdefs.h. */
18905 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18906 $EGREP "yes" >/dev
/null
2>&1; then :
18907 gl_cv_header_errno_h_EOVERFLOW
=yes
18909 gl_cv_header_errno_h_EOVERFLOW
=no
18913 if test $gl_cv_header_errno_h_EOVERFLOW = no
; then
18914 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18915 /* end confdefs.h. */
18917 #define _XOPEN_SOURCE_EXTENDED 1
18924 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18925 $EGREP "yes" >/dev
/null
2>&1; then :
18926 gl_cv_header_errno_h_EOVERFLOW
=hidden
18930 if test $gl_cv_header_errno_h_EOVERFLOW = hidden
; then
18931 if ac_fn_c_compute_int
"$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW" "
18932 #define _XOPEN_SOURCE_EXTENDED 1
18934 /* The following two lines are a workaround against an autoconf-2.52 bug. */
18936 #include <stdlib.h>
18945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
18946 $as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
18947 case $gl_cv_header_errno_h_EOVERFLOW in
18949 EOVERFLOW_HIDDEN
=0; EOVERFLOW_VALUE
=
18952 EOVERFLOW_HIDDEN
=1; EOVERFLOW_VALUE
="$gl_cv_header_errno_h_EOVERFLOW"
18969 GNULIB_NONBLOCKING
=0;
18981 ac_fn_c_check_type
"$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
18982 if test "x$ac_cv_type_mode_t" = x
""yes; then :
18986 cat >>confdefs.h
<<_ACEOF
18992 ac_fn_c_check_decl
"$LINENO" "fdatasync" "ac_cv_have_decl_fdatasync" "$ac_includes_default"
18993 if test "x$ac_cv_have_decl_fdatasync" = x
""yes; then :
18999 cat >>confdefs.h
<<_ACEOF
19000 #define HAVE_DECL_FDATASYNC $ac_have_decl
19005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_dm_mode in struct stat" >&5
19006 $as_echo_n "checking for st_dm_mode in struct stat... " >&6; }
19007 if test "${ac_cv_struct_st_dm_mode+set}" = set; then :
19008 $as_echo_n "(cached) " >&6
19010 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19011 /* end confdefs.h. */
19013 #include <sys/types.h>
19014 #include <sys/stat.h>
19018 struct stat s; s.st_dm_mode;
19023 if ac_fn_c_try_compile
"$LINENO"; then :
19024 ac_cv_struct_st_dm_mode
=yes
19026 ac_cv_struct_st_dm_mode
=no
19028 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_st_dm_mode" >&5
19031 $as_echo "$ac_cv_struct_st_dm_mode" >&6; }
19033 if test $ac_cv_struct_st_dm_mode = yes; then
19035 $as_echo "#define HAVE_ST_DM_MODE 1" >>confdefs.h
19040 ac_fn_c_check_decl
"$LINENO" "strmode" "ac_cv_have_decl_strmode" "$ac_includes_default"
19041 if test "x$ac_cv_have_decl_strmode" = x
""yes; then :
19047 cat >>confdefs.h
<<_ACEOF
19048 #define HAVE_DECL_STRMODE $ac_have_decl
19066 GNULIB_UTIMENSAT
=0;
19080 REPLACE_FUTIMENS
=0;
19086 REPLACE_UTIMENSAT
=0;
19089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
19090 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
19091 if test "${gl_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
19092 $as_echo_n "(cached) " >&6
19094 rm -f conftest.sym conftest.
file
19095 echo >conftest.
file
19096 if test "$as_ln_s" = "ln -s" && ln -s conftest.
file conftest.sym
; then
19097 if test "$cross_compiling" = yes; then :
19099 # Guess yes on glibc systems.
19100 *-gnu*) gl_cv_func_lstat_dereferences_slashed_symlink
="guessing yes" ;;
19101 # If we don't know, assume the worst.
19102 *) gl_cv_func_lstat_dereferences_slashed_symlink
="guessing no" ;;
19106 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19107 /* end confdefs.h. */
19108 $ac_includes_default
19113 /* Linux will dereference the symlink and fail, as required by
19114 POSIX. That is better in the sense that it means we will not
19115 have to compile and use the lstat wrapper. */
19116 return lstat ("conftest.sym/", &sbuf) == 0;
19122 if ac_fn_c_try_run
"$LINENO"; then :
19123 gl_cv_func_lstat_dereferences_slashed_symlink
=yes
19125 gl_cv_func_lstat_dereferences_slashed_symlink
=no
19127 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19128 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19132 # If the 'ln -s' command failed, then we probably don't even
19133 # have an lstat function.
19134 gl_cv_func_lstat_dereferences_slashed_symlink
="guessing no"
19136 rm -f conftest.sym conftest.
file
19139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
19140 $as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
19141 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
19144 cat >>confdefs.h
<<_ACEOF
19145 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
19158 GNULIB_CALLOC_POSIX
=0;
19159 GNULIB_CANONICALIZE_FILE_NAME
=0;
19160 GNULIB_GETLOADAVG
=0;
19161 GNULIB_GETSUBOPT
=0;
19163 GNULIB_MALLOC_POSIX
=0;
19167 GNULIB_MKOSTEMPS
=0;
19170 GNULIB_POSIX_OPENPT
=0;
19172 GNULIB_PTSNAME_R
=0;
19176 GNULIB_REALLOC_POSIX
=0;
19179 GNULIB_SECURE_GETENV
=0;
19184 GNULIB_SYSTEM_POSIX
=0;
19190 HAVE_CANONICALIZE_FILE_NAME
=1;
19191 HAVE_DECL_GETLOADAVG
=1;
19199 HAVE_POSIX_OPENPT
=1;
19207 HAVE_SECURE_GETENV
=1;
19209 HAVE_DECL_SETENV
=1;
19213 HAVE_STRUCT_RANDOM_DATA
=1;
19214 HAVE_SYS_LOADAVG_H
=0;
19216 HAVE_DECL_UNSETENV
=1;
19218 REPLACE_CANONICALIZE_FILE_NAME
=0;
19223 REPLACE_PTSNAME_R
=0;
19225 REPLACE_RANDOM_R
=0;
19227 REPLACE_REALPATH
=0;
19230 REPLACE_UNSETENV
=0;
19248 if test $gl_cv_have_include_next = yes; then
19249 gl_cv_next_getopt_h
='<'getopt.h
'>'
19251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
19252 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
19253 if test "${gl_cv_next_getopt_h+set}" = set; then :
19254 $as_echo_n "(cached) " >&6
19257 if test $ac_cv_header_getopt_h = yes; then
19260 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19261 /* end confdefs.h. */
19262 #include <getopt.h>
19266 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
19267 *) gl_absname_cpp
="$ac_cpp" ;;
19272 gl_dirsep_regex
='[/\\]'
19275 gl_dirsep_regex
='\/'
19278 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
19280 gl_header_literal_regex
=`echo 'getopt.h' \
19281 | sed -e "$gl_make_literal_regex_sed"`
19282 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19283 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19288 gl_cv_next_getopt_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19289 sed -n "$gl_absolute_header_sed"`'"'
19291 gl_cv_next_getopt_h
='<'getopt.h
'>'
19296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
19297 $as_echo "$gl_cv_next_getopt_h" >&6; }
19299 NEXT_GETOPT_H
=$gl_cv_next_getopt_h
19301 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
19302 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19303 gl_next_as_first_directive
='<'getopt.h
'>'
19305 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19306 gl_next_as_first_directive
=$gl_cv_next_getopt_h
19308 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
=$gl_next_as_first_directive
19313 if test $ac_cv_header_getopt_h = yes; then
19322 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
19323 for ac_header
in getopt.h
19325 ac_fn_c_check_header_mongrel
"$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
19326 if test "x$ac_cv_header_getopt_h" = x
""yes; then :
19327 cat >>confdefs.h
<<_ACEOF
19328 #define HAVE_GETOPT_H 1
19332 gl_replace_getopt
=yes
19339 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
19340 for ac_func
in getopt_long_only
19342 ac_fn_c_check_func
"$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
19343 if test "x$ac_cv_func_getopt_long_only" = x
""yes; then :
19344 cat >>confdefs.h
<<_ACEOF
19345 #define HAVE_GETOPT_LONG_ONLY 1
19349 gl_replace_getopt
=yes
19355 if test -z "$gl_replace_getopt"; then
19356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
19357 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
19358 if test "${gl_cv_func_getopt_posix+set}" = set; then :
19359 $as_echo_n "(cached) " >&6
19362 if test $cross_compiling = no
; then
19363 if test "$cross_compiling" = yes; then :
19364 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19365 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19366 as_fn_error
"cannot run test program while cross compiling
19367 See \`config.log' for more details." "$LINENO" 5; }
19369 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19370 /* end confdefs.h. */
19372 #include <unistd.h>
19373 #include <stdlib.h>
19374 #include <string.h>
19379 static char program[] = "program";
19380 static char a[] = "-a";
19381 static char foo[] = "foo";
19382 static char bar[] = "bar";
19383 char *argv[] = { program, a, foo, bar, NULL };
19386 c = getopt (4, argv, "ab");
19389 c = getopt (4, argv, "ab");
19392 if (!(optind == 2))
19398 if ac_fn_c_try_run
"$LINENO"; then :
19399 gl_cv_func_getopt_posix
=maybe
19401 gl_cv_func_getopt_posix
=no
19403 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19404 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19407 if test $gl_cv_func_getopt_posix = maybe
; then
19408 if test "$cross_compiling" = yes; then :
19409 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19410 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19411 as_fn_error
"cannot run test program while cross compiling
19412 See \`config.log' for more details." "$LINENO" 5; }
19414 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19415 /* end confdefs.h. */
19417 #include <unistd.h>
19418 #include <stdlib.h>
19419 #include <string.h>
19424 static char program[] = "program";
19425 static char donald[] = "donald";
19426 static char p[] = "-p";
19427 static char billy[] = "billy";
19428 static char duck[] = "duck";
19429 static char a[] = "-a";
19430 static char bar[] = "bar";
19431 char *argv[] = { program, donald, p, billy, duck, a, bar, NULL };
19434 c = getopt (7, argv, "+abp:q:");
19437 if (!(strcmp (argv[0], "program") == 0))
19439 if (!(strcmp (argv[1], "donald") == 0))
19441 if (!(strcmp (argv[2], "-p") == 0))
19443 if (!(strcmp (argv[3], "billy") == 0))
19445 if (!(strcmp (argv[4], "duck") == 0))
19447 if (!(strcmp (argv[5], "-a") == 0))
19449 if (!(strcmp (argv[6], "bar") == 0))
19451 if (!(optind == 1))
19457 if ac_fn_c_try_run
"$LINENO"; then :
19458 gl_cv_func_getopt_posix
=maybe
19460 gl_cv_func_getopt_posix
=no
19462 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19463 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19467 if test $gl_cv_func_getopt_posix = maybe
; then
19468 if test "$cross_compiling" = yes; then :
19469 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19470 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19471 as_fn_error
"cannot run test program while cross compiling
19472 See \`config.log' for more details." "$LINENO" 5; }
19474 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19475 /* end confdefs.h. */
19477 #include <unistd.h>
19478 #include <stdlib.h>
19479 #include <string.h>
19484 static char program[] = "program";
19485 static char ab[] = "-ab";
19486 char *argv[3] = { program, ab, NULL };
19487 if (getopt (2, argv, "ab:") != 'a')
19489 if (getopt (2, argv, "ab:") != '?')
19499 if ac_fn_c_try_run
"$LINENO"; then :
19500 gl_cv_func_getopt_posix
=yes
19502 gl_cv_func_getopt_posix
=no
19504 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19505 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19511 darwin
* | aix
* | mingw
*) gl_cv_func_getopt_posix
="guessing no";;
19512 *) gl_cv_func_getopt_posix
="guessing yes";;
19517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
19518 $as_echo "$gl_cv_func_getopt_posix" >&6; }
19519 case "$gl_cv_func_getopt_posix" in
19520 *no
) gl_replace_getopt
=yes ;;
19524 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
19525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
19526 $as_echo_n "checking for working GNU getopt function... " >&6; }
19527 if test "${gl_cv_func_getopt_gnu+set}" = set; then :
19528 $as_echo_n "(cached) " >&6
19530 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
19531 # optstring is necessary for programs like m4 that have POSIX-mandated
19532 # semantics for supporting options interspersed with files.
19533 # Also, since getopt_long is a GNU extension, we require optind=0.
19534 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
19535 # so take care to revert to the correct (non-)export state.
19536 gl_awk_probe
='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
19537 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
19538 xx
) gl_had_POSIXLY_CORRECT
=exported
;;
19539 x
) gl_had_POSIXLY_CORRECT
=yes ;;
19540 *) gl_had_POSIXLY_CORRECT
= ;;
19543 export POSIXLY_CORRECT
19544 if test "$cross_compiling" = yes; then :
19545 gl_cv_func_getopt_gnu
="guessing no"
19548 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19549 /* end confdefs.h. */
19550 #include <getopt.h>
19551 #include <stddef.h>
19552 #include <string.h>
19554 #include <stdlib.h>
19555 #if defined __MACH__ && defined __APPLE__
19556 /* Avoid a crash on Mac OS X. */
19557 #include <mach/mach.h>
19558 #include <mach/mach_error.h>
19559 #include <mach/thread_status.h>
19560 #include <mach/exception.h>
19561 #include <mach/task.h>
19562 #include <pthread.h>
19563 /* The exception port on which our thread listens. */
19564 static mach_port_t our_exception_port;
19565 /* The main function of the thread listening for exceptions of type
19568 mach_exception_thread (void *arg)
19570 /* Buffer for a message to be received. */
19572 mach_msg_header_t head;
19573 mach_msg_body_t msgh_body;
19576 mach_msg_return_t retval;
19577 /* Wait for a message on the exception port. */
19578 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
19579 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
19580 if (retval != MACH_MSG_SUCCESS)
19585 nocrash_init (void)
19587 mach_port_t self = mach_task_self ();
19588 /* Allocate a port on which the thread shall listen for exceptions. */
19589 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
19591 /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
19592 if (mach_port_insert_right (self, our_exception_port, our_exception_port,
19593 MACH_MSG_TYPE_MAKE_SEND)
19595 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
19597 exception_mask_t mask = EXC_MASK_BAD_ACCESS;
19598 /* Create the thread listening on the exception port. */
19599 pthread_attr_t attr;
19601 if (pthread_attr_init (&attr) == 0
19602 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
19603 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
19604 pthread_attr_destroy (&attr);
19605 /* Replace the exception port info for these exceptions with our own.
19606 Note that we replace the exception port for the entire task, not only
19607 for a particular thread. This has the effect that when our exception
19608 port gets the message, the thread specific exception port has already
19609 been asked, and we don't need to bother about it.
19610 See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
19611 task_set_exception_ports (self, mask, our_exception_port,
19612 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
19617 #elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
19618 /* Avoid a crash on native Windows. */
19619 #define WIN32_LEAN_AND_MEAN
19620 #include <windows.h>
19621 #include <winerror.h>
19623 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
19625 switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
19627 case EXCEPTION_ACCESS_VIOLATION:
19628 case EXCEPTION_IN_PAGE_ERROR:
19629 case EXCEPTION_STACK_OVERFLOW:
19630 case EXCEPTION_GUARD_PAGE:
19631 case EXCEPTION_PRIV_INSTRUCTION:
19632 case EXCEPTION_ILLEGAL_INSTRUCTION:
19633 case EXCEPTION_DATATYPE_MISALIGNMENT:
19634 case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
19635 case EXCEPTION_NONCONTINUABLE_EXCEPTION:
19638 return EXCEPTION_CONTINUE_SEARCH;
19641 nocrash_init (void)
19643 SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
19646 /* Avoid a crash on POSIX systems. */
19647 #include <signal.h>
19648 /* A POSIX signal handler. */
19650 exception_handler (int sig)
19655 nocrash_init (void)
19658 signal (SIGSEGV, exception_handler);
19661 signal (SIGBUS, exception_handler);
19675 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
19676 and fails on Mac OS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
19677 OSF/1 5.1, Solaris 10. */
19679 static char conftest[] = "conftest";
19680 static char plus[] = "-+";
19681 char *argv[3] = { conftest, plus, NULL };
19683 if (getopt (2, argv, "+a") != '?')
19686 /* This code succeeds on glibc 2.8, mingw,
19687 and fails on Mac OS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
19688 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
19690 static char program[] = "program";
19691 static char p[] = "-p";
19692 static char foo[] = "foo";
19693 static char bar[] = "bar";
19694 char *argv[] = { program, p, foo, bar, NULL };
19697 if (getopt (4, argv, "p::") != 'p')
19699 else if (optarg != NULL)
19701 else if (getopt (4, argv, "p::") != -1)
19703 else if (optind != 2)
19706 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
19708 static char program[] = "program";
19709 static char foo[] = "foo";
19710 static char p[] = "-p";
19711 char *argv[] = { program, foo, p, NULL };
19713 if (getopt (3, argv, "-p") != 1)
19715 else if (getopt (3, argv, "-p") != 'p')
19718 /* This code fails on glibc 2.11. */
19720 static char program[] = "program";
19721 static char b[] = "-b";
19722 static char a[] = "-a";
19723 char *argv[] = { program, b, a, NULL };
19724 optind = opterr = 0;
19725 if (getopt (3, argv, "+:a:b") != 'b')
19727 else if (getopt (3, argv, "+:a:b") != ':')
19730 /* This code dumps core on glibc 2.14. */
19732 static char program[] = "program";
19733 static char w[] = "-W";
19734 static char dummy[] = "dummy";
19735 char *argv[] = { program, w, dummy, NULL };
19736 optind = opterr = 1;
19737 if (getopt (3, argv, "W;") != 'W')
19746 if ac_fn_c_try_run
"$LINENO"; then :
19747 gl_cv_func_getopt_gnu
=yes
19749 gl_cv_func_getopt_gnu
=no
19751 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19752 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19755 case $gl_had_POSIXLY_CORRECT in
19757 yes) { POSIXLY_CORRECT
=; unset POSIXLY_CORRECT
;}; POSIXLY_CORRECT
=1 ;;
19758 *) { POSIXLY_CORRECT
=; unset POSIXLY_CORRECT
;} ;;
19762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
19763 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
19764 if test "$gl_cv_func_getopt_gnu" != yes; then
19765 gl_replace_getopt
=yes
19767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt_long function" >&5
19768 $as_echo_n "checking for working GNU getopt_long function... " >&6; }
19769 if test "${gl_cv_func_getopt_long_gnu+set}" = set; then :
19770 $as_echo_n "(cached) " >&6
19772 if test "$cross_compiling" = yes; then :
19774 openbsd
*) gl_cv_func_getopt_long_gnu
="guessing no";;
19775 *) gl_cv_func_getopt_long_gnu
="guessing yes";;
19779 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19780 /* end confdefs.h. */
19781 #include <getopt.h>
19782 #include <stddef.h>
19783 #include <string.h>
19788 static const struct option long_options[] =
19790 { "xtremely-",no_argument, NULL, 1003 },
19791 { "xtra", no_argument, NULL, 1001 },
19792 { "xtreme", no_argument, NULL, 1002 },
19793 { "xtremely", no_argument, NULL, 1003 },
19794 { NULL, 0, NULL, 0 }
19796 /* This code fails on OpenBSD 5.0. */
19798 static char program[] = "program";
19799 static char xtremel[] = "--xtremel";
19800 char *argv[] = { program, xtremel, NULL };
19802 optind = 1; opterr = 0;
19803 if (getopt_long (2, argv, "", long_options, &option_index) != 1003)
19812 if ac_fn_c_try_run
"$LINENO"; then :
19813 gl_cv_func_getopt_long_gnu
=yes
19815 gl_cv_func_getopt_long_gnu
=no
19817 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19818 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_long_gnu" >&5
19824 $as_echo "$gl_cv_func_getopt_long_gnu" >&6; }
19825 case "$gl_cv_func_getopt_long_gnu" in
19827 *) gl_replace_getopt
=yes ;;
19838 if test -n "$gl_replace_getopt"; then
19842 if test $REPLACE_GETOPT = 1; then
19846 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
19852 ac_fn_c_check_decl
"$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
19853 if test "x$ac_cv_have_decl_getenv" = x
""yes; then :
19859 cat >>confdefs.h
<<_ACEOF
19860 #define HAVE_DECL_GETENV $ac_have_decl
19868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
19869 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
19870 if test "${ac_cv_c_restrict+set}" = set; then :
19871 $as_echo_n "(cached) " >&6
19873 ac_cv_c_restrict
=no
19874 # The order here caters to the fact that C++ does not require restrict.
19875 for ac_kw
in __restrict __restrict__ _Restrict restrict
; do
19876 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19877 /* end confdefs.h. */
19878 typedef int * int_ptr;
19879 int foo (int_ptr $ac_kw ip) {
19886 int * $ac_kw t = s;
19893 if ac_fn_c_try_compile
"$LINENO"; then :
19894 ac_cv_c_restrict
=$ac_kw
19896 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19897 test "$ac_cv_c_restrict" != no
&& break
19901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
19902 $as_echo "$ac_cv_c_restrict" >&6; }
19904 case $ac_cv_c_restrict in
19906 no
) $as_echo "#define restrict /**/" >>confdefs.h
19908 *) cat >>confdefs.h
<<_ACEOF
19909 #define restrict $ac_cv_c_restrict
19915 GNULIB_GETTIMEOFDAY
=0;
19916 HAVE_GETTIMEOFDAY
=1;
19917 HAVE_STRUCT_TIMEVAL
=1;
19919 REPLACE_GETTIMEOFDAY
=0;
19920 REPLACE_STRUCT_TIMEVAL
=0;
19937 if test $gl_cv_have_include_next = yes; then
19938 gl_cv_next_sys_time_h
='<'sys
/time.h
'>'
19940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/time.h>" >&5
19941 $as_echo_n "checking absolute name of <sys/time.h>... " >&6; }
19942 if test "${gl_cv_next_sys_time_h+set}" = set; then :
19943 $as_echo_n "(cached) " >&6
19946 if test $ac_cv_header_sys_time_h = yes; then
19949 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19950 /* end confdefs.h. */
19951 #include <sys/time.h>
19955 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
19956 *) gl_absname_cpp
="$ac_cpp" ;;
19961 gl_dirsep_regex
='[/\\]'
19964 gl_dirsep_regex
='\/'
19967 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
19969 gl_header_literal_regex
=`echo 'sys/time.h' \
19970 | sed -e "$gl_make_literal_regex_sed"`
19971 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19972 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19977 gl_cv_next_sys_time_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19978 sed -n "$gl_absolute_header_sed"`'"'
19980 gl_cv_next_sys_time_h
='<'sys
/time.h
'>'
19985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_time_h" >&5
19986 $as_echo "$gl_cv_next_sys_time_h" >&6; }
19988 NEXT_SYS_TIME_H
=$gl_cv_next_sys_time_h
19990 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
19991 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19992 gl_next_as_first_directive
='<'sys
/time.h
'>'
19994 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19995 gl_next_as_first_directive
=$gl_cv_next_sys_time_h
19997 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
=$gl_next_as_first_directive
20003 if test $ac_cv_header_sys_time_h != yes; then
20011 if test $ac_cv_header_sys_socket_h != yes; then
20012 for ac_header
in winsock2.h
20014 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
20015 if test "x$ac_cv_header_winsock2_h" = x
""yes; then :
20016 cat >>confdefs.h
<<_ACEOF
20017 #define HAVE_WINSOCK2_H 1
20025 if test "$ac_cv_header_winsock2_h" = yes; then
20027 UNISTD_H_HAVE_WINSOCK2_H
=1
20028 SYS_IOCTL_H_HAVE_WINSOCK2_H
=1
20034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
20035 $as_echo_n "checking for struct timeval... " >&6; }
20036 if test "${gl_cv_sys_struct_timeval+set}" = set; then :
20037 $as_echo_n "(cached) " >&6
20039 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20040 /* end confdefs.h. */
20041 #if HAVE_SYS_TIME_H
20042 #include <sys/time.h>
20045 #if HAVE_WINSOCK2_H
20046 # include <winsock2.h>
20052 static struct timeval x; x.tv_sec = x.tv_usec;
20057 if ac_fn_c_try_compile
"$LINENO"; then :
20058 gl_cv_sys_struct_timeval
=yes
20060 gl_cv_sys_struct_timeval
=no
20062 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval" >&5
20066 $as_echo "$gl_cv_sys_struct_timeval" >&6; }
20067 if test $gl_cv_sys_struct_timeval != yes; then
20068 HAVE_STRUCT_TIMEVAL
=0
20070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wide-enough struct timeval.tv_sec member" >&5
20071 $as_echo_n "checking for wide-enough struct timeval.tv_sec member... " >&6; }
20072 if test "${gl_cv_sys_struct_timeval_tv_sec+set}" = set; then :
20073 $as_echo_n "(cached) " >&6
20075 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20076 /* end confdefs.h. */
20077 #if HAVE_SYS_TIME_H
20078 #include <sys/time.h>
20081 #if HAVE_WINSOCK2_H
20082 # include <winsock2.h>
20088 static struct timeval x;
20089 typedef int verify_tv_sec_type[
20090 sizeof (time_t) <= sizeof x.tv_sec ? 1 : -1
20097 if ac_fn_c_try_compile
"$LINENO"; then :
20098 gl_cv_sys_struct_timeval_tv_sec
=yes
20100 gl_cv_sys_struct_timeval_tv_sec
=no
20102 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval_tv_sec" >&5
20106 $as_echo "$gl_cv_sys_struct_timeval_tv_sec" >&6; }
20107 if test $gl_cv_sys_struct_timeval_tv_sec != yes; then
20108 REPLACE_STRUCT_TIMEVAL
=1
20119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
20120 $as_echo_n "checking for long long int... " >&6; }
20121 if test "${ac_cv_type_long_long_int+set}" = set; then :
20122 $as_echo_n "(cached) " >&6
20124 ac_cv_type_long_long_int
=yes
20125 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
20126 ac_cv_type_long_long_int
=$ac_cv_type_unsigned_long_long_int
20127 if test $ac_cv_type_long_long_int = yes; then
20128 if test "$cross_compiling" = yes; then :
20131 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20132 /* end confdefs.h. */
20133 #include <limits.h>
20136 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
20137 # define LLONG_MAX (HALF - 1 + HALF)
20142 long long int n = 1;
20146 long long int m = n << i;
20149 if (LLONG_MAX / 2 < m)
20157 if ac_fn_c_try_run
"$LINENO"; then :
20160 ac_cv_type_long_long_int
=no
20162 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20163 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
20170 $as_echo "$ac_cv_type_long_long_int" >&6; }
20171 if test $ac_cv_type_long_long_int = yes; then
20173 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
20182 gl_cv_c_multiarch
=no
20183 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20184 /* end confdefs.h. */
20185 #ifndef __APPLE_CC__
20186 not a universal capable compiler
20191 if ac_fn_c_try_compile
"$LINENO"; then :
20195 for word
in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
20196 if test -n "$prev"; then
20198 i?
86 | x86_64 | ppc | ppc64
)
20199 if test -z "$arch" ||
test "$arch" = "$word"; then
20202 gl_cv_c_multiarch
=yes
20208 if test "x$word" = "x-arch"; then
20215 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20216 if test $gl_cv_c_multiarch = yes; then
20217 APPLE_UNIVERSAL_BUILD
=1
20219 APPLE_UNIVERSAL_BUILD
=0
20226 if test $ac_cv_type_long_long_int = yes; then
20227 HAVE_LONG_LONG_INT
=1
20229 HAVE_LONG_LONG_INT
=0
20233 if test $ac_cv_type_unsigned_long_long_int = yes; then
20234 HAVE_UNSIGNED_LONG_LONG_INT
=1
20236 HAVE_UNSIGNED_LONG_LONG_INT
=0
20241 if test $ac_cv_header_wchar_h = yes; then
20248 if test $ac_cv_header_inttypes_h = yes; then
20255 if test $ac_cv_header_sys_types_h = yes; then
20271 if test $gl_cv_have_include_next = yes; then
20272 gl_cv_next_stdint_h
='<'stdint.h
'>'
20274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
20275 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
20276 if test "${gl_cv_next_stdint_h+set}" = set; then :
20277 $as_echo_n "(cached) " >&6
20280 if test $ac_cv_header_stdint_h = yes; then
20283 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20284 /* end confdefs.h. */
20285 #include <stdint.h>
20289 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
20290 *) gl_absname_cpp
="$ac_cpp" ;;
20295 gl_dirsep_regex
='[/\\]'
20298 gl_dirsep_regex
='\/'
20301 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
20303 gl_header_literal_regex
=`echo 'stdint.h' \
20304 | sed -e "$gl_make_literal_regex_sed"`
20305 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
20306 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
20311 gl_cv_next_stdint_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20312 sed -n "$gl_absolute_header_sed"`'"'
20314 gl_cv_next_stdint_h
='<'stdint.h
'>'
20319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
20320 $as_echo "$gl_cv_next_stdint_h" >&6; }
20322 NEXT_STDINT_H
=$gl_cv_next_stdint_h
20324 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
20325 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20326 gl_next_as_first_directive
='<'stdint.h
'>'
20328 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20329 gl_next_as_first_directive
=$gl_cv_next_stdint_h
20331 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
=$gl_next_as_first_directive
20336 if test $ac_cv_header_stdint_h = yes; then
20343 if test $ac_cv_header_stdint_h = yes; then
20344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
20345 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
20346 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
20347 $as_echo_n "(cached) " >&6
20349 gl_cv_header_working_stdint_h
=no
20350 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20351 /* end confdefs.h. */
20354 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
20355 #include <stdint.h>
20356 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
20357 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
20358 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
20362 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20363 included before <wchar.h>. */
20364 #include <stddef.h>
20365 #include <signal.h>
20367 # include <stdio.h>
20369 # include <wchar.h>
20374 int8_t a1 = INT8_MAX;
20375 int8_t a1min = INT8_MIN;
20378 int16_t a2 = INT16_MAX;
20379 int16_t a2min = INT16_MIN;
20382 int32_t a3 = INT32_MAX;
20383 int32_t a3min = INT32_MIN;
20386 int64_t a4 = INT64_MAX;
20387 int64_t a4min = INT64_MIN;
20390 uint8_t b1 = UINT8_MAX;
20392 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
20395 uint16_t b2 = UINT16_MAX;
20398 uint32_t b3 = UINT32_MAX;
20401 uint64_t b4 = UINT64_MAX;
20403 int_least8_t c1 = INT8_C (0x7f);
20404 int_least8_t c1max = INT_LEAST8_MAX;
20405 int_least8_t c1min = INT_LEAST8_MIN;
20406 int_least16_t c2 = INT16_C (0x7fff);
20407 int_least16_t c2max = INT_LEAST16_MAX;
20408 int_least16_t c2min = INT_LEAST16_MIN;
20409 int_least32_t c3 = INT32_C (0x7fffffff);
20410 int_least32_t c3max = INT_LEAST32_MAX;
20411 int_least32_t c3min = INT_LEAST32_MIN;
20412 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
20413 int_least64_t c4max = INT_LEAST64_MAX;
20414 int_least64_t c4min = INT_LEAST64_MIN;
20415 uint_least8_t d1 = UINT8_C (0xff);
20416 uint_least8_t d1max = UINT_LEAST8_MAX;
20417 uint_least16_t d2 = UINT16_C (0xffff);
20418 uint_least16_t d2max = UINT_LEAST16_MAX;
20419 uint_least32_t d3 = UINT32_C (0xffffffff);
20420 uint_least32_t d3max = UINT_LEAST32_MAX;
20421 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
20422 uint_least64_t d4max = UINT_LEAST64_MAX;
20423 int_fast8_t e1 = INT_FAST8_MAX;
20424 int_fast8_t e1min = INT_FAST8_MIN;
20425 int_fast16_t e2 = INT_FAST16_MAX;
20426 int_fast16_t e2min = INT_FAST16_MIN;
20427 int_fast32_t e3 = INT_FAST32_MAX;
20428 int_fast32_t e3min = INT_FAST32_MIN;
20429 int_fast64_t e4 = INT_FAST64_MAX;
20430 int_fast64_t e4min = INT_FAST64_MIN;
20431 uint_fast8_t f1 = UINT_FAST8_MAX;
20432 uint_fast16_t f2 = UINT_FAST16_MAX;
20433 uint_fast32_t f3 = UINT_FAST32_MAX;
20434 uint_fast64_t f4 = UINT_FAST64_MAX;
20436 intptr_t g = INTPTR_MAX;
20437 intptr_t gmin = INTPTR_MIN;
20440 uintptr_t h = UINTPTR_MAX;
20442 intmax_t i = INTMAX_MAX;
20443 uintmax_t j = UINTMAX_MAX;
20445 #include <limits.h> /* for CHAR_BIT */
20446 #define TYPE_MINIMUM(t) \
20447 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
20448 #define TYPE_MAXIMUM(t) \
20449 ((t) ((t) 0 < (t) -1 \
20451 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
20454 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
20455 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
20457 /* Detect bug in FreeBSD 6.0 / ia64. */
20458 int check_SIG_ATOMIC:
20459 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
20460 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
20462 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
20464 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
20465 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
20467 /* Detect bug in mingw. */
20469 WINT_MIN == TYPE_MINIMUM (wint_t)
20470 && WINT_MAX == TYPE_MAXIMUM (wint_t)
20473 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
20475 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
20476 int check_UINT16_C:
20477 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
20479 /* Detect bugs in OpenBSD 3.9 stdint.h. */
20481 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
20484 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
20487 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
20490 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
20492 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
20493 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
20494 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
20495 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
20496 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
20497 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
20498 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
20499 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
20500 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
20501 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
20502 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
20513 if ac_fn_c_try_compile
"$LINENO"; then :
20514 if test "$cross_compiling" = yes; then :
20515 gl_cv_header_working_stdint_h
=yes
20518 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20519 /* end confdefs.h. */
20522 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
20523 #include <stdint.h>
20526 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20527 included before <wchar.h>. */
20528 #include <stddef.h>
20529 #include <signal.h>
20531 # include <stdio.h>
20533 # include <wchar.h>
20538 #include <string.h>
20539 #define MVAL(macro) MVAL1(macro)
20540 #define MVAL1(expression) #expression
20541 static const char *macro_values[] =
20575 for (mv = macro_values; *mv != NULL; mv++)
20577 const char *value = *mv;
20578 /* Test whether it looks like a cast expression. */
20579 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
20580 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
20581 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
20582 || strncmp (value, "((int)"/*)*/, 6) == 0
20583 || strncmp (value, "((signed short)"/*)*/, 15) == 0
20584 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
20585 return mv - macro_values + 1;
20593 if ac_fn_c_try_run
"$LINENO"; then :
20594 gl_cv_header_working_stdint_h
=yes
20596 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20597 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20602 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
20606 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
20608 if test "$gl_cv_header_working_stdint_h" = yes; then
20611 for ac_header
in sys
/inttypes.h sys
/bitypes.h
20613 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20614 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20615 eval as_val
=\$
$as_ac_Header
20616 if test "x$as_val" = x
""yes; then :
20617 cat >>confdefs.h
<<_ACEOF
20618 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20625 if test $ac_cv_header_sys_inttypes_h = yes; then
20626 HAVE_SYS_INTTYPES_H
=1
20628 HAVE_SYS_INTTYPES_H
=0
20631 if test $ac_cv_header_sys_bitypes_h = yes; then
20632 HAVE_SYS_BITYPES_H
=1
20634 HAVE_SYS_BITYPES_H
=0
20640 if test $APPLE_UNIVERSAL_BUILD = 0; then
20643 for gltype
in ptrdiff_t size_t
; do
20644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
20645 $as_echo_n "checking for bit size of $gltype... " >&6; }
20646 if { as_var
=gl_cv_bitsizeof_
${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
20647 $as_echo_n "(cached) " >&6
20649 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
20650 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20651 included before <wchar.h>. */
20652 #include <stddef.h>
20653 #include <signal.h>
20655 # include <stdio.h>
20657 # include <wchar.h>
20660 #include <limits.h>"; then :
20666 eval gl_cv_bitsizeof_
${gltype}=\
$result
20669 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
20670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20671 $as_echo "$ac_res" >&6; }
20672 eval result
=\
$gl_cv_bitsizeof_${gltype}
20673 if test $result = unknown
; then
20676 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
20677 cat >>confdefs.h
<<_ACEOF
20678 #define BITSIZEOF_${GLTYPE} $result
20681 eval BITSIZEOF_
${GLTYPE}=\
$result
20688 for gltype
in sig_atomic_t wchar_t wint_t
; do
20689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
20690 $as_echo_n "checking for bit size of $gltype... " >&6; }
20691 if { as_var
=gl_cv_bitsizeof_
${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
20692 $as_echo_n "(cached) " >&6
20694 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
20695 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20696 included before <wchar.h>. */
20697 #include <stddef.h>
20698 #include <signal.h>
20700 # include <stdio.h>
20702 # include <wchar.h>
20705 #include <limits.h>"; then :
20711 eval gl_cv_bitsizeof_
${gltype}=\
$result
20714 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
20715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20716 $as_echo "$ac_res" >&6; }
20717 eval result
=\
$gl_cv_bitsizeof_${gltype}
20718 if test $result = unknown
; then
20721 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
20722 cat >>confdefs.h
<<_ACEOF
20723 #define BITSIZEOF_${GLTYPE} $result
20726 eval BITSIZEOF_
${GLTYPE}=\
$result
20732 for gltype
in sig_atomic_t wchar_t wint_t
; do
20733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
20734 $as_echo_n "checking whether $gltype is signed... " >&6; }
20735 if { as_var
=gl_cv_type_
${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
20736 $as_echo_n "(cached) " >&6
20738 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20739 /* end confdefs.h. */
20741 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20742 included before <wchar.h>. */
20743 #include <stddef.h>
20744 #include <signal.h>
20746 # include <stdio.h>
20748 # include <wchar.h>
20751 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
20760 if ac_fn_c_try_compile
"$LINENO"; then :
20765 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20766 eval gl_cv_type_
${gltype}_signed
=\
$result
20769 eval ac_res
=\
$gl_cv_type_${gltype}_signed
20770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20771 $as_echo "$ac_res" >&6; }
20772 eval result
=\
$gl_cv_type_${gltype}_signed
20773 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
20774 if test "$result" = yes; then
20775 cat >>confdefs.h
<<_ACEOF
20776 #define HAVE_SIGNED_${GLTYPE} 1
20779 eval HAVE_SIGNED_
${GLTYPE}=1
20781 eval HAVE_SIGNED_
${GLTYPE}=0
20786 gl_cv_type_ptrdiff_t_signed
=yes
20787 gl_cv_type_size_t_signed
=no
20788 if test $APPLE_UNIVERSAL_BUILD = 0; then
20791 for gltype
in ptrdiff_t size_t
; do
20792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
20793 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
20794 if { as_var
=gl_cv_type_
${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
20795 $as_echo_n "(cached) " >&6
20797 eval gl_cv_type_
${gltype}_suffix
=no
20798 eval result
=\
$gl_cv_type_${gltype}_signed
20799 if test "$result" = yes; then
20804 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
20806 '') gltype1
='int';;
20807 l
) gltype1
='long int';;
20808 ll
) gltype1
='long long int';;
20809 i64
) gltype1
='__int64';;
20810 u
) gltype1
='unsigned int';;
20811 ul
) gltype1
='unsigned long int';;
20812 ull
) gltype1
='unsigned long long int';;
20813 ui64
)gltype1
='unsigned __int64';;
20815 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20816 /* end confdefs.h. */
20818 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20819 included before <wchar.h>. */
20820 #include <stddef.h>
20821 #include <signal.h>
20823 # include <stdio.h>
20825 # include <wchar.h>
20828 extern $gltype foo;
20829 extern $gltype1 foo;
20838 if ac_fn_c_try_compile
"$LINENO"; then :
20839 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
20841 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20842 eval result
=\
$gl_cv_type_${gltype}_suffix
20843 test "$result" != no
&& break
20846 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
20847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20848 $as_echo "$ac_res" >&6; }
20849 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
20850 eval result
=\
$gl_cv_type_${gltype}_suffix
20851 test "$result" = no
&& result
=
20852 eval ${GLTYPE}_SUFFIX
=\
$result
20853 cat >>confdefs.h
<<_ACEOF
20854 #define ${GLTYPE}_SUFFIX $result
20863 for gltype
in sig_atomic_t wchar_t wint_t
; do
20864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
20865 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
20866 if { as_var
=gl_cv_type_
${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
20867 $as_echo_n "(cached) " >&6
20869 eval gl_cv_type_
${gltype}_suffix
=no
20870 eval result
=\
$gl_cv_type_${gltype}_signed
20871 if test "$result" = yes; then
20876 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
20878 '') gltype1
='int';;
20879 l
) gltype1
='long int';;
20880 ll
) gltype1
='long long int';;
20881 i64
) gltype1
='__int64';;
20882 u
) gltype1
='unsigned int';;
20883 ul
) gltype1
='unsigned long int';;
20884 ull
) gltype1
='unsigned long long int';;
20885 ui64
)gltype1
='unsigned __int64';;
20887 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20888 /* end confdefs.h. */
20890 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20891 included before <wchar.h>. */
20892 #include <stddef.h>
20893 #include <signal.h>
20895 # include <stdio.h>
20897 # include <wchar.h>
20900 extern $gltype foo;
20901 extern $gltype1 foo;
20910 if ac_fn_c_try_compile
"$LINENO"; then :
20911 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
20913 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20914 eval result
=\
$gl_cv_type_${gltype}_suffix
20915 test "$result" != no
&& break
20918 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
20919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20920 $as_echo "$ac_res" >&6; }
20921 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
20922 eval result
=\
$gl_cv_type_${gltype}_suffix
20923 test "$result" = no
&& result
=
20924 eval ${GLTYPE}_SUFFIX
=\
$result
20925 cat >>confdefs.h
<<_ACEOF
20926 #define ${GLTYPE}_SUFFIX $result
20933 if test $BITSIZEOF_WINT_T -lt 32; then
20934 BITSIZEOF_WINT_T
=32
20940 if test -n "$STDINT_H"; then
20941 GL_GENERATE_STDINT_H_TRUE
=
20942 GL_GENERATE_STDINT_H_FALSE
='#'
20944 GL_GENERATE_STDINT_H_TRUE
='#'
20945 GL_GENERATE_STDINT_H_FALSE
=
20954 GNULIB_STRTOIMAX
=0;
20955 GNULIB_STRTOUMAX
=0;
20956 HAVE_DECL_IMAXABS
=1;
20957 HAVE_DECL_IMAXDIV
=1;
20958 HAVE_DECL_STRTOIMAX
=1;
20959 HAVE_DECL_STRTOUMAX
=1;
20960 REPLACE_STRTOIMAX
=0;
20961 REPLACE_STRTOUMAX
=0;
20962 INT32_MAX_LT_INTMAX_MAX
=1;
20963 INT64_MAX_EQ_LONG_MAX
='defined _LP64';
20964 PRI_MACROS_BROKEN
=0;
20965 PRIPTR_PREFIX
=__PRIPTR_PREFIX
;
20966 UINT32_MAX_LT_UINTMAX_MAX
=1;
20967 UINT64_MAX_EQ_ULONG_MAX
='defined _LP64';
20983 if test $gl_cv_have_include_next = yes; then
20984 gl_cv_next_inttypes_h
='<'inttypes.h
'>'
20986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
20987 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
20988 if test "${gl_cv_next_inttypes_h+set}" = set; then :
20989 $as_echo_n "(cached) " >&6
20992 if test $ac_cv_header_inttypes_h = yes; then
20995 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20996 /* end confdefs.h. */
20997 #include <inttypes.h>
21001 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
21002 *) gl_absname_cpp
="$ac_cpp" ;;
21007 gl_dirsep_regex
='[/\\]'
21010 gl_dirsep_regex
='\/'
21013 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
21015 gl_header_literal_regex
=`echo 'inttypes.h' \
21016 | sed -e "$gl_make_literal_regex_sed"`
21017 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21018 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21023 gl_cv_next_inttypes_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21024 sed -n "$gl_absolute_header_sed"`'"'
21026 gl_cv_next_inttypes_h
='<'inttypes.h
'>'
21031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
21032 $as_echo "$gl_cv_next_inttypes_h" >&6; }
21034 NEXT_INTTYPES_H
=$gl_cv_next_inttypes_h
21036 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
21037 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21038 gl_next_as_first_directive
='<'inttypes.h
'>'
21040 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21041 gl_next_as_first_directive
=$gl_cv_next_inttypes_h
21043 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
=$gl_next_as_first_directive
21057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5
21058 $as_echo_n "checking for 64-bit off_t... " >&6; }
21059 if test "${gl_cv_type_off_t_64+set}" = set; then :
21060 $as_echo_n "(cached) " >&6
21062 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21063 /* end confdefs.h. */
21064 #include <sys/types.h>
21065 int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1];
21075 if ac_fn_c_try_compile
"$LINENO"; then :
21076 gl_cv_type_off_t_64
=yes
21078 gl_cv_type_off_t_64
=no
21080 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5
21084 $as_echo "$gl_cv_type_off_t_64" >&6; }
21085 if test $gl_cv_type_off_t_64 = no
; then
21086 WINDOWS_64_BIT_OFF_T
=1
21088 WINDOWS_64_BIT_OFF_T
=0
21090 WINDOWS_64_BIT_ST_SIZE
=1
21093 WINDOWS_64_BIT_OFF_T
=0
21094 WINDOWS_64_BIT_ST_SIZE
=0
21107 GNULIB_RAWMEMCHR
=0;
21110 GNULIB_STRCHRNUL
=0;
21118 GNULIB_STRCASESTR
=0;
21125 GNULIB_MBSCASECMP
=0;
21126 GNULIB_MBSNCASECMP
=0;
21127 GNULIB_MBSPCASECMP
=0;
21128 GNULIB_MBSCASESTR
=0;
21135 GNULIB_STRERROR_R
=0;
21136 GNULIB_STRSIGNAL
=0;
21137 GNULIB_STRVERSCMP
=0;
21142 HAVE_DECL_MEMMEM
=1;
21144 HAVE_DECL_MEMRCHR
=1;
21149 HAVE_DECL_STRDUP
=1;
21150 HAVE_DECL_STRNDUP
=1;
21151 HAVE_DECL_STRNLEN
=1;
21155 HAVE_DECL_STRTOK_R
=1;
21156 HAVE_DECL_STRERROR_R
=1;
21157 HAVE_DECL_STRSIGNAL
=1;
21164 REPLACE_STRCASESTR
=0;
21165 REPLACE_STRCHRNUL
=0;
21166 REPLACE_STRERROR
=0;
21167 REPLACE_STRERROR_R
=0;
21171 REPLACE_STRSIGNAL
=0;
21172 REPLACE_STRTOK_R
=0;
21173 UNDEFINE_STRTOK_R
=0;
21175 ac_fn_c_check_decl
"$LINENO" "memrchr" "ac_cv_have_decl_memrchr" "$ac_includes_default"
21176 if test "x$ac_cv_have_decl_memrchr" = x
""yes; then :
21182 cat >>confdefs.h
<<_ACEOF
21183 #define HAVE_DECL_MEMRCHR $ac_have_decl
21190 GNULIB_NANOSLEEP
=0;
21194 HAVE_DECL_LOCALTIME_R
=1;
21198 REPLACE_LOCALTIME_R
=GNULIB_PORTCHECK
;
21199 REPLACE_MKTIME
=GNULIB_PORTCHECK
;
21200 REPLACE_NANOSLEEP
=GNULIB_PORTCHECK
;
21201 REPLACE_TIMEGM
=GNULIB_PORTCHECK
;
21203 ac_fn_c_check_decl
"$LINENO" "alarm" "ac_cv_have_decl_alarm" "$ac_includes_default"
21204 if test "x$ac_cv_have_decl_alarm" = x
""yes; then :
21210 cat >>confdefs.h
<<_ACEOF
21211 #define HAVE_DECL_ALARM $ac_have_decl
21228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/select.h> is self-contained" >&5
21229 $as_echo_n "checking whether <sys/select.h> is self-contained... " >&6; }
21230 if test "${gl_cv_header_sys_select_h_selfcontained+set}" = set; then :
21231 $as_echo_n "(cached) " >&6
21234 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21235 /* end confdefs.h. */
21236 #include <sys/select.h>
21245 if ac_fn_c_try_compile
"$LINENO"; then :
21246 gl_cv_header_sys_select_h_selfcontained
=yes
21248 gl_cv_header_sys_select_h_selfcontained
=no
21250 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21251 if test $gl_cv_header_sys_select_h_selfcontained = yes; then
21252 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21253 /* end confdefs.h. */
21254 #include <sys/select.h>
21258 int memset; int bzero;
21264 if ac_fn_c_try_compile
"$LINENO"; then :
21265 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21266 /* end confdefs.h. */
21267 #include <sys/select.h>
21273 #define memset nonexistent_memset
21278 void *memset (void *, int, unsigned long);
21280 #define bzero nonexistent_bzero
21285 void bzero (void *, unsigned long);
21294 if ac_fn_c_try_link
"$LINENO"; then :
21297 gl_cv_header_sys_select_h_selfcontained
=no
21299 rm -f core conftest.err conftest.
$ac_objext \
21300 conftest
$ac_exeext conftest.
$ac_ext
21303 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_selfcontained" >&5
21308 $as_echo "$gl_cv_header_sys_select_h_selfcontained" >&6; }
21318 if test $gl_cv_have_include_next = yes; then
21319 gl_cv_next_sys_select_h
='<'sys
/select.h
'>'
21321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/select.h>" >&5
21322 $as_echo_n "checking absolute name of <sys/select.h>... " >&6; }
21323 if test "${gl_cv_next_sys_select_h+set}" = set; then :
21324 $as_echo_n "(cached) " >&6
21327 if test $ac_cv_header_sys_select_h = yes; then
21330 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21331 /* end confdefs.h. */
21332 #include <sys/select.h>
21336 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
21337 *) gl_absname_cpp
="$ac_cpp" ;;
21342 gl_dirsep_regex
='[/\\]'
21345 gl_dirsep_regex
='\/'
21348 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
21350 gl_header_literal_regex
=`echo 'sys/select.h' \
21351 | sed -e "$gl_make_literal_regex_sed"`
21352 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21353 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21358 gl_cv_next_sys_select_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21359 sed -n "$gl_absolute_header_sed"`'"'
21361 gl_cv_next_sys_select_h
='<'sys
/select.h
'>'
21366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_select_h" >&5
21367 $as_echo "$gl_cv_next_sys_select_h" >&6; }
21369 NEXT_SYS_SELECT_H
=$gl_cv_next_sys_select_h
21371 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
21372 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21373 gl_next_as_first_directive
='<'sys
/select.h
'>'
21375 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21376 gl_next_as_first_directive
=$gl_cv_next_sys_select_h
21378 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H
=$gl_next_as_first_directive
21383 if test $ac_cv_header_sys_select_h = yes; then
21384 HAVE_SYS_SELECT_H
=1
21386 HAVE_SYS_SELECT_H
=0
21393 if test $ac_cv_header_sys_socket_h != yes; then
21394 for ac_header
in winsock2.h
21396 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
21397 if test "x$ac_cv_header_winsock2_h" = x
""yes; then :
21398 cat >>confdefs.h
<<_ACEOF
21399 #define HAVE_WINSOCK2_H 1
21407 if test "$ac_cv_header_winsock2_h" = yes; then
21409 UNISTD_H_HAVE_WINSOCK2_H
=1
21410 SYS_IOCTL_H_HAVE_WINSOCK2_H
=1
21422 GNULIB_PTHREAD_SIGMASK
=0;
21424 GNULIB_SIGNAL_H_SIGPIPE
=0;
21425 GNULIB_SIGPROCMASK
=0;
21426 GNULIB_SIGACTION
=0;
21427 HAVE_POSIX_SIGNALBLOCKING
=1;
21428 HAVE_PTHREAD_SIGMASK
=1;
21433 HAVE_STRUCT_SIGACTION_SA_SIGACTION
=1;
21435 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
=1;
21437 HAVE_SIGHANDLER_T
=1;
21438 REPLACE_PTHREAD_SIGMASK
=0;
21447 ac_fn_c_check_type
"$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
21448 #include <signal.h>
21449 /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */
21450 #include <sys/types.h>
21453 if test "x$ac_cv_type_sigset_t" = x
""yes; then :
21455 cat >>confdefs.h
<<_ACEOF
21456 #define HAVE_SIGSET_T 1
21459 gl_cv_type_sigset_t
=yes
21461 gl_cv_type_sigset_t
=no
21464 if test $gl_cv_type_sigset_t != yes; then
21470 if test $ac_cv_header_sys_socket_h = no
; then
21471 for ac_header
in ws2tcpip.h
21473 ac_fn_c_check_header_mongrel
"$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
21474 if test "x$ac_cv_header_ws2tcpip_h" = x
""yes; then :
21475 cat >>confdefs.h
<<_ACEOF
21476 #define HAVE_WS2TCPIP_H 1
21485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
21486 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
21487 if test "${ac_cv_header_stdbool_h+set}" = set; then :
21488 $as_echo_n "(cached) " >&6
21490 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21491 /* end confdefs.h. */
21493 #include <stdbool.h>
21495 "error: bool is not defined"
21498 "error: false is not defined"
21501 "error: false is not 0"
21504 "error: true is not defined"
21507 "error: true is not 1"
21509 #ifndef __bool_true_false_are_defined
21510 "error: __bool_true_false_are_defined is not defined"
21513 struct s { _Bool s: 1; _Bool t; } s;
21515 char a[true == 1 ? 1 : -1];
21516 char b[false == 0 ? 1 : -1];
21517 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
21518 char d[(bool) 0.5 == true ? 1 : -1];
21519 /* See body of main program for 'e'. */
21520 char f[(_Bool) 0.0 == false ? 1 : -1];
21522 char h[sizeof (_Bool)];
21523 char i[sizeof s.t];
21524 enum { j = false, k = true, l = false * true, m = true * 256 };
21525 /* The following fails for
21526 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
21528 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
21529 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
21530 /* Catch a bug in an HP-UX C compiler. See
21531 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
21532 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
21544 /* Refer to every declared value, to avoid compiler optimizations. */
21545 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
21546 + !m + !n + !o + !p + !q + !pq);
21552 if ac_fn_c_try_compile
"$LINENO"; then :
21553 ac_cv_header_stdbool_h
=yes
21555 ac_cv_header_stdbool_h
=no
21557 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
21560 $as_echo "$ac_cv_header_stdbool_h" >&6; }
21561 ac_fn_c_check_type
"$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
21562 if test "x$ac_cv_type__Bool" = x
""yes; then :
21564 cat >>confdefs.h
<<_ACEOF
21565 #define HAVE__BOOL 1
21577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
21578 $as_echo_n "checking for wchar_t... " >&6; }
21579 if test "${gt_cv_c_wchar_t+set}" = set; then :
21580 $as_echo_n "(cached) " >&6
21582 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21583 /* end confdefs.h. */
21584 #include <stddef.h>
21585 wchar_t foo = (wchar_t)'\0';
21594 if ac_fn_c_try_compile
"$LINENO"; then :
21595 gt_cv_c_wchar_t
=yes
21599 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
21602 $as_echo "$gt_cv_c_wchar_t" >&6; }
21603 if test $gt_cv_c_wchar_t = yes; then
21605 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
21618 GNULIB_FPRINTF_POSIX
=0;
21634 GNULIB_OBSTACK_PRINTF
=0;
21635 GNULIB_OBSTACK_PRINTF_POSIX
=0;
21640 GNULIB_PRINTF_POSIX
=0;
21649 GNULIB_SPRINTF_POSIX
=0;
21650 GNULIB_STDIO_H_NONBLOCKING
=0;
21651 GNULIB_STDIO_H_SIGPIPE
=0;
21653 GNULIB_VASPRINTF
=0;
21658 GNULIB_VFPRINTF_POSIX
=0;
21660 GNULIB_VPRINTF_POSIX
=0;
21661 GNULIB_VSNPRINTF
=0;
21662 GNULIB_VSPRINTF_POSIX
=0;
21663 HAVE_DECL_FPURGE
=1;
21664 HAVE_DECL_FSEEKO
=1;
21665 HAVE_DECL_FTELLO
=1;
21666 HAVE_DECL_GETDELIM
=1;
21667 HAVE_DECL_GETLINE
=1;
21668 HAVE_DECL_OBSTACK_PRINTF
=1;
21669 HAVE_DECL_SNPRINTF
=1;
21670 HAVE_DECL_VSNPRINTF
=1;
21691 REPLACE_GETDELIM
=0;
21693 REPLACE_OBSTACK_PRINTF
=0;
21699 REPLACE_RENAMEAT
=0;
21700 REPLACE_SNPRINTF
=0;
21702 REPLACE_STDIO_READ_FUNCS
=0;
21703 REPLACE_STDIO_WRITE_FUNCS
=0;
21705 REPLACE_VASPRINTF
=0;
21706 REPLACE_VDPRINTF
=0;
21707 REPLACE_VFPRINTF
=0;
21709 REPLACE_VSNPRINTF
=0;
21710 REPLACE_VSPRINTF
=0;
21712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
21713 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
21714 if test "${ac_cv_struct_tm+set}" = set; then :
21715 $as_echo_n "(cached) " >&6
21717 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21718 /* end confdefs.h. */
21719 #include <sys/types.h>
21726 int *p = &tm.tm_sec;
21732 if ac_fn_c_try_compile
"$LINENO"; then :
21733 ac_cv_struct_tm
=time.h
21735 ac_cv_struct_tm
=sys
/time.h
21737 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
21740 $as_echo "$ac_cv_struct_tm" >&6; }
21741 if test $ac_cv_struct_tm = sys
/time.h
; then
21743 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
21747 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
21748 #include <$ac_cv_struct_tm>
21751 if test "x$ac_cv_member_struct_tm_tm_zone" = x
""yes; then :
21753 cat >>confdefs.h
<<_ACEOF
21754 #define HAVE_STRUCT_TM_TM_ZONE 1
21760 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21762 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
21765 ac_fn_c_check_decl
"$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
21767 if test "x$ac_cv_have_decl_tzname" = x
""yes; then :
21773 cat >>confdefs.h
<<_ACEOF
21774 #define HAVE_DECL_TZNAME $ac_have_decl
21777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
21778 $as_echo_n "checking for tzname... " >&6; }
21779 if test "${ac_cv_var_tzname+set}" = set; then :
21780 $as_echo_n "(cached) " >&6
21782 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21783 /* end confdefs.h. */
21785 #if !HAVE_DECL_TZNAME
21786 extern char *tzname[];
21792 return tzname[0][0];
21797 if ac_fn_c_try_link
"$LINENO"; then :
21798 ac_cv_var_tzname
=yes
21800 ac_cv_var_tzname
=no
21802 rm -f core conftest.err conftest.
$ac_objext \
21803 conftest
$ac_exeext conftest.
$ac_ext
21805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
21806 $as_echo "$ac_cv_var_tzname" >&6; }
21807 if test $ac_cv_var_tzname = yes; then
21809 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
21815 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
21817 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x
""yes; then :
21819 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
21835 if test $gl_cv_have_include_next = yes; then
21836 gl_cv_next_string_h
='<'string.h
'>'
21838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
21839 $as_echo_n "checking absolute name of <string.h>... " >&6; }
21840 if test "${gl_cv_next_string_h+set}" = set; then :
21841 $as_echo_n "(cached) " >&6
21844 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21845 /* end confdefs.h. */
21846 #include <string.h>
21850 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
21851 *) gl_absname_cpp
="$ac_cpp" ;;
21856 gl_dirsep_regex
='[/\\]'
21859 gl_dirsep_regex
='\/'
21862 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
21864 gl_header_literal_regex
=`echo 'string.h' \
21865 | sed -e "$gl_make_literal_regex_sed"`
21866 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21867 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21872 gl_cv_next_string_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21873 sed -n "$gl_absolute_header_sed"`'"'
21877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
21878 $as_echo "$gl_cv_next_string_h" >&6; }
21880 NEXT_STRING_H
=$gl_cv_next_string_h
21882 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
21883 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21884 gl_next_as_first_directive
='<'string.h
'>'
21886 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21887 gl_next_as_first_directive
=$gl_cv_next_string_h
21889 NEXT_AS_FIRST_DIRECTIVE_STRING_H
=$gl_next_as_first_directive
21899 ac_fn_c_check_decl
"$LINENO" "strtoimax" "ac_cv_have_decl_strtoimax" "$ac_includes_default"
21900 if test "x$ac_cv_have_decl_strtoimax" = x
""yes; then :
21906 cat >>confdefs.h
<<_ACEOF
21907 #define HAVE_DECL_STRTOIMAX $ac_have_decl
21912 ac_fn_c_check_decl
"$LINENO" "strtoumax" "ac_cv_have_decl_strtoumax" "$ac_includes_default"
21913 if test "x$ac_cv_have_decl_strtoumax" = x
""yes; then :
21919 cat >>confdefs.h
<<_ACEOF
21920 #define HAVE_DECL_STRTOUMAX $ac_have_decl
21925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
21926 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
21927 if test "${ac_cv_header_stat_broken+set}" = set; then :
21928 $as_echo_n "(cached) " >&6
21930 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21931 /* end confdefs.h. */
21932 #include <sys/types.h>
21933 #include <sys/stat.h>
21935 #if defined S_ISBLK && defined S_IFDIR
21936 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
21939 #if defined S_ISBLK && defined S_IFCHR
21940 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
21943 #if defined S_ISLNK && defined S_IFREG
21944 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
21947 #if defined S_ISSOCK && defined S_IFREG
21948 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
21952 if ac_fn_c_try_compile
"$LINENO"; then :
21953 ac_cv_header_stat_broken
=no
21955 ac_cv_header_stat_broken
=yes
21957 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
21960 $as_echo "$ac_cv_header_stat_broken" >&6; }
21961 if test $ac_cv_header_stat_broken = yes; then
21963 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
21971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
21972 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
21973 if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then :
21974 $as_echo_n "(cached) " >&6
21976 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21977 /* end confdefs.h. */
21983 static struct timespec x; x.tv_sec = x.tv_nsec;
21988 if ac_fn_c_try_compile
"$LINENO"; then :
21989 gl_cv_sys_struct_timespec_in_time_h
=yes
21991 gl_cv_sys_struct_timespec_in_time_h
=no
21993 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
21996 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
21998 TIME_H_DEFINES_STRUCT_TIMESPEC
=0
21999 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
=0
22000 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
=0
22001 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
22002 TIME_H_DEFINES_STRUCT_TIMESPEC
=1
22004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
22005 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
22006 if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then :
22007 $as_echo_n "(cached) " >&6
22009 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22010 /* end confdefs.h. */
22011 #include <sys/time.h>
22016 static struct timespec x; x.tv_sec = x.tv_nsec;
22021 if ac_fn_c_try_compile
"$LINENO"; then :
22022 gl_cv_sys_struct_timespec_in_sys_time_h
=yes
22024 gl_cv_sys_struct_timespec_in_sys_time_h
=no
22026 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
22029 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
22030 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
22031 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
=1
22033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
22034 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
22035 if test "${gl_cv_sys_struct_timespec_in_pthread_h+set}" = set; then :
22036 $as_echo_n "(cached) " >&6
22038 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22039 /* end confdefs.h. */
22040 #include <pthread.h>
22045 static struct timespec x; x.tv_sec = x.tv_nsec;
22050 if ac_fn_c_try_compile
"$LINENO"; then :
22051 gl_cv_sys_struct_timespec_in_pthread_h
=yes
22053 gl_cv_sys_struct_timespec_in_pthread_h
=no
22055 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
22058 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
22059 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
22060 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
=1
22079 if test $gl_cv_have_include_next = yes; then
22080 gl_cv_next_time_h
='<'time.h
'>'
22082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
22083 $as_echo_n "checking absolute name of <time.h>... " >&6; }
22084 if test "${gl_cv_next_time_h+set}" = set; then :
22085 $as_echo_n "(cached) " >&6
22088 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22089 /* end confdefs.h. */
22094 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
22095 *) gl_absname_cpp
="$ac_cpp" ;;
22100 gl_dirsep_regex
='[/\\]'
22103 gl_dirsep_regex
='\/'
22106 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
22108 gl_header_literal_regex
=`echo 'time.h' \
22109 | sed -e "$gl_make_literal_regex_sed"`
22110 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22111 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22116 gl_cv_next_time_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22117 sed -n "$gl_absolute_header_sed"`'"'
22121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
22122 $as_echo "$gl_cv_next_time_h" >&6; }
22124 NEXT_TIME_H
=$gl_cv_next_time_h
22126 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
22127 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22128 gl_next_as_first_directive
='<'time.h
'>'
22130 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22131 gl_next_as_first_directive
=$gl_cv_next_time_h
22133 NEXT_AS_FIRST_DIRECTIVE_TIME_H
=$gl_next_as_first_directive
22148 ac_fn_c_check_decl
"$LINENO" "unsetenv" "ac_cv_have_decl_unsetenv" "$ac_includes_default"
22149 if test "x$ac_cv_have_decl_unsetenv" = x
""yes; then :
22155 cat >>confdefs.h
<<_ACEOF
22156 #define HAVE_DECL_UNSETENV $ac_have_decl
22160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the utimes function works" >&5
22161 $as_echo_n "checking whether the utimes function works... " >&6; }
22162 if test "${gl_cv_func_working_utimes+set}" = set; then :
22163 $as_echo_n "(cached) " >&6
22166 if test "$cross_compiling" = yes; then :
22167 gl_cv_func_working_utimes
=no
22169 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22170 /* end confdefs.h. */
22172 #include <sys/types.h>
22173 #include <sys/stat.h>
22175 #include <sys/time.h>
22177 #include <unistd.h>
22178 #include <stdlib.h>
22183 inorder (time_t a, time_t b, time_t c)
22185 return a <= b && b <= c;
22192 char const *file = "conftest.utimes";
22193 static struct timeval timeval[2] = {{9, 10}, {999999, 999999}};
22195 /* Test whether utimes() essentially works. */
22198 FILE *f = fopen (file, "w");
22201 else if (fclose (f) != 0)
22203 else if (utimes (file, timeval) != 0)
22205 else if (lstat (file, &sbuf) != 0)
22207 else if (!(sbuf.st_atime == timeval[0].tv_sec
22208 && sbuf.st_mtime == timeval[1].tv_sec))
22210 if (unlink (file) != 0)
22214 /* Test whether utimes() with a NULL argument sets the file's timestamp
22215 to the current time. Use 'fstat' as well as 'time' to
22216 determine the "current" time, to accommodate NFS file systems
22217 if there is a time skew between the host and the NFS server. */
22219 int fd = open (file, O_WRONLY|O_CREAT, 0644);
22225 struct stat st0, st1, st2;
22226 if (time (&t0) == (time_t) -1)
22228 else if (fstat (fd, &st0) != 0)
22230 else if (utimes (file, timeval) != 0)
22232 else if (utimes (file, NULL) != 0)
22234 else if (fstat (fd, &st1) != 0)
22236 else if (write (fd, "\n", 1) != 1)
22238 else if (fstat (fd, &st2) != 0)
22240 else if (time (&t2) == (time_t) -1)
22244 int m_ok_POSIX = inorder (t0, st1.st_mtime, t2);
22245 int m_ok_NFS = inorder (st0.st_mtime, st1.st_mtime, st2.st_mtime);
22246 if (! (st1.st_atime == st1.st_mtime))
22248 if (! (m_ok_POSIX || m_ok_NFS))
22251 if (close (fd) != 0)
22254 if (unlink (file) != 0)
22258 /* Test whether utimes() with a NULL argument works on read-only files. */
22260 int fd = open (file, O_WRONLY|O_CREAT, 0444);
22263 else if (close (fd) != 0)
22265 else if (utimes (file, NULL) != 0)
22267 if (unlink (file) != 0)
22275 if ac_fn_c_try_run
"$LINENO"; then :
22276 gl_cv_func_working_utimes
=yes
22278 gl_cv_func_working_utimes
=no
22280 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22281 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_utimes" >&5
22286 $as_echo "$gl_cv_func_working_utimes" >&6; }
22288 if test $gl_cv_func_working_utimes = yes; then
22290 $as_echo "#define HAVE_WORKING_UTIMES 1" >>confdefs.h
22298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
22299 $as_echo_n "checking for struct utimbuf... " >&6; }
22300 if test "${gl_cv_sys_struct_utimbuf+set}" = set; then :
22301 $as_echo_n "(cached) " >&6
22303 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22304 /* end confdefs.h. */
22305 #if HAVE_SYS_TIME_H
22306 #include <sys/time.h>
22309 #ifdef HAVE_UTIME_H
22316 static struct utimbuf x; x.actime = x.modtime;
22321 if ac_fn_c_try_compile
"$LINENO"; then :
22322 gl_cv_sys_struct_utimbuf
=yes
22324 gl_cv_sys_struct_utimbuf
=no
22326 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_utimbuf" >&5
22329 $as_echo "$gl_cv_sys_struct_utimbuf" >&6; }
22331 if test $gl_cv_sys_struct_utimbuf = yes; then
22333 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
22347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5
22348 $as_echo_n "checking type of array argument to getgroups... " >&6; }
22349 if test "${ac_cv_type_getgroups+set}" = set; then :
22350 $as_echo_n "(cached) " >&6
22352 if test "$cross_compiling" = yes; then :
22353 ac_cv_type_getgroups
=cross
22355 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22356 /* end confdefs.h. */
22357 /* Thanks to Mike Rendell for this test. */
22358 $ac_includes_default
22361 #define MAX(x, y) ((x) > (y) ? (x) : (y))
22366 gid_t gidset[NGID];
22368 union { gid_t gval; long int lval; } val;
22371 for (i = 0; i < NGID; i++)
22372 gidset[i] = val.gval;
22373 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
22375 /* Exit non-zero if getgroups seems to require an array of ints. This
22376 happens when gid_t is short int but getgroups modifies an array
22378 return n > 0 && gidset[n] != val.gval;
22381 if ac_fn_c_try_run
"$LINENO"; then :
22382 ac_cv_type_getgroups
=gid_t
22384 ac_cv_type_getgroups
=int
22386 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22387 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22390 if test $ac_cv_type_getgroups = cross
; then
22391 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22392 /* end confdefs.h. */
22393 #include <unistd.h>
22396 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22397 $EGREP "getgroups.*int.*gid_t" >/dev
/null
2>&1; then :
22398 ac_cv_type_getgroups
=gid_t
22400 ac_cv_type_getgroups
=int
22406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5
22407 $as_echo "$ac_cv_type_getgroups" >&6; }
22409 cat >>confdefs.h
<<_ACEOF
22410 #define GETGROUPS_T $ac_cv_type_getgroups
22421 GL_COND_LIBTOOL_TRUE
=
22422 GL_COND_LIBTOOL_FALSE
='#'
22424 GL_COND_LIBTOOL_TRUE
='#'
22425 GL_COND_LIBTOOL_FALSE
=
22428 gl_cond_libtool
=false
22441 gl_source_base
='lib'
22444 if test $ac_cv_func_alloca_works = no
; then
22448 # Define an additional variable used in the Makefile substitution.
22449 if test $ac_cv_working_alloca_h = yes; then
22450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
22451 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
22452 if test "${gl_cv_rpl_alloca+set}" = set; then :
22453 $as_echo_n "(cached) " >&6
22456 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22457 /* end confdefs.h. */
22459 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
22464 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22465 $EGREP "Need own alloca" >/dev
/null
2>&1; then :
22466 gl_cv_rpl_alloca
=yes
22468 gl_cv_rpl_alloca
=no
22474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
22475 $as_echo "$gl_cv_rpl_alloca" >&6; }
22476 if test $gl_cv_rpl_alloca = yes; then
22478 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
22488 if test -n "$ALLOCA_H"; then
22489 GL_GENERATE_ALLOCA_H_TRUE
=
22490 GL_GENERATE_ALLOCA_H_FALSE
='#'
22492 GL_GENERATE_ALLOCA_H_TRUE
='#'
22493 GL_GENERATE_ALLOCA_H_FALSE
=
22498 for ac_header
in byteswap.h
22500 ac_fn_c_check_header_mongrel
"$LINENO" "byteswap.h" "ac_cv_header_byteswap_h" "$ac_includes_default"
22501 if test "x$ac_cv_header_byteswap_h" = x
""yes; then :
22502 cat >>confdefs.h
<<_ACEOF
22503 #define HAVE_BYTESWAP_H 1
22510 BYTESWAP_H
='byteswap.h'
22517 if test -n "$BYTESWAP_H"; then
22518 GL_GENERATE_BYTESWAP_H_TRUE
=
22519 GL_GENERATE_BYTESWAP_H_FALSE
='#'
22521 GL_GENERATE_BYTESWAP_H_TRUE
='#'
22522 GL_GENERATE_BYTESWAP_H_FALSE
=
22530 # Solaris 2.5.1 needs -lposix4 to get the clock_gettime function.
22531 # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
22533 # Save and restore LIBS so e.g., -lrt, isn't added to it. Otherwise, *all*
22534 # programs in the package would end up linked with that potentially-shared
22535 # library, inducing unnecessary run-time overhead.
22538 gl_saved_libs
=$LIBS
22539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
22540 $as_echo_n "checking for library containing clock_gettime... " >&6; }
22541 if test "${ac_cv_search_clock_gettime+set}" = set; then :
22542 $as_echo_n "(cached) " >&6
22544 ac_func_search_save_LIBS
=$LIBS
22545 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22546 /* end confdefs.h. */
22548 /* Override any GCC internal prototype to avoid an error.
22549 Use char because int might match the return type of a GCC
22550 builtin and then its argument prototype would still apply. */
22554 char clock_gettime ();
22558 return clock_gettime ();
22563 for ac_lib
in '' rt posix4
; do
22564 if test -z "$ac_lib"; then
22565 ac_res
="none required"
22568 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
22570 if ac_fn_c_try_link
"$LINENO"; then :
22571 ac_cv_search_clock_gettime
=$ac_res
22573 rm -f core conftest.err conftest.
$ac_objext \
22575 if test "${ac_cv_search_clock_gettime+set}" = set; then :
22579 if test "${ac_cv_search_clock_gettime+set}" = set; then :
22582 ac_cv_search_clock_gettime
=no
22584 rm conftest.
$ac_ext
22585 LIBS
=$ac_func_search_save_LIBS
22587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
22588 $as_echo "$ac_cv_search_clock_gettime" >&6; }
22589 ac_res
=$ac_cv_search_clock_gettime
22590 if test "$ac_res" != no
; then :
22591 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
22592 test "$ac_cv_search_clock_gettime" = "none required" ||
22593 LIB_CLOCK_GETTIME
=$ac_cv_search_clock_gettime
22596 for ac_func
in clock_gettime clock_settime
22598 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22599 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
22600 eval as_val
=\$
$as_ac_var
22601 if test "x$as_val" = x
""yes; then :
22602 cat >>confdefs.h
<<_ACEOF
22603 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22609 LIBS
=$gl_saved_libs
22616 cat >>confdefs.h
<<_ACEOF
22617 #define GNULIB_CLOSE_STREAM 1
22655 if test $gl_cv_have_include_next = yes; then
22656 gl_cv_next_dirent_h
='<'dirent.h
'>'
22658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <dirent.h>" >&5
22659 $as_echo_n "checking absolute name of <dirent.h>... " >&6; }
22660 if test "${gl_cv_next_dirent_h+set}" = set; then :
22661 $as_echo_n "(cached) " >&6
22664 if test $ac_cv_header_dirent_h = yes; then
22667 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22668 /* end confdefs.h. */
22669 #include <dirent.h>
22673 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
22674 *) gl_absname_cpp
="$ac_cpp" ;;
22679 gl_dirsep_regex
='[/\\]'
22682 gl_dirsep_regex
='\/'
22685 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
22687 gl_header_literal_regex
=`echo 'dirent.h' \
22688 | sed -e "$gl_make_literal_regex_sed"`
22689 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22690 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22695 gl_cv_next_dirent_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22696 sed -n "$gl_absolute_header_sed"`'"'
22698 gl_cv_next_dirent_h
='<'dirent.h
'>'
22703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_dirent_h" >&5
22704 $as_echo "$gl_cv_next_dirent_h" >&6; }
22706 NEXT_DIRENT_H
=$gl_cv_next_dirent_h
22708 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
22709 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22710 gl_next_as_first_directive
='<'dirent.h
'>'
22712 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22713 gl_next_as_first_directive
=$gl_cv_next_dirent_h
22715 NEXT_AS_FIRST_DIRECTIVE_DIRENT_H
=$gl_next_as_first_directive
22720 if test $ac_cv_header_dirent_h = yes; then
22735 $as_echo "#define HAVE_DUP2 1" >>confdefs.h
22738 if test $HAVE_DUP2 = 1; then
22739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5
22740 $as_echo_n "checking whether dup2 works... " >&6; }
22741 if test "${gl_cv_func_dup2_works+set}" = set; then :
22742 $as_echo_n "(cached) " >&6
22744 if test "$cross_compiling" = yes; then :
22746 mingw
*) # on this platform, dup2 always returns 0 for success
22747 gl_cv_func_dup2_works
="guessing no" ;;
22748 cygwin
*) # on cygwin 1.5.x, dup2(1,1) returns 0
22749 gl_cv_func_dup2_works
="guessing no" ;;
22750 linux
*) # On linux between 2008-07-27 and 2009-05-11, dup2 of a
22751 # closed fd may yield -EBADF instead of -1 / errno=EBADF.
22752 gl_cv_func_dup2_works
="guessing no" ;;
22753 freebsd
*) # on FreeBSD 6.1, dup2(1,1000000) gives EMFILE, not EBADF.
22754 gl_cv_func_dup2_works
="guessing no" ;;
22755 haiku
*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC.
22756 gl_cv_func_dup2_works
="guessing no" ;;
22757 *) gl_cv_func_dup2_works
="guessing yes" ;;
22760 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22761 /* end confdefs.h. */
22763 #include <unistd.h>
22771 if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1)
22774 if (dup2 (1, 1) == 0)
22777 if (fcntl (1, F_GETFD) != FD_CLOEXEC)
22781 if (dup2 (0, 0) != -1)
22783 /* Many gnulib modules require POSIX conformance of EBADF. */
22784 if (dup2 (2, 1000000) == -1 && errno != EBADF)
22786 /* Flush out some cygwin core dumps. */
22787 if (dup2 (2, -1) != -1 || errno != EBADF)
22798 if ac_fn_c_try_run
"$LINENO"; then :
22799 gl_cv_func_dup2_works
=yes
22801 gl_cv_func_dup2_works
=no
22803 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22804 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5
22810 $as_echo "$gl_cv_func_dup2_works" >&6; }
22811 case "$gl_cv_func_dup2_works" in
22815 for ac_func
in setdtablesize
22817 ac_fn_c_check_func
"$LINENO" "setdtablesize" "ac_cv_func_setdtablesize"
22818 if test "x$ac_cv_func_setdtablesize" = x
""yes; then :
22819 cat >>confdefs.h
<<_ACEOF
22820 #define HAVE_SETDTABLESIZE 1
22831 if test $HAVE_DUP2 = 0 ||
test $REPLACE_DUP2 = 1; then
22840 gl_LIBOBJS
="$gl_LIBOBJS dup2.$ac_objext"
22872 EXECINFO_H
='execinfo.h'
22874 if test $ac_cv_header_execinfo_h = yes; then
22875 gl_saved_libs
=$LIBS
22876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing backtrace_symbols_fd" >&5
22877 $as_echo_n "checking for library containing backtrace_symbols_fd... " >&6; }
22878 if test "${ac_cv_search_backtrace_symbols_fd+set}" = set; then :
22879 $as_echo_n "(cached) " >&6
22881 ac_func_search_save_LIBS
=$LIBS
22882 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22883 /* end confdefs.h. */
22885 /* Override any GCC internal prototype to avoid an error.
22886 Use char because int might match the return type of a GCC
22887 builtin and then its argument prototype would still apply. */
22891 char backtrace_symbols_fd ();
22895 return backtrace_symbols_fd ();
22900 for ac_lib
in '' execinfo
; do
22901 if test -z "$ac_lib"; then
22902 ac_res
="none required"
22905 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
22907 if ac_fn_c_try_link
"$LINENO"; then :
22908 ac_cv_search_backtrace_symbols_fd
=$ac_res
22910 rm -f core conftest.err conftest.
$ac_objext \
22912 if test "${ac_cv_search_backtrace_symbols_fd+set}" = set; then :
22916 if test "${ac_cv_search_backtrace_symbols_fd+set}" = set; then :
22919 ac_cv_search_backtrace_symbols_fd
=no
22921 rm conftest.
$ac_ext
22922 LIBS
=$ac_func_search_save_LIBS
22924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_backtrace_symbols_fd" >&5
22925 $as_echo "$ac_cv_search_backtrace_symbols_fd" >&6; }
22926 ac_res
=$ac_cv_search_backtrace_symbols_fd
22927 if test "$ac_res" != no
; then :
22928 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
22929 test "$ac_cv_search_backtrace_symbols_fd" = "none required" ||
22930 LIB_EXECINFO
=$ac_cv_search_backtrace_symbols_fd
22933 LIBS
=$gl_saved_libs
22934 test "$ac_cv_search_backtrace_symbols_fd" = no || EXECINFO_H
=''
22937 if test -n "$EXECINFO_H"; then
22946 gl_LIBOBJS
="$gl_LIBOBJS execinfo.$ac_objext"
22952 if test -n "$EXECINFO_H"; then
22953 GL_GENERATE_EXECINFO_H_TRUE
=
22954 GL_GENERATE_EXECINFO_H_FALSE
='#'
22956 GL_GENERATE_EXECINFO_H_TRUE
='#'
22957 GL_GENERATE_EXECINFO_H_FALSE
=
22968 if test $ac_cv_func_faccessat = no
; then
22972 if test $HAVE_FACCESSAT = 0; then
22981 gl_LIBOBJS
="$gl_LIBOBJS faccessat.$ac_objext"
22984 for ac_func
in access
22986 ac_fn_c_check_func
"$LINENO" "access" "ac_cv_func_access"
22987 if test "x$ac_cv_func_access" = x
""yes; then :
22988 cat >>confdefs.h
<<_ACEOF
22989 #define HAVE_ACCESS 1
22999 cat >>confdefs.h
<<_ACEOF
23000 #define GNULIB_FACCESSAT 1
23020 if test $ac_cv_func_fcntl = no
; then
23024 if test $ac_cv_func_fcntl = no
; then
23031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fcntl handles F_DUPFD correctly" >&5
23032 $as_echo_n "checking whether fcntl handles F_DUPFD correctly... " >&6; }
23033 if test "${gl_cv_func_fcntl_f_dupfd_works+set}" = set; then :
23034 $as_echo_n "(cached) " >&6
23036 if test "$cross_compiling" = yes; then :
23037 # Guess that it works on glibc systems
23038 case $host_os in #((
23039 *-gnu*) gl_cv_func_fcntl_f_dupfd_works
="guessing yes";;
23040 *) gl_cv_func_fcntl_f_dupfd_works
="guessing no";;
23043 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23044 /* end confdefs.h. */
23053 if (fcntl (0, F_DUPFD, -1) != -1) result |= 1;
23054 if (errno != EINVAL) result |= 2;
23061 if ac_fn_c_try_run
"$LINENO"; then :
23062 gl_cv_func_fcntl_f_dupfd_works
=yes
23064 gl_cv_func_fcntl_f_dupfd_works
=no
23066 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23067 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fcntl_f_dupfd_works" >&5
23072 $as_echo "$gl_cv_func_fcntl_f_dupfd_works" >&6; }
23073 case $gl_cv_func_fcntl_f_dupfd_works in
23078 if test $ac_cv_func_fcntl = no
; then
23085 $as_echo "#define FCNTL_DUPFD_BUGGY 1" >>confdefs.h
23089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fcntl understands F_DUPFD_CLOEXEC" >&5
23090 $as_echo_n "checking whether fcntl understands F_DUPFD_CLOEXEC... " >&6; }
23091 if test "${gl_cv_func_fcntl_f_dupfd_cloexec+set}" = set; then :
23092 $as_echo_n "(cached) " >&6
23094 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23095 /* end confdefs.h. */
23098 #ifndef F_DUPFD_CLOEXEC
23110 if ac_fn_c_try_compile
"$LINENO"; then :
23111 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23112 /* end confdefs.h. */
23115 /* The Linux kernel only added F_DUPFD_CLOEXEC in 2.6.24, so we always replace
23116 it to support the semantics on older kernels that failed with EINVAL. */
23128 if ac_fn_c_try_compile
"$LINENO"; then :
23129 gl_cv_func_fcntl_f_dupfd_cloexec
=yes
23131 gl_cv_func_fcntl_f_dupfd_cloexec
="needs runtime check"
23133 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23135 gl_cv_func_fcntl_f_dupfd_cloexec
=no
23137 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fcntl_f_dupfd_cloexec" >&5
23140 $as_echo "$gl_cv_func_fcntl_f_dupfd_cloexec" >&6; }
23141 if test "$gl_cv_func_fcntl_f_dupfd_cloexec" != yes; then
23145 if test $ac_cv_func_fcntl = no
; then
23155 if test $HAVE_FCNTL = 0 ||
test $REPLACE_FCNTL = 1; then
23164 gl_LIBOBJS
="$gl_LIBOBJS fcntl.$ac_objext"
23189 if test $gl_cv_have_include_next = yes; then
23190 gl_cv_next_fcntl_h
='<'fcntl.h
'>'
23192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <fcntl.h>" >&5
23193 $as_echo_n "checking absolute name of <fcntl.h>... " >&6; }
23194 if test "${gl_cv_next_fcntl_h+set}" = set; then :
23195 $as_echo_n "(cached) " >&6
23198 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23199 /* end confdefs.h. */
23204 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
23205 *) gl_absname_cpp
="$ac_cpp" ;;
23210 gl_dirsep_regex
='[/\\]'
23213 gl_dirsep_regex
='\/'
23216 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
23218 gl_header_literal_regex
=`echo 'fcntl.h' \
23219 | sed -e "$gl_make_literal_regex_sed"`
23220 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23221 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23226 gl_cv_next_fcntl_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23227 sed -n "$gl_absolute_header_sed"`'"'
23231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_fcntl_h" >&5
23232 $as_echo "$gl_cv_next_fcntl_h" >&6; }
23234 NEXT_FCNTL_H
=$gl_cv_next_fcntl_h
23236 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
23237 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23238 gl_next_as_first_directive
='<'fcntl.h
'>'
23240 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23241 gl_next_as_first_directive
=$gl_cv_next_fcntl_h
23243 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H
=$gl_next_as_first_directive
23262 if test $ac_cv_have_decl_fdatasync = no
; then
23263 HAVE_DECL_FDATASYNC
=0
23264 for ac_func
in fdatasync
23266 ac_fn_c_check_func
"$LINENO" "fdatasync" "ac_cv_func_fdatasync"
23267 if test "x$ac_cv_func_fdatasync" = x
""yes; then :
23268 cat >>confdefs.h
<<_ACEOF
23269 #define HAVE_FDATASYNC 1
23275 if test $ac_cv_func_fdatasync = no
; then
23279 gl_saved_libs
=$LIBS
23280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fdatasync" >&5
23281 $as_echo_n "checking for library containing fdatasync... " >&6; }
23282 if test "${ac_cv_search_fdatasync+set}" = set; then :
23283 $as_echo_n "(cached) " >&6
23285 ac_func_search_save_LIBS
=$LIBS
23286 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23287 /* end confdefs.h. */
23289 /* Override any GCC internal prototype to avoid an error.
23290 Use char because int might match the return type of a GCC
23291 builtin and then its argument prototype would still apply. */
23299 return fdatasync ();
23304 for ac_lib
in '' rt posix4
; do
23305 if test -z "$ac_lib"; then
23306 ac_res
="none required"
23309 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
23311 if ac_fn_c_try_link
"$LINENO"; then :
23312 ac_cv_search_fdatasync
=$ac_res
23314 rm -f core conftest.err conftest.
$ac_objext \
23316 if test "${ac_cv_search_fdatasync+set}" = set; then :
23320 if test "${ac_cv_search_fdatasync+set}" = set; then :
23323 ac_cv_search_fdatasync
=no
23325 rm conftest.
$ac_ext
23326 LIBS
=$ac_func_search_save_LIBS
23328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fdatasync" >&5
23329 $as_echo "$ac_cv_search_fdatasync" >&6; }
23330 ac_res
=$ac_cv_search_fdatasync
23331 if test "$ac_res" != no
; then :
23332 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
23333 test "$ac_cv_search_fdatasync" = "none required" ||
23334 LIB_FDATASYNC
=$ac_cv_search_fdatasync
23337 LIBS
=$gl_saved_libs
23340 if test $HAVE_FDATASYNC = 0; then
23349 gl_LIBOBJS
="$gl_LIBOBJS fdatasync.$ac_objext"
23368 ac_fn_c_check_decl
"$LINENO" "fdopendir" "ac_cv_have_decl_fdopendir" "
23369 #include <dirent.h>
23372 if test "x$ac_cv_have_decl_fdopendir" = x
""yes; then :
23378 cat >>confdefs.h
<<_ACEOF
23379 #define HAVE_DECL_FDOPENDIR $ac_have_decl
23381 if test $ac_have_decl = 1; then :
23384 HAVE_DECL_FDOPENDIR
=0
23388 if test $ac_cv_func_fdopendir = no
; then
23391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fdopendir works" >&5
23392 $as_echo_n "checking whether fdopendir works... " >&6; }
23393 if test "${gl_cv_func_fdopendir_works+set}" = set; then :
23394 $as_echo_n "(cached) " >&6
23396 if test "$cross_compiling" = yes; then :
23398 # Guess yes on glibc systems.
23399 *-gnu*) gl_cv_func_fdopendir_works
="guessing yes" ;;
23400 # If we don't know, assume the worst.
23401 *) gl_cv_func_fdopendir_works
="guessing no" ;;
23405 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23406 /* end confdefs.h. */
23408 #include <dirent.h>
23410 #include <unistd.h>
23411 #if !HAVE_DECL_FDOPENDIR
23413 # ifdef __cplusplus
23416 DIR *fdopendir (int);
23423 int fd = open ("conftest.c", O_RDONLY);
23424 if (fd < 0) result |= 1;
23425 if (fdopendir (fd)) result |= 2;
23426 if (close (fd)) result |= 4;
23432 if ac_fn_c_try_run
"$LINENO"; then :
23433 gl_cv_func_fdopendir_works
=yes
23435 gl_cv_func_fdopendir_works
=no
23437 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23438 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fdopendir_works" >&5
23443 $as_echo "$gl_cv_func_fdopendir_works" >&6; }
23444 case "$gl_cv_func_fdopendir_works" in
23447 REPLACE_FDOPENDIR
=1
23452 if test $HAVE_FDOPENDIR = 0 ||
test $REPLACE_FDOPENDIR = 1; then
23461 gl_LIBOBJS
="$gl_LIBOBJS fdopendir.$ac_objext"
23477 cat >>confdefs.h
<<_ACEOF
23478 #define GNULIB_FDOPENDIR 1
23488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __fpending" >&5
23489 $as_echo_n "checking for __fpending... " >&6; }
23490 if test "${gl_cv_func___fpending+set}" = set; then :
23491 $as_echo_n "(cached) " >&6
23494 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23495 /* end confdefs.h. */
23497 #if HAVE_STDIO_EXT_H
23498 # include <stdio_ext.h>
23504 return ! __fpending (stdin);
23509 if ac_fn_c_try_link
"$LINENO"; then :
23510 gl_cv_func___fpending
=yes
23512 gl_cv_func___fpending
=no
23514 rm -f core conftest.err conftest.
$ac_objext \
23515 conftest
$ac_exeext conftest.
$ac_ext
23518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func___fpending" >&5
23519 $as_echo "$gl_cv_func___fpending" >&6; }
23521 if test $gl_cv_func___fpending = no
; then
23530 gl_LIBOBJS
="$gl_LIBOBJS fpending.$ac_objext"
23533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to determine the number of pending output bytes on a stream" >&5
23534 $as_echo_n "checking how to determine the number of pending output bytes on a stream... " >&6; }
23535 if test "${ac_cv_sys_pending_output_n_bytes+set}" = set; then :
23536 $as_echo_n "(cached) " >&6
23542 'fp->_IO_write_ptr - fp->_IO_write_base' \
23544 '# traditional Unix' \
23545 'fp->_ptr - fp->_base' \
23548 'fp->_p - fp->_bf._base' \
23550 '# SCO, Unixware' \
23551 '(fp->__ptr ? fp->__ptr - fp->__base : 0)' \
23554 '(fp->_Mode & 0x2000 /*_MWRITE*/ ? fp->_Next - fp->_Buf : 0)' \
23557 'fp->__bufp - fp->__buffer' \
23559 '# old glibc iostream?' \
23560 'fp->_pptr - fp->_pbase' \
23563 'fp->_ptr - fp->_buffer' \
23566 'fp->_ptr - fp->_buf' \
23569 'fp->wp - fp->buf' \
23572 '(*fp)->_ptr - (*fp)->_base' \
23574 '# e.g., DGUX R4.11; the info is not available' \
23578 # Skip each embedded comment.
23579 case "$ac_expr" in '#'*) continue;; esac
23581 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23582 /* end confdefs.h. */
23587 FILE *fp = stdin; (void) ($ac_expr);
23592 if ac_fn_c_try_compile
"$LINENO"; then :
23596 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23597 test "$fp_done" = yes && break
23600 ac_cv_sys_pending_output_n_bytes
=$ac_expr
23604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_pending_output_n_bytes" >&5
23605 $as_echo "$ac_cv_sys_pending_output_n_bytes" >&6; }
23607 cat >>confdefs.h
<<_ACEOF
23608 #define PENDING_OUTPUT_N_BYTES $ac_cv_sys_pending_output_n_bytes
23619 if test $ac_cv_func_fstatat = no
; then
23622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fstatat (..., 0) works" >&5
23623 $as_echo_n "checking whether fstatat (..., 0) works... " >&6; }
23624 if test "${gl_cv_func_fstatat_zero_flag+set}" = set; then :
23625 $as_echo_n "(cached) " >&6
23627 if test "$cross_compiling" = yes; then :
23629 aix
*) gl_cv_func_fstatat_zero_flag
="guessing no";;
23630 *) gl_cv_func_fstatat_zero_flag
="guessing yes";;
23634 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23635 /* end confdefs.h. */
23638 #include <sys/stat.h>
23643 return fstatat (AT_FDCWD, ".", &a, 0) != 0;
23647 if ac_fn_c_try_run
"$LINENO"; then :
23648 gl_cv_func_fstatat_zero_flag
=yes
23650 gl_cv_func_fstatat_zero_flag
=no
23652 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23653 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fstatat_zero_flag" >&5
23659 $as_echo "$gl_cv_func_fstatat_zero_flag" >&6; }
23661 case $gl_cv_func_fstatat_zero_flag+$gl_cv_func_lstat_dereferences_slashed_symlink in
23663 *) REPLACE_FSTATAT
=1
23664 case $gl_cv_func_fstatat_zero_flag in
23667 $as_echo "#define HAVE_WORKING_FSTATAT_ZERO_FLAG 1" >>confdefs.h
23675 if test $HAVE_FSTATAT = 0 ||
test $REPLACE_FSTATAT = 1; then
23684 gl_LIBOBJS
="$gl_LIBOBJS fstatat.$ac_objext"
23701 if test $ac_cv_func_fsync = no
; then
23705 if test $HAVE_FSYNC = 0; then
23714 gl_LIBOBJS
="$gl_LIBOBJS fsync.$ac_objext"
23731 # Persuade glibc <stdlib.h> to declare getloadavg().
23736 # getloadvg is present in libc on glibc >= 2.2, Mac OS X, FreeBSD >= 2.0,
23737 # NetBSD >= 0.9, OpenBSD >= 2.0, Solaris >= 7.
23739 ac_fn_c_check_func
"$LINENO" "getloadavg" "ac_cv_func_getloadavg"
23740 if test "x$ac_cv_func_getloadavg" = x
""yes; then :
23743 gl_func_getloadavg_done
=no
23745 # Some systems with -lutil have (and need) -lkvm as well, some do not.
23746 # On Solaris, -lkvm requires nlist from -lelf, so check that first
23747 # to get the right answer into the cache.
23748 # For kstat on solaris, we need to test for libelf and libkvm to force the
23749 # definition of SVR4 below.
23750 if test $gl_func_getloadavg_done = no
; then
23751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
23752 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
23753 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then :
23754 $as_echo_n "(cached) " >&6
23756 ac_check_lib_save_LIBS
=$LIBS
23758 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23759 /* end confdefs.h. */
23761 /* Override any GCC internal prototype to avoid an error.
23762 Use char because int might match the return type of a GCC
23763 builtin and then its argument prototype would still apply. */
23771 return elf_begin ();
23776 if ac_fn_c_try_link
"$LINENO"; then :
23777 ac_cv_lib_elf_elf_begin
=yes
23779 ac_cv_lib_elf_elf_begin
=no
23781 rm -f core conftest.err conftest.
$ac_objext \
23782 conftest
$ac_exeext conftest.
$ac_ext
23783 LIBS
=$ac_check_lib_save_LIBS
23785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
23786 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
23787 if test "x$ac_cv_lib_elf_elf_begin" = x
""yes; then :
23791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
23792 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
23793 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then :
23794 $as_echo_n "(cached) " >&6
23796 ac_check_lib_save_LIBS
=$LIBS
23798 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23799 /* end confdefs.h. */
23801 /* Override any GCC internal prototype to avoid an error.
23802 Use char because int might match the return type of a GCC
23803 builtin and then its argument prototype would still apply. */
23811 return kvm_open ();
23816 if ac_fn_c_try_link
"$LINENO"; then :
23817 ac_cv_lib_kvm_kvm_open
=yes
23819 ac_cv_lib_kvm_kvm_open
=no
23821 rm -f core conftest.err conftest.
$ac_objext \
23822 conftest
$ac_exeext conftest.
$ac_ext
23823 LIBS
=$ac_check_lib_save_LIBS
23825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
23826 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
23827 if test "x$ac_cv_lib_kvm_kvm_open" = x
""yes; then :
23831 # Check for the 4.4BSD definition of getloadavg.
23832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
23833 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
23834 if test "${ac_cv_lib_util_getloadavg+set}" = set; then :
23835 $as_echo_n "(cached) " >&6
23837 ac_check_lib_save_LIBS
=$LIBS
23838 LIBS
="-lutil $LIBS"
23839 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23840 /* end confdefs.h. */
23842 /* Override any GCC internal prototype to avoid an error.
23843 Use char because int might match the return type of a GCC
23844 builtin and then its argument prototype would still apply. */
23848 char getloadavg ();
23852 return getloadavg ();
23857 if ac_fn_c_try_link
"$LINENO"; then :
23858 ac_cv_lib_util_getloadavg
=yes
23860 ac_cv_lib_util_getloadavg
=no
23862 rm -f core conftest.err conftest.
$ac_objext \
23863 conftest
$ac_exeext conftest.
$ac_ext
23864 LIBS
=$ac_check_lib_save_LIBS
23866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
23867 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
23868 if test "x$ac_cv_lib_util_getloadavg" = x
""yes; then :
23869 LIBS
="-lutil $LIBS" gl_func_getloadavg_done
=yes
23874 if test $gl_func_getloadavg_done = no
; then
23875 # There is a commonly available library for RS/6000 AIX.
23876 # Since it is not a standard part of AIX, it might be installed locally.
23877 gl_getloadavg_LIBS
=$LIBS
23878 LIBS
="-L/usr/local/lib $LIBS"
23879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
23880 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
23881 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then :
23882 $as_echo_n "(cached) " >&6
23884 ac_check_lib_save_LIBS
=$LIBS
23885 LIBS
="-lgetloadavg $LIBS"
23886 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23887 /* end confdefs.h. */
23889 /* Override any GCC internal prototype to avoid an error.
23890 Use char because int might match the return type of a GCC
23891 builtin and then its argument prototype would still apply. */
23895 char getloadavg ();
23899 return getloadavg ();
23904 if ac_fn_c_try_link
"$LINENO"; then :
23905 ac_cv_lib_getloadavg_getloadavg
=yes
23907 ac_cv_lib_getloadavg_getloadavg
=no
23909 rm -f core conftest.err conftest.
$ac_objext \
23910 conftest
$ac_exeext conftest.
$ac_ext
23911 LIBS
=$ac_check_lib_save_LIBS
23913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
23914 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
23915 if test "x$ac_cv_lib_getloadavg_getloadavg" = x
""yes; then :
23916 LIBS
="-lgetloadavg $LIBS" gl_func_getloadavg_done
=yes
23918 LIBS
=$gl_getloadavg_LIBS
23923 # Set up the replacement function if necessary.
23924 if test $gl_func_getloadavg_done = no
; then
23927 # Solaris has libkstat which does not require root.
23928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
23929 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
23930 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
23931 $as_echo_n "(cached) " >&6
23933 ac_check_lib_save_LIBS
=$LIBS
23934 LIBS
="-lkstat $LIBS"
23935 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23936 /* end confdefs.h. */
23938 /* Override any GCC internal prototype to avoid an error.
23939 Use char because int might match the return type of a GCC
23940 builtin and then its argument prototype would still apply. */
23944 char kstat_open ();
23948 return kstat_open ();
23953 if ac_fn_c_try_link
"$LINENO"; then :
23954 ac_cv_lib_kstat_kstat_open
=yes
23956 ac_cv_lib_kstat_kstat_open
=no
23958 rm -f core conftest.err conftest.
$ac_objext \
23959 conftest
$ac_exeext conftest.
$ac_ext
23960 LIBS
=$ac_check_lib_save_LIBS
23962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
23963 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
23964 if test "x$ac_cv_lib_kstat_kstat_open" = x
""yes; then :
23965 cat >>confdefs.h
<<_ACEOF
23966 #define HAVE_LIBKSTAT 1
23969 LIBS
="-lkstat $LIBS"
23973 test $ac_cv_lib_kstat_kstat_open = yes && gl_func_getloadavg_done
=yes
23975 # AIX has libperfstat which does not require root
23976 if test $gl_func_getloadavg_done = no
; then
23977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perfstat_cpu_total in -lperfstat" >&5
23978 $as_echo_n "checking for perfstat_cpu_total in -lperfstat... " >&6; }
23979 if test "${ac_cv_lib_perfstat_perfstat_cpu_total+set}" = set; then :
23980 $as_echo_n "(cached) " >&6
23982 ac_check_lib_save_LIBS
=$LIBS
23983 LIBS
="-lperfstat $LIBS"
23984 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23985 /* end confdefs.h. */
23987 /* Override any GCC internal prototype to avoid an error.
23988 Use char because int might match the return type of a GCC
23989 builtin and then its argument prototype would still apply. */
23993 char perfstat_cpu_total ();
23997 return perfstat_cpu_total ();
24002 if ac_fn_c_try_link
"$LINENO"; then :
24003 ac_cv_lib_perfstat_perfstat_cpu_total
=yes
24005 ac_cv_lib_perfstat_perfstat_cpu_total
=no
24007 rm -f core conftest.err conftest.
$ac_objext \
24008 conftest
$ac_exeext conftest.
$ac_ext
24009 LIBS
=$ac_check_lib_save_LIBS
24011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_perfstat_perfstat_cpu_total" >&5
24012 $as_echo "$ac_cv_lib_perfstat_perfstat_cpu_total" >&6; }
24013 if test "x$ac_cv_lib_perfstat_perfstat_cpu_total" = x
""yes; then :
24014 cat >>confdefs.h
<<_ACEOF
24015 #define HAVE_LIBPERFSTAT 1
24018 LIBS
="-lperfstat $LIBS"
24022 test $ac_cv_lib_perfstat_perfstat_cpu_total = yes && gl_func_getloadavg_done
=yes
24025 if test $gl_func_getloadavg_done = no
; then
24026 ac_fn_c_check_header_mongrel
"$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
24027 if test "x$ac_cv_header_sys_dg_sys_info_h" = x
""yes; then :
24028 gl_func_getloadavg_done
=yes
24030 $as_echo "#define DGUX 1" >>confdefs.h
24032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
24033 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
24034 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then :
24035 $as_echo_n "(cached) " >&6
24037 ac_check_lib_save_LIBS
=$LIBS
24039 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24040 /* end confdefs.h. */
24042 /* Override any GCC internal prototype to avoid an error.
24043 Use char because int might match the return type of a GCC
24044 builtin and then its argument prototype would still apply. */
24048 char dg_sys_info ();
24052 return dg_sys_info ();
24057 if ac_fn_c_try_link
"$LINENO"; then :
24058 ac_cv_lib_dgc_dg_sys_info
=yes
24060 ac_cv_lib_dgc_dg_sys_info
=no
24062 rm -f core conftest.err conftest.
$ac_objext \
24063 conftest
$ac_exeext conftest.
$ac_ext
24064 LIBS
=$ac_check_lib_save_LIBS
24066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
24067 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
24068 if test "x$ac_cv_lib_dgc_dg_sys_info" = x
""yes; then :
24069 cat >>confdefs.h
<<_ACEOF
24070 #define HAVE_LIBDGC 1
24085 if test "x$gl_save_LIBS" = x
; then
24086 GETLOADAVG_LIBS
=$LIBS
24088 GETLOADAVG_LIBS
=`echo "$LIBS" | sed "s!$gl_save_LIBS!!"`
24093 # Test whether the system declares getloadavg. Solaris has the function
24094 # but declares it in <sys/loadavg.h>, not <stdlib.h>.
24095 for ac_header
in sys
/loadavg.h
24097 ac_fn_c_check_header_mongrel
"$LINENO" "sys/loadavg.h" "ac_cv_header_sys_loadavg_h" "$ac_includes_default"
24098 if test "x$ac_cv_header_sys_loadavg_h" = x
""yes; then :
24099 cat >>confdefs.h
<<_ACEOF
24100 #define HAVE_SYS_LOADAVG_H 1
24107 if test $ac_cv_header_sys_loadavg_h = yes; then
24108 HAVE_SYS_LOADAVG_H
=1
24110 HAVE_SYS_LOADAVG_H
=0
24112 ac_fn_c_check_decl
"$LINENO" "getloadavg" "ac_cv_have_decl_getloadavg" "#if HAVE_SYS_LOADAVG_H
24113 # include <sys/loadavg.h>
24115 #include <stdlib.h>
24117 if test "x$ac_cv_have_decl_getloadavg" = x
""yes; then :
24120 HAVE_DECL_GETLOADAVG
=0
24124 if test $HAVE_GETLOADAVG = 0; then
24133 gl_LIBOBJS
="$gl_LIBOBJS getloadavg.$ac_objext"
24136 # Figure out what our getloadavg.c needs.
24140 # On HPUX9, an unprivileged user can get load averages this way.
24141 if test $gl_func_getloadavg_done = no
; then
24142 for ac_func
in pstat_getdynamic
24144 ac_fn_c_check_func
"$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
24145 if test "x$ac_cv_func_pstat_getdynamic" = x
""yes; then :
24146 cat >>confdefs.h
<<_ACEOF
24147 #define HAVE_PSTAT_GETDYNAMIC 1
24149 gl_func_getloadavg_done
=yes
24155 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
24156 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
24157 # Irix 4.0.5F has the header but not the library.
24158 if test $gl_func_getloadavg_done = no
&& test "$ac_cv_lib_elf_elf_begin" = yes \
24159 && test "$ac_cv_lib_kvm_kvm_open" = yes; then
24160 gl_func_getloadavg_done
=yes
24162 $as_echo "#define SVR4 1" >>confdefs.h
24166 if test $gl_func_getloadavg_done = no
; then
24167 ac_fn_c_check_header_mongrel
"$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
24168 if test "x$ac_cv_header_inq_stats_cpustats_h" = x
""yes; then :
24169 gl_func_getloadavg_done
=yes
24171 $as_echo "#define UMAX 1" >>confdefs.h
24174 $as_echo "#define UMAX4_3 1" >>confdefs.h
24181 if test $gl_func_getloadavg_done = no
; then
24182 ac_fn_c_check_header_mongrel
"$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
24183 if test "x$ac_cv_header_sys_cpustats_h" = x
""yes; then :
24184 gl_func_getloadavg_done
=yes; $as_echo "#define UMAX 1" >>confdefs.h
24191 if test $gl_func_getloadavg_done = no
; then
24192 for ac_header
in mach
/mach.h
24194 ac_fn_c_check_header_mongrel
"$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
24195 if test "x$ac_cv_header_mach_mach_h" = x
""yes; then :
24196 cat >>confdefs.h
<<_ACEOF
24197 #define HAVE_MACH_MACH_H 1
24206 for ac_header
in nlist.h
24208 ac_fn_c_check_header_mongrel
"$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
24209 if test "x$ac_cv_header_nlist_h" = x
""yes; then :
24210 cat >>confdefs.h
<<_ACEOF
24211 #define HAVE_NLIST_H 1
24213 ac_fn_c_check_member
"$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
24215 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x
""yes; then :
24217 cat >>confdefs.h
<<_ACEOF
24218 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
24224 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24225 /* end confdefs.h. */
24231 #ifdef HAVE_STRUCT_NLIST_N_UN_N_NAME
24232 x.n_un.n_name = "";
24240 if ac_fn_c_try_link
"$LINENO"; then :
24242 $as_echo "#define N_NAME_POINTER 1" >>confdefs.h
24245 rm -f core conftest.err conftest.
$ac_objext \
24246 conftest
$ac_exeext conftest.
$ac_ext
24258 GNULIB_GETLOADAVG
=1
24269 if test $REPLACE_GETOPT = 1; then
24278 gl_LIBOBJS
="$gl_LIBOBJS getopt.$ac_objext"
24288 gl_LIBOBJS
="$gl_LIBOBJS getopt1.$ac_objext"
24293 GNULIB_GL_UNISTD_H_GETOPT
=1
24303 if test -n "$gl_replace_getopt"; then
24307 if test $REPLACE_GETOPT = 1; then
24311 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
24317 if test $REPLACE_GETOPT = 1; then
24326 gl_LIBOBJS
="$gl_LIBOBJS getopt.$ac_objext"
24336 gl_LIBOBJS
="$gl_LIBOBJS getopt1.$ac_objext"
24341 GNULIB_GL_UNISTD_H_GETOPT
=1
24355 gl_gettimeofday_timezone
=void
24356 if test $ac_cv_func_gettimeofday != yes; then
24357 HAVE_GETTIMEOFDAY
=0
24362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday clobbers localtime buffer" >&5
24363 $as_echo_n "checking whether gettimeofday clobbers localtime buffer... " >&6; }
24364 if test "${gl_cv_func_gettimeofday_clobber+set}" = set; then :
24365 $as_echo_n "(cached) " >&6
24367 if test "$cross_compiling" = yes; then :
24368 # When cross-compiling:
24370 # Guess all is fine on glibc systems.
24371 *-gnu*) gl_cv_func_gettimeofday_clobber
="guessing no" ;;
24372 # If we don't know, assume the worst.
24373 *) gl_cv_func_gettimeofday_clobber
="guessing yes" ;;
24377 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24378 /* end confdefs.h. */
24379 #include <string.h>
24380 #include <sys/time.h>
24382 #include <stdlib.h>
24390 struct tm saved_lt;
24392 lt = localtime (&t);
24394 gettimeofday (&tv, NULL);
24395 return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0;
24401 if ac_fn_c_try_run
"$LINENO"; then :
24402 gl_cv_func_gettimeofday_clobber
=no
24404 gl_cv_func_gettimeofday_clobber
=yes
24406 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24407 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_clobber" >&5
24412 $as_echo "$gl_cv_func_gettimeofday_clobber" >&6; }
24414 case "$gl_cv_func_gettimeofday_clobber" in
24416 REPLACE_GETTIMEOFDAY
=1
24419 $as_echo "#define gmtime rpl_gmtime" >>confdefs.h
24422 $as_echo "#define localtime rpl_localtime" >>confdefs.h
24426 $as_echo "#define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1" >>confdefs.h
24431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday with POSIX signature" >&5
24432 $as_echo_n "checking for gettimeofday with POSIX signature... " >&6; }
24433 if test "${gl_cv_func_gettimeofday_posix_signature+set}" = set; then :
24434 $as_echo_n "(cached) " >&6
24436 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24437 /* end confdefs.h. */
24438 #include <sys/time.h>
24440 int gettimeofday (struct timeval *restrict, void *restrict);
24445 /* glibc uses struct timezone * rather than the POSIX void *
24446 if _GNU_SOURCE is defined. However, since the only portable
24447 use of gettimeofday uses NULL as the second parameter, and
24448 since the glibc definition is actually more typesafe, it is
24449 not worth wrapping this to get a compliant signature. */
24450 int (*f) (struct timeval *restrict, void *restrict)
24453 return !(x | c.tv_sec | c.tv_usec);
24459 if ac_fn_c_try_compile
"$LINENO"; then :
24460 gl_cv_func_gettimeofday_posix_signature
=yes
24462 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24463 /* end confdefs.h. */
24464 #include <sys/time.h>
24465 int gettimeofday (struct timeval *restrict, struct timezone *restrict);
24475 if ac_fn_c_try_compile
"$LINENO"; then :
24476 gl_cv_func_gettimeofday_posix_signature
=almost
24478 gl_cv_func_gettimeofday_posix_signature
=no
24480 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24482 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_posix_signature" >&5
24485 $as_echo "$gl_cv_func_gettimeofday_posix_signature" >&6; }
24486 if test $gl_cv_func_gettimeofday_posix_signature = almost
; then
24487 gl_gettimeofday_timezone
='struct timezone'
24488 elif test $gl_cv_func_gettimeofday_posix_signature != yes; then
24489 REPLACE_GETTIMEOFDAY
=1
24491 if test $REPLACE_STRUCT_TIMEVAL = 1; then
24492 REPLACE_GETTIMEOFDAY
=1
24497 cat >>confdefs.h
<<_ACEOF
24498 #define GETTIMEOFDAY_TIMEZONE $gl_gettimeofday_timezone
24502 if test $HAVE_GETTIMEOFDAY = 0 ||
test $REPLACE_GETTIMEOFDAY = 1; then
24511 gl_LIBOBJS
="$gl_LIBOBJS gettimeofday.$ac_objext"
24514 for ac_header
in sys
/timeb.h
24516 ac_fn_c_check_header_mongrel
"$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
24517 if test "x$ac_cv_header_sys_timeb_h" = x
""yes; then :
24518 cat >>confdefs.h
<<_ACEOF
24519 #define HAVE_SYS_TIMEB_H 1
24526 for ac_func
in _ftime
24528 ac_fn_c_check_func
"$LINENO" "_ftime" "ac_cv_func__ftime"
24529 if test "x$ac_cv_func__ftime" = x
""yes; then :
24530 cat >>confdefs.h
<<_ACEOF
24531 #define HAVE__FTIME 1
24544 GNULIB_GETTIMEOFDAY
=1
24555 if test $ac_cv_func_lstat = yes; then
24557 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
24566 if test $REPLACE_LSTAT = 1; then
24575 gl_LIBOBJS
="$gl_LIBOBJS lstat.$ac_objext"
24595 if test $ac_cv_have_decl_memrchr = no
; then
24596 HAVE_DECL_MEMRCHR
=0
24599 for ac_func
in memrchr
24601 ac_fn_c_check_func
"$LINENO" "memrchr" "ac_cv_func_memrchr"
24602 if test "x$ac_cv_func_memrchr" = x
""yes; then :
24603 cat >>confdefs.h
<<_ACEOF
24604 #define HAVE_MEMRCHR 1
24611 if test $ac_cv_func_memrchr = no
; then
24620 gl_LIBOBJS
="$gl_LIBOBJS memrchr.$ac_objext"
24641 if test $ac_cv_func_mkostemp != yes; then
24645 if test $HAVE_MKOSTEMP = 0; then
24654 gl_LIBOBJS
="$gl_LIBOBJS mkostemp.$ac_objext"
24661 cat >>confdefs.h
<<_ACEOF
24662 #define GNULIB_MKOSTEMP 1
24683 if test $APPLE_UNIVERSAL_BUILD = 1; then
24684 # A universal build on Apple Mac OS X platforms.
24685 # The test result would be 'yes' in 32-bit mode and 'no' in 64-bit mode.
24686 # But we need a configuration result that is valid in both modes.
24687 gl_cv_func_working_mktime
=no
24689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
24690 $as_echo_n "checking for working mktime... " >&6; }
24691 if test "${gl_cv_func_working_mktime+set}" = set; then :
24692 $as_echo_n "(cached) " >&6
24694 if test "$cross_compiling" = yes; then :
24695 gl_cv_func_working_mktime
=no
24697 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24698 /* end confdefs.h. */
24699 /* Test program from Paul Eggert and Tony Leneis. */
24700 #include <limits.h>
24701 #include <stdlib.h>
24704 #ifdef HAVE_UNISTD_H
24705 # include <unistd.h>
24708 #if HAVE_DECL_ALARM
24709 # include <signal.h>
24712 /* Work around redefinition to rpl_putenv by other config tests. */
24715 static time_t time_t_max;
24716 static time_t time_t_min;
24718 /* Values we'll use to set the TZ environment variable. */
24719 static char *tz_strings[] = {
24720 (char *) 0, "TZ=GMT0", "TZ=JST-9",
24721 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
24723 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
24725 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
24726 Based on a problem report from Andreas Jaeger. */
24728 spring_forward_gap ()
24730 /* glibc (up to about 1998-10-07) failed this test. */
24733 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
24734 instead of "TZ=America/Vancouver" in order to detect the bug even
24735 on systems that don't support the Olson extension, or don't have the
24736 full zoneinfo tables installed. */
24737 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
24746 return mktime (&tm) != (time_t) -1;
24750 mktime_test1 (time_t now)
24753 return ! (lt = localtime (&now)) || mktime (lt) == now;
24757 mktime_test (time_t now)
24759 return (mktime_test1 (now)
24760 && mktime_test1 ((time_t) (time_t_max - now))
24761 && mktime_test1 ((time_t) (time_t_min + now)));
24767 /* Based on code from Ariel Faigon. */
24777 return tm.tm_mon == 2 && tm.tm_mday == 31;
24781 bigtime_test (int j)
24785 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
24786 now = mktime (&tm);
24787 if (now != (time_t) -1)
24789 struct tm *lt = localtime (&now);
24791 && lt->tm_year == tm.tm_year
24792 && lt->tm_mon == tm.tm_mon
24793 && lt->tm_mday == tm.tm_mday
24794 && lt->tm_hour == tm.tm_hour
24795 && lt->tm_min == tm.tm_min
24796 && lt->tm_sec == tm.tm_sec
24797 && lt->tm_yday == tm.tm_yday
24798 && lt->tm_wday == tm.tm_wday
24799 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
24800 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
24809 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
24810 ignoring leap seconds. */
24811 unsigned long int answer = 2527315200UL;
24815 tm.tm_year = 2050 - 1900;
24818 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
24821 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
24822 instead of "TZ=America/Vancouver" in order to detect the bug even
24823 on systems that don't support the Olson extension, or don't have the
24824 full zoneinfo tables installed. */
24825 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
24829 /* Check that the result is either a failure, or close enough
24830 to the correct answer that we can assume the discrepancy is
24831 due to leap seconds. */
24832 return (t == (time_t) -1
24833 || (0 < t && answer - 120 <= t && t <= answer + 120));
24842 int time_t_signed_magnitude = (time_t) ~ (time_t) 0 < (time_t) -1;
24843 int time_t_signed = ! ((time_t) 0 < (time_t) -1);
24845 #if HAVE_DECL_ALARM
24846 /* This test makes some buggy mktime implementations loop.
24847 Give up after 60 seconds; a mktime slower than that
24848 isn't worth using anyway. */
24849 signal (SIGALRM, SIG_DFL);
24853 time_t_max = (! time_t_signed
24855 : ((((time_t) 1 << (sizeof (time_t) * CHAR_BIT - 2)) - 1)
24857 time_t_min = (! time_t_signed
24859 : time_t_signed_magnitude
24863 delta = time_t_max / 997; /* a suitable prime number */
24864 for (i = 0; i < N_STRINGS; i++)
24867 putenv (tz_strings[i]);
24869 for (t = 0; t <= time_t_max - delta && (result & 1) == 0; t += delta)
24870 if (! mktime_test (t))
24872 if ((result & 2) == 0
24873 && ! (mktime_test ((time_t) 1)
24874 && mktime_test ((time_t) (60 * 60))
24875 && mktime_test ((time_t) (60 * 60 * 24))))
24878 for (j = 1; (result & 4) == 0; j <<= 1)
24880 if (! bigtime_test (j))
24882 if (INT_MAX / 2 < j)
24885 if ((result & 8) == 0 && ! bigtime_test (INT_MAX))
24888 if (! irix_6_4_bug ())
24890 if (! spring_forward_gap ())
24892 if (! year_2050_test ())
24897 if ac_fn_c_try_run
"$LINENO"; then :
24898 gl_cv_func_working_mktime
=yes
24900 gl_cv_func_working_mktime
=no
24902 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24903 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_mktime" >&5
24909 $as_echo "$gl_cv_func_working_mktime" >&6; }
24911 if test $gl_cv_func_working_mktime = no
; then
24917 if test $REPLACE_MKTIME = 1; then
24926 gl_LIBOBJS
="$gl_LIBOBJS mktime.$ac_objext"
24948 if test $ac_cv_func_pipe2 != yes; then
24968 if test $ac_cv_func_pselect = yes; then
24969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether signature of pselect conforms to POSIX" >&5
24970 $as_echo_n "checking whether signature of pselect conforms to POSIX... " >&6; }
24971 if test "${gl_cv_sig_pselect+set}" = set; then :
24972 $as_echo_n "(cached) " >&6
24974 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24975 /* end confdefs.h. */
24976 #include <sys/select.h>
24981 int (*p) (int, fd_set *, fd_set *, fd_set *restrict,
24982 struct timespec const *restrict,
24983 sigset_t const *restrict) = pselect;
24989 if ac_fn_c_try_link
"$LINENO"; then :
24990 gl_cv_sig_pselect
=yes
24992 gl_cv_sig_pselect
=no
24994 rm -f core conftest.err conftest.
$ac_objext \
24995 conftest
$ac_exeext conftest.
$ac_ext
24997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sig_pselect" >&5
24998 $as_echo "$gl_cv_sig_pselect" >&6; }
25000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pselect detects invalid fds" >&5
25001 $as_echo_n "checking whether pselect detects invalid fds... " >&6; }
25002 if test "${gl_cv_func_pselect_detects_ebadf+set}" = set; then :
25003 $as_echo_n "(cached) " >&6
25006 if test "$cross_compiling" = yes; then :
25009 # Guess yes on glibc systems.
25010 *-gnu*) gl_cv_func_pselect_detects_ebadf
="guessing yes" ;;
25011 # If we don't know, assume the worst.
25012 *) gl_cv_func_pselect_detects_ebadf
="guessing no" ;;
25016 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25017 /* end confdefs.h. */
25019 #include <sys/types.h>
25020 #include <sys/time.h>
25021 #if HAVE_SYS_SELECT_H
25022 # include <sys/select.h>
25024 #include <unistd.h>
25036 struct timespec timeout;
25037 timeout.tv_sec = 0;
25038 timeout.tv_nsec = 5000;
25039 return pselect (17, &set, NULL, NULL, &timeout, NULL) != -1 || errno != EBADF;
25045 if ac_fn_c_try_run
"$LINENO"; then :
25046 gl_cv_func_pselect_detects_ebadf
=yes
25048 gl_cv_func_pselect_detects_ebadf
=no
25050 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
25051 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
25056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pselect_detects_ebadf" >&5
25057 $as_echo "$gl_cv_func_pselect_detects_ebadf" >&6; }
25058 case $gl_cv_func_pselect_detects_ebadf in
25060 *) REPLACE_PSELECT
=1 ;;
25064 if test $ac_cv_func_pselect = no ||
test $gl_cv_sig_pselect = no
; then
25068 if test $HAVE_PSELECT = 0 ||
test $REPLACE_PSELECT = 1; then
25077 gl_LIBOBJS
="$gl_LIBOBJS pselect.$ac_objext"
25095 LIB_PTHREAD_SIGMASK
=
25100 if test "$gl_threads_api" = posix
; then
25101 if test $ac_cv_func_pthread_sigmask = yes; then
25104 if test -n "$LIBMULTITHREAD"; then
25105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_sigmask in $LIBMULTITHREAD" >&5
25106 $as_echo_n "checking for pthread_sigmask in $LIBMULTITHREAD... " >&6; }
25107 if test "${gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD+set}" = set; then :
25108 $as_echo_n "(cached) " >&6
25110 gl_save_LIBS
="$LIBS"
25111 LIBS
="$LIBS $LIBMULTITHREAD"
25112 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25113 /* end confdefs.h. */
25114 #include <pthread.h>
25115 #include <signal.h>
25120 return pthread_sigmask (0, (sigset_t *) 0, (sigset_t *) 0);
25126 if ac_fn_c_try_link
"$LINENO"; then :
25127 gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD
=yes
25129 gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD
=no
25131 rm -f core conftest.err conftest.
$ac_objext \
25132 conftest
$ac_exeext conftest.
$ac_ext
25133 LIBS
="$gl_save_LIBS"
25136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD" >&5
25137 $as_echo "$gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD" >&6; }
25138 if test $gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD = yes; then
25139 LIB_PTHREAD_SIGMASK
="$LIBMULTITHREAD"
25141 HAVE_PTHREAD_SIGMASK
=0
25144 HAVE_PTHREAD_SIGMASK
=0
25148 if test $ac_cv_func_pthread_sigmask = yes; then
25149 REPLACE_PTHREAD_SIGMASK
=1
25151 HAVE_PTHREAD_SIGMASK
=0
25158 if test $HAVE_PTHREAD_SIGMASK = 1; then
25161 if test -z "$LIB_PTHREAD_SIGMASK"; then
25162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask works without -lpthread" >&5
25163 $as_echo_n "checking whether pthread_sigmask works without -lpthread... " >&6; }
25164 if test "${gl_cv_func_pthread_sigmask_in_libc_works+set}" = set; then :
25165 $as_echo_n "(cached) " >&6
25168 if test "$cross_compiling" = yes; then :
25171 freebsd
* | hpux
* | solaris | solaris2.
[2-9]*)
25172 gl_cv_func_pthread_sigmask_in_libc_works
="guessing no";;
25174 gl_cv_func_pthread_sigmask_in_libc_works
="guessing yes";;
25178 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25179 /* end confdefs.h. */
25181 #include <pthread.h>
25182 #include <signal.h>
25183 #include <stddef.h>
25187 sigemptyset (&set);
25188 return pthread_sigmask (1729, &set, NULL) != 0;
25191 if ac_fn_c_try_run
"$LINENO"; then :
25192 gl_cv_func_pthread_sigmask_in_libc_works
=no
25194 gl_cv_func_pthread_sigmask_in_libc_works
=yes
25196 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
25197 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
25202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_in_libc_works" >&5
25203 $as_echo "$gl_cv_func_pthread_sigmask_in_libc_works" >&6; }
25204 case "$gl_cv_func_pthread_sigmask_in_libc_works" in
25206 REPLACE_PTHREAD_SIGMASK
=1
25208 $as_echo "#define PTHREAD_SIGMASK_INEFFECTIVE 1" >>confdefs.h
25214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask returns error numbers" >&5
25215 $as_echo_n "checking whether pthread_sigmask returns error numbers... " >&6; }
25216 if test "${gl_cv_func_pthread_sigmask_return_works+set}" = set; then :
25217 $as_echo_n "(cached) " >&6
25220 gl_save_LIBS
="$LIBS"
25221 LIBS
="$LIBS $LIB_PTHREAD_SIGMASK"
25222 if test "$cross_compiling" = yes; then :
25225 gl_cv_func_pthread_sigmask_return_works
="guessing no";;
25227 gl_cv_func_pthread_sigmask_return_works
="guessing yes";;
25231 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25232 /* end confdefs.h. */
25234 #include <pthread.h>
25235 #include <signal.h>
25236 #include <stddef.h>
25240 sigemptyset (&set);
25241 if (pthread_sigmask (1729, &set, NULL) == -1)
25246 if ac_fn_c_try_run
"$LINENO"; then :
25247 gl_cv_func_pthread_sigmask_return_works
=yes
25249 gl_cv_func_pthread_sigmask_return_works
=no
25251 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
25252 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
25255 LIBS
="$gl_save_LIBS"
25258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_return_works" >&5
25259 $as_echo "$gl_cv_func_pthread_sigmask_return_works" >&6; }
25260 case "$gl_cv_func_pthread_sigmask_return_works" in
25262 REPLACE_PTHREAD_SIGMASK
=1
25264 $as_echo "#define PTHREAD_SIGMASK_FAILS_WITH_ERRNO 1" >>confdefs.h
25269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask unblocks signals correctly" >&5
25270 $as_echo_n "checking whether pthread_sigmask unblocks signals correctly... " >&6; }
25271 if test "${gl_cv_func_pthread_sigmask_unblock_works+set}" = set; then :
25272 $as_echo_n "(cached) " >&6
25277 gl_cv_func_pthread_sigmask_unblock_works
="guessing no";;
25279 gl_cv_func_pthread_sigmask_unblock_works
="guessing yes";;
25281 gl_save_LIBS
="$LIBS"
25282 LIBS
="$LIBS $LIBMULTITHREAD"
25283 if test "$cross_compiling" = yes; then :
25286 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25287 /* end confdefs.h. */
25289 #include <pthread.h>
25290 #include <signal.h>
25292 #include <stdlib.h>
25293 #include <unistd.h>
25294 static volatile int sigint_occurred;
25296 sigint_handler (int sig)
25303 int pid = getpid ();
25305 signal (SIGINT, sigint_handler);
25306 sigemptyset (&set);
25307 sigaddset (&set, SIGINT);
25308 if (!(pthread_sigmask (SIG_BLOCK, &set, NULL) == 0))
25310 sprintf (command, "sh -c 'sleep 1; kill -%d %d' &", SIGINT, pid);
25311 if (!(system (command) == 0))
25314 if (!(sigint_occurred == 0))
25316 if (!(pthread_sigmask (SIG_UNBLOCK, &set, NULL) == 0))
25318 if (!(sigint_occurred == 1)) /* This fails on IRIX. */
25323 if ac_fn_c_try_run
"$LINENO"; then :
25326 gl_cv_func_pthread_sigmask_unblock_works
=no
25328 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
25329 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
25332 LIBS
="$gl_save_LIBS"
25335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_unblock_works" >&5
25336 $as_echo "$gl_cv_func_pthread_sigmask_unblock_works" >&6; }
25337 case "$gl_cv_func_pthread_sigmask_unblock_works" in
25339 REPLACE_PTHREAD_SIGMASK
=1
25341 $as_echo "#define PTHREAD_SIGMASK_UNBLOCK_BUG 1" >>confdefs.h
25347 if test $HAVE_PTHREAD_SIGMASK = 0 ||
test $REPLACE_PTHREAD_SIGMASK = 1; then
25356 gl_LIBOBJS
="$gl_LIBOBJS pthread_sigmask.$ac_objext"
25359 if test $HAVE_PTHREAD_SIGMASK = 1; then
25361 $as_echo "#define HAVE_PTHREAD_SIGMASK 1" >>confdefs.h
25371 GNULIB_PTHREAD_SIGMASK
=1
25379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for putenv compatible with GNU and SVID" >&5
25380 $as_echo_n "checking for putenv compatible with GNU and SVID... " >&6; }
25381 if test "${gl_cv_func_svid_putenv+set}" = set; then :
25382 $as_echo_n "(cached) " >&6
25384 if test "$cross_compiling" = yes; then :
25386 # Guess yes on glibc systems.
25387 *-gnu*) gl_cv_func_svid_putenv
="guessing yes" ;;
25388 # If we don't know, assume the worst.
25389 *) gl_cv_func_svid_putenv
="guessing no" ;;
25393 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25394 /* end confdefs.h. */
25395 $ac_includes_default
25400 /* Put it in env. */
25401 if (putenv ("CONFTEST_putenv=val"))
25404 /* Try to remove it. */
25405 if (putenv ("CONFTEST_putenv"))
25408 /* Make sure it was deleted. */
25409 if (getenv ("CONFTEST_putenv") != 0)
25418 if ac_fn_c_try_run
"$LINENO"; then :
25419 gl_cv_func_svid_putenv
=yes
25421 gl_cv_func_svid_putenv
=no
25423 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
25424 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
25429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_svid_putenv" >&5
25430 $as_echo "$gl_cv_func_svid_putenv" >&6; }
25431 case "$gl_cv_func_svid_putenv" in
25438 if test $REPLACE_PUTENV = 1; then
25447 gl_LIBOBJS
="$gl_LIBOBJS putenv.$ac_objext"
25450 ac_fn_c_check_decl
"$LINENO" "_putenv" "ac_cv_have_decl__putenv" "$ac_includes_default"
25451 if test "x$ac_cv_have_decl__putenv" = x
""yes; then :
25457 cat >>confdefs.h
<<_ACEOF
25458 #define HAVE_DECL__PUTENV $ac_have_decl
25475 # Check whether --enable-acl was given.
25476 if test "${enable_acl+set}" = set; then :
25477 enableval
=$enable_acl;
25485 if test "x$enable_acl" != "xno"; then
25486 for ac_header
in sys
/acl.h
25488 ac_fn_c_check_header_mongrel
"$LINENO" "sys/acl.h" "ac_cv_header_sys_acl_h" "$ac_includes_default"
25489 if test "x$ac_cv_header_sys_acl_h" = x
""yes; then :
25490 cat >>confdefs.h
<<_ACEOF
25491 #define HAVE_SYS_ACL_H 1
25498 if test $ac_cv_header_sys_acl_h = yes; then
25501 if test $use_acl = 0; then
25502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing acl_get_file" >&5
25503 $as_echo_n "checking for library containing acl_get_file... " >&6; }
25504 if test "${ac_cv_search_acl_get_file+set}" = set; then :
25505 $as_echo_n "(cached) " >&6
25507 ac_func_search_save_LIBS
=$LIBS
25508 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25509 /* end confdefs.h. */
25511 /* Override any GCC internal prototype to avoid an error.
25512 Use char because int might match the return type of a GCC
25513 builtin and then its argument prototype would still apply. */
25517 char acl_get_file ();
25521 return acl_get_file ();
25526 for ac_lib
in '' acl pacl
; do
25527 if test -z "$ac_lib"; then
25528 ac_res
="none required"
25531 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
25533 if ac_fn_c_try_link
"$LINENO"; then :
25534 ac_cv_search_acl_get_file
=$ac_res
25536 rm -f core conftest.err conftest.
$ac_objext \
25538 if test "${ac_cv_search_acl_get_file+set}" = set; then :
25542 if test "${ac_cv_search_acl_get_file+set}" = set; then :
25545 ac_cv_search_acl_get_file
=no
25547 rm conftest.
$ac_ext
25548 LIBS
=$ac_func_search_save_LIBS
25550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_acl_get_file" >&5
25551 $as_echo "$ac_cv_search_acl_get_file" >&6; }
25552 ac_res
=$ac_cv_search_acl_get_file
25553 if test "$ac_res" != no
; then :
25554 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
25555 if test "$ac_cv_search_acl_get_file" != "none required"; then
25556 LIB_ACL
=$ac_cv_search_acl_get_file
25558 for ac_func
in acl_get_file acl_get_fd acl_set_file acl_set_fd \
25559 acl_free acl_from_mode acl_from_text \
25560 acl_delete_def_file acl_extended_file \
25561 acl_delete_fd_np acl_delete_file_np \
25562 acl_copy_ext_native acl_create_entry_np \
25563 acl_to_short_text acl_free_text
25565 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25566 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
25567 eval as_val
=\$
$as_ac_var
25568 if test "x$as_val" = x
""yes; then :
25569 cat >>confdefs.h
<<_ACEOF
25570 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25576 # If the acl_get_file bug is detected, don't enable the ACL support.
25578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working acl_get_file" >&5
25579 $as_echo_n "checking for working acl_get_file... " >&6; }
25580 if test "${gl_cv_func_working_acl_get_file+set}" = set; then :
25581 $as_echo_n "(cached) " >&6
25583 gl_cv_func_working_acl_get_file
=no
25584 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25585 /* end confdefs.h. */
25586 #include <sys/types.h>
25587 #include <sys/acl.h>
25593 if (!acl_get_file (".", ACL_TYPE_ACCESS) && errno == ENOENT)
25601 if ac_fn_c_try_link
"$LINENO"; then :
25602 if test $cross_compiling = yes; then
25603 gl_cv_func_working_acl_get_file
="guessing yes"
25604 elif .
/conftest
$ac_exeext; then
25605 gl_cv_func_working_acl_get_file
=yes
25608 rm -f core conftest.err conftest.
$ac_objext \
25609 conftest
$ac_exeext conftest.
$ac_ext
25611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_acl_get_file" >&5
25612 $as_echo "$gl_cv_func_working_acl_get_file" >&6; }
25613 if test "$gl_cv_func_working_acl_get_file" != no
; then :
25617 if test $use_acl = 1; then
25618 for ac_header
in acl
/libacl.h
25620 ac_fn_c_check_header_mongrel
"$LINENO" "acl/libacl.h" "ac_cv_header_acl_libacl_h" "$ac_includes_default"
25621 if test "x$ac_cv_header_acl_libacl_h" = x
""yes; then :
25622 cat >>confdefs.h
<<_ACEOF
25623 #define HAVE_ACL_LIBACL_H 1
25638 for ac_func
in acl_entries
25640 ac_fn_c_check_func
"$LINENO" "acl_entries" "ac_cv_func_acl_entries"
25641 if test "x$ac_cv_func_acl_entries" = x
""yes; then :
25642 cat >>confdefs.h
<<_ACEOF
25643 #define HAVE_ACL_ENTRIES 1
25648 gl_LIBOBJS
="$gl_LIBOBJS $ac_func.$ac_objext"
25654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_FIRST_ENTRY" >&5
25655 $as_echo_n "checking for ACL_FIRST_ENTRY... " >&6; }
25656 if test "${gl_cv_acl_ACL_FIRST_ENTRY+set}" = set; then :
25657 $as_echo_n "(cached) " >&6
25659 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25660 /* end confdefs.h. */
25661 #include <sys/types.h>
25662 #include <sys/acl.h>
25663 int type = ACL_FIRST_ENTRY;
25672 if ac_fn_c_try_compile
"$LINENO"; then :
25673 gl_cv_acl_ACL_FIRST_ENTRY
=yes
25675 gl_cv_acl_ACL_FIRST_ENTRY
=no
25677 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_acl_ACL_FIRST_ENTRY" >&5
25680 $as_echo "$gl_cv_acl_ACL_FIRST_ENTRY" >&6; }
25681 if test $gl_cv_acl_ACL_FIRST_ENTRY = yes; then
25683 $as_echo "#define HAVE_ACL_FIRST_ENTRY 1" >>confdefs.h
25686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_EXTENDED" >&5
25687 $as_echo_n "checking for ACL_TYPE_EXTENDED... " >&6; }
25688 if test "${gl_cv_acl_ACL_TYPE_EXTENDED+set}" = set; then :
25689 $as_echo_n "(cached) " >&6
25691 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25692 /* end confdefs.h. */
25693 #include <sys/types.h>
25694 #include <sys/acl.h>
25695 int type = ACL_TYPE_EXTENDED;
25704 if ac_fn_c_try_compile
"$LINENO"; then :
25705 gl_cv_acl_ACL_TYPE_EXTENDED
=yes
25707 gl_cv_acl_ACL_TYPE_EXTENDED
=no
25709 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_acl_ACL_TYPE_EXTENDED" >&5
25712 $as_echo "$gl_cv_acl_ACL_TYPE_EXTENDED" >&6; }
25713 if test $gl_cv_acl_ACL_TYPE_EXTENDED = yes; then
25715 $as_echo "#define HAVE_ACL_TYPE_EXTENDED 1" >>confdefs.h
25726 if test $use_acl = 0; then
25727 for ac_func
in facl
25729 ac_fn_c_check_func
"$LINENO" "facl" "ac_cv_func_facl"
25730 if test "x$ac_cv_func_facl" = x
""yes; then :
25731 cat >>confdefs.h
<<_ACEOF
25732 #define HAVE_FACL 1
25738 if test $ac_cv_func_facl = yes; then
25739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing acl_trivial" >&5
25740 $as_echo_n "checking for library containing acl_trivial... " >&6; }
25741 if test "${ac_cv_search_acl_trivial+set}" = set; then :
25742 $as_echo_n "(cached) " >&6
25744 ac_func_search_save_LIBS
=$LIBS
25745 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25746 /* end confdefs.h. */
25748 /* Override any GCC internal prototype to avoid an error.
25749 Use char because int might match the return type of a GCC
25750 builtin and then its argument prototype would still apply. */
25754 char acl_trivial ();
25758 return acl_trivial ();
25763 for ac_lib
in '' sec
; do
25764 if test -z "$ac_lib"; then
25765 ac_res
="none required"
25768 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
25770 if ac_fn_c_try_link
"$LINENO"; then :
25771 ac_cv_search_acl_trivial
=$ac_res
25773 rm -f core conftest.err conftest.
$ac_objext \
25775 if test "${ac_cv_search_acl_trivial+set}" = set; then :
25779 if test "${ac_cv_search_acl_trivial+set}" = set; then :
25782 ac_cv_search_acl_trivial
=no
25784 rm conftest.
$ac_ext
25785 LIBS
=$ac_func_search_save_LIBS
25787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_acl_trivial" >&5
25788 $as_echo "$ac_cv_search_acl_trivial" >&6; }
25789 ac_res
=$ac_cv_search_acl_trivial
25790 if test "$ac_res" != no
; then :
25791 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
25792 if test "$ac_cv_search_acl_trivial" != "none required"; then
25793 LIB_ACL
=$ac_cv_search_acl_trivial
25798 for ac_func
in acl_trivial
25800 ac_fn_c_check_func
"$LINENO" "acl_trivial" "ac_cv_func_acl_trivial"
25801 if test "x$ac_cv_func_acl_trivial" = x
""yes; then :
25802 cat >>confdefs.h
<<_ACEOF
25803 #define HAVE_ACL_TRIVIAL 1
25813 if test $use_acl = 0; then
25814 for ac_func
in getacl
25816 ac_fn_c_check_func
"$LINENO" "getacl" "ac_cv_func_getacl"
25817 if test "x$ac_cv_func_getacl" = x
""yes; then :
25818 cat >>confdefs.h
<<_ACEOF
25819 #define HAVE_GETACL 1
25825 if test $ac_cv_func_getacl = yes; then
25828 for ac_header
in aclv.h
25830 ac_fn_c_check_header_compile
"$LINENO" "aclv.h" "ac_cv_header_aclv_h" "#include <sys/types.h>
25832 if test "x$ac_cv_header_aclv_h" = x
""yes; then :
25833 cat >>confdefs.h
<<_ACEOF
25834 #define HAVE_ACLV_H 1
25843 if test $use_acl = 0; then
25844 for ac_func
in aclx_get
25846 ac_fn_c_check_func
"$LINENO" "aclx_get" "ac_cv_func_aclx_get"
25847 if test "x$ac_cv_func_aclx_get" = x
""yes; then :
25848 cat >>confdefs.h
<<_ACEOF
25849 #define HAVE_ACLX_GET 1
25855 if test $ac_cv_func_aclx_get = yes; then
25860 if test $use_acl = 0 ||
test "$ac_cv_func_aclx_get" = yes; then
25861 for ac_func
in statacl
25863 ac_fn_c_check_func
"$LINENO" "statacl" "ac_cv_func_statacl"
25864 if test "x$ac_cv_func_statacl" = x
""yes; then :
25865 cat >>confdefs.h
<<_ACEOF
25866 #define HAVE_STATACL 1
25872 if test $ac_cv_func_statacl = yes; then
25877 if test $use_acl = 0; then
25878 for ac_func
in aclsort
25880 ac_fn_c_check_func
"$LINENO" "aclsort" "ac_cv_func_aclsort"
25881 if test "x$ac_cv_func_aclsort" = x
""yes; then :
25882 cat >>confdefs.h
<<_ACEOF
25883 #define HAVE_ACLSORT 1
25889 if test $ac_cv_func_aclsort = yes; then
25896 if test "x$enable_acl$use_acl" = "xyes0"; then
25897 as_fn_error
"ACLs enabled but support not detected" "$LINENO" 5
25898 elif test "x$enable_acl$use_acl" = "xauto0"; then
25899 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libacl development library was not found or not usable." >&5
25900 $as_echo "$as_me: WARNING: libacl development library was not found or not usable." >&2;}
25901 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: emacs will be built without ACL support." >&5
25902 $as_echo "$as_me: WARNING: emacs will be built without ACL support." >&2;}
25907 cat >>confdefs.h
<<_ACEOF
25908 #define USE_ACL $use_acl
25917 if test $ac_cv_func_readlink = no
; then
25920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
25921 $as_echo_n "checking whether readlink signature is correct... " >&6; }
25922 if test "${gl_cv_decl_readlink_works+set}" = set; then :
25923 $as_echo_n "(cached) " >&6
25925 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25926 /* end confdefs.h. */
25927 #include <unistd.h>
25928 /* Cause compilation failure if original declaration has wrong type. */
25929 ssize_t readlink (const char *, char *, size_t);
25938 if ac_fn_c_try_compile
"$LINENO"; then :
25939 gl_cv_decl_readlink_works
=yes
25941 gl_cv_decl_readlink_works
=no
25943 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
25946 $as_echo "$gl_cv_decl_readlink_works" >&6; }
25947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
25948 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
25949 if test "${gl_cv_func_readlink_works+set}" = set; then :
25950 $as_echo_n "(cached) " >&6
25952 # We have readlink, so assume ln -s works.
25953 ln -s conftest.no-such conftest.link
25954 ln -s conftest.link conftest.lnk2
25955 if test "$cross_compiling" = yes; then :
25957 # Guess yes on glibc systems.
25958 *-gnu*) gl_cv_func_readlink_works
="guessing yes" ;;
25959 # If we don't know, assume the worst.
25960 *) gl_cv_func_readlink_works
="guessing no" ;;
25964 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25965 /* end confdefs.h. */
25966 #include <unistd.h>
25972 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
25977 if ac_fn_c_try_run
"$LINENO"; then :
25978 gl_cv_func_readlink_works
=yes
25980 gl_cv_func_readlink_works
=no
25982 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
25983 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
25986 rm -f conftest.link conftest.lnk2
25988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
25989 $as_echo "$gl_cv_func_readlink_works" >&6; }
25990 case "$gl_cv_func_readlink_works" in
25992 if test "$gl_cv_decl_readlink_works" != yes; then
25998 $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
26005 if test $HAVE_READLINK = 0 ||
test $REPLACE_READLINK = 1; then
26014 gl_LIBOBJS
="$gl_LIBOBJS readlink.$ac_objext"
26035 if test $ac_cv_func_readlinkat = no
; then
26039 if test $HAVE_READLINKAT = 0; then
26048 gl_LIBOBJS
="$gl_LIBOBJS readlinkat.$ac_objext"
26056 GNULIB_READLINKAT
=1
26063 for ac_func
in sig2str
26065 ac_fn_c_check_func
"$LINENO" "sig2str" "ac_cv_func_sig2str"
26066 if test "x$ac_cv_func_sig2str" = x
""yes; then :
26067 cat >>confdefs.h
<<_ACEOF
26068 #define HAVE_SIG2STR 1
26075 if test $ac_cv_func_sig2str = no
; then
26084 gl_LIBOBJS
="$gl_LIBOBJS sig2str.$ac_objext"
26101 if test $gl_cv_have_include_next = yes; then
26102 gl_cv_next_signal_h
='<'signal.h
'>'
26104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
26105 $as_echo_n "checking absolute name of <signal.h>... " >&6; }
26106 if test "${gl_cv_next_signal_h+set}" = set; then :
26107 $as_echo_n "(cached) " >&6
26110 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26111 /* end confdefs.h. */
26112 #include <signal.h>
26116 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
26117 *) gl_absname_cpp
="$ac_cpp" ;;
26122 gl_dirsep_regex
='[/\\]'
26125 gl_dirsep_regex
='\/'
26128 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
26130 gl_header_literal_regex
=`echo 'signal.h' \
26131 | sed -e "$gl_make_literal_regex_sed"`
26132 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
26133 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
26138 gl_cv_next_signal_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
26139 sed -n "$gl_absolute_header_sed"`'"'
26143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
26144 $as_echo "$gl_cv_next_signal_h" >&6; }
26146 NEXT_SIGNAL_H
=$gl_cv_next_signal_h
26148 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
26149 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
26150 gl_next_as_first_directive
='<'signal.h
'>'
26152 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
26153 gl_next_as_first_directive
=$gl_cv_next_signal_h
26155 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
=$gl_next_as_first_directive
26161 # AIX declares sig_atomic_t to already include volatile, and C89 compilers
26162 # then choke on 'volatile sig_atomic_t'. C99 requires that it compile.
26163 ac_fn_c_check_type
"$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
26164 #include <signal.h>
26167 if test "x$ac_cv_type_volatile_sig_atomic_t" = x
""yes; then :
26170 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
=0
26179 ac_fn_c_check_type
"$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
26180 #include <signal.h>
26183 if test "x$ac_cv_type_sighandler_t" = x
""yes; then :
26186 HAVE_SIGHANDLER_T
=0
26192 ac_fn_c_check_type
"$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
26193 /* <sys/types.h> is not needed according to POSIX, but the
26194 <sys/socket.h> in i386-unknown-freebsd4.10 and
26195 powerpc-apple-darwin5.5 required it. */
26196 #include <sys/types.h>
26197 #if HAVE_SYS_SOCKET_H
26198 # include <sys/socket.h>
26199 #elif HAVE_WS2TCPIP_H
26200 # include <ws2tcpip.h>
26204 if test "x$ac_cv_type_socklen_t" = x
""yes; then :
26207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
26208 $as_echo_n "checking for socklen_t equivalent... " >&6; }
26209 if test "${gl_cv_socklen_t_equiv+set}" = set; then :
26210 $as_echo_n "(cached) " >&6
26212 # Systems have either "struct sockaddr *" or
26213 # "void *" as the second argument to getpeername
26214 gl_cv_socklen_t_equiv
=
26215 for arg2
in "struct sockaddr" void
; do
26216 for t
in int size_t
"unsigned int" "long int" "unsigned long int"; do
26217 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26218 /* end confdefs.h. */
26219 #include <sys/types.h>
26220 #include <sys/socket.h>
26222 int getpeername (int, $arg2 *, $t *);
26227 getpeername (0, 0, &len);
26232 if ac_fn_c_try_compile
"$LINENO"; then :
26233 gl_cv_socklen_t_equiv
="$t"
26235 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26236 test "$gl_cv_socklen_t_equiv" != "" && break
26238 test "$gl_cv_socklen_t_equiv" != "" && break
26243 if test "$gl_cv_socklen_t_equiv" = ""; then
26244 as_fn_error
"Cannot find a type to use in place of socklen_t" "$LINENO" 5
26246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
26247 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
26249 cat >>confdefs.h
<<_ACEOF
26250 #define socklen_t $gl_cv_socklen_t_equiv
26256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
26257 $as_echo_n "checking for ssize_t... " >&6; }
26258 if test "${gt_cv_ssize_t+set}" = set; then :
26259 $as_echo_n "(cached) " >&6
26261 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26262 /* end confdefs.h. */
26263 #include <sys/types.h>
26267 int x = sizeof (ssize_t *) + sizeof (ssize_t);
26273 if ac_fn_c_try_compile
"$LINENO"; then :
26278 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
26281 $as_echo "$gt_cv_ssize_t" >&6; }
26282 if test $gt_cv_ssize_t = no
; then
26284 $as_echo "#define ssize_t int" >>confdefs.h
26292 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>
26293 #include <sys/stat.h>
26295 if test "x$ac_cv_member_struct_stat_st_atim_tv_nsec" = x
""yes; then :
26297 cat >>confdefs.h
<<_ACEOF
26298 #define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1
26301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat.st_atim is of type struct timespec" >&5
26302 $as_echo_n "checking whether struct stat.st_atim is of type struct timespec... " >&6; }
26303 if test "${ac_cv_typeof_struct_stat_st_atim_is_struct_timespec+set}" = set; then :
26304 $as_echo_n "(cached) " >&6
26306 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26307 /* end confdefs.h. */
26309 #include <sys/types.h>
26310 #include <sys/stat.h>
26311 #if HAVE_SYS_TIME_H
26312 # include <sys/time.h>
26315 struct timespec ts;
26328 if ac_fn_c_try_compile
"$LINENO"; then :
26329 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec
=yes
26331 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec
=no
26333 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&5
26336 $as_echo "$ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&6; }
26337 if test $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec = yes; then
26339 $as_echo "#define TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC 1" >>confdefs.h
26343 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>
26344 #include <sys/stat.h>
26346 if test "x$ac_cv_member_struct_stat_st_atimespec_tv_nsec" = x
""yes; then :
26348 cat >>confdefs.h
<<_ACEOF
26349 #define HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC 1
26354 ac_fn_c_check_member
"$LINENO" "struct stat" "st_atimensec" "ac_cv_member_struct_stat_st_atimensec" "#include <sys/types.h>
26355 #include <sys/stat.h>
26357 if test "x$ac_cv_member_struct_stat_st_atimensec" = x
""yes; then :
26359 cat >>confdefs.h
<<_ACEOF
26360 #define HAVE_STRUCT_STAT_ST_ATIMENSEC 1
26365 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>
26366 #include <sys/stat.h>
26368 if test "x$ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" = x
""yes; then :
26370 cat >>confdefs.h
<<_ACEOF
26371 #define HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC 1
26387 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>
26388 #include <sys/stat.h>
26390 if test "x$ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" = x
""yes; then :
26392 cat >>confdefs.h
<<_ACEOF
26393 #define HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC 1
26398 ac_fn_c_check_member
"$LINENO" "struct stat" "st_birthtimensec" "ac_cv_member_struct_stat_st_birthtimensec" "#include <sys/types.h>
26399 #include <sys/stat.h>
26401 if test "x$ac_cv_member_struct_stat_st_birthtimensec" = x
""yes; then :
26403 cat >>confdefs.h
<<_ACEOF
26404 #define HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC 1
26409 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>
26410 #include <sys/stat.h>
26412 if test "x$ac_cv_member_struct_stat_st_birthtim_tv_nsec" = x
""yes; then :
26414 cat >>confdefs.h
<<_ACEOF
26415 #define HAVE_STRUCT_STAT_ST_BIRTHTIM_TV_NSEC 1
26427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdalign.h" >&5
26428 $as_echo_n "checking for working stdalign.h... " >&6; }
26429 if test "${gl_cv_header_working_stdalign_h+set}" = set; then :
26430 $as_echo_n "(cached) " >&6
26432 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26433 /* end confdefs.h. */
26434 #include <stdalign.h>
26435 #include <stddef.h>
26437 /* Test that alignof yields a result consistent with offsetof.
26438 This catches GCC bug 52023
26439 <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023>. */
26441 template <class t> struct alignof_helper { char a; t b; };
26442 # define ao(type) offsetof (alignof_helper<type>, b)
26444 # define ao(type) offsetof (struct { char a; type b; }, b)
26446 char test_double[ao (double) % _Alignof (double) == 0 ? 1 : -1];
26447 char test_long[ao (long int) % _Alignof (long int) == 0 ? 1 : -1];
26448 char test_alignof[alignof (double) == _Alignof (double) ? 1 : -1];
26450 /* Test _Alignas only on platforms where gnulib can help. */
26452 ((defined __cplusplus && 201103 <= __cplusplus) \
26453 || __GNUC__ || __IBMC__ || __IBMCPP__ || __ICC \
26454 || 0x5110 <= __SUNPRO_C || 1300 <= _MSC_VER)
26455 struct alignas_test { char c; char alignas (8) alignas_8; };
26456 char test_alignas[offsetof (struct alignas_test, alignas_8) == 8
26468 if ac_fn_c_try_compile
"$LINENO"; then :
26469 gl_cv_header_working_stdalign_h
=yes
26471 gl_cv_header_working_stdalign_h
=no
26473 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdalign_h" >&5
26476 $as_echo "$gl_cv_header_working_stdalign_h" >&6; }
26478 if test $gl_cv_header_working_stdalign_h = yes; then
26481 STDALIGN_H
='stdalign.h'
26485 if test -n "$STDALIGN_H"; then
26486 GL_GENERATE_STDALIGN_H_TRUE
=
26487 GL_GENERATE_STDALIGN_H_FALSE
='#'
26489 GL_GENERATE_STDALIGN_H_TRUE
='#'
26490 GL_GENERATE_STDALIGN_H_FALSE
=
26496 NEXT_STDARG_H
='<stdarg.h>'
26497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
26498 $as_echo_n "checking for va_copy... " >&6; }
26499 if test "${gl_cv_func_va_copy+set}" = set; then :
26500 $as_echo_n "(cached) " >&6
26503 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26504 /* end confdefs.h. */
26505 #include <stdarg.h>
26511 void (*func) (va_list, va_list) = va_copy;
26518 if ac_fn_c_try_compile
"$LINENO"; then :
26519 gl_cv_func_va_copy
=yes
26521 gl_cv_func_va_copy
=no
26523 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_va_copy" >&5
26527 $as_echo "$gl_cv_func_va_copy" >&6; }
26528 if test $gl_cv_func_va_copy = no
; then
26529 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26530 /* end confdefs.h. */
26531 #if defined _AIX && !defined __GNUC__
26536 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26537 $EGREP "vaccine" >/dev
/null
2>&1; then :
26544 if test $gl_aixcc = yes; then
26554 if test $gl_cv_have_include_next = yes; then
26555 gl_cv_next_stdarg_h
='<'stdarg.h
'>'
26557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdarg.h>" >&5
26558 $as_echo_n "checking absolute name of <stdarg.h>... " >&6; }
26559 if test "${gl_cv_next_stdarg_h+set}" = set; then :
26560 $as_echo_n "(cached) " >&6
26563 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26564 /* end confdefs.h. */
26565 #include <stdarg.h>
26569 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
26570 *) gl_absname_cpp
="$ac_cpp" ;;
26575 gl_dirsep_regex
='[/\\]'
26578 gl_dirsep_regex
='\/'
26581 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
26583 gl_header_literal_regex
=`echo 'stdarg.h' \
26584 | sed -e "$gl_make_literal_regex_sed"`
26585 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
26586 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
26591 gl_cv_next_stdarg_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
26592 sed -n "$gl_absolute_header_sed"`'"'
26596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdarg_h" >&5
26597 $as_echo "$gl_cv_next_stdarg_h" >&6; }
26599 NEXT_STDARG_H
=$gl_cv_next_stdarg_h
26601 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
26602 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
26603 gl_next_as_first_directive
='<'stdarg.h
'>'
26605 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
26606 gl_next_as_first_directive
=$gl_cv_next_stdarg_h
26608 NEXT_AS_FIRST_DIRECTIVE_STDARG_H
=$gl_next_as_first_directive
26613 if test "$gl_cv_next_stdarg_h" = '""'; then
26614 gl_cv_next_stdarg_h
='"///usr/include/stdarg.h"'
26615 NEXT_STDARG_H
="$gl_cv_next_stdarg_h"
26619 saved_as_echo_n
="$as_echo_n"
26621 if test "${gl_cv_func___va_copy+set}" = set; then :
26622 $as_echo_n "(cached) " >&6
26625 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26626 /* end confdefs.h. */
26627 #include <stdarg.h>
26640 if ac_fn_c_try_compile
"$LINENO"; then :
26641 gl_cv_func___va_copy
=yes
26643 gl_cv_func___va_copy
=no
26645 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26648 as_echo_n
="$saved_as_echo_n"
26650 if test $gl_cv_func___va_copy = yes; then
26652 $as_echo "#define va_copy __va_copy" >>confdefs.h
26657 $as_echo "#define va_copy gl_va_copy" >>confdefs.h
26663 if test -n "$STDARG_H"; then
26664 GL_GENERATE_STDARG_H_TRUE
=
26665 GL_GENERATE_STDARG_H_FALSE
='#'
26667 GL_GENERATE_STDARG_H_TRUE
='#'
26668 GL_GENERATE_STDARG_H_FALSE
=
26676 # Define two additional variables used in the Makefile substitution.
26678 if test "$ac_cv_header_stdbool_h" = yes; then
26681 STDBOOL_H
='stdbool.h'
26684 if test -n "$STDBOOL_H"; then
26685 GL_GENERATE_STDBOOL_H_TRUE
=
26686 GL_GENERATE_STDBOOL_H_FALSE
='#'
26688 GL_GENERATE_STDBOOL_H_TRUE
='#'
26689 GL_GENERATE_STDBOOL_H_FALSE
=
26693 if test "$ac_cv_type__Bool" = yes; then
26704 if test $gt_cv_c_wchar_t = no
; then
26708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
26709 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
26710 if test "${gl_cv_decl_null_works+set}" = set; then :
26711 $as_echo_n "(cached) " >&6
26713 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26714 /* end confdefs.h. */
26715 #include <stddef.h>
26716 int test[2 * (sizeof NULL == sizeof (void *)) -1];
26726 if ac_fn_c_try_compile
"$LINENO"; then :
26727 gl_cv_decl_null_works
=yes
26729 gl_cv_decl_null_works
=no
26731 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
26734 $as_echo "$gl_cv_decl_null_works" >&6; }
26735 if test $gl_cv_decl_null_works = no
; then
26740 if test -n "$STDDEF_H"; then
26741 GL_GENERATE_STDDEF_H_TRUE
=
26742 GL_GENERATE_STDDEF_H_FALSE
='#'
26744 GL_GENERATE_STDDEF_H_TRUE
='#'
26745 GL_GENERATE_STDDEF_H_FALSE
=
26748 if test -n "$STDDEF_H"; then
26757 if test $gl_cv_have_include_next = yes; then
26758 gl_cv_next_stddef_h
='<'stddef.h
'>'
26760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
26761 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
26762 if test "${gl_cv_next_stddef_h+set}" = set; then :
26763 $as_echo_n "(cached) " >&6
26766 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26767 /* end confdefs.h. */
26768 #include <stddef.h>
26772 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
26773 *) gl_absname_cpp
="$ac_cpp" ;;
26778 gl_dirsep_regex
='[/\\]'
26781 gl_dirsep_regex
='\/'
26784 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
26786 gl_header_literal_regex
=`echo 'stddef.h' \
26787 | sed -e "$gl_make_literal_regex_sed"`
26788 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
26789 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
26794 gl_cv_next_stddef_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
26795 sed -n "$gl_absolute_header_sed"`'"'
26799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
26800 $as_echo "$gl_cv_next_stddef_h" >&6; }
26802 NEXT_STDDEF_H
=$gl_cv_next_stddef_h
26804 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
26805 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
26806 gl_next_as_first_directive
='<'stddef.h
'>'
26808 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
26809 gl_next_as_first_directive
=$gl_cv_next_stddef_h
26811 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
=$gl_next_as_first_directive
26829 if test $gl_cv_have_include_next = yes; then
26830 gl_cv_next_stdio_h
='<'stdio.h
'>'
26832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
26833 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
26834 if test "${gl_cv_next_stdio_h+set}" = set; then :
26835 $as_echo_n "(cached) " >&6
26838 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26839 /* end confdefs.h. */
26844 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
26845 *) gl_absname_cpp
="$ac_cpp" ;;
26850 gl_dirsep_regex
='[/\\]'
26853 gl_dirsep_regex
='\/'
26856 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
26858 gl_header_literal_regex
=`echo 'stdio.h' \
26859 | sed -e "$gl_make_literal_regex_sed"`
26860 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
26861 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
26866 gl_cv_next_stdio_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
26867 sed -n "$gl_absolute_header_sed"`'"'
26871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
26872 $as_echo "$gl_cv_next_stdio_h" >&6; }
26874 NEXT_STDIO_H
=$gl_cv_next_stdio_h
26876 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
26877 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
26878 gl_next_as_first_directive
='<'stdio.h
'>'
26880 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
26881 gl_next_as_first_directive
=$gl_cv_next_stdio_h
26883 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
=$gl_next_as_first_directive
26892 cat >>confdefs.h
<<_ACEOF
26893 #define GNULIB_FSCANF 1
26900 cat >>confdefs.h
<<_ACEOF
26901 #define GNULIB_SCANF 1
26937 if test $gl_cv_have_include_next = yes; then
26938 gl_cv_next_stdlib_h
='<'stdlib.h
'>'
26940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
26941 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
26942 if test "${gl_cv_next_stdlib_h+set}" = set; then :
26943 $as_echo_n "(cached) " >&6
26946 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26947 /* end confdefs.h. */
26948 #include <stdlib.h>
26952 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
26953 *) gl_absname_cpp
="$ac_cpp" ;;
26958 gl_dirsep_regex
='[/\\]'
26961 gl_dirsep_regex
='\/'
26964 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
26966 gl_header_literal_regex
=`echo 'stdlib.h' \
26967 | sed -e "$gl_make_literal_regex_sed"`
26968 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
26969 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
26974 gl_cv_next_stdlib_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
26975 sed -n "$gl_absolute_header_sed"`'"'
26979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
26980 $as_echo "$gl_cv_next_stdlib_h" >&6; }
26982 NEXT_STDLIB_H
=$gl_cv_next_stdlib_h
26984 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
26985 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
26986 gl_next_as_first_directive
='<'stdlib.h
'>'
26988 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
26989 gl_next_as_first_directive
=$gl_cv_next_stdlib_h
26991 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
=$gl_next_as_first_directive
27001 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
27009 $as_echo "#define my_strftime nstrftime" >>confdefs.h
27021 if test "$ac_cv_have_decl_strtoimax" != yes; then
27022 HAVE_DECL_STRTOIMAX
=0
27025 if test "$ac_cv_func_strtoimax" = yes; then
27027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtoimax works" >&5
27028 $as_echo_n "checking whether strtoimax works... " >&6; }
27029 if test "${gl_cv_func_strtoimax+set}" = set; then :
27030 $as_echo_n "(cached) " >&6
27032 if test "$cross_compiling" = yes; then :
27034 # Guess no on AIX 5.
27035 aix5
*) gl_cv_func_strtoimax
="guessing no" ;;
27036 # Guess yes otherwise.
27037 *) gl_cv_func_strtoimax
="guessing yes" ;;
27041 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27042 /* end confdefs.h. */
27045 #include <string.h>
27046 #include <inttypes.h>
27049 if (sizeof (intmax_t) > sizeof (int))
27051 const char *s = "4294967295";
27055 res = strtoimax (s, &p, 10);
27056 if (p != s + strlen (s))
27060 if (res != (intmax_t) 65535 * (intmax_t) 65537)
27065 const char *s = "2147483647";
27069 res = strtoimax (s, &p, 10);
27070 if (p != s + strlen (s))
27074 if (res != 2147483647)
27081 if ac_fn_c_try_run
"$LINENO"; then :
27082 gl_cv_func_strtoimax
=yes
27084 gl_cv_func_strtoimax
=no
27086 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
27087 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
27092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strtoimax" >&5
27093 $as_echo "$gl_cv_func_strtoimax" >&6; }
27094 case "$gl_cv_func_strtoimax" in
27095 *no
) REPLACE_STRTOIMAX
=1 ;;
27098 if test "$ac_cv_have_decl_strtoimax" = yes; then
27099 # HP-UX 11.11 has "#define strtoimax(...) ..." but no function.
27100 REPLACE_STRTOIMAX
=1
27105 if test $HAVE_DECL_STRTOIMAX = 0 ||
test $REPLACE_STRTOIMAX = 1; then
27114 gl_LIBOBJS
="$gl_LIBOBJS strtoimax.$ac_objext"
27117 ac_fn_c_check_decl
"$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
27118 if test "x$ac_cv_have_decl_strtoll" = x
""yes; then :
27124 cat >>confdefs.h
<<_ACEOF
27125 #define HAVE_DECL_STRTOLL $ac_have_decl
27146 if test "$ac_cv_have_decl_strtoumax" = yes; then
27147 if test "$ac_cv_func_strtoumax" != yes; then
27148 # HP-UX 11.11 has "#define strtoimax(...) ..." but no function.
27149 REPLACE_STRTOUMAX
=1
27152 HAVE_DECL_STRTOUMAX
=0
27155 if test $HAVE_DECL_STRTOUMAX = 0 ||
test $REPLACE_STRTOUMAX = 1; then
27164 gl_LIBOBJS
="$gl_LIBOBJS strtoumax.$ac_objext"
27167 ac_fn_c_check_decl
"$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
27168 if test "x$ac_cv_have_decl_strtoull" = x
""yes; then :
27174 cat >>confdefs.h
<<_ACEOF
27175 #define HAVE_DECL_STRTOULL $ac_have_decl
27194 if test $ac_cv_func_symlink = no
; then
27197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symlink handles trailing slash correctly" >&5
27198 $as_echo_n "checking whether symlink handles trailing slash correctly... " >&6; }
27199 if test "${gl_cv_func_symlink_works+set}" = set; then :
27200 $as_echo_n "(cached) " >&6
27202 if test "$cross_compiling" = yes; then :
27204 # Guess yes on glibc systems.
27205 *-gnu*) gl_cv_func_symlink_works
="guessing yes" ;;
27206 # If we don't know, assume the worst.
27207 *) gl_cv_func_symlink_works
="guessing no" ;;
27211 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27212 /* end confdefs.h. */
27213 #include <unistd.h>
27219 if (!symlink ("a", "conftest.link/"))
27221 if (symlink ("conftest.f", "conftest.lnk2"))
27223 else if (!symlink ("a", "conftest.lnk2/"))
27231 if ac_fn_c_try_run
"$LINENO"; then :
27232 gl_cv_func_symlink_works
=yes
27234 gl_cv_func_symlink_works
=no
27236 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
27237 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
27240 rm -f conftest.f conftest.link conftest.lnk2
27242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_symlink_works" >&5
27243 $as_echo "$gl_cv_func_symlink_works" >&6; }
27244 case "$gl_cv_func_symlink_works" in
27252 if test $HAVE_SYMLINK = 0 ||
test $REPLACE_SYMLINK = 1; then
27261 gl_LIBOBJS
="$gl_LIBOBJS symlink.$ac_objext"
27278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/select.h> is self-contained" >&5
27279 $as_echo_n "checking whether <sys/select.h> is self-contained... " >&6; }
27280 if test "${gl_cv_header_sys_select_h_selfcontained+set}" = set; then :
27281 $as_echo_n "(cached) " >&6
27284 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27285 /* end confdefs.h. */
27286 #include <sys/select.h>
27295 if ac_fn_c_try_compile
"$LINENO"; then :
27296 gl_cv_header_sys_select_h_selfcontained
=yes
27298 gl_cv_header_sys_select_h_selfcontained
=no
27300 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27301 if test $gl_cv_header_sys_select_h_selfcontained = yes; then
27302 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27303 /* end confdefs.h. */
27304 #include <sys/select.h>
27308 int memset; int bzero;
27314 if ac_fn_c_try_compile
"$LINENO"; then :
27315 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27316 /* end confdefs.h. */
27317 #include <sys/select.h>
27323 #define memset nonexistent_memset
27328 void *memset (void *, int, unsigned long);
27330 #define bzero nonexistent_bzero
27335 void bzero (void *, unsigned long);
27344 if ac_fn_c_try_link
"$LINENO"; then :
27347 gl_cv_header_sys_select_h_selfcontained
=no
27349 rm -f core conftest.err conftest.
$ac_objext \
27350 conftest
$ac_exeext conftest.
$ac_ext
27353 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_selfcontained" >&5
27358 $as_echo "$gl_cv_header_sys_select_h_selfcontained" >&6; }
27368 if test $gl_cv_have_include_next = yes; then
27369 gl_cv_next_sys_select_h
='<'sys
/select.h
'>'
27371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/select.h>" >&5
27372 $as_echo_n "checking absolute name of <sys/select.h>... " >&6; }
27373 if test "${gl_cv_next_sys_select_h+set}" = set; then :
27374 $as_echo_n "(cached) " >&6
27377 if test $ac_cv_header_sys_select_h = yes; then
27380 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27381 /* end confdefs.h. */
27382 #include <sys/select.h>
27386 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
27387 *) gl_absname_cpp
="$ac_cpp" ;;
27392 gl_dirsep_regex
='[/\\]'
27395 gl_dirsep_regex
='\/'
27398 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
27400 gl_header_literal_regex
=`echo 'sys/select.h' \
27401 | sed -e "$gl_make_literal_regex_sed"`
27402 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
27403 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
27408 gl_cv_next_sys_select_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
27409 sed -n "$gl_absolute_header_sed"`'"'
27411 gl_cv_next_sys_select_h
='<'sys
/select.h
'>'
27416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_select_h" >&5
27417 $as_echo "$gl_cv_next_sys_select_h" >&6; }
27419 NEXT_SYS_SELECT_H
=$gl_cv_next_sys_select_h
27421 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
27422 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
27423 gl_next_as_first_directive
='<'sys
/select.h
'>'
27425 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
27426 gl_next_as_first_directive
=$gl_cv_next_sys_select_h
27428 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H
=$gl_next_as_first_directive
27433 if test $ac_cv_header_sys_select_h = yes; then
27434 HAVE_SYS_SELECT_H
=1
27436 HAVE_SYS_SELECT_H
=0
27443 if test $ac_cv_header_sys_socket_h != yes; then
27444 for ac_header
in winsock2.h
27446 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
27447 if test "x$ac_cv_header_winsock2_h" = x
""yes; then :
27448 cat >>confdefs.h
<<_ACEOF
27449 #define HAVE_WINSOCK2_H 1
27457 if test "$ac_cv_header_winsock2_h" = yes; then
27459 UNISTD_H_HAVE_WINSOCK2_H
=1
27460 SYS_IOCTL_H_HAVE_WINSOCK2_H
=1
27484 if test $gl_cv_have_include_next = yes; then
27485 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
27487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
27488 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
27489 if test "${gl_cv_next_sys_stat_h+set}" = set; then :
27490 $as_echo_n "(cached) " >&6
27493 if test $ac_cv_header_sys_stat_h = yes; then
27496 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27497 /* end confdefs.h. */
27498 #include <sys/stat.h>
27502 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
27503 *) gl_absname_cpp
="$ac_cpp" ;;
27508 gl_dirsep_regex
='[/\\]'
27511 gl_dirsep_regex
='\/'
27514 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
27516 gl_header_literal_regex
=`echo 'sys/stat.h' \
27517 | sed -e "$gl_make_literal_regex_sed"`
27518 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
27519 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
27524 gl_cv_next_sys_stat_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
27525 sed -n "$gl_absolute_header_sed"`'"'
27527 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
27532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
27533 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
27535 NEXT_SYS_STAT_H
=$gl_cv_next_sys_stat_h
27537 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
27538 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
27539 gl_next_as_first_directive
='<'sys
/stat.h
'>'
27541 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
27542 gl_next_as_first_directive
=$gl_cv_next_sys_stat_h
27544 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
=$gl_next_as_first_directive
27556 if test $WINDOWS_64_BIT_ST_SIZE = 1; then
27558 $as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h
27562 ac_fn_c_check_type
"$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
27563 #include <sys/stat.h>
27565 if test "x$ac_cv_type_nlink_t" = x
""yes; then :
27569 $as_echo "#define nlink_t int" >>confdefs.h
27590 ac_fn_c_check_decl
"$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "#include <time.h>
27592 if test "x$ac_cv_have_decl_localtime_r" = x
""yes; then :
27598 cat >>confdefs.h
<<_ACEOF
27599 #define HAVE_DECL_LOCALTIME_R $ac_have_decl
27602 if test $ac_cv_have_decl_localtime_r = no
; then
27603 HAVE_DECL_LOCALTIME_R
=0
27607 if test $ac_cv_func_localtime_r = yes; then
27609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
27610 $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
27611 if test "${gl_cv_time_r_posix+set}" = set; then :
27612 $as_echo_n "(cached) " >&6
27614 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27615 /* end confdefs.h. */
27620 /* We don't need to append 'restrict's to the argument types,
27621 even though the POSIX signature has the 'restrict's,
27622 since C99 says they can't affect type compatibility. */
27623 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
27625 /* Check the return type is a pointer.
27626 On HP-UX 10 it is 'int'. */
27627 *localtime_r (0, 0);
27633 if ac_fn_c_try_compile
"$LINENO"; then :
27634 gl_cv_time_r_posix
=yes
27636 gl_cv_time_r_posix
=no
27638 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
27642 $as_echo "$gl_cv_time_r_posix" >&6; }
27643 if test $gl_cv_time_r_posix = yes; then
27644 REPLACE_LOCALTIME_R
=0
27646 REPLACE_LOCALTIME_R
=1
27652 if test $HAVE_LOCALTIME_R = 0 ||
test $REPLACE_LOCALTIME_R = 1; then
27661 gl_LIBOBJS
="$gl_LIBOBJS time_r.$ac_objext"
27685 gl_saved_libs
=$LIBS
27686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing timer_settime" >&5
27687 $as_echo_n "checking for library containing timer_settime... " >&6; }
27688 if test "${ac_cv_search_timer_settime+set}" = set; then :
27689 $as_echo_n "(cached) " >&6
27691 ac_func_search_save_LIBS
=$LIBS
27692 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27693 /* end confdefs.h. */
27695 /* Override any GCC internal prototype to avoid an error.
27696 Use char because int might match the return type of a GCC
27697 builtin and then its argument prototype would still apply. */
27701 char timer_settime ();
27705 return timer_settime ();
27710 for ac_lib
in '' rt posix4
; do
27711 if test -z "$ac_lib"; then
27712 ac_res
="none required"
27715 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
27717 if ac_fn_c_try_link
"$LINENO"; then :
27718 ac_cv_search_timer_settime
=$ac_res
27720 rm -f core conftest.err conftest.
$ac_objext \
27722 if test "${ac_cv_search_timer_settime+set}" = set; then :
27726 if test "${ac_cv_search_timer_settime+set}" = set; then :
27729 ac_cv_search_timer_settime
=no
27731 rm conftest.
$ac_ext
27732 LIBS
=$ac_func_search_save_LIBS
27734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_timer_settime" >&5
27735 $as_echo "$ac_cv_search_timer_settime" >&6; }
27736 ac_res
=$ac_cv_search_timer_settime
27737 if test "$ac_res" != no
; then :
27738 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
27739 test "$ac_cv_search_timer_settime" = "none required" ||
27740 LIB_TIMER_TIME
=$ac_cv_search_timer_settime
27743 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27744 /* end confdefs.h. */
27746 #include <features.h>
27747 #ifdef __GNU_LIBRARY__
27748 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2) || (__GLIBC__ > 2)) \
27749 && !defined __UCLIBC__
27750 Thread emulation available
27755 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27756 $EGREP "Thread" >/dev
/null
2>&1; then :
27757 LIB_TIMER_TIME
="$LIB_TIMER_TIME $LIBMULTITHREAD"
27761 for ac_func
in timer_settime
27763 ac_fn_c_check_func
"$LINENO" "timer_settime" "ac_cv_func_timer_settime"
27764 if test "x$ac_cv_func_timer_settime" = x
""yes; then :
27765 cat >>confdefs.h
<<_ACEOF
27766 #define HAVE_TIMER_SETTIME 1
27772 LIBS
=$gl_saved_libs
27787 if test $gl_cv_have_include_next = yes; then
27788 gl_cv_next_unistd_h
='<'unistd.h
'>'
27790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
27791 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
27792 if test "${gl_cv_next_unistd_h+set}" = set; then :
27793 $as_echo_n "(cached) " >&6
27796 if test $ac_cv_header_unistd_h = yes; then
27799 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27800 /* end confdefs.h. */
27801 #include <unistd.h>
27805 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
27806 *) gl_absname_cpp
="$ac_cpp" ;;
27811 gl_dirsep_regex
='[/\\]'
27814 gl_dirsep_regex
='\/'
27817 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
27819 gl_header_literal_regex
=`echo 'unistd.h' \
27820 | sed -e "$gl_make_literal_regex_sed"`
27821 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
27822 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
27827 gl_cv_next_unistd_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
27828 sed -n "$gl_absolute_header_sed"`'"'
27830 gl_cv_next_unistd_h
='<'unistd.h
'>'
27835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
27836 $as_echo "$gl_cv_next_unistd_h" >&6; }
27838 NEXT_UNISTD_H
=$gl_cv_next_unistd_h
27840 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
27841 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
27842 gl_next_as_first_directive
='<'unistd.h
'>'
27844 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
27845 gl_next_as_first_directive
=$gl_cv_next_unistd_h
27847 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
=$gl_next_as_first_directive
27852 if test $ac_cv_header_unistd_h = yes; then
27868 if test $ac_cv_have_decl_unsetenv = no
; then
27869 HAVE_DECL_UNSETENV
=0
27871 for ac_func
in unsetenv
27873 ac_fn_c_check_func
"$LINENO" "unsetenv" "ac_cv_func_unsetenv"
27874 if test "x$ac_cv_func_unsetenv" = x
""yes; then :
27875 cat >>confdefs.h
<<_ACEOF
27876 #define HAVE_UNSETENV 1
27882 if test $ac_cv_func_unsetenv = no
; then
27886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsetenv() return type" >&5
27887 $as_echo_n "checking for unsetenv() return type... " >&6; }
27888 if test "${gt_cv_func_unsetenv_ret+set}" = set; then :
27889 $as_echo_n "(cached) " >&6
27891 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27892 /* end confdefs.h. */
27895 #define _BSD 1 /* unhide unsetenv declaration in OSF/1 5.1 <stdlib.h> */
27896 #include <stdlib.h>
27901 int unsetenv (const char *name);
27911 if ac_fn_c_try_compile
"$LINENO"; then :
27912 gt_cv_func_unsetenv_ret
='int'
27914 gt_cv_func_unsetenv_ret
='void'
27916 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_unsetenv_ret" >&5
27919 $as_echo "$gt_cv_func_unsetenv_ret" >&6; }
27920 if test $gt_cv_func_unsetenv_ret = 'void'; then
27922 $as_echo "#define VOID_UNSETENV 1" >>confdefs.h
27927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether unsetenv obeys POSIX" >&5
27928 $as_echo_n "checking whether unsetenv obeys POSIX... " >&6; }
27929 if test "${gl_cv_func_unsetenv_works+set}" = set; then :
27930 $as_echo_n "(cached) " >&6
27932 if test "$cross_compiling" = yes; then :
27934 # Guess yes on glibc systems.
27935 *-gnu*) gl_cv_func_unsetenv_works
="guessing yes" ;;
27936 # If we don't know, assume the worst.
27937 *) gl_cv_func_unsetenv_works
="guessing no" ;;
27941 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27942 /* end confdefs.h. */
27944 #include <stdlib.h>
27946 extern char **environ;
27952 char entry1[] = "a=1";
27953 char entry2[] = "b=2";
27954 char *env[] = { entry1, entry2, NULL };
27955 if (putenv ((char *) "a=1")) return 1;
27956 if (putenv (entry2)) return 2;
27959 if (getenv ("a")) return 3;
27960 if (!unsetenv ("") || errno != EINVAL) return 4;
27963 if (!getenv ("a")) return 5;
27966 if (getenv ("a")) return 6;
27972 if ac_fn_c_try_run
"$LINENO"; then :
27973 gl_cv_func_unsetenv_works
=yes
27975 gl_cv_func_unsetenv_works
=no
27977 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
27978 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
27982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_unsetenv_works" >&5
27983 $as_echo "$gl_cv_func_unsetenv_works" >&6; }
27984 case "$gl_cv_func_unsetenv_works" in
27992 if test $HAVE_UNSETENV = 0 ||
test $REPLACE_UNSETENV = 1; then
28001 gl_LIBOBJS
="$gl_LIBOBJS unsetenv.$ac_objext"
28025 if test $ac_cv_func_futimens = no
&& test $ac_cv_func_futimesat = yes; then
28026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether futimesat handles NULL file" >&5
28027 $as_echo_n "checking whether futimesat handles NULL file... " >&6; }
28028 if test "${gl_cv_func_futimesat_works+set}" = set; then :
28029 $as_echo_n "(cached) " >&6
28031 touch conftest.
file
28032 if test "$cross_compiling" = yes; then :
28034 # Guess yes on glibc systems.
28035 *-gnu*) gl_cv_func_futimesat_works
="guessing yes" ;;
28036 # If we don't know, assume the worst.
28037 *) gl_cv_func_futimesat_works
="guessing no" ;;
28041 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28042 /* end confdefs.h. */
28044 #include <stddef.h>
28045 #include <sys/times.h>
28051 int fd = open ("conftest.file", O_RDWR);
28052 if (fd < 0) return 1;
28053 if (futimesat (fd, NULL, NULL)) return 2;
28059 if ac_fn_c_try_run
"$LINENO"; then :
28060 gl_cv_func_futimesat_works
=yes
28062 gl_cv_func_futimesat_works
=no
28064 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
28065 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
28068 rm -f conftest.
file
28070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_futimesat_works" >&5
28071 $as_echo "$gl_cv_func_futimesat_works" >&6; }
28072 case "$gl_cv_func_futimesat_works" in
28076 $as_echo "#define FUTIMESAT_NULL_BUG 1" >>confdefs.h
28082 gl_gnulib_enabled_260941c0e5dc67ec9e87d1fb321c300b
=false
28083 gl_gnulib_enabled_dosname
=false
28084 gl_gnulib_enabled_euidaccess
=false
28085 gl_gnulib_enabled_getdtablesize
=false
28086 gl_gnulib_enabled_getgroups
=false
28087 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36
=false
28088 gl_gnulib_enabled_a9786850e999ae65a836a6041e8e5ed1
=false
28089 gl_gnulib_enabled_03e0aaad4cb89ca757653bd367a6ccb7
=false
28090 gl_gnulib_enabled_pathmax
=false
28091 gl_gnulib_enabled_6099e9737f757db36c47fa9d9f02e88c
=false
28092 gl_gnulib_enabled_secure_getenv
=false
28093 gl_gnulib_enabled_stat
=false
28094 gl_gnulib_enabled_strtoll
=false
28095 gl_gnulib_enabled_strtoull
=false
28096 gl_gnulib_enabled_tempname
=false
28097 gl_gnulib_enabled_682e609604ccaac6be382e4ee3a4eaec
=false
28098 func_gl_gnulib_m4code_260941c0e5dc67ec9e87d1fb321c300b
()
28100 if ! $gl_gnulib_enabled_260941c0e5dc67ec9e87d1fb321c300b; then
28109 gl_LIBOBJS
="$gl_LIBOBJS openat-proc.$ac_objext"
28111 gl_gnulib_enabled_260941c0e5dc67ec9e87d1fb321c300b
=true
28114 func_gl_gnulib_m4code_dosname
()
28116 if ! $gl_gnulib_enabled_dosname; then
28117 gl_gnulib_enabled_dosname
=true
28120 func_gl_gnulib_m4code_euidaccess
()
28122 if ! $gl_gnulib_enabled_euidaccess; then
28128 for ac_func
in euidaccess
28130 ac_fn_c_check_func
"$LINENO" "euidaccess" "ac_cv_func_euidaccess"
28131 if test "x$ac_cv_func_euidaccess" = x
""yes; then :
28132 cat >>confdefs.h
<<_ACEOF
28133 #define HAVE_EUIDACCESS 1
28139 if test $ac_cv_func_euidaccess = no
; then
28143 if test $HAVE_EUIDACCESS = 0; then
28152 gl_LIBOBJS
="$gl_LIBOBJS euidaccess.$ac_objext"
28156 for ac_header
in libgen.h
28158 ac_fn_c_check_header_mongrel
"$LINENO" "libgen.h" "ac_cv_header_libgen_h" "$ac_includes_default"
28159 if test "x$ac_cv_header_libgen_h" = x
""yes; then :
28160 cat >>confdefs.h
<<_ACEOF
28161 #define HAVE_LIBGEN_H 1
28169 ac_fn_c_check_func
"$LINENO" "getgroups" "ac_cv_func_getgroups"
28170 if test "x$ac_cv_func_getgroups" = x
""yes; then :
28175 # If we don't yet have getgroups, see if it's in -lbsd.
28176 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
28178 if test $ac_cv_func_getgroups = no
; then
28179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getgroups in -lbsd" >&5
28180 $as_echo_n "checking for getgroups in -lbsd... " >&6; }
28181 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then :
28182 $as_echo_n "(cached) " >&6
28184 ac_check_lib_save_LIBS
=$LIBS
28186 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28187 /* end confdefs.h. */
28189 /* Override any GCC internal prototype to avoid an error.
28190 Use char because int might match the return type of a GCC
28191 builtin and then its argument prototype would still apply. */
28199 return getgroups ();
28204 if ac_fn_c_try_link
"$LINENO"; then :
28205 ac_cv_lib_bsd_getgroups
=yes
28207 ac_cv_lib_bsd_getgroups
=no
28209 rm -f core conftest.err conftest.
$ac_objext \
28210 conftest
$ac_exeext conftest.
$ac_ext
28211 LIBS
=$ac_check_lib_save_LIBS
28213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_getgroups" >&5
28214 $as_echo "$ac_cv_lib_bsd_getgroups" >&6; }
28215 if test "x$ac_cv_lib_bsd_getgroups" = x
""yes; then :
28216 GETGROUPS_LIB
=-lbsd
28221 # Run the program to test the functionality of the system-supplied
28222 # getgroups function only if there is such a function.
28223 if test $ac_cv_func_getgroups = yes; then
28224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getgroups" >&5
28225 $as_echo_n "checking for working getgroups... " >&6; }
28226 if test "${ac_cv_func_getgroups_works+set}" = set; then :
28227 $as_echo_n "(cached) " >&6
28229 if test "$cross_compiling" = yes; then :
28230 case "$host_os" in # ((
28231 # Guess yes on glibc systems.
28232 *-gnu*) ac_cv_func_getgroups_works
="guessing yes" ;;
28233 # If we don't know, assume the worst.
28234 *) ac_cv_func_getgroups_works
="guessing no" ;;
28238 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28239 /* end confdefs.h. */
28240 $ac_includes_default
28244 /* On Ultrix 4.3, getgroups (0, 0) always fails. */
28245 return getgroups (0, 0) == -1;
28251 if ac_fn_c_try_run
"$LINENO"; then :
28252 ac_cv_func_getgroups_works
=yes
28254 ac_cv_func_getgroups_works
=no
28256 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
28257 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
28262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getgroups_works" >&5
28263 $as_echo "$ac_cv_func_getgroups_works" >&6; }
28265 ac_cv_func_getgroups_works
=no
28267 case "$ac_cv_func_getgroups_works" in
28270 $as_echo "#define HAVE_GETGROUPS 1" >>confdefs.h
28277 # Solaris 9 and 10 need -lgen to get the eaccess function.
28278 # Save and restore LIBS so -lgen isn't added to it. Otherwise, *all*
28279 # programs in the package would end up linked with that potentially-shared
28280 # library, inducing unnecessary run-time overhead.
28283 gl_saved_libs
=$LIBS
28284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing eaccess" >&5
28285 $as_echo_n "checking for library containing eaccess... " >&6; }
28286 if test "${ac_cv_search_eaccess+set}" = set; then :
28287 $as_echo_n "(cached) " >&6
28289 ac_func_search_save_LIBS
=$LIBS
28290 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28291 /* end confdefs.h. */
28293 /* Override any GCC internal prototype to avoid an error.
28294 Use char because int might match the return type of a GCC
28295 builtin and then its argument prototype would still apply. */
28308 for ac_lib
in '' gen
; do
28309 if test -z "$ac_lib"; then
28310 ac_res
="none required"
28313 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
28315 if ac_fn_c_try_link
"$LINENO"; then :
28316 ac_cv_search_eaccess
=$ac_res
28318 rm -f core conftest.err conftest.
$ac_objext \
28320 if test "${ac_cv_search_eaccess+set}" = set; then :
28324 if test "${ac_cv_search_eaccess+set}" = set; then :
28327 ac_cv_search_eaccess
=no
28329 rm conftest.
$ac_ext
28330 LIBS
=$ac_func_search_save_LIBS
28332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_eaccess" >&5
28333 $as_echo "$ac_cv_search_eaccess" >&6; }
28334 ac_res
=$ac_cv_search_eaccess
28335 if test "$ac_res" != no
; then :
28336 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
28337 test "$ac_cv_search_eaccess" = "none required" ||
28338 LIB_EACCESS
=$ac_cv_search_eaccess
28341 for ac_func
in eaccess
28343 ac_fn_c_check_func
"$LINENO" "eaccess" "ac_cv_func_eaccess"
28344 if test "x$ac_cv_func_eaccess" = x
""yes; then :
28345 cat >>confdefs.h
<<_ACEOF
28346 #define HAVE_EACCESS 1
28352 LIBS
=$gl_saved_libs
28360 GNULIB_EUIDACCESS
=1
28366 gl_gnulib_enabled_euidaccess
=true
28367 if test $HAVE_EUIDACCESS = 0; then
28368 func_gl_gnulib_m4code_a9786850e999ae65a836a6041e8e5ed1
28370 func_gl_gnulib_m4code_6099e9737f757db36c47fa9d9f02e88c
28371 if test $HAVE_EUIDACCESS = 0; then
28372 func_gl_gnulib_m4code_stat
28376 func_gl_gnulib_m4code_getdtablesize
()
28378 if ! $gl_gnulib_enabled_getdtablesize; then
28383 if test $ac_cv_func_getdtablesize = yes; then
28384 # Cygwin 1.7.25 automatically increases the RLIMIT_NOFILE soft limit
28385 # up to an unchangeable hard limit; all other platforms correctly
28386 # require setrlimit before getdtablesize() can report a larger value.
28387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getdtablesize works" >&5
28388 $as_echo_n "checking whether getdtablesize works... " >&6; }
28389 if test "${gl_cv_func_getdtablesize_works+set}" = set; then :
28390 $as_echo_n "(cached) " >&6
28392 if test "$cross_compiling" = yes; then :
28394 cygwin
*) # on cygwin 1.5.25, getdtablesize() automatically grows
28395 gl_cv_func_getdtablesize_works
="guessing no" ;;
28396 *) gl_cv_func_getdtablesize_works
="guessing yes" ;;
28399 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28400 /* end confdefs.h. */
28402 #include <unistd.h>
28406 int size = getdtablesize();
28407 if (dup2 (0, getdtablesize()) != -1)
28409 if (size != getdtablesize())
28416 if ac_fn_c_try_run
"$LINENO"; then :
28417 gl_cv_func_getdtablesize_works
=yes
28419 gl_cv_func_getdtablesize_works
=no
28421 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
28422 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
28427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getdtablesize_works" >&5
28428 $as_echo "$gl_cv_func_getdtablesize_works" >&6; }
28429 case "$gl_cv_func_getdtablesize_works" in
28431 *) REPLACE_GETDTABLESIZE
=1 ;;
28434 HAVE_GETDTABLESIZE
=0
28437 if test $HAVE_GETDTABLESIZE = 0 ||
test $REPLACE_GETDTABLESIZE = 1; then
28446 gl_LIBOBJS
="$gl_LIBOBJS getdtablesize.$ac_objext"
28455 GNULIB_GETDTABLESIZE
=1
28461 gl_gnulib_enabled_getdtablesize
=true
28464 func_gl_gnulib_m4code_getgroups
()
28466 if ! $gl_gnulib_enabled_getgroups; then
28472 ac_fn_c_check_func
"$LINENO" "getgroups" "ac_cv_func_getgroups"
28473 if test "x$ac_cv_func_getgroups" = x
""yes; then :
28478 # If we don't yet have getgroups, see if it's in -lbsd.
28479 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
28481 if test $ac_cv_func_getgroups = no
; then
28482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getgroups in -lbsd" >&5
28483 $as_echo_n "checking for getgroups in -lbsd... " >&6; }
28484 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then :
28485 $as_echo_n "(cached) " >&6
28487 ac_check_lib_save_LIBS
=$LIBS
28489 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28490 /* end confdefs.h. */
28492 /* Override any GCC internal prototype to avoid an error.
28493 Use char because int might match the return type of a GCC
28494 builtin and then its argument prototype would still apply. */
28502 return getgroups ();
28507 if ac_fn_c_try_link
"$LINENO"; then :
28508 ac_cv_lib_bsd_getgroups
=yes
28510 ac_cv_lib_bsd_getgroups
=no
28512 rm -f core conftest.err conftest.
$ac_objext \
28513 conftest
$ac_exeext conftest.
$ac_ext
28514 LIBS
=$ac_check_lib_save_LIBS
28516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_getgroups" >&5
28517 $as_echo "$ac_cv_lib_bsd_getgroups" >&6; }
28518 if test "x$ac_cv_lib_bsd_getgroups" = x
""yes; then :
28519 GETGROUPS_LIB
=-lbsd
28524 # Run the program to test the functionality of the system-supplied
28525 # getgroups function only if there is such a function.
28526 if test $ac_cv_func_getgroups = yes; then
28527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getgroups" >&5
28528 $as_echo_n "checking for working getgroups... " >&6; }
28529 if test "${ac_cv_func_getgroups_works+set}" = set; then :
28530 $as_echo_n "(cached) " >&6
28532 if test "$cross_compiling" = yes; then :
28533 case "$host_os" in # ((
28534 # Guess yes on glibc systems.
28535 *-gnu*) ac_cv_func_getgroups_works
="guessing yes" ;;
28536 # If we don't know, assume the worst.
28537 *) ac_cv_func_getgroups_works
="guessing no" ;;
28541 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28542 /* end confdefs.h. */
28543 $ac_includes_default
28547 /* On Ultrix 4.3, getgroups (0, 0) always fails. */
28548 return getgroups (0, 0) == -1;
28554 if ac_fn_c_try_run
"$LINENO"; then :
28555 ac_cv_func_getgroups_works
=yes
28557 ac_cv_func_getgroups_works
=no
28559 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
28560 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
28565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getgroups_works" >&5
28566 $as_echo "$ac_cv_func_getgroups_works" >&6; }
28568 ac_cv_func_getgroups_works
=no
28570 case "$ac_cv_func_getgroups_works" in
28573 $as_echo "#define HAVE_GETGROUPS 1" >>confdefs.h
28579 if test $ac_cv_func_getgroups != yes; then
28582 if test "$ac_cv_type_getgroups" != gid_t \
28583 ||
{ case "$ac_cv_func_getgroups_works" in
28588 REPLACE_GETGROUPS
=1
28590 $as_echo "#define GETGROUPS_ZERO_BUG 1" >>confdefs.h
28593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getgroups handles negative values" >&5
28594 $as_echo_n "checking whether getgroups handles negative values... " >&6; }
28595 if test "${gl_cv_func_getgroups_works+set}" = set; then :
28596 $as_echo_n "(cached) " >&6
28598 if test "$cross_compiling" = yes; then :
28600 # Guess yes on glibc systems.
28601 *-gnu*) gl_cv_func_getgroups_works
="guessing yes" ;;
28602 # If we don't know, assume the worst.
28603 *) gl_cv_func_getgroups_works
="guessing no" ;;
28607 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28608 /* end confdefs.h. */
28609 $ac_includes_default
28613 int size = getgroups (0, 0);
28614 gid_t *list = malloc (size * sizeof *list);
28615 return getgroups (-1, list) != -1;
28620 if ac_fn_c_try_run
"$LINENO"; then :
28621 gl_cv_func_getgroups_works
=yes
28623 gl_cv_func_getgroups_works
=no
28625 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
28626 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
28630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getgroups_works" >&5
28631 $as_echo "$gl_cv_func_getgroups_works" >&6; }
28632 case "$gl_cv_func_getgroups_works" in
28634 *) REPLACE_GETGROUPS
=1 ;;
28638 test -n "$GETGROUPS_LIB" && LIBS
="$GETGROUPS_LIB $LIBS"
28640 if test $HAVE_GETGROUPS = 0 ||
test $REPLACE_GETGROUPS = 1; then
28649 gl_LIBOBJS
="$gl_LIBOBJS getgroups.$ac_objext"
28663 gl_gnulib_enabled_getgroups
=true
28666 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36
()
28668 if ! $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
28671 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36
=true
28674 func_gl_gnulib_m4code_a9786850e999ae65a836a6041e8e5ed1
()
28676 if ! $gl_gnulib_enabled_a9786850e999ae65a836a6041e8e5ed1; then
28682 ac_fn_c_check_func
"$LINENO" "group_member" "ac_cv_func_group_member"
28683 if test "x$ac_cv_func_group_member" = x
""yes; then :
28687 HAVE_GROUP_MEMBER
=0
28692 if test $HAVE_GROUP_MEMBER = 0; then
28701 gl_LIBOBJS
="$gl_LIBOBJS group-member.$ac_objext"
28712 GNULIB_GROUP_MEMBER
=1
28718 gl_gnulib_enabled_a9786850e999ae65a836a6041e8e5ed1
=true
28719 if test $HAVE_GROUP_MEMBER = 0; then
28720 func_gl_gnulib_m4code_getgroups
28722 if test $HAVE_GROUP_MEMBER = 0; then
28723 func_gl_gnulib_m4code_682e609604ccaac6be382e4ee3a4eaec
28727 func_gl_gnulib_m4code_03e0aaad4cb89ca757653bd367a6ccb7
()
28729 if ! $gl_gnulib_enabled_03e0aaad4cb89ca757653bd367a6ccb7; then
28730 gl_gnulib_enabled_03e0aaad4cb89ca757653bd367a6ccb7
=true
28733 func_gl_gnulib_m4code_pathmax
()
28735 if ! $gl_gnulib_enabled_pathmax; then
28739 gl_gnulib_enabled_pathmax
=true
28742 func_gl_gnulib_m4code_6099e9737f757db36c47fa9d9f02e88c
()
28744 if ! $gl_gnulib_enabled_6099e9737f757db36c47fa9d9f02e88c; then
28745 gl_gnulib_enabled_6099e9737f757db36c47fa9d9f02e88c
=true
28748 func_gl_gnulib_m4code_secure_getenv
()
28750 if ! $gl_gnulib_enabled_secure_getenv; then
28756 if test $ac_cv_func_secure_getenv = no
; then
28757 HAVE_SECURE_GETENV
=0
28760 if test $HAVE_SECURE_GETENV = 0; then
28769 gl_LIBOBJS
="$gl_LIBOBJS secure_getenv.$ac_objext"
28772 for ac_func
in __secure_getenv
28774 ac_fn_c_check_func
"$LINENO" "__secure_getenv" "ac_cv_func___secure_getenv"
28775 if test "x$ac_cv_func___secure_getenv" = x
""yes; then :
28776 cat >>confdefs.h
<<_ACEOF
28777 #define HAVE___SECURE_GETENV 1
28783 if test $ac_cv_func___secure_getenv = no
; then
28784 for ac_func
in issetugid
28786 ac_fn_c_check_func
"$LINENO" "issetugid" "ac_cv_func_issetugid"
28787 if test "x$ac_cv_func_issetugid" = x
""yes; then :
28788 cat >>confdefs.h
<<_ACEOF
28789 #define HAVE_ISSETUGID 1
28803 GNULIB_SECURE_GETENV
=1
28809 gl_gnulib_enabled_secure_getenv
=true
28812 func_gl_gnulib_m4code_stat
()
28814 if ! $gl_gnulib_enabled_stat; then
28818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
28819 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
28820 if test "${gl_cv_func_stat_dir_slash+set}" = set; then :
28821 $as_echo_n "(cached) " >&6
28823 if test "$cross_compiling" = yes; then :
28825 mingw
*) gl_cv_func_stat_dir_slash
="guessing no";;
28826 *) gl_cv_func_stat_dir_slash
="guessing yes";;
28829 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28830 /* end confdefs.h. */
28831 #include <sys/stat.h>
28836 struct stat st; return stat (".", &st) != stat ("./", &st);
28841 if ac_fn_c_try_run
"$LINENO"; then :
28842 gl_cv_func_stat_dir_slash
=yes
28844 gl_cv_func_stat_dir_slash
=no
28846 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
28847 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
28851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
28852 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
28853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
28854 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
28855 if test "${gl_cv_func_stat_file_slash+set}" = set; then :
28856 $as_echo_n "(cached) " >&6
28859 # Assume that if we have lstat, we can also check symlinks.
28860 if test $ac_cv_func_lstat = yes; then
28861 ln -s conftest.tmp conftest.lnk
28863 if test "$cross_compiling" = yes; then :
28865 # Guess yes on glibc systems.
28866 *-gnu*) gl_cv_func_stat_file_slash
="guessing yes" ;;
28867 # If we don't know, assume the worst.
28868 *) gl_cv_func_stat_file_slash
="guessing no" ;;
28872 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28873 /* end confdefs.h. */
28874 #include <sys/stat.h>
28881 if (!stat ("conftest.tmp/", &st))
28884 if (!stat ("conftest.lnk/", &st))
28893 if ac_fn_c_try_run
"$LINENO"; then :
28894 gl_cv_func_stat_file_slash
=yes
28896 gl_cv_func_stat_file_slash
=no
28898 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
28899 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
28902 rm -f conftest.tmp conftest.lnk
28904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
28905 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
28906 case $gl_cv_func_stat_dir_slash in
28907 *no
) REPLACE_STAT
=1
28909 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
28912 case $gl_cv_func_stat_file_slash in
28913 *no
) REPLACE_STAT
=1
28915 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
28919 if test $REPLACE_STAT = 1; then
28928 gl_LIBOBJS
="$gl_LIBOBJS stat.$ac_objext"
28943 gl_gnulib_enabled_stat
=true
28944 if test $REPLACE_STAT = 1; then
28945 func_gl_gnulib_m4code_dosname
28947 if test $REPLACE_STAT = 1; then
28948 func_gl_gnulib_m4code_pathmax
28952 func_gl_gnulib_m4code_strtoll
()
28954 if ! $gl_gnulib_enabled_strtoll; then
28958 if test "$ac_cv_type_long_long_int" = yes; then
28959 for ac_func
in strtoll
28961 ac_fn_c_check_func
"$LINENO" "strtoll" "ac_cv_func_strtoll"
28962 if test "x$ac_cv_func_strtoll" = x
""yes; then :
28963 cat >>confdefs.h
<<_ACEOF
28964 #define HAVE_STRTOLL 1
28970 if test $ac_cv_func_strtoll = no
; then
28975 if test $HAVE_STRTOLL = 0; then
28984 gl_LIBOBJS
="$gl_LIBOBJS strtoll.$ac_objext"
29001 gl_gnulib_enabled_strtoll
=true
29004 func_gl_gnulib_m4code_strtoull
()
29006 if ! $gl_gnulib_enabled_strtoull; then
29010 if test "$ac_cv_type_unsigned_long_long_int" = yes; then
29011 for ac_func
in strtoull
29013 ac_fn_c_check_func
"$LINENO" "strtoull" "ac_cv_func_strtoull"
29014 if test "x$ac_cv_func_strtoull" = x
""yes; then :
29015 cat >>confdefs.h
<<_ACEOF
29016 #define HAVE_STRTOULL 1
29022 if test $ac_cv_func_strtoull = no
; then
29027 if test $HAVE_STRTOULL = 0; then
29036 gl_LIBOBJS
="$gl_LIBOBJS strtoull.$ac_objext"
29053 gl_gnulib_enabled_strtoull
=true
29056 func_gl_gnulib_m4code_tempname
()
29058 if ! $gl_gnulib_enabled_tempname; then
29064 gl_gnulib_enabled_tempname
=true
29065 func_gl_gnulib_m4code_secure_getenv
29068 func_gl_gnulib_m4code_682e609604ccaac6be382e4ee3a4eaec
()
29070 if ! $gl_gnulib_enabled_682e609604ccaac6be382e4ee3a4eaec; then
29071 gl_gnulib_enabled_682e609604ccaac6be382e4ee3a4eaec
=true
29074 if test $HAVE_FACCESSAT = 0; then
29075 func_gl_gnulib_m4code_260941c0e5dc67ec9e87d1fb321c300b
29077 if test $HAVE_FACCESSAT = 0; then
29078 func_gl_gnulib_m4code_dosname
29080 if test $HAVE_FACCESSAT = 0; then
29081 func_gl_gnulib_m4code_euidaccess
29083 if test $HAVE_FACCESSAT = 0; then
29084 func_gl_gnulib_m4code_03e0aaad4cb89ca757653bd367a6ccb7
29086 if test $HAVE_FCNTL = 0 ||
test $REPLACE_FCNTL = 1; then
29087 func_gl_gnulib_m4code_getdtablesize
29089 if test $HAVE_FDOPENDIR = 0; then
29090 func_gl_gnulib_m4code_260941c0e5dc67ec9e87d1fb321c300b
29092 if test $HAVE_FSTATAT = 0 ||
test $REPLACE_FSTATAT = 1; then
29093 func_gl_gnulib_m4code_260941c0e5dc67ec9e87d1fb321c300b
29095 if test $HAVE_FSTATAT = 0 ||
test $REPLACE_FSTATAT = 1; then
29096 func_gl_gnulib_m4code_dosname
29098 if test $HAVE_FSTATAT = 0 ||
test $REPLACE_FSTATAT = 1; then
29099 func_gl_gnulib_m4code_03e0aaad4cb89ca757653bd367a6ccb7
29101 if test $REPLACE_GETOPT = 1; then
29102 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36
29104 if test $REPLACE_LSTAT = 1; then
29105 func_gl_gnulib_m4code_dosname
29107 if test $REPLACE_LSTAT = 1; then
29108 func_gl_gnulib_m4code_stat
29110 if test $HAVE_MKOSTEMP = 0; then
29111 func_gl_gnulib_m4code_tempname
29113 if test $HAVE_READLINK = 0 ||
test $REPLACE_READLINK = 1; then
29114 func_gl_gnulib_m4code_stat
29116 if test $HAVE_READLINKAT = 0; then
29117 func_gl_gnulib_m4code_260941c0e5dc67ec9e87d1fb321c300b
29119 if test $HAVE_READLINKAT = 0; then
29120 func_gl_gnulib_m4code_dosname
29122 if test $HAVE_READLINKAT = 0; then
29123 func_gl_gnulib_m4code_03e0aaad4cb89ca757653bd367a6ccb7
29125 if { test $HAVE_DECL_STRTOIMAX = 0 ||
test $REPLACE_STRTOIMAX = 1; } && test $ac_cv_type_long_long_int = yes; then
29126 func_gl_gnulib_m4code_strtoll
29128 if { test $HAVE_DECL_STRTOUMAX = 0 ||
test $REPLACE_STRTOUMAX = 1; } && test $ac_cv_type_unsigned_long_long_int = yes; then
29129 func_gl_gnulib_m4code_strtoull
29132 if $gl_gnulib_enabled_260941c0e5dc67ec9e87d1fb321c300b; then
29133 gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_TRUE
=
29134 gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_FALSE
='#'
29136 gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_TRUE
='#'
29137 gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_FALSE
=
29140 if $gl_gnulib_enabled_dosname; then
29141 gl_GNULIB_ENABLED_dosname_TRUE
=
29142 gl_GNULIB_ENABLED_dosname_FALSE
='#'
29144 gl_GNULIB_ENABLED_dosname_TRUE
='#'
29145 gl_GNULIB_ENABLED_dosname_FALSE
=
29148 if $gl_gnulib_enabled_euidaccess; then
29149 gl_GNULIB_ENABLED_euidaccess_TRUE
=
29150 gl_GNULIB_ENABLED_euidaccess_FALSE
='#'
29152 gl_GNULIB_ENABLED_euidaccess_TRUE
='#'
29153 gl_GNULIB_ENABLED_euidaccess_FALSE
=
29156 if $gl_gnulib_enabled_getdtablesize; then
29157 gl_GNULIB_ENABLED_getdtablesize_TRUE
=
29158 gl_GNULIB_ENABLED_getdtablesize_FALSE
='#'
29160 gl_GNULIB_ENABLED_getdtablesize_TRUE
='#'
29161 gl_GNULIB_ENABLED_getdtablesize_FALSE
=
29164 if $gl_gnulib_enabled_getgroups; then
29165 gl_GNULIB_ENABLED_getgroups_TRUE
=
29166 gl_GNULIB_ENABLED_getgroups_FALSE
='#'
29168 gl_GNULIB_ENABLED_getgroups_TRUE
='#'
29169 gl_GNULIB_ENABLED_getgroups_FALSE
=
29172 if $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
29173 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE
=
29174 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE
='#'
29176 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE
='#'
29177 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE
=
29180 if $gl_gnulib_enabled_a9786850e999ae65a836a6041e8e5ed1; then
29181 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_TRUE
=
29182 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_FALSE
='#'
29184 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_TRUE
='#'
29185 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_FALSE
=
29188 if $gl_gnulib_enabled_03e0aaad4cb89ca757653bd367a6ccb7; then
29189 gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_TRUE
=
29190 gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_FALSE
='#'
29192 gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_TRUE
='#'
29193 gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_FALSE
=
29196 if $gl_gnulib_enabled_pathmax; then
29197 gl_GNULIB_ENABLED_pathmax_TRUE
=
29198 gl_GNULIB_ENABLED_pathmax_FALSE
='#'
29200 gl_GNULIB_ENABLED_pathmax_TRUE
='#'
29201 gl_GNULIB_ENABLED_pathmax_FALSE
=
29204 if $gl_gnulib_enabled_6099e9737f757db36c47fa9d9f02e88c; then
29205 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_TRUE
=
29206 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_FALSE
='#'
29208 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_TRUE
='#'
29209 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_FALSE
=
29212 if $gl_gnulib_enabled_secure_getenv; then
29213 gl_GNULIB_ENABLED_secure_getenv_TRUE
=
29214 gl_GNULIB_ENABLED_secure_getenv_FALSE
='#'
29216 gl_GNULIB_ENABLED_secure_getenv_TRUE
='#'
29217 gl_GNULIB_ENABLED_secure_getenv_FALSE
=
29220 if $gl_gnulib_enabled_stat; then
29221 gl_GNULIB_ENABLED_stat_TRUE
=
29222 gl_GNULIB_ENABLED_stat_FALSE
='#'
29224 gl_GNULIB_ENABLED_stat_TRUE
='#'
29225 gl_GNULIB_ENABLED_stat_FALSE
=
29228 if $gl_gnulib_enabled_strtoll; then
29229 gl_GNULIB_ENABLED_strtoll_TRUE
=
29230 gl_GNULIB_ENABLED_strtoll_FALSE
='#'
29232 gl_GNULIB_ENABLED_strtoll_TRUE
='#'
29233 gl_GNULIB_ENABLED_strtoll_FALSE
=
29236 if $gl_gnulib_enabled_strtoull; then
29237 gl_GNULIB_ENABLED_strtoull_TRUE
=
29238 gl_GNULIB_ENABLED_strtoull_FALSE
='#'
29240 gl_GNULIB_ENABLED_strtoull_TRUE
='#'
29241 gl_GNULIB_ENABLED_strtoull_FALSE
=
29244 if $gl_gnulib_enabled_tempname; then
29245 gl_GNULIB_ENABLED_tempname_TRUE
=
29246 gl_GNULIB_ENABLED_tempname_FALSE
='#'
29248 gl_GNULIB_ENABLED_tempname_TRUE
='#'
29249 gl_GNULIB_ENABLED_tempname_FALSE
=
29252 if $gl_gnulib_enabled_682e609604ccaac6be382e4ee3a4eaec; then
29253 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_TRUE
=
29254 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_FALSE
='#'
29256 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_TRUE
='#'
29257 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_FALSE
=
29260 # End of code from modules
29281 gl_source_base
='tests'
29282 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
29284 gl_module_indicator_condition
=$gltests_WITNESS
29295 LIBGNU_LIBDEPS
="$gl_libdeps"
29297 LIBGNU_LTLIBDEPS
="$gl_ltlibdeps"
29300 CFLAGS
=$SAVE_CFLAGS
29303 if test "${opsys}" = "mingw32"; then
29304 CPPFLAGS
="$CPPFLAGS -DUSE_CRT_DLL=1 -I \${abs_top_srcdir}/nt/inc"
29305 # Remove unneeded switches from the value of CC that goes to Makefiles
29306 CC
=`echo $CC | sed -e "s,$GCC_TEST_OPTIONS,,"`
29310 aix4-2
) LD_SWITCH_SYSTEM_TEMACS
="-Wl,-bnodelcsect" ;;
29313 ## The -headerpad option tells ld (see man page) to leave room at the
29314 ## end of the header for adding load commands. Needed for dumping.
29315 ## 0x690 is the total size of 30 segment load commands (at 56
29316 ## each); under Cocoa 31 commands are required.
29317 if test "$HAVE_NS" = "yes"; then
29318 libs_nsgui
="-framework AppKit"
29319 if test "$NS_IMPL_COCOA" = "yes"; then
29320 libs_nsgui
="$libs_nsgui -framework IOKit"
29322 headerpad_extra
=6C8
29325 headerpad_extra
=690
29327 LD_SWITCH_SYSTEM_TEMACS
="-fno-pie -prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
29329 ## This is here because src/Makefile.in did some extra fiddling around
29330 ## with LD_SWITCH_SYSTEM. It seems cleaner to put this in
29331 ## LD_SWITCH_SYSTEM_TEMACS instead,
29332 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
29333 LD_SWITCH_SYSTEM_TEMACS
="-X $LD_SWITCH_SYSTEM_TEMACS"
29336 ## LD_SWITCH_X_SITE_RPATH is a -rpath option saying where to
29337 ## find X at run-time.
29338 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at the
29339 ## point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_RPATH
29340 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
29341 ## had different values in configure (in ac_link) and src/Makefile.in.
29342 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
29343 gnu
*) LD_SWITCH_SYSTEM_TEMACS
="\$(LD_SWITCH_X_SITE_RPATH)" ;;
29346 ## MinGW64 does not prepend an underscore to symbols, so we must
29347 ## pass a different -entry switch to linker. FIXME: It is better
29348 ## to make the entry points the same by changing unexw32.c.
29349 case "$canonical" in
29350 x86_64-
*-*) LD_SWITCH_SYSTEM_TEMACS
="-Wl,-stack,0x00800000 -Wl,-heap,0x00100000 -Wl,-image-base,0x01000000 -Wl,-entry,_start -Wl,-Map,./temacs.map" ;;
29351 *) LD_SWITCH_SYSTEM_TEMACS
="-Wl,-stack,0x00800000 -Wl,-heap,0x00100000 -Wl,-image-base,0x01000000 -Wl,-entry,__start -Wl,-Map,./temacs.map" ;;
29355 openbsd
) LD_SWITCH_SYSTEM_TEMACS
='-nopie' ;;
29357 *) LD_SWITCH_SYSTEM_TEMACS
= ;;
29360 if test x
$ac_enable_profiling != x
; then
29362 *freebsd | gnu-linux
) ;;
29363 *) LD_SWITCH_SYSTEM_TEMACS
="$LD_SWITCH_SYSTEM_TEMACS -pg" ;;
29367 LD_SWITCH_SYSTEM_TEMACS
="$LDFLAGS_NOCOMBRELOC $LD_SWITCH_SYSTEM_TEMACS"
29371 ## MinGW-specific post-link processing of temacs.
29372 TEMACS_POST_LINK
=":"
29375 if test "${opsys}" = "mingw32"; then
29376 TEMACS_POST_LINK
="\$(MINGW_TEMACS_POST_LINK)"
29377 ADDSECTION
="../nt/addsection\$(EXEEXT)"
29378 ## Preload heap size of temacs.exe in MB.
29379 case "$canonical" in
29380 x86_64-
*-*) EMACS_HEAPSIZE
=42 ;;
29381 *) EMACS_HEAPSIZE
=27 ;;
29389 ## Common for all window systems
29390 if test "$window_system" != "none"; then
29392 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
29394 WINDOW_SYSTEM_OBJ
="fontset.o fringe.o image.o"
29401 #### Report on what we decided to do.
29402 #### Report GTK as a toolkit, even if it doesn't use Xt.
29403 #### It makes printing result more understandable as using GTK sets
29404 #### toolkit_scroll_bars to yes by default.
29405 if test "${HAVE_GTK}" = "yes"; then
29406 USE_X_TOOLKIT
="$USE_GTK_TOOLKIT"
29409 if test $USE_ACL -ne 0; then
29410 acl_summary
="yes $LIB_ACL"
29416 Configured for \`${canonical}'.
29418 Where should the build process find the source code? ${srcdir}
29419 What compiler should emacs be built with? ${CC} ${CFLAGS}
29420 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
29421 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
29422 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
29423 What window system should Emacs use? ${window_system}
29424 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
29426 if test -n "${x_includes}"; then
29427 echo " Where do we find X Windows header files? ${x_includes}"
29429 echo " Where do we find X Windows header files? Standard dirs"
29431 if test -n "${x_libraries}"; then
29432 echo " Where do we find X Windows libraries? ${x_libraries}"
29434 echo " Where do we find X Windows libraries? Standard dirs"
29437 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
29438 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
29439 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
29440 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
29441 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
29442 echo " Does Emacs use -lpng? ${HAVE_PNG}"
29443 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
29444 echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
29446 echo " Does Emacs support sound? ${HAVE_SOUND}"
29448 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
29449 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
29450 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
29451 echo " Does Emacs use GSettings? ${HAVE_GSETTINGS}"
29452 echo " Does Emacs use a file notification library? ${NOTIFY_SUMMARY}"
29453 echo " Does Emacs use access control lists? ${acl_summary}"
29454 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
29455 echo " Does Emacs use -lgnutls? ${HAVE_GNUTLS}"
29456 echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}"
29458 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
29459 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
29460 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
29461 echo " Does Emacs use -lxft? ${HAVE_XFT}"
29462 echo " Does Emacs directly use zlib? ${HAVE_ZLIB}"
29464 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
29467 if test -n "${EMACSDATA}"; then
29468 echo " Environment variable EMACSDATA set to: $EMACSDATA"
29470 if test -n "${EMACSDOC}"; then
29471 echo " Environment variable EMACSDOC set to: $EMACSDOC"
29476 if test "$HAVE_NS" = "yes"; then
29478 echo "You must run \"${MAKE-make} install\" in order to test the built application.
29479 The installed application will go to nextstep/Emacs.app and can be
29480 run or moved from there."
29481 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
29482 echo "The application will be fully self-contained."
29484 echo "The lisp resources for the application will be installed under ${prefix}.
29485 You may need to run \"${MAKE-make} install\" with sudo. The application will fail
29486 to run if these resources are not installed."
29491 if test "${opsys}" = "cygwin"; then
29493 1.5.
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: building Emacs on Cygwin 1.5 is not supported." >&5
29494 $as_echo "$as_me: WARNING: building Emacs on Cygwin 1.5 is not supported." >&2;}
29500 # Remove any trailing slashes in these variables.
29501 test "${prefix}" != NONE
&&
29502 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
29503 test "${exec_prefix}" != NONE
&&
29504 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
29506 if test "$HAVE_NS" = "yes"; then
29507 if test "$NS_IMPL_GNUSTEP" = yes; then
29508 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"
29510 ns_check_file
=Resources
/Info-gnustep.plist
29512 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"
29514 ns_check_file
=Contents
/Info.plist
29519 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"
29521 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"
29524 opt_makefile
=test
/automated
/Makefile
29526 if test -f "$srcdir/$opt_makefile.in"; then
29527 SUBDIR_MAKEFILES
="$SUBDIR_MAKEFILES $opt_makefile"
29528 ac_config_files
="$ac_config_files test/automated/Makefile"
29533 opt_makefile
=admin
/unidata
/Makefile
29535 if test -f "$srcdir/$opt_makefile.in"; then
29536 SUBDIR_MAKEFILES
="$SUBDIR_MAKEFILES $opt_makefile"
29537 ac_config_files
="$ac_config_files admin/unidata/Makefile"
29542 SUBDIR_MAKEFILES_IN
=`echo " ${SUBDIR_MAKEFILES}" | sed -e 's| | $(srcdir)/|g' -e 's|Makefile|Makefile.in|g'`
29546 ac_config_commands
="$ac_config_commands src/epaths.h"
29549 ac_config_commands
="$ac_config_commands src/.gdbinit"
29552 cat >confcache
<<\_ACEOF
29553 # This file is a shell script that caches the results of configure
29554 # tests run on this system so they can be shared between configure
29555 # scripts and configure runs, see configure's option --config-cache.
29556 # It is not useful on other systems. If it contains results you don't
29557 # want to keep, you may remove or edit it.
29559 # config.status only pays attention to the cache file if you give it
29560 # the --recheck option to rerun configure.
29562 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29563 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29564 # following values.
29568 # The following way of writing the cache mishandles newlines in values,
29569 # but we know of no workaround that is simple, portable, and efficient.
29570 # So, we kill variables containing newlines.
29571 # Ultrix sh set writes to stderr and can't be redirected directly,
29572 # and sets the high bit in the cache file unless we assign to the vars.
29574 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
29575 eval ac_val
=\$
$ac_var
29579 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
29580 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
29583 _ | IFS | as_nl
) ;; #(
29584 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
29585 *) { eval $ac_var=; unset $ac_var;} ;;
29591 case $as_nl`(ac_space=' '; set) 2>&1` in #(
29592 *${as_nl}ac_space
=\
*)
29593 # `set' does not quote correctly, so add quotes: double-quote
29594 # substitution turns \\\\ into \\, and sed turns \\ into \.
29597 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29600 # `set' quotes correctly as required by POSIX, so do not add quotes.
29601 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
29610 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29612 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29614 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
29615 if test -w "$cache_file"; then
29616 test "x$cache_file" != "x/dev/null" &&
29617 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
29618 $as_echo "$as_me: updating cache $cache_file" >&6;}
29619 cat confcache
>$cache_file
29621 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
29622 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
29627 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
29628 # Let make expand exec_prefix.
29629 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
29631 DEFS
=-DHAVE_CONFIG_H
29635 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
29636 # 1. Remove the extension, and $U if already installed.
29637 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
29638 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
29639 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
29640 # will be set to the directory where LIBOBJS objects are built.
29641 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
29642 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
29644 LIBOBJS
=$ac_libobjs
29646 LTLIBOBJS
=$ac_ltlibobjs
29649 if test -n "$EXEEXT"; then
29651 am__EXEEXT_FALSE
='#'
29653 am__EXEEXT_TRUE
='#'
29657 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
29658 as_fn_error
"conditional \"AMDEP\" was never defined.
29659 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29661 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
29662 as_fn_error
"conditional \"am__fastdepCC\" was never defined.
29663 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29665 if test -z "${BUILDING_FOR_WINDOWSNT_TRUE}" && test -z "${BUILDING_FOR_WINDOWSNT_FALSE}"; then
29666 as_fn_error
"conditional \"BUILDING_FOR_WINDOWSNT\" was never defined.
29667 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29669 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
29670 as_fn_error
"conditional \"GL_COND_LIBTOOL\" was never defined.
29671 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29673 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
29674 as_fn_error
"conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
29675 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29677 if test -z "${GL_GENERATE_BYTESWAP_H_TRUE}" && test -z "${GL_GENERATE_BYTESWAP_H_FALSE}"; then
29678 as_fn_error
"conditional \"GL_GENERATE_BYTESWAP_H\" was never defined.
29679 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29682 if test -z "${GL_GENERATE_ERRNO_H_TRUE}" && test -z "${GL_GENERATE_ERRNO_H_FALSE}"; then
29683 as_fn_error
"conditional \"GL_GENERATE_ERRNO_H\" was never defined.
29684 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29686 if test -z "${GL_GENERATE_EXECINFO_H_TRUE}" && test -z "${GL_GENERATE_EXECINFO_H_FALSE}"; then
29687 as_fn_error
"conditional \"GL_GENERATE_EXECINFO_H\" was never defined.
29688 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29690 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
29691 as_fn_error
"conditional \"GL_GENERATE_STDINT_H\" was never defined.
29692 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29694 if test -z "${GL_GENERATE_STDALIGN_H_TRUE}" && test -z "${GL_GENERATE_STDALIGN_H_FALSE}"; then
29695 as_fn_error
"conditional \"GL_GENERATE_STDALIGN_H\" was never defined.
29696 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29698 if test -z "${GL_GENERATE_STDARG_H_TRUE}" && test -z "${GL_GENERATE_STDARG_H_FALSE}"; then
29699 as_fn_error
"conditional \"GL_GENERATE_STDARG_H\" was never defined.
29700 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29702 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
29703 as_fn_error
"conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
29704 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29706 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
29707 as_fn_error
"conditional \"GL_GENERATE_STDDEF_H\" was never defined.
29708 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29710 if test -z "${gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_TRUE}" && test -z "${gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_FALSE}"; then
29711 as_fn_error
"conditional \"gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b\" was never defined.
29712 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29714 if test -z "${gl_GNULIB_ENABLED_dosname_TRUE}" && test -z "${gl_GNULIB_ENABLED_dosname_FALSE}"; then
29715 as_fn_error
"conditional \"gl_GNULIB_ENABLED_dosname\" was never defined.
29716 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29718 if test -z "${gl_GNULIB_ENABLED_euidaccess_TRUE}" && test -z "${gl_GNULIB_ENABLED_euidaccess_FALSE}"; then
29719 as_fn_error
"conditional \"gl_GNULIB_ENABLED_euidaccess\" was never defined.
29720 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29722 if test -z "${gl_GNULIB_ENABLED_getdtablesize_TRUE}" && test -z "${gl_GNULIB_ENABLED_getdtablesize_FALSE}"; then
29723 as_fn_error
"conditional \"gl_GNULIB_ENABLED_getdtablesize\" was never defined.
29724 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29726 if test -z "${gl_GNULIB_ENABLED_getgroups_TRUE}" && test -z "${gl_GNULIB_ENABLED_getgroups_FALSE}"; then
29727 as_fn_error
"conditional \"gl_GNULIB_ENABLED_getgroups\" was never defined.
29728 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29730 if test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE}" && test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE}"; then
29731 as_fn_error
"conditional \"gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36\" was never defined.
29732 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29734 if test -z "${gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_TRUE}" && test -z "${gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_FALSE}"; then
29735 as_fn_error
"conditional \"gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1\" was never defined.
29736 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29738 if test -z "${gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_TRUE}" && test -z "${gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_FALSE}"; then
29739 as_fn_error
"conditional \"gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7\" was never defined.
29740 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29742 if test -z "${gl_GNULIB_ENABLED_pathmax_TRUE}" && test -z "${gl_GNULIB_ENABLED_pathmax_FALSE}"; then
29743 as_fn_error
"conditional \"gl_GNULIB_ENABLED_pathmax\" was never defined.
29744 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29746 if test -z "${gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_TRUE}" && test -z "${gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_FALSE}"; then
29747 as_fn_error
"conditional \"gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c\" was never defined.
29748 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29750 if test -z "${gl_GNULIB_ENABLED_secure_getenv_TRUE}" && test -z "${gl_GNULIB_ENABLED_secure_getenv_FALSE}"; then
29751 as_fn_error
"conditional \"gl_GNULIB_ENABLED_secure_getenv\" was never defined.
29752 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29754 if test -z "${gl_GNULIB_ENABLED_stat_TRUE}" && test -z "${gl_GNULIB_ENABLED_stat_FALSE}"; then
29755 as_fn_error
"conditional \"gl_GNULIB_ENABLED_stat\" was never defined.
29756 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29758 if test -z "${gl_GNULIB_ENABLED_strtoll_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoll_FALSE}"; then
29759 as_fn_error
"conditional \"gl_GNULIB_ENABLED_strtoll\" was never defined.
29760 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29762 if test -z "${gl_GNULIB_ENABLED_strtoull_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoull_FALSE}"; then
29763 as_fn_error
"conditional \"gl_GNULIB_ENABLED_strtoull\" was never defined.
29764 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29766 if test -z "${gl_GNULIB_ENABLED_tempname_TRUE}" && test -z "${gl_GNULIB_ENABLED_tempname_FALSE}"; then
29767 as_fn_error
"conditional \"gl_GNULIB_ENABLED_tempname\" was never defined.
29768 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29770 if test -z "${gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_TRUE}" && test -z "${gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_FALSE}"; then
29771 as_fn_error
"conditional \"gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec\" was never defined.
29772 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29777 if test -n "$gl_LIBOBJS"; then
29778 # Remove the extension.
29779 sed_drop_objext
='s/\.o$//;s/\.obj$//'
29780 for i
in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
29781 gl_libobjs
="$gl_libobjs $i.$ac_objext"
29782 gl_ltlibobjs
="$gl_ltlibobjs $i.lo"
29785 gl_LIBOBJS
=$gl_libobjs
29787 gl_LTLIBOBJS
=$gl_ltlibobjs
29793 if test -n "$gltests_LIBOBJS"; then
29794 # Remove the extension.
29795 sed_drop_objext
='s/\.o$//;s/\.obj$//'
29796 for i
in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
29797 gltests_libobjs
="$gltests_libobjs $i.$ac_objext"
29798 gltests_ltlibobjs
="$gltests_ltlibobjs $i.lo"
29801 gltests_LIBOBJS
=$gltests_libobjs
29803 gltests_LTLIBOBJS
=$gltests_ltlibobjs
29807 : ${CONFIG_STATUS=./config.status}
29809 ac_clean_files_save
=$ac_clean_files
29810 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
29811 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
29812 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
29814 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
29816 # Generated by $as_me.
29817 # Run this file to recreate the current configuration.
29818 # Compiler output produced by configure, useful for debugging
29819 # configure, is in config.log if it exists.
29822 ac_cs_recheck=false
29825 SHELL=\${CONFIG_SHELL-$SHELL}
29828 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
29829 ## -------------------- ##
29830 ## M4sh Initialization. ##
29831 ## -------------------- ##
29833 # Be more Bourne compatible
29834 DUALCASE
=1; export DUALCASE
# for MKS sh
29835 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
29838 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
29839 # is contrary to our usage. Disable this feature.
29840 alias -g '${1+"$@"}'='"$@"'
29841 setopt NO_GLOB_SUBST
29843 case `(set -o) 2>/dev/null` in #(
29855 # Printing a long string crashes Solaris 7 /usr/bin/printf.
29856 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
29857 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
29858 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
29859 # Prefer a ksh shell builtin over an external printf program on Solaris,
29860 # but without wasting forks for bash or zsh.
29861 if test -z "$BASH_VERSION$ZSH_VERSION" \
29862 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
29863 as_echo='print
-r --'
29864 as_echo_n='print
-rn --'
29865 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
29866 as_echo='printf %s
\n'
29867 as_echo_n='printf %s
'
29869 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
29870 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
29871 as_echo_n='/usr
/ucb
/echo -n'
29873 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
29874 as_echo_n_body='eval
29878 expr "X$arg" : "X\\(.*\\)$as_nl";
29879 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
29881 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
29883 export as_echo_n_body
29884 as_echo_n='sh
-c $as_echo_n_body as_echo
'
29886 export as_echo_body
29887 as_echo='sh
-c $as_echo_body as_echo
'
29890 # The user is always right.
29891 if test "${PATH_SEPARATOR+set}" != set; then
29893 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
29894 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
29901 # We need space, tab and new line, in precisely that order. Quoting is
29902 # there to prevent editors from complaining about space-tab.
29903 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
29904 # splitting by setting IFS to empty value.)
29907 # Find who we are. Look in the path if we contain no directory separator.
29909 *[\\/]* ) as_myself=$0 ;;
29910 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29911 for as_dir in $PATH
29914 test -z "$as_dir" && as_dir=.
29915 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
29921 # We did not find ourselves, most probably we were run as `sh COMMAND'
29922 # in which case we are not to be found in the path.
29923 if test "x$as_myself" = x
; then
29926 if test ! -f "$as_myself"; then
29927 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
29931 # Unset variables that we do not need and which cause bugs (e.g. in
29932 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
29933 # suppresses any "Segmentation fault" message there. '((' could
29934 # trigger a bug in pdksh 5.2.14.
29935 for as_var
in BASH_ENV ENV MAIL MAILPATH
29936 do eval test x\
${$as_var+set} = xset \
29937 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
29950 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
29953 # as_fn_error ERROR [LINENO LOG_FD]
29954 # ---------------------------------
29955 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
29956 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
29957 # script with status $?, using 1 if that was 0.
29960 as_status
=$?
; test $as_status -eq 0 && as_status
=1
29962 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
29963 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
29965 $as_echo "$as_me: error: $1" >&2
29966 as_fn_exit
$as_status
29970 # as_fn_set_status STATUS
29971 # -----------------------
29972 # Set $? to STATUS, without forking.
29973 as_fn_set_status
()
29976 } # as_fn_set_status
29978 # as_fn_exit STATUS
29979 # -----------------
29980 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
29984 as_fn_set_status
$1
29990 # Portably unset VAR.
29993 { eval $1=; unset $1;}
29995 as_unset
=as_fn_unset
29996 # as_fn_append VAR VALUE
29997 # ----------------------
29998 # Append the text in VALUE to the end of the definition contained in VAR. Take
29999 # advantage of any shell optimizations that allow amortized linear growth over
30000 # repeated appends, instead of the typical quadratic growth present in naive
30002 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
30003 eval 'as_fn_append ()
30014 # as_fn_arith ARG...
30015 # ------------------
30016 # Perform arithmetic evaluation on the ARGs, and store the result in the
30017 # global $as_val. Take advantage of shells that can avoid forks. The arguments
30018 # must be portable across $(()) and expr.
30019 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
30020 eval 'as_fn_arith ()
30027 as_val
=`expr "$@" || test $? -eq 1`
30032 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
30033 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
30039 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30040 as_basename
=basename
30045 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
30051 as_me
=`$as_basename -- "$0" ||
30052 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30053 X"$0" : 'X\(//\)$' \| \
30054 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
30056 sed '/^.*\/\([^/][^/]*\)\/*$/{
30070 # Avoid depending upon Character Ranges.
30071 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
30072 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30073 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
30074 as_cr_digits
='0123456789'
30075 as_cr_alnum
=$as_cr_Letters$as_cr_digits
30077 ECHO_C
= ECHO_N
= ECHO_T
=
30078 case `echo -n x` in #(((((
30080 case `echo 'xy\c'` in
30081 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
30083 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
30090 rm -f conf$$ conf$$.exe conf$$.
file
30091 if test -d conf$$.dir
; then
30092 rm -f conf$$.dir
/conf$$.
file
30095 mkdir conf$$.dir
2>/dev
/null
30097 if (echo >conf$$.
file) 2>/dev
/null
; then
30098 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
30100 # ... but there are two gotchas:
30101 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
30102 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
30103 # In both cases, we have to default to `cp -p'.
30104 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
30106 elif ln conf$$.
file conf$$
2>/dev
/null
; then
30114 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
30115 rmdir conf$$.dir
2>/dev
/null
30120 # Create "$as_dir" as a directory, including parents if necessary.
30125 -*) as_dir
=.
/$as_dir;;
30127 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
30131 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
30132 *) as_qdir
=$as_dir;;
30134 as_dirs
="'$as_qdir' $as_dirs"
30135 as_dir
=`$as_dirname -- "$as_dir" ||
30136 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30137 X"$as_dir" : 'X\(//\)[^/]' \| \
30138 X"$as_dir" : 'X\(//\)$' \| \
30139 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30140 $as_echo X"$as_dir" |
30141 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30145 /^X\(\/\/\)[^/].*/{
30158 test -d "$as_dir" && break
30160 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
30161 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
30165 if mkdir
-p .
2>/dev
/null
; then
30166 as_mkdir_p
='mkdir -p "$as_dir"'
30168 test -d .
/-p && rmdir .
/-p
30172 if test -x / >/dev
/null
2>&1; then
30173 as_test_x
='test -x'
30175 if ls -dL / >/dev
/null
2>&1; then
30182 if test -d "$1"; then
30188 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
30189 ???[sx]*):;;*)false;;esac;fi
30193 as_executable_p
=$as_test_x
30195 # Sed expression to map a string onto a valid CPP name.
30196 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30198 # Sed expression to map a string onto a valid variable name.
30199 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30203 ## ----------------------------------- ##
30204 ## Main body of $CONFIG_STATUS script. ##
30205 ## ----------------------------------- ##
30207 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
30209 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30210 # Save the log message, to keep $0 and so on meaningful, and to
30211 # report actual input values of CONFIG_FILES etc. instead of their
30212 # values after options handling.
30214 This file was extended by emacs $as_me 24.3.50, which was
30215 generated by GNU Autoconf 2.65. Invocation command line was
30217 CONFIG_FILES = $CONFIG_FILES
30218 CONFIG_HEADERS = $CONFIG_HEADERS
30219 CONFIG_LINKS = $CONFIG_LINKS
30220 CONFIG_COMMANDS = $CONFIG_COMMANDS
30223 on `(hostname || uname -n) 2>/dev/null | sed 1q`
30228 case $ac_config_files in *"
30229 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
30232 case $ac_config_headers in *"
30233 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
30237 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30238 # Files that config.status was made for.
30239 config_files="$ac_config_files"
30240 config_headers="$ac_config_headers"
30241 config_commands="$ac_config_commands"
30245 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30247 \`$as_me' instantiates files and other configuration actions
30248 from templates according to the current configuration. Unless the files
30249 and actions are specified as TAGs, all are instantiated by default.
30251 Usage: $0 [OPTION]... [TAG]...
30253 -h, --help print this help, then exit
30254 -V, --version print version number and configuration settings, then exit
30255 --config print configuration, then exit
30256 -q, --quiet, --silent
30257 do not print progress messages
30258 -d, --debug don't remove temporary files
30259 --recheck update $as_me by reconfiguring in the same conditions
30260 --file=FILE[:TEMPLATE]
30261 instantiate the configuration file FILE
30262 --header=FILE[:TEMPLATE]
30263 instantiate the configuration header FILE
30265 Configuration files:
30268 Configuration headers:
30271 Configuration commands:
30274 Report bugs to the package provider."
30277 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30278 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
30280 emacs config.status 24.3.50
30281 configured by $0, generated by GNU Autoconf 2.65,
30282 with options \\"\$ac_cs_config\\"
30284 Copyright (C) 2009 Free Software Foundation, Inc.
30285 This config.status script is free software; the Free Software Foundation
30286 gives unlimited permission to copy, distribute and modify it."
30293 test -n "\$AWK" || AWK=awk
30296 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30297 # The default lists apply if the user does not specify any file.
30303 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
30304 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
30315 # Handling of the options.
30316 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
30318 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
30319 $as_echo "$ac_cs_version"; exit ;;
30320 --config |
--confi |
--conf |
--con |
--co |
--c )
30321 $as_echo "$ac_cs_config"; exit ;;
30322 --debug |
--debu |
--deb |
--de |
--d |
-d )
30324 --file |
--fil |
--fi |
--f )
30327 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30329 as_fn_append CONFIG_FILES
" '$ac_optarg'"
30330 ac_need_defaults
=false
;;
30331 --header |
--heade |
--head |
--hea )
30334 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30336 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
30337 ac_need_defaults
=false
;;
30339 # Conflict between --help and --header
30340 as_fn_error
"ambiguous option: \`$1'
30341 Try \`$0 --help' for more information.";;
30342 --help |
--hel |
-h )
30343 $as_echo "$ac_cs_usage"; exit ;;
30344 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
30345 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
30348 # This is an error.
30349 -*) as_fn_error
"unrecognized option: \`$1'
30350 Try \`$0 --help' for more information." ;;
30352 *) as_fn_append ac_config_targets
" $1"
30353 ac_need_defaults
=false
;;
30359 ac_configure_extra_args
=
30361 if $ac_cs_silent; then
30363 ac_configure_extra_args
="$ac_configure_extra_args --silent"
30367 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30368 if \$ac_cs_recheck; then
30369 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30371 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
30372 CONFIG_SHELL='$SHELL'
30373 export CONFIG_SHELL
30378 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30382 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30383 ## Running $as_me. ##
30389 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30393 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
30394 GCC="$GCC" CPPFLAGS="$CPPFLAGS" opsys="$opsys"
30398 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30400 # Handling of arguments.
30401 for ac_config_target
in $ac_config_targets
30403 case $ac_config_target in
30404 "src/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
30405 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
30406 "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" ;;
30407 "nextstep/GNUstep/Emacs.base/Resources/Emacs.desktop") CONFIG_FILES
="$CONFIG_FILES nextstep/GNUstep/Emacs.base/Resources/Emacs.desktop:nextstep/templates/Emacs.desktop.in" ;;
30408 "nextstep/Cocoa/Emacs.base/Contents/Info.plist") CONFIG_FILES
="$CONFIG_FILES nextstep/Cocoa/Emacs.base/Contents/Info.plist:nextstep/templates/Info.plist.in" ;;
30409 "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" ;;
30410 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
30411 "lib/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/Makefile" ;;
30412 "lib-src/Makefile") CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile" ;;
30413 "oldXMenu/Makefile") CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
30414 "doc/emacs/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/emacs/Makefile" ;;
30415 "doc/misc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/misc/Makefile" ;;
30416 "doc/lispintro/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispintro/Makefile" ;;
30417 "doc/lispref/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispref/Makefile" ;;
30418 "src/Makefile") CONFIG_FILES
="$CONFIG_FILES src/Makefile" ;;
30419 "lwlib/Makefile") CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
30420 "lisp/Makefile") CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
30421 "leim/Makefile") CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
30422 "nextstep/Makefile") CONFIG_FILES
="$CONFIG_FILES nextstep/Makefile" ;;
30423 "nt/Makefile") CONFIG_FILES
="$CONFIG_FILES nt/Makefile" ;;
30424 "test/automated/Makefile") CONFIG_FILES
="$CONFIG_FILES test/automated/Makefile" ;;
30425 "admin/unidata/Makefile") CONFIG_FILES
="$CONFIG_FILES admin/unidata/Makefile" ;;
30426 "src/epaths.h") CONFIG_COMMANDS
="$CONFIG_COMMANDS src/epaths.h" ;;
30427 "src/.gdbinit") CONFIG_COMMANDS
="$CONFIG_COMMANDS src/.gdbinit" ;;
30429 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
30434 # If the user did not use the arguments to specify the items to instantiate,
30435 # then the envvar interface is used. Set only those that are not.
30436 # We use the long form for the default assignment because of an extremely
30437 # bizarre bug on SunOS 4.1.3.
30438 if $ac_need_defaults; then
30439 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
30440 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
30441 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
30444 # Have a temporary directory for convenience. Make it in the build tree
30445 # simply because there is no reason against having it here, and in addition,
30446 # creating and moving files from /tmp can sometimes cause problems.
30447 # Hook for its removal unless debugging.
30448 # Note that there is a small window in which the directory will not be cleaned:
30449 # after its creation but before its name has been assigned to `$tmp'.
30453 trap 'exit_status=$?
30454 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
30456 trap 'as_fn_exit 1' 1 2 13 15
30458 # Create a (secure) tmp directory for tmp files.
30461 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
30462 test -n "$tmp" && test -d "$tmp"
30465 tmp
=.
/conf$$
-$RANDOM
30466 (umask 077 && mkdir
"$tmp")
30467 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
30469 # Set up the scripts for CONFIG_FILES section.
30470 # No need to generate them if there are no CONFIG_FILES.
30471 # This happens for instance with `./config.status config.h'.
30472 if test -n "$CONFIG_FILES"; then
30474 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
30475 ac_cs_awk_getline
=:
30476 ac_cs_awk_pipe_init
=
30477 ac_cs_awk_read_file
='
30478 while ((getline aline < (F[key])) > 0)
30481 ac_cs_awk_pipe_fini
=
30483 ac_cs_awk_getline
=false
30484 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
30485 ac_cs_awk_read_file
='
30487 print "cat " F[key] " &&"
30488 '$ac_cs_awk_pipe_init
30489 # The final `:' finishes the AND list.
30490 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
30492 ac_cr
=`echo X | tr X '\015'`
30493 # On cygwin, bash can eat \r inside `` if the user requested igncr.
30494 # But we know of no other shell where ac_cr would be empty at this
30495 # point, so we can use a bashism as a fallback.
30496 if test "x$ac_cr" = x
; then
30497 eval ac_cr
=\$
\'\\r
\'
30499 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
30500 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
30503 ac_cs_awk_cr
=$ac_cr
30506 echo 'BEGIN {' >"$tmp/subs1.awk" &&
30509 # Create commands to substitute file output variables.
30511 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
30512 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
30513 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
30516 } >conf$
$files.sh
&&
30517 . .
/conf$
$files.sh ||
30518 as_fn_error
"could not make $CONFIG_STATUS" "$LINENO" 5
30519 rm -f conf$
$files.sh
30522 echo "cat >conf$$subs.awk <<_ACEOF" &&
30523 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
30525 } >conf$$subs.sh ||
30526 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
30527 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
30529 for ac_last_try in false false false false false :; do
30530 . ./conf$$subs.sh ||
30531 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
30533 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
30534 if test $ac_delim_n = $ac_delim_num; then
30536 elif $ac_last_try; then
30537 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
30539 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
30542 rm -f conf$$subs.sh
30544 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30545 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
30549 s/^/S["/; s
/!.
*/"]=/
30559 s/\(.\{148\}\)..*/\1/
30561 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
30566 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
30573 s/\(.\{148\}\)..*/\1/
30575 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
30579 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
30584 ' <conf$$subs.awk | sed '
30589 ' >>$CONFIG_STATUS || ac_write_fail=1
30590 rm -f conf$$subs.awk
30591 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30593 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
30594 for (key in S) S_is_set[key] = 1
30596 \$ac_cs_awk_pipe_init
30600 nfields = split(line, field, "@
")
30602 len = length(field[1])
30603 for (i = 2; i < nfields; i++) {
30605 keylen = length(key)
30606 if (S_is_set[key]) {
30608 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
30609 len += length(value) + length(field[++i])
30614 if (nfields == 3 && !substed) {
30616 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
30617 \$ac_cs_awk_read_file
30623 \$ac_cs_awk_pipe_fini
30626 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30627 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
30628 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
30631 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
30632 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
30635 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30636 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
30637 # trailing colons and then remove the whole line if VPATH becomes empty
30638 # (actually we leave an empty line to preserve line numbers).
30639 if test "x
$srcdir" = x.; then
30640 ac_vpsub='/^[ ]*VPATH[ ]*=/{
30641 s/:*\$(srcdir):*/:/
30642 s/:*\${srcdir}:*/:/
30644 s/^\([^=]*=[ ]*\):*/\1/
30650 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30651 fi # test -n "$CONFIG_FILES"
30653 # Set up the scripts for CONFIG_HEADERS section.
30654 # No need to generate them if there are no CONFIG_HEADERS.
30655 # This happens for instance with `./config.status Makefile'.
30656 if test -n "$CONFIG_HEADERS"; then
30657 cat >"$tmp/defines.
awk" <<\_ACAWK ||
30661 # Transform confdefs.h into an awk script `defines.awk', embedded as
30662 # here-document in config.status, that substitutes the proper values into
30663 # config.h.in to produce config.h.
30665 # Create a delimiter string that does not exist in confdefs.h, to ease
30666 # handling of long lines.
30668 for ac_last_try in false false :; do
30669 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
30670 if test -z "$ac_t"; then
30672 elif $ac_last_try; then
30673 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
30675 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
30679 # For the awk script, D is an array of macro values keyed by name,
30680 # likewise P contains macro parameters if any. Preserve backslash
30681 # newline sequences.
30683 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
30685 s/.\{148\}/&'"$ac_delim"'/g
30688 s/^[ ]*#[ ]*define[ ][ ]*/ /
30695 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
30697 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
30701 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
30702 D["\
1"]=" \
3\\\\\\n
"\\/p
30704 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
30709 s/.\{148\}/&'"$ac_delim"'/g
30714 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
30717 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
30719 ' <confdefs.h | sed '
30720 s/'"$ac_delim"'/"\\\
30721 "/g' >>$CONFIG_STATUS || ac_write_fail=1
30723 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30724 for (key in D) D_is_set[key] = 1
30727 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
30729 split(line, arg, " ")
30730 if (arg[1] == "#") {
30734 defundef
= substr
(arg
[1], 2)
30737 split(mac1
, mac2
, "(") #)
30739 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
30740 if (D_is_set
[macro
]) {
30741 # Preserve the white space surrounding the "#".
30742 print prefix
"define", macro P
[macro
] D
[macro
]
30745 # Replace #undef with comments. This is necessary, for example,
30746 # in the case of _POSIX_SOURCE, which is predefined and required
30747 # on some systems where configure will not decide to define it.
30748 if (defundef
== "undef") {
30749 print
"/*", prefix defundef
, macro
, "*/"
30757 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30758 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
30759 fi # test -n "$CONFIG_HEADERS"
30762 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
30767 :[FHLC
]) ac_mode
=$ac_tag; continue;;
30769 case $ac_mode$ac_tag in
30771 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
30772 :[FH
]-) ac_tag
=-:-;;
30773 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
30790 -) ac_f
="$tmp/stdin";;
30791 *) # Look for the file first in the build tree, then in the source tree
30792 # (if the path is not absolute). The absolute path cannot be DOS-style,
30793 # because $ac_f cannot contain `:'.
30797 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
30799 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
30801 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
30802 as_fn_append ac_file_inputs
" '$ac_f'"
30805 # Let's still pretend it is `configure' which instantiates (i.e., don't
30806 # use $as_me), people would be surprised to read:
30807 # /* config.h. Generated by config.status. */
30808 configure_input
='Generated from '`
30809 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
30811 if test x
"$ac_file" != x-
; then
30812 configure_input
="$ac_file. $configure_input"
30813 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
30814 $as_echo "$as_me: creating $ac_file" >&6;}
30816 # Neutralize special characters interpreted by sed in replacement strings.
30817 case $configure_input in #(
30818 *\
&* |
*\|
* |
*\\* )
30819 ac_sed_conf_input
=`$as_echo "$configure_input" |
30820 sed 's/[\\\\&|]/\\\\&/g'`;; #(
30821 *) ac_sed_conf_input
=$configure_input;;
30825 *:-:* |
*:-) cat >"$tmp/stdin" \
30826 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
30831 ac_dir
=`$as_dirname -- "$ac_file" ||
30832 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30833 X"$ac_file" : 'X\(//\)[^/]' \| \
30834 X"$ac_file" : 'X\(//\)$' \| \
30835 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
30836 $as_echo X"$ac_file" |
30837 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30841 /^X\(\/\/\)[^/].*/{
30854 as_dir
="$ac_dir"; as_fn_mkdir_p
30858 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
30860 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
30861 # A ".." for each directory in $ac_dir_suffix.
30862 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
30863 case $ac_top_builddir_sub in
30864 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
30865 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
30868 ac_abs_top_builddir
=$ac_pwd
30869 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
30870 # for backward compatibility:
30871 ac_top_builddir
=$ac_top_build_prefix
30874 .
) # We are building in place.
30876 ac_top_srcdir
=$ac_top_builddir_sub
30877 ac_abs_top_srcdir
=$ac_pwd ;;
30878 [\\/]* | ?
:[\\/]* ) # Absolute name.
30879 ac_srcdir
=$srcdir$ac_dir_suffix;
30880 ac_top_srcdir
=$srcdir
30881 ac_abs_top_srcdir
=$srcdir ;;
30882 *) # Relative name.
30883 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
30884 ac_top_srcdir
=$ac_top_build_prefix$srcdir
30885 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
30887 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
30897 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
30898 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
30900 ac_MKDIR_P
=$MKDIR_P
30902 [\\/$
]* | ?
:[\\/]* ) ;;
30903 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
30907 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30908 # If the template does not know about datarootdir, expand it.
30909 # FIXME: This hack should be removed a few years after 2.60.
30910 ac_datarootdir_hack
=; ac_datarootdir_seen
=
30921 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
30922 *datarootdir
*) ac_datarootdir_seen
=yes;;
30923 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
30924 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
30925 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
30927 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30928 ac_datarootdir_hack='
30929 s&@datadir@&$datadir&g
30930 s&@docdir@&$docdir&g
30931 s&@infodir@&$infodir&g
30932 s&@localedir@&$localedir&g
30933 s&@mandir@&$mandir&g
30934 s&\\\${datarootdir}&$datarootdir&g' ;;
30938 # Neutralize VPATH when `$srcdir' = `.'.
30939 # Shell code in configure.ac might set extrasub.
30940 # FIXME: do we really want to maintain this feature?
30941 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30942 ac_sed_extra="$ac_vpsub
30945 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30947 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
30948 s|@configure_input@|
$ac_sed_conf_input|
;t t
30949 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
30950 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
30951 s
&@srcdir@
&$ac_srcdir&;t t
30952 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
30953 s
&@top_srcdir@
&$ac_top_srcdir&;t t
30954 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
30955 s
&@builddir@
&$ac_builddir&;t t
30956 s
&@abs_builddir@
&$ac_abs_builddir&;t t
30957 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
30958 s
&@INSTALL@
&$ac_INSTALL&;t t
30959 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
30960 $ac_datarootdir_hack
30962 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
30963 if $ac_cs_awk_getline; then
30964 $AWK -f "$tmp/subs.
awk"
30966 $AWK -f "$tmp/subs.
awk" | $SHELL
30968 || as_fn_error "could not create
$ac_file" "$LINENO" 5
30970 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
30971 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
30972 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
30973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
30974 which seems to be undefined. Please make sure it is defined." >&5
30975 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
30976 which seems to be undefined. Please make sure it is defined." >&2;}
30980 -) cat "$tmp/out" && rm -f "$tmp/out";;
30981 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
30983 || as_fn_error "could not create $ac_file" "$LINENO" 5
30989 if test x"$ac_file" != x-; then
30991 $as_echo "/* $configure_input */" \
30992 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
30993 } >"$tmp/config.h" \
30994 || as_fn_error "could not create $ac_file" "$LINENO" 5
30995 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
30996 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
30997 $as_echo "$as_me: $ac_file is unchanged" >&6;}
31000 mv "$tmp/config.h" "$ac_file" \
31001 || as_fn_error "could not create $ac_file" "$LINENO" 5
31004 $as_echo "/* $configure_input */" \
31005 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
31006 || as_fn_error "could not create -" "$LINENO" 5
31008 # Compute "$ac_file"'s index
in $config_headers.
31011 for _am_header
in $config_headers :; do
31012 case $_am_header in
31013 $_am_arg |
$_am_arg:* )
31016 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
31019 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
31020 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31021 X"$_am_arg" : 'X\(//\)[^/]' \| \
31022 X"$_am_arg" : 'X\(//\)$' \| \
31023 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
31024 $as_echo X"$_am_arg" |
31025 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31029 /^X\(\/\/\)[^/].*/{
31041 s/.*/./; q'`/stamp-h
$_am_stamp_count
31044 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
31045 $as_echo "$as_me: executing $ac_file commands" >&6;}
31050 case $ac_file$ac_mode in
31051 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
31052 # Autoconf 2.62 quotes --file arguments for eval, but not when files
31053 # are listed without --file. Let's play safe and only enable the eval
31054 # if we detect the quoting.
31055 case $CONFIG_FILES in
31056 *\'*) eval set x
"$CONFIG_FILES" ;;
31057 *) set x
$CONFIG_FILES ;;
31062 # Strip MF so we end up with the name of the file.
31063 mf
=`echo "$mf" | sed -e 's/:.*$//'`
31064 # Check whether this is an Automake generated Makefile or not.
31065 # We used to match only the files named `Makefile.in', but
31066 # some people rename them; so instead we look at the file content.
31067 # Grep'ing the first line is not enough: some people post-process
31068 # each Makefile.in and add a new line on top of each file to say so.
31069 # Grep'ing the whole file is not good either: AIX grep has a line
31070 # limit of 2048, but all sed's we know have understand at least 4000.
31071 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
31072 dirpart
=`$as_dirname -- "$mf" ||
31073 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31074 X"$mf" : 'X\(//\)[^/]' \| \
31075 X"$mf" : 'X\(//\)$' \| \
31076 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
31078 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31082 /^X\(\/\/\)[^/].*/{
31098 # Extract the definition of DEPDIR, am__include, and am__quote
31099 # from the Makefile without running `make'.
31100 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
31101 test -z "$DEPDIR" && continue
31102 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
31103 test -z "am__include" && continue
31104 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
31105 # When using ansi2knr, U may be empty or an underscore; expand it
31106 U
=`sed -n 's/^U = //p' < "$mf"`
31107 # Find all dependency output files, they are included files with
31108 # $(DEPDIR) in their names. We invoke sed twice because it is the
31109 # simplest approach to changing $(DEPDIR) to its actual value in the
31111 for file in `sed -n "
31112 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
31113 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
31114 # Make sure the directory exists.
31115 test -f "$dirpart/$file" && continue
31116 fdir
=`$as_dirname -- "$file" ||
31117 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31118 X"$file" : 'X\(//\)[^/]' \| \
31119 X"$file" : 'X\(//\)$' \| \
31120 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
31121 $as_echo X"$file" |
31122 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31126 /^X\(\/\/\)[^/].*/{
31139 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
31140 # echo "creating $dirpart/$file"
31141 echo '# dummy' > "$dirpart/$file"
31147 if test "${opsys}" = "mingw32"; then
31148 ${MAKE-make} MAKEFILE_NAME
=do-not-make-Makefile epaths-force-w32
31150 ${MAKE-make} MAKEFILE_NAME
=do-not-make-Makefile epaths-force
31154 if test ! -f src
/.gdbinit
&& test -f "$srcdir/src/.gdbinit"; then
31155 echo "source $ac_abs_top_srcdir/src/.gdbinit" > src
/.gdbinit
31165 ac_clean_files
=$ac_clean_files_save
31167 test $ac_write_fail = 0 ||
31168 as_fn_error
"write failure creating $CONFIG_STATUS" "$LINENO" 5
31171 # configure is writing to config.log, and then calls config.status.
31172 # config.status does its own redirection, appending to config.log.
31173 # Unfortunately, on DOS this fails, as config.log is still kept open
31174 # by configure, so config.status won't be able to write to it; its
31175 # output is simply discarded. So we exec the FD to /dev/null,
31176 # effectively closing config.log, so it can be properly (re)opened and
31177 # appended to by config.status. When coming back to configure, we
31178 # need to make the FD available again.
31179 if test "$no_create" != yes; then
31181 ac_config_status_args
=
31182 test "$silent" = yes &&
31183 ac_config_status_args
="$ac_config_status_args --quiet"
31185 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
31187 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31188 # would make configure fail if this is the last instruction.
31189 $ac_cs_success || as_fn_exit $?
31191 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
31192 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
31193 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}