2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for emacs 24.3.50.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE
=1; export DUALCASE
# for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print
-rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
55 as_echo_n='/usr
/ucb
/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
68 as_echo_n='sh
-c $as_echo_n_body as_echo
'
71 as_echo='sh
-c $as_echo_body as_echo
'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x
; then
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var
in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\
${$as_var+set} = xset \
121 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
134 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
136 if test "x$CONFIG_SHELL" = x
; then
137 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
145 case \`(set -o) 2>/dev/null\` in #(
153 as_required
="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167 exitcode=1; echo positional parameters were not saved.
169 test x\$exitcode = x0 || exit 1"
170 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev
/null
; then :
180 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
183 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
185 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
188 test -z "$as_dir" && as_dir
=.
192 for as_base
in sh bash ksh sh5
; do
193 # Try only shells that exist, to save several forks.
194 as_shell
=$as_dir/$as_base
195 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
197 CONFIG_SHELL
=$as_shell as_have_required
=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
206 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
208 CONFIG_SHELL
=$SHELL as_have_required
=yes
213 if test "x$CONFIG_SHELL" != x
; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
219 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224 if test x
$as_have_required = xno
; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x
${ZSH_VERSION+set} = xset
; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
231 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232 $0: including any error possibly output before this
233 $0: message. Then install a modern shell, or manually run
234 $0: the script under such a shell if you do have one."
240 SHELL
=${CONFIG_SHELL-/bin/sh}
242 # Unset more variables known to interfere with behavior of common tools.
243 CLICOLOR_FORCE
= GREP_OPTIONS
=
244 unset CLICOLOR_FORCE GREP_OPTIONS
246 ## --------------------- ##
247 ## M4sh Shell Functions. ##
248 ## --------------------- ##
251 # Portably unset VAR.
254 { eval $1=; unset $1;}
258 # as_fn_set_status STATUS
259 # -----------------------
260 # Set $? to STATUS, without forking.
268 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
278 # Create "$as_dir" as a directory, including parents if necessary.
283 -*) as_dir
=.
/$as_dir;;
285 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
289 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
292 as_dirs
="'$as_qdir' $as_dirs"
293 as_dir
=`$as_dirname -- "$as_dir" ||
294 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295 X"$as_dir" : 'X\(//\)[^/]' \| \
296 X"$as_dir" : 'X\(//\)$' \| \
297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298 $as_echo X"$as_dir" |
299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
316 test -d "$as_dir" && break
318 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
319 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
323 # as_fn_append VAR VALUE
324 # ----------------------
325 # Append the text in VALUE to the end of the definition contained in VAR. Take
326 # advantage of any shell optimizations that allow amortized linear growth over
327 # repeated appends, instead of the typical quadratic growth present in naive
329 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
330 eval 'as_fn_append ()
343 # Perform arithmetic evaluation on the ARGs, and store the result in the
344 # global $as_val. Take advantage of shells that can avoid forks. The arguments
345 # must be portable across $(()) and expr.
346 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
354 as_val
=`expr "$@" || test $? -eq 1`
359 # as_fn_error ERROR [LINENO LOG_FD]
360 # ---------------------------------
361 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363 # script with status $?, using 1 if that was 0.
366 as_status
=$?
; test $as_status -eq 0 && as_status
=1
368 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
371 $as_echo "$as_me: error: $1" >&2
372 as_fn_exit
$as_status
375 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
376 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
382 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
388 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
394 as_me
=`$as_basename -- "$0" ||
395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396 X"$0" : 'X\(//\)$' \| \
397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
399 sed '/^.*\/\([^/][^/]*\)\/*$/{
413 # Avoid depending upon Character Ranges.
414 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
415 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
417 as_cr_digits
='0123456789'
418 as_cr_alnum
=$as_cr_Letters$as_cr_digits
421 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
422 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
441 chmod +x
"$as_me.lineno" ||
442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
444 # Don't try to exec as it changes $[0], causing all sort of problems
445 # (the dirname of $[0] is not the place where we might find the
446 # original and so on. Autoconf is especially sensitive to this).
448 # Exit status is that of the last command.
452 ECHO_C
= ECHO_N
= ECHO_T
=
453 case `echo -n x` in #(((((
455 case `echo 'xy\c'` in
456 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
458 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
465 rm -f conf$$ conf$$.exe conf$$.
file
466 if test -d conf$$.dir
; then
467 rm -f conf$$.dir
/conf$$.
file
470 mkdir conf$$.dir
2>/dev
/null
472 if (echo >conf$$.
file) 2>/dev
/null
; then
473 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
475 # ... but there are two gotchas:
476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478 # In both cases, we have to default to `cp -p'.
479 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
481 elif ln conf$$.
file conf$$
2>/dev
/null
; then
489 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
490 rmdir conf$$.dir
2>/dev
/null
492 if mkdir
-p .
2>/dev
/null
; then
493 as_mkdir_p
='mkdir -p "$as_dir"'
495 test -d .
/-p && rmdir .
/-p
499 if test -x / >/dev
/null
2>&1; then
502 if ls -dL / >/dev
/null
2>&1; then
509 if test -d "$1"; then
515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516 ???[sx]*):;;*)false;;esac;fi
520 as_executable_p
=$as_test_x
522 # Sed expression to map a string onto a valid CPP name.
523 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
525 # Sed expression to map a string onto a valid variable name.
526 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
529 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
533 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
534 # so uname gets run too.
535 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
540 ac_default_prefix
=/usr
/local
542 ac_config_libobj_dir
=.
549 # Identity of this package.
551 PACKAGE_TARNAME
='emacs'
552 PACKAGE_VERSION
='24.3.50'
553 PACKAGE_STRING
='emacs 24.3.50'
557 ac_unique_file
="src/lisp.h"
558 # Factoring default headers for most tests.
559 ac_includes_default
="\
561 #ifdef HAVE_SYS_TYPES_H
562 # include <sys/types.h>
564 #ifdef HAVE_SYS_STAT_H
565 # include <sys/stat.h>
571 # ifdef HAVE_STDLIB_H
576 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
581 #ifdef HAVE_STRINGS_H
582 # include <strings.h>
584 #ifdef HAVE_INTTYPES_H
585 # include <inttypes.h>
596 gl_getopt_required
=POSIX
597 gl_getopt_required
=POSIX
598 ac_subst_vars
='gltests_LTLIBOBJS
608 LD_SWITCH_SYSTEM_TEMACS
612 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_FALSE
613 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_TRUE
614 gl_GNULIB_ENABLED_verify_FALSE
615 gl_GNULIB_ENABLED_verify_TRUE
616 gl_GNULIB_ENABLED_strtoull_FALSE
617 gl_GNULIB_ENABLED_strtoull_TRUE
618 gl_GNULIB_ENABLED_strtoll_FALSE
619 gl_GNULIB_ENABLED_strtoll_TRUE
620 gl_GNULIB_ENABLED_stat_FALSE
621 gl_GNULIB_ENABLED_stat_TRUE
622 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_FALSE
623 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_TRUE
624 gl_GNULIB_ENABLED_pathmax_FALSE
625 gl_GNULIB_ENABLED_pathmax_TRUE
626 gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_FALSE
627 gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_TRUE
628 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_FALSE
629 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_TRUE
630 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE
631 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE
632 gl_GNULIB_ENABLED_getgroups_FALSE
633 gl_GNULIB_ENABLED_getgroups_TRUE
634 gl_GNULIB_ENABLED_euidaccess_FALSE
635 gl_GNULIB_ENABLED_euidaccess_TRUE
636 gl_GNULIB_ENABLED_dosname_FALSE
637 gl_GNULIB_ENABLED_dosname_TRUE
638 gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_FALSE
639 gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_TRUE
645 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
648 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
649 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
650 TIME_H_DEFINES_STRUCT_TIMESPEC
651 NEXT_AS_FIRST_DIRECTIVE_TIME_H
653 WINDOWS_64_BIT_ST_SIZE
654 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
656 NEXT_AS_FIRST_DIRECTIVE_STRING_H
658 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
660 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
669 REPLACE_STDIO_WRITE_FUNCS
670 REPLACE_STDIO_READ_FUNCS
679 REPLACE_OBSTACK_PRINTF
704 HAVE_DECL_OBSTACK_PRINTF
710 GNULIB_VSPRINTF_POSIX
714 GNULIB_VFPRINTF_POSIX
721 GNULIB_STDIO_H_SIGPIPE
722 GNULIB_STDIO_H_NONBLOCKING
737 GNULIB_OBSTACK_PRINTF_POSIX
738 GNULIB_OBSTACK_PRINTF
763 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
765 GL_GENERATE_STDDEF_H_FALSE
766 GL_GENERATE_STDDEF_H_TRUE
771 GL_GENERATE_STDBOOL_H_FALSE
772 GL_GENERATE_STDBOOL_H_TRUE
774 GL_GENERATE_STDARG_H_FALSE
775 GL_GENERATE_STDARG_H_TRUE
777 NEXT_AS_FIRST_DIRECTIVE_STDARG_H
779 GL_GENERATE_STDALIGN_H_FALSE
780 GL_GENERATE_STDALIGN_H_TRUE
782 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
786 REPLACE_PTHREAD_SIGMASK
788 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
789 HAVE_STRUCT_SIGACTION_SA_SIGACTION
795 HAVE_POSIX_SIGNALBLOCKING
798 GNULIB_SIGNAL_H_SIGPIPE
800 GNULIB_PTHREAD_SIGMASK
802 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H
816 HAVE_DECL_LOCALTIME_R
895 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
897 UINT64_MAX_EQ_ULONG_MAX
898 UINT32_MAX_LT_UINTMAX_MAX
901 INT64_MAX_EQ_LONG_MAX
902 INT32_MAX_LT_INTMAX_MAX
912 GL_GENERATE_STDINT_H_FALSE
913 GL_GENERATE_STDINT_H_TRUE
922 HAVE_SIGNED_SIG_ATOMIC_T
925 BITSIZEOF_SIG_ATOMIC_T
928 APPLE_UNIVERSAL_BUILD
932 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
937 HAVE_UNSIGNED_LONG_LONG_INT
940 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
942 REPLACE_STRUCT_TIMEVAL
948 GNULIB_GL_UNISTD_H_GETOPT
951 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
967 REPLACE_CANONICALIZE_FILE_NAME
972 HAVE_STRUCT_RANDOM_DATA
995 HAVE_CANONICALIZE_FILE_NAME
1006 GNULIB_SECURE_GETENV
1009 GNULIB_REALLOC_POSIX
1026 GNULIB_CANONICALIZE_FILE_NAME
1063 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H
1074 GL_GENERATE_EXECINFO_H_FALSE
1075 GL_GENERATE_EXECINFO_H_TRUE
1079 NEXT_AS_FIRST_DIRECTIVE_DIRENT_H
1082 PRAGMA_SYSTEM_HEADER
1083 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1106 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
1107 UNISTD_H_HAVE_WINSOCK2_H
1128 REPLACE_GETDOMAINNAME
1139 HAVE_DECL_SETHOSTNAME
1140 HAVE_DECL_GETUSERSHELL
1141 HAVE_DECL_GETPAGESIZE
1142 HAVE_DECL_GETLOGIN_R
1143 HAVE_DECL_GETDOMAINNAME
1182 GNULIB_UNISTD_H_SIGPIPE
1183 GNULIB_UNISTD_H_NONBLOCKING
1209 GNULIB_GETDTABLESIZE
1210 GNULIB_GETDOMAINNAME
1227 GL_GENERATE_ALLOCA_H_FALSE
1228 GL_GENERATE_ALLOCA_H_TRUE
1231 GL_COND_LIBTOOL_FALSE
1232 GL_COND_LIBTOOL_TRUE
1263 x_default_search_path
1341 INSTALL_ARCH_INDEP_EXTRA
1343 LD_SWITCH_X_SITE_RPATH
1410 INSTALL_STRIP_PROGRAM
1452 program_transform_name
1463 ac_subst_files
='deps_frag
1466 enable_option_checking
1489 with_toolkit_scroll_bars
1504 with_pkg_config_prog
1507 enable_ns_self_contained
1508 enable_locallisppath
1510 enable_check_lisp_object_type
1513 enable_gtk_deprecation_warnings
1514 enable_dependency_tracking
1517 enable_link_time_optimization
1520 ac_precious_vars
='build_alias
1532 # Initialize some variables set by options.
1534 ac_init_version
=false
1535 ac_unrecognized_opts
=
1536 ac_unrecognized_sep
=
1537 # The variables have the same names as the options, with
1538 # dashes changed to underlines.
1539 cache_file
=/dev
/null
1546 program_transform_name
=s
,x
,x
,
1554 # Installation directory options.
1555 # These are left unexpanded so users can "make install exec_prefix=/foo"
1556 # and all the variables that are supposed to be based on exec_prefix
1557 # by default will actually change.
1558 # Use braces instead of parens because sh, perl, etc. also accept them.
1559 # (The list follows the same order as the GNU Coding Standards.)
1560 bindir
='${exec_prefix}/bin'
1561 sbindir
='${exec_prefix}/sbin'
1562 libexecdir
='${exec_prefix}/libexec'
1563 datarootdir
='${prefix}/share'
1564 datadir
='${datarootdir}'
1565 sysconfdir
='${prefix}/etc'
1566 sharedstatedir
='${prefix}/com'
1567 localstatedir
='${prefix}/var'
1568 includedir
='${prefix}/include'
1569 oldincludedir
='/usr/include'
1570 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
1571 infodir
='${datarootdir}/info'
1576 libdir
='${exec_prefix}/lib'
1577 localedir
='${datarootdir}/locale'
1578 mandir
='${datarootdir}/man'
1584 # If the previous option needs an argument, assign it.
1585 if test -n "$ac_prev"; then
1586 eval $ac_prev=\
$ac_option
1592 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1596 # Accept the important Cygnus configure options, so we can diagnose typos.
1598 case $ac_dashdash$ac_option in
1602 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1604 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1605 bindir
=$ac_optarg ;;
1607 -build |
--build |
--buil |
--bui |
--bu)
1608 ac_prev
=build_alias
;;
1609 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1610 build_alias
=$ac_optarg ;;
1612 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1613 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1614 ac_prev
=cache_file
;;
1615 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1616 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1617 cache_file
=$ac_optarg ;;
1619 --config-cache |
-C)
1620 cache_file
=config.cache
;;
1622 -datadir |
--datadir |
--datadi |
--datad)
1624 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1625 datadir
=$ac_optarg ;;
1627 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1628 |
--dataroo |
--dataro |
--datar)
1629 ac_prev
=datarootdir
;;
1630 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1631 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1632 datarootdir
=$ac_optarg ;;
1634 -disable-* |
--disable-*)
1635 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1636 # Reject names that are not valid shell variable names.
1637 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1638 as_fn_error
"invalid feature name: $ac_useropt"
1639 ac_useropt_orig
=$ac_useropt
1640 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1641 case $ac_user_opts in
1643 "enable_
$ac_useropt"
1645 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1646 ac_unrecognized_sep
=', ';;
1648 eval enable_
$ac_useropt=no
;;
1650 -docdir |
--docdir |
--docdi |
--doc |
--do)
1652 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1653 docdir
=$ac_optarg ;;
1655 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1657 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1658 dvidir
=$ac_optarg ;;
1660 -enable-* |
--enable-*)
1661 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1662 # Reject names that are not valid shell variable names.
1663 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1664 as_fn_error
"invalid feature name: $ac_useropt"
1665 ac_useropt_orig
=$ac_useropt
1666 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1667 case $ac_user_opts in
1669 "enable_
$ac_useropt"
1671 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1672 ac_unrecognized_sep
=', ';;
1674 eval enable_
$ac_useropt=\
$ac_optarg ;;
1676 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1677 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1678 |
--exec |
--exe |
--ex)
1679 ac_prev
=exec_prefix
;;
1680 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1681 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1682 |
--exec=* |
--exe=* |
--ex=*)
1683 exec_prefix
=$ac_optarg ;;
1685 -gas |
--gas |
--ga |
--g)
1686 # Obsolete; use --with-gas.
1689 -help |
--help |
--hel |
--he |
-h)
1690 ac_init_help
=long
;;
1691 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1692 ac_init_help
=recursive
;;
1693 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1694 ac_init_help
=short
;;
1696 -host |
--host |
--hos |
--ho)
1697 ac_prev
=host_alias
;;
1698 -host=* |
--host=* |
--hos=* |
--ho=*)
1699 host_alias
=$ac_optarg ;;
1701 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1703 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1705 htmldir
=$ac_optarg ;;
1707 -includedir |
--includedir |
--includedi |
--included |
--include \
1708 |
--includ |
--inclu |
--incl |
--inc)
1709 ac_prev
=includedir
;;
1710 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1711 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1712 includedir
=$ac_optarg ;;
1714 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1716 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1717 infodir
=$ac_optarg ;;
1719 -libdir |
--libdir |
--libdi |
--libd)
1721 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1722 libdir
=$ac_optarg ;;
1724 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1725 |
--libexe |
--libex |
--libe)
1726 ac_prev
=libexecdir
;;
1727 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1728 |
--libexe=* |
--libex=* |
--libe=*)
1729 libexecdir
=$ac_optarg ;;
1731 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1732 ac_prev
=localedir
;;
1733 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1734 localedir
=$ac_optarg ;;
1736 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1737 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1738 ac_prev
=localstatedir
;;
1739 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1740 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1741 localstatedir
=$ac_optarg ;;
1743 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1745 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1746 mandir
=$ac_optarg ;;
1748 -nfp |
--nfp |
--nf)
1749 # Obsolete; use --without-fp.
1752 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1753 |
--no-cr |
--no-c |
-n)
1756 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1757 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1760 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1761 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1762 |
--oldin |
--oldi |
--old |
--ol |
--o)
1763 ac_prev
=oldincludedir
;;
1764 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1765 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1766 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1767 oldincludedir
=$ac_optarg ;;
1769 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1771 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1772 prefix
=$ac_optarg ;;
1774 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1775 |
--program-pre |
--program-pr |
--program-p)
1776 ac_prev
=program_prefix
;;
1777 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1778 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1779 program_prefix
=$ac_optarg ;;
1781 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1782 |
--program-suf |
--program-su |
--program-s)
1783 ac_prev
=program_suffix
;;
1784 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1785 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1786 program_suffix
=$ac_optarg ;;
1788 -program-transform-name |
--program-transform-name \
1789 |
--program-transform-nam |
--program-transform-na \
1790 |
--program-transform-n |
--program-transform- \
1791 |
--program-transform |
--program-transfor \
1792 |
--program-transfo |
--program-transf \
1793 |
--program-trans |
--program-tran \
1794 |
--progr-tra |
--program-tr |
--program-t)
1795 ac_prev
=program_transform_name
;;
1796 -program-transform-name=* |
--program-transform-name=* \
1797 |
--program-transform-nam=* |
--program-transform-na=* \
1798 |
--program-transform-n=* |
--program-transform-=* \
1799 |
--program-transform=* |
--program-transfor=* \
1800 |
--program-transfo=* |
--program-transf=* \
1801 |
--program-trans=* |
--program-tran=* \
1802 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1803 program_transform_name
=$ac_optarg ;;
1805 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1807 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1808 pdfdir
=$ac_optarg ;;
1810 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1812 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1815 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1816 |
-silent |
--silent |
--silen |
--sile |
--sil)
1819 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1821 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1823 sbindir
=$ac_optarg ;;
1825 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1826 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1827 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1829 ac_prev
=sharedstatedir
;;
1830 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1831 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1832 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1834 sharedstatedir
=$ac_optarg ;;
1836 -site |
--site |
--sit)
1838 -site=* |
--site=* |
--sit=*)
1841 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1843 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1844 srcdir
=$ac_optarg ;;
1846 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1847 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1848 ac_prev
=sysconfdir
;;
1849 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1850 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1851 sysconfdir
=$ac_optarg ;;
1853 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1854 ac_prev
=target_alias
;;
1855 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1856 target_alias
=$ac_optarg ;;
1858 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1861 -version |
--version |
--versio |
--versi |
--vers |
-V)
1862 ac_init_version
=: ;;
1865 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1866 # Reject names that are not valid shell variable names.
1867 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1868 as_fn_error
"invalid package name: $ac_useropt"
1869 ac_useropt_orig
=$ac_useropt
1870 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1871 case $ac_user_opts in
1875 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1876 ac_unrecognized_sep
=', ';;
1878 eval with_
$ac_useropt=\
$ac_optarg ;;
1880 -without-* |
--without-*)
1881 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1882 # Reject names that are not valid shell variable names.
1883 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1884 as_fn_error
"invalid package name: $ac_useropt"
1885 ac_useropt_orig
=$ac_useropt
1886 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1887 case $ac_user_opts in
1891 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1892 ac_unrecognized_sep
=', ';;
1894 eval with_
$ac_useropt=no
;;
1897 # Obsolete; use --with-x.
1900 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1901 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1902 ac_prev
=x_includes
;;
1903 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1904 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1905 x_includes
=$ac_optarg ;;
1907 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1908 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1909 ac_prev
=x_libraries
;;
1910 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1911 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1912 x_libraries
=$ac_optarg ;;
1914 -*) as_fn_error
"unrecognized option: \`$ac_option'
1915 Try \`$0 --help' for more information."
1919 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1920 # Reject names that are not valid shell variable names.
1921 case $ac_envvar in #(
1922 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1923 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1925 eval $ac_envvar=\
$ac_optarg
1926 export $ac_envvar ;;
1929 # FIXME: should be removed in autoconf 3.0.
1930 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1931 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1932 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1933 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1939 if test -n "$ac_prev"; then
1940 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1941 as_fn_error
"missing argument to $ac_option"
1944 if test -n "$ac_unrecognized_opts"; then
1945 case $enable_option_checking in
1947 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1948 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1952 # Check all directory arguments for consistency.
1953 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1954 datadir sysconfdir sharedstatedir localstatedir includedir \
1955 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1956 libdir localedir mandir
1958 eval ac_val
=\$
$ac_var
1959 # Remove trailing slashes.
1962 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1963 eval $ac_var=\
$ac_val;;
1965 # Be sure to have absolute directory names.
1967 [\\/$
]* | ?
:[\\/]* ) continue;;
1968 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1970 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1973 # There might be people who depend on the old broken behavior: `$host'
1974 # used to hold the argument of --host etc.
1975 # FIXME: To remove some day.
1978 target
=$target_alias
1980 # FIXME: To remove some day.
1981 if test "x$host_alias" != x
; then
1982 if test "x$build_alias" = x
; then
1983 cross_compiling
=maybe
1984 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1985 If a cross compiler is detected then cross compile mode will be used." >&2
1986 elif test "x$build_alias" != "x$host_alias"; then
1992 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1994 test "$silent" = yes && exec 6>/dev
/null
1997 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1998 ac_ls_di
=`ls -di .` &&
1999 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
2000 as_fn_error
"working directory cannot be determined"
2001 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
2002 as_fn_error
"pwd does not report name of working directory"
2005 # Find the source files, if location was not specified.
2006 if test -z "$srcdir"; then
2007 ac_srcdir_defaulted
=yes
2008 # Try the directory containing this script, then the parent directory.
2009 ac_confdir
=`$as_dirname -- "$as_myself" ||
2010 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2011 X"$as_myself" : 'X\(//\)[^/]' \| \
2012 X"$as_myself" : 'X\(//\)$' \| \
2013 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
2014 $as_echo X"$as_myself" |
2015 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2033 if test ! -r "$srcdir/$ac_unique_file"; then
2037 ac_srcdir_defaulted
=no
2039 if test ! -r "$srcdir/$ac_unique_file"; then
2040 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
2041 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
2043 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
2045 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
2047 # When building in place, set srcdir=.
2048 if test "$ac_abs_confdir" = "$ac_pwd"; then
2051 # Remove unnecessary trailing slashes from srcdir.
2052 # Double slashes in file names in object file debugging info
2053 # mess up M-x gdb in Emacs.
2055 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
2057 for ac_var
in $ac_precious_vars; do
2058 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
2059 eval ac_env_
${ac_var}_value
=\$
${ac_var}
2060 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
2061 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
2065 # Report the --help message.
2067 if test "$ac_init_help" = "long"; then
2068 # Omit some internal or obsolete options to make the list less imposing.
2069 # This message is too long to be a string in the A/UX 3.1 sh.
2071 \`configure' configures emacs 24.3.50 to adapt to many kinds of systems.
2073 Usage: $0 [OPTION]... [VAR=VALUE]...
2075 To assign environment variables (e.g., CC, CFLAGS...), specify them as
2076 VAR=VALUE. See below for descriptions of some of the useful variables.
2078 Defaults for the options are specified in brackets.
2081 -h, --help display this help and exit
2082 --help=short display options specific to this package
2083 --help=recursive display the short help of all the included packages
2084 -V, --version display version information and exit
2085 -q, --quiet, --silent do not print \`checking...' messages
2086 --cache-file=FILE cache test results in FILE [disabled]
2087 -C, --config-cache alias for \`--cache-file=config.cache'
2088 -n, --no-create do not create output files
2089 --srcdir=DIR find the sources in DIR [configure dir or \`..']
2091 Installation directories:
2092 --prefix=PREFIX install architecture-independent files in PREFIX
2093 [$ac_default_prefix]
2094 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
2097 By default, \`make install' will install all the files in
2098 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
2099 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
2100 for instance \`--prefix=\$HOME'.
2102 For better control, use the options below.
2104 Fine tuning of the installation directories:
2105 --bindir=DIR user executables [EPREFIX/bin]
2106 --sbindir=DIR system admin executables [EPREFIX/sbin]
2107 --libexecdir=DIR program executables [EPREFIX/libexec]
2108 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
2109 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
2110 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
2111 --libdir=DIR object code libraries [EPREFIX/lib]
2112 --includedir=DIR C header files [PREFIX/include]
2113 --oldincludedir=DIR C header files for non-gcc [/usr/include]
2114 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
2115 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
2116 --infodir=DIR info documentation [DATAROOTDIR/info]
2117 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
2118 --mandir=DIR man documentation [DATAROOTDIR/man]
2119 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
2120 --htmldir=DIR html documentation [DOCDIR]
2121 --dvidir=DIR dvi documentation [DOCDIR]
2122 --pdfdir=DIR pdf documentation [DOCDIR]
2123 --psdir=DIR ps documentation [DOCDIR]
2129 --program-prefix=PREFIX prepend PREFIX to installed program names
2130 --program-suffix=SUFFIX append SUFFIX to installed program names
2131 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
2134 --x-includes=DIR X include files are
in DIR
2135 --x-libraries=DIR X library files are
in DIR
2138 --build=BUILD configure
for building on BUILD
[guessed
]
2139 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
2143 if test -n "$ac_init_help"; then
2144 case $ac_init_help in
2145 short | recursive
) echo "Configuration of emacs 24.3.50:";;
2150 --disable-option-checking ignore unrecognized
--enable/--with options
2151 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
2152 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
2153 --disable-ns-self-contained
2154 disable self contained build under NeXTstep
2155 --enable-locallisppath=PATH
2156 directories Emacs should search
for lisp files
2157 specific to this site
2158 --enable-checking[=LIST
]
2159 enable expensive run-time checks. With LIST
, enable
2160 only specific categories of checks. Categories are
:
2161 all
,yes,no. Flags are
: stringbytes
, stringoverrun
,
2162 stringfreelist
, xmallocoverrun
, conslist
, glyphs
2163 --enable-check-lisp-object-type
2164 enable compile
time checks
for the Lisp_Object data
2165 type. This is useful
for development
for catching
2166 certain types of bugs.
2167 --enable-profiling build emacs with low-level
, gprof profiling support.
2168 Mainly useful
for debugging Emacs itself. May not
2169 work on all platforms. Stops profiler.el working.
2170 --enable-autodepend automatically generate dependencies to .h-files.
2171 Requires GNU Make and Gcc. Enabled
if GNU Make and
2173 --enable-gtk-deprecation-warnings
2174 Show Gtk
+/Gdk deprecation warnings
for Gtk
+ >= 3.0
2175 --disable-dependency-tracking speeds up one-time build
2176 --enable-dependency-tracking do not reject slow dependency extractors
2177 --disable-largefile omit support
for large files
2178 --enable-gcc-warnings turn on lots of GCC warnings
/errors. This is
2179 intended
for developers
, and may generate false
2180 alarms when used with older or non-GNU development
2182 --enable-link-time-optimization
2183 build emacs with link-time optimization. This is
2184 supported only
for GCC since
4.5.0.
2187 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
2188 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
2189 --without-all omit almost all features and build small executable
2190 with minimal dependencies
2191 --without-pop don
't support POP mail retrieval with movemail
2192 --with-kerberos support Kerberos-authenticated POP
2193 --with-kerberos5 support Kerberos version 5 authenticated POP
2194 --with-hesiod support Hesiod to get the POP server host
2195 --with-mmdf support MMDF mailboxes
2196 --with-mail-unlink unlink, rather than empty, mail spool after reading
2197 --with-mailhost=HOSTNAME
2198 string giving default POP mail host
2199 --without-sound don't compile with sound support
2200 --with-x-toolkit=KIT use an X toolkit
(KIT one of
: yes or gtk
, gtk2
,
2201 gtk3
, lucid or athena
, motif
, no
)
2202 --with-wide-int prefer wide Emacs integers
(typically
62-bit)
2203 --without-xpm don
't compile with XPM image support
2204 --without-jpeg don't compile with JPEG image support
2205 --without-tiff don
't compile with TIFF image support
2206 --without-gif don't compile with GIF image support
2207 --without-png don
't compile with PNG image support
2208 --without-rsvg don't compile with SVG image support
2209 --without-xml2 don
't compile with XML parsing support
2210 --without-imagemagick don't compile with ImageMagick image support
2211 --without-xft don
't use XFT for anti aliased fonts
2212 --without-libotf don't use libotf
for OpenType font support
2213 --without-m17n-flt don
't use m17n-flt for text shaping
2214 --without-toolkit-scroll-bars
2215 don't use Motif or Xaw3d scroll bars
2216 --without-xaw3d don
't use Xaw3d
2217 --without-xim don't use X11 XIM
2218 --with-ns use NeXTstep
(Cocoa or GNUstep
) windowing system
2219 --with-w32 use native MS Windows GUI
2220 --without-gpm don
't use -lgpm for mouse support on a GNU/Linux
2222 --without-dbus don't compile with D-Bus support
2223 --without-gconf don
't compile with GConf support
2224 --without-gsettings don't compile with GSettings support
2225 --without-selinux don
't compile with SELinux support
2226 --without-acl don't compile with ACL support
2227 --without-gnutls don
't use -lgnutls for SSL/TLS support
2228 --without-inotify don't compile with inotify
(file-watch
) support
2229 --without-makeinfo don
't require makeinfo for building manuals
2230 --without-compress-info don't
compress the installed Info pages
2231 --with-pkg-config-prog=FILENAME
2232 file name of pkg-config
for finding GTK and librsvg
2233 --with-gameuser=USER user
for shared game score files
2234 --with-gnustep-conf=FILENAME
2235 name of GNUstep.conf
; default
$GNUSTEP_CONFIG_FILE,
2236 or
/etc
/GNUstep
/GNUstep.conf
2237 --with-x use the X Window System
2239 Some influential environment variables
:
2240 CC C compiler
command
2241 CFLAGS C compiler flags
2242 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
2243 nonstandard directory
<lib dir
>
2244 LIBS libraries to pass to the linker
, e.g.
-l<library
>
2245 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
2246 you have headers
in a nonstandard directory
<include dir
>
2248 XMKMF Path to xmkmf
, Makefile generator
for X Window System
2250 Use these variables to override the choices made by
`configure' or to help
2251 it to find libraries and programs with nonstandard names/locations.
2253 Report bugs to the package provider.
2258 if test "$ac_init_help" = "recursive"; then
2259 # If there are subdirs, report their specific --help.
2260 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2261 test -d "$ac_dir" ||
2262 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2267 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2269 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
2270 # A ".." for each directory in $ac_dir_suffix.
2271 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
2272 case $ac_top_builddir_sub in
2273 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2274 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2277 ac_abs_top_builddir=$ac_pwd
2278 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2279 # for backward compatibility:
2280 ac_top_builddir=$ac_top_build_prefix
2283 .) # We are building in place.
2285 ac_top_srcdir=$ac_top_builddir_sub
2286 ac_abs_top_srcdir=$ac_pwd ;;
2287 [\\/]* | ?:[\\/]* ) # Absolute name.
2288 ac_srcdir=$srcdir$ac_dir_suffix;
2289 ac_top_srcdir=$srcdir
2290 ac_abs_top_srcdir=$srcdir ;;
2292 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2293 ac_top_srcdir=$ac_top_build_prefix$srcdir
2294 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2296 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2298 cd "$ac_dir" || { ac_status=$?; continue; }
2299 # Check for guested configure.
2300 if test -f "$ac_srcdir/configure.gnu"; then
2302 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2303 elif test -f "$ac_srcdir/configure"; then
2305 $SHELL "$ac_srcdir/configure" --help=recursive
2307 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2309 cd "$ac_pwd" || { ac_status=$?; break; }
2313 test -n "$ac_init_help" && exit $ac_status
2314 if $ac_init_version; then
2316 emacs configure 24.3.50
2317 generated by GNU Autoconf 2.65
2319 Copyright (C) 2009 Free Software Foundation, Inc.
2320 This configure script is free software; the Free Software Foundation
2321 gives unlimited permission to copy, distribute and modify it.
2326 ## ------------------------ ##
2327 ## Autoconf initialization. ##
2328 ## ------------------------ ##
2330 # ac_fn_c_try_compile LINENO
2331 # --------------------------
2332 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2333 ac_fn_c_try_compile ()
2335 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2336 rm -f conftest.$ac_objext
2337 if { { ac_try="$ac_compile"
2339 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2340 *) ac_try_echo
=$ac_try;;
2342 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2343 $as_echo "$ac_try_echo"; } >&5
2344 (eval "$ac_compile") 2>conftest.err
2346 if test -s conftest.err
; then
2347 grep -v '^ *+' conftest.err
>conftest.er1
2348 cat conftest.er1
>&5
2349 mv -f conftest.er1 conftest.err
2351 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2352 test $ac_status = 0; } && {
2353 test -z "$ac_c_werror_flag" ||
2354 test ! -s conftest.err
2355 } && test -s conftest.
$ac_objext; then :
2358 $as_echo "$as_me: failed program was:" >&5
2359 sed 's/^/| /' conftest.
$ac_ext >&5
2363 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2364 as_fn_set_status
$ac_retval
2366 } # ac_fn_c_try_compile
2368 # ac_fn_c_try_cpp LINENO
2369 # ----------------------
2370 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2373 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2374 if { { ac_try
="$ac_cpp conftest.$ac_ext"
2376 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2377 *) ac_try_echo=$ac_try;;
2379 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2380 $as_echo "$ac_try_echo"; } >&5
2381 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2383 if test -s conftest.err; then
2384 grep -v '^ *+' conftest.err >conftest.er1
2385 cat conftest.er1 >&5
2386 mv -f conftest.er1 conftest.err
2388 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2389 test $ac_status = 0; } >/dev/null && {
2390 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2391 test ! -s conftest.err
2395 $as_echo "$as_me: failed program was:" >&5
2396 sed 's/^/| /' conftest.$ac_ext >&5
2400 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2401 as_fn_set_status $ac_retval
2405 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2406 # -------------------------------------------------------
2407 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2408 # the include files in INCLUDES and setting the cache variable VAR
2410 ac_fn_c_check_header_mongrel ()
2412 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2413 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2415 $as_echo_n "checking for $2... " >&6; }
2416 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2417 $as_echo_n "(cached) " >&6
2420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2421 $as_echo "$ac_res" >&6; }
2423 # Is the header compilable?
2424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2425 $as_echo_n "checking $2 usability... " >&6; }
2426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2427 /* end confdefs.h. */
2431 if ac_fn_c_try_compile "$LINENO"; then :
2432 ac_header_compiler=yes
2434 ac_header_compiler=no
2436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2438 $as_echo "$ac_header_compiler" >&6; }
2440 # Is the header present?
2441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2442 $as_echo_n "checking $2 presence... " >&6; }
2443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2444 /* end confdefs.h. */
2447 if ac_fn_c_try_cpp "$LINENO"; then :
2448 ac_header_preproc=yes
2450 ac_header_preproc=no
2452 rm -f conftest.err conftest.$ac_ext
2453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2454 $as_echo "$ac_header_preproc" >&6; }
2456 # So? What about this header?
2457 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2459 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2460 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2461 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2462 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2465 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2466 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2467 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2468 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2469 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2470 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2471 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2472 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2473 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2474 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2478 $as_echo_n "checking for $2... " >&6; }
2479 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2480 $as_echo_n "(cached) " >&6
2482 eval "$3=\$ac_header_compiler"
2485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2486 $as_echo "$ac_res" >&6; }
2488 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2490 } # ac_fn_c_check_header_mongrel
2492 # ac_fn_c_try_run LINENO
2493 # ----------------------
2494 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2495 # that executables *can* be run.
2498 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2499 if { { ac_try="$ac_link"
2501 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2502 *) ac_try_echo
=$ac_try;;
2504 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2505 $as_echo "$ac_try_echo"; } >&5
2506 (eval "$ac_link") 2>&5
2508 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2509 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
2510 { { case "(($ac_try" in
2511 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2512 *) ac_try_echo=$ac_try;;
2514 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2515 $as_echo "$ac_try_echo"; } >&5
2516 (eval "$ac_try") 2>&5
2518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2519 test $ac_status = 0; }; }; then :
2522 $as_echo "$as_me: program exited with status $ac_status" >&5
2523 $as_echo "$as_me: failed program was:" >&5
2524 sed 's/^/| /' conftest.$ac_ext >&5
2526 ac_retval=$ac_status
2528 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2529 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2530 as_fn_set_status $ac_retval
2534 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2535 # -------------------------------------------------------
2536 # Tests whether HEADER exists and can be compiled using the include files in
2537 # INCLUDES, setting the cache variable VAR accordingly.
2538 ac_fn_c_check_header_compile ()
2540 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2542 $as_echo_n "checking for $2... " >&6; }
2543 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2544 $as_echo_n "(cached) " >&6
2546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2547 /* end confdefs.h. */
2551 if ac_fn_c_try_compile "$LINENO"; then :
2556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2560 $as_echo "$ac_res" >&6; }
2561 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2563 } # ac_fn_c_check_header_compile
2565 # ac_fn_c_try_link LINENO
2566 # -----------------------
2567 # Try to link conftest.$ac_ext, and return whether this succeeded.
2570 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2571 rm -f conftest.$ac_objext conftest$ac_exeext
2572 if { { ac_try="$ac_link"
2574 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2575 *) ac_try_echo
=$ac_try;;
2577 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2578 $as_echo "$ac_try_echo"; } >&5
2579 (eval "$ac_link") 2>conftest.err
2581 if test -s conftest.err
; then
2582 grep -v '^ *+' conftest.err
>conftest.er1
2583 cat conftest.er1
>&5
2584 mv -f conftest.er1 conftest.err
2586 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2587 test $ac_status = 0; } && {
2588 test -z "$ac_c_werror_flag" ||
2589 test ! -s conftest.err
2590 } && test -s conftest
$ac_exeext && {
2591 test "$cross_compiling" = yes ||
2592 $as_test_x conftest
$ac_exeext
2596 $as_echo "$as_me: failed program was:" >&5
2597 sed 's/^/| /' conftest.
$ac_ext >&5
2601 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2602 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2603 # interfere with the next link command; also delete a directory that is
2604 # left behind by Apple's compiler. We do this before executing the actions.
2605 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2606 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2607 as_fn_set_status
$ac_retval
2609 } # ac_fn_c_try_link
2611 # ac_fn_c_check_decl LINENO SYMBOL VAR
2612 # ------------------------------------
2613 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2614 ac_fn_c_check_decl
()
2616 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2618 $as_echo_n "checking whether $2 is declared... " >&6; }
2619 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2620 $as_echo_n "(cached) " >&6
2622 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2623 /* end confdefs.h. */
2636 if ac_fn_c_try_compile
"$LINENO"; then :
2641 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2645 $as_echo "$ac_res" >&6; }
2646 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2648 } # ac_fn_c_check_decl
2650 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2651 # ----------------------------------------------
2652 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2653 ac_fn_c_check_header_preproc
()
2655 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2657 $as_echo_n "checking for $2... " >&6; }
2658 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2659 $as_echo_n "(cached) " >&6
2661 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2662 /* end confdefs.h. */
2665 if ac_fn_c_try_cpp
"$LINENO"; then :
2670 rm -f conftest.err conftest.
$ac_ext
2673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2674 $as_echo "$ac_res" >&6; }
2675 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2677 } # ac_fn_c_check_header_preproc
2679 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2680 # ----------------------------------------------------
2681 # Tries to find if the field MEMBER exists in type AGGR, after including
2682 # INCLUDES, setting cache variable VAR accordingly.
2683 ac_fn_c_check_member
()
2685 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2687 $as_echo_n "checking for $2.$3... " >&6; }
2688 if { as_var
=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2689 $as_echo_n "(cached) " >&6
2691 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2692 /* end confdefs.h. */
2704 if ac_fn_c_try_compile
"$LINENO"; then :
2707 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2708 /* end confdefs.h. */
2714 if (sizeof ac_aggr.$3)
2720 if ac_fn_c_try_compile
"$LINENO"; then :
2725 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2727 rm -f core conftest.err conftest.
$ac_objext 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_member
2736 # ac_fn_c_check_func LINENO FUNC VAR
2737 # ----------------------------------
2738 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2739 ac_fn_c_check_func
()
2741 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2743 $as_echo_n "checking for $2... " >&6; }
2744 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2745 $as_echo_n "(cached) " >&6
2747 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2748 /* end confdefs.h. */
2749 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2750 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2751 #define $2 innocuous_$2
2753 /* System header to define __stub macros and hopefully few prototypes,
2754 which can conflict with char $2 (); below.
2755 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2756 <limits.h> exists even on freestanding compilers. */
2759 # include <limits.h>
2761 # include <assert.h>
2766 /* Override any GCC internal prototype to avoid an error.
2767 Use char because int might match the return type of a GCC
2768 builtin and then its argument prototype would still apply. */
2773 /* The GNU C library defines this for functions which it implements
2774 to always fail with ENOSYS. Some functions are actually named
2775 something starting with __ and the normal name is an alias. */
2776 #if defined __stub_$2 || defined __stub___$2
2788 if ac_fn_c_try_link
"$LINENO"; then :
2793 rm -f core conftest.err conftest.
$ac_objext \
2794 conftest
$ac_exeext conftest.
$ac_ext
2797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2798 $as_echo "$ac_res" >&6; }
2799 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2801 } # ac_fn_c_check_func
2803 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2804 # -------------------------------------------
2805 # Tests whether TYPE exists after having included INCLUDES, setting cache
2806 # variable VAR accordingly.
2807 ac_fn_c_check_type
()
2809 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2811 $as_echo_n "checking for $2... " >&6; }
2812 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2813 $as_echo_n "(cached) " >&6
2816 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2817 /* end confdefs.h. */
2828 if ac_fn_c_try_compile
"$LINENO"; then :
2829 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2830 /* end confdefs.h. */
2841 if ac_fn_c_try_compile
"$LINENO"; then :
2846 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2848 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2852 $as_echo "$ac_res" >&6; }
2853 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2855 } # ac_fn_c_check_type
2857 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2858 # --------------------------------------------
2859 # Tries to find the compile-time value of EXPR in a program that includes
2860 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2862 ac_fn_c_compute_int
()
2864 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2865 if test "$cross_compiling" = yes; then
2866 # Depending upon the size, compute the lo and hi bounds.
2867 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2868 /* end confdefs.h. */
2873 static int test_array [1 - 2 * !(($2) >= 0)];
2880 if ac_fn_c_try_compile
"$LINENO"; then :
2883 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2884 /* end confdefs.h. */
2889 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2896 if ac_fn_c_try_compile
"$LINENO"; then :
2897 ac_hi
=$ac_mid; break
2899 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2900 if test $ac_lo -le $ac_mid; then
2904 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2906 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2909 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2910 /* end confdefs.h. */
2915 static int test_array [1 - 2 * !(($2) < 0)];
2922 if ac_fn_c_try_compile
"$LINENO"; then :
2925 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2926 /* end confdefs.h. */
2931 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2938 if ac_fn_c_try_compile
"$LINENO"; then :
2939 ac_lo
=$ac_mid; break
2941 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2942 if test $ac_mid -le $ac_hi; then
2946 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2948 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2953 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2955 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2956 # Binary search between lo and hi bounds.
2957 while test "x$ac_lo" != "x$ac_hi"; do
2958 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2959 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2960 /* end confdefs.h. */
2965 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2972 if ac_fn_c_try_compile
"$LINENO"; then :
2975 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2977 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2980 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2984 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2985 /* end confdefs.h. */
2987 static long int longval () { return $2; }
2988 static unsigned long int ulongval () { return $2; }
2995 FILE *f = fopen ("conftest.val", "w");
3000 long int i = longval ();
3003 fprintf (f, "%ld", i);
3007 unsigned long int i = ulongval ();
3010 fprintf (f, "%lu", i);
3012 /* Do not output a trailing newline, as this causes \r\n confusion
3013 on some platforms. */
3014 return ferror (f) || fclose (f) != 0;
3020 if ac_fn_c_try_run
"$LINENO"; then :
3021 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
3025 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
3026 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
3030 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
3031 as_fn_set_status
$ac_retval
3033 } # ac_fn_c_compute_int
3034 cat >config.log
<<_ACEOF
3035 This file contains any messages produced by compilers while
3036 running configure, to aid debugging if configure makes a mistake.
3038 It was created by emacs $as_me 24.3.50, which was
3039 generated by GNU Autoconf 2.65. Invocation command line was
3051 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3052 uname -m = `(uname -m) 2>/dev/null || echo unknown`
3053 uname -r = `(uname -r) 2>/dev/null || echo unknown`
3054 uname -s = `(uname -s) 2>/dev/null || echo unknown`
3055 uname -v = `(uname -v) 2>/dev/null || echo unknown`
3057 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3058 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3060 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3061 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3062 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3063 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3064 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3065 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3066 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3070 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3074 test -z "$as_dir" && as_dir
=.
3075 $as_echo "PATH: $as_dir"
3091 # Keep a trace of the command line.
3092 # Strip out --no-create and --no-recursion so they do not pile up.
3093 # Strip out --silent because we don't want to record it for future runs.
3094 # Also quote any args containing shell meta-characters.
3095 # Make two passes to allow for proper duplicate-argument suppression.
3099 ac_must_keep_next
=false
3105 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
3106 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
3107 |
-silent |
--silent |
--silen |
--sile |
--sil)
3110 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3113 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
3115 as_fn_append ac_configure_args1
" '$ac_arg'"
3116 if test $ac_must_keep_next = true
; then
3117 ac_must_keep_next
=false
# Got value, back to normal.
3120 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
3121 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
3122 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
3123 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
3124 case "$ac_configure_args0 " in
3125 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3128 -* ) ac_must_keep_next
=true
;;
3131 as_fn_append ac_configure_args
" '$ac_arg'"
3136 { ac_configure_args0
=; unset ac_configure_args0
;}
3137 { ac_configure_args1
=; unset ac_configure_args1
;}
3139 # When interrupted or exit'd, cleanup temporary files, and complete
3140 # config.log. We remove comments because anyway the quotes in there
3141 # would cause problems or look ugly.
3142 # WARNING: Use '\'' to represent an apostrophe within the trap.
3143 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3144 trap 'exit_status=$?
3145 # Save into config.log some information that might help in debugging.
3150 ## ---------------- ##
3151 ## Cache variables. ##
3152 ## ---------------- ##
3155 # The following way of writing the cache mishandles newlines in values,
3157 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3158 eval ac_val=\$$ac_var
3162 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3163 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3166 _ | IFS | as_nl) ;; #(
3167 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3168 *) { eval $ac_var=; unset $ac_var;} ;;
3173 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3174 *${as_nl}ac_space=\ *)
3176 "s/'\''/'\''\\\\'\'''\''/g;
3177 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3180 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3188 ## ----------------- ##
3189 ## Output variables. ##
3190 ## ----------------- ##
3193 for ac_var in $ac_subst_vars
3195 eval ac_val=\$$ac_var
3197 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3199 $as_echo "$ac_var='\''$ac_val'\''"
3203 if test -n "$ac_subst_files"; then
3205 ## ------------------- ##
3206 ## File substitutions. ##
3207 ## ------------------- ##
3210 for ac_var
in $ac_subst_files
3212 eval ac_val
=\$
$ac_var
3214 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3216 $as_echo "$ac_var='\''$ac_val'\''"
3221 if test -s confdefs.h; then
3231 test "$ac_signal" != 0 &&
3232 $as_echo "$as_me: caught signal $ac_signal"
3233 $as_echo "$as_me: exit $exit_status"
3235 rm -f core *.core core.conftest.* &&
3236 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3239 for ac_signal
in 1 2 13 15; do
3240 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3244 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3245 rm -f -r conftest
* confdefs.h
3247 $as_echo "/* confdefs.h */" > confdefs.h
3249 # Predefined preprocessor variables.
3251 cat >>confdefs.h
<<_ACEOF
3252 #define PACKAGE_NAME "$PACKAGE_NAME"
3255 cat >>confdefs.h
<<_ACEOF
3256 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3259 cat >>confdefs.h
<<_ACEOF
3260 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3263 cat >>confdefs.h
<<_ACEOF
3264 #define PACKAGE_STRING "$PACKAGE_STRING"
3267 cat >>confdefs.h
<<_ACEOF
3268 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3271 cat >>confdefs.h
<<_ACEOF
3272 #define PACKAGE_URL "$PACKAGE_URL"
3276 # Let the site file select an alternate cache file if it wants to.
3277 # Prefer an explicitly selected file to automatically selected ones.
3280 if test -n "$CONFIG_SITE"; then
3281 ac_site_file1
=$CONFIG_SITE
3282 elif test "x$prefix" != xNONE
; then
3283 ac_site_file1
=$prefix/share
/config.site
3284 ac_site_file2
=$prefix/etc
/config.site
3286 ac_site_file1
=$ac_default_prefix/share
/config.site
3287 ac_site_file2
=$ac_default_prefix/etc
/config.site
3289 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
3291 test "x$ac_site_file" = xNONE
&& continue
3292 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3294 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3295 sed 's/^/| /' "$ac_site_file" >&5
3300 if test -r "$cache_file"; then
3301 # Some versions of bash will fail to source /dev/null (special files
3302 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3303 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
3304 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3305 $as_echo "$as_me: loading cache $cache_file" >&6;}
3307 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
3308 *) .
"./$cache_file";;
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3313 $as_echo "$as_me: creating cache $cache_file" >&6;}
3317 as_fn_append ac_header_list
" linux/version.h"
3318 as_fn_append ac_header_list
" sys/systeminfo.h"
3319 as_fn_append ac_header_list
" coff.h"
3320 as_fn_append ac_header_list
" pty.h"
3321 as_fn_append ac_header_list
" sys/resource.h"
3322 as_fn_append ac_header_list
" sys/utsname.h"
3323 as_fn_append ac_header_list
" pwd.h"
3324 as_fn_append ac_header_list
" utmp.h"
3325 as_fn_append ac_header_list
" util.h"
3326 as_fn_append ac_header_list
" sys/socket.h"
3327 as_fn_append ac_header_list
" stdlib.h"
3328 as_fn_append ac_header_list
" unistd.h"
3329 as_fn_append ac_header_list
" sys/param.h"
3330 as_fn_append ac_header_list
" pthread.h"
3331 as_fn_append ac_header_list
" malloc/malloc.h"
3332 as_fn_append ac_header_list
" maillock.h"
3333 as_fn_append ac_header_list
" sys/un.h"
3334 as_fn_append ac_func_list
" tzset"
3335 as_fn_append ac_func_list
" readlinkat"
3336 as_fn_append ac_header_list
" dirent.h"
3337 as_fn_append ac_header_list
" execinfo.h"
3338 as_fn_append ac_func_list
" faccessat"
3339 as_fn_append ac_func_list
" fdopendir"
3340 as_fn_append ac_header_list
" stdio_ext.h"
3341 as_fn_append ac_func_list
" __fpending"
3342 as_fn_append ac_func_list
" fstatat"
3343 gl_getopt_required
=GNU
3344 as_fn_append ac_header_list
" getopt.h"
3345 as_fn_append ac_func_list
" gettimeofday"
3346 as_fn_append ac_func_list
" nanotime"
3347 as_fn_append ac_header_list
" sys/time.h"
3348 as_fn_append ac_header_list
" wchar.h"
3349 as_fn_append ac_header_list
" stdint.h"
3350 as_fn_append ac_header_list
" inttypes.h"
3351 as_fn_append ac_func_list
" lstat"
3352 as_fn_append ac_func_list
" alarm"
3353 as_fn_append ac_header_list
" sys/select.h"
3354 as_fn_append ac_func_list
" pselect"
3355 as_fn_append ac_func_list
" pthread_sigmask"
3356 as_fn_append ac_func_list
" readlink"
3357 as_fn_append ac_func_list
" strtoimax"
3358 as_fn_append ac_func_list
" strtoumax"
3359 as_fn_append ac_func_list
" symlink"
3360 as_fn_append ac_header_list
" sys/stat.h"
3361 as_fn_append ac_func_list
" localtime_r"
3362 as_fn_append ac_header_list
" utime.h"
3363 as_fn_append ac_func_list
" futimes"
3364 as_fn_append ac_func_list
" futimesat"
3365 as_fn_append ac_func_list
" futimens"
3366 as_fn_append ac_func_list
" utimensat"
3367 as_fn_append ac_func_list
" lutimes"
3368 # Check that the precious variables saved in the cache have kept the same
3370 ac_cache_corrupted
=false
3371 for ac_var
in $ac_precious_vars; do
3372 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
3373 eval ac_new_set
=\
$ac_env_${ac_var}_set
3374 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
3375 eval ac_new_val
=\
$ac_env_${ac_var}_value
3376 case $ac_old_set,$ac_new_set in
3378 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3379 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3380 ac_cache_corrupted
=: ;;
3382 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3383 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3384 ac_cache_corrupted
=: ;;
3387 if test "x$ac_old_val" != "x$ac_new_val"; then
3388 # differences in whitespace do not lead to failure.
3389 ac_old_val_w
=`echo x $ac_old_val`
3390 ac_new_val_w
=`echo x $ac_new_val`
3391 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3392 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3393 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3394 ac_cache_corrupted
=:
3396 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3397 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3398 eval $ac_var=\
$ac_old_val
3400 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3401 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3403 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3406 # Pass precious variables to config.status.
3407 if test "$ac_new_set" = set; then
3409 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3410 *) ac_arg
=$ac_var=$ac_new_val ;;
3412 case " $ac_configure_args " in
3413 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3414 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
3418 if $ac_cache_corrupted; then
3419 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3420 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3421 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3422 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3423 as_fn_error
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3425 ## -------------------- ##
3426 ## Main body of script. ##
3427 ## -------------------- ##
3430 ac_cpp
='$CPP $CPPFLAGS'
3431 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3432 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3433 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3437 emacs_config_options
="$@"
3438 ## Add some environment variables, if they were passed via the environment
3439 ## rather than on the command-line.
3440 for var
in CFLAGS CPPFLAGS LDFLAGS
; do
3441 case "$emacs_config_options" in
3442 *$var=*) continue ;;
3445 test x
"$val" = x
&& continue
3446 emacs_config_options
="${emacs_config_options}${emacs_config_options:+ }$var=\"$val\""
3449 ac_config_headers
="$ac_config_headers src/config.h:src/config.in"
3453 for ac_dir
in build-aux
"$srcdir"/build-aux
; do
3454 for ac_t
in install-sh
install.sh shtool
; do
3455 if test -f "$ac_dir/$ac_t"; then
3457 ac_install_sh
="$ac_aux_dir/$ac_t -c"
3462 if test -z "$ac_aux_dir"; then
3463 as_fn_error
"cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
3466 # These three variables are undocumented and unsupported,
3467 # and are intended to be withdrawn in a future Autoconf release.
3468 # They can cause serious problems if a builder's source tree is in a directory
3469 # whose full name contains unusual characters.
3470 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3471 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3472 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3475 am__api_version
='1.11'
3477 # Find a good install program. We prefer a C program (faster),
3478 # so one script is as good as another. But avoid the broken or
3479 # incompatible versions:
3480 # SysV /etc/install, /usr/sbin/install
3481 # SunOS /usr/etc/install
3482 # IRIX /sbin/install
3484 # AmigaOS /C/install, which installs bootblocks on floppy discs
3485 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3486 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3487 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3488 # OS/2's system install, which has a completely different semantic
3489 # ./install, which can be erroneously created by make from ./install.sh.
3490 # Reject install programs that cannot install multiple files.
3491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3492 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3493 if test -z "$INSTALL"; then
3494 if test "${ac_cv_path_install+set}" = set; then :
3495 $as_echo_n "(cached) " >&6
3497 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3501 test -z "$as_dir" && as_dir
=.
3502 # Account for people who put trailing slashes in PATH elements.
3503 case $as_dir/ in #((
3504 .
/ | .
// |
/[cC
]/* | \
3505 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
3506 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
3509 # OSF1 and SCO ODT 3.0 have their own names for install.
3510 # Don't use installbsd from OSF since it installs stuff as root
3512 for ac_prog
in ginstall scoinst
install; do
3513 for ac_exec_ext
in '' $ac_executable_extensions; do
3514 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3515 if test $ac_prog = install &&
3516 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3517 # AIX install. It has an incompatible calling convention.
3519 elif test $ac_prog = install &&
3520 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3521 # program-specific install script used by HP pwplus--don't use.
3524 rm -rf conftest.one conftest.two conftest.dir
3525 echo one
> conftest.one
3526 echo two
> conftest.two
3528 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
3529 test -s conftest.one
&& test -s conftest.two
&&
3530 test -s conftest.dir
/conftest.one
&&
3531 test -s conftest.dir
/conftest.two
3533 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
3546 rm -rf conftest.one conftest.two conftest.dir
3549 if test "${ac_cv_path_install+set}" = set; then
3550 INSTALL
=$ac_cv_path_install
3552 # As a last resort, use the slow shell script. Don't cache a
3553 # value for INSTALL within a source directory, because that will
3554 # break other packages using the cache if that directory is
3555 # removed, or if the value is a relative name.
3556 INSTALL
=$ac_install_sh
3559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3560 $as_echo "$INSTALL" >&6; }
3562 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3563 # It thinks the first close brace ends the variable substitution.
3564 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3566 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3568 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3571 $as_echo_n "checking whether build environment is sane... " >&6; }
3574 echo timestamp
> conftest.
file
3575 # Reject unsafe characters in $srcdir or the absolute working directory
3576 # name. Accept space and tab only in the latter.
3580 *[\\\"\
#\$\&\'\`$am_lf]*)
3581 as_fn_error
"unsafe absolute working directory name" "$LINENO" 5;;
3584 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
3585 as_fn_error
"unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3588 # Do `set' in a subshell so we don't clobber the current shell's
3589 # arguments. Must try -L first in case configure is actually a
3590 # symlink; some systems play weird games with the mod time of symlinks
3591 # (eg FreeBSD returns the mod time of the symlink's containing
3594 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3595 if test "$*" = "X"; then
3597 set X
`ls -t "$srcdir/configure" conftest.file`
3600 if test "$*" != "X $srcdir/configure conftest.file" \
3601 && test "$*" != "X conftest.file $srcdir/configure"; then
3603 # If neither matched, then we have a broken ls. This can happen
3604 # if, for instance, CONFIG_SHELL is bash and it inherits a
3605 # broken ls alias from the environment. This has actually
3606 # happened. Such a system could not be considered "sane".
3607 as_fn_error
"ls -t appears to fail. Make sure there is not a broken
3608 alias in your environment" "$LINENO" 5
3611 test "$2" = conftest.
file
3617 as_fn_error
"newly created file is older than distributed files!
3618 Check your system clock" "$LINENO" 5
3620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3621 $as_echo "yes" >&6; }
3622 test "$program_prefix" != NONE
&&
3623 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
3624 # Use a double $ so make ignores it.
3625 test "$program_suffix" != NONE
&&
3626 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
3627 # Double any \ or $.
3628 # By default was `s,x,x', remove it if useless.
3629 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
3630 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
3632 # expand $ac_aux_dir to an absolute path
3633 am_aux_dir
=`cd $ac_aux_dir && pwd`
3635 if test x
"${MISSING+set}" != xset
; then
3638 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
3640 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
3643 # Use eval to expand $SHELL
3644 if eval "$MISSING --run true"; then
3645 am_missing_run
="$MISSING --run "
3648 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3649 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3652 if test x
"${install_sh}" != xset
; then
3655 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
3657 install_sh
="\${SHELL} $am_aux_dir/install-sh"
3661 # Installed binaries are usually stripped using `strip' when the user
3662 # run `make install-strip'. However `strip' might not be the right
3663 # tool to use in cross-compilation environments, therefore Automake
3664 # will honor the `STRIP' environment variable to overrule this program.
3665 if test "$cross_compiling" != no
; then
3666 if test -n "$ac_tool_prefix"; then
3667 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3668 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
3669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3670 $as_echo_n "checking for $ac_word... " >&6; }
3671 if test "${ac_cv_prog_STRIP+set}" = set; then :
3672 $as_echo_n "(cached) " >&6
3674 if test -n "$STRIP"; then
3675 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
3677 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3681 test -z "$as_dir" && as_dir
=.
3682 for ac_exec_ext
in '' $ac_executable_extensions; do
3683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3684 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
3685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3694 STRIP
=$ac_cv_prog_STRIP
3695 if test -n "$STRIP"; then
3696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3697 $as_echo "$STRIP" >&6; }
3699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3700 $as_echo "no" >&6; }
3705 if test -z "$ac_cv_prog_STRIP"; then
3707 # Extract the first word of "strip", so it can be a program name with args.
3708 set dummy strip
; ac_word
=$2
3709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3710 $as_echo_n "checking for $ac_word... " >&6; }
3711 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3712 $as_echo_n "(cached) " >&6
3714 if test -n "$ac_ct_STRIP"; then
3715 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
3717 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3721 test -z "$as_dir" && as_dir
=.
3722 for ac_exec_ext
in '' $ac_executable_extensions; do
3723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3724 ac_cv_prog_ac_ct_STRIP
="strip"
3725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3734 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
3735 if test -n "$ac_ct_STRIP"; then
3736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3737 $as_echo "$ac_ct_STRIP" >&6; }
3739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3740 $as_echo "no" >&6; }
3743 if test "x$ac_ct_STRIP" = x
; then
3746 case $cross_compiling:$ac_tool_warned in
3748 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3749 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3750 ac_tool_warned
=yes ;;
3755 STRIP
="$ac_cv_prog_STRIP"
3759 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
3761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3762 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3763 if test -z "$MKDIR_P"; then
3764 if test "${ac_cv_path_mkdir+set}" = set; then :
3765 $as_echo_n "(cached) " >&6
3767 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3768 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
3771 test -z "$as_dir" && as_dir
=.
3772 for ac_prog
in mkdir gmkdir
; do
3773 for ac_exec_ext
in '' $ac_executable_extensions; do
3774 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } ||
continue
3775 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3776 'mkdir (GNU coreutils) '* | \
3777 'mkdir (coreutils) '* | \
3778 'mkdir (fileutils) '4.1*)
3779 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
3789 test -d .
/--version && rmdir .
/--version
3790 if test "${ac_cv_path_mkdir+set}" = set; then
3791 MKDIR_P
="$ac_cv_path_mkdir -p"
3793 # As a last resort, use the slow shell script. Don't cache a
3794 # value for MKDIR_P within a source directory, because that will
3795 # break other packages using the cache if that directory is
3796 # removed, or if the value is a relative name.
3797 MKDIR_P
="$ac_install_sh -d"
3800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3801 $as_echo "$MKDIR_P" >&6; }
3805 [\\/$
]* | ?
:[\\/]*) ;;
3806 */*) mkdir_p
="\$(top_builddir)/$mkdir_p" ;;
3809 for ac_prog
in gawk mawk nawk
awk
3811 # Extract the first word of "$ac_prog", so it can be a program name with args.
3812 set dummy
$ac_prog; ac_word
=$2
3813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3814 $as_echo_n "checking for $ac_word... " >&6; }
3815 if test "${ac_cv_prog_AWK+set}" = set; then :
3816 $as_echo_n "(cached) " >&6
3818 if test -n "$AWK"; then
3819 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
3821 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3825 test -z "$as_dir" && as_dir
=.
3826 for ac_exec_ext
in '' $ac_executable_extensions; do
3827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3828 ac_cv_prog_AWK
="$ac_prog"
3829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3839 if test -n "$AWK"; then
3840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3841 $as_echo "$AWK" >&6; }
3843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3844 $as_echo "no" >&6; }
3848 test -n "$AWK" && break
3851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3852 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3854 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3855 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3856 $as_echo_n "(cached) " >&6
3858 cat >conftest.
make <<\_ACEOF
3861 @
echo '@@@%%%=$(MAKE)=@@@%%%'
3863 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3864 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3866 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
3868 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
3872 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
3873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3874 $as_echo "yes" >&6; }
3877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3878 $as_echo "no" >&6; }
3879 SET_MAKE
="MAKE=${MAKE-make}"
3882 rm -rf .tst
2>/dev
/null
3883 mkdir .tst
2>/dev
/null
3884 if test -d .tst
; then
3889 rmdir .tst
2>/dev
/null
3891 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3892 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3893 # is not polluted with repeated "-I."
3894 am__isrc
=' -I$(srcdir)'
3895 # test to see if srcdir already configured
3896 if test -f $srcdir/config.status
; then
3897 as_fn_error
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3901 # test whether we have cygpath
3902 if test -z "$CYGPATH_W"; then
3903 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
3904 CYGPATH_W
='cygpath -w'
3911 # Define the identity of the package.
3916 cat >>confdefs.h
<<_ACEOF
3917 #define PACKAGE "$PACKAGE"
3921 cat >>confdefs.h
<<_ACEOF
3922 #define VERSION "$VERSION"
3925 # Some tools Automake needs.
3927 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3930 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
3933 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3936 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
3939 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
3941 # We need awk for the "check" target. The system "awk" is bad on
3943 # Always define AMTAR for backward compatibility.
3945 AMTAR
=${AMTAR-"${am_missing_run}tar"}
3947 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
3956 lispdir
='${datadir}/emacs/${version}/lisp'
3957 leimdir
='${datadir}/emacs/${version}/leim'
3958 standardlisppath
='${lispdir}:${leimdir}'
3959 locallisppath
='${datadir}/emacs/${version}/site-lisp:'\
3960 '${datadir}/emacs/site-lisp'
3961 lisppath
='${locallisppath}:${standardlisppath}'
3962 etcdir
='${datadir}/emacs/${version}/etc'
3963 archlibdir
='${libexecdir}/emacs/${version}/${configuration}'
3964 docdir
='${datadir}/emacs/${version}/etc'
3965 gamedir
='${localstatedir}/games/emacs'
3968 # Check whether --with-all was given.
3969 if test "${with_all+set}" = set; then :
3970 withval
=$with_all; with_features
=$withval
3979 # Check whether --with-pop was given.
3980 if test "${with_pop+set}" = set; then :
3983 with_pop
=$with_features
3986 if test "$with_pop" = yes; then
3987 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
3992 # Check whether --with-kerberos was given.
3993 if test "${with_kerberos+set}" = set; then :
3994 withval
=$with_kerberos;
3999 if test "$with_kerberos" != no
; then
4000 $as_echo "#define KERBEROS 1" >>confdefs.h
4005 # Check whether --with-kerberos5 was given.
4006 if test "${with_kerberos5+set}" = set; then :
4007 withval
=$with_kerberos5;
4012 if test "${with_kerberos5}" != no
; then
4013 if test "${with_kerberos}" = no
; then
4015 $as_echo "#define KERBEROS 1" >>confdefs.h
4019 $as_echo "#define KERBEROS5 1" >>confdefs.h
4024 # Check whether --with-hesiod was given.
4025 if test "${with_hesiod+set}" = set; then :
4026 withval
=$with_hesiod;
4031 if test "$with_hesiod" != no
; then
4033 $as_echo "#define HESIOD 1" >>confdefs.h
4038 # Check whether --with-mmdf was given.
4039 if test "${with_mmdf+set}" = set; then :
4045 if test "$with_mmdf" != no
; then
4047 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
4052 # Check whether --with-mail-unlink was given.
4053 if test "${with_mail_unlink+set}" = set; then :
4054 withval
=$with_mail_unlink;
4059 if test "$with_mail_unlink" != no
; then
4061 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
4066 # Check whether --with-mailhost was given.
4067 if test "${with_mailhost+set}" = set; then :
4068 withval
=$with_mailhost;
4069 cat >>confdefs.h
<<_ACEOF
4070 #define MAILHOST "$withval"
4077 # Check whether --with-sound was given.
4078 if test "${with_sound+set}" = set; then :
4079 withval
=$with_sound;
4081 with_sound
=$with_features
4086 # Check whether --with-x-toolkit was given.
4087 if test "${with_x_toolkit+set}" = set; then :
4088 withval
=$with_x_toolkit; case "${withval}" in
4089 y | ye |
yes ) val
=gtk
;;
4091 l | lu | luc | luci | lucid
) val
=lucid
;;
4092 a |
at | ath | athe | athen | athena
) val
=athena
;;
4093 m | mo | mot | moti | motif
) val
=motif
;;
4094 g | gt | gtk
) val
=gtk
;;
4098 as_fn_error
"\`--with-x-toolkit=$withval' is invalid;
4099 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk',
4100 \`gtk2' or \`gtk3'. \`yes' and \`gtk' are synonyms.
4101 \`athena' and \`lucid' are synonyms." "$LINENO" 5
4110 # Check whether --with-wide-int was given.
4111 if test "${with_wide_int+set}" = set; then :
4112 withval
=$with_wide_int;
4117 if test "$with_wide_int" = yes; then
4119 $as_echo "#define WIDE_EMACS_INT 1" >>confdefs.h
4124 # Check whether --with-xpm was given.
4125 if test "${with_xpm+set}" = set; then :
4128 with_xpm
=$with_features
4132 # Check whether --with-jpeg was given.
4133 if test "${with_jpeg+set}" = set; then :
4136 with_jpeg
=$with_features
4140 # Check whether --with-tiff was given.
4141 if test "${with_tiff+set}" = set; then :
4144 with_tiff
=$with_features
4148 # Check whether --with-gif was given.
4149 if test "${with_gif+set}" = set; then :
4152 with_gif
=$with_features
4156 # Check whether --with-png was given.
4157 if test "${with_png+set}" = set; then :
4160 with_png
=$with_features
4164 # Check whether --with-rsvg was given.
4165 if test "${with_rsvg+set}" = set; then :
4168 with_rsvg
=$with_features
4172 # Check whether --with-xml2 was given.
4173 if test "${with_xml2+set}" = set; then :
4176 with_xml2
=$with_features
4180 # Check whether --with-imagemagick was given.
4181 if test "${with_imagemagick+set}" = set; then :
4182 withval
=$with_imagemagick;
4184 with_imagemagick
=$with_features
4189 # Check whether --with-xft was given.
4190 if test "${with_xft+set}" = set; then :
4193 with_xft
=$with_features
4197 # Check whether --with-libotf was given.
4198 if test "${with_libotf+set}" = set; then :
4199 withval
=$with_libotf;
4201 with_libotf
=$with_features
4205 # Check whether --with-m17n-flt was given.
4206 if test "${with_m17n_flt+set}" = set; then :
4207 withval
=$with_m17n_flt;
4209 with_m17n_flt
=$with_features
4214 # Check whether --with-toolkit-scroll-bars was given.
4215 if test "${with_toolkit_scroll_bars+set}" = set; then :
4216 withval
=$with_toolkit_scroll_bars;
4218 with_toolkit_scroll_bars
=$with_features
4222 # Check whether --with-xaw3d was given.
4223 if test "${with_xaw3d+set}" = set; then :
4224 withval
=$with_xaw3d;
4226 with_xaw3d
=$with_features
4230 # Check whether --with-xim was given.
4231 if test "${with_xim+set}" = set; then :
4234 with_xim
=$with_features
4238 # Check whether --with-ns was given.
4239 if test "${with_ns+set}" = set; then :
4246 # Check whether --with-w32 was given.
4247 if test "${with_w32+set}" = set; then :
4255 # Check whether --with-gpm was given.
4256 if test "${with_gpm+set}" = set; then :
4259 with_gpm
=$with_features
4263 # Check whether --with-dbus was given.
4264 if test "${with_dbus+set}" = set; then :
4267 with_dbus
=$with_features
4271 # Check whether --with-gconf was given.
4272 if test "${with_gconf+set}" = set; then :
4273 withval
=$with_gconf;
4275 with_gconf
=$with_features
4279 # Check whether --with-gsettings was given.
4280 if test "${with_gsettings+set}" = set; then :
4281 withval
=$with_gsettings;
4283 with_gsettings
=$with_features
4287 # Check whether --with-selinux was given.
4288 if test "${with_selinux+set}" = set; then :
4289 withval
=$with_selinux;
4291 with_selinux
=$with_features
4295 # Check whether --with-acl was given.
4296 if test "${with_acl+set}" = set; then :
4299 with_acl
=$with_features
4303 # Check whether --with-gnutls was given.
4304 if test "${with_gnutls+set}" = set; then :
4305 withval
=$with_gnutls;
4307 with_gnutls
=$with_features
4311 # Check whether --with-inotify was given.
4312 if test "${with_inotify+set}" = set; then :
4313 withval
=$with_inotify;
4315 with_inotify
=$with_features
4319 ## For the times when you want to build Emacs but don't have
4320 ## a suitable makeinfo, and can live without the manuals.
4322 # Check whether --with-makeinfo was given.
4323 if test "${with_makeinfo+set}" = set; then :
4324 withval
=$with_makeinfo;
4326 with_makeinfo
=$with_features
4330 ## Makefile.in needs the cache file name.
4333 ## This is an option because I do not know if all info/man support
4334 ## compressed files, nor how to test if they do so.
4336 # Check whether --with-compress-info was given.
4337 if test "${with_compress_info+set}" = set; then :
4338 withval
=$with_compress_info;
4340 with_compress_info
=$with_features
4343 if test $with_compress_info = yes; then
4351 # Check whether --with-pkg-config-prog was given.
4352 if test "${with_pkg_config_prog+set}" = set; then :
4353 withval
=$with_pkg_config_prog;
4356 if test "X${with_pkg_config_prog}" != X
; then
4357 if test "${with_pkg_config_prog}" != yes; then
4358 PKG_CONFIG
="${with_pkg_config_prog}"
4363 # Check whether --with-gameuser was given.
4364 if test "${with_gameuser+set}" = set; then :
4365 withval
=$with_gameuser;
4368 test "X${with_gameuser}" != X
&& test "${with_gameuser}" != yes \
4369 && gameuser
="${with_gameuser}"
4370 test "X$gameuser" = X
&& gameuser
=games
4373 # Check whether --with-gnustep-conf was given.
4374 if test "${with_gnustep_conf+set}" = set; then :
4375 withval
=$with_gnustep_conf;
4378 test "X${with_gnustep_conf}" != X
&& test "${with_gnustep_conf}" != yes && \
4379 GNUSTEP_CONFIG_FILE
="${with_gnustep_conf}"
4380 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
4381 GNUSTEP_CONFIG_FILE
=/etc
/GNUstep
/GNUstep.conf
4383 # Check whether --enable-ns-self-contained was given.
4384 if test "${enable_ns_self_contained+set}" = set; then :
4385 enableval
=$enable_ns_self_contained; EN_NS_SELF_CONTAINED
=$enableval
4387 EN_NS_SELF_CONTAINED
=yes
4391 # Check whether --enable-locallisppath was given.
4392 if test "${enable_locallisppath+set}" = set; then :
4393 enableval
=$enable_locallisppath; if test "${enableval}" = "no"; then
4395 elif test "${enableval}" != "yes"; then
4396 locallisppath
=${enableval}
4401 # Check whether --enable-checking was given.
4402 if test "${enable_checking+set}" = set; then :
4403 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
4406 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
4407 for check
in $ac_checking_flags
4410 # these set all the flags to specific states
4411 yes) ac_enable_checking
=1 ;;
4412 no
) ac_enable_checking
= ;
4413 ac_gc_check_stringbytes
= ;
4414 ac_gc_check_string_overrun
= ;
4415 ac_gc_check_string_free_list
= ;
4416 ac_xmalloc_overrun
= ;
4417 ac_gc_check_cons_list
= ;
4419 all
) ac_enable_checking
=1 ;
4420 ac_gc_check_stringbytes
=1 ;
4421 ac_gc_check_string_overrun
=1 ;
4422 ac_gc_check_string_free_list
=1 ;
4423 ac_xmalloc_overrun
=1 ;
4424 ac_gc_check_cons_list
=1 ;
4425 ac_glyphs_debug
=1 ;;
4426 # these enable particular checks
4427 stringbytes
) ac_gc_check_stringbytes
=1 ;;
4428 stringoverrun
) ac_gc_check_string_overrun
=1 ;;
4429 stringfreelist
) ac_gc_check_string_free_list
=1 ;;
4430 xmallocoverrun
) ac_xmalloc_overrun
=1 ;;
4431 conslist
) ac_gc_check_cons_list
=1 ;;
4432 glyphs
) ac_glyphs_debug
=1 ;;
4433 *) as_fn_error
"unknown check category $check" "$LINENO" 5 ;;
4438 if test x
$ac_enable_checking != x
; then
4440 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
4443 if test x
$ac_gc_check_stringbytes != x
; then
4445 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
4448 if test x
$ac_gc_check_string_overrun != x
; then
4450 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
4453 if test x
$ac_gc_check_string_free_list != x
; then
4455 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
4458 if test x
$ac_xmalloc_overrun != x
; then
4460 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
4463 if test x
$ac_gc_check_cons_list != x
; then
4465 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
4468 if test x
$ac_glyphs_debug != x
; then
4470 $as_echo "#define GLYPH_DEBUG 1" >>confdefs.h
4474 # Check whether --enable-check-lisp-object-type was given.
4475 if test "${enable_check_lisp_object_type+set}" = set; then :
4476 enableval
=$enable_check_lisp_object_type; if test "${enableval}" != "no"; then
4478 $as_echo "#define CHECK_LISP_OBJECT_TYPE 1" >>confdefs.h
4485 # Check whether --enable-profiling was given.
4486 if test "${enable_profiling+set}" = set; then :
4487 enableval
=$enable_profiling; ac_enable_profiling
="${enableval}"
4490 if test x
$ac_enable_profiling != x
; then
4491 PROFILING_CFLAGS
="-DPROFILING=1 -pg"
4497 # Check whether --enable-autodepend was given.
4498 if test "${enable_autodepend+set}" = set; then :
4499 enableval
=$enable_autodepend; ac_enable_autodepend
="${enableval}"
4501 ac_enable_autodepend
=yes
4505 # Check whether --enable-gtk-deprecation-warnings was given.
4506 if test "${enable_gtk_deprecation_warnings+set}" = set; then :
4507 enableval
=$enable_gtk_deprecation_warnings; ac_enable_gtk_deprecation_warnings
="${enableval}"
4511 #### Make srcdir absolute, if it isn't already. It's important to
4512 #### avoid running the file name through pwd unnecessarily, since pwd can
4513 #### give you automounter prefixes, which can go away. We do all this
4514 #### so Emacs can find its files when run uninstalled.
4515 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
4520 ## We may be able to use the $PWD environment variable to make this
4521 ## absolute. But sometimes PWD is inaccurate.
4522 ## Note: we used to use $PWD at the end instead of `pwd`,
4523 ## but that tested only for a well-formed and valid PWD,
4524 ## it did not object when PWD was well-formed and valid but just wrong.
4525 if test ".$PWD" != "." && test ".`(cd "$PWD" ; sh -c pwd)`" = ".`pwd`" ;
4529 srcdir
=`(cd "$srcdir"; pwd)`
4532 * ) srcdir
=`(cd "$srcdir"; pwd)` ;;
4535 ### Canonicalize the configuration name.
4537 # Make sure we can run config.sub.
4538 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
4539 as_fn_error
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4542 $as_echo_n "checking build system type... " >&6; }
4543 if test "${ac_cv_build+set}" = set; then :
4544 $as_echo_n "(cached) " >&6
4546 ac_build_alias
=$build_alias
4547 test "x$ac_build_alias" = x
&&
4548 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
4549 test "x$ac_build_alias" = x
&&
4550 as_fn_error
"cannot guess build type; you must specify one" "$LINENO" 5
4551 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4552 as_fn_error
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4556 $as_echo "$ac_cv_build" >&6; }
4557 case $ac_cv_build in
4559 *) as_fn_error
"invalid value of canonical build" "$LINENO" 5;;
4562 ac_save_IFS
=$IFS; IFS
='-'
4568 # Remember, the first character of IFS is used to create $*,
4569 # except with old shells:
4572 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4576 $as_echo_n "checking host system type... " >&6; }
4577 if test "${ac_cv_host+set}" = set; then :
4578 $as_echo_n "(cached) " >&6
4580 if test "x$host_alias" = x
; then
4581 ac_cv_host
=$ac_cv_build
4583 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4584 as_fn_error
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4589 $as_echo "$ac_cv_host" >&6; }
4592 *) as_fn_error
"invalid value of canonical host" "$LINENO" 5;;
4595 ac_save_IFS
=$IFS; IFS
='-'
4601 # Remember, the first character of IFS is used to create $*,
4602 # except with old shells:
4605 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
4609 configuration
=${host_alias-${build_alias-$host}}
4613 ### If you add support for a new configuration, add code to this
4614 ### switch statement to recognize your configuration name and select
4615 ### the appropriate operating system file.
4617 ### You would hope that you could choose an s/*.h
4618 ### file based on the operating system portion. However, it turns out
4619 ### that each s/*.h file is pretty manufacturer-specific.
4620 ### So we basically have to have a special case for each
4621 ### configuration name.
4623 ### As far as handling version numbers on operating systems is
4624 ### concerned, make sure things will fail in a fixable way. If
4625 ### /etc/MACHINES doesn't say anything about version numbers, be
4626 ### prepared to handle anything reasonably. If version numbers
4627 ### matter, be sure /etc/MACHINES says something about it.
4629 opsys
='' unported
=no
4630 case "${canonical}" in
4632 ## GNU/Linux and similar ports
4642 ## FreeBSD kernel + glibc based userland
4657 ## Apple Darwin / Mac OS X
4659 case "${canonical}" in
4666 ## Use fink packages if available.
4667 ## FIXME find a better way to do this: http://debbugs.gnu.org/11507
4668 ## if test -d /sw/include && test -d /sw/lib; then
4669 ## GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
4670 ## NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
4674 ## HP 9000 series 700 and 800, running HP/UX
4675 hppa
*-hp-hpux10.2
* )
4678 hppa
*-hp-hpux1[1-9]* )
4680 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
4684 rs6000-ibm-aix4.
[23]* )
4687 powerpc-ibm-aix4.
[23]* )
4690 rs6000-ibm-aix
[56]* )
4693 powerpc-ibm-aix
[56]* )
4697 ## Silicon Graphics machines
4701 # Without defining _LANGUAGE_C, things get masked out in the headers
4702 # so that, for instance, grepping for `free' in stdlib.h fails and
4703 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
4704 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
4709 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* \
4710 | x86_64-
*-solaris2* | x86_64-
*-sunos5*)
4711 case "${canonical}" in
4713 amd64-
*-*|x86_64-
*-*) ;;
4717 case "${canonical}" in
4718 *-sunos5.6
* |
*-solaris2.6
* )
4722 *-sunos5.
[7-9]* |
*-solaris2.
[7-9]* )
4724 emacs_check_sunpro_c
=yes
4726 *-sunos5* |
*-solaris* )
4728 emacs_check_sunpro_c
=yes
4731 ## Watch out for a compiler that we know will not work.
4732 case "${canonical}" in
4733 *-solaris* |
*-sunos5* )
4734 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
4735 ## /usr/ucb/cc doesn't work;
4736 ## we should find some other compiler that does work.
4744 ## Intel 386 machines where we don't care about the manufacturer.
4746 case "${canonical}" in
4747 *-cygwin ) opsys
=cygwin
;;
4748 *-darwin* ) opsys
=darwin
;;
4749 *-sysv4.2uw
* ) opsys
=unixware
;;
4750 *-sysv5uw* ) opsys
=unixware
;;
4751 *-sysv5OpenUNIX* ) opsys
=unixware
;;
4752 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
4761 ### If the code above didn't choose an operating system, just choose
4762 ### an operating system based on the configuration name. You really
4763 ### only want to use this when you have no idea what the right
4764 ### operating system is; if you know what operating systems a machine
4765 ### runs, it's cleaner to make it explicit in the case statement
4767 if test x
"${opsys}" = x
; then
4768 case "${canonical}" in
4769 *-gnu* ) opsys
=gnu
;;
4778 if test $unported = yes; then
4779 as_fn_error
"Emacs hasn't been ported to \`${canonical}' systems.
4780 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
4784 #### Choose a compiler.
4787 ac_cpp
='$CPP $CPPFLAGS'
4788 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4789 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4790 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4791 if test -n "$ac_tool_prefix"; then
4792 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4793 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
4794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4795 $as_echo_n "checking for $ac_word... " >&6; }
4796 if test "${ac_cv_prog_CC+set}" = set; then :
4797 $as_echo_n "(cached) " >&6
4799 if test -n "$CC"; then
4800 ac_cv_prog_CC
="$CC" # Let the user override the test.
4802 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4806 test -z "$as_dir" && as_dir
=.
4807 for ac_exec_ext
in '' $ac_executable_extensions; do
4808 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4809 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
4810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4820 if test -n "$CC"; then
4821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4822 $as_echo "$CC" >&6; }
4824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4825 $as_echo "no" >&6; }
4830 if test -z "$ac_cv_prog_CC"; then
4832 # Extract the first word of "gcc", so it can be a program name with args.
4833 set dummy gcc
; ac_word
=$2
4834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4835 $as_echo_n "checking for $ac_word... " >&6; }
4836 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4837 $as_echo_n "(cached) " >&6
4839 if test -n "$ac_ct_CC"; then
4840 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4842 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4846 test -z "$as_dir" && as_dir
=.
4847 for ac_exec_ext
in '' $ac_executable_extensions; do
4848 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4849 ac_cv_prog_ac_ct_CC
="gcc"
4850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4859 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4860 if test -n "$ac_ct_CC"; then
4861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4862 $as_echo "$ac_ct_CC" >&6; }
4864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4865 $as_echo "no" >&6; }
4868 if test "x$ac_ct_CC" = x
; then
4871 case $cross_compiling:$ac_tool_warned in
4873 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4874 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4875 ac_tool_warned
=yes ;;
4883 if test -z "$CC"; then
4884 if test -n "$ac_tool_prefix"; then
4885 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4886 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
4887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4888 $as_echo_n "checking for $ac_word... " >&6; }
4889 if test "${ac_cv_prog_CC+set}" = set; then :
4890 $as_echo_n "(cached) " >&6
4892 if test -n "$CC"; then
4893 ac_cv_prog_CC
="$CC" # Let the user override the test.
4895 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4899 test -z "$as_dir" && as_dir
=.
4900 for ac_exec_ext
in '' $ac_executable_extensions; do
4901 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4902 ac_cv_prog_CC
="${ac_tool_prefix}cc"
4903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4913 if test -n "$CC"; then
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4915 $as_echo "$CC" >&6; }
4917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4918 $as_echo "no" >&6; }
4924 if test -z "$CC"; then
4925 # Extract the first word of "cc", so it can be a program name with args.
4926 set dummy cc
; ac_word
=$2
4927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4928 $as_echo_n "checking for $ac_word... " >&6; }
4929 if test "${ac_cv_prog_CC+set}" = set; then :
4930 $as_echo_n "(cached) " >&6
4932 if test -n "$CC"; then
4933 ac_cv_prog_CC
="$CC" # Let the user override the test.
4936 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4940 test -z "$as_dir" && as_dir
=.
4941 for ac_exec_ext
in '' $ac_executable_extensions; do
4942 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4943 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4944 ac_prog_rejected
=yes
4948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4955 if test $ac_prog_rejected = yes; then
4956 # We found a bogon in the path, so make sure we never use it.
4957 set dummy
$ac_cv_prog_CC
4959 if test $# != 0; then
4960 # We chose a different compiler from the bogus one.
4961 # However, it has the same basename, so the bogon will be chosen
4962 # first if we set CC to just the basename; use the full file name.
4964 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
4970 if test -n "$CC"; then
4971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4972 $as_echo "$CC" >&6; }
4974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4975 $as_echo "no" >&6; }
4980 if test -z "$CC"; then
4981 if test -n "$ac_tool_prefix"; then
4982 for ac_prog
in cl.exe
4984 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4985 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4987 $as_echo_n "checking for $ac_word... " >&6; }
4988 if test "${ac_cv_prog_CC+set}" = set; then :
4989 $as_echo_n "(cached) " >&6
4991 if test -n "$CC"; then
4992 ac_cv_prog_CC
="$CC" # Let the user override the test.
4994 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4998 test -z "$as_dir" && as_dir
=.
4999 for ac_exec_ext
in '' $ac_executable_extensions; do
5000 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5001 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
5002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5012 if test -n "$CC"; then
5013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5014 $as_echo "$CC" >&6; }
5016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5017 $as_echo "no" >&6; }
5021 test -n "$CC" && break
5024 if test -z "$CC"; then
5026 for ac_prog
in cl.exe
5028 # Extract the first word of "$ac_prog", so it can be a program name with args.
5029 set dummy
$ac_prog; ac_word
=$2
5030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5031 $as_echo_n "checking for $ac_word... " >&6; }
5032 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5033 $as_echo_n "(cached) " >&6
5035 if test -n "$ac_ct_CC"; then
5036 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
5038 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5042 test -z "$as_dir" && as_dir
=.
5043 for ac_exec_ext
in '' $ac_executable_extensions; do
5044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5045 ac_cv_prog_ac_ct_CC
="$ac_prog"
5046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5055 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
5056 if test -n "$ac_ct_CC"; then
5057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5058 $as_echo "$ac_ct_CC" >&6; }
5060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5061 $as_echo "no" >&6; }
5065 test -n "$ac_ct_CC" && break
5068 if test "x$ac_ct_CC" = x
; then
5071 case $cross_compiling:$ac_tool_warned in
5073 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5074 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5075 ac_tool_warned
=yes ;;
5084 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5085 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5086 as_fn_error
"no acceptable C compiler found in \$PATH
5087 See \`config.log' for more details." "$LINENO" 5; }
5089 # Provide some information about the compiler.
5090 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5093 for ac_option
in --version -v -V -qversion; do
5094 { { ac_try
="$ac_compiler $ac_option >&5"
5096 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5097 *) ac_try_echo=$ac_try;;
5099 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5100 $as_echo "$ac_try_echo"; } >&5
5101 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5103 if test -s conftest.err; then
5105 ... rest of stderr output deleted ...
5106 10q' conftest.err >conftest.er1
5107 cat conftest.er1 >&5
5109 rm -f conftest.er1 conftest.err
5110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5111 test $ac_status = 0; }
5114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5115 /* end confdefs.h. */
5125 ac_clean_files_save=$ac_clean_files
5126 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
5127 # Try to create an executable without -o first, disregard a.out.
5128 # It will help us diagnose broken compilers, and finding out an intuition
5130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
5131 $as_echo_n "checking whether the C compiler works... " >&6; }
5132 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
5134 # The possible output files:
5135 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
5138 for ac_file in $ac_files
5141 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5142 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
5147 if { { ac_try="$ac_link_default"
5149 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5150 *) ac_try_echo
=$ac_try;;
5152 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5153 $as_echo "$ac_try_echo"; } >&5
5154 (eval "$ac_link_default") 2>&5
5156 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5157 test $ac_status = 0; }; then :
5158 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
5159 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
5160 # in a Makefile. We should not override ac_cv_exeext if it was cached,
5161 # so that the user can short-circuit this test for compilers unknown to
5163 for ac_file
in $ac_files ''
5165 test -f "$ac_file" ||
continue
5167 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
5170 # We found the default executable, but exeext='' is most
5174 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
5176 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
5178 # We set ac_cv_exeext here because the later test for it is not
5179 # safe: cross compilers may not add the suffix if given an `-o'
5180 # argument, so we may need to know it at that point already.
5181 # Even if this section looks crufty: it has the advantage of
5188 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
5193 if test -z "$ac_file"; then :
5194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5195 $as_echo "no" >&6; }
5196 $as_echo "$as_me: failed program was:" >&5
5197 sed 's/^/| /' conftest.
$ac_ext >&5
5199 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5200 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5201 { as_fn_set_status
77
5202 as_fn_error
"C compiler cannot create executables
5203 See \`config.log' for more details." "$LINENO" 5; }; }
5205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5206 $as_echo "yes" >&6; }
5208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5209 $as_echo_n "checking for C compiler default output file name... " >&6; }
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5211 $as_echo "$ac_file" >&6; }
5212 ac_exeext
=$ac_cv_exeext
5214 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
5215 ac_clean_files
=$ac_clean_files_save
5216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5217 $as_echo_n "checking for suffix of executables... " >&6; }
5218 if { { ac_try
="$ac_link"
5220 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5221 *) ac_try_echo=$ac_try;;
5223 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5224 $as_echo "$ac_try_echo"; } >&5
5225 (eval "$ac_link") 2>&5
5227 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5228 test $ac_status = 0; }; then :
5229 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
5230 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
5231 # work properly (i.e., refer to `conftest.exe'), while it won't with
5233 for ac_file
in conftest.exe conftest conftest.
*; do
5234 test -f "$ac_file" ||
continue
5236 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
5237 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
5243 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5244 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5245 as_fn_error
"cannot compute suffix of executables: cannot compile and link
5246 See \`config.log' for more details." "$LINENO" 5; }
5248 rm -f conftest conftest
$ac_cv_exeext
5249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5250 $as_echo "$ac_cv_exeext" >&6; }
5252 rm -f conftest.
$ac_ext
5253 EXEEXT
=$ac_cv_exeext
5255 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5256 /* end confdefs.h. */
5261 FILE *f = fopen ("conftest.out", "w");
5262 return ferror (f) || fclose (f) != 0;
5268 ac_clean_files
="$ac_clean_files conftest.out"
5269 # Check that the compiler produces executables we can run. If not, either
5270 # the compiler is broken, or we cross compile.
5271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5272 $as_echo_n "checking whether we are cross compiling... " >&6; }
5273 if test "$cross_compiling" != yes; then
5274 { { ac_try
="$ac_link"
5276 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5277 *) ac_try_echo=$ac_try;;
5279 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5280 $as_echo "$ac_try_echo"; } >&5
5281 (eval "$ac_link") 2>&5
5283 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5284 test $ac_status = 0; }
5285 if { ac_try='./conftest$ac_cv_exeext'
5286 { { case "(($ac_try" in
5287 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5288 *) ac_try_echo
=$ac_try;;
5290 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5291 $as_echo "$ac_try_echo"; } >&5
5292 (eval "$ac_try") 2>&5
5294 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5295 test $ac_status = 0; }; }; then
5298 if test "$cross_compiling" = maybe
; then
5301 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5302 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5303 as_fn_error
"cannot run C compiled programs.
5304 If you meant to cross compile, use \`--host'.
5305 See \`config.log' for more details." "$LINENO" 5; }
5309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5310 $as_echo "$cross_compiling" >&6; }
5312 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
5313 ac_clean_files
=$ac_clean_files_save
5314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5315 $as_echo_n "checking for suffix of object files... " >&6; }
5316 if test "${ac_cv_objext+set}" = set; then :
5317 $as_echo_n "(cached) " >&6
5319 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5320 /* end confdefs.h. */
5330 rm -f conftest.o conftest.obj
5331 if { { ac_try
="$ac_compile"
5333 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5334 *) ac_try_echo=$ac_try;;
5336 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5337 $as_echo "$ac_try_echo"; } >&5
5338 (eval "$ac_compile") 2>&5
5340 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5341 test $ac_status = 0; }; then :
5342 for ac_file in conftest.o conftest.obj conftest.*; do
5343 test -f "$ac_file" || continue;
5345 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5346 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5351 $as_echo "$as_me: failed program was:" >&5
5352 sed 's/^/| /' conftest.$ac_ext >&5
5354 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5355 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5356 as_fn_error "cannot compute suffix of object files
: cannot compile
5357 See \
`config.log' for more details." "$LINENO" 5; }
5359 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5362 $as_echo "$ac_cv_objext" >&6; }
5363 OBJEXT=$ac_cv_objext
5365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5366 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5367 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5368 $as_echo_n "(cached) " >&6
5370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5371 /* end confdefs.h. */
5384 if ac_fn_c_try_compile "$LINENO"; then :
5389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5390 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5394 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5395 if test $ac_compiler_gnu = yes; then
5400 ac_test_CFLAGS=${CFLAGS+set}
5401 ac_save_CFLAGS=$CFLAGS
5402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5403 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5404 if test "${ac_cv_prog_cc_g+set}" = set; then :
5405 $as_echo_n "(cached) " >&6
5407 ac_save_c_werror_flag=$ac_c_werror_flag
5408 ac_c_werror_flag=yes
5411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5412 /* end confdefs.h. */
5422 if ac_fn_c_try_compile "$LINENO"; then :
5426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5427 /* end confdefs.h. */
5437 if ac_fn_c_try_compile "$LINENO"; then :
5440 ac_c_werror_flag=$ac_save_c_werror_flag
5442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5443 /* end confdefs.h. */
5453 if ac_fn_c_try_compile "$LINENO"; then :
5456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5461 ac_c_werror_flag=$ac_save_c_werror_flag
5463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5464 $as_echo "$ac_cv_prog_cc_g" >&6; }
5465 if test "$ac_test_CFLAGS" = set; then
5466 CFLAGS=$ac_save_CFLAGS
5467 elif test $ac_cv_prog_cc_g = yes; then
5468 if test "$GCC" = yes; then
5474 if test "$GCC" = yes; then
5480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5481 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5482 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5483 $as_echo_n "(cached) " >&6
5485 ac_cv_prog_cc_c89=no
5487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5488 /* end confdefs.h. */
5491 #include <sys/types.h>
5492 #include <sys/stat.h>
5493 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5494 struct buf { int x; };
5495 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5496 static char *e (p, i)
5502 static char *f (char * (*g) (char **, int), char **p, ...)
5507 s = g (p, va_arg (v,int));
5512 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5513 function prototypes and stuff, but not '\xHH' hex character constants.
5514 These don't provoke an error unfortunately, instead are silently treated
5515 as 'x'. The following induces an error, until -std is added to get
5516 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5517 array size at least. It's necessary to write '\x00'==0 to get something
5518 that's true only with -std. */
5519 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5521 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5522 inside strings and character constants. */
5524 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5526 int test (int i, double x);
5527 struct s1 {int (*f) (int a);};
5528 struct s2 {int (*f) (double a);};
5529 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5535 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5540 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5541 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5543 CC="$ac_save_CC $ac_arg"
5544 if ac_fn_c_try_compile "$LINENO"; then :
5545 ac_cv_prog_cc_c89=$ac_arg
5547 rm -f core conftest.err conftest.$ac_objext
5548 test "x$ac_cv_prog_cc_c89" != "xno" && break
5550 rm -f conftest.$ac_ext
5555 case "x$ac_cv_prog_cc_c89" in
5557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5558 $as_echo "none needed" >&6; } ;;
5560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5561 $as_echo "unsupported" >&6; } ;;
5563 CC="$CC $ac_cv_prog_cc_c89"
5564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5565 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5567 if test "x$ac_cv_prog_cc_c89" != xno; then :
5572 ac_cpp='$CPP $CPPFLAGS'
5573 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5574 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5575 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5576 DEPDIR="${am__leading_dot}deps"
5578 ac_config_commands="$ac_config_commands depfiles"
5581 am_make=${MAKE-make}
5582 cat > confinc << 'END'
5584 @echo this is the am__doit target
5587 # If we don't find an include directive, just comment out the code.
5588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5589 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5593 # First try GNU make style include.
5594 echo "include confinc" > confmf
5595 # Ignore all kinds of additional output from `make'.
5596 case `$am_make -s -f confmf 2> /dev/null` in #(
5597 *the\ am__doit\ target*)
5603 # Now try BSD make style include.
5604 if test "$am__include" = "#"; then
5605 echo '.include
"confinc"' > confmf
5606 case `$am_make -s -f confmf 2> /dev/null` in #(
5607 *the\ am__doit\ target*)
5608 am__include=.include
5616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5617 $as_echo "$_am_result" >&6; }
5618 rm -f confinc confmf
5620 # Check whether --enable-dependency-tracking was given.
5621 if test "${enable_dependency_tracking+set}" = set; then :
5622 enableval=$enable_dependency_tracking;
5625 if test "x$enable_dependency_tracking" != xno; then
5626 am_depcomp="$ac_aux_dir/depcomp"
5629 if test "x$enable_dependency_tracking" != xno
; then
5639 depcc
="$CC" am_compiler_list
=
5641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5642 $as_echo_n "checking dependency style of $depcc... " >&6; }
5643 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5644 $as_echo_n "(cached) " >&6
5646 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5647 # We make a subdir and do the tests there. Otherwise we can end up
5648 # making bogus files that we don't know about and never remove. For
5649 # instance it was reported that on HP-UX the gcc test will end up
5650 # making a dummy file named `D' -- because `-MD' means `put the output
5653 # Copy depcomp to subdir because otherwise we won't find it if we're
5654 # using a relative directory.
5655 cp "$am_depcomp" conftest.dir
5657 # We will build objects and dependencies in a subdirectory because
5658 # it helps to detect inapplicable dependency modes. For instance
5659 # both Tru64's cc and ICC support -MD to output dependencies as a
5660 # side effect of compilation, but ICC will put the dependencies in
5661 # the current directory while Tru64 will put them in the object
5665 am_cv_CC_dependencies_compiler_type
=none
5666 if test "$am_compiler_list" = ""; then
5667 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5670 case " $depcc " in #(
5671 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
5674 for depmode
in $am_compiler_list; do
5675 # Setup a source with many dependencies, because some compilers
5676 # like to wrap large dependency lists on column 80 (with \), and
5677 # we should not choose a depcomp mode which is confused by this.
5679 # We need to recreate these files for each test, as the compiler may
5680 # overwrite some of them when testing with obscure command lines.
5681 # This happens at least with the AIX C compiler.
5683 for i
in 1 2 3 4 5 6; do
5684 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
5685 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5686 # Solaris 8's {/usr,}/bin/sh.
5687 touch sub
/conftst
$i.h
5689 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5691 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5692 # mode. It turns out that the SunPro C++ compiler does not properly
5693 # handle `-M -o', and we need to detect this. Also, some Intel
5694 # versions had trouble with output in subdirs
5695 am__obj
=sub
/conftest.
${OBJEXT-o}
5696 am__minus_obj
="-o $am__obj"
5699 # This depmode causes a compiler race in universal mode.
5700 test "$am__universal" = false ||
continue
5703 # after this tag, mechanisms are not by side-effect, so they'll
5704 # only be used when explicitly requested
5705 if test "x$enable_dependency_tracking" = xyes
; then
5711 msvisualcpp | msvcmsys
)
5712 # This compiler won't grok `-c -o', but also, the minuso test has
5713 # not run yet. These depmodes are late enough in the game, and
5714 # so weak that their functioning should not be impacted.
5715 am__obj
=conftest.
${OBJEXT-o}
5720 if depmode
=$depmode \
5721 source=sub
/conftest.c object
=$am__obj \
5722 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
5723 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
5724 >/dev
/null
2>conftest.err
&&
5725 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
5726 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
5727 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
5728 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
5729 # icc doesn't choke on unknown options, it will just issue warnings
5730 # or remarks (even with -Werror). So we grep stderr for any message
5731 # that says an option was ignored or not supported.
5732 # When given -MP, icc 7.0 and 7.1 complain thusly:
5733 # icc: Command line warning: ignoring option '-M'; no argument required
5734 # The diagnosis changed in icc 8.0:
5735 # icc: Command line remark: option '-MP' not supported
5736 if (grep 'ignoring option' conftest.err ||
5737 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
5738 am_cv_CC_dependencies_compiler_type
=$depmode
5747 am_cv_CC_dependencies_compiler_type
=none
5751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5752 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5753 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
5756 test "x$enable_dependency_tracking" != xno \
5757 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
5759 am__fastdepCC_FALSE
='#'
5761 am__fastdepCC_TRUE
='#'
5762 am__fastdepCC_FALSE
=
5766 if test "x$CC" != xcc
; then
5767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5768 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5771 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5773 set dummy
$CC; ac_cc
=`$as_echo "$2" |
5774 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5775 if { as_var
=ac_cv_prog_cc_
${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
5776 $as_echo_n "(cached) " >&6
5778 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5779 /* end confdefs.h. */
5789 # Make sure it works both with $CC and with simple cc.
5790 # We do the test twice because some compilers refuse to overwrite an
5791 # existing .o file with -o, though they will create one.
5792 ac_try
='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5794 if { { case "(($ac_try" in
5795 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5796 *) ac_try_echo=$ac_try;;
5798 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5799 $as_echo "$ac_try_echo"; } >&5
5800 (eval "$ac_try") 2>&5
5802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5803 test $ac_status = 0; } &&
5804 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5805 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5806 *) ac_try_echo
=$ac_try;;
5808 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5809 $as_echo "$ac_try_echo"; } >&5
5810 (eval "$ac_try") 2>&5
5812 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5813 test $ac_status = 0; };
5815 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
5816 if test "x$CC" != xcc
; then
5817 # Test first that cc exists at all.
5818 if { ac_try
='cc -c conftest.$ac_ext >&5'
5819 { { case "(($ac_try" in
5820 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5821 *) ac_try_echo=$ac_try;;
5823 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5824 $as_echo "$ac_try_echo"; } >&5
5825 (eval "$ac_try") 2>&5
5827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5828 test $ac_status = 0; }; }; then
5829 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5831 if { { case "(($ac_try" in
5832 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5833 *) ac_try_echo
=$ac_try;;
5835 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5836 $as_echo "$ac_try_echo"; } >&5
5837 (eval "$ac_try") 2>&5
5839 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5840 test $ac_status = 0; } &&
5841 test -f conftest2.
$ac_objext && { { case "(($ac_try" in
5842 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5843 *) ac_try_echo=$ac_try;;
5845 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5846 $as_echo "$ac_try_echo"; } >&5
5847 (eval "$ac_try") 2>&5
5849 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5850 test $ac_status = 0; };
5855 # cc exists but doesn't like -o.
5856 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5861 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5863 rm -f core conftest*
5866 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5868 $as_echo "yes" >&6; }
5870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5871 $as_echo "no" >&6; }
5873 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5877 # FIXME: we rely on the cache variable name because
5878 # there is no other way.
5880 am_cc=`echo $2 |
sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5881 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5882 if test "$am_t" != yes; then
5883 # Losing compiler, so override with the script.
5884 # FIXME: It is wrong to rewrite CC.
5885 # But if we don't then we get into trouble of one sort or another.
5886 # A longer-term fix would be to have automake use am__CC in this case,
5887 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5888 CC="$am_aux_dir/compile $CC"
5893 if test x$GCC = xyes; then
5894 test "x$GCC_TEST_OPTIONS" != x && CC="$CC $GCC_TEST_OPTIONS"
5896 test "x$NON_GCC_TEST_OPTIONS" != x && CC="$CC $NON_GCC_TEST_OPTIONS"
5899 # Avoid gnulib's tests for O_NOATIME and O_NOFOLLOW, as we don't use them.
5901 # Avoid gnulib's threadlib module, as we do threads our own way.
5904 # Initialize gnulib right after choosing the compiler.
5907 ac_cpp='$CPP $CPPFLAGS'
5908 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5909 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5910 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5912 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5913 # On Suns, sometimes $CPP names a directory.
5914 if test -n "$CPP" && test -d "$CPP"; then
5917 if test -z "$CPP"; then
5918 if test "${ac_cv_prog_CPP+set}" = set; then :
5919 $as_echo_n "(cached) " >&6
5921 # Double quotes because CPP needs to be expanded
5922 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5925 for ac_c_preproc_warn_flag in '' yes
5927 # Use a header file that comes with gcc, so configuring glibc
5928 # with a fresh cross-compiler works.
5929 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5930 # <limits.h> exists even on freestanding compilers.
5931 # On the NeXT, cc -E runs the code through the compiler's parser,
5932 # not just through cpp. "Syntax error" is here to catch this case.
5933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5934 /* end confdefs.h. */
5936 # include <limits.h>
5938 # include <assert.h>
5942 if ac_fn_c_try_cpp "$LINENO"; then :
5945 # Broken: fails on valid input.
5948 rm -f conftest.err conftest.$ac_ext
5950 # OK, works on sane cases. Now check whether nonexistent headers
5951 # can be detected and how.
5952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5953 /* end confdefs.h. */
5954 #include <ac_nonexistent.h>
5956 if ac_fn_c_try_cpp "$LINENO"; then :
5957 # Broken: success on invalid input.
5960 # Passes both tests.
5964 rm -f conftest.err conftest.$ac_ext
5967 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5968 rm -f conftest.err conftest.
$ac_ext
5969 if $ac_preproc_ok; then :
5981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5982 $as_echo "$CPP" >&6; }
5984 for ac_c_preproc_warn_flag
in '' yes
5986 # Use a header file that comes with gcc, so configuring glibc
5987 # with a fresh cross-compiler works.
5988 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5989 # <limits.h> exists even on freestanding compilers.
5990 # On the NeXT, cc -E runs the code through the compiler's parser,
5991 # not just through cpp. "Syntax error" is here to catch this case.
5992 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5993 /* end confdefs.h. */
5995 # include <limits.h>
5997 # include <assert.h>
6001 if ac_fn_c_try_cpp
"$LINENO"; then :
6004 # Broken: fails on valid input.
6007 rm -f conftest.err conftest.
$ac_ext
6009 # OK, works on sane cases. Now check whether nonexistent headers
6010 # can be detected and how.
6011 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6012 /* end confdefs.h. */
6013 #include <ac_nonexistent.h>
6015 if ac_fn_c_try_cpp
"$LINENO"; then :
6016 # Broken: success on invalid input.
6019 # Passes both tests.
6023 rm -f conftest.err conftest.
$ac_ext
6026 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6027 rm -f conftest.err conftest.
$ac_ext
6028 if $ac_preproc_ok; then :
6031 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6032 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6033 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
6034 See \`config.log' for more details." "$LINENO" 5; }
6038 ac_cpp
='$CPP $CPPFLAGS'
6039 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6040 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6041 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6045 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6046 if test "${ac_cv_path_GREP+set}" = set; then :
6047 $as_echo_n "(cached) " >&6
6049 if test -z "$GREP"; then
6050 ac_path_GREP_found
=false
6051 # Loop through the user's path and test for each of PROGNAME-LIST
6052 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6053 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
6056 test -z "$as_dir" && as_dir
=.
6057 for ac_prog
in grep ggrep
; do
6058 for ac_exec_ext
in '' $ac_executable_extensions; do
6059 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
6060 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
6061 # Check for GNU ac_path_GREP and select it if it is found.
6062 # Check for GNU $ac_path_GREP
6063 case `"$ac_path_GREP" --version 2>&1` in
6065 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
6068 $as_echo_n 0123456789 >"conftest.in"
6071 cat "conftest.in" "conftest.in" >"conftest.tmp"
6072 mv "conftest.tmp" "conftest.in"
6073 cp "conftest.in" "conftest.nl"
6074 $as_echo 'GREP' >> "conftest.nl"
6075 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
6076 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
6077 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
6078 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6079 # Best one so far, save it but keep looking for a better one
6080 ac_cv_path_GREP
="$ac_path_GREP"
6081 ac_path_GREP_max
=$ac_count
6083 # 10*(2^10) chars as input seems more than enough
6084 test $ac_count -gt 10 && break
6086 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
6089 $ac_path_GREP_found && break 3
6094 if test -z "$ac_cv_path_GREP"; then
6095 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6098 ac_cv_path_GREP
=$GREP
6102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6103 $as_echo "$ac_cv_path_GREP" >&6; }
6104 GREP
="$ac_cv_path_GREP"
6107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6108 $as_echo_n "checking for egrep... " >&6; }
6109 if test "${ac_cv_path_EGREP+set}" = set; then :
6110 $as_echo_n "(cached) " >&6
6112 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
6113 then ac_cv_path_EGREP
="$GREP -E"
6115 if test -z "$EGREP"; then
6116 ac_path_EGREP_found
=false
6117 # Loop through the user's path and test for each of PROGNAME-LIST
6118 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6119 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
6122 test -z "$as_dir" && as_dir
=.
6123 for ac_prog
in egrep; do
6124 for ac_exec_ext
in '' $ac_executable_extensions; do
6125 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
6126 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
6127 # Check for GNU ac_path_EGREP and select it if it is found.
6128 # Check for GNU $ac_path_EGREP
6129 case `"$ac_path_EGREP" --version 2>&1` in
6131 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
6134 $as_echo_n 0123456789 >"conftest.in"
6137 cat "conftest.in" "conftest.in" >"conftest.tmp"
6138 mv "conftest.tmp" "conftest.in"
6139 cp "conftest.in" "conftest.nl"
6140 $as_echo 'EGREP' >> "conftest.nl"
6141 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
6142 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
6143 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
6144 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6145 # Best one so far, save it but keep looking for a better one
6146 ac_cv_path_EGREP
="$ac_path_EGREP"
6147 ac_path_EGREP_max
=$ac_count
6149 # 10*(2^10) chars as input seems more than enough
6150 test $ac_count -gt 10 && break
6152 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
6155 $ac_path_EGREP_found && break 3
6160 if test -z "$ac_cv_path_EGREP"; then
6161 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6164 ac_cv_path_EGREP
=$EGREP
6169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6170 $as_echo "$ac_cv_path_EGREP" >&6; }
6171 EGREP
="$ac_cv_path_EGREP"
6176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
6177 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
6178 if test "${gl_cv_c_amsterdam_compiler+set}" = set; then :
6179 $as_echo_n "(cached) " >&6
6182 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6183 /* end confdefs.h. */
6190 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6191 $EGREP "Amsterdam" >/dev
/null
2>&1; then :
6192 gl_cv_c_amsterdam_compiler
=yes
6194 gl_cv_c_amsterdam_compiler
=no
6200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
6201 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
6202 if test -z "$AR"; then
6203 if test $gl_cv_c_amsterdam_compiler = yes; then
6205 if test -z "$ARFLAGS"; then
6209 if test -n "$ac_tool_prefix"; then
6210 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6211 set dummy
${ac_tool_prefix}ar; ac_word
=$2
6212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6213 $as_echo_n "checking for $ac_word... " >&6; }
6214 if test "${ac_cv_prog_AR+set}" = set; then :
6215 $as_echo_n "(cached) " >&6
6217 if test -n "$AR"; then
6218 ac_cv_prog_AR
="$AR" # Let the user override the test.
6220 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6224 test -z "$as_dir" && as_dir
=.
6225 for ac_exec_ext
in '' $ac_executable_extensions; do
6226 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6227 ac_cv_prog_AR
="${ac_tool_prefix}ar"
6228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6238 if test -n "$AR"; then
6239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6240 $as_echo "$AR" >&6; }
6242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6243 $as_echo "no" >&6; }
6248 if test -z "$ac_cv_prog_AR"; then
6250 # Extract the first word of "ar", so it can be a program name with args.
6251 set dummy
ar; ac_word
=$2
6252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6253 $as_echo_n "checking for $ac_word... " >&6; }
6254 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6255 $as_echo_n "(cached) " >&6
6257 if test -n "$ac_ct_AR"; then
6258 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
6260 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6264 test -z "$as_dir" && as_dir
=.
6265 for ac_exec_ext
in '' $ac_executable_extensions; do
6266 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6267 ac_cv_prog_ac_ct_AR
="ar"
6268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6277 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
6278 if test -n "$ac_ct_AR"; then
6279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6280 $as_echo "$ac_ct_AR" >&6; }
6282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6283 $as_echo "no" >&6; }
6286 if test "x$ac_ct_AR" = x
; then
6289 case $cross_compiling:$ac_tool_warned in
6291 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6292 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6293 ac_tool_warned
=yes ;;
6301 if test -z "$ARFLAGS"; then
6306 if test -z "$ARFLAGS"; then
6312 if test -z "$RANLIB"; then
6313 if test $gl_cv_c_amsterdam_compiler = yes; then
6316 if test -n "$ac_tool_prefix"; then
6317 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6318 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
6319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6320 $as_echo_n "checking for $ac_word... " >&6; }
6321 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6322 $as_echo_n "(cached) " >&6
6324 if test -n "$RANLIB"; then
6325 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
6327 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6331 test -z "$as_dir" && as_dir
=.
6332 for ac_exec_ext
in '' $ac_executable_extensions; do
6333 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6334 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
6335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6344 RANLIB
=$ac_cv_prog_RANLIB
6345 if test -n "$RANLIB"; then
6346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6347 $as_echo "$RANLIB" >&6; }
6349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6350 $as_echo "no" >&6; }
6355 if test -z "$ac_cv_prog_RANLIB"; then
6356 ac_ct_RANLIB
=$RANLIB
6357 # Extract the first word of "ranlib", so it can be a program name with args.
6358 set dummy ranlib
; ac_word
=$2
6359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6360 $as_echo_n "checking for $ac_word... " >&6; }
6361 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6362 $as_echo_n "(cached) " >&6
6364 if test -n "$ac_ct_RANLIB"; then
6365 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
6367 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6371 test -z "$as_dir" && as_dir
=.
6372 for ac_exec_ext
in '' $ac_executable_extensions; do
6373 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6374 ac_cv_prog_ac_ct_RANLIB
="ranlib"
6375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6384 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
6385 if test -n "$ac_ct_RANLIB"; then
6386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6387 $as_echo "$ac_ct_RANLIB" >&6; }
6389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6390 $as_echo "no" >&6; }
6393 if test "x$ac_ct_RANLIB" = x
; then
6396 case $cross_compiling:$ac_tool_warned in
6398 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6399 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6400 ac_tool_warned
=yes ;;
6402 RANLIB
=$ac_ct_RANLIB
6405 RANLIB
="$ac_cv_prog_RANLIB"
6412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6413 $as_echo_n "checking for ANSI C header files... " >&6; }
6414 if test "${ac_cv_header_stdc+set}" = set; then :
6415 $as_echo_n "(cached) " >&6
6417 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6418 /* end confdefs.h. */
6432 if ac_fn_c_try_compile
"$LINENO"; then :
6433 ac_cv_header_stdc
=yes
6435 ac_cv_header_stdc
=no
6437 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6439 if test $ac_cv_header_stdc = yes; then
6440 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6441 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6442 /* end confdefs.h. */
6446 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6447 $EGREP "memchr" >/dev
/null
2>&1; then :
6450 ac_cv_header_stdc
=no
6456 if test $ac_cv_header_stdc = yes; then
6457 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6458 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6459 /* end confdefs.h. */
6463 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6464 $EGREP "free" >/dev
/null
2>&1; then :
6467 ac_cv_header_stdc
=no
6473 if test $ac_cv_header_stdc = yes; then
6474 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6475 if test "$cross_compiling" = yes; then :
6478 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6479 /* end confdefs.h. */
6482 #if ((' ' & 0x0FF) == 0x020)
6483 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6484 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6486 # define ISLOWER(c) \
6487 (('a' <= (c) && (c) <= 'i') \
6488 || ('j' <= (c) && (c) <= 'r') \
6489 || ('s' <= (c) && (c) <= 'z'))
6490 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6493 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6498 for (i = 0; i < 256; i++)
6499 if (XOR (islower (i), ISLOWER (i))
6500 || toupper (i) != TOUPPER (i))
6505 if ac_fn_c_try_run
"$LINENO"; then :
6508 ac_cv_header_stdc
=no
6510 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6511 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6517 $as_echo "$ac_cv_header_stdc" >&6; }
6518 if test $ac_cv_header_stdc = yes; then
6520 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6524 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6525 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
6526 inttypes.h stdint.h unistd.h
6528 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6529 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6531 eval as_val
=\$
$as_ac_Header
6532 if test "x$as_val" = x
""yes; then :
6533 cat >>confdefs.h
<<_ACEOF
6534 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6543 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
6544 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
6551 if test "$MINIX" = yes; then
6553 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6556 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6559 $as_echo "#define _MINIX 1" >>confdefs.h
6562 $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
6567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6568 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6569 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
6570 $as_echo_n "(cached) " >&6
6572 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6573 /* end confdefs.h. */
6575 # define __EXTENSIONS__ 1
6576 $ac_includes_default
6585 if ac_fn_c_try_compile
"$LINENO"; then :
6586 ac_cv_safe_to_define___extensions__
=yes
6588 ac_cv_safe_to_define___extensions__
=no
6590 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6593 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6594 test $ac_cv_safe_to_define___extensions__ = yes &&
6595 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6597 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6599 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
6601 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6603 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6605 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
6608 $as_echo_n "checking whether _XOPEN_SOURCE should be defined... " >&6; }
6609 if test "${ac_cv_should_define__xopen_source+set}" = set; then :
6610 $as_echo_n "(cached) " >&6
6612 ac_cv_should_define__xopen_source
=no
6613 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6614 /* end confdefs.h. */
6626 if ac_fn_c_try_compile
"$LINENO"; then :
6629 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6630 /* end confdefs.h. */
6632 #define _XOPEN_SOURCE 500
6643 if ac_fn_c_try_compile
"$LINENO"; then :
6644 ac_cv_should_define__xopen_source
=yes
6646 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6648 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
6651 $as_echo "$ac_cv_should_define__xopen_source" >&6; }
6652 test $ac_cv_should_define__xopen_source = yes &&
6653 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
6662 # Check whether --enable-largefile was given.
6663 if test "${enable_largefile+set}" = set; then :
6664 enableval
=$enable_largefile;
6667 if test "$enable_largefile" != no
; then
6669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6670 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6671 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
6672 $as_echo_n "(cached) " >&6
6674 ac_cv_sys_largefile_CC
=no
6675 if test "$GCC" != yes; then
6678 # IRIX 6.2 and later do not support large files by default,
6679 # so use the C compiler's -n32 option if that helps.
6680 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6681 /* end confdefs.h. */
6682 #include <sys/types.h>
6683 /* Check that off_t can represent 2**63 - 1 correctly.
6684 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6685 since some C++ compilers masquerading as C compilers
6686 incorrectly reject 9223372036854775807. */
6687 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6688 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6689 && LARGE_OFF_T % 2147483647 == 1)
6699 if ac_fn_c_try_compile
"$LINENO"; then :
6702 rm -f core conftest.err conftest.
$ac_objext
6704 if ac_fn_c_try_compile
"$LINENO"; then :
6705 ac_cv_sys_largefile_CC
=' -n32'; break
6707 rm -f core conftest.err conftest.
$ac_objext
6711 rm -f conftest.
$ac_ext
6714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6715 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6716 if test "$ac_cv_sys_largefile_CC" != no
; then
6717 CC
=$CC$ac_cv_sys_largefile_CC
6720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6721 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6722 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
6723 $as_echo_n "(cached) " >&6
6726 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6727 /* end confdefs.h. */
6728 #include <sys/types.h>
6729 /* Check that off_t can represent 2**63 - 1 correctly.
6730 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6731 since some C++ compilers masquerading as C compilers
6732 incorrectly reject 9223372036854775807. */
6733 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6734 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6735 && LARGE_OFF_T % 2147483647 == 1)
6745 if ac_fn_c_try_compile
"$LINENO"; then :
6746 ac_cv_sys_file_offset_bits
=no
; break
6748 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6749 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6750 /* end confdefs.h. */
6751 #define _FILE_OFFSET_BITS 64
6752 #include <sys/types.h>
6753 /* Check that off_t can represent 2**63 - 1 correctly.
6754 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6755 since some C++ compilers masquerading as C compilers
6756 incorrectly reject 9223372036854775807. */
6757 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6758 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6759 && LARGE_OFF_T % 2147483647 == 1)
6769 if ac_fn_c_try_compile
"$LINENO"; then :
6770 ac_cv_sys_file_offset_bits
=64; break
6772 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6773 ac_cv_sys_file_offset_bits
=unknown
6777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6778 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6779 case $ac_cv_sys_file_offset_bits in #(
6782 cat >>confdefs.h
<<_ACEOF
6783 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6788 if test $ac_cv_sys_file_offset_bits = unknown
; then
6789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6790 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6791 if test "${ac_cv_sys_large_files+set}" = set; then :
6792 $as_echo_n "(cached) " >&6
6795 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6796 /* end confdefs.h. */
6797 #include <sys/types.h>
6798 /* Check that off_t can represent 2**63 - 1 correctly.
6799 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6800 since some C++ compilers masquerading as C compilers
6801 incorrectly reject 9223372036854775807. */
6802 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6803 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6804 && LARGE_OFF_T % 2147483647 == 1)
6814 if ac_fn_c_try_compile
"$LINENO"; then :
6815 ac_cv_sys_large_files
=no
; break
6817 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6818 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6819 /* end confdefs.h. */
6820 #define _LARGE_FILES 1
6821 #include <sys/types.h>
6822 /* Check that off_t can represent 2**63 - 1 correctly.
6823 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6824 since some C++ compilers masquerading as C compilers
6825 incorrectly reject 9223372036854775807. */
6826 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6827 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6828 && LARGE_OFF_T % 2147483647 == 1)
6838 if ac_fn_c_try_compile
"$LINENO"; then :
6839 ac_cv_sys_large_files
=1; break
6841 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6842 ac_cv_sys_large_files
=unknown
6846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6847 $as_echo "$ac_cv_sys_large_files" >&6; }
6848 case $ac_cv_sys_large_files in #(
6851 cat >>confdefs.h
<<_ACEOF
6852 #define _LARGE_FILES $ac_cv_sys_large_files
6860 $as_echo "#define _DARWIN_USE_64_BIT_INODE 1" >>confdefs.h
6864 case $ac_cv_prog_cc_stdc in #(
6866 ac_cv_prog_cc_c99
=no
; ac_cv_prog_cc_c89
=no
;; #(
6868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
6869 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
6870 if test "${ac_cv_prog_cc_c99+set}" = set; then :
6871 $as_echo_n "(cached) " >&6
6873 ac_cv_prog_cc_c99
=no
6875 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6876 /* end confdefs.h. */
6878 #include <stdbool.h>
6883 // Check varargs macros. These examples are taken from C99 6.10.3.5.
6884 #define debug(...) fprintf (stderr, __VA_ARGS__)
6885 #define showlist(...) puts (#__VA_ARGS__)
6886 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6888 test_varargs_macros (void)
6893 debug ("X = %d\n", x);
6894 showlist (The first, second, and third items.);
6895 report (x>y, "x is %d but y is %d", x, y);
6898 // Check long long types.
6899 #define BIG64 18446744073709551615ull
6900 #define BIG32 4294967295ul
6901 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6903 your preprocessor is broken;
6907 your preprocessor is broken;
6909 static long long int bignum = -9223372036854775807LL;
6910 static unsigned long long int ubignum = BIG64;
6912 struct incomplete_array
6920 const wchar_t *name;
6924 typedef const char *ccp;
6927 test_restrict (ccp restrict text)
6929 // See if C++-style comments work.
6930 // Iterate through items via the restricted pointer.
6931 // Also check for declarations in for loops.
6932 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6937 // Check varargs and va_copy.
6939 test_varargs (const char *format, ...)
6942 va_start (args, format);
6944 va_copy (args_copy, args);
6955 str = va_arg (args_copy, const char *);
6958 number = va_arg (args_copy, int);
6961 fnumber = va_arg (args_copy, double);
6976 _Bool success = false;
6979 if (test_restrict ("String literal") == 0)
6981 char *restrict newvar = "Another string";
6984 test_varargs ("s, d' f .", "string", 65, 34.234);
6985 test_varargs_macros ();
6987 // Check flexible array members.
6988 struct incomplete_array *ia =
6989 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6991 for (int i = 0; i < ia->datasize; ++i)
6992 ia->data[i] = i * 1.234;
6994 // Check named initializers.
6995 struct named_init ni = {
6997 .name = L"Test wide string",
6998 .average = 543.34343,
7003 int dynamic_array[ni.number];
7004 dynamic_array[ni.number - 1] = 543;
7006 // work around unused variable warnings
7007 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7008 || dynamic_array[ni.number - 1] != 543);
7014 for ac_arg
in '' -std=gnu99
-std=c99
-c99 -AC99 -xc99=all
-qlanglvl=extc99
7016 CC
="$ac_save_CC $ac_arg"
7017 if ac_fn_c_try_compile
"$LINENO"; then :
7018 ac_cv_prog_cc_c99
=$ac_arg
7020 rm -f core conftest.err conftest.
$ac_objext
7021 test "x$ac_cv_prog_cc_c99" != "xno" && break
7023 rm -f conftest.
$ac_ext
7028 case "x$ac_cv_prog_cc_c99" in
7030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7031 $as_echo "none needed" >&6; } ;;
7033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7034 $as_echo "unsupported" >&6; } ;;
7036 CC
="$CC $ac_cv_prog_cc_c99"
7037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
7038 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7040 if test "x$ac_cv_prog_cc_c99" != xno
; then :
7041 ac_cv_prog_cc_stdc
=$ac_cv_prog_cc_c99
7043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
7044 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
7045 if test "${ac_cv_prog_cc_c89+set}" = set; then :
7046 $as_echo_n "(cached) " >&6
7048 ac_cv_prog_cc_c89
=no
7050 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7051 /* end confdefs.h. */
7054 #include <sys/types.h>
7055 #include <sys/stat.h>
7056 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
7057 struct buf { int x; };
7058 FILE * (*rcsopen) (struct buf *, struct stat *, int);
7059 static char *e (p, i)
7065 static char *f (char * (*g) (char **, int), char **p, ...)
7070 s = g (p, va_arg (v,int));
7075 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
7076 function prototypes and stuff, but not '\xHH' hex character constants.
7077 These don't provoke an error unfortunately, instead are silently treated
7078 as 'x'. The following induces an error, until -std is added to get
7079 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
7080 array size at least. It's necessary to write '\x00'==0 to get something
7081 that's true only with -std. */
7082 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
7084 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
7085 inside strings and character constants. */
7087 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
7089 int test (int i, double x);
7090 struct s1 {int (*f) (int a);};
7091 struct s2 {int (*f) (double a);};
7092 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7098 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
7103 for ac_arg
in '' -qlanglvl=extc89
-qlanglvl=ansi
-std \
7104 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7106 CC
="$ac_save_CC $ac_arg"
7107 if ac_fn_c_try_compile
"$LINENO"; then :
7108 ac_cv_prog_cc_c89
=$ac_arg
7110 rm -f core conftest.err conftest.
$ac_objext
7111 test "x$ac_cv_prog_cc_c89" != "xno" && break
7113 rm -f conftest.
$ac_ext
7118 case "x$ac_cv_prog_cc_c89" in
7120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7121 $as_echo "none needed" >&6; } ;;
7123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7124 $as_echo "unsupported" >&6; } ;;
7126 CC
="$CC $ac_cv_prog_cc_c89"
7127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
7128 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
7130 if test "x$ac_cv_prog_cc_c89" != xno
; then :
7131 ac_cv_prog_cc_stdc
=$ac_cv_prog_cc_c89
7133 ac_cv_prog_cc_stdc
=no
7139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
7140 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
7141 if test "${ac_cv_prog_cc_stdc+set}" = set; then :
7142 $as_echo_n "(cached) " >&6
7145 case $ac_cv_prog_cc_stdc in #(
7147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7148 $as_echo "unsupported" >&6; } ;; #(
7150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7151 $as_echo "none needed" >&6; } ;; #(
7153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
7154 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
7159 # Code from module alloca-opt:
7160 # Code from module allocator:
7161 # Code from module at-internal:
7162 # Code from module c-ctype:
7163 # Code from module c-strcase:
7164 # Code from module careadlinkat:
7165 # Code from module clock-time:
7166 # Code from module close-stream:
7167 # Code from module crypto/md5:
7168 # Code from module crypto/sha1:
7169 # Code from module crypto/sha256:
7170 # Code from module crypto/sha512:
7171 # Code from module dirent:
7172 # Code from module dosname:
7173 # Code from module dtoastr:
7174 # Code from module dtotimespec:
7175 # Code from module dup2:
7176 # Code from module environ:
7177 # Code from module euidaccess:
7178 # Code from module execinfo:
7179 # Code from module extensions:
7181 # Code from module extern-inline:
7182 # Code from module faccessat:
7183 # Code from module fcntl-h:
7184 # Code from module fdopendir:
7185 # Code from module filemode:
7186 # Code from module fpending:
7187 # Code from module fstatat:
7188 # Code from module getgroups:
7189 # Code from module getloadavg:
7190 # Code from module getopt-gnu:
7191 # Code from module getopt-posix:
7192 # Code from module gettext-h:
7193 # Code from module gettime:
7194 # Code from module gettimeofday:
7195 # Code from module group-member:
7196 # Code from module ignore-value:
7197 # Code from module include_next:
7198 # Code from module intprops:
7199 # Code from module inttypes-incomplete:
7200 # Code from module largefile:
7202 # Code from module lstat:
7203 # Code from module manywarnings:
7204 # Code from module memrchr:
7205 # Code from module mktime:
7206 # Code from module multiarch:
7207 # Code from module nocrash:
7208 # Code from module openat-h:
7209 # Code from module pathmax:
7210 # Code from module pselect:
7211 # Code from module pthread_sigmask:
7212 # Code from module putenv:
7213 # Code from module readlink:
7214 # Code from module readlinkat:
7215 # Code from module root-uid:
7216 # Code from module sig2str:
7217 # Code from module signal-h:
7218 # Code from module snippet/_Noreturn:
7219 # Code from module snippet/arg-nonnull:
7220 # Code from module snippet/c++defs:
7221 # Code from module snippet/warn-on-use:
7222 # Code from module socklen:
7223 # Code from module ssize_t:
7224 # Code from module stat:
7225 # Code from module stat-time:
7226 # Code from module stdalign:
7227 # Code from module stdarg:
7231 # Code from module stdbool:
7232 # Code from module stddef:
7233 # Code from module stdint:
7234 # Code from module stdio:
7235 # Code from module stdlib:
7236 # Code from module strftime:
7237 # Code from module string:
7238 # Code from module strtoimax:
7239 # Code from module strtoll:
7240 # Code from module strtoull:
7241 # Code from module strtoumax:
7242 # Code from module symlink:
7243 # Code from module sys_select:
7244 # Code from module sys_stat:
7245 # Code from module sys_time:
7246 # Code from module time:
7247 # Code from module time_r:
7248 # Code from module timer-time:
7249 # Code from module timespec:
7250 # Code from module timespec-add:
7251 # Code from module timespec-sub:
7252 # Code from module u64:
7253 # Code from module unistd:
7254 # Code from module unsetenv:
7255 # Code from module utimens:
7256 # Code from module verify:
7257 # Code from module warnings:
7258 # Code from module xalloc-oversized:
7261 # It's helpful to have C macros available to GDB, so prefer -g3 to -g
7262 # if -g3 works and the user does not specify CFLAGS.
7263 # This test must follow gl_EARLY; otherwise AC_LINK_IFELSE complains.
7264 if test "$ac_test_CFLAGS" != set; then
7267 emacs_g3_CFLAGS
='-g3';;
7269 emacs_g3_CFLAGS
='-g3 -O2';;
7271 emacs_g3_CFLAGS
='';;
7273 if test -n "$emacs_g3_CFLAGS"; then
7274 emacs_save_CFLAGS
=$CFLAGS
7275 CFLAGS
=$emacs_g3_CFLAGS
7276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts $emacs_g3_CFLAGS" >&5
7277 $as_echo_n "checking whether $CC accepts $emacs_g3_CFLAGS... " >&6; }
7278 if test "${emacs_cv_prog_cc_g3+set}" = set; then :
7279 $as_echo_n "(cached) " >&6
7281 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7282 /* end confdefs.h. */
7292 if ac_fn_c_try_link
"$LINENO"; then :
7293 emacs_cv_prog_cc_g3
=yes
7295 emacs_cv_prog_cc_g3
=no
7297 rm -f core conftest.err conftest.
$ac_objext \
7298 conftest
$ac_exeext conftest.
$ac_ext
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_prog_cc_g3" >&5
7301 $as_echo "$emacs_cv_prog_cc_g3" >&6; }
7302 if test $emacs_cv_prog_cc_g3 = yes; then
7303 CFLAGS
=$emacs_g3_CFLAGS
7305 CFLAGS
=$emacs_save_CFLAGS
7310 # Check whether --enable-gcc-warnings was given.
7311 if test "${enable_gcc_warnings+set}" = set; then :
7312 enableval
=$enable_gcc_warnings; case $enableval in
7314 *) as_fn_error
"bad value $enableval for gcc-warnings option" "$LINENO" 5 ;;
7316 gl_gcc_warnings
=$enableval
7323 # Check whether --enable-link-time-optimization was given.
7324 if test "${enable_link_time_optimization+set}" = set; then :
7325 enableval
=$enable_link_time_optimization; if test "${enableval}" != "no"; then
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether link-time optimization is supported" >&5
7327 $as_echo_n "checking whether link-time optimization is supported... " >&6; }
7329 if test x
$GCC = xyes
; then
7330 CPUS
=`getconf _NPROCESSORS_ONLN 2>/dev/null`
7331 if test x
$CPUS != x
; then
7337 CFLAGS
="$CFLAGS $LTO"
7338 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7339 /* end confdefs.h. */
7349 if ac_fn_c_try_compile
"$LINENO"; then :
7350 ac_lto_supported
=yes
7354 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7355 CFLAGS
="$old_CFLAGS"
7357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_lto_supported" >&5
7358 $as_echo "$ac_lto_supported" >&6; }
7359 if test "$ac_lto_supported" = "yes"; then
7360 CFLAGS
="$CFLAGS $LTO"
7366 # gl_GCC_VERSION_IFELSE([major], [minor], [run-if-found], [run-if-not-found])
7367 # ------------------------------------------------
7368 # If $CPP is gcc-MAJOR.MINOR or newer, then run RUN-IF-FOUND.
7369 # Otherwise, run RUN-IF-NOT-FOUND.
7372 # When compiling with GCC, prefer -isystem to -I when including system
7373 # include files, to avoid generating useless diagnostics for the files.
7374 if test "$gl_gcc_warnings" != yes; then
7379 # This, $nw, is the list of warnings we disable.
7382 case $with_x_toolkit in
7383 lucid | athena | motif
)
7384 # Old toolkits mishandle 'const'.
7385 nw
="$nw -Wwrite-strings"
7388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Werror" >&5
7389 $as_echo_n "checking whether C compiler handles -Werror... " >&6; }
7390 if test "${gl_cv_warn_c__Werror+set}" = set; then :
7391 $as_echo_n "(cached) " >&6
7394 gl_save_compiler_FLAGS
="$CFLAGS"
7395 as_fn_append CFLAGS
" -Werror"
7396 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7397 /* end confdefs.h. */
7407 if ac_fn_c_try_compile
"$LINENO"; then :
7408 gl_cv_warn_c__Werror
=yes
7410 gl_cv_warn_c__Werror
=no
7412 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7413 CFLAGS
="$gl_save_compiler_FLAGS"
7416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Werror" >&5
7417 $as_echo "$gl_cv_warn_c__Werror" >&6; }
7418 if test "x$gl_cv_warn_c__Werror" = x
""yes; then :
7419 as_fn_append WERROR_CFLAGS
" -Werror"
7427 nw
="$nw -Waggregate-return" # anachronistic
7428 nw
="$nw -Wlong-long" # C90 is anachronistic
7429 nw
="$nw -Wc++-compat" # We don't care about C++ compilers
7430 nw
="$nw -Wundef" # Warns on '#if GNULIB_FOO' etc in gnulib
7431 nw
="$nw -Wtraditional" # Warns on #elif which we use often
7432 nw
="$nw -Wcast-qual" # Too many warnings for now
7433 nw
="$nw -Wconversion" # Too many warnings for now
7434 nw
="$nw -Wsystem-headers" # Don't let system headers trigger warnings
7435 nw
="$nw -Wsign-conversion" # Too many warnings for now
7436 nw
="$nw -Woverlength-strings" # Not a problem these days
7437 nw
="$nw -Wtraditional-conversion" # Too many warnings for now
7438 nw
="$nw -Wunreachable-code" # so buggy that it's now silently ignored
7439 nw
="$nw -Wpadded" # Our structs are not padded
7440 nw
="$nw -Wredundant-decls" # we regularly (re)declare functions
7441 nw
="$nw -Wlogical-op" # any use of fwrite provokes this
7442 nw
="$nw -Wformat-nonliteral" # we do this a lot
7443 nw
="$nw -Wvla" # warnings in gettext.h
7444 nw
="$nw -Wnested-externs" # use of XARGMATCH/verify_function__
7445 nw
="$nw -Wswitch-enum" # Too many warnings for now
7446 nw
="$nw -Wswitch-default" # Too many warnings for now
7447 nw
="$nw -Wfloat-equal" # warns about high-quality code
7448 nw
="$nw -Winline" # OK to ignore 'inline'
7449 nw
="$nw -Wjump-misses-init" # We sometimes safely jump over init.
7450 nw
="$nw -Wstrict-overflow" # OK to optimize assuming that
7451 # signed overflow has undefined behavior
7452 nw
="$nw -Wsync-nand" # irrelevant here, and provokes ObjC warning
7453 nw
="$nw -Wunsafe-loop-optimizations" # OK to suppress unsafe optimizations
7455 # Emacs doesn't care about shadowing; see
7456 # <http://lists.gnu.org/archive/html/emacs-diffs/2011-11/msg00265.html>.
7459 # Emacs's use of alloca inhibits protecting the stack.
7460 nw
="$nw -Wstack-protector"
7462 # The following line should be removable at some point.
7463 nw
="$nw -Wsuggest-attribute=pure"
7467 if test -n "$GCC"; then
7469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is supported" >&5
7470 $as_echo_n "checking whether -Wno-missing-field-initializers is supported... " >&6; }
7471 if test "${gl_cv_cc_nomfi_supported+set}" = set; then :
7472 $as_echo_n "(cached) " >&6
7475 gl_save_CFLAGS
="$CFLAGS"
7476 CFLAGS
="$CFLAGS -W -Werror -Wno-missing-field-initializers"
7477 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7478 /* end confdefs.h. */
7488 if ac_fn_c_try_compile
"$LINENO"; then :
7489 gl_cv_cc_nomfi_supported
=yes
7491 gl_cv_cc_nomfi_supported
=no
7493 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7494 CFLAGS
="$gl_save_CFLAGS"
7497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_supported" >&5
7498 $as_echo "$gl_cv_cc_nomfi_supported" >&6; }
7500 if test "$gl_cv_cc_nomfi_supported" = yes; then
7501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is needed" >&5
7502 $as_echo_n "checking whether -Wno-missing-field-initializers is needed... " >&6; }
7503 if test "${gl_cv_cc_nomfi_needed+set}" = set; then :
7504 $as_echo_n "(cached) " >&6
7507 gl_save_CFLAGS
="$CFLAGS"
7508 CFLAGS
="$CFLAGS -W -Werror"
7509 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7510 /* end confdefs.h. */
7513 typedef struct { int a; int b; } s_t;
7525 if ac_fn_c_try_compile
"$LINENO"; then :
7526 gl_cv_cc_nomfi_needed
=no
7528 gl_cv_cc_nomfi_needed
=yes
7530 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7531 CFLAGS
="$gl_save_CFLAGS"
7535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_needed" >&5
7536 $as_echo "$gl_cv_cc_nomfi_needed" >&6; }
7539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wuninitialized is supported" >&5
7540 $as_echo_n "checking whether -Wuninitialized is supported... " >&6; }
7541 if test "${gl_cv_cc_uninitialized_supported+set}" = set; then :
7542 $as_echo_n "(cached) " >&6
7545 gl_save_CFLAGS
="$CFLAGS"
7546 CFLAGS
="$CFLAGS -Werror -Wuninitialized"
7547 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7548 /* end confdefs.h. */
7558 if ac_fn_c_try_compile
"$LINENO"; then :
7559 gl_cv_cc_uninitialized_supported
=yes
7561 gl_cv_cc_uninitialized_supported
=no
7563 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7564 CFLAGS
="$gl_save_CFLAGS"
7567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_uninitialized_supported" >&5
7568 $as_echo "$gl_cv_cc_uninitialized_supported" >&6; }
7572 # List all gcc warning categories.
7574 for gl_manywarn_item
in \
7581 -Wbad-function-cast \
7582 -Wbuiltin-macro-redefined \
7588 -Wcoverage-mismatch \
7591 -Wdeprecated-declarations \
7592 -Wdisabled-optimization \
7594 -Wdouble-promotion \
7599 -Wformat-contains-nul \
7600 -Wformat-extra-args \
7601 -Wformat-nonliteral \
7604 -Wformat-zero-length \
7606 -Wfree-nonheap-object \
7607 -Wignored-qualifiers \
7609 -Wimplicit-function-declaration \
7613 -Wint-to-pointer-cast \
7614 -Winvalid-memory-model \
7616 -Wjump-misses-init \
7619 -Wmaybe-uninitialized \
7621 -Wmissing-declarations \
7622 -Wmissing-field-initializers \
7623 -Wmissing-format-attribute \
7624 -Wmissing-include-dirs \
7625 -Wmissing-noreturn \
7626 -Wmissing-parameter-type \
7627 -Wmissing-prototypes \
7634 -Wold-style-declaration \
7635 -Wold-style-definition \
7637 -Woverlength-strings \
7640 -Wpacked-bitfield-compat \
7644 -Wpointer-to-int-cast \
7649 -Wsizeof-pointer-memaccess \
7653 -Wstrict-prototypes \
7654 -Wsuggest-attribute=const \
7655 -Wsuggest-attribute=format \
7656 -Wsuggest-attribute=noreturn \
7657 -Wsuggest-attribute=pure \
7667 -Wunreachable-code \
7668 -Wunsafe-loop-optimizations \
7670 -Wunused-but-set-parameter \
7671 -Wunused-but-set-variable \
7674 -Wunused-local-typedefs \
7676 -Wunused-parameter \
7682 -Wvector-operation-performance \
7684 -Wvolatile-register-var \
7688 gl_manywarn_set
="$gl_manywarn_set $gl_manywarn_item"
7691 # Disable specific options as needed.
7692 if test "$gl_cv_cc_nomfi_needed" = yes; then
7693 gl_manywarn_set
="$gl_manywarn_set -Wno-missing-field-initializers"
7696 if test "$gl_cv_cc_uninitialized_supported" = no
; then
7697 gl_manywarn_set
="$gl_manywarn_set -Wno-uninitialized"
7708 *" $gl_warn_item "*)
7711 gl_warn_set
="$gl_warn_set $gl_warn_item"
7718 as_gl_Warn
=`$as_echo "gl_cv_warn_c_$w" | $as_tr_sh`
7719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles $w" >&5
7720 $as_echo_n "checking whether C compiler handles $w... " >&6; }
7721 if { as_var
=$as_gl_Warn; eval "test \"\${$as_var+set}\" = set"; }; then :
7722 $as_echo_n "(cached) " >&6
7725 gl_save_compiler_FLAGS
="$CFLAGS"
7726 as_fn_append CFLAGS
" $w"
7727 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7728 /* end confdefs.h. */
7738 if ac_fn_c_try_compile
"$LINENO"; then :
7739 eval "$as_gl_Warn=yes"
7741 eval "$as_gl_Warn=no"
7743 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7744 CFLAGS
="$gl_save_compiler_FLAGS"
7747 eval ac_res
=\$
$as_gl_Warn
7748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7749 $as_echo "$ac_res" >&6; }
7750 eval as_val
=\$
$as_gl_Warn
7751 if test "x$as_val" = x
""yes; then :
7752 as_fn_append WARN_CFLAGS
" $w"
7757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-missing-field-initializers" >&5
7758 $as_echo_n "checking whether C compiler handles -Wno-missing-field-initializers... " >&6; }
7759 if test "${gl_cv_warn_c__Wno_missing_field_initializers+set}" = set; then :
7760 $as_echo_n "(cached) " >&6
7763 gl_save_compiler_FLAGS
="$CFLAGS"
7764 as_fn_append CFLAGS
" -Wno-missing-field-initializers"
7765 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7766 /* end confdefs.h. */
7776 if ac_fn_c_try_compile
"$LINENO"; then :
7777 gl_cv_warn_c__Wno_missing_field_initializers
=yes
7779 gl_cv_warn_c__Wno_missing_field_initializers
=no
7781 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7782 CFLAGS
="$gl_save_compiler_FLAGS"
7785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_missing_field_initializers" >&5
7786 $as_echo "$gl_cv_warn_c__Wno_missing_field_initializers" >&6; }
7787 if test "x$gl_cv_warn_c__Wno_missing_field_initializers" = x
""yes; then :
7788 as_fn_append WARN_CFLAGS
" -Wno-missing-field-initializers"
7792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-sign-compare" >&5
7793 $as_echo_n "checking whether C compiler handles -Wno-sign-compare... " >&6; }
7794 if test "${gl_cv_warn_c__Wno_sign_compare+set}" = set; then :
7795 $as_echo_n "(cached) " >&6
7798 gl_save_compiler_FLAGS
="$CFLAGS"
7799 as_fn_append CFLAGS
" -Wno-sign-compare"
7800 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7801 /* end confdefs.h. */
7811 if ac_fn_c_try_compile
"$LINENO"; then :
7812 gl_cv_warn_c__Wno_sign_compare
=yes
7814 gl_cv_warn_c__Wno_sign_compare
=no
7816 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7817 CFLAGS
="$gl_save_compiler_FLAGS"
7820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_sign_compare" >&5
7821 $as_echo "$gl_cv_warn_c__Wno_sign_compare" >&6; }
7822 if test "x$gl_cv_warn_c__Wno_sign_compare" = x
""yes; then :
7823 as_fn_append WARN_CFLAGS
" -Wno-sign-compare"
7826 # Too many warnings for now
7827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-type-limits" >&5
7828 $as_echo_n "checking whether C compiler handles -Wno-type-limits... " >&6; }
7829 if test "${gl_cv_warn_c__Wno_type_limits+set}" = set; then :
7830 $as_echo_n "(cached) " >&6
7833 gl_save_compiler_FLAGS
="$CFLAGS"
7834 as_fn_append CFLAGS
" -Wno-type-limits"
7835 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7836 /* end confdefs.h. */
7846 if ac_fn_c_try_compile
"$LINENO"; then :
7847 gl_cv_warn_c__Wno_type_limits
=yes
7849 gl_cv_warn_c__Wno_type_limits
=no
7851 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7852 CFLAGS
="$gl_save_compiler_FLAGS"
7855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_type_limits" >&5
7856 $as_echo "$gl_cv_warn_c__Wno_type_limits" >&6; }
7857 if test "x$gl_cv_warn_c__Wno_type_limits" = x
""yes; then :
7858 as_fn_append WARN_CFLAGS
" -Wno-type-limits"
7861 # Too many warnings for now
7862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-switch" >&5
7863 $as_echo_n "checking whether C compiler handles -Wno-switch... " >&6; }
7864 if test "${gl_cv_warn_c__Wno_switch+set}" = set; then :
7865 $as_echo_n "(cached) " >&6
7868 gl_save_compiler_FLAGS
="$CFLAGS"
7869 as_fn_append CFLAGS
" -Wno-switch"
7870 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7871 /* end confdefs.h. */
7881 if ac_fn_c_try_compile
"$LINENO"; then :
7882 gl_cv_warn_c__Wno_switch
=yes
7884 gl_cv_warn_c__Wno_switch
=no
7886 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7887 CFLAGS
="$gl_save_compiler_FLAGS"
7890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_switch" >&5
7891 $as_echo "$gl_cv_warn_c__Wno_switch" >&6; }
7892 if test "x$gl_cv_warn_c__Wno_switch" = x
""yes; then :
7893 as_fn_append WARN_CFLAGS
" -Wno-switch"
7896 # Too many warnings for now
7897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-unused-parameter" >&5
7898 $as_echo_n "checking whether C compiler handles -Wno-unused-parameter... " >&6; }
7899 if test "${gl_cv_warn_c__Wno_unused_parameter+set}" = set; then :
7900 $as_echo_n "(cached) " >&6
7903 gl_save_compiler_FLAGS
="$CFLAGS"
7904 as_fn_append CFLAGS
" -Wno-unused-parameter"
7905 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7906 /* end confdefs.h. */
7916 if ac_fn_c_try_compile
"$LINENO"; then :
7917 gl_cv_warn_c__Wno_unused_parameter
=yes
7919 gl_cv_warn_c__Wno_unused_parameter
=no
7921 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7922 CFLAGS
="$gl_save_compiler_FLAGS"
7925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_unused_parameter" >&5
7926 $as_echo "$gl_cv_warn_c__Wno_unused_parameter" >&6; }
7927 if test "x$gl_cv_warn_c__Wno_unused_parameter" = x
""yes; then :
7928 as_fn_append WARN_CFLAGS
" -Wno-unused-parameter"
7931 # Too many warnings for now
7932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-format-nonliteral" >&5
7933 $as_echo_n "checking whether C compiler handles -Wno-format-nonliteral... " >&6; }
7934 if test "${gl_cv_warn_c__Wno_format_nonliteral+set}" = set; then :
7935 $as_echo_n "(cached) " >&6
7938 gl_save_compiler_FLAGS
="$CFLAGS"
7939 as_fn_append CFLAGS
" -Wno-format-nonliteral"
7940 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7941 /* end confdefs.h. */
7951 if ac_fn_c_try_compile
"$LINENO"; then :
7952 gl_cv_warn_c__Wno_format_nonliteral
=yes
7954 gl_cv_warn_c__Wno_format_nonliteral
=no
7956 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7957 CFLAGS
="$gl_save_compiler_FLAGS"
7960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_format_nonliteral" >&5
7961 $as_echo "$gl_cv_warn_c__Wno_format_nonliteral" >&6; }
7962 if test "x$gl_cv_warn_c__Wno_format_nonliteral" = x
""yes; then :
7963 as_fn_append WARN_CFLAGS
" -Wno-format-nonliteral"
7968 # In spite of excluding -Wlogical-op above, it is enabled, as of
7969 # gcc 4.5.0 20090517.
7970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-logical-op" >&5
7971 $as_echo_n "checking whether C compiler handles -Wno-logical-op... " >&6; }
7972 if test "${gl_cv_warn_c__Wno_logical_op+set}" = set; then :
7973 $as_echo_n "(cached) " >&6
7976 gl_save_compiler_FLAGS
="$CFLAGS"
7977 as_fn_append CFLAGS
" -Wno-logical-op"
7978 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7979 /* end confdefs.h. */
7989 if ac_fn_c_try_compile
"$LINENO"; then :
7990 gl_cv_warn_c__Wno_logical_op
=yes
7992 gl_cv_warn_c__Wno_logical_op
=no
7994 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7995 CFLAGS
="$gl_save_compiler_FLAGS"
7998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_logical_op" >&5
7999 $as_echo "$gl_cv_warn_c__Wno_logical_op" >&6; }
8000 if test "x$gl_cv_warn_c__Wno_logical_op" = x
""yes; then :
8001 as_fn_append WARN_CFLAGS
" -Wno-logical-op"
8006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -fdiagnostics-show-option" >&5
8007 $as_echo_n "checking whether C compiler handles -fdiagnostics-show-option... " >&6; }
8008 if test "${gl_cv_warn_c__fdiagnostics_show_option+set}" = set; then :
8009 $as_echo_n "(cached) " >&6
8012 gl_save_compiler_FLAGS
="$CFLAGS"
8013 as_fn_append CFLAGS
" -fdiagnostics-show-option"
8014 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8015 /* end confdefs.h. */
8025 if ac_fn_c_try_compile
"$LINENO"; then :
8026 gl_cv_warn_c__fdiagnostics_show_option
=yes
8028 gl_cv_warn_c__fdiagnostics_show_option
=no
8030 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8031 CFLAGS
="$gl_save_compiler_FLAGS"
8034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__fdiagnostics_show_option" >&5
8035 $as_echo "$gl_cv_warn_c__fdiagnostics_show_option" >&6; }
8036 if test "x$gl_cv_warn_c__fdiagnostics_show_option" = x
""yes; then :
8037 as_fn_append WARN_CFLAGS
" -fdiagnostics-show-option"
8041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -funit-at-a-time" >&5
8042 $as_echo_n "checking whether C compiler handles -funit-at-a-time... " >&6; }
8043 if test "${gl_cv_warn_c__funit_at_a_time+set}" = set; then :
8044 $as_echo_n "(cached) " >&6
8047 gl_save_compiler_FLAGS
="$CFLAGS"
8048 as_fn_append CFLAGS
" -funit-at-a-time"
8049 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8050 /* end confdefs.h. */
8060 if ac_fn_c_try_compile
"$LINENO"; then :
8061 gl_cv_warn_c__funit_at_a_time
=yes
8063 gl_cv_warn_c__funit_at_a_time
=no
8065 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8066 CFLAGS
="$gl_save_compiler_FLAGS"
8069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__funit_at_a_time" >&5
8070 $as_echo "$gl_cv_warn_c__funit_at_a_time" >&6; }
8071 if test "x$gl_cv_warn_c__funit_at_a_time" = x
""yes; then :
8072 as_fn_append WARN_CFLAGS
" -funit-at-a-time"
8078 $as_echo "#define lint 1" >>confdefs.h
8082 $as_echo "#define GNULIB_PORTCHECK 1" >>confdefs.h
8085 # We use a slightly smaller set of warning options for lib/.
8086 # Remove the following and save the result in GNULIB_WARN_CFLAGS.
8088 nw
="$nw -Wunused-macros"
8092 set x
$WARN_CFLAGS; shift
8096 *" $gl_warn_item "*)
8099 gl_warn_set
="$gl_warn_set $gl_warn_item"
8103 GNULIB_WARN_CFLAGS
=$gl_warn_set
8110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8111 $as_echo_n "checking whether ln -s works... " >&6; }
8113 if test "$LN_S" = "ln -s"; then
8114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8115 $as_echo "yes" >&6; }
8117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
8118 $as_echo "no, using $LN_S" >&6; }
8122 # Extract the first word of "install-info", so it can be a program name with args.
8123 set dummy install-info
; ac_word
=$2
8124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8125 $as_echo_n "checking for $ac_word... " >&6; }
8126 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
8127 $as_echo_n "(cached) " >&6
8129 case $INSTALL_INFO in
8131 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
8134 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8135 for as_dir
in $PATH$PATH_SEPARATOR/usr
/sbin
$PATH_SEPARATOR/sbin
8138 test -z "$as_dir" && as_dir
=.
8139 for ac_exec_ext
in '' $ac_executable_extensions; do
8140 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8141 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
8142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8149 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
8153 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
8154 if test -n "$INSTALL_INFO"; then
8155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
8156 $as_echo "$INSTALL_INFO" >&6; }
8158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8159 $as_echo "no" >&6; }
8163 # Extract the first word of "gzip", so it can be a program name with args.
8164 set dummy
gzip; ac_word
=$2
8165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8166 $as_echo_n "checking for $ac_word... " >&6; }
8167 if test "${ac_cv_path_GZIP_PROG+set}" = set; then :
8168 $as_echo_n "(cached) " >&6
8172 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
8175 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8179 test -z "$as_dir" && as_dir
=.
8180 for ac_exec_ext
in '' $ac_executable_extensions; do
8181 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8182 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
8183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8193 GZIP_PROG
=$ac_cv_path_GZIP_PROG
8194 if test -n "$GZIP_PROG"; then
8195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
8196 $as_echo "$GZIP_PROG" >&6; }
8198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8199 $as_echo "no" >&6; }
8204 if test $opsys = gnu-linux
; then
8205 # Extract the first word of "paxctl", so it can be a program name with args.
8206 set dummy paxctl
; ac_word
=$2
8207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8208 $as_echo_n "checking for $ac_word... " >&6; }
8209 if test "${ac_cv_path_PAXCTL+set}" = set; then :
8210 $as_echo_n "(cached) " >&6
8214 ac_cv_path_PAXCTL
="$PAXCTL" # Let the user override the test with a path.
8217 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8218 for as_dir
in $PATH$PATH_SEPARATOR/sbin
$PATH_SEPARATOR/usr
/sbin
8221 test -z "$as_dir" && as_dir
=.
8222 for ac_exec_ext
in '' $ac_executable_extensions; do
8223 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8224 ac_cv_path_PAXCTL
="$as_dir/$ac_word$ac_exec_ext"
8225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8235 PAXCTL
=$ac_cv_path_PAXCTL
8236 if test -n "$PAXCTL"; then
8237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PAXCTL" >&5
8238 $as_echo "$PAXCTL" >&6; }
8240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8241 $as_echo "no" >&6; }
8245 if test "X$PAXCTL" != X
; then
8246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether binaries have a PT_PAX_FLAGS header" >&5
8247 $as_echo_n "checking whether binaries have a PT_PAX_FLAGS header... " >&6; }
8248 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8249 /* end confdefs.h. */
8259 if ac_fn_c_try_link
"$LINENO"; then :
8260 if $PAXCTL -v conftest
$EXEEXT >/dev
/null
2>&1; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8261 $as_echo "yes" >&6; }
8262 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8263 $as_echo "no" >&6; }; PAXCTL
=""; fi
8265 rm -f core conftest.err conftest.
$ac_objext \
8266 conftest
$ac_exeext conftest.
$ac_ext
8270 ## Need makeinfo >= 4.7 (?) to build the manuals.
8271 # Extract the first word of "makeinfo", so it can be a program name with args.
8272 set dummy makeinfo
; ac_word
=$2
8273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8274 $as_echo_n "checking for $ac_word... " >&6; }
8275 if test "${ac_cv_path_MAKEINFO+set}" = set; then :
8276 $as_echo_n "(cached) " >&6
8280 ac_cv_path_MAKEINFO
="$MAKEINFO" # Let the user override the test with a path.
8283 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8287 test -z "$as_dir" && as_dir
=.
8288 for ac_exec_ext
in '' $ac_executable_extensions; do
8289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8290 ac_cv_path_MAKEINFO
="$as_dir/$ac_word$ac_exec_ext"
8291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8298 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO
="no"
8302 MAKEINFO
=$ac_cv_path_MAKEINFO
8303 if test -n "$MAKEINFO"; then
8304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8305 $as_echo "$MAKEINFO" >&6; }
8307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8308 $as_echo "no" >&6; }
8312 if test "$MAKEINFO" != "no"; then
8314 $MAKEINFO --version 2> /dev/null |
8315 $EGREP 'texinfo[^0-9]*([1-4][0-9]+|[5-9]|4\.[7-9]|4\.[1-6][0-9]+)'
8321 ## Makeinfo is unusual. For a released Emacs, the manuals are
8322 ## pre-built, and not deleted by the normal clean rules. makeinfo is
8323 ## therefore in the category of "special tools" not normally required, which
8324 ## configure does not have to check for (eg autoconf itself).
8325 ## In a Bazaar checkout on the other hand, the manuals are not included.
8326 ## So makeinfo is a requirement to build from Bazaar, and configure
8327 ## should test for it as it does for any other build requirement.
8328 ## We use the presence of $srcdir/info/emacs to distinguish a release,
8329 ## with pre-built manuals, from a Bazaar checkout.
8332 if test "$MAKEINFO" = "no"; then
8334 if test "x${with_makeinfo}" = "xno"; then
8336 elif test ! -e "$srcdir/info/emacs" && test ! -e "$srcdir/info/emacs.info"; then
8337 as_fn_error
"You do not seem to have makeinfo >= 4.7, and your
8338 source tree does not seem to have pre-built manuals in the \`info' directory.
8339 Either install a suitable version of makeinfo, or re-run configure
8340 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
8346 INFO_OPTS
=--no-split
8351 if test x
$GCC = xyes
; then
8352 test "x$GCC_LINK_TEST_OPTIONS" != x
&& \
8353 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
8355 test "x$NON_GCC_LINK_TEST_OPTIONS" != x
&& \
8356 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
8360 late_LDFLAGS
=$LDFLAGS
8361 if test x
$GCC = xyes
; then
8362 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
8364 LDFLAGS
="$LDFLAGS -znocombreloc"
8367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
8368 $as_echo_n "checking for -znocombreloc... " >&6; }
8369 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8370 /* end confdefs.h. */
8380 if ac_fn_c_try_link
"$LINENO"; then :
8381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8382 $as_echo "yes" >&6; }
8384 LDFLAGS
=$late_LDFLAGS
8385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8386 $as_echo "no" >&6; }
8388 rm -f core conftest.err conftest.
$ac_objext \
8389 conftest
$ac_exeext conftest.
$ac_ext
8392 test "x$CANNOT_DUMP" = "x" && CANNOT_DUMP
=no
8394 your-opsys-here
) CANNOT_DUMP
=yes ;;
8397 test "$CANNOT_DUMP" = "yes" && \
8399 $as_echo "#define CANNOT_DUMP 1" >>confdefs.h
8405 UNEXEC_OBJ
=unexelf.o
8407 # MSDOS uses unexcoff.o
8408 # MSWindows uses unexw32.o
8410 UNEXEC_OBJ
=unexaix.o
8416 UNEXEC_OBJ
=unexmacosx.o
8419 UNEXEC_OBJ
=unexhp9k800.o
8422 # Use the Solaris dldump() function, called from unexsol.c, to dump
8423 # emacs, instead of the generic ELF dump code found in unexelf.c.
8424 # The resulting binary has a complete symbol table, and is better
8425 # for debugging and other observability tools (debuggers, pstack, etc).
8427 # If you encounter a problem using dldump(), please consider sending
8428 # a message to the OpenSolaris tools-linking mailing list:
8429 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
8431 # It is likely that dldump() works with older Solaris too, but this has
8432 # not been tested, so for now this change is for Solaris 10 or newer.
8433 UNEXEC_OBJ
=unexsol.o
8440 ## Let `ld' find image libs and similar things in /usr/local/lib.
8441 ## The system compiler, GCC, has apparently been modified to not
8442 ## look there, contrary to what a stock GCC would do.
8443 ### It's not our place to do this. See bug#10313#17.
8444 ### LD_SWITCH_SYSTEM=-L/usr/local/lib
8449 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
8450 case $host_cpu in mips
*) LD_SWITCH_SYSTEM
="-G 0";; esac
8454 ### It's not our place to do this. See bug#10313#17.
8455 ### LD_SWITCH_SYSTEM="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
8460 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
8461 ## otherwise Emacs dumps core on elf systems.
8462 LD_SWITCH_SYSTEM
="-Z"
8467 ac_link
="$ac_link $LD_SWITCH_SYSTEM"
8469 ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_RPATH,
8470 ## which has not been defined yet. When this was handled with cpp,
8471 ## it was expanded to null when configure sourced the s/*.h file.
8472 ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
8473 ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
8474 ## (or somesuch), but because it is supposed to go at the _front_
8475 ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
8476 ## Compare with the gnu-linux case below, which added to the end
8477 ## of LD_SWITCH_SYSTEM, and so can instead go at the front of
8478 ## LD_SWITCH_SYSTEM_TEMACS.
8481 LD_SWITCH_SYSTEM
="\$(LD_SWITCH_X_SITE_RPATH) $LD_SWITCH_SYSTEM" ;;
8488 ac_fn_c_check_decl
"$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
8489 if test "x$ac_cv_have_decl___ELF__" = x
""yes; then :
8493 if test "$ac_cv_have_decl___ELF__" = "yes"; then
8494 ## With ELF, make sure that all common symbols get allocated to in the
8495 ## data section. Otherwise, the dump of temacs may miss variables in
8496 ## the shared library that have been initialized. For example, with
8497 ## GNU libc, __malloc_initialized would normally be resolved to the
8498 ## shared library's .bss section, which is fatal.
8499 if test "x$GCC" = "xyes"; then
8500 C_SWITCH_MACHINE
="-fno-common"
8502 as_fn_error
"What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
8505 UNEXEC_OBJ
=unexalpha.o
8514 ## Some programs in src produce warnings saying certain subprograms
8515 ## are too complex and need a MAXMEM value greater than 2000 for
8516 ## additional optimization. --nils@exp-math.uni-essen.de
8517 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
8518 C_SWITCH_SYSTEM
="-ma -qmaxmem=4000"
8519 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
8520 ## It is redundant in glibc2, since we define _GNU_SOURCE.
8526 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
8527 aix4-2
) LIBS_SYSTEM
="-lrts -lIM -liconv" ;;
8529 freebsd
) LIBS_SYSTEM
="-lutil" ;;
8531 hpux
*) LIBS_SYSTEM
="-l:libdld.sl" ;;
8533 sol2
*) LIBS_SYSTEM
="-lsocket -lnsl" ;;
8535 ## Motif needs -lgen.
8536 unixware
) LIBS_SYSTEM
="-lsocket -lnsl -lelf -lgen" ;;
8541 ### Make sure subsequent tests use flags consistent with the build flags.
8543 if test x
"${OVERRIDE_CPPFLAGS}" != x
; then
8544 CPPFLAGS
="${OVERRIDE_CPPFLAGS}"
8546 CPPFLAGS
="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
8549 # Suppress obsolescent Autoconf test for size_t; Emacs assumes C89 or better.
8551 # Likewise for obsolescent test for uid_t, gid_t; Emacs assumes them.
8556 SYSTEM_TYPE
=`echo $opsys | sed -e 's/[0-9].*//' -e 's|-|/|'`
8563 ## Adding -lm confuses the dynamic linker, so omit it.
8567 SYSTEM_TYPE
=berkeley-unix
8569 gnu-linux | gnu-kfreebsd
)
8571 hpux10-20 | hpux11
)
8574 SYSTEM_TYPE
=berkeley-unix
8578 SYSTEM_TYPE
=usg-unix-v
8585 cat >>confdefs.h
<<_ACEOF
8586 #define SYSTEM_TYPE "$SYSTEM_TYPE"
8591 pre_PKG_CONFIG_CFLAGS
=$CFLAGS
8592 pre_PKG_CONFIG_LIBS
=$LIBS
8594 # Extract the first word of "pkg-config", so it can be a program name with args.
8595 set dummy pkg-config
; ac_word
=$2
8596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8597 $as_echo_n "checking for $ac_word... " >&6; }
8598 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8599 $as_echo_n "(cached) " >&6
8603 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
8606 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8610 test -z "$as_dir" && as_dir
=.
8611 for ac_exec_ext
in '' $ac_executable_extensions; do
8612 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8613 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
8614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8621 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
8625 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
8626 if test -n "$PKG_CONFIG"; then
8627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8628 $as_echo "$PKG_CONFIG" >&6; }
8630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8631 $as_echo "no" >&6; }
8639 if test "${with_sound}" != "no"; then
8640 # Sound support for GNU/Linux and the free BSDs.
8641 for ac_header
in machine
/soundcard.h sys
/soundcard.h soundcard.h
8643 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8644 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8645 eval as_val
=\$
$as_ac_Header
8646 if test "x$as_val" = x
""yes; then :
8647 cat >>confdefs.h
<<_ACEOF
8648 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8650 have_sound_header
=yes
8655 # Emulation library used on NetBSD.
8656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
8657 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
8658 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
8659 $as_echo_n "(cached) " >&6
8661 ac_check_lib_save_LIBS
=$LIBS
8662 LIBS
="-lossaudio $LIBS"
8663 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8664 /* end confdefs.h. */
8666 /* Override any GCC internal prototype to avoid an error.
8667 Use char because int might match the return type of a GCC
8668 builtin and then its argument prototype would still apply. */
8676 return _oss_ioctl ();
8681 if ac_fn_c_try_link
"$LINENO"; then :
8682 ac_cv_lib_ossaudio__oss_ioctl
=yes
8684 ac_cv_lib_ossaudio__oss_ioctl
=no
8686 rm -f core conftest.err conftest.
$ac_objext \
8687 conftest
$ac_exeext conftest.
$ac_ext
8688 LIBS
=$ac_check_lib_save_LIBS
8690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
8691 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
8692 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x
""yes; then :
8701 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
8705 if test "$PKG_CONFIG" = "no" ; then
8708 PKG_CONFIG_MIN_VERSION
=0.9.0
8709 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
8711 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
8713 if "$PKG_CONFIG" --exists "$ALSA_MODULES" 2>&5 &&
8714 ALSA_CFLAGS
=`"$PKG_CONFIG" --cflags "$ALSA_MODULES" 2>&5` &&
8715 ALSA_LIBS
=`"$PKG_CONFIG" --libs "$ALSA_MODULES" 2>&5`; then
8722 ALSA_CFLAGS
=`$as_echo "$ALSA_CFLAGS" | sed -e "$edit_cflags"`
8723 ALSA_LIBS
=`$as_echo "$ALSA_LIBS" | sed -e 's,///*,/,g'`
8724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$ALSA_CFLAGS' LIBS='$ALSA_LIBS'" >&5
8725 $as_echo "yes CFLAGS='$ALSA_CFLAGS' LIBS='$ALSA_LIBS'" >&6; }
8728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8729 $as_echo "no" >&6; }
8732 ## If we have a custom action on failure, don't print errors, but
8733 ## do set a variable so people can do so. Do it in a subshell
8734 ## to capture any diagnostics in invoking pkg-config.
8735 ALSA_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "$ALSA_MODULES") 2>&1`
8742 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8743 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8747 if test $succeeded = yes; then
8753 if test $HAVE_ALSA = yes; then
8754 SAVE_CFLAGS
="$CFLAGS"
8756 CFLAGS
="$ALSA_CFLAGS $CFLAGS"
8757 LIBS
="$ALSA_LIBS $LIBS"
8758 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8759 /* end confdefs.h. */
8760 #include <asoundlib.h>
8764 snd_lib_error_set_handler (0);
8769 if ac_fn_c_try_compile
"$LINENO"; then :
8770 emacs_alsa_normal
=yes
8772 emacs_alsa_normal
=no
8774 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8775 if test "$emacs_alsa_normal" != yes; then
8776 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8777 /* end confdefs.h. */
8778 #include <alsa/asoundlib.h>
8782 snd_lib_error_set_handler (0);
8787 if ac_fn_c_try_compile
"$LINENO"; then :
8788 emacs_alsa_subdir
=yes
8790 emacs_alsa_subdir
=no
8792 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8793 if test "$emacs_alsa_subdir" != yes; then
8794 as_fn_error
"pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
8796 ALSA_CFLAGS
="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
8799 CFLAGS
="$SAVE_CFLAGS"
8801 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
8802 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
8804 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
8808 if test x
$have_sound_header = xyes ||
test $HAVE_ALSA = yes; then
8810 gnu-linux|freebsd|netbsd
)
8812 $as_echo "#define HAVE_SOUND 1" >>confdefs.h
8824 for ac_header
in $ac_header_list
8826 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8827 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8829 eval as_val
=\$
$as_ac_Header
8830 if test "x$as_val" = x
""yes; then :
8831 cat >>confdefs.h
<<_ACEOF
8832 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
8860 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
8861 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8862 /* end confdefs.h. */
8863 #include <sys/personality.h>
8867 personality (PER_LINUX32)
8872 if ac_fn_c_try_compile
"$LINENO"; then :
8873 emacs_cv_personality_linux32
=yes
8875 emacs_cv_personality_linux32
=no
8877 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
8879 $as_echo "$emacs_cv_personality_linux32" >&6; }
8881 if test $emacs_cv_personality_linux32 = yes; then
8883 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
8887 for ac_header
in term.h
8889 ac_fn_c_check_header_preproc
"$LINENO" "term.h" "ac_cv_header_term_h"
8890 if test "x$ac_cv_header_term_h" = x
""yes; then :
8891 cat >>confdefs.h
<<_ACEOF
8892 #define HAVE_TERM_H 1
8899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8900 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8901 if test "${ac_cv_header_time+set}" = set; then :
8902 $as_echo_n "(cached) " >&6
8904 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8905 /* end confdefs.h. */
8906 #include <sys/types.h>
8907 #include <sys/time.h>
8913 if ((struct tm *) 0)
8919 if ac_fn_c_try_compile
"$LINENO"; then :
8920 ac_cv_header_time
=yes
8922 ac_cv_header_time
=no
8924 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8927 $as_echo "$ac_cv_header_time" >&6; }
8928 if test $ac_cv_header_time = yes; then
8930 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8934 ac_fn_c_check_decl
"$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "#include <signal.h>
8937 if test "x$ac_cv_have_decl_sys_siglist" = x
""yes; then :
8943 cat >>confdefs.h
<<_ACEOF
8944 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
8947 if test $ac_cv_have_decl_sys_siglist != yes; then
8948 # For Tru64, at least:
8949 ac_fn_c_check_decl
"$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "#include <signal.h>
8952 if test "x$ac_cv_have_decl___sys_siglist" = x
""yes; then :
8958 cat >>confdefs.h
<<_ACEOF
8959 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
8962 if test $ac_cv_have_decl___sys_siglist = yes; then
8964 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
8968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8969 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8970 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8971 $as_echo_n "(cached) " >&6
8973 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8974 /* end confdefs.h. */
8975 #include <sys/types.h>
8976 #include <sys/wait.h>
8978 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8981 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8989 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8994 if ac_fn_c_try_compile
"$LINENO"; then :
8995 ac_cv_header_sys_wait_h
=yes
8997 ac_cv_header_sys_wait_h
=no
8999 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
9002 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
9003 if test $ac_cv_header_sys_wait_h = yes; then
9005 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
9010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
9011 $as_echo_n "checking for speed_t... " >&6; }
9012 if test "${emacs_cv_speed_t+set}" = set; then :
9013 $as_echo_n "(cached) " >&6
9015 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9016 /* end confdefs.h. */
9017 #include <termios.h>
9026 if ac_fn_c_try_compile
"$LINENO"; then :
9027 emacs_cv_speed_t
=yes
9031 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
9034 $as_echo "$emacs_cv_speed_t" >&6; }
9035 if test $emacs_cv_speed_t = yes; then
9037 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
9044 for ac_header
in net
/if.h
9046 ac_fn_c_check_header_compile
"$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
9047 #if HAVE_SYS_SOCKET_H
9048 #include <sys/socket.h>
9051 if test "x$ac_cv_header_net_if_h" = x
""yes; then :
9052 cat >>confdefs.h
<<_ACEOF
9053 #define HAVE_NET_IF_H 1
9060 for ac_header
in ifaddrs.h
9062 ac_fn_c_check_header_compile
"$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default
9063 #if HAVE_SYS_SOCKET_H
9064 #include <sys/socket.h>
9067 if test "x$ac_cv_header_ifaddrs_h" = x
""yes; then :
9068 cat >>confdefs.h
<<_ACEOF
9069 #define HAVE_IFADDRS_H 1
9076 for ac_header
in net
/if_dl.h
9078 ac_fn_c_check_header_compile
"$LINENO" "net/if_dl.h" "ac_cv_header_net_if_dl_h" "$ac_includes_default
9079 #if HAVE_SYS_SOCKET_H
9080 #include <sys/socket.h>
9083 if test "x$ac_cv_header_net_if_dl_h" = x
""yes; then :
9084 cat >>confdefs.h
<<_ACEOF
9085 #define HAVE_NET_IF_DL_H 1
9093 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
9094 #if HAVE_SYS_SOCKET_H
9095 #include <sys/socket.h>
9101 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x
""yes; then :
9103 cat >>confdefs.h
<<_ACEOF
9104 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
9109 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
9110 #if HAVE_SYS_SOCKET_H
9111 #include <sys/socket.h>
9117 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x
""yes; then :
9119 cat >>confdefs.h
<<_ACEOF
9120 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
9125 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
9126 #if HAVE_SYS_SOCKET_H
9127 #include <sys/socket.h>
9133 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x
""yes; then :
9135 cat >>confdefs.h
<<_ACEOF
9136 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
9141 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
9142 #if HAVE_SYS_SOCKET_H
9143 #include <sys/socket.h>
9149 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x
""yes; then :
9151 cat >>confdefs.h
<<_ACEOF
9152 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
9157 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
9158 #if HAVE_SYS_SOCKET_H
9159 #include <sys/socket.h>
9165 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x
""yes; then :
9167 cat >>confdefs.h
<<_ACEOF
9168 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
9173 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_addr.sa_len" "ac_cv_member_struct_ifreq_ifr_addr_sa_len" "$ac_includes_default
9174 #if HAVE_SYS_SOCKET_H
9175 #include <sys/socket.h>
9181 if test "x$ac_cv_member_struct_ifreq_ifr_addr_sa_len" = x
""yes; then :
9183 cat >>confdefs.h
<<_ACEOF
9184 #define HAVE_STRUCT_IFREQ_IFR_ADDR_SA_LEN 1
9196 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
9197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
9198 $as_echo_n "checking whether we are using GNU Make... " >&6; }
9200 testval
=`${MAKE-make} --version 2>/dev/null | grep 'GNU Make'`
9201 if test "x$testval" != x
; then
9204 ac_enable_autodepend
=no
9206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
9207 $as_echo "$HAVE_GNU_MAKE" >&6; }
9208 if test $HAVE_GNU_MAKE = yes; then
9209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
9210 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
9211 SAVE_CFLAGS
="$CFLAGS"
9212 CFLAGS
="$CFLAGS -MMD -MF deps.d -MP"
9213 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9214 /* end confdefs.h. */
9224 if ac_fn_c_try_compile
"$LINENO"; then :
9227 ac_enable_autodepend
=no
9229 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9230 CFLAGS
="$SAVE_CFLAGS"
9231 test -f deps.d || ac_enable_autodepend
=no
9233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
9234 $as_echo "$ac_enable_autodepend" >&6; }
9236 if test $ac_enable_autodepend = yes; then
9237 DEPFLAGS
='-MMD -MF ${DEPDIR}/$*.d -MP'
9238 ## MKDIR_P is documented (see AC_PROG_MKDIR_P) to be parallel-safe.
9239 MKDEPDIR
='${MKDIR_P} ${DEPDIR}'
9240 deps_frag
=autodeps.mk
9243 deps_frag
=$srcdir/src
/$deps_frag
9249 lisp_frag
=$srcdir/src
/lisp.mk
9253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
9254 $as_echo_n "checking for long file names... " >&6; }
9255 if test "${ac_cv_sys_long_file_names+set}" = set; then :
9256 $as_echo_n "(cached) " >&6
9258 ac_cv_sys_long_file_names
=yes
9259 # Test for long file names in all the places we know might matter:
9260 # . the current directory, where building will happen
9261 # $prefix/lib where we will be installing things
9262 # $exec_prefix/lib likewise
9263 # $TMPDIR if set, where it might want to write temporary files
9264 # /tmp where it might want to write temporary files
9267 for ac_dir
in .
"$TMPDIR" /tmp
/var
/tmp
/usr
/tmp
"$prefix/lib" "$exec_prefix/lib"; do
9268 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9269 # in the usual case where exec_prefix is '${prefix}'.
9271 . |
/* | ?
:[\\/]*) ;; #(
9274 test -w "$ac_dir/." ||
continue # It is less confusing to not echo anything here.
9275 ac_xdir
=$ac_dir/cf$$
9276 (umask 077 && mkdir
"$ac_xdir" 2>/dev
/null
) ||
continue
9277 ac_tf1
=$ac_xdir/conftest9012345
9278 ac_tf2
=$ac_xdir/conftest9012346
9279 touch "$ac_tf1" 2>/dev
/null
&& test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9280 ac_cv_sys_long_file_names
=no
9281 rm -f -r "$ac_xdir" 2>/dev
/null
9282 test $ac_cv_sys_long_file_names = no
&& break
9285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
9286 $as_echo "$ac_cv_sys_long_file_names" >&6; }
9287 if test $ac_cv_sys_long_file_names = yes; then
9289 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
9294 #### Choose a window system.
9296 ## We leave window_system equal to none if
9297 ## we end up building without one. Any new window system should
9298 ## set window_system to an appropriate value and add objects to
9299 ## window-system-specific substs.
9302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
9303 $as_echo_n "checking for X... " >&6; }
9306 # Check whether --with-x was given.
9307 if test "${with_x+set}" = set; then :
9311 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9312 if test "x$with_x" = xno
; then
9313 # The user explicitly disabled X.
9316 case $x_includes,$x_libraries in #(
9317 *\'*) as_fn_error
"cannot use X directory names containing '" "$LINENO" 5;; #(
9318 *,NONE | NONE
,*) if test "${ac_cv_have_x+set}" = set; then :
9319 $as_echo_n "(cached) " >&6
9321 # One or both of the vars are not set, and there is no cached value.
9322 ac_x_includes
=no ac_x_libraries
=no
9323 rm -f -r conftest.dir
9324 if mkdir conftest.dir
; then
9326 cat >Imakefile
<<'_ACEOF'
9328 @echo incroot='${INCROOT}'
9330 @echo usrlibdir='${USRLIBDIR}'
9332 @echo libdir='${LIBDIR}'
9334 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
9335 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9336 for ac_var
in incroot usrlibdir libdir
; do
9337 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9339 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9340 for ac_extension
in a so sl dylib la dll
; do
9341 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9342 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9343 ac_im_usrlibdir
=$ac_im_libdir; break
9346 # Screen out bogus values from the imake configuration. They are
9347 # bogus both because they are the default anyway, and because
9348 # using them would break gcc on systems where it needs fixed includes.
9349 case $ac_im_incroot in
9350 /usr
/include
) ac_x_includes
= ;;
9351 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
9353 case $ac_im_usrlibdir in
9354 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
9355 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
9359 rm -f -r conftest.dir
9362 # Standard set of common directories for X headers.
9363 # Check X11 before X11Rn because it is often a symlink to the current release.
9377 /usr/local/X11/include
9378 /usr/local/X11R7/include
9379 /usr/local/X11R6/include
9380 /usr/local/X11R5/include
9381 /usr/local/X11R4/include
9383 /usr/local/include/X11
9384 /usr/local/include/X11R7
9385 /usr/local/include/X11R6
9386 /usr/local/include/X11R5
9387 /usr/local/include/X11R4
9391 /usr/XFree86/include/X11
9395 /usr/unsupported/include
9397 /usr/local/x11r5/include
9398 /usr/lpp/Xamples/include
9400 /usr/openwin/include
9401 /usr/openwin/share/include'
9403 if test "$ac_x_includes" = no
; then
9404 # Guess where to find include files, by looking for Xlib.h.
9405 # First, try using that file with no special directory specified.
9406 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9407 /* end confdefs.h. */
9408 #include <X11/Xlib.h>
9410 if ac_fn_c_try_cpp
"$LINENO"; then :
9411 # We can compile using X headers with no special include directory.
9414 for ac_dir
in $ac_x_header_dirs; do
9415 if test -r "$ac_dir/X11/Xlib.h"; then
9416 ac_x_includes
=$ac_dir
9421 rm -f conftest.err conftest.
$ac_ext
9422 fi # $ac_x_includes = no
9424 if test "$ac_x_libraries" = no
; then
9425 # Check for the libraries.
9426 # See if we find them without any special options.
9427 # Don't add to $LIBS permanently.
9430 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9431 /* end confdefs.h. */
9432 #include <X11/Xlib.h>
9441 if ac_fn_c_try_link
"$LINENO"; then :
9443 # We can link X programs with no special library path.
9447 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9449 # Don't even attempt the hair of trying to link an X program!
9450 for ac_extension
in a so sl dylib la dll
; do
9451 if test -r "$ac_dir/libX11.$ac_extension"; then
9452 ac_x_libraries
=$ac_dir
9458 rm -f core conftest.err conftest.
$ac_objext \
9459 conftest
$ac_exeext conftest.
$ac_ext
9460 fi # $ac_x_libraries = no
9462 case $ac_x_includes,$ac_x_libraries in #(
9464 # Didn't find X, or a directory has "'" in its name.
9465 ac_cv_have_x
="have_x=no";; #(
9467 # Record where we found X for the cache.
9468 ac_cv_have_x
="have_x=yes\
9469 ac_x_includes='$ac_x_includes'\
9470 ac_x_libraries='$ac_x_libraries'"
9476 eval "$ac_cv_have_x"
9479 if test "$have_x" != yes; then
9480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
9481 $as_echo "$have_x" >&6; }
9484 # If each of the values was on the command line, it overrides each guess.
9485 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
9486 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
9487 # Update the cache value to reflect the command line values.
9488 ac_cv_have_x
="have_x=yes\
9489 ac_x_includes='$x_includes'\
9490 ac_x_libraries='$x_libraries'"
9491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
9492 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
9495 if test "$no_x" != yes; then
9499 LD_SWITCH_X_SITE_RPATH
=
9500 if test "${x_libraries}" != NONE
; then
9501 if test -n "${x_libraries}"; then
9502 LD_SWITCH_X_SITE
=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9503 LD_SWITCH_X_SITE_RPATH
=-Wl,-rpath,`echo ${x_libraries} | sed -e "s/:/ -Wl,-rpath,/g"`
9505 x_default_search_path
=""
9506 x_search_path
=${x_libraries}
9507 if test -z "${x_search_path}"; then
9508 x_search_path
=/usr
/lib
9510 for x_library
in `echo ${x_search_path}: | \
9511 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9513 ${x_library}/X11/%L/%T/%N%C%S:\
9514 ${x_library}/X11/%l/%T/%N%C%S:\
9515 ${x_library}/X11/%T/%N%C%S:\
9516 ${x_library}/X11/%L/%T/%N%S:\
9517 ${x_library}/X11/%l/%T/%N%S:\
9518 ${x_library}/X11/%T/%N%S"
9519 if test x
"${x_default_search_path}" = x
; then
9520 x_default_search_path
=${x_search_path}
9522 x_default_search_path
="${x_search_path}:${x_default_search_path}"
9528 if test "${x_includes}" != NONE
&& test -n "${x_includes}"; then
9529 C_SWITCH_X_SITE
="$isystem"`echo ${x_includes} | sed -e "s/:/ $isystem/g"`
9532 if test x
"${x_includes}" = x
; then
9533 bitmapdir
=/usr
/include
/X11
/bitmaps
9535 # accumulate include directories that have X11 bitmap subdirectories
9537 for bmd
in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9538 if test -d "${bmd}/X11/bitmaps"; then
9539 bmd_acc
="${bmd_acc}:${bmd}/X11/bitmaps"
9541 if test -d "${bmd}/bitmaps"; then
9542 bmd_acc
="${bmd_acc}:${bmd}/bitmaps"
9545 if test ${bmd_acc} != "dummyval"; then
9546 bitmapdir
=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9553 tmp_CPPFLAGS
="$CPPFLAGS"
9554 tmp_CFLAGS
="$CFLAGS"
9555 CPPFLAGS
="$CPPFLAGS -x objective-c"
9556 CFLAGS
="$CFLAGS -x objective-c"
9559 if test "${with_ns}" != no
; then
9560 if test "${opsys}" = darwin
; then
9562 ns_appdir
=`pwd`/nextstep
/Emacs.app
9563 ns_appbindir
=${ns_appdir}/Contents
/MacOS
9564 ns_appresdir
=${ns_appdir}/Contents
/Resources
9565 ns_appsrc
=Cocoa
/Emacs.base
9566 elif test -f $GNUSTEP_CONFIG_FILE; then
9568 ns_appdir
=`pwd`/nextstep
/Emacs.app
9569 ns_appbindir
=${ns_appdir}
9570 ns_appresdir
=${ns_appdir}/Resources
9571 ns_appsrc
=GNUstep
/Emacs.base
9572 GNUSTEP_SYSTEM_HEADERS
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9573 GNUSTEP_SYSTEM_LIBRARIES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9574 GNUSTEP_LOCAL_HEADERS
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
9575 GNUSTEP_LOCAL_LIBRARIES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
9576 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
9577 GNUSTEP_LOCAL_HEADERS
="-I${GNUSTEP_LOCAL_HEADERS}"
9578 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
9579 GNUSTEP_LOCAL_LIBRARIES
="-L${GNUSTEP_LOCAL_LIBRARIES}"
9580 CPPFLAGS
="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9581 CFLAGS
="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9582 LDFLAGS
="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
9583 LIBS_GNUSTEP
="-lgnustep-gui -lgnustep-base -lobjc -lpthread"
9584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS" >&5
9585 $as_echo_n "checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS... " >&6; }
9586 if test "${emacs_cv_objc_exceptions+set}" = set; then :
9587 $as_echo_n "(cached) " >&6
9589 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9590 /* end confdefs.h. */
9591 #include <GNUstepBase/GSConfig.h>
9595 #if defined BASE_NATIVE_OBJC_EXCEPTIONS && BASE_NATIVE_OBJC_EXCEPTIONS > 0
9604 if ac_fn_c_try_compile
"$LINENO"; then :
9605 emacs_cv_objc_exceptions
=yes
9607 emacs_cv_objc_exceptions
=no
9609 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_objc_exceptions" >&5
9612 $as_echo "$emacs_cv_objc_exceptions" >&6; }
9613 if test $emacs_cv_objc_exceptions = yes; then
9615 $as_echo "#define _NATIVE_OBJC_EXCEPTIONS 1" >>confdefs.h
9617 GNU_OBJC_CFLAGS
="-fobjc-exceptions"
9621 CFLAGS
="$CFLAGS $GNU_OBJC_CFLAGS"
9623 ac_fn_c_check_header_mongrel
"$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
9624 if test "x$ac_cv_header_AppKit_AppKit_h" = x
""yes; then :
9627 as_fn_error
"\`--with-ns' was specified, but the include
9628 files are missing or cannot be compiled." "$LINENO" 5
9633 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9634 /* end confdefs.h. */
9635 #include <AppKit/AppKit.h>
9640 #ifdef MAC_OS_X_VERSION_MAX_ALLOWED
9641 #if MAC_OS_X_VERSION_MAX_ALLOWED >= 1040
9644 #error "OSX 10.4 or newer required"
9652 if ac_fn_c_try_compile
"$LINENO"; then :
9657 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9658 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9659 /* end confdefs.h. */
9660 #include <Foundation/NSObjCRuntime.h>
9669 if ac_fn_c_try_compile
"$LINENO"; then :
9670 ns_have_nsinteger
=yes
9672 ns_have_nsinteger
=no
9674 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9675 if test $ns_osx_have_104 = no
; then
9676 as_fn_error
"\`OSX 10.4 or newer is required'" "$LINENO" 5;
9678 if test $ns_have_nsinteger = yes; then
9680 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
9687 INSTALL_ARCH_INDEP_EXTRA
=install-etc
9688 ns_self_contained
=no
9691 if test "${HAVE_NS}" = yes; then
9692 if test "$with_toolkit_scroll_bars" = "no"; then
9693 as_fn_error
"Non-toolkit scroll bars are not implemented for Nextstep." "$LINENO" 5
9696 window_system
=nextstep
9697 # set up packaging dirs
9698 if test "${EN_NS_SELF_CONTAINED}" = yes; then
9699 ns_self_contained
=yes
9700 prefix
=${ns_appresdir}
9701 exec_prefix
=${ns_appbindir}
9702 libexecdir
="\${ns_appbindir}/libexec"
9703 archlibdir
="\${ns_appbindir}/libexec"
9704 docdir
="\${ns_appresdir}/etc"
9705 etcdir
="\${ns_appresdir}/etc"
9706 infodir
="\${ns_appresdir}/info"
9707 mandir
="\${ns_appresdir}/man"
9708 lispdir
="\${ns_appresdir}/lisp"
9709 leimdir
="\${ns_appresdir}/leim"
9710 INSTALL_ARCH_INDEP_EXTRA
=
9712 NS_OBJC_OBJ
="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o"
9714 CFLAGS
="$tmp_CFLAGS"
9715 CPPFLAGS
="$tmp_CPPFLAGS"
9726 if test "${with_w32}" != no
; then
9727 if test "${opsys}" != "cygwin"; then
9728 as_fn_error
"Using w32 with an autotools build is only supported for Cygwin." "$LINENO" 5
9730 ac_fn_c_check_header_mongrel
"$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
9731 if test "x$ac_cv_header_windows_h" = x
""yes; then :
9734 as_fn_error
"\`--with-w32' was specified, but windows.h
9735 cannot be found." "$LINENO" 5
9740 $as_echo "#define HAVE_NTGUI 1" >>confdefs.h
9742 if test -n "$ac_tool_prefix"; then
9743 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
9744 set dummy
${ac_tool_prefix}windres
; ac_word
=$2
9745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9746 $as_echo_n "checking for $ac_word... " >&6; }
9747 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9748 $as_echo_n "(cached) " >&6
9750 if test -n "$WINDRES"; then
9751 ac_cv_prog_WINDRES
="$WINDRES" # Let the user override the test.
9753 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9757 test -z "$as_dir" && as_dir
=.
9758 for ac_exec_ext
in '' $ac_executable_extensions; do
9759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9760 ac_cv_prog_WINDRES
="${ac_tool_prefix}windres"
9761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9770 WINDRES
=$ac_cv_prog_WINDRES
9771 if test -n "$WINDRES"; then
9772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9773 $as_echo "$WINDRES" >&6; }
9775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9776 $as_echo "no" >&6; }
9781 if test -z "$ac_cv_prog_WINDRES"; then
9782 ac_ct_WINDRES
=$WINDRES
9783 # Extract the first word of "windres", so it can be a program name with args.
9784 set dummy windres
; ac_word
=$2
9785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9786 $as_echo_n "checking for $ac_word... " >&6; }
9787 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then :
9788 $as_echo_n "(cached) " >&6
9790 if test -n "$ac_ct_WINDRES"; then
9791 ac_cv_prog_ac_ct_WINDRES
="$ac_ct_WINDRES" # Let the user override the test.
9793 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9797 test -z "$as_dir" && as_dir
=.
9798 for ac_exec_ext
in '' $ac_executable_extensions; do
9799 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9800 ac_cv_prog_ac_ct_WINDRES
="windres"
9801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9810 ac_ct_WINDRES
=$ac_cv_prog_ac_ct_WINDRES
9811 if test -n "$ac_ct_WINDRES"; then
9812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
9813 $as_echo "$ac_ct_WINDRES" >&6; }
9815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9816 $as_echo "no" >&6; }
9819 if test "x$ac_ct_WINDRES" = x
; then
9820 WINDRES
="as_fn_error "No resource compiler found.
" "$LINENO" 5"
9822 case $cross_compiling:$ac_tool_warned in
9824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9825 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9826 ac_tool_warned
=yes ;;
9828 WINDRES
=$ac_ct_WINDRES
9831 WINDRES
="$ac_cv_prog_WINDRES"
9834 W32_OBJ
="w32fns.o w32menu.o w32reg.o w32font.o w32term.o"
9835 W32_OBJ
="$W32_OBJ w32xfns.o w32select.o w32uniscribe.o"
9836 W32_LIBS
="$W32_LIBS -lkernel32 -luser32 -lgdi32 -lole32 -lcomdlg32"
9837 W32_LIBS
="$W32_LIBS -lusp10 -lcomctl32 -lwinspool"
9839 # Tell the linker that emacs.res is an object (which we compile from
9840 # the rc file), not a linker script.
9841 W32_RES_LINK
="-Wl,-bpe-i386 -Wl,emacs.res"
9848 if test "${HAVE_W32}" = "yes"; then
9853 ## $window_system is now set to the window system we will
9861 case "${window_system}" in
9866 case "${with_x_toolkit}" in
9867 athena | lucid
) USE_X_TOOLKIT
=LUCID
;;
9868 motif
) USE_X_TOOLKIT
=MOTIF
;;
9870 term_header
=gtkutil.h
9871 USE_X_TOOLKIT
=none
;;
9872 gtk2
) with_gtk2
=yes
9873 term_header
=gtkutil.h
9874 USE_X_TOOLKIT
=none
;;
9875 gtk3
) with_gtk3
=yes
9876 term_header
=gtkutil.h
9877 USE_X_TOOLKIT
=none
;;
9878 no
) USE_X_TOOLKIT
=none
;;
9879 * ) USE_X_TOOLKIT
=maybe
;;
9883 term_header
=nsterm.h
9886 term_header
=w32term.h
9890 if test -n "${term_header}"; then
9892 cat >>confdefs.h
<<_ACEOF
9893 #define TERM_HEADER "${term_header}"
9898 if test "$window_system" = none
&& test "X$with_x" != "Xno"; then
9899 # Extract the first word of "X", so it can be a program name with args.
9900 set dummy X
; ac_word
=$2
9901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9902 $as_echo_n "checking for $ac_word... " >&6; }
9903 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then :
9904 $as_echo_n "(cached) " >&6
9906 if test -n "$HAVE_XSERVER"; then
9907 ac_cv_prog_HAVE_XSERVER
="$HAVE_XSERVER" # Let the user override the test.
9909 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9913 test -z "$as_dir" && as_dir
=.
9914 for ac_exec_ext
in '' $ac_executable_extensions; do
9915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9916 ac_cv_prog_HAVE_XSERVER
="true"
9917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9924 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER
="false"
9927 HAVE_XSERVER
=$ac_cv_prog_HAVE_XSERVER
9928 if test -n "$HAVE_XSERVER"; then
9929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
9930 $as_echo "$HAVE_XSERVER" >&6; }
9932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9933 $as_echo "no" >&6; }
9937 if test "$HAVE_XSERVER" = true ||
9938 test -n "$DISPLAY" ||
9939 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
9940 as_fn_error
"You seem to be running X, but no X development libraries
9941 were found. You should install the relevant development files for X
9942 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9943 sure you have development files for image handling, i.e.
9944 tiff, gif, jpeg, png and xpm.
9945 If you are sure you want Emacs compiled without X window support, pass
9947 to configure." "$LINENO" 5
9951 ### If we're using X11, we should use the X menu package.
9954 yes ) HAVE_MENUS
=yes ;;
9957 # Does the opsystem file prohibit the use of the GNU malloc?
9958 # Assume not, until told otherwise.
9961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc is Doug Lea style" >&5
9962 $as_echo_n "checking whether malloc is Doug Lea style... " >&6; }
9963 if test "${emacs_cv_var_doug_lea_malloc+set}" = set; then :
9964 $as_echo_n "(cached) " >&6
9966 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9967 /* end confdefs.h. */
9969 static void hook (void) {}
9973 malloc_set_state (malloc_get_state ());
9974 __after_morecore_hook = hook;
9975 __malloc_initialize_hook = hook;
9980 if ac_fn_c_try_link
"$LINENO"; then :
9981 emacs_cv_var_doug_lea_malloc
=yes
9983 emacs_cv_var_doug_lea_malloc
=no
9985 rm -f core conftest.err conftest.
$ac_objext \
9986 conftest
$ac_exeext conftest.
$ac_ext
9988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var_doug_lea_malloc" >&5
9989 $as_echo "$emacs_cv_var_doug_lea_malloc" >&6; }
9990 doug_lea_malloc
=$emacs_cv_var_doug_lea_malloc
9995 ## darwin ld insists on the use of malloc routines in the System framework.
9996 darwin|sol2-10
) system_malloc
=yes ;;
9999 if test "${system_malloc}" = "yes"; then
10001 $as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
10004 GNU_MALLOC_reason
="
10005 (The GNU allocators don't work with this system configuration.)"
10009 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ
=gmalloc.o
10010 VMLIMIT_OBJ
=vm-limit.o
10012 for ac_header
in sys
/vlimit.h
10014 ac_fn_c_check_header_mongrel
"$LINENO" "sys/vlimit.h" "ac_cv_header_sys_vlimit_h" "$ac_includes_default"
10015 if test "x$ac_cv_header_sys_vlimit_h" = x
""yes; then :
10016 cat >>confdefs.h
<<_ACEOF
10017 #define HAVE_SYS_VLIMIT_H 1
10024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for data_start" >&5
10025 $as_echo_n "checking for data_start... " >&6; }
10026 if test "${emacs_cv_data_start+set}" = set; then :
10027 $as_echo_n "(cached) " >&6
10029 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10030 /* end confdefs.h. */
10031 extern char data_start[]; char ch;
10035 return data_start == &ch;
10040 if ac_fn_c_try_link
"$LINENO"; then :
10041 emacs_cv_data_start
=yes
10043 emacs_cv_data_start
=no
10045 rm -f core conftest.err conftest.
$ac_objext \
10046 conftest
$ac_exeext conftest.
$ac_ext
10048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_data_start" >&5
10049 $as_echo "$emacs_cv_data_start" >&6; }
10050 if test $emacs_cv_data_start = yes; then
10052 $as_echo "#define HAVE_DATA_START 1" >>confdefs.h
10059 if test "$doug_lea_malloc" = "yes" ; then
10060 if test "$GNU_MALLOC" = yes ; then
10061 GNU_MALLOC_reason
="
10062 (Using Doug Lea's new malloc from the GNU C Library.)"
10065 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
10068 ## Use mmap directly for allocating larger buffers.
10069 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
10070 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
10071 ## Does the AC_FUNC_MMAP test below make this check unnecessary?
10073 gnu
*) REL_ALLOC
=no
;;
10077 if test x
"${REL_ALLOC}" = x
; then
10078 REL_ALLOC
=${GNU_MALLOC}
10081 use_mmap_for_buffers
=no
10083 cygwin|freebsd|irix6-5
) use_mmap_for_buffers
=yes ;;
10093 for ac_func
in getpagesize
10095 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
10096 if test "x$ac_cv_func_getpagesize" = x
""yes; then :
10097 cat >>confdefs.h
<<_ACEOF
10098 #define HAVE_GETPAGESIZE 1
10104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
10105 $as_echo_n "checking for working mmap... " >&6; }
10106 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
10107 $as_echo_n "(cached) " >&6
10109 if test "$cross_compiling" = yes; then :
10110 ac_cv_func_mmap_fixed_mapped
=no
10112 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10113 /* end confdefs.h. */
10114 $ac_includes_default
10115 /* malloc might have been renamed as rpl_malloc. */
10118 /* Thanks to Mike Haertel and Jim Avera for this test.
10119 Here is a matrix of mmap possibilities:
10120 mmap private not fixed
10121 mmap private fixed at somewhere currently unmapped
10122 mmap private fixed at somewhere already mapped
10123 mmap shared not fixed
10124 mmap shared fixed at somewhere currently unmapped
10125 mmap shared fixed at somewhere already mapped
10126 For private mappings, we should verify that changes cannot be read()
10127 back from the file, nor mmap's back from the file at a different
10128 address. (There have been systems where private was not correctly
10129 implemented like the infamous i386 svr4.0, and systems where the
10130 VM page cache was not coherent with the file system buffer cache
10131 like early versions of FreeBSD and possibly contemporary NetBSD.)
10132 For shared mappings, we should conversely verify that changes get
10133 propagated back to all the places they're supposed to be.
10135 Grep wants private fixed already mapped.
10136 The main things grep needs to know about mmap are:
10137 * does it exist and is it safe to write into the mmap'd area
10138 * how to use it (BSD variants) */
10141 #include <sys/mman.h>
10143 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10147 /* This mess was copied from the GNU getpagesize.h. */
10148 #ifndef HAVE_GETPAGESIZE
10149 # ifdef _SC_PAGESIZE
10150 # define getpagesize() sysconf(_SC_PAGESIZE)
10151 # else /* no _SC_PAGESIZE */
10152 # ifdef HAVE_SYS_PARAM_H
10153 # include <sys/param.h>
10154 # ifdef EXEC_PAGESIZE
10155 # define getpagesize() EXEC_PAGESIZE
10156 # else /* no EXEC_PAGESIZE */
10158 # define getpagesize() NBPG * CLSIZE
10161 # endif /* no CLSIZE */
10162 # else /* no NBPG */
10164 # define getpagesize() NBPC
10165 # else /* no NBPC */
10167 # define getpagesize() PAGESIZE
10168 # endif /* PAGESIZE */
10169 # endif /* no NBPC */
10170 # endif /* no NBPG */
10171 # endif /* no EXEC_PAGESIZE */
10172 # else /* no HAVE_SYS_PARAM_H */
10173 # define getpagesize() 8192 /* punt totally */
10174 # endif /* no HAVE_SYS_PARAM_H */
10175 # endif /* no _SC_PAGESIZE */
10177 #endif /* no HAVE_GETPAGESIZE */
10182 char *data, *data2, *data3;
10183 const char *cdata2;
10187 pagesize = getpagesize ();
10189 /* First, make a file with some known garbage in it. */
10190 data = (char *) malloc (pagesize);
10193 for (i = 0; i < pagesize; ++i)
10194 *(data + i) = rand ();
10196 fd = creat ("conftest.mmap", 0600);
10199 if (write (fd, data, pagesize) != pagesize)
10203 /* Next, check that the tail of a page is zero-filled. File must have
10204 non-zero length, otherwise we risk SIGBUS for entire page. */
10205 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
10209 if (write (fd2, cdata2, 1) != 1)
10211 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
10212 if (data2 == MAP_FAILED)
10214 for (i = 0; i < pagesize; ++i)
10218 if (munmap (data2, pagesize))
10221 /* Next, try to mmap the file at a fixed address which already has
10222 something else allocated at it. If we can, also make sure that
10223 we see the same garbage. */
10224 fd = open ("conftest.mmap", O_RDWR);
10227 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10228 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10230 for (i = 0; i < pagesize; ++i)
10231 if (*(data + i) != *(data2 + i))
10234 /* Finally, make sure that changes to the mapped area do not
10235 percolate back to the file as seen by read(). (This is a bug on
10236 some variants of i386 svr4.0.) */
10237 for (i = 0; i < pagesize; ++i)
10238 *(data2 + i) = *(data2 + i) + 1;
10239 data3 = (char *) malloc (pagesize);
10242 if (read (fd, data3, pagesize) != pagesize)
10244 for (i = 0; i < pagesize; ++i)
10245 if (*(data + i) != *(data3 + i))
10251 if ac_fn_c_try_run
"$LINENO"; then :
10252 ac_cv_func_mmap_fixed_mapped
=yes
10254 ac_cv_func_mmap_fixed_mapped
=no
10256 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10257 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
10262 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
10263 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10265 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
10268 rm -f conftest.mmap conftest.txt
10270 if test $use_mmap_for_buffers = yes; then
10272 $as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
10277 LIBS
="$LIBS_SYSTEM $LIBS"
10279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
10280 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
10281 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
10282 $as_echo_n "(cached) " >&6
10284 ac_check_lib_save_LIBS
=$LIBS
10285 LIBS
="-ldnet $LIBS"
10286 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10287 /* end confdefs.h. */
10289 /* Override any GCC internal prototype to avoid an error.
10290 Use char because int might match the return type of a GCC
10291 builtin and then its argument prototype would still apply. */
10299 return dnet_ntoa ();
10304 if ac_fn_c_try_link
"$LINENO"; then :
10305 ac_cv_lib_dnet_dnet_ntoa
=yes
10307 ac_cv_lib_dnet_dnet_ntoa
=no
10309 rm -f core conftest.err conftest.
$ac_objext \
10310 conftest
$ac_exeext conftest.
$ac_ext
10311 LIBS
=$ac_check_lib_save_LIBS
10313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10314 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10315 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x
""yes; then :
10316 cat >>confdefs.h
<<_ACEOF
10317 #define HAVE_LIBDNET 1
10320 LIBS
="-ldnet $LIBS"
10325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
10326 $as_echo_n "checking for main in -lXbsd... " >&6; }
10327 if test "${ac_cv_lib_Xbsd_main+set}" = set; then :
10328 $as_echo_n "(cached) " >&6
10330 ac_check_lib_save_LIBS
=$LIBS
10331 LIBS
="-lXbsd $LIBS"
10332 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10333 /* end confdefs.h. */
10344 if ac_fn_c_try_link
"$LINENO"; then :
10345 ac_cv_lib_Xbsd_main
=yes
10347 ac_cv_lib_Xbsd_main
=no
10349 rm -f core conftest.err conftest.
$ac_objext \
10350 conftest
$ac_exeext conftest.
$ac_ext
10351 LIBS
=$ac_check_lib_save_LIBS
10353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
10354 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
10355 if test "x$ac_cv_lib_Xbsd_main" = x
""yes; then :
10356 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -lXbsd"
10364 if test "$ac_cv_header_pthread_h"; then
10365 if test "$GMALLOC_OBJ" = gmalloc.o
; then
10366 emacs_pthread_function
=pthread_atfork
10368 emacs_pthread_function
=pthread_self
10370 as_ac_Lib
=`$as_echo "ac_cv_lib_pthread_$emacs_pthread_function" | $as_tr_sh`
10371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $emacs_pthread_function in -lpthread" >&5
10372 $as_echo_n "checking for $emacs_pthread_function in -lpthread... " >&6; }
10373 if { as_var
=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
10374 $as_echo_n "(cached) " >&6
10376 ac_check_lib_save_LIBS
=$LIBS
10377 LIBS
="-lpthread $LIBS"
10378 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10379 /* end confdefs.h. */
10381 /* Override any GCC internal prototype to avoid an error.
10382 Use char because int might match the return type of a GCC
10383 builtin and then its argument prototype would still apply. */
10387 char $emacs_pthread_function ();
10391 return $emacs_pthread_function ();
10396 if ac_fn_c_try_link
"$LINENO"; then :
10397 eval "$as_ac_Lib=yes"
10399 eval "$as_ac_Lib=no"
10401 rm -f core conftest.err conftest.
$ac_objext \
10402 conftest
$ac_exeext conftest.
$ac_ext
10403 LIBS
=$ac_check_lib_save_LIBS
10405 eval ac_res
=\$
$as_ac_Lib
10406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10407 $as_echo "$ac_res" >&6; }
10408 eval as_val
=\$
$as_ac_Lib
10409 if test "x$as_val" = x
""yes; then :
10414 if test "$HAVE_PTHREAD" = yes; then
10415 case "${canonical}" in
10417 *) LIB_PTHREAD
="-lpthread"
10418 LIBS
="$LIB_PTHREAD $LIBS" ;;
10421 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
10426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
10427 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
10428 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then :
10429 $as_echo_n "(cached) " >&6
10431 ac_check_lib_save_LIBS
=$LIBS
10432 LIBS
="-lpthreads $LIBS"
10433 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10434 /* end confdefs.h. */
10436 /* Override any GCC internal prototype to avoid an error.
10437 Use char because int might match the return type of a GCC
10438 builtin and then its argument prototype would still apply. */
10446 return cma_open ();
10451 if ac_fn_c_try_link
"$LINENO"; then :
10452 ac_cv_lib_pthreads_cma_open
=yes
10454 ac_cv_lib_pthreads_cma_open
=no
10456 rm -f core conftest.err conftest.
$ac_objext \
10457 conftest
$ac_exeext conftest.
$ac_ext
10458 LIBS
=$ac_check_lib_save_LIBS
10460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
10461 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
10462 if test "x$ac_cv_lib_pthreads_cma_open" = x
""yes; then :
10463 cat >>confdefs.h
<<_ACEOF
10464 #define HAVE_LIBPTHREADS 1
10467 LIBS
="-lpthreads $LIBS"
10472 ## Note: when using cpp in s/aix4.2.h, this definition depended on
10473 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
10474 ## the system file was sourced. Hence the value of LIBS_SYSTEM
10475 ## added to LIBS in configure would never contain the pthreads part,
10476 ## but the value used in Makefiles might. FIXME?
10478 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
10479 ## be harmless on older versions of X where it happens to exist.
10480 test "$opsys" = "aix4-2" && \
10481 test $ac_cv_lib_pthreads_cma_open = yes && \
10482 LIBS_SYSTEM
="$LIBS_SYSTEM -lpthreads"
10487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
10488 $as_echo_n "checking for -bbigtoc option... " >&6; }
10489 if test "${gdb_cv_bigtoc+set}" = set; then :
10490 $as_echo_n "(cached) " >&6
10494 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
10495 *) gdb_cv_bigtoc
=-bbigtoc ;;
10498 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
10499 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10500 /* end confdefs.h. */
10510 if ac_fn_c_try_link
"$LINENO"; then :
10515 rm -f core conftest.err conftest.
$ac_objext \
10516 conftest
$ac_exeext conftest.
$ac_ext
10519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
10520 $as_echo "$gdb_cv_bigtoc" >&6; }
10524 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10525 # used for the tests that follow. We set them back to REAL_CFLAGS and
10526 # REAL_CPPFLAGS later on.
10528 REAL_CFLAGS
="$CFLAGS"
10529 REAL_CPPFLAGS
="$CPPFLAGS"
10531 if test "${HAVE_X11}" = "yes"; then
10532 DEFS
="$C_SWITCH_X_SITE $DEFS"
10533 LDFLAGS
="$LDFLAGS $LD_SWITCH_X_SITE"
10535 CFLAGS
="$C_SWITCH_X_SITE $CFLAGS"
10536 CPPFLAGS
="$C_SWITCH_X_SITE $CPPFLAGS"
10538 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10539 # This is handled by LD_SWITCH_X_SITE_RPATH during the real build,
10540 # but it's more convenient here to set LD_RUN_PATH since this
10541 # also works on hosts that don't understand LD_SWITCH_X_SITE_RPATH.
10542 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
10543 LD_RUN_PATH
=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10547 if test "${opsys}" = "gnu-linux"; then
10548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
10549 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
10550 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10551 /* end confdefs.h. */
10556 XOpenDisplay ("foo");
10561 if ac_fn_c_try_link
"$LINENO"; then :
10562 xgnu_linux_first_failure
=no
10564 xgnu_linux_first_failure
=yes
10566 rm -f core conftest.err conftest.
$ac_objext \
10567 conftest
$ac_exeext conftest.
$ac_ext
10568 if test "${xgnu_linux_first_failure}" = "yes"; then
10569 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
10570 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
10571 OLD_CPPFLAGS
="$CPPFLAGS"
10573 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
10574 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
10575 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
10576 LIBS
="$LIBS -b i486-linuxaout"
10577 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10578 /* end confdefs.h. */
10583 XOpenDisplay ("foo");
10588 if ac_fn_c_try_link
"$LINENO"; then :
10589 xgnu_linux_second_failure
=no
10591 xgnu_linux_second_failure
=yes
10593 rm -f core conftest.err conftest.
$ac_objext \
10594 conftest
$ac_exeext conftest.
$ac_ext
10595 if test "${xgnu_linux_second_failure}" = "yes"; then
10596 # If we get the same failure with -b, there is no use adding -b.
10597 # So take it out. This plays safe.
10598 LD_SWITCH_X_SITE
="$OLD_LD_SWITCH_X_SITE"
10599 C_SWITCH_X_SITE
="$OLD_C_SWITCH_X_SITE"
10600 CPPFLAGS
="$OLD_CPPFLAGS"
10602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10603 $as_echo "no" >&6; }
10605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10606 $as_echo "yes" >&6; }
10609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10610 $as_echo "no" >&6; }
10614 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10615 # header files included from there.
10616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
10617 $as_echo_n "checking for Xkb... " >&6; }
10618 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10619 /* end confdefs.h. */
10620 #include <X11/Xlib.h>
10621 #include <X11/XKBlib.h>
10625 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10630 if ac_fn_c_try_link
"$LINENO"; then :
10635 rm -f core conftest.err conftest.
$ac_objext \
10636 conftest
$ac_exeext conftest.
$ac_ext
10637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
10638 $as_echo "$emacs_xkb" >&6; }
10639 if test $emacs_xkb = yes; then
10641 $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
10645 for ac_func
in XrmSetDatabase XScreenResourceString \
10646 XScreenNumberOfScreen
10648 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10649 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10650 eval as_val
=\$
$as_ac_var
10651 if test "x$as_val" = x
""yes; then :
10652 cat >>confdefs.h
<<_ACEOF
10653 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10661 if test "${window_system}" = "x11"; then
10662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
10663 $as_echo_n "checking X11 version 6... " >&6; }
10664 if test "${emacs_cv_x11_version_6+set}" = set; then :
10665 $as_echo_n "(cached) " >&6
10667 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10668 /* end confdefs.h. */
10669 #include <X11/Xlib.h>
10673 #if XlibSpecificationRelease < 6
10681 if ac_fn_c_try_link
"$LINENO"; then :
10682 emacs_cv_x11_version_6
=yes
10684 emacs_cv_x11_version_6
=no
10686 rm -f core conftest.err conftest.
$ac_objext \
10687 conftest
$ac_exeext conftest.
$ac_ext
10690 if test $emacs_cv_x11_version_6 = yes; then
10691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
10692 $as_echo "6 or newer" >&6; }
10694 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
10697 $as_echo "#define HAVE_X_I18N 1" >>confdefs.h
10699 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
10704 $as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
10709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
10710 $as_echo "before 6" >&6; }
10715 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
10717 if test "${HAVE_X11}" = "yes" ||
test "${HAVE_NS}" = "yes"; then
10718 if test "${with_rsvg}" != "no"; then
10719 RSVG_REQUIRED
=2.11.0
10720 RSVG_MODULE
="librsvg-2.0 >= $RSVG_REQUIRED"
10725 if test "$PKG_CONFIG" = "no" ; then
10728 PKG_CONFIG_MIN_VERSION
=0.9.0
10729 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
10731 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
10733 if "$PKG_CONFIG" --exists "$RSVG_MODULE" 2>&5 &&
10734 RSVG_CFLAGS
=`"$PKG_CONFIG" --cflags "$RSVG_MODULE" 2>&5` &&
10735 RSVG_LIBS
=`"$PKG_CONFIG" --libs "$RSVG_MODULE" 2>&5`; then
10742 RSVG_CFLAGS
=`$as_echo "$RSVG_CFLAGS" | sed -e "$edit_cflags"`
10743 RSVG_LIBS
=`$as_echo "$RSVG_LIBS" | sed -e 's,///*,/,g'`
10744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$RSVG_CFLAGS' LIBS='$RSVG_LIBS'" >&5
10745 $as_echo "yes CFLAGS='$RSVG_CFLAGS' LIBS='$RSVG_LIBS'" >&6; }
10748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10749 $as_echo "no" >&6; }
10752 ## If we have a custom action on failure, don't print errors, but
10753 ## do set a variable so people can do so. Do it in a subshell
10754 ## to capture any diagnostics in invoking pkg-config.
10755 RSVG_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "$RSVG_MODULE") 2>&1`
10762 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10763 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10767 if test $succeeded = yes; then
10776 if test $HAVE_RSVG = yes; then
10778 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
10780 CFLAGS
="$CFLAGS $RSVG_CFLAGS"
10781 LIBS
="$RSVG_LIBS $LIBS"
10786 HAVE_IMAGEMAGICK
=no
10787 if test "${HAVE_X11}" = "yes"; then
10788 if test "${with_imagemagick}" != "no"; then
10789 ## 6.2.8 is the earliest version known to work, but earlier versions
10790 ## might work - let us know if you find one.
10791 ## 6.0.7 does not work. See bug#7955.
10792 IMAGEMAGICK_MODULE
="Wand >= 6.2.8"
10796 if test "$PKG_CONFIG" = "no" ; then
10799 PKG_CONFIG_MIN_VERSION
=0.9.0
10800 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
10802 $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
10804 if "$PKG_CONFIG" --exists "$IMAGEMAGICK_MODULE" 2>&5 &&
10805 IMAGEMAGICK_CFLAGS
=`"$PKG_CONFIG" --cflags "$IMAGEMAGICK_MODULE" 2>&5` &&
10806 IMAGEMAGICK_LIBS
=`"$PKG_CONFIG" --libs "$IMAGEMAGICK_MODULE" 2>&5`; then
10813 IMAGEMAGICK_CFLAGS
=`$as_echo "$IMAGEMAGICK_CFLAGS" | sed -e "$edit_cflags"`
10814 IMAGEMAGICK_LIBS
=`$as_echo "$IMAGEMAGICK_LIBS" | sed -e 's,///*,/,g'`
10815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$IMAGEMAGICK_CFLAGS' LIBS='$IMAGEMAGICK_LIBS'" >&5
10816 $as_echo "yes CFLAGS='$IMAGEMAGICK_CFLAGS' LIBS='$IMAGEMAGICK_LIBS'" >&6; }
10819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10820 $as_echo "no" >&6; }
10821 IMAGEMAGICK_CFLAGS
=""
10822 IMAGEMAGICK_LIBS
=""
10823 ## If we have a custom action on failure, don't print errors, but
10824 ## do set a variable so people can do so. Do it in a subshell
10825 ## to capture any diagnostics in invoking pkg-config.
10826 IMAGEMAGICK_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "$IMAGEMAGICK_MODULE") 2>&1`
10833 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10834 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10838 if test $succeeded = yes; then
10839 HAVE_IMAGEMAGICK
=yes
10847 if test $HAVE_IMAGEMAGICK = yes; then
10849 $as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
10851 CFLAGS
="$CFLAGS $IMAGEMAGICK_CFLAGS"
10852 LIBS
="$IMAGEMAGICK_LIBS $LIBS"
10853 for ac_func
in MagickExportImagePixels MagickMergeImageLayers
10855 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10856 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10857 eval as_val
=\$
$as_ac_var
10858 if test "x$as_val" = x
""yes; then :
10859 cat >>confdefs.h
<<_ACEOF
10860 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10875 if test "${with_gtk3}" = "yes" ||
test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "maybe"; then
10878 GTK_MODULES
="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10883 if test "$PKG_CONFIG" = "no" ; then
10886 PKG_CONFIG_MIN_VERSION
=0.9.0
10887 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
10889 $as_echo_n "checking for $GTK_MODULES... " >&6; }
10891 if "$PKG_CONFIG" --exists "$GTK_MODULES" 2>&5 &&
10892 GTK_CFLAGS
=`"$PKG_CONFIG" --cflags "$GTK_MODULES" 2>&5` &&
10893 GTK_LIBS
=`"$PKG_CONFIG" --libs "$GTK_MODULES" 2>&5`; then
10900 GTK_CFLAGS
=`$as_echo "$GTK_CFLAGS" | sed -e "$edit_cflags"`
10901 GTK_LIBS
=`$as_echo "$GTK_LIBS" | sed -e 's,///*,/,g'`
10902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&5
10903 $as_echo "yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&6; }
10906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10907 $as_echo "no" >&6; }
10910 ## If we have a custom action on failure, don't print errors, but
10911 ## do set a variable so people can do so. Do it in a subshell
10912 ## to capture any diagnostics in invoking pkg-config.
10913 GTK_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "$GTK_MODULES") 2>&1`
10920 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10921 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10925 if test $succeeded = yes; then
10931 if test "$pkg_check_gtk" = "no" && test "$with_gtk3" = "yes"; then
10932 as_fn_error
"$GTK_PKG_ERRORS" "$LINENO" 5
10934 if test "$pkg_check_gtk" = "yes"; then
10936 $as_echo "#define HAVE_GTK3 1" >>confdefs.h
10938 GTK_OBJ
=emacsgtkfixed.o
10939 term_header
=gtkutil.h
10940 USE_GTK_TOOLKIT
="GTK3"
10941 if test "x$ac_enable_gtk_deprecation_warnings" = x
; then
10942 GTK_CFLAGS
="$GTK_CFLAGS -DGDK_DISABLE_DEPRECATION_WARNINGS"
10946 gtk3_pkg_errors
="$GTK_PKG_ERRORS "
10950 if test "${with_gtk2}" = "yes" ||
test "$check_gtk2" = "yes"; then
10953 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10958 if test "$PKG_CONFIG" = "no" ; then
10961 PKG_CONFIG_MIN_VERSION
=0.9.0
10962 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
10964 $as_echo_n "checking for $GTK_MODULES... " >&6; }
10966 if "$PKG_CONFIG" --exists "$GTK_MODULES" 2>&5 &&
10967 GTK_CFLAGS
=`"$PKG_CONFIG" --cflags "$GTK_MODULES" 2>&5` &&
10968 GTK_LIBS
=`"$PKG_CONFIG" --libs "$GTK_MODULES" 2>&5`; then
10975 GTK_CFLAGS
=`$as_echo "$GTK_CFLAGS" | sed -e "$edit_cflags"`
10976 GTK_LIBS
=`$as_echo "$GTK_LIBS" | sed -e 's,///*,/,g'`
10977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&5
10978 $as_echo "yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&6; }
10981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10982 $as_echo "no" >&6; }
10985 ## If we have a custom action on failure, don't print errors, but
10986 ## do set a variable so people can do so. Do it in a subshell
10987 ## to capture any diagnostics in invoking pkg-config.
10988 GTK_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "$GTK_MODULES") 2>&1`
10995 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10996 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11000 if test $succeeded = yes; then
11006 if test "$pkg_check_gtk" = "no" &&
11007 { test "$with_gtk" = yes ||
test "$with_gtk2" = "yes"; }
11009 as_fn_error
"$gtk3_pkg_errors$GTK_PKG_ERRORS" "$LINENO" 5
11011 test "$pkg_check_gtk" = "yes" && USE_GTK_TOOLKIT
="GTK2"
11014 if test x
"$pkg_check_gtk" = xyes
; then
11018 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
11019 CFLAGS
="$CFLAGS $GTK_CFLAGS"
11020 LIBS
="$GTK_LIBS $LIBS"
11022 for ac_func
in gtk_main
11024 ac_fn_c_check_func
"$LINENO" "gtk_main" "ac_cv_func_gtk_main"
11025 if test "x$ac_cv_func_gtk_main" = x
""yes; then :
11026 cat >>confdefs.h
<<_ACEOF
11027 #define HAVE_GTK_MAIN 1
11033 if test "${GTK_COMPILES}" != "yes"; then
11034 if test "$USE_X_TOOLKIT" != "maybe"; then
11035 as_fn_error
"Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
11040 $as_echo "#define USE_GTK 1" >>confdefs.h
11042 GTK_OBJ
="gtkutil.o $GTK_OBJ"
11044 if "$PKG_CONFIG" --atleast-version=2.10 gtk
+-2.0
; then
11047 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
11048 closing open displays. This is no problem if you just use
11049 one display, but if you use more than one and close one of them
11050 Emacs may crash." >&5
11051 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
11052 closing open displays. This is no problem if you just use
11053 one display, but if you use more than one and close one of them
11054 Emacs may crash." >&2;}
11063 if test "${HAVE_GTK}" = "yes"; then
11065 if test "$with_toolkit_scroll_bars" != no
; then
11066 with_toolkit_scroll_bars
=yes
11069 HAVE_GTK_FILE_SELECTION
=no
11070 ac_fn_c_check_decl
"$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
11071 #include <gtk/gtk.h>
11073 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x
""yes; then :
11074 HAVE_GTK_FILE_SELECTION
=yes
11076 HAVE_GTK_FILE_SELECTION
=no
11079 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
11080 for ac_func
in gtk_file_selection_new
11082 ac_fn_c_check_func
"$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
11083 if test "x$ac_cv_func_gtk_file_selection_new" = x
""yes; then :
11084 cat >>confdefs.h
<<_ACEOF
11085 #define HAVE_GTK_FILE_SELECTION_NEW 1
11093 HAVE_GTK_HANDLE_BOX
=no
11094 ac_fn_c_check_decl
"$LINENO" "GTK_TYPE_HANDLE_BOX" "ac_cv_have_decl_GTK_TYPE_HANDLE_BOX" "$ac_includes_default
11095 #include <gtk/gtk.h>
11097 if test "x$ac_cv_have_decl_GTK_TYPE_HANDLE_BOX" = x
""yes; then :
11098 HAVE_GTK_HANDLE_BOX
=yes
11100 HAVE_GTK_HANDLE_BOX
=no
11103 if test "$HAVE_GTK_HANDLE_BOX" = yes; then
11104 for ac_func
in gtk_handle_box_new
11106 ac_fn_c_check_func
"$LINENO" "gtk_handle_box_new" "ac_cv_func_gtk_handle_box_new"
11107 if test "x$ac_cv_func_gtk_handle_box_new" = x
""yes; then :
11108 cat >>confdefs.h
<<_ACEOF
11109 #define HAVE_GTK_HANDLE_BOX_NEW 1
11117 HAVE_GTK_TEAROFF_MENU_ITEM
=no
11118 ac_fn_c_check_decl
"$LINENO" "GTK_TYPE_TEAROFF_MENU_ITEM" "ac_cv_have_decl_GTK_TYPE_TEAROFF_MENU_ITEM" "$ac_includes_default
11119 #include <gtk/gtk.h>
11121 if test "x$ac_cv_have_decl_GTK_TYPE_TEAROFF_MENU_ITEM" = x
""yes; then :
11122 HAVE_GTK_TEAROFF_MENU_ITEM
=yes
11124 HAVE_GTK_TEAROFF_MENU_ITEM
=no
11127 if test "$HAVE_GTK_TEAROFF_MENU_ITEM" = yes; then
11128 for ac_func
in gtk_tearoff_menu_item_new
11130 ac_fn_c_check_func
"$LINENO" "gtk_tearoff_menu_item_new" "ac_cv_func_gtk_tearoff_menu_item_new"
11131 if test "x$ac_cv_func_gtk_tearoff_menu_item_new" = x
""yes; then :
11132 cat >>confdefs.h
<<_ACEOF
11133 #define HAVE_GTK_TEAROFF_MENU_ITEM_NEW 1
11141 for ac_func
in gtk_widget_get_window gtk_widget_set_has_window \
11142 gtk_dialog_get_action_area gtk_widget_get_sensitive \
11143 gtk_widget_get_mapped gtk_adjustment_get_page_size \
11144 gtk_orientable_set_orientation \
11145 gtk_window_set_has_resize_grip
11147 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11148 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11149 eval as_val
=\$
$as_ac_var
11150 if test "x$as_val" = x
""yes; then :
11151 cat >>confdefs.h
<<_ACEOF
11152 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11159 term_header
=gtkutil.h
11164 if test "${with_dbus}" = "yes"; then
11168 if test "$PKG_CONFIG" = "no" ; then
11171 PKG_CONFIG_MIN_VERSION
=0.9.0
11172 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
11174 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
11176 if "$PKG_CONFIG" --exists "dbus-1 >= 1.0" 2>&5 &&
11177 DBUS_CFLAGS
=`"$PKG_CONFIG" --cflags "dbus-1 >= 1.0" 2>&5` &&
11178 DBUS_LIBS
=`"$PKG_CONFIG" --libs "dbus-1 >= 1.0" 2>&5`; then
11185 DBUS_CFLAGS
=`$as_echo "$DBUS_CFLAGS" | sed -e "$edit_cflags"`
11186 DBUS_LIBS
=`$as_echo "$DBUS_LIBS" | sed -e 's,///*,/,g'`
11187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$DBUS_CFLAGS' LIBS='$DBUS_LIBS'" >&5
11188 $as_echo "yes CFLAGS='$DBUS_CFLAGS' LIBS='$DBUS_LIBS'" >&6; }
11191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11192 $as_echo "no" >&6; }
11195 ## If we have a custom action on failure, don't print errors, but
11196 ## do set a variable so people can do so. Do it in a subshell
11197 ## to capture any diagnostics in invoking pkg-config.
11198 DBUS_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "dbus-1 >= 1.0") 2>&1`
11205 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11206 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11210 if test $succeeded = yes; then
11216 if test "$HAVE_DBUS" = yes; then
11217 LIBS
="$LIBS $DBUS_LIBS"
11219 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
11221 for ac_func
in dbus_watch_get_unix_fd \
11222 dbus_type_is_valid \
11223 dbus_validate_bus_name \
11224 dbus_validate_path \
11225 dbus_validate_interface \
11226 dbus_validate_member
11228 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11229 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11230 eval as_val
=\$
$as_ac_var
11231 if test "x$as_val" = x
""yes; then :
11232 cat >>confdefs.h
<<_ACEOF
11233 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11239 DBUS_OBJ
=dbusbind.o
11245 if test "${HAVE_X11}" = "yes" && test "${with_gsettings}" = "yes"; then
11249 if test "$PKG_CONFIG" = "no" ; then
11252 PKG_CONFIG_MIN_VERSION
=0.9.0
11253 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gio-2.0 >= 2.26" >&5
11255 $as_echo_n "checking for gio-2.0 >= 2.26... " >&6; }
11257 if "$PKG_CONFIG" --exists "gio-2.0 >= 2.26" 2>&5 &&
11258 GSETTINGS_CFLAGS
=`"$PKG_CONFIG" --cflags "gio-2.0 >= 2.26" 2>&5` &&
11259 GSETTINGS_LIBS
=`"$PKG_CONFIG" --libs "gio-2.0 >= 2.26" 2>&5`; then
11266 GSETTINGS_CFLAGS
=`$as_echo "$GSETTINGS_CFLAGS" | sed -e "$edit_cflags"`
11267 GSETTINGS_LIBS
=`$as_echo "$GSETTINGS_LIBS" | sed -e 's,///*,/,g'`
11268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GSETTINGS_CFLAGS' LIBS='$GSETTINGS_LIBS'" >&5
11269 $as_echo "yes CFLAGS='$GSETTINGS_CFLAGS' LIBS='$GSETTINGS_LIBS'" >&6; }
11272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11273 $as_echo "no" >&6; }
11274 GSETTINGS_CFLAGS
=""
11276 ## If we have a custom action on failure, don't print errors, but
11277 ## do set a variable so people can do so. Do it in a subshell
11278 ## to capture any diagnostics in invoking pkg-config.
11279 GSETTINGS_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "gio-2.0 >= 2.26") 2>&1`
11286 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11287 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11291 if test $succeeded = yes; then
11297 if test "$HAVE_GSETTINGS" = "yes"; then
11299 $as_echo "#define HAVE_GSETTINGS 1" >>confdefs.h
11301 SETTINGS_CFLAGS
="$GSETTINGS_CFLAGS"
11302 SETTINGS_LIBS
="$GSETTINGS_LIBS"
11307 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
11311 if test "$PKG_CONFIG" = "no" ; then
11314 PKG_CONFIG_MIN_VERSION
=0.9.0
11315 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
11317 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
11319 if "$PKG_CONFIG" --exists "gconf-2.0 >= 2.13" 2>&5 &&
11320 GCONF_CFLAGS
=`"$PKG_CONFIG" --cflags "gconf-2.0 >= 2.13" 2>&5` &&
11321 GCONF_LIBS
=`"$PKG_CONFIG" --libs "gconf-2.0 >= 2.13" 2>&5`; then
11328 GCONF_CFLAGS
=`$as_echo "$GCONF_CFLAGS" | sed -e "$edit_cflags"`
11329 GCONF_LIBS
=`$as_echo "$GCONF_LIBS" | sed -e 's,///*,/,g'`
11330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GCONF_CFLAGS' LIBS='$GCONF_LIBS'" >&5
11331 $as_echo "yes CFLAGS='$GCONF_CFLAGS' LIBS='$GCONF_LIBS'" >&6; }
11334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11335 $as_echo "no" >&6; }
11338 ## If we have a custom action on failure, don't print errors, but
11339 ## do set a variable so people can do so. Do it in a subshell
11340 ## to capture any diagnostics in invoking pkg-config.
11341 GCONF_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "gconf-2.0 >= 2.13") 2>&1`
11348 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11349 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11353 if test $succeeded = yes; then
11359 if test "$HAVE_GCONF" = yes; then
11361 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
11363 SETTINGS_CFLAGS
="$SETTINGS_CFLAGS $GCONF_CFLAGS"
11364 SETTINGS_LIBS
="$SETTINGS_LIBS $GCONF_LIBS"
11368 if test "$HAVE_GSETTINGS" = "yes" ||
test "$HAVE_GCONF" = "yes"; then
11372 if test "$PKG_CONFIG" = "no" ; then
11375 PKG_CONFIG_MIN_VERSION
=0.9.0
11376 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gobject-2.0 >= 2.0" >&5
11378 $as_echo_n "checking for gobject-2.0 >= 2.0... " >&6; }
11380 if "$PKG_CONFIG" --exists "gobject-2.0 >= 2.0" 2>&5 &&
11381 GOBJECT_CFLAGS
=`"$PKG_CONFIG" --cflags "gobject-2.0 >= 2.0" 2>&5` &&
11382 GOBJECT_LIBS
=`"$PKG_CONFIG" --libs "gobject-2.0 >= 2.0" 2>&5`; then
11389 GOBJECT_CFLAGS
=`$as_echo "$GOBJECT_CFLAGS" | sed -e "$edit_cflags"`
11390 GOBJECT_LIBS
=`$as_echo "$GOBJECT_LIBS" | sed -e 's,///*,/,g'`
11391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GOBJECT_CFLAGS' LIBS='$GOBJECT_LIBS'" >&5
11392 $as_echo "yes CFLAGS='$GOBJECT_CFLAGS' LIBS='$GOBJECT_LIBS'" >&6; }
11395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11396 $as_echo "no" >&6; }
11399 ## If we have a custom action on failure, don't print errors, but
11400 ## do set a variable so people can do so. Do it in a subshell
11401 ## to capture any diagnostics in invoking pkg-config.
11402 GOBJECT_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "gobject-2.0 >= 2.0") 2>&1`
11409 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11410 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11414 if test $succeeded = yes; then
11420 if test "$HAVE_GOBJECT" = "yes"; then
11421 SETTINGS_CFLAGS
="$SETTINGS_CFLAGS $GOBJECT_CFLAGS"
11422 SETTINGS_LIBS
="$SETTINGS_LIBS $GOBJECT_LIBS"
11424 SAVE_CFLAGS
="$CFLAGS"
11426 CFLAGS
="$SETTINGS_CFLAGS $CFLAGS"
11427 LIBS
="$SETTINGS_LIBS $LIBS"
11428 for ac_func
in g_type_init
11430 ac_fn_c_check_func
"$LINENO" "g_type_init" "ac_cv_func_g_type_init"
11431 if test "x$ac_cv_func_g_type_init" = x
""yes; then :
11432 cat >>confdefs.h
<<_ACEOF
11433 #define HAVE_G_TYPE_INIT 1
11439 CFLAGS
="$SAVE_CFLAGS"
11448 if test "${with_selinux}" = "yes"; then
11449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
11450 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
11451 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then :
11452 $as_echo_n "(cached) " >&6
11454 ac_check_lib_save_LIBS
=$LIBS
11455 LIBS
="-lselinux $LIBS"
11456 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11457 /* end confdefs.h. */
11459 /* Override any GCC internal prototype to avoid an error.
11460 Use char because int might match the return type of a GCC
11461 builtin and then its argument prototype would still apply. */
11465 char lgetfilecon ();
11469 return lgetfilecon ();
11474 if ac_fn_c_try_link
"$LINENO"; then :
11475 ac_cv_lib_selinux_lgetfilecon
=yes
11477 ac_cv_lib_selinux_lgetfilecon
=no
11479 rm -f core conftest.err conftest.
$ac_objext \
11480 conftest
$ac_exeext conftest.
$ac_ext
11481 LIBS
=$ac_check_lib_save_LIBS
11483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
11484 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
11485 if test "x$ac_cv_lib_selinux_lgetfilecon" = x
""yes; then :
11486 HAVE_LIBSELINUX
=yes
11491 if test "$HAVE_LIBSELINUX" = yes; then
11493 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
11495 LIBSELINUX_LIBS
=-lselinux
11501 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY
=no
11502 if test "${with_gnutls}" = "yes" ; then
11506 if test "$PKG_CONFIG" = "no" ; then
11509 PKG_CONFIG_MIN_VERSION
=0.9.0
11510 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.6.6" >&5
11512 $as_echo_n "checking for gnutls >= 2.6.6... " >&6; }
11514 if "$PKG_CONFIG" --exists "gnutls >= 2.6.6" 2>&5 &&
11515 LIBGNUTLS_CFLAGS
=`"$PKG_CONFIG" --cflags "gnutls >= 2.6.6" 2>&5` &&
11516 LIBGNUTLS_LIBS
=`"$PKG_CONFIG" --libs "gnutls >= 2.6.6" 2>&5`; then
11523 LIBGNUTLS_CFLAGS
=`$as_echo "$LIBGNUTLS_CFLAGS" | sed -e "$edit_cflags"`
11524 LIBGNUTLS_LIBS
=`$as_echo "$LIBGNUTLS_LIBS" | sed -e 's,///*,/,g'`
11525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBGNUTLS_CFLAGS' LIBS='$LIBGNUTLS_LIBS'" >&5
11526 $as_echo "yes CFLAGS='$LIBGNUTLS_CFLAGS' LIBS='$LIBGNUTLS_LIBS'" >&6; }
11529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11530 $as_echo "no" >&6; }
11531 LIBGNUTLS_CFLAGS
=""
11533 ## If we have a custom action on failure, don't print errors, but
11534 ## do set a variable so people can do so. Do it in a subshell
11535 ## to capture any diagnostics in invoking pkg-config.
11536 LIBGNUTLS_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "gnutls >= 2.6.6") 2>&1`
11543 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11544 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11548 if test $succeeded = yes; then
11554 if test "${HAVE_GNUTLS}" = "yes"; then
11556 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
11560 CFLAGS
="$CFLAGS $LIBGNUTLS_CFLAGS"
11561 LIBS
="$LIBGNUTLS_LIBS $LIBS"
11562 for ac_func
in gnutls_certificate_set_verify_function
11564 ac_fn_c_check_func
"$LINENO" "gnutls_certificate_set_verify_function" "ac_cv_func_gnutls_certificate_set_verify_function"
11565 if test "x$ac_cv_func_gnutls_certificate_set_verify_function" = x
""yes; then :
11566 cat >>confdefs.h
<<_ACEOF
11567 #define HAVE_GNUTLS_CERTIFICATE_SET_VERIFY_FUNCTION 1
11569 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY
=yes
11574 if test "${HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY}" = "yes"; then
11576 $as_echo "#define HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY 1" >>confdefs.h
11584 if test "${with_inotify}" = "yes"; then
11585 for ac_header
in sys
/inotify.h
11587 ac_fn_c_check_header_mongrel
"$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
11588 if test "x$ac_cv_header_sys_inotify_h" = x
""yes; then :
11589 cat >>confdefs.h
<<_ACEOF
11590 #define HAVE_SYS_INOTIFY_H 1
11597 if test "$ac_cv_header_sys_inotify_h" = yes ; then
11598 ac_fn_c_check_func
"$LINENO" "inotify_init1" "ac_cv_func_inotify_init1"
11599 if test "x$ac_cv_func_inotify_init1" = x
""yes; then :
11605 if test "$ac_cv_func_inotify_init1" = yes; then
11607 $as_echo "#define HAVE_INOTIFY 1" >>confdefs.h
11613 if test "${with_acl}" = "yes"; then
11614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_set_file in -lacl" >&5
11615 $as_echo_n "checking for acl_set_file in -lacl... " >&6; }
11616 if test "${ac_cv_lib_acl_acl_set_file+set}" = set; then :
11617 $as_echo_n "(cached) " >&6
11619 ac_check_lib_save_LIBS
=$LIBS
11621 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11622 /* end confdefs.h. */
11624 /* Override any GCC internal prototype to avoid an error.
11625 Use char because int might match the return type of a GCC
11626 builtin and then its argument prototype would still apply. */
11630 char acl_set_file ();
11634 return acl_set_file ();
11639 if ac_fn_c_try_link
"$LINENO"; then :
11640 ac_cv_lib_acl_acl_set_file
=yes
11642 ac_cv_lib_acl_acl_set_file
=no
11644 rm -f core conftest.err conftest.
$ac_objext \
11645 conftest
$ac_exeext conftest.
$ac_ext
11646 LIBS
=$ac_check_lib_save_LIBS
11648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_acl_acl_set_file" >&5
11649 $as_echo "$ac_cv_lib_acl_acl_set_file" >&6; }
11650 if test "x$ac_cv_lib_acl_acl_set_file" = x
""yes; then :
11656 if test "$HAVE_POSIX_ACL" = yes; then
11658 $as_echo "#define HAVE_POSIX_ACL 1" >>confdefs.h
11662 ac_fn_c_check_func
"$LINENO" "acl_set_file" "ac_cv_func_acl_set_file"
11663 if test "x$ac_cv_func_acl_set_file" = x
""yes; then :
11669 if test "$HAVE_POSIX_ACL" = yes; then
11671 $as_echo "#define HAVE_POSIX_ACL 1" >>confdefs.h
11680 if test x
"${USE_X_TOOLKIT}" = xmaybe ||
test x
"${USE_X_TOOLKIT}" = xLUCID
; then
11681 if test "$with_xaw3d" != no
; then
11682 if test "${emacs_cv_xaw3d+set}" = set; then :
11683 $as_echo_n "(cached) " >&6
11685 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11686 /* end confdefs.h. */
11688 #include <X11/Intrinsic.h>
11689 #include <X11/Xaw3d/Simple.h>
11698 if ac_fn_c_try_link
"$LINENO"; then :
11699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XawScrollbarSetThumb in -lXaw3d" >&5
11700 $as_echo_n "checking for XawScrollbarSetThumb in -lXaw3d... " >&6; }
11701 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then :
11702 $as_echo_n "(cached) " >&6
11704 ac_check_lib_save_LIBS
=$LIBS
11705 LIBS
="-lXaw3d $LIBS"
11706 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11707 /* end confdefs.h. */
11709 /* Override any GCC internal prototype to avoid an error.
11710 Use char because int might match the return type of a GCC
11711 builtin and then its argument prototype would still apply. */
11715 char XawScrollbarSetThumb ();
11719 return XawScrollbarSetThumb ();
11724 if ac_fn_c_try_link
"$LINENO"; then :
11725 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=yes
11727 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=no
11729 rm -f core conftest.err conftest.
$ac_objext \
11730 conftest
$ac_exeext conftest.
$ac_ext
11731 LIBS
=$ac_check_lib_save_LIBS
11733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
11734 $as_echo "$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
11735 if test "x$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" = x
""yes; then :
11744 rm -f core conftest.err conftest.
$ac_objext \
11745 conftest
$ac_exeext conftest.
$ac_ext
11751 if test $emacs_cv_xaw3d = yes; then
11752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
11753 $as_echo_n "checking for xaw3d... " >&6; }
11754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
11755 $as_echo "yes; using Lucid toolkit" >&6; }
11756 USE_X_TOOLKIT
=LUCID
11760 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
11763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
11764 $as_echo_n "checking for xaw3d... " >&6; }
11765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11766 $as_echo "no" >&6; }
11767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
11768 $as_echo_n "checking for libXaw... " >&6; }
11769 if test "${emacs_cv_xaw+set}" = set; then :
11770 $as_echo_n "(cached) " >&6
11772 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11773 /* end confdefs.h. */
11775 #include <X11/Intrinsic.h>
11776 #include <X11/Xaw/Simple.h>
11785 if ac_fn_c_try_link
"$LINENO"; then :
11790 rm -f core conftest.err conftest.
$ac_objext \
11791 conftest
$ac_exeext conftest.
$ac_ext
11794 if test $emacs_cv_xaw = yes; then
11795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
11796 $as_echo "yes; using Lucid toolkit" >&6; }
11797 USE_X_TOOLKIT
=LUCID
11799 elif test x
"${USE_X_TOOLKIT}" = xLUCID
; then
11800 as_fn_error
"Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
11802 as_fn_error
"No X toolkit could be found.
11803 If you are sure you want Emacs compiled without an X toolkit, pass
11804 --with-x-toolkit=no
11805 to configure. Otherwise, install the development libraries for the toolkit
11806 that you want to use (e.g. Gtk+) and re-run configure." "$LINENO" 5
11811 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
11814 if test "${USE_X_TOOLKIT}" != "none"; then
11815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
11816 $as_echo_n "checking X11 toolkit version... " >&6; }
11817 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then :
11818 $as_echo_n "(cached) " >&6
11820 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11821 /* end confdefs.h. */
11822 #include <X11/Intrinsic.h>
11826 #if XtSpecificationRelease < 6
11834 if ac_fn_c_try_link
"$LINENO"; then :
11835 emacs_cv_x11_toolkit_version_6
=yes
11837 emacs_cv_x11_toolkit_version_6
=no
11839 rm -f core conftest.err conftest.
$ac_objext \
11840 conftest
$ac_exeext conftest.
$ac_ext
11843 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
11844 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
11846 $as_echo "6 or newer" >&6; }
11848 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
11850 LIBXTR6
="-lSM -lICE"
11852 ## Use libw.a along with X11R6 Xt.
11853 unixware
) LIBXTR6
="$LIBXTR6 -lw" ;;
11856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
11857 $as_echo "before 6" >&6; }
11861 if test x
$HAVE_X11XTR6 = xyes
; then
11862 LIBS
="-lXt -lSM -lICE $LIBS"
11866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
11867 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
11868 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then :
11869 $as_echo_n "(cached) " >&6
11871 ac_check_lib_save_LIBS
=$LIBS
11873 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11874 /* end confdefs.h. */
11876 /* Override any GCC internal prototype to avoid an error.
11877 Use char because int might match the return type of a GCC
11878 builtin and then its argument prototype would still apply. */
11882 char XmuConvertStandardSelection ();
11886 return XmuConvertStandardSelection ();
11891 if ac_fn_c_try_link
"$LINENO"; then :
11892 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
11894 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
11896 rm -f core conftest.err conftest.
$ac_objext \
11897 conftest
$ac_exeext conftest.
$ac_ext
11898 LIBS
=$ac_check_lib_save_LIBS
11900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
11901 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
11902 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x
""yes; then :
11903 cat >>confdefs.h
<<_ACEOF
11904 #define HAVE_LIBXMU 1
11911 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
11917 ## These systems don't supply Xmu.
11919 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU
=
11924 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
11925 if test "${HAVE_X11}" = "yes"; then
11926 if test "${USE_X_TOOLKIT}" != "none"; then
11927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
11928 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
11929 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
11930 $as_echo_n "(cached) " >&6
11932 ac_check_lib_save_LIBS
=$LIBS
11933 LIBS
="-lXext $LIBS"
11934 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11935 /* end confdefs.h. */
11937 /* Override any GCC internal prototype to avoid an error.
11938 Use char because int might match the return type of a GCC
11939 builtin and then its argument prototype would still apply. */
11943 char XShapeQueryExtension ();
11947 return XShapeQueryExtension ();
11952 if ac_fn_c_try_link
"$LINENO"; then :
11953 ac_cv_lib_Xext_XShapeQueryExtension
=yes
11955 ac_cv_lib_Xext_XShapeQueryExtension
=no
11957 rm -f core conftest.err conftest.
$ac_objext \
11958 conftest
$ac_exeext conftest.
$ac_ext
11959 LIBS
=$ac_check_lib_save_LIBS
11961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
11962 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
11963 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x
""yes; then :
11964 cat >>confdefs.h
<<_ACEOF
11965 #define HAVE_LIBXEXT 1
11968 LIBS
="-lXext $LIBS"
11976 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11977 # OpenMotif may be installed in such a way on some GNU/Linux systems.
11978 if test -d /usr
/include
/openmotif
; then
11979 CPPFLAGS
="-I/usr/include/openmotif $CPPFLAGS"
11980 emacs_cv_openmotif
=yes
11981 case "$canonical" in
11982 x86_64-
*-linux-gnu* | powerpc64-
*-linux-gnu* | sparc64-
*-linux-gnu*)
11983 test -d /usr
/lib64
/openmotif
&& LDFLAGS
="-L/usr/lib64/openmotif $LDFLAGS"
11986 test -d /usr
/lib
/openmotif
&& LDFLAGS
="-L/usr/lib/openmotif $LDFLAGS"
11989 emacs_cv_openmotif
=no
11991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for (Open)Motif version 2.1" >&5
11992 $as_echo_n "checking for (Open)Motif version 2.1... " >&6; }
11993 if test "${emacs_cv_motif_version_2_1+set}" = set; then :
11994 $as_echo_n "(cached) " >&6
11996 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11997 /* end confdefs.h. */
12002 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12005 Motif version prior to 2.1.
12011 if ac_fn_c_try_compile
"$LINENO"; then :
12012 emacs_cv_motif_version_2_1
=yes
12014 emacs_cv_motif_version_2_1
=no
12016 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
12019 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
12020 if test $emacs_cv_motif_version_2_1 = yes; then
12021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
12022 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
12023 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then :
12024 $as_echo_n "(cached) " >&6
12026 ac_check_lib_save_LIBS
=$LIBS
12028 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12029 /* end confdefs.h. */
12031 /* Override any GCC internal prototype to avoid an error.
12032 Use char because int might match the return type of a GCC
12033 builtin and then its argument prototype would still apply. */
12037 char XpCreateContext ();
12041 return XpCreateContext ();
12046 if ac_fn_c_try_link
"$LINENO"; then :
12047 ac_cv_lib_Xp_XpCreateContext
=yes
12049 ac_cv_lib_Xp_XpCreateContext
=no
12051 rm -f core conftest.err conftest.
$ac_objext \
12052 conftest
$ac_exeext conftest.
$ac_ext
12053 LIBS
=$ac_check_lib_save_LIBS
12055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12056 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
12057 if test "x$ac_cv_lib_Xp_XpCreateContext" = x
""yes; then :
12061 if test x
$emacs_cv_openmotif = xyes
; then
12062 REAL_CPPFLAGS
="-I/usr/include/openmotif $REAL_CPPFLAGS"
12065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
12066 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
12067 if test "${emacs_cv_lesstif+set}" = set; then :
12068 $as_echo_n "(cached) " >&6
12070 # We put this in CFLAGS temporarily to precede other -I options
12071 # that might be in CFLAGS temporarily.
12072 # We put this in CPPFLAGS where it precedes the other -I options.
12073 OLD_CPPFLAGS
=$CPPFLAGS
12075 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12076 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12077 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12078 /* end confdefs.h. */
12079 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12088 if ac_fn_c_try_compile
"$LINENO"; then :
12089 emacs_cv_lesstif
=yes
12091 emacs_cv_lesstif
=no
12093 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
12096 $as_echo "$emacs_cv_lesstif" >&6; }
12097 if test $emacs_cv_lesstif = yes; then
12098 # Make sure this -I option remains in CPPFLAGS after it is set
12099 # back to REAL_CPPFLAGS.
12100 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12101 # have those other -I options anyway. Ultimately, having this
12102 # directory ultimately in CPPFLAGS will be enough.
12103 REAL_CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12104 LDFLAGS
="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12107 CPPFLAGS
=$OLD_CPPFLAGS
12110 ac_fn_c_check_header_mongrel
"$LINENO" "Xm/BulletinB.h" "ac_cv_header_Xm_BulletinB_h" "$ac_includes_default"
12111 if test "x$ac_cv_header_Xm_BulletinB_h" = x
""yes; then :
12114 as_fn_error
"Motif toolkit requested but requirements not found." "$LINENO" 5
12121 USE_TOOLKIT_SCROLL_BARS
=no
12122 if test "${with_toolkit_scroll_bars}" != "no"; then
12123 if test "${USE_X_TOOLKIT}" != "none"; then
12124 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12125 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12128 USE_TOOLKIT_SCROLL_BARS
=yes
12129 elif test "${HAVE_XAW3D}" = "yes" ||
test "${USE_X_TOOLKIT}" = "LUCID"; then
12130 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12132 USE_TOOLKIT_SCROLL_BARS
=yes
12134 elif test "${HAVE_GTK}" = "yes"; then
12135 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12137 USE_TOOLKIT_SCROLL_BARS
=yes
12138 elif test "${HAVE_NS}" = "yes"; then
12139 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12141 USE_TOOLKIT_SCROLL_BARS
=yes
12142 elif test "${HAVE_W32}" = "yes"; then
12143 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12145 USE_TOOLKIT_SCROLL_BARS
=yes
12149 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12150 /* end confdefs.h. */
12152 #include <X11/Xlib.h>
12153 #include <X11/Xresource.h>
12162 if ac_fn_c_try_compile
"$LINENO"; then :
12165 $as_echo "#define HAVE_XIM 1" >>confdefs.h
12170 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12173 if test "${with_xim}" != "no"; then
12175 $as_echo "#define USE_XIM 1" >>confdefs.h
12180 if test "${HAVE_XIM}" != "no"; then
12181 late_CFLAGS
=$CFLAGS
12182 if test "$GCC" = yes; then
12183 CFLAGS
="$CFLAGS --pedantic-errors"
12185 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12186 /* end confdefs.h. */
12188 #include <X11/Xlib.h>
12189 #include <X11/Xresource.h>
12198 XPointer *client_data;
12200 /* If we're not using GCC, it's probably not XFree86, and this is
12201 probably right, but we can't use something like --pedantic-errors. */
12202 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12203 char*, XIMProc, XPointer*);
12205 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12211 if ac_fn_c_try_compile
"$LINENO"; then :
12212 emacs_cv_arg6_star
=yes
12214 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12215 if test "$emacs_cv_arg6_star" = yes; then
12216 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
12219 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
12222 CFLAGS
=$late_CFLAGS
12225 ### Start of font-backend (under any platform) section.
12226 # (nothing here yet -- this is a placeholder)
12227 ### End of font-backend (under any platform) section.
12229 ### Start of font-backend (under X11) section.
12230 if test "${HAVE_X11}" = "yes"; then
12234 if test "$PKG_CONFIG" = "no" ; then
12237 PKG_CONFIG_MIN_VERSION
=0.9.0
12238 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
12240 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
12242 if "$PKG_CONFIG" --exists "fontconfig >= 2.2.0" 2>&5 &&
12243 FONTCONFIG_CFLAGS
=`"$PKG_CONFIG" --cflags "fontconfig >= 2.2.0" 2>&5` &&
12244 FONTCONFIG_LIBS
=`"$PKG_CONFIG" --libs "fontconfig >= 2.2.0" 2>&5`; then
12251 FONTCONFIG_CFLAGS
=`$as_echo "$FONTCONFIG_CFLAGS" | sed -e "$edit_cflags"`
12252 FONTCONFIG_LIBS
=`$as_echo "$FONTCONFIG_LIBS" | sed -e 's,///*,/,g'`
12253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$FONTCONFIG_CFLAGS' LIBS='$FONTCONFIG_LIBS'" >&5
12254 $as_echo "yes CFLAGS='$FONTCONFIG_CFLAGS' LIBS='$FONTCONFIG_LIBS'" >&6; }
12257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12258 $as_echo "no" >&6; }
12259 FONTCONFIG_CFLAGS
=""
12261 ## If we have a custom action on failure, don't print errors, but
12262 ## do set a variable so people can do so. Do it in a subshell
12263 ## to capture any diagnostics in invoking pkg-config.
12264 FONTCONFIG_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "fontconfig >= 2.2.0") 2>&1`
12271 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12272 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12276 if test $succeeded = yes; then
12283 ## Use -lXft if available, unless `--with-xft=no'.
12285 if test "${HAVE_FC}" = "no" ||
test "x${with_x}" = "xno"; then
12288 if test "x${with_xft}" != "xno"; then
12293 if test "$PKG_CONFIG" = "no" ; then
12296 PKG_CONFIG_MIN_VERSION
=0.9.0
12297 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
12299 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
12301 if "$PKG_CONFIG" --exists "xft >= 0.13.0" 2>&5 &&
12302 XFT_CFLAGS
=`"$PKG_CONFIG" --cflags "xft >= 0.13.0" 2>&5` &&
12303 XFT_LIBS
=`"$PKG_CONFIG" --libs "xft >= 0.13.0" 2>&5`; then
12310 XFT_CFLAGS
=`$as_echo "$XFT_CFLAGS" | sed -e "$edit_cflags"`
12311 XFT_LIBS
=`$as_echo "$XFT_LIBS" | sed -e 's,///*,/,g'`
12312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$XFT_CFLAGS' LIBS='$XFT_LIBS'" >&5
12313 $as_echo "yes CFLAGS='$XFT_CFLAGS' LIBS='$XFT_LIBS'" >&6; }
12316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12317 $as_echo "no" >&6; }
12320 ## If we have a custom action on failure, don't print errors, but
12321 ## do set a variable so people can do so. Do it in a subshell
12322 ## to capture any diagnostics in invoking pkg-config.
12323 XFT_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "xft >= 0.13.0") 2>&1`
12330 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12331 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12335 if test $succeeded = yes; then
12341 ## Because xftfont.c uses XRenderQueryExtension, we also
12342 ## need to link to -lXrender.
12344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
12345 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
12346 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
12347 $as_echo_n "(cached) " >&6
12349 ac_check_lib_save_LIBS
=$LIBS
12350 LIBS
="-lXrender $LIBS"
12351 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12352 /* end confdefs.h. */
12354 /* Override any GCC internal prototype to avoid an error.
12355 Use char because int might match the return type of a GCC
12356 builtin and then its argument prototype would still apply. */
12360 char XRenderQueryExtension ();
12364 return XRenderQueryExtension ();
12369 if ac_fn_c_try_link
"$LINENO"; then :
12370 ac_cv_lib_Xrender_XRenderQueryExtension
=yes
12372 ac_cv_lib_Xrender_XRenderQueryExtension
=no
12374 rm -f core conftest.err conftest.
$ac_objext \
12375 conftest
$ac_exeext conftest.
$ac_ext
12376 LIBS
=$ac_check_lib_save_LIBS
12378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
12379 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
12380 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x
""yes; then :
12384 if test "$HAVE_XFT" != no
&& test "$HAVE_XRENDER" != no
; then
12385 OLD_CPPFLAGS
="$CPPFLAGS"
12386 OLD_CFLAGS
="$CFLAGS"
12388 CPPFLAGS
="$CPPFLAGS $XFT_CFLAGS"
12389 CFLAGS
="$CFLAGS $XFT_CFLAGS"
12390 XFT_LIBS
="-lXrender $XFT_LIBS"
12391 LIBS
="$XFT_LIBS $LIBS"
12392 ac_fn_c_check_header_mongrel
"$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
12393 if test "x$ac_cv_header_X11_Xft_Xft_h" = x
""yes; then :
12394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
12395 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
12396 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then :
12397 $as_echo_n "(cached) " >&6
12399 ac_check_lib_save_LIBS
=$LIBS
12400 LIBS
="-lXft $XFT_LIBS $LIBS"
12401 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12402 /* end confdefs.h. */
12404 /* Override any GCC internal prototype to avoid an error.
12405 Use char because int might match the return type of a GCC
12406 builtin and then its argument prototype would still apply. */
12410 char XftFontOpen ();
12414 return XftFontOpen ();
12419 if ac_fn_c_try_link
"$LINENO"; then :
12420 ac_cv_lib_Xft_XftFontOpen
=yes
12422 ac_cv_lib_Xft_XftFontOpen
=no
12424 rm -f core conftest.err conftest.
$ac_objext \
12425 conftest
$ac_exeext conftest.
$ac_ext
12426 LIBS
=$ac_check_lib_save_LIBS
12428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
12429 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
12430 if test "x$ac_cv_lib_Xft_XftFontOpen" = x
""yes; then :
12438 if test "${HAVE_XFT}" = "yes"; then
12440 $as_echo "#define HAVE_XFT 1" >>confdefs.h
12443 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $XFT_CFLAGS"
12445 CPPFLAGS
="$OLD_CPPFLAGS"
12446 CFLAGS
="$OLD_CFLAGS"
12448 fi # "${HAVE_XFT}" = "yes"
12449 fi # "$HAVE_XFT" != no
12450 fi # "x${with_xft}" != "xno"
12452 ## We used to allow building with FreeType and without Xft.
12453 ## However, the ftx font backend driver is not in good shape.
12454 if test "$HAVE_XFT" != "yes"; then
12461 if test "$PKG_CONFIG" = "no" ; then
12464 PKG_CONFIG_MIN_VERSION
=0.9.0
12465 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype2" >&5
12467 $as_echo_n "checking for freetype2... " >&6; }
12469 if "$PKG_CONFIG" --exists "freetype2" 2>&5 &&
12470 FREETYPE_CFLAGS
=`"$PKG_CONFIG" --cflags "freetype2" 2>&5` &&
12471 FREETYPE_LIBS
=`"$PKG_CONFIG" --libs "freetype2" 2>&5`; then
12478 FREETYPE_CFLAGS
=`$as_echo "$FREETYPE_CFLAGS" | sed -e "$edit_cflags"`
12479 FREETYPE_LIBS
=`$as_echo "$FREETYPE_LIBS" | sed -e 's,///*,/,g'`
12480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$FREETYPE_CFLAGS' LIBS='$FREETYPE_LIBS'" >&5
12481 $as_echo "yes CFLAGS='$FREETYPE_CFLAGS' LIBS='$FREETYPE_LIBS'" >&6; }
12484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12485 $as_echo "no" >&6; }
12488 ## If we have a custom action on failure, don't print errors, but
12489 ## do set a variable so people can do so. Do it in a subshell
12490 ## to capture any diagnostics in invoking pkg-config.
12491 FREETYPE_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "freetype2") 2>&1`
12498 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12499 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12503 if test $succeeded = yes; then
12510 test "$HAVE_FREETYPE" = "no" && as_fn_error
"libxft requires libfreetype" "$LINENO" 5
12514 if test "${HAVE_FREETYPE}" = "yes"; then
12516 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
12518 if test "${with_libotf}" != "no"; then
12522 if test "$PKG_CONFIG" = "no" ; then
12525 PKG_CONFIG_MIN_VERSION
=0.9.0
12526 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
12528 $as_echo_n "checking for libotf... " >&6; }
12530 if "$PKG_CONFIG" --exists "libotf" 2>&5 &&
12531 LIBOTF_CFLAGS
=`"$PKG_CONFIG" --cflags "libotf" 2>&5` &&
12532 LIBOTF_LIBS
=`"$PKG_CONFIG" --libs "libotf" 2>&5`; then
12539 LIBOTF_CFLAGS
=`$as_echo "$LIBOTF_CFLAGS" | sed -e "$edit_cflags"`
12540 LIBOTF_LIBS
=`$as_echo "$LIBOTF_LIBS" | sed -e 's,///*,/,g'`
12541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBOTF_CFLAGS' LIBS='$LIBOTF_LIBS'" >&5
12542 $as_echo "yes CFLAGS='$LIBOTF_CFLAGS' LIBS='$LIBOTF_LIBS'" >&6; }
12545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12546 $as_echo "no" >&6; }
12549 ## If we have a custom action on failure, don't print errors, but
12550 ## do set a variable so people can do so. Do it in a subshell
12551 ## to capture any diagnostics in invoking pkg-config.
12552 LIBOTF_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "libotf") 2>&1`
12559 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12560 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12564 if test $succeeded = yes; then
12570 if test "$HAVE_LIBOTF" = "yes"; then
12572 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
12574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
12575 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
12576 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then :
12577 $as_echo_n "(cached) " >&6
12579 ac_check_lib_save_LIBS
=$LIBS
12581 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12582 /* end confdefs.h. */
12584 /* Override any GCC internal prototype to avoid an error.
12585 Use char because int might match the return type of a GCC
12586 builtin and then its argument prototype would still apply. */
12590 char OTF_get_variation_glyphs ();
12594 return OTF_get_variation_glyphs ();
12599 if ac_fn_c_try_link
"$LINENO"; then :
12600 ac_cv_lib_otf_OTF_get_variation_glyphs
=yes
12602 ac_cv_lib_otf_OTF_get_variation_glyphs
=no
12604 rm -f core conftest.err conftest.
$ac_objext \
12605 conftest
$ac_exeext conftest.
$ac_ext
12606 LIBS
=$ac_check_lib_save_LIBS
12608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
12609 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
12610 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x
""yes; then :
12611 HAVE_OTF_GET_VARIATION_GLYPHS
=yes
12613 HAVE_OTF_GET_VARIATION_GLYPHS
=no
12616 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
12618 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
12626 if test "${HAVE_LIBOTF}" = yes; then
12627 if test "${with_m17n_flt}" != "no"; then
12631 if test "$PKG_CONFIG" = "no" ; then
12634 PKG_CONFIG_MIN_VERSION
=0.9.0
12635 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
12637 $as_echo_n "checking for m17n-flt... " >&6; }
12639 if "$PKG_CONFIG" --exists "m17n-flt" 2>&5 &&
12640 M17N_FLT_CFLAGS
=`"$PKG_CONFIG" --cflags "m17n-flt" 2>&5` &&
12641 M17N_FLT_LIBS
=`"$PKG_CONFIG" --libs "m17n-flt" 2>&5`; then
12648 M17N_FLT_CFLAGS
=`$as_echo "$M17N_FLT_CFLAGS" | sed -e "$edit_cflags"`
12649 M17N_FLT_LIBS
=`$as_echo "$M17N_FLT_LIBS" | sed -e 's,///*,/,g'`
12650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$M17N_FLT_CFLAGS' LIBS='$M17N_FLT_LIBS'" >&5
12651 $as_echo "yes CFLAGS='$M17N_FLT_CFLAGS' LIBS='$M17N_FLT_LIBS'" >&6; }
12654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12655 $as_echo "no" >&6; }
12658 ## If we have a custom action on failure, don't print errors, but
12659 ## do set a variable so people can do so. Do it in a subshell
12660 ## to capture any diagnostics in invoking pkg-config.
12661 M17N_FLT_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "m17n-flt") 2>&1`
12668 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12669 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12673 if test $succeeded = yes; then
12679 if test "$HAVE_M17N_FLT" = "yes"; then
12681 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
12693 ### End of font-backend (under X11) section.
12704 ### Use -lXpm if available, unless `--with-xpm=no'.
12708 if test "${HAVE_W32}" = "yes"; then
12709 if test "${with_xpm}" != "no"; then
12710 SAVE_CPPFLAGS
="$CPPFLAGS"
12711 SAVE_LDFLAGS
="$LDFLAGS"
12712 CPPFLAGS
="$CPPFLAGS -I/usr/include/noX"
12713 LDFLAGS
="$LDFLAGS -L/usr/lib/noX"
12714 ac_fn_c_check_header_mongrel
"$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
12715 if test "x$ac_cv_header_X11_xpm_h" = x
""yes; then :
12716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToImage in -lXpm" >&5
12717 $as_echo_n "checking for XpmReadFileToImage in -lXpm... " >&6; }
12718 if test "${ac_cv_lib_Xpm_XpmReadFileToImage+set}" = set; then :
12719 $as_echo_n "(cached) " >&6
12721 ac_check_lib_save_LIBS
=$LIBS
12723 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12724 /* end confdefs.h. */
12726 /* Override any GCC internal prototype to avoid an error.
12727 Use char because int might match the return type of a GCC
12728 builtin and then its argument prototype would still apply. */
12732 char XpmReadFileToImage ();
12736 return XpmReadFileToImage ();
12741 if ac_fn_c_try_link
"$LINENO"; then :
12742 ac_cv_lib_Xpm_XpmReadFileToImage
=yes
12744 ac_cv_lib_Xpm_XpmReadFileToImage
=no
12746 rm -f core conftest.err conftest.
$ac_objext \
12747 conftest
$ac_exeext conftest.
$ac_ext
12748 LIBS
=$ac_check_lib_save_LIBS
12750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToImage" >&5
12751 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToImage" >&6; }
12752 if test "x$ac_cv_lib_Xpm_XpmReadFileToImage" = x
""yes; then :
12759 if test "${HAVE_XPM}" = "yes"; then
12760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
12761 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
12762 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12763 /* end confdefs.h. */
12764 #include "X11/xpm.h"
12765 #ifndef XpmReturnAllocPixels
12766 no_return_alloc_pixels
12770 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12771 $EGREP "no_return_alloc_pixels" >/dev
/null
2>&1; then :
12779 if test "${HAVE_XPM}" = "yes"; then
12780 REAL_CPPFLAGS
="$REAL_CPPFLAGS -I/usr/include/noX"
12781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12782 $as_echo "yes" >&6; }
12784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12785 $as_echo "no" >&6; }
12786 CPPFLAGS
="$SAVE_CPPFLAGS"
12787 LDFLAGS
="$SAVE_LDFLAGS"
12792 if test "${HAVE_XPM}" = "yes"; then
12794 $as_echo "#define HAVE_XPM 1" >>confdefs.h
12800 if test "${HAVE_X11}" = "yes"; then
12801 if test "${with_xpm}" != "no"; then
12802 ac_fn_c_check_header_mongrel
"$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
12803 if test "x$ac_cv_header_X11_xpm_h" = x
""yes; then :
12804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
12805 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
12806 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then :
12807 $as_echo_n "(cached) " >&6
12809 ac_check_lib_save_LIBS
=$LIBS
12810 LIBS
="-lXpm -lX11 $LIBS"
12811 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12812 /* end confdefs.h. */
12814 /* Override any GCC internal prototype to avoid an error.
12815 Use char because int might match the return type of a GCC
12816 builtin and then its argument prototype would still apply. */
12820 char XpmReadFileToPixmap ();
12824 return XpmReadFileToPixmap ();
12829 if ac_fn_c_try_link
"$LINENO"; then :
12830 ac_cv_lib_Xpm_XpmReadFileToPixmap
=yes
12832 ac_cv_lib_Xpm_XpmReadFileToPixmap
=no
12834 rm -f core conftest.err conftest.
$ac_objext \
12835 conftest
$ac_exeext conftest.
$ac_ext
12836 LIBS
=$ac_check_lib_save_LIBS
12838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
12839 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
12840 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x
""yes; then :
12847 if test "${HAVE_XPM}" = "yes"; then
12848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
12849 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
12850 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12851 /* end confdefs.h. */
12852 #include "X11/xpm.h"
12853 #ifndef XpmReturnAllocPixels
12854 no_return_alloc_pixels
12858 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12859 $EGREP "no_return_alloc_pixels" >/dev
/null
2>&1; then :
12867 if test "${HAVE_XPM}" = "yes"; then
12868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12869 $as_echo "yes" >&6; }
12871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12872 $as_echo "no" >&6; }
12877 if test "${HAVE_XPM}" = "yes"; then
12879 $as_echo "#define HAVE_XPM 1" >>confdefs.h
12887 ### Use -ljpeg if available, unless `--with-jpeg=no'.
12890 if test "${HAVE_X11}" = "yes" ||
test "${HAVE_W32}" = "yes"; then
12891 if test "${with_jpeg}" != "no"; then
12892 ac_fn_c_check_header_mongrel
"$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
12893 if test "x$ac_cv_header_jerror_h" = x
""yes; then :
12894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
12895 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
12896 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then :
12897 $as_echo_n "(cached) " >&6
12899 ac_check_lib_save_LIBS
=$LIBS
12900 LIBS
="-ljpeg $LIBS"
12901 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12902 /* end confdefs.h. */
12904 /* Override any GCC internal prototype to avoid an error.
12905 Use char because int might match the return type of a GCC
12906 builtin and then its argument prototype would still apply. */
12910 char jpeg_destroy_compress ();
12914 return jpeg_destroy_compress ();
12919 if ac_fn_c_try_link
"$LINENO"; then :
12920 ac_cv_lib_jpeg_jpeg_destroy_compress
=yes
12922 ac_cv_lib_jpeg_jpeg_destroy_compress
=no
12924 rm -f core conftest.err conftest.
$ac_objext \
12925 conftest
$ac_exeext conftest.
$ac_ext
12926 LIBS
=$ac_check_lib_save_LIBS
12928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
12929 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
12930 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x
""yes; then :
12939 if test "${HAVE_JPEG}" = "yes"; then
12940 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
12942 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12943 /* end confdefs.h. */
12944 #include <jpeglib.h>
12945 version=JPEG_LIB_VERSION
12948 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12949 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev
/null
2>&1; then :
12950 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
12953 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
12954 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
12960 if test "${HAVE_JPEG}" = "yes"; then
12966 ### Use -lpng if available, unless `--with-png=no'.
12969 if test "${HAVE_X11}" = "yes" ||
test "${HAVE_W32}" = "yes"; then
12970 if test "${with_png}" != "no"; then
12971 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
12972 # in /usr/include/libpng.
12973 for ac_header
in png.h libpng
/png.h
12975 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12976 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12977 eval as_val
=\$
$as_ac_Header
12978 if test "x$as_val" = x
""yes; then :
12979 cat >>confdefs.h
<<_ACEOF
12980 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12987 if test "$ac_cv_header_png_h" = yes ||
test "$ac_cv_header_libpng_png_h" = yes ; then
12988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
12989 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
12990 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then :
12991 $as_echo_n "(cached) " >&6
12993 ac_check_lib_save_LIBS
=$LIBS
12994 LIBS
="-lpng -lz -lm $LIBS"
12995 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12996 /* end confdefs.h. */
12998 /* Override any GCC internal prototype to avoid an error.
12999 Use char because int might match the return type of a GCC
13000 builtin and then its argument prototype would still apply. */
13004 char png_get_channels ();
13008 return png_get_channels ();
13013 if ac_fn_c_try_link
"$LINENO"; then :
13014 ac_cv_lib_png_png_get_channels
=yes
13016 ac_cv_lib_png_png_get_channels
=no
13018 rm -f core conftest.err conftest.
$ac_objext \
13019 conftest
$ac_exeext conftest.
$ac_ext
13020 LIBS
=$ac_check_lib_save_LIBS
13022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
13023 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
13024 if test "x$ac_cv_lib_png_png_get_channels" = x
""yes; then :
13031 if test "${HAVE_PNG}" = "yes"; then
13033 $as_echo "#define HAVE_PNG 1" >>confdefs.h
13035 LIBPNG
="-lpng -lz -lm"
13037 ac_fn_c_check_decl
"$LINENO" "png_longjmp" "ac_cv_have_decl_png_longjmp" "#ifdef HAVE_LIBPNG_PNG_H
13038 # include <libpng/png.h>
13044 if test "x$ac_cv_have_decl_png_longjmp" = x
""yes; then :
13048 $as_echo "#define PNG_DEPSTRUCT /**/" >>confdefs.h
13056 ### Use -ltiff if available, unless `--with-tiff=no'.
13059 if test "${HAVE_X11}" = "yes" ||
test "${HAVE_W32}" = "yes"; then
13060 if test "${with_tiff}" != "no"; then
13061 ac_fn_c_check_header_mongrel
"$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
13062 if test "x$ac_cv_header_tiffio_h" = x
""yes; then :
13064 # At least one tiff package requires the jpeg library.
13065 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
13066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
13067 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
13068 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then :
13069 $as_echo_n "(cached) " >&6
13071 ac_check_lib_save_LIBS
=$LIBS
13072 LIBS
="-ltiff $tifflibs $LIBS"
13073 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13074 /* end confdefs.h. */
13076 /* Override any GCC internal prototype to avoid an error.
13077 Use char because int might match the return type of a GCC
13078 builtin and then its argument prototype would still apply. */
13082 char TIFFGetVersion ();
13086 return TIFFGetVersion ();
13091 if ac_fn_c_try_link
"$LINENO"; then :
13092 ac_cv_lib_tiff_TIFFGetVersion
=yes
13094 ac_cv_lib_tiff_TIFFGetVersion
=no
13096 rm -f core conftest.err conftest.
$ac_objext \
13097 conftest
$ac_exeext conftest.
$ac_ext
13098 LIBS
=$ac_check_lib_save_LIBS
13100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
13101 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
13102 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x
""yes; then :
13111 if test "${HAVE_TIFF}" = "yes"; then
13113 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
13120 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
13123 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no" \
13124 ||
test "${HAVE_W32}" = "yes"; then
13125 ac_fn_c_check_header_mongrel
"$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
13126 if test "x$ac_cv_header_gif_lib_h" = x
""yes; then :
13127 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
13128 # Earlier versions can crash Emacs.
13129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
13130 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
13131 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then :
13132 $as_echo_n "(cached) " >&6
13134 ac_check_lib_save_LIBS
=$LIBS
13136 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13137 /* end confdefs.h. */
13139 /* Override any GCC internal prototype to avoid an error.
13140 Use char because int might match the return type of a GCC
13141 builtin and then its argument prototype would still apply. */
13145 char EGifPutExtensionLast ();
13149 return EGifPutExtensionLast ();
13154 if ac_fn_c_try_link
"$LINENO"; then :
13155 ac_cv_lib_gif_EGifPutExtensionLast
=yes
13157 ac_cv_lib_gif_EGifPutExtensionLast
=no
13159 rm -f core conftest.err conftest.
$ac_objext \
13160 conftest
$ac_exeext conftest.
$ac_ext
13161 LIBS
=$ac_check_lib_save_LIBS
13163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
13164 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
13165 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x
""yes; then :
13175 if test "$HAVE_GIF" = yes; then
13177 elif test "$HAVE_GIF" = maybe
; then
13178 # If gif_lib.h but no libgif, try libungif.
13179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
13180 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
13181 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then :
13182 $as_echo_n "(cached) " >&6
13184 ac_check_lib_save_LIBS
=$LIBS
13185 LIBS
="-lungif $LIBS"
13186 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13187 /* end confdefs.h. */
13189 /* Override any GCC internal prototype to avoid an error.
13190 Use char because int might match the return type of a GCC
13191 builtin and then its argument prototype would still apply. */
13195 char EGifPutExtensionLast ();
13199 return EGifPutExtensionLast ();
13204 if ac_fn_c_try_link
"$LINENO"; then :
13205 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
13207 ac_cv_lib_ungif_EGifPutExtensionLast
=no
13209 rm -f core conftest.err conftest.
$ac_objext \
13210 conftest
$ac_exeext conftest.
$ac_ext
13211 LIBS
=$ac_check_lib_save_LIBS
13213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
13214 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
13215 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x
""yes; then :
13221 test "$HAVE_GIF" = yes && LIBGIF
=-lungif
13224 if test "${HAVE_GIF}" = "yes"; then
13226 $as_echo "#define HAVE_GIF 1" >>confdefs.h
13232 if test "${HAVE_X11}" = "yes"; then
13235 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
13236 MISSING
="libXpm" && WITH_NO
="--with-xpm=no"
13237 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
13238 MISSING
="$MISSING libjpeg" && WITH_NO
="$WITH_NO --with-jpeg=no"
13239 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
13240 MISSING
="$MISSING libpng" && WITH_NO
="$WITH_NO --with-png=no"
13241 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
13242 MISSING
="$MISSING libgif/libungif" && WITH_NO
="$WITH_NO --with-gif=no"
13243 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
13244 MISSING
="$MISSING libtiff" && WITH_NO
="$WITH_NO --with-tiff=no"
13246 if test "X${MISSING}" != X
; then
13247 as_fn_error
"The following required libraries were not found:
13249 Maybe some development libraries/packages are missing?
13250 If you don't want to link with them give
13252 as options to configure" "$LINENO" 5
13256 ### Use -lgpm if available, unless `--with-gpm=no'.
13259 if test "${with_gpm}" != "no"; then
13260 ac_fn_c_check_header_mongrel
"$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
13261 if test "x$ac_cv_header_gpm_h" = x
""yes; then :
13262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
13263 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
13264 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then :
13265 $as_echo_n "(cached) " >&6
13267 ac_check_lib_save_LIBS
=$LIBS
13269 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13270 /* end confdefs.h. */
13272 /* Override any GCC internal prototype to avoid an error.
13273 Use char because int might match the return type of a GCC
13274 builtin and then its argument prototype would still apply. */
13282 return Gpm_Open ();
13287 if ac_fn_c_try_link
"$LINENO"; then :
13288 ac_cv_lib_gpm_Gpm_Open
=yes
13290 ac_cv_lib_gpm_Gpm_Open
=no
13292 rm -f core conftest.err conftest.
$ac_objext \
13293 conftest
$ac_exeext conftest.
$ac_ext
13294 LIBS
=$ac_check_lib_save_LIBS
13296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
13297 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
13298 if test "x$ac_cv_lib_gpm_Gpm_Open" = x
""yes; then :
13306 if test "${HAVE_GPM}" = "yes"; then
13308 $as_echo "#define HAVE_GPM 1" >>confdefs.h
13320 ### Use NeXTstep API to implement GUI.
13321 if test "${HAVE_NS}" = "yes"; then
13323 $as_echo "#define HAVE_NS 1" >>confdefs.h
13325 if test "${NS_IMPL_COCOA}" = "yes"; then
13327 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
13330 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
13332 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
13334 # See also .m.o rule in Makefile.in */
13335 # FIXME: are all these flags really needed? Document here why. */
13336 GNUSTEP_CFLAGS
="-D_REENTRANT -fPIC -fno-strict-aliasing -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
13337 ## Extra CFLAGS applied to src/*.m files.
13338 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"
13340 # We also have mouse menus.
13345 if test "${HAVE_W32}" = "yes"; then
13349 ### Use session management (-lSM -lICE) if available
13352 if test "${HAVE_X11}" = "yes"; then
13353 ac_fn_c_check_header_mongrel
"$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
13354 if test "x$ac_cv_header_X11_SM_SMlib_h" = x
""yes; then :
13355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
13356 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
13357 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then :
13358 $as_echo_n "(cached) " >&6
13360 ac_check_lib_save_LIBS
=$LIBS
13361 LIBS
="-lSM -lICE $LIBS"
13362 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13363 /* end confdefs.h. */
13365 /* Override any GCC internal prototype to avoid an error.
13366 Use char because int might match the return type of a GCC
13367 builtin and then its argument prototype would still apply. */
13371 char SmcOpenConnection ();
13375 return SmcOpenConnection ();
13380 if ac_fn_c_try_link
"$LINENO"; then :
13381 ac_cv_lib_SM_SmcOpenConnection
=yes
13383 ac_cv_lib_SM_SmcOpenConnection
=no
13385 rm -f core conftest.err conftest.
$ac_objext \
13386 conftest
$ac_exeext conftest.
$ac_ext
13387 LIBS
=$ac_check_lib_save_LIBS
13389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
13390 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
13391 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x
""yes; then :
13399 if test "${HAVE_X_SM}" = "yes"; then
13401 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
13403 LIBXSM
="-lSM -lICE"
13406 *) LIBS
="$LIBXSM $LIBS" ;;
13412 ### Use libxml (-lxml2) if available
13414 if test "${with_xml2}" != "no"; then
13415 ### I'm not sure what the version number should be, so I just guessed.
13419 if test "$PKG_CONFIG" = "no" ; then
13422 PKG_CONFIG_MIN_VERSION
=0.9.0
13423 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.6.17" >&5
13425 $as_echo_n "checking for libxml-2.0 > 2.6.17... " >&6; }
13427 if "$PKG_CONFIG" --exists "libxml-2.0 > 2.6.17" 2>&5 &&
13428 LIBXML2_CFLAGS
=`"$PKG_CONFIG" --cflags "libxml-2.0 > 2.6.17" 2>&5` &&
13429 LIBXML2_LIBS
=`"$PKG_CONFIG" --libs "libxml-2.0 > 2.6.17" 2>&5`; then
13436 LIBXML2_CFLAGS
=`$as_echo "$LIBXML2_CFLAGS" | sed -e "$edit_cflags"`
13437 LIBXML2_LIBS
=`$as_echo "$LIBXML2_LIBS" | sed -e 's,///*,/,g'`
13438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBXML2_CFLAGS' LIBS='$LIBXML2_LIBS'" >&5
13439 $as_echo "yes CFLAGS='$LIBXML2_CFLAGS' LIBS='$LIBXML2_LIBS'" >&6; }
13442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13443 $as_echo "no" >&6; }
13446 ## If we have a custom action on failure, don't print errors, but
13447 ## do set a variable so people can do so. Do it in a subshell
13448 ## to capture any diagnostics in invoking pkg-config.
13449 LIBXML2_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "libxml-2.0 > 2.6.17") 2>&1`
13456 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13457 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13461 if test $succeeded = yes; then
13467 if test "${HAVE_LIBXML2}" = "yes"; then
13468 LIBS
="$LIBXML2_LIBS $LIBS"
13469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5
13470 $as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; }
13471 if test "${ac_cv_lib_xml2_htmlReadMemory+set}" = set; then :
13472 $as_echo_n "(cached) " >&6
13474 ac_check_lib_save_LIBS
=$LIBS
13475 LIBS
="-lxml2 $LIBS"
13476 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13477 /* end confdefs.h. */
13479 /* Override any GCC internal prototype to avoid an error.
13480 Use char because int might match the return type of a GCC
13481 builtin and then its argument prototype would still apply. */
13485 char htmlReadMemory ();
13489 return htmlReadMemory ();
13494 if ac_fn_c_try_link
"$LINENO"; then :
13495 ac_cv_lib_xml2_htmlReadMemory
=yes
13497 ac_cv_lib_xml2_htmlReadMemory
=no
13499 rm -f core conftest.err conftest.
$ac_objext \
13500 conftest
$ac_exeext conftest.
$ac_ext
13501 LIBS
=$ac_check_lib_save_LIBS
13503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5
13504 $as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; }
13505 if test "x$ac_cv_lib_xml2_htmlReadMemory" = x
""yes; then :
13511 if test "${HAVE_LIBXML2}" = "yes"; then
13513 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
13524 # If netdb.h doesn't declare h_errno, we must declare it by hand.
13525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
13526 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
13527 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then :
13528 $as_echo_n "(cached) " >&6
13530 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13531 /* end confdefs.h. */
13541 if ac_fn_c_try_link
"$LINENO"; then :
13542 emacs_cv_netdb_declares_h_errno
=yes
13544 emacs_cv_netdb_declares_h_errno
=no
13546 rm -f core conftest.err conftest.
$ac_objext \
13547 conftest
$ac_exeext conftest.
$ac_ext
13549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
13550 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
13551 if test $emacs_cv_netdb_declares_h_errno = yes; then
13553 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
13557 # sqrt and other floating-point functions such as fmod and frexp
13558 # are found in -lm on most systems.
13559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
13560 $as_echo_n "checking for sqrt in -lm... " >&6; }
13561 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
13562 $as_echo_n "(cached) " >&6
13564 ac_check_lib_save_LIBS
=$LIBS
13566 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13567 /* end confdefs.h. */
13569 /* Override any GCC internal prototype to avoid an error.
13570 Use char because int might match the return type of a GCC
13571 builtin and then its argument prototype would still apply. */
13584 if ac_fn_c_try_link
"$LINENO"; then :
13585 ac_cv_lib_m_sqrt
=yes
13587 ac_cv_lib_m_sqrt
=no
13589 rm -f core conftest.err conftest.
$ac_objext \
13590 conftest
$ac_exeext conftest.
$ac_ext
13591 LIBS
=$ac_check_lib_save_LIBS
13593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
13594 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
13595 if test "x$ac_cv_lib_m_sqrt" = x
""yes; then :
13596 cat >>confdefs.h
<<_ACEOF
13597 #define HAVE_LIBM 1
13605 # Check for mail-locking functions in a "mail" library. Probably this should
13606 # have the same check as for liblockfile below.
13607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
13608 $as_echo_n "checking for maillock in -lmail... " >&6; }
13609 if test "${ac_cv_lib_mail_maillock+set}" = set; then :
13610 $as_echo_n "(cached) " >&6
13612 ac_check_lib_save_LIBS
=$LIBS
13613 LIBS
="-lmail $LIBS"
13614 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13615 /* end confdefs.h. */
13617 /* Override any GCC internal prototype to avoid an error.
13618 Use char because int might match the return type of a GCC
13619 builtin and then its argument prototype would still apply. */
13627 return maillock ();
13632 if ac_fn_c_try_link
"$LINENO"; then :
13633 ac_cv_lib_mail_maillock
=yes
13635 ac_cv_lib_mail_maillock
=no
13637 rm -f core conftest.err conftest.
$ac_objext \
13638 conftest
$ac_exeext conftest.
$ac_ext
13639 LIBS
=$ac_check_lib_save_LIBS
13641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
13642 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
13643 if test "x$ac_cv_lib_mail_maillock" = x
""yes; then :
13649 if test $have_mail = yes; then
13651 LIBS
="$LIBS_MAIL $LIBS"
13653 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
13658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
13659 $as_echo_n "checking for maillock in -llockfile... " >&6; }
13660 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then :
13661 $as_echo_n "(cached) " >&6
13663 ac_check_lib_save_LIBS
=$LIBS
13664 LIBS
="-llockfile $LIBS"
13665 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13666 /* end confdefs.h. */
13668 /* Override any GCC internal prototype to avoid an error.
13669 Use char because int might match the return type of a GCC
13670 builtin and then its argument prototype would still apply. */
13678 return maillock ();
13683 if ac_fn_c_try_link
"$LINENO"; then :
13684 ac_cv_lib_lockfile_maillock
=yes
13686 ac_cv_lib_lockfile_maillock
=no
13688 rm -f core conftest.err conftest.
$ac_objext \
13689 conftest
$ac_exeext conftest.
$ac_ext
13690 LIBS
=$ac_check_lib_save_LIBS
13692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
13693 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
13694 if test "x$ac_cv_lib_lockfile_maillock" = x
""yes; then :
13700 if test $have_lockfile = yes; then
13701 LIBS_MAIL
=-llockfile
13702 LIBS
="$LIBS_MAIL $LIBS"
13704 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
13707 # If we have the shared liblockfile, assume we must use it for mail
13708 # locking (e.g. Debian). If we couldn't link against liblockfile
13709 # (no liblockfile.a installed), ensure that we don't need to.
13710 # Extract the first word of "liblockfile.so", so it can be a program name with args.
13711 set dummy liblockfile.so
; ac_word
=$2
13712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13713 $as_echo_n "checking for $ac_word... " >&6; }
13714 if test "${ac_cv_prog_liblockfile+set}" = set; then :
13715 $as_echo_n "(cached) " >&6
13717 if test -n "$liblockfile"; then
13718 ac_cv_prog_liblockfile
="$liblockfile" # Let the user override the test.
13720 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13721 as_dummy
="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
13722 for as_dir
in $as_dummy
13725 test -z "$as_dir" && as_dir
=.
13726 for ac_exec_ext
in '' $ac_executable_extensions; do
13727 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13728 ac_cv_prog_liblockfile
="yes"
13729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13736 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile
="no"
13739 liblockfile
=$ac_cv_prog_liblockfile
13740 if test -n "$liblockfile"; then
13741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
13742 $as_echo "$liblockfile" >&6; }
13744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13745 $as_echo "no" >&6; }
13749 if test $ac_cv_prog_liblockfile = yes; then
13750 as_fn_error
"Shared liblockfile found but can't link against it.
13751 This probably means that movemail could lose mail.
13752 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
13760 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
13761 ## interlock access to the mail spool. The alternative is a lock file named
13762 ## /usr/spool/mail/$USER.lock.
13765 aix4-2
) mail_lock
="lockf" ;;
13767 gnu|freebsd|netbsd|openbsd|darwin|irix6-5
) mail_lock
="flock" ;;
13769 ## On GNU/Linux systems, both methods are used by various mail programs.
13770 ## I assume most people are using newer mailers that have heard of flock.
13771 ## Change this if you need to.
13772 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
13773 ## configure gets the right answers, and that means *NOT* using flock.
13774 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
13775 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
13776 ## Debian maintainer hasn't provided a clean fix for Emacs.
13777 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
13778 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
13779 ## correct logic. -- fx
13780 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
13781 ## liblockfile is a Free Software replacement for libmail, used on
13782 ## Debian systems and elsewhere. -rfr.
13785 if test $have_mail = yes ||
test $have_lockfile = yes; then
13786 test $ac_cv_header_maillock_h = yes && mail_lock
=no
13792 case "$mail_lock" in
13794 $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
13798 $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
13801 *) BLESSMAIL_TARGET
="need-blessmail" ;;
13806 for ac_func
in gethostname \
13807 getrusage get_current_dir_name \
13809 select getpagesize setlocale \
13810 utimes getrlimit setrlimit shutdown getaddrinfo \
13811 strsignal setitimer \
13812 sendto recvfrom getsockname getpeername getifaddrs freeifaddrs \
13813 gai_strerror mkstemp getline getdelim fsync sync \
13814 difftime posix_memalign \
13815 getpwent endpwent getgrent endgrent \
13817 cfmakeraw cfsetspeed copysign __executable_start
13819 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13820 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13821 eval as_val
=\$
$as_ac_var
13822 if test "x$as_val" = x
""yes; then :
13823 cat >>confdefs.h
<<_ACEOF
13824 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13831 ## Eric Backus <ericb@lsid.hp.com> says, HP-UX 9.x on HP 700 machines
13832 ## has a broken `rint' in some library versions including math library
13833 ## version number A.09.05.
13834 ## You can fix the math library by installing patch number PHSS_4630.
13835 ## But we can fix it more reliably for Emacs by just not using rint.
13836 ## We also skip HAVE_RANDOM - see comments in src/conf_post.h.
13839 *) for ac_func
in random rint
13841 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13842 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13843 eval as_val
=\$
$as_ac_var
13844 if test "x$as_val" = x
""yes; then :
13845 cat >>confdefs.h
<<_ACEOF
13846 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unwind_init" >&5
13855 $as_echo_n "checking for __builtin_unwind_init... " >&6; }
13856 if test "${emacs_cv_func___builtin_unwind_init+set}" = set; then :
13857 $as_echo_n "(cached) " >&6
13859 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13860 /* end confdefs.h. */
13865 __builtin_unwind_init ();
13870 if ac_fn_c_try_link
"$LINENO"; then :
13871 emacs_cv_func___builtin_unwind_init
=yes
13873 emacs_cv_func___builtin_unwind_init
=no
13875 rm -f core conftest.err conftest.
$ac_objext \
13876 conftest
$ac_exeext conftest.
$ac_ext
13878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func___builtin_unwind_init" >&5
13879 $as_echo "$emacs_cv_func___builtin_unwind_init" >&6; }
13880 if test $emacs_cv_func___builtin_unwind_init = yes; then
13882 $as_echo "#define HAVE___BUILTIN_UNWIND_INIT 1" >>confdefs.h
13890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13891 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
13892 if test "${ac_cv_sys_largefile_source+set}" = set; then :
13893 $as_echo_n "(cached) " >&6
13896 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13897 /* end confdefs.h. */
13898 #include <sys/types.h> /* for off_t */
13903 int (*fp) (FILE *, off_t, int) = fseeko;
13904 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13909 if ac_fn_c_try_link
"$LINENO"; then :
13910 ac_cv_sys_largefile_source
=no
; break
13912 rm -f core conftest.err conftest.
$ac_objext \
13913 conftest
$ac_exeext conftest.
$ac_ext
13914 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13915 /* end confdefs.h. */
13916 #define _LARGEFILE_SOURCE 1
13917 #include <sys/types.h> /* for off_t */
13922 int (*fp) (FILE *, off_t, int) = fseeko;
13923 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13928 if ac_fn_c_try_link
"$LINENO"; then :
13929 ac_cv_sys_largefile_source
=1; break
13931 rm -f core conftest.err conftest.
$ac_objext \
13932 conftest
$ac_exeext conftest.
$ac_ext
13933 ac_cv_sys_largefile_source
=unknown
13937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
13938 $as_echo "$ac_cv_sys_largefile_source" >&6; }
13939 case $ac_cv_sys_largefile_source in #(
13942 cat >>confdefs.h
<<_ACEOF
13943 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13949 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13950 # in glibc 2.1.3, but that breaks too many other things.
13951 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13952 if test $ac_cv_sys_largefile_source != unknown
; then
13954 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
13960 for ac_func
in grantpt
13962 ac_fn_c_check_func
"$LINENO" "grantpt" "ac_cv_func_grantpt"
13963 if test "x$ac_cv_func_grantpt" = x
""yes; then :
13964 cat >>confdefs.h
<<_ACEOF
13965 #define HAVE_GRANTPT 1
13972 # PTY-related GNU extensions.
13973 for ac_func
in getpt posix_openpt
13975 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13976 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13977 eval as_val
=\$
$as_ac_var
13978 if test "x$as_val" = x
""yes; then :
13979 cat >>confdefs.h
<<_ACEOF
13980 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13987 # Check this now, so that we will NOT find the above functions in ncurses.
13988 # That is because we have not set up to link ncurses in lib-src.
13989 # It's better to believe a function is not available
13990 # than to expect to find it in ncurses.
13991 # Also we need tputs and friends to be able to build at all.
13992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
13993 $as_echo_n "checking for library containing tputs... " >&6; }
13994 # Run a test program that contains a call to tputs, a call that is
13995 # never executed. This tests whether a pre-'main' dynamic linker
13996 # works with the library. It's too much trouble to actually call
13997 # tputs in the test program, due to portability hassles. When
13998 # cross-compiling, assume the test program will run if it links.
14000 # Maybe curses should be tried earlier?
14001 # See http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9736#35
14002 for tputs_library
in '' tinfo ncurses terminfo termcap curses
; do
14004 if test -z "$tputs_library"; then
14006 msg
='none required'
14008 LIBS_TERMCAP
=-l$tputs_library
14010 LIBS
="$LIBS_TERMCAP $LIBS"
14012 if test "$cross_compiling" = yes; then :
14013 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14014 /* end confdefs.h. */
14016 extern void tputs (const char *, int, int (*)(int));
14017 int main (int argc, char **argv)
14020 tputs (argv[0], 0, 0);
14025 if ac_fn_c_try_link
"$LINENO"; then :
14030 rm -f core conftest.err conftest.
$ac_objext \
14031 conftest
$ac_exeext conftest.
$ac_ext
14033 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14034 /* end confdefs.h. */
14036 extern void tputs (const char *, int, int (*)(int));
14037 int main (int argc, char **argv)
14040 tputs (argv[0], 0, 0);
14045 if ac_fn_c_try_run
"$LINENO"; then :
14050 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14051 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14055 if test "X$msg" != Xno
; then
14059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5
14060 $as_echo "$msg" >&6; }
14061 if test "X$msg" = Xno
; then
14062 as_fn_error
"The required function \`tputs' was not found in any library.
14063 The following libraries were tried (in order):
14064 libtinfo, libncurses, libterminfo, libtermcap, libcurses
14065 Please try installing whichever of these libraries is most appropriate
14066 for your system, together with its header files.
14067 For example, a libncurses-dev(el) or similar package." "$LINENO" 5
14070 ## Use termcap instead of terminfo?
14071 ## Only true for: freebsd < 40000, ms-w32, msdos, netbsd < 599002500.
14073 ## FIXME? In the cases below where we unconditionally set
14074 ## LIBS_TERMCAP="-lncurses", this overrides LIBS_TERMCAP = -ltinfo,
14075 ## if that was found above to have tputs.
14076 ## Should we use the gnu* logic everywhere?
14078 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
14079 ## The ncurses library has been moved out of the System framework in
14080 ## Mac OS X 10.2. So if configure detects it, set the command-line
14081 ## option to use it.
14082 darwin
) LIBS_TERMCAP
="-lncurses" ;;
14084 gnu
*) test -z "$LIBS_TERMCAP" && LIBS_TERMCAP
="-lncurses" ;;
14087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
14088 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
14089 if test "${emacs_cv_freebsd_terminfo+set}" = set; then :
14090 $as_echo_n "(cached) " >&6
14092 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14093 /* end confdefs.h. */
14094 #include <osreldate.h>
14098 #if __FreeBSD_version < 400000
14106 if ac_fn_c_try_link
"$LINENO"; then :
14107 emacs_cv_freebsd_terminfo
=yes
14109 emacs_cv_freebsd_terminfo
=no
14111 rm -f core conftest.err conftest.
$ac_objext \
14112 conftest
$ac_exeext conftest.
$ac_ext
14116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
14117 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
14119 if test $emacs_cv_freebsd_terminfo = yes; then
14120 LIBS_TERMCAP
="-lncurses"
14123 LIBS_TERMCAP
="-ltermcap"
14128 if test "x$LIBS_TERMCAP" != "x-lterminfo"; then
14130 LIBS_TERMCAP
="-ltermcap"
14134 openbsd
) LIBS_TERMCAP
="-lncurses" ;;
14136 ## hpux: Make sure we get select from libc rather than from libcurses
14137 ## because libcurses on HPUX 10.10 has a broken version of select.
14138 ## We used to use -lc -lcurses, but this may be cleaner.
14139 ## FIXME? But TERMINFO = yes on hpux (it used to be explicitly
14140 # set that way, now it uses the default). Isn't this a contradiction?
14141 hpux
*) LIBS_TERMCAP
="-ltermcap" ;;
14145 TERMCAP_OBJ
=tparam.o
14146 if test $TERMINFO = yes; then
14148 $as_echo "#define TERMINFO 1" >>confdefs.h
14150 TERMCAP_OBJ
=terminfo.o
14156 # Do we have res_init, for detecting changes in /etc/resolv.conf?
14157 # On Darwin, res_init appears not to be useful: see bug#562 and
14158 # http://lists.gnu.org/archive/html/emacs-devel/2007-11/msg01467.html
14161 if test $opsys != darwin
; then
14163 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14164 /* end confdefs.h. */
14165 #include <netinet/in.h>
14166 #include <arpa/nameser.h>
14167 #include <resolv.h>
14176 if ac_fn_c_try_link
"$LINENO"; then :
14181 rm -f core conftest.err conftest.
$ac_objext \
14182 conftest
$ac_exeext conftest.
$ac_ext
14183 if test "$have_res_init" = no
; then
14185 LIBS
="$LIBS -lresolv"
14186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
14187 $as_echo_n "checking for res_init with -lresolv... " >&6; }
14188 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14189 /* end confdefs.h. */
14190 #include <netinet/in.h>
14191 #include <arpa/nameser.h>
14192 #include <resolv.h>
14201 if ac_fn_c_try_link
"$LINENO"; then :
14206 rm -f core conftest.err conftest.
$ac_objext \
14207 conftest
$ac_exeext conftest.
$ac_ext
14208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
14209 $as_echo "$have_res_init" >&6; }
14210 if test "$have_res_init" = yes ; then
14216 if test "$have_res_init" = yes; then
14218 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
14222 # Do we need the Hesiod library to provide the support routines?
14224 if test "$with_hesiod" != no
; then
14225 # Don't set $LIBS here -- see comments above. FIXME which comments?
14226 ac_fn_c_check_func
"$LINENO" "res_send" "ac_cv_func_res_send"
14227 if test "x$ac_cv_func_res_send" = x
""yes; then :
14230 ac_fn_c_check_func
"$LINENO" "__res_send" "ac_cv_func___res_send"
14231 if test "x$ac_cv_func___res_send" = x
""yes; then :
14234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
14235 $as_echo_n "checking for res_send in -lresolv... " >&6; }
14236 if test "${ac_cv_lib_resolv_res_send+set}" = set; then :
14237 $as_echo_n "(cached) " >&6
14239 ac_check_lib_save_LIBS
=$LIBS
14240 LIBS
="-lresolv $LIBS"
14241 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14242 /* end confdefs.h. */
14244 /* Override any GCC internal prototype to avoid an error.
14245 Use char because int might match the return type of a GCC
14246 builtin and then its argument prototype would still apply. */
14254 return res_send ();
14259 if ac_fn_c_try_link
"$LINENO"; then :
14260 ac_cv_lib_resolv_res_send
=yes
14262 ac_cv_lib_resolv_res_send
=no
14264 rm -f core conftest.err conftest.
$ac_objext \
14265 conftest
$ac_exeext conftest.
$ac_ext
14266 LIBS
=$ac_check_lib_save_LIBS
14268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
14269 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
14270 if test "x$ac_cv_lib_resolv_res_send" = x
""yes; then :
14273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
14274 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
14275 if test "${ac_cv_lib_resolv___res_send+set}" = set; then :
14276 $as_echo_n "(cached) " >&6
14278 ac_check_lib_save_LIBS
=$LIBS
14279 LIBS
="-lresolv $LIBS"
14280 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14281 /* end confdefs.h. */
14283 /* Override any GCC internal prototype to avoid an error.
14284 Use char because int might match the return type of a GCC
14285 builtin and then its argument prototype would still apply. */
14289 char __res_send ();
14293 return __res_send ();
14298 if ac_fn_c_try_link
"$LINENO"; then :
14299 ac_cv_lib_resolv___res_send
=yes
14301 ac_cv_lib_resolv___res_send
=no
14303 rm -f core conftest.err conftest.
$ac_objext \
14304 conftest
$ac_exeext conftest.
$ac_ext
14305 LIBS
=$ac_check_lib_save_LIBS
14307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
14308 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
14309 if test "x$ac_cv_lib_resolv___res_send" = x
""yes; then :
14319 if test "$resolv" = yes ; then
14324 ac_fn_c_check_func
"$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
14325 if test "x$ac_cv_func_hes_getmailhost" = x
""yes; then :
14328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
14329 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
14330 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then :
14331 $as_echo_n "(cached) " >&6
14333 ac_check_lib_save_LIBS
=$LIBS
14334 LIBS
="-lhesiod $RESOLVLIB $LIBS"
14335 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14336 /* end confdefs.h. */
14338 /* Override any GCC internal prototype to avoid an error.
14339 Use char because int might match the return type of a GCC
14340 builtin and then its argument prototype would still apply. */
14344 char hes_getmailhost ();
14348 return hes_getmailhost ();
14353 if ac_fn_c_try_link
"$LINENO"; then :
14354 ac_cv_lib_hesiod_hes_getmailhost
=yes
14356 ac_cv_lib_hesiod_hes_getmailhost
=no
14358 rm -f core conftest.err conftest.
$ac_objext \
14359 conftest
$ac_exeext conftest.
$ac_ext
14360 LIBS
=$ac_check_lib_save_LIBS
14362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
14363 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
14364 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x
""yes; then :
14373 if test x
"$hesiod" = xyes
; then
14375 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
14382 # Do we need libresolv (due to res_init or Hesiod)?
14383 if test "$resolv" = yes && test $opsys != darwin
; then
14385 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
14393 # These tell us which Kerberos-related libraries to use.
14400 if test "${with_kerberos}" != no
; then
14401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
14402 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
14403 if test "${ac_cv_lib_com_err_com_err+set}" = set; then :
14404 $as_echo_n "(cached) " >&6
14406 ac_check_lib_save_LIBS
=$LIBS
14407 LIBS
="-lcom_err $LIBS"
14408 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14409 /* end confdefs.h. */
14411 /* Override any GCC internal prototype to avoid an error.
14412 Use char because int might match the return type of a GCC
14413 builtin and then its argument prototype would still apply. */
14426 if ac_fn_c_try_link
"$LINENO"; then :
14427 ac_cv_lib_com_err_com_err
=yes
14429 ac_cv_lib_com_err_com_err
=no
14431 rm -f core conftest.err conftest.
$ac_objext \
14432 conftest
$ac_exeext conftest.
$ac_ext
14433 LIBS
=$ac_check_lib_save_LIBS
14435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
14436 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
14437 if test "x$ac_cv_lib_com_err_com_err" = x
""yes; then :
14443 if test $have_com_err = yes; then
14444 COM_ERRLIB
=-lcom_err
14445 LIBS
="$COM_ERRLIB $LIBS"
14447 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
14450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
14451 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
14452 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then :
14453 $as_echo_n "(cached) " >&6
14455 ac_check_lib_save_LIBS
=$LIBS
14456 LIBS
="-lcrypto $LIBS"
14457 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14458 /* end confdefs.h. */
14460 /* Override any GCC internal prototype to avoid an error.
14461 Use char because int might match the return type of a GCC
14462 builtin and then its argument prototype would still apply. */
14466 char mit_des_cbc_encrypt ();
14470 return mit_des_cbc_encrypt ();
14475 if ac_fn_c_try_link
"$LINENO"; then :
14476 ac_cv_lib_crypto_mit_des_cbc_encrypt
=yes
14478 ac_cv_lib_crypto_mit_des_cbc_encrypt
=no
14480 rm -f core conftest.err conftest.
$ac_objext \
14481 conftest
$ac_exeext conftest.
$ac_ext
14482 LIBS
=$ac_check_lib_save_LIBS
14484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
14485 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
14486 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x
""yes; then :
14492 if test $have_crypto = yes; then
14494 LIBS
="$CRYPTOLIB $LIBS"
14496 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
14499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
14500 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
14501 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then :
14502 $as_echo_n "(cached) " >&6
14504 ac_check_lib_save_LIBS
=$LIBS
14505 LIBS
="-lk5crypto $LIBS"
14506 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14507 /* end confdefs.h. */
14509 /* Override any GCC internal prototype to avoid an error.
14510 Use char because int might match the return type of a GCC
14511 builtin and then its argument prototype would still apply. */
14515 char mit_des_cbc_encrypt ();
14519 return mit_des_cbc_encrypt ();
14524 if ac_fn_c_try_link
"$LINENO"; then :
14525 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=yes
14527 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=no
14529 rm -f core conftest.err conftest.
$ac_objext \
14530 conftest
$ac_exeext conftest.
$ac_ext
14531 LIBS
=$ac_check_lib_save_LIBS
14533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
14534 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
14535 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x
""yes; then :
14541 if test $have_k5crypto = yes; then
14542 CRYPTOLIB
=-lk5crypto
14543 LIBS
="$CRYPTOLIB $LIBS"
14545 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
14548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
14549 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
14550 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then :
14551 $as_echo_n "(cached) " >&6
14553 ac_check_lib_save_LIBS
=$LIBS
14554 LIBS
="-lkrb5 $LIBS"
14555 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14556 /* end confdefs.h. */
14558 /* Override any GCC internal prototype to avoid an error.
14559 Use char because int might match the return type of a GCC
14560 builtin and then its argument prototype would still apply. */
14564 char krb5_init_context ();
14568 return krb5_init_context ();
14573 if ac_fn_c_try_link
"$LINENO"; then :
14574 ac_cv_lib_krb5_krb5_init_context
=yes
14576 ac_cv_lib_krb5_krb5_init_context
=no
14578 rm -f core conftest.err conftest.
$ac_objext \
14579 conftest
$ac_exeext conftest.
$ac_ext
14580 LIBS
=$ac_check_lib_save_LIBS
14582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
14583 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
14584 if test "x$ac_cv_lib_krb5_krb5_init_context" = x
""yes; then :
14590 if test $have_krb5=yes; then
14592 LIBS
="$KRB5LIB $LIBS"
14594 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
14597 if test "${with_kerberos5}" = no
; then
14598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
14599 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
14600 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
14601 $as_echo_n "(cached) " >&6
14603 ac_check_lib_save_LIBS
=$LIBS
14604 LIBS
="-ldes425 $LIBS"
14605 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14606 /* end confdefs.h. */
14608 /* Override any GCC internal prototype to avoid an error.
14609 Use char because int might match the return type of a GCC
14610 builtin and then its argument prototype would still apply. */
14614 char des_cbc_encrypt ();
14618 return des_cbc_encrypt ();
14623 if ac_fn_c_try_link
"$LINENO"; then :
14624 ac_cv_lib_des425_des_cbc_encrypt
=yes
14626 ac_cv_lib_des425_des_cbc_encrypt
=no
14628 rm -f core conftest.err conftest.
$ac_objext \
14629 conftest
$ac_exeext conftest.
$ac_ext
14630 LIBS
=$ac_check_lib_save_LIBS
14632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
14633 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
14634 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x
""yes; then :
14640 if test $have_des425 = yes; then
14642 LIBS
="$DESLIB $LIBS"
14644 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
14647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
14648 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
14649 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
14650 $as_echo_n "(cached) " >&6
14652 ac_check_lib_save_LIBS
=$LIBS
14654 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14655 /* end confdefs.h. */
14657 /* Override any GCC internal prototype to avoid an error.
14658 Use char because int might match the return type of a GCC
14659 builtin and then its argument prototype would still apply. */
14663 char des_cbc_encrypt ();
14667 return des_cbc_encrypt ();
14672 if ac_fn_c_try_link
"$LINENO"; then :
14673 ac_cv_lib_des_des_cbc_encrypt
=yes
14675 ac_cv_lib_des_des_cbc_encrypt
=no
14677 rm -f core conftest.err conftest.
$ac_objext \
14678 conftest
$ac_exeext conftest.
$ac_ext
14679 LIBS
=$ac_check_lib_save_LIBS
14681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
14682 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
14683 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x
""yes; then :
14689 if test $have_des = yes; then
14691 LIBS
="$DESLIB $LIBS"
14693 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
14697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
14698 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
14699 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then :
14700 $as_echo_n "(cached) " >&6
14702 ac_check_lib_save_LIBS
=$LIBS
14703 LIBS
="-lkrb4 $LIBS"
14704 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14705 /* end confdefs.h. */
14707 /* Override any GCC internal prototype to avoid an error.
14708 Use char because int might match the return type of a GCC
14709 builtin and then its argument prototype would still apply. */
14713 char krb_get_cred ();
14717 return krb_get_cred ();
14722 if ac_fn_c_try_link
"$LINENO"; then :
14723 ac_cv_lib_krb4_krb_get_cred
=yes
14725 ac_cv_lib_krb4_krb_get_cred
=no
14727 rm -f core conftest.err conftest.
$ac_objext \
14728 conftest
$ac_exeext conftest.
$ac_ext
14729 LIBS
=$ac_check_lib_save_LIBS
14731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
14732 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
14733 if test "x$ac_cv_lib_krb4_krb_get_cred" = x
""yes; then :
14739 if test $have_krb4 = yes; then
14741 LIBS
="$KRB4LIB $LIBS"
14743 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
14746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
14747 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
14748 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then :
14749 $as_echo_n "(cached) " >&6
14751 ac_check_lib_save_LIBS
=$LIBS
14753 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14754 /* end confdefs.h. */
14756 /* Override any GCC internal prototype to avoid an error.
14757 Use char because int might match the return type of a GCC
14758 builtin and then its argument prototype would still apply. */
14762 char krb_get_cred ();
14766 return krb_get_cred ();
14771 if ac_fn_c_try_link
"$LINENO"; then :
14772 ac_cv_lib_krb_krb_get_cred
=yes
14774 ac_cv_lib_krb_krb_get_cred
=no
14776 rm -f core conftest.err conftest.
$ac_objext \
14777 conftest
$ac_exeext conftest.
$ac_ext
14778 LIBS
=$ac_check_lib_save_LIBS
14780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
14781 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
14782 if test "x$ac_cv_lib_krb_krb_get_cred" = x
""yes; then :
14788 if test $have_krb = yes; then
14790 LIBS
="$KRB4LIB $LIBS"
14792 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
14798 if test "${with_kerberos5}" != no
; then
14799 for ac_header
in krb5.h
14801 ac_fn_c_check_header_mongrel
"$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
14802 if test "x$ac_cv_header_krb5_h" = x
""yes; then :
14803 cat >>confdefs.h
<<_ACEOF
14804 #define HAVE_KRB5_H 1
14806 ac_fn_c_check_member
"$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
14808 if test "x$ac_cv_member_krb5_error_text" = x
""yes; then :
14810 cat >>confdefs.h
<<_ACEOF
14811 #define HAVE_KRB5_ERROR_TEXT 1
14816 ac_fn_c_check_member
"$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
14818 if test "x$ac_cv_member_krb5_error_e_text" = x
""yes; then :
14820 cat >>confdefs.h
<<_ACEOF
14821 #define HAVE_KRB5_ERROR_E_TEXT 1
14832 for ac_header
in des.h
14834 ac_fn_c_check_header_mongrel
"$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
14835 if test "x$ac_cv_header_des_h" = x
""yes; then :
14836 cat >>confdefs.h
<<_ACEOF
14837 #define HAVE_DES_H 1
14841 for ac_header
in kerberosIV
/des.h
14843 ac_fn_c_check_header_mongrel
"$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
14844 if test "x$ac_cv_header_kerberosIV_des_h" = x
""yes; then :
14845 cat >>confdefs.h
<<_ACEOF
14846 #define HAVE_KERBEROSIV_DES_H 1
14850 for ac_header
in kerberos
/des.h
14852 ac_fn_c_check_header_mongrel
"$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
14853 if test "x$ac_cv_header_kerberos_des_h" = x
""yes; then :
14854 cat >>confdefs.h
<<_ACEOF
14855 #define HAVE_KERBEROS_DES_H 1
14870 for ac_header
in krb.h
14872 ac_fn_c_check_header_mongrel
"$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
14873 if test "x$ac_cv_header_krb_h" = x
""yes; then :
14874 cat >>confdefs.h
<<_ACEOF
14875 #define HAVE_KRB_H 1
14879 for ac_header
in kerberosIV
/krb.h
14881 ac_fn_c_check_header_mongrel
"$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
14882 if test "x$ac_cv_header_kerberosIV_krb_h" = x
""yes; then :
14883 cat >>confdefs.h
<<_ACEOF
14884 #define HAVE_KERBEROSIV_KRB_H 1
14888 for ac_header
in kerberos
/krb.h
14890 ac_fn_c_check_header_mongrel
"$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
14891 if test "x$ac_cv_header_kerberos_krb_h" = x
""yes; then :
14892 cat >>confdefs.h
<<_ACEOF
14893 #define HAVE_KERBEROS_KRB_H 1
14909 for ac_header
in com_err.h
14911 ac_fn_c_check_header_mongrel
"$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
14912 if test "x$ac_cv_header_com_err_h" = x
""yes; then :
14913 cat >>confdefs.h
<<_ACEOF
14914 #define HAVE_COM_ERR_H 1
14932 for ac_func
in $ac_func_list
14934 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14935 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
14936 eval as_val
=\$
$as_ac_var
14937 if test "x$as_val" = x
""yes; then :
14938 cat >>confdefs.h
<<_ACEOF
14939 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
14949 $as_echo_n "checking whether localtime caches TZ... " >&6; }
14950 if test "${emacs_cv_localtime_cache+set}" = set; then :
14951 $as_echo_n "(cached) " >&6
14953 if test x
$ac_cv_func_tzset = xyes
; then
14954 if test "$cross_compiling" = yes; then :
14955 # If we have tzset, assume the worst when cross-compiling.
14956 emacs_cv_localtime_cache
=yes
14958 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14959 /* end confdefs.h. */
14961 char TZ_GMT0[] = "TZ=GMT0";
14962 char TZ_PST8[] = "TZ=PST8";
14965 time_t now = time ((time_t *) 0);
14966 int hour_GMT0, hour_unset;
14967 if (putenv (TZ_GMT0) != 0)
14969 hour_GMT0 = localtime (&now)->tm_hour;
14971 hour_unset = localtime (&now)->tm_hour;
14972 if (putenv (TZ_PST8) != 0)
14974 if (localtime (&now)->tm_hour == hour_GMT0)
14977 if (localtime (&now)->tm_hour != hour_unset)
14982 if ac_fn_c_try_run
"$LINENO"; then :
14983 emacs_cv_localtime_cache
=no
14985 emacs_cv_localtime_cache
=yes
14987 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14988 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14992 # If we lack tzset, report that localtime does not cache TZ,
14993 # since we can't invalidate the cache if we don't have tzset.
14994 emacs_cv_localtime_cache
=no
14997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
14998 $as_echo "$emacs_cv_localtime_cache" >&6; }
14999 if test $emacs_cv_localtime_cache = yes; then
15001 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
15006 ac_fn_c_check_func
"$LINENO" "socket" "ac_cv_func_socket"
15007 if test "x$ac_cv_func_socket" = x
""yes; then :
15013 if test $ok_so_far = yes; then
15014 ac_fn_c_check_header_mongrel
"$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
15015 if test "x$ac_cv_header_netinet_in_h" = x
""yes; then :
15023 if test $ok_so_far = yes; then
15024 ac_fn_c_check_header_mongrel
"$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
15025 if test "x$ac_cv_header_arpa_inet_h" = x
""yes; then :
15033 if test $ok_so_far = yes; then
15035 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
15039 if test -f /usr
/lpp
/X11
/bin
/smt.exp
; then
15041 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
15045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
15046 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
15047 if test -d /dev
/pts
&& ls -d /dev
/ptmx
> /dev
/null
2>&1 ; then
15048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15049 $as_echo "yes" >&6; }
15051 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
15054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15055 $as_echo "no" >&6; }
15059 *-solaris2.4 |
*-solaris2.4.
*)
15060 : ${ac_cv_func_vfork_works=no};;
15063 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
15064 if test "x$ac_cv_type_pid_t" = x
""yes; then :
15068 cat >>confdefs.h
<<_ACEOF
15074 for ac_header
in vfork.h
15076 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
15077 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
15078 cat >>confdefs.h
<<_ACEOF
15079 #define HAVE_VFORK_H 1
15086 for ac_func
in fork vfork
15088 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15089 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
15090 eval as_val
=\$
$as_ac_var
15091 if test "x$as_val" = x
""yes; then :
15092 cat >>confdefs.h
<<_ACEOF
15093 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15099 if test "x$ac_cv_func_fork" = xyes
; then
15100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
15101 $as_echo_n "checking for working fork... " >&6; }
15102 if test "${ac_cv_func_fork_works+set}" = set; then :
15103 $as_echo_n "(cached) " >&6
15105 if test "$cross_compiling" = yes; then :
15106 ac_cv_func_fork_works
=cross
15108 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15109 /* end confdefs.h. */
15110 $ac_includes_default
15115 /* By Ruediger Kuhlmann. */
15116 return fork () < 0;
15122 if ac_fn_c_try_run
"$LINENO"; then :
15123 ac_cv_func_fork_works
=yes
15125 ac_cv_func_fork_works
=no
15127 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15128 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
15133 $as_echo "$ac_cv_func_fork_works" >&6; }
15136 ac_cv_func_fork_works
=$ac_cv_func_fork
15138 if test "x$ac_cv_func_fork_works" = xcross
; then
15140 *-*-amigaos* |
*-*-msdosdjgpp*)
15141 # Override, as these systems have only a dummy fork() stub
15142 ac_cv_func_fork_works
=no
15145 ac_cv_func_fork_works
=yes
15148 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
15149 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
15151 ac_cv_func_vfork_works
=$ac_cv_func_vfork
15152 if test "x$ac_cv_func_vfork" = xyes
; then
15153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
15154 $as_echo_n "checking for working vfork... " >&6; }
15155 if test "${ac_cv_func_vfork_works+set}" = set; then :
15156 $as_echo_n "(cached) " >&6
15158 if test "$cross_compiling" = yes; then :
15159 ac_cv_func_vfork_works
=cross
15161 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15162 /* end confdefs.h. */
15163 /* Thanks to Paul Eggert for this test. */
15164 $ac_includes_default
15165 #include <sys/wait.h>
15166 #ifdef HAVE_VFORK_H
15167 # include <vfork.h>
15169 /* On some sparc systems, changes by the child to local and incoming
15170 argument registers are propagated back to the parent. The compiler
15171 is told about this with #include <vfork.h>, but some compilers
15172 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
15173 static variable whose address is put into a register that is
15174 clobbered by the vfork. */
15177 sparc_address_test (int arg)
15179 sparc_address_test (arg) int arg;
15182 static pid_t child;
15200 pid_t parent = getpid ();
15203 sparc_address_test (0);
15208 /* Here is another test for sparc vfork register problems. This
15209 test uses lots of local variables, at least as many local
15210 variables as main has allocated so far including compiler
15211 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
15212 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
15213 reuse the register of parent for one of the local variables,
15214 since it will think that parent can't possibly be used any more
15215 in this routine. Assigning to the local variable will thus
15216 munge parent in the parent process. */
15218 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
15219 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
15220 /* Convince the compiler that p..p7 are live; otherwise, it might
15221 use the same hardware register for all 8 local variables. */
15222 if (p != p1 || p != p2 || p != p3 || p != p4
15223 || p != p5 || p != p6 || p != p7)
15226 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
15227 from child file descriptors. If the child closes a descriptor
15228 before it execs or exits, this munges the parent's descriptor
15229 as well. Test for this by closing stdout in the child. */
15230 _exit(close(fileno(stdout)) != 0);
15235 while (wait(&status) != child)
15238 /* Was there some problem with vforking? */
15241 /* Did the child fail? (This shouldn't happen.) */
15244 /* Did the vfork/compiler bug occur? */
15245 || parent != getpid()
15247 /* Did the file descriptor bug occur? */
15248 || fstat(fileno(stdout), &st) != 0
15253 if ac_fn_c_try_run
"$LINENO"; then :
15254 ac_cv_func_vfork_works
=yes
15256 ac_cv_func_vfork_works
=no
15258 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15259 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
15264 $as_echo "$ac_cv_func_vfork_works" >&6; }
15267 if test "x$ac_cv_func_fork_works" = xcross
; then
15268 ac_cv_func_vfork_works
=$ac_cv_func_vfork
15269 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
15270 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
15273 if test "x$ac_cv_func_vfork_works" = xyes
; then
15275 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
15279 $as_echo "#define vfork fork" >>confdefs.h
15282 if test "x$ac_cv_func_fork_works" = xyes
; then
15284 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
15289 for ac_func
in snprintf
15291 ac_fn_c_check_func
"$LINENO" "snprintf" "ac_cv_func_snprintf"
15292 if test "x$ac_cv_func_snprintf" = x
""yes; then :
15293 cat >>confdefs.h
<<_ACEOF
15294 #define HAVE_SNPRINTF 1
15301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
15302 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
15303 if test "${emacs_cv_langinfo_codeset+set}" = set; then :
15304 $as_echo_n "(cached) " >&6
15306 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15307 /* end confdefs.h. */
15308 #include <langinfo.h>
15312 char* cs = nl_langinfo(CODESET);
15317 if ac_fn_c_try_link
"$LINENO"; then :
15318 emacs_cv_langinfo_codeset
=yes
15320 emacs_cv_langinfo_codeset
=no
15322 rm -f core conftest.err conftest.
$ac_objext \
15323 conftest
$ac_exeext conftest.
$ac_ext
15326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
15327 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
15328 if test $emacs_cv_langinfo_codeset = yes; then
15330 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
15334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
15335 $as_echo_n "checking for mbstate_t... " >&6; }
15336 if test "${ac_cv_type_mbstate_t+set}" = set; then :
15337 $as_echo_n "(cached) " >&6
15339 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15340 /* end confdefs.h. */
15341 $ac_includes_default
15342 # include <wchar.h>
15346 mbstate_t x; return sizeof x;
15351 if ac_fn_c_try_compile
"$LINENO"; then :
15352 ac_cv_type_mbstate_t
=yes
15354 ac_cv_type_mbstate_t
=no
15356 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
15359 $as_echo "$ac_cv_type_mbstate_t" >&6; }
15360 if test $ac_cv_type_mbstate_t = yes; then
15362 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
15366 $as_echo "#define mbstate_t int" >>confdefs.h
15370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
15371 $as_echo_n "checking for C restricted array declarations... " >&6; }
15372 if test "${emacs_cv_c_restrict_arr+set}" = set; then :
15373 $as_echo_n "(cached) " >&6
15375 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15376 /* end confdefs.h. */
15377 void fred (int x[__restrict]);
15386 if ac_fn_c_try_compile
"$LINENO"; then :
15387 emacs_cv_c_restrict_arr
=yes
15389 emacs_cv_c_restrict_arr
=no
15391 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
15394 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
15395 if test "$emacs_cv_c_restrict_arr" = yes; then
15397 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
15403 $as_echo "#define AMPERSAND_FULL_NAME 1" >>confdefs.h
15407 $as_echo "#define CLASH_DETECTION 1" >>confdefs.h
15410 ## Note: PTYs are broken on darwin <6. Use at your own risk.
15412 $as_echo "#define HAVE_PTYS 1" >>confdefs.h
15416 $as_echo "#define HAVE_SOCKETS 1" >>confdefs.h
15422 $as_echo "#define NULL_DEVICE \"/dev/null\"" >>confdefs.h
15426 $as_echo "#define SEPCHAR ':'" >>confdefs.h
15430 $as_echo "#define subprocesses 1" >>confdefs.h
15434 $as_echo "#define USER_FULL_NAME pw->pw_gecos" >>confdefs.h
15439 $as_echo "#define DIRECTORY_SEP '/'" >>confdefs.h
15445 $as_echo "#define IS_DEVICE_SEP(_c_) 0" >>confdefs.h
15449 $as_echo "#define IS_DIRECTORY_SEP(_c_) ((_c_) == DIRECTORY_SEP)" >>confdefs.h
15453 $as_echo "#define IS_ANY_SEP(_c_) (IS_DIRECTORY_SEP (_c_))" >>confdefs.h
15461 if test x
$ac_cv_lib_Xmu_XmuConvertStandardSelection != xyes
; then
15462 $as_echo "#define NO_EDITRES 1" >>confdefs.h
15468 $as_echo "#define NO_EDITRES 1" >>confdefs.h
15475 irix6-5 | sol2
* | unixware
)
15477 $as_echo "#define NSIG_MINIMUM 32" >>confdefs.h
15482 emacs_broken_SIGIO
=no
15485 hpux
* | irix6-5 | openbsd | sol2
* | unixware
)
15486 emacs_broken_SIGIO
=yes
15491 $as_echo "#define BROKEN_GET_CURRENT_DIR_NAME 1" >>confdefs.h
15497 $as_echo "#define BROKEN_PTY_READ_AFTER_EAGAIN 1" >>confdefs.h
15505 $as_echo "#define HAVE_PROCFS 1" >>confdefs.h
15511 darwin | freebsd | netbsd | openbsd
)
15513 $as_echo "#define DONT_REOPEN_PTY 1" >>confdefs.h
15519 netbsd | openbsd
) sound_device
="/dev/audio" ;;
15520 *) sound_device
="/dev/dsp" ;;
15524 cat >>confdefs.h
<<_ACEOF
15525 #define DEFAULT_SOUND_DEVICE "$sound_device"
15531 darwin | gnu-linux | gnu-kfreebsd
)
15533 $as_echo "#define INTERRUPT_INPUT 1" >>confdefs.h
15540 cygwin|gnu|gnu-linux|gnu-kfreebsd|irix6-5|freebsd|netbsd|openbsd
)
15542 $as_echo "#define NARROWPROTO 1" >>confdefs.h
15556 $as_echo "#define PTY_ITERATION int c; for (c = 0; !c ; c++)" >>confdefs.h
15558 $as_echo "#define PTY_NAME_SPRINTF strcpy (pty_name, \"/dev/ptc\");" >>confdefs.h
15560 $as_echo "#define PTY_TTY_NAME_SPRINTF strcpy (pty_name, ttyname (fd));" >>confdefs.h
15565 $as_echo "#define PTY_ITERATION int i; for (i = 0; i < 1; i++)" >>confdefs.h
15567 $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
15569 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
15571 $as_echo "#define PTY_TTY_NAME_SPRINTF /**/" >>confdefs.h
15576 $as_echo "#define PTY_ITERATION int i; for (i = 0; i < 1; i++)" >>confdefs.h
15578 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
15580 $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
15582 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
15584 $as_echo "#define PTY_TTY_NAME_SPRINTF /**/" >>confdefs.h
15589 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
15593 gnu-linux | gnu-kfreebsd | freebsd | netbsd
)
15594 if test "x$ac_cv_func_grantpt" = xyes
; then
15596 $as_echo "#define UNIX98_PTYS 1" >>confdefs.h
15598 $as_echo "#define PTY_ITERATION int i; for (i = 0; i < 1; i++)" >>confdefs.h
15600 $as_echo "#define PTY_TTY_NAME_SPRINTF { char *ptyname = 0; sigset_t blocked; sigemptyset (&blocked); sigaddset (&blocked, SIGCHLD); pthread_sigmask (SIG_BLOCK, &blocked, 0); if (grantpt (fd) != -1 && unlockpt (fd) != -1) ptyname = ptsname(fd); pthread_sigmask (SIG_UNBLOCK, &blocked, 0); if (!ptyname) { close (fd); return -1; } snprintf (pty_name, sizeof pty_name, \"%s\", ptyname); }" >>confdefs.h
15602 if test "x$ac_cv_func_posix_openpt" = xyes
; then
15603 $as_echo "#define PTY_OPEN fd = posix_openpt (O_RDWR | O_NOCTTY)" >>confdefs.h
15605 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
15607 elif test "x$ac_cv_func_getpt" = xyes
; then
15608 $as_echo "#define PTY_OPEN fd = getpt ()" >>confdefs.h
15610 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
15613 $as_echo "#define PTY_NAME_SPRINTF strcpy (pty_name, \"/dev/ptmx\");" >>confdefs.h
15617 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
15623 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
15625 $as_echo "#define PTY_NAME_SPRINTF sprintf (pty_name, \"/dev/ptym/pty%c%x\", c, i);" >>confdefs.h
15627 $as_echo "#define PTY_TTY_NAME_SPRINTF sprintf (pty_name, \"/dev/pty/tty%c%x\", c, i);" >>confdefs.h
15632 $as_echo "#define PTY_ITERATION /**/" >>confdefs.h
15634 $as_echo "#define FIRST_PTY_LETTER 'q'" >>confdefs.h
15636 $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
15638 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
15640 $as_echo "#define PTY_TTY_NAME_SPRINTF /**/" >>confdefs.h
15645 $as_echo "#define PTY_TTY_NAME_SPRINTF { char *ptsname (int), *ptyname; int grantpt_result; sigset_t blocked; sigemptyset (&blocked); sigaddset (&blocked, SIGCHLD); pthread_sigmask (SIG_BLOCK, &blocked, 0); grantpt_result = grantpt (fd); pthread_sigmask (SIG_UNBLOCK, &blocked, 0); if (grantpt_result == -1 || unlockpt (fd) == -1 || !(ptyname = ptsname (fd))) { emacs_close (fd); return -1; } snprintf (pty_name, sizeof pty_name, \"%s\", ptyname); }" >>confdefs.h
15650 $as_echo "#define PTY_TTY_NAME_SPRINTF { char *ptsname (int), *ptyname; int grantpt_result; sigset_t blocked; sigemptyset (&blocked); sigaddset (&blocked, SIGCHLD); pthread_sigmask (SIG_BLOCK, &blocked, 0); grantpt_result = grantpt (fd); pthread_sigmask (SIG_UNBLOCK, &blocked, 0); if (grantpt_result == -1) fatal(\"could not grant slave pty\"); if (unlockpt(fd) == -1) fatal(\"could not unlock slave pty\"); if (!(ptyname = ptsname(fd))) fatal (\"could not enable slave pty\"); snprintf (pty_name, sizeof pty_name, \"%s\", ptyname); }" >>confdefs.h
15658 $as_echo "#define FIRST_PTY_LETTER 'z'" >>confdefs.h
15660 $as_echo "#define PTY_NAME_SPRINTF strcpy (pty_name, \"/dev/ptmx\");" >>confdefs.h
15663 $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
15672 aix4-2 | cygwin | gnu | irix6-5 | freebsd | netbsd | openbsd | darwin
)
15673 $as_echo "#define SIGNALS_VIA_CHARACTERS 1" >>confdefs.h
15677 gnu-linux | gnu-kfreebsd
)
15679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signals via characters" >&5
15680 $as_echo_n "checking for signals via characters... " >&6; }
15681 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15682 /* end confdefs.h. */
15684 #include <linux/version.h>
15685 #if LINUX_VERSION_CODE < 0x20400
15686 # error "Linux version too old"
15697 if ac_fn_c_try_cpp
"$LINENO"; then :
15698 emacs_signals_via_chars
=yes
15700 emacs_signals_via_chars
=no
15702 rm -f conftest.err conftest.
$ac_ext
15704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_signals_via_chars" >&5
15705 $as_echo "$emacs_signals_via_chars" >&6; }
15706 test $emacs_signals_via_chars = yes && $as_echo "#define SIGNALS_VIA_CHARACTERS 1" >>confdefs.h
15716 $as_echo "#define DATA_SEG_BITS 0x20000000" >>confdefs.h
15720 $as_echo "#define DATA_SEG_BITS 0x40000000" >>confdefs.h
15724 $as_echo "#define DATA_SEG_BITS 0x10000000" >>confdefs.h
15733 darwin
) $as_echo "#define TAB3 OXTABS" >>confdefs.h
15736 gnu | freebsd | netbsd | openbsd
)
15738 $as_echo "#define TABDLY OXTABS" >>confdefs.h
15740 $as_echo "#define TAB3 OXTABS" >>confdefs.h
15744 gnu-linux | gnu-kfreebsd
)
15745 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15746 /* end confdefs.h. */
15760 if ac_fn_c_try_cpp
"$LINENO"; then :
15762 $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
15765 rm -f conftest.err conftest.
$ac_ext
15770 $as_echo "#define RUN_TIME_REMAP 1" >>confdefs.h
15780 gnu-linux | gnu-kfreebsd
)
15781 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15782 /* end confdefs.h. */
15784 #if defined __i386__ || defined __sparc__ || defined __mc68000__ \
15785 || defined __alpha__ || defined __mips__ || defined __s390__ \
15786 || defined __arm__ || defined __powerpc__ || defined __amd64__ \
15787 || defined __ia64__ || defined __sh__
15790 # error "setjmp not known to work on this arch"
15801 if ac_fn_c_try_cpp
"$LINENO"; then :
15802 $as_echo "#define GC_SETJMP_WORKS 1" >>confdefs.h
15805 rm -f conftest.err conftest.
$ac_ext
15810 if test x
$GCC = xyes
; then
15811 $as_echo "#define GC_SETJMP_WORKS 1" >>confdefs.h
15815 freebsd | netbsd | openbsd | irix6-5 | sol2
* )
15816 $as_echo "#define GC_SETJMP_WORKS 1" >>confdefs.h
15821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _setjmp" >&5
15822 $as_echo_n "checking for _setjmp... " >&6; }
15823 if test "${emacs_cv_func__setjmp+set}" = set; then :
15824 $as_echo_n "(cached) " >&6
15826 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15827 /* end confdefs.h. */
15828 #include <setjmp.h>
15840 if ac_fn_c_try_link
"$LINENO"; then :
15841 emacs_cv_func__setjmp
=yes
15843 emacs_cv_func__setjmp
=no
15845 rm -f core conftest.err conftest.
$ac_objext \
15846 conftest
$ac_exeext conftest.
$ac_ext
15848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func__setjmp" >&5
15849 $as_echo "$emacs_cv_func__setjmp" >&6; }
15850 if test $emacs_cv_func__setjmp = yes; then
15852 $as_echo "#define HAVE__SETJMP 1" >>confdefs.h
15855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
15856 $as_echo_n "checking for sigsetjmp... " >&6; }
15857 if test "${emacs_cv_func_sigsetjmp+set}" = set; then :
15858 $as_echo_n "(cached) " >&6
15860 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15861 /* end confdefs.h. */
15862 #include <setjmp.h>
15868 if (! sigsetjmp (j, 1))
15874 if ac_fn_c_try_link
"$LINENO"; then :
15875 emacs_cv_func_sigsetjmp
=yes
15877 emacs_cv_func_sigsetjmp
=no
15879 rm -f core conftest.err conftest.
$ac_objext \
15880 conftest
$ac_exeext conftest.
$ac_ext
15882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func_sigsetjmp" >&5
15883 $as_echo "$emacs_cv_func_sigsetjmp" >&6; }
15884 if test $emacs_cv_func_sigsetjmp = yes; then
15886 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
15894 $as_echo "#define TIOCSIGSEND TIOCSIGNAL" >>confdefs.h
15903 $as_echo "#define XOS_NEEDS_TIME_H 1" >>confdefs.h
15918 $as_echo "#define USG /**/" >>confdefs.h
15920 $as_echo "#define USG5 /**/" >>confdefs.h
15922 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15923 /* end confdefs.h. */
15926 # error "_AIX not defined"
15937 if ac_fn_c_try_cpp
"$LINENO"; then :
15941 $as_echo "#define _AIX /**/" >>confdefs.h
15944 rm -f conftest.err conftest.
$ac_ext
15949 $as_echo "#define CYGWIN 1" >>confdefs.h
15954 $as_echo "#define BSD_SYSTEM /**/" >>confdefs.h
15957 $as_echo "#define DARWIN_OS /**/" >>confdefs.h
15963 $as_echo "#define BSD_SYSTEM_AHB 1" >>confdefs.h
15967 gnu | netbsd | openbsd
)
15968 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15969 /* end confdefs.h. */
15972 # error "BSD_SYSTEM not defined"
15983 if ac_fn_c_try_cpp
"$LINENO"; then :
15986 $as_echo "#define BSD_SYSTEM 43" >>confdefs.h
15989 rm -f conftest.err conftest.
$ac_ext
15992 gnu-linux | gnu-kfreebsd
)
15993 $as_echo "#define USG /**/" >>confdefs.h
15996 $as_echo "#define GNU_LINUX /**/" >>confdefs.h
16001 $as_echo "#define USG /**/" >>confdefs.h
16003 $as_echo "#define USG5 /**/" >>confdefs.h
16006 $as_echo "#define HPUX /**/" >>confdefs.h
16011 $as_echo "#define USG /**/" >>confdefs.h
16013 $as_echo "#define USG5 /**/" >>confdefs.h
16015 $as_echo "#define USG5_4 /**/" >>confdefs.h
16018 $as_echo "#define IRIX6_5 /**/" >>confdefs.h
16023 $as_echo "#define USG /**/" >>confdefs.h
16025 $as_echo "#define USG5 /**/" >>confdefs.h
16027 $as_echo "#define USG5_4 /**/" >>confdefs.h
16030 $as_echo "#define SOLARIS2 /**/" >>confdefs.h
16035 $as_echo "#define USG /**/" >>confdefs.h
16037 $as_echo "#define USG5 /**/" >>confdefs.h
16039 $as_echo "#define USG5_4 /**/" >>confdefs.h
16044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable FIONREAD" >&5
16045 $as_echo_n "checking for usable FIONREAD... " >&6; }
16046 if test "${emacs_cv_usable_FIONREAD+set}" = set; then :
16047 $as_echo_n "(cached) " >&6
16051 emacs_cv_usable_FIONREAD
=no
16055 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16056 /* end confdefs.h. */
16057 #include <sys/types.h>
16058 #include <sys/ioctl.h>
16060 # include <sys/filio.h>
16066 int foo = ioctl (0, FIONREAD, &foo);
16071 if ac_fn_c_try_compile
"$LINENO"; then :
16072 emacs_cv_usable_FIONREAD
=yes
16074 emacs_cv_usable_FIONREAD
=no
16076 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_usable_FIONREAD" >&5
16081 $as_echo "$emacs_cv_usable_FIONREAD" >&6; }
16082 if test $emacs_cv_usable_FIONREAD = yes; then
16084 $as_echo "#define USABLE_FIONREAD 1" >>confdefs.h
16087 if test $emacs_broken_SIGIO = no
; then
16088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable SIGIO" >&5
16089 $as_echo_n "checking for usable SIGIO... " >&6; }
16090 if test "${emacs_cv_usable_SIGIO+set}" = set; then :
16091 $as_echo_n "(cached) " >&6
16093 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16094 /* end confdefs.h. */
16096 #include <signal.h>
16101 int foo = SIGIO | F_SETFL | FASYNC;
16106 if ac_fn_c_try_compile
"$LINENO"; then :
16107 emacs_cv_usable_SIGIO
=yes
16109 emacs_cv_usable_SIGIO
=no
16111 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_usable_SIGIO" >&5
16114 $as_echo "$emacs_cv_usable_SIGIO" >&6; }
16115 if test $emacs_cv_usable_SIGIO = yes; then
16117 $as_echo "#define USABLE_SIGIO 1" >>confdefs.h
16127 $as_echo "#define G_SLICE_ALWAYS_MALLOC 1" >>confdefs.h
16133 $as_echo "#define USG_SUBTTY_WORKS 1" >>confdefs.h
16139 $as_echo "#define PREFER_VSUSP 1" >>confdefs.h
16145 $as_echo "#define _STRUCTURED_PROC 1" >>confdefs.h
16150 # Set up the CFLAGS for real compilation, so we can substitute it.
16151 CFLAGS
="$REAL_CFLAGS"
16152 CPPFLAGS
="$REAL_CPPFLAGS"
16154 ## Hack to detect a buggy GCC version.
16155 if test "x$GCC" = xyes \
16156 && test x
"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
16157 && test x
"`echo $CFLAGS | grep '\-O[23]'`" != x \
16158 && test x
"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x
; then
16159 as_fn_error
"GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
16162 version
=$PACKAGE_VERSION
16164 copyright
="Copyright (C) 2013 Free Software Foundation, Inc."
16166 cat >>confdefs.h
<<_ACEOF
16167 #define COPYRIGHT "$copyright"
16172 ### Specify what sort of things we'll be editing into Makefile and config.h.
16173 ### Use configuration here uncanonicalized to avoid exceeding size limits.
16199 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
16200 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
16201 ## end of LIBX_BASE, but nothing ever set it.
16206 ## Used in lwlib/Makefile.in.
16215 if test -n "${term_header}"; then
16217 cat >>confdefs.h
<<_ACEOF
16218 #define TERM_HEADER "${term_header}"
16224 cat >>confdefs.h
<<_ACEOF
16225 #define EMACS_CONFIGURATION "${canonical}"
16228 emacs_config_options
=`echo "$emacs_config_options " | sed -e 's/--no-create //' -e 's/--no-recursion //' -e 's/ *$//' -e "s/\"/'/g"`
16230 cat >>confdefs.h
<<_ACEOF
16231 #define EMACS_CONFIG_OPTIONS "${emacs_config_options}"
16239 if test "${HAVE_X_WINDOWS}" = "yes" ; then
16241 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
16244 XOBJ
="xterm.o xfns.o xselect.o xrdb.o xsmfns.o xsettings.o xgselect.o"
16246 if test "$HAVE_XFT" = "yes"; then
16247 FONT_OBJ
="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
16248 elif test "$HAVE_FREETYPE" = "yes"; then
16249 FONT_OBJ
="$FONT_OBJ ftfont.o ftxfont.o"
16259 if test "${USE_X_TOOLKIT}" != "none" ; then
16260 WIDGET_OBJ
=widget.o
16262 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
16264 if test "${USE_X_TOOLKIT}" = "LUCID"; then
16266 $as_echo "#define USE_LUCID 1" >>confdefs.h
16268 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
16270 $as_echo "#define USE_MOTIF 1" >>confdefs.h
16275 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
16276 MOTIF_LIBW
="$MOTIF_LIBW -lXpm"
16280 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
16281 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
16282 MOTIF_LIBW
="MOTIF_LIBW -lXimp"
16286 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
16287 MOTIF_LIBW
="$MOTIF_LIBW -li18n"
16290 MOTIF_LIBW
="$MOTIF_LIBW $LIBXP"
16296 case "$USE_X_TOOLKIT" in
16297 MOTIF
) TOOLKIT_LIBW
="$MOTIF_LIBW" ;;
16298 LUCID
) TOOLKIT_LIBW
="$LUCID_LIBW" ;;
16299 none
) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW
="$GTK_LIBS" ;;
16303 if test "$USE_X_TOOLKIT" = "none"; then
16304 LIBXT_OTHER
="\$(LIBXSM)"
16305 OLDXMENU_TARGET
="really-oldXMenu"
16307 LIBXT_OTHER
="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
16308 OLDXMENU_TARGET
="really-lwlib"
16312 ## The X Menu stuff is present in the X10 distribution, but missing
16313 ## from X11. If we have X10, just use the installed library;
16314 ## otherwise, use our own copy.
16315 if test "${HAVE_X11}" = "yes" ; then
16317 $as_echo "#define HAVE_X11 1" >>confdefs.h
16320 if test "$USE_X_TOOLKIT" = "none"; then
16321 OLDXMENU
="\${oldXMenudir}/libXMenu11.a"
16323 OLDXMENU
="\${lwlibdir}/liblw.a"
16325 LIBXMENU
="\$(OLDXMENU)"
16326 LIBX_OTHER
="\$(LIBXT) \$(LIBX_EXTRA)"
16327 OLDXMENU_DEPS
="\${OLDXMENU} ../src/\${OLDXMENU}"
16329 ## For a syntactically valid Makefile; not actually used for anything.
16330 ## See comments in src/Makefile.in.
16332 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
16333 if test "${HAVE_X_WINDOWS}" = "yes"; then
16342 if test "$HAVE_GTK" = "yes" ||
test "$HAVE_MENUS" != "yes"; then
16355 if test "${HAVE_MENUS}" = "yes" ; then
16357 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
16361 if test "${GNU_MALLOC}" = "yes" ; then
16363 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
16368 if test "${REL_ALLOC}" = "yes" ; then
16370 $as_echo "#define REL_ALLOC 1" >>confdefs.h
16373 test "$system_malloc" != "yes" && RALLOC_OBJ
=ralloc.o
16377 if test "$opsys" = "cygwin"; then
16378 CYGWIN_OBJ
="sheap.o cygw32.o"
16379 ## Cygwin differs because of its unexec().
16381 POST_ALLOC_OBJ
=lastfile.o
16384 PRE_ALLOC_OBJ
=lastfile.o
16391 # Configure gnulib. Although this does not affect CFLAGS or LIBS permanently.
16392 # it temporarily reverts them to their pre-pkg-config values,
16393 # because gnulib needs to work with both src (which uses the
16394 # pkg-config stuff) and lib-src (which does not). For example, gnulib
16395 # may need to determine whether LIB_CLOCK_GETTIME should contain -lrt,
16396 # and it therefore needs to run in an environment where LIBS does not
16397 # already contain -lrt merely because 'pkg-config --libs' printed '-lrt'
16398 # for some package unrelated to lib-src.
16399 SAVE_CFLAGS
=$CFLAGS
16401 CFLAGS
=$pre_PKG_CONFIG_CFLAGS
16402 LIBS
="$LIB_PTHREAD $pre_PKG_CONFIG_LIBS"
16414 LIBC_FATAL_STDERR_
=1
16415 export LIBC_FATAL_STDERR_
16417 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16418 # for constant arguments. Useless!
16419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
16420 $as_echo_n "checking for working alloca.h... " >&6; }
16421 if test "${ac_cv_working_alloca_h+set}" = set; then :
16422 $as_echo_n "(cached) " >&6
16424 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16425 /* end confdefs.h. */
16426 #include <alloca.h>
16430 char *p = (char *) alloca (2 * sizeof (int));
16436 if ac_fn_c_try_link
"$LINENO"; then :
16437 ac_cv_working_alloca_h
=yes
16439 ac_cv_working_alloca_h
=no
16441 rm -f core conftest.err conftest.
$ac_objext \
16442 conftest
$ac_exeext conftest.
$ac_ext
16444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
16445 $as_echo "$ac_cv_working_alloca_h" >&6; }
16446 if test $ac_cv_working_alloca_h = yes; then
16448 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
16452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
16453 $as_echo_n "checking for alloca... " >&6; }
16454 if test "${ac_cv_func_alloca_works+set}" = set; then :
16455 $as_echo_n "(cached) " >&6
16457 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16458 /* end confdefs.h. */
16460 # define alloca __builtin_alloca
16463 # include <malloc.h>
16464 # define alloca _alloca
16466 # ifdef HAVE_ALLOCA_H
16467 # include <alloca.h>
16472 # ifndef alloca /* predefined by HP cc +Olibcalls */
16483 char *p = (char *) alloca (1);
16489 if ac_fn_c_try_link
"$LINENO"; then :
16490 ac_cv_func_alloca_works
=yes
16492 ac_cv_func_alloca_works
=no
16494 rm -f core conftest.err conftest.
$ac_objext \
16495 conftest
$ac_exeext conftest.
$ac_ext
16497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
16498 $as_echo "$ac_cv_func_alloca_works" >&6; }
16500 if test $ac_cv_func_alloca_works = yes; then
16502 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
16505 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16506 # that cause trouble. Some versions do not even contain alloca or
16507 # contain a buggy version. If you still want to use their alloca,
16508 # use ar to extract alloca.o from them instead of compiling alloca.c.
16514 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
16516 $as_echo "#define C_ALLOCA 1" >>confdefs.h
16519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 'alloca.c' needs Cray hooks" >&5
16520 $as_echo_n "checking whether 'alloca.c' needs Cray hooks... " >&6; }
16521 if test "${ac_cv_os_cray+set}" = set; then :
16522 $as_echo_n "(cached) " >&6
16524 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16525 /* end confdefs.h. */
16526 #if defined CRAY && ! defined CRAY2
16533 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16534 $EGREP "webecray" >/dev
/null
2>&1; then :
16542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
16543 $as_echo "$ac_cv_os_cray" >&6; }
16544 if test $ac_cv_os_cray = yes; then
16545 for ac_func
in _getb67 GETB67 getb67
; do
16546 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16547 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
16548 eval as_val
=\$
$as_ac_var
16549 if test "x$as_val" = x
""yes; then :
16551 cat >>confdefs.h
<<_ACEOF
16552 #define CRAY_STACKSEG_END $ac_func
16561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
16562 $as_echo_n "checking stack direction for C alloca... " >&6; }
16563 if test "${ac_cv_c_stack_direction+set}" = set; then :
16564 $as_echo_n "(cached) " >&6
16566 if test "$cross_compiling" = yes; then :
16567 ac_cv_c_stack_direction
=0
16569 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16570 /* end confdefs.h. */
16571 $ac_includes_default
16573 find_stack_direction (int *addr, int depth)
16575 int dir, dummy = 0;
16578 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
16579 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
16580 return dir + dummy;
16584 main (int argc, char **argv)
16586 return find_stack_direction (0, argc + !argv + 20) < 0;
16589 if ac_fn_c_try_run
"$LINENO"; then :
16590 ac_cv_c_stack_direction
=1
16592 ac_cv_c_stack_direction
=-1
16594 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16595 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
16600 $as_echo "$ac_cv_c_stack_direction" >&6; }
16601 cat >>confdefs.h
<<_ACEOF
16602 #define STACK_DIRECTION $ac_cv_c_stack_direction
16611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
16612 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
16613 if test "${ac_cv_c_bigendian+set}" = set; then :
16614 $as_echo_n "(cached) " >&6
16616 ac_cv_c_bigendian
=unknown
16617 # See if we're dealing with a universal compiler.
16618 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16619 /* end confdefs.h. */
16620 #ifndef __APPLE_CC__
16621 not a universal capable compiler
16626 if ac_fn_c_try_compile
"$LINENO"; then :
16628 # Check for potential -arch flags. It is not universal unless
16629 # there are at least two -arch flags with different values.
16632 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
16633 if test -n "$ac_prev"; then
16635 i?
86 | x86_64 | ppc | ppc64
)
16636 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
16639 ac_cv_c_bigendian
=universal
16645 elif test "x$ac_word" = "x-arch"; then
16650 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16651 if test $ac_cv_c_bigendian = unknown
; then
16652 # See if sys/param.h defines the BYTE_ORDER macro.
16653 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16654 /* end confdefs.h. */
16655 #include <sys/types.h>
16656 #include <sys/param.h>
16661 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
16662 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
16664 bogus endian macros
16671 if ac_fn_c_try_compile
"$LINENO"; then :
16672 # It does; now see whether it defined to BIG_ENDIAN or not.
16673 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16674 /* end confdefs.h. */
16675 #include <sys/types.h>
16676 #include <sys/param.h>
16681 #if BYTE_ORDER != BIG_ENDIAN
16689 if ac_fn_c_try_compile
"$LINENO"; then :
16690 ac_cv_c_bigendian
=yes
16692 ac_cv_c_bigendian
=no
16694 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16696 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16698 if test $ac_cv_c_bigendian = unknown
; then
16699 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
16700 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16701 /* end confdefs.h. */
16702 #include <limits.h>
16707 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
16708 bogus endian macros
16715 if ac_fn_c_try_compile
"$LINENO"; then :
16716 # It does; now see whether it defined to _BIG_ENDIAN or not.
16717 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16718 /* end confdefs.h. */
16719 #include <limits.h>
16724 #ifndef _BIG_ENDIAN
16732 if ac_fn_c_try_compile
"$LINENO"; then :
16733 ac_cv_c_bigendian
=yes
16735 ac_cv_c_bigendian
=no
16737 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16739 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16741 if test $ac_cv_c_bigendian = unknown
; then
16742 # Compile a test program.
16743 if test "$cross_compiling" = yes; then :
16744 # Try to guess by grepping values from an object file.
16745 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16746 /* end confdefs.h. */
16747 short int ascii_mm[] =
16748 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
16749 short int ascii_ii[] =
16750 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
16751 int use_ascii (int i) {
16752 return ascii_mm[i] + ascii_ii[i];
16754 short int ebcdic_ii[] =
16755 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
16756 short int ebcdic_mm[] =
16757 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
16758 int use_ebcdic (int i) {
16759 return ebcdic_mm[i] + ebcdic_ii[i];
16766 return use_ascii (foo) == use_ebcdic (foo);
16771 if ac_fn_c_try_compile
"$LINENO"; then :
16772 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
16773 ac_cv_c_bigendian
=yes
16775 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
16776 if test "$ac_cv_c_bigendian" = unknown
; then
16777 ac_cv_c_bigendian
=no
16779 # finding both strings is unlikely to happen, but who knows?
16780 ac_cv_c_bigendian
=unknown
16784 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16786 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16787 /* end confdefs.h. */
16788 $ac_includes_default
16793 /* Are we little or big endian? From Harbison&Steele. */
16797 char c[sizeof (long int)];
16800 return u.c[sizeof (long int) - 1] == 1;
16806 if ac_fn_c_try_run
"$LINENO"; then :
16807 ac_cv_c_bigendian
=no
16809 ac_cv_c_bigendian
=yes
16811 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16812 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
16818 $as_echo "$ac_cv_c_bigendian" >&6; }
16819 case $ac_cv_c_bigendian in #(
16821 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
16827 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
16831 as_fn_error
"unknown endianness
16832 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
16844 GNULIB_EUIDACCESS
=0;
16845 GNULIB_FACCESSAT
=0;
16848 GNULIB_FDATASYNC
=0;
16850 GNULIB_FTRUNCATE
=0;
16852 GNULIB_GETDOMAINNAME
=0;
16853 GNULIB_GETDTABLESIZE
=0;
16854 GNULIB_GETGROUPS
=0;
16855 GNULIB_GETHOSTNAME
=0;
16857 GNULIB_GETLOGIN_R
=0;
16858 GNULIB_GETPAGESIZE
=0;
16859 GNULIB_GETUSERSHELL
=0;
16860 GNULIB_GROUP_MEMBER
=0;
16872 GNULIB_READLINKAT
=0;
16874 GNULIB_SETHOSTNAME
=0;
16877 GNULIB_SYMLINKAT
=0;
16878 GNULIB_TTYNAME_R
=0;
16879 GNULIB_UNISTD_H_NONBLOCKING
=0;
16880 GNULIB_UNISTD_H_SIGPIPE
=0;
16895 HAVE_GETDTABLESIZE
=1;
16897 HAVE_GETHOSTNAME
=1;
16899 HAVE_GETPAGESIZE
=1;
16900 HAVE_GROUP_MEMBER
=1;
16910 HAVE_SETHOSTNAME
=1;
16916 HAVE_DECL_ENVIRON
=1;
16917 HAVE_DECL_FCHDIR
=1;
16918 HAVE_DECL_FDATASYNC
=1;
16919 HAVE_DECL_GETDOMAINNAME
=1;
16920 HAVE_DECL_GETLOGIN_R
=1;
16921 HAVE_DECL_GETPAGESIZE
=1;
16922 HAVE_DECL_GETUSERSHELL
=1;
16923 HAVE_DECL_SETHOSTNAME
=1;
16924 HAVE_DECL_TTYNAME_R
=1;
16926 HAVE_SYS_PARAM_H
=0;
16931 REPLACE_FCHOWNAT
=0;
16932 REPLACE_FTRUNCATE
=0;
16934 REPLACE_GETDOMAINNAME
=0;
16935 REPLACE_GETLOGIN_R
=0;
16936 REPLACE_GETGROUPS
=0;
16937 REPLACE_GETPAGESIZE
=0;
16946 REPLACE_READLINK
=0;
16950 REPLACE_TTYNAME_R
=0;
16952 REPLACE_UNLINKAT
=0;
16955 UNISTD_H_HAVE_WINSOCK2_H
=0;
16956 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
=0;
16962 GNULIB_REWINDDIR
=0;
16965 GNULIB_FDOPENDIR
=0;
16967 GNULIB_ALPHASORT
=0;
16973 HAVE_DECL_FDOPENDIR
=1;
16978 REPLACE_CLOSEDIR
=0;
16980 REPLACE_FDOPENDIR
=0;
16984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
16985 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
16986 if test "${gl_cv_have_include_next+set}" = set; then :
16987 $as_echo_n "(cached) " >&6
16989 rm -rf conftestd1a conftestd1b conftestd2
16990 mkdir conftestd1a conftestd1b conftestd2
16991 cat <<EOF > conftestd1a/conftest.h
16992 #define DEFINED_IN_CONFTESTD1
16993 #include_next <conftest.h>
16994 #ifdef DEFINED_IN_CONFTESTD2
16997 #error "include_next doesn't work"
17000 cat <<EOF > conftestd1b/conftest.h
17001 #define DEFINED_IN_CONFTESTD1
17003 #include_next <conftest.h>
17004 #ifdef DEFINED_IN_CONFTESTD2
17007 #error "include_next doesn't work"
17010 cat <<EOF > conftestd2/conftest.h
17011 #ifndef DEFINED_IN_CONFTESTD1
17012 #error "include_next test doesn't work"
17014 #define DEFINED_IN_CONFTESTD2
17016 gl_save_CPPFLAGS
="$CPPFLAGS"
17017 CPPFLAGS
="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
17018 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17019 /* end confdefs.h. */
17020 #include <conftest.h>
17022 if ac_fn_c_try_compile
"$LINENO"; then :
17023 gl_cv_have_include_next
=yes
17025 CPPFLAGS
="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
17026 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17027 /* end confdefs.h. */
17028 #include <conftest.h>
17030 if ac_fn_c_try_compile
"$LINENO"; then :
17031 gl_cv_have_include_next
=buggy
17033 gl_cv_have_include_next
=no
17035 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17038 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17039 CPPFLAGS
="$gl_save_CPPFLAGS"
17040 rm -rf conftestd1a conftestd1b conftestd2
17043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
17044 $as_echo "$gl_cv_have_include_next" >&6; }
17045 PRAGMA_SYSTEM_HEADER
=
17046 if test $gl_cv_have_include_next = yes; then
17047 INCLUDE_NEXT
=include_next
17048 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include_next
17049 if test -n "$GCC"; then
17050 PRAGMA_SYSTEM_HEADER
='#pragma GCC system_header'
17053 if test $gl_cv_have_include_next = buggy
; then
17054 INCLUDE_NEXT
=include
17055 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include_next
17057 INCLUDE_NEXT
=include
17058 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include
17064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
17065 $as_echo_n "checking whether system header files limit the line length... " >&6; }
17066 if test "${gl_cv_pragma_columns+set}" = set; then :
17067 $as_echo_n "(cached) " >&6
17069 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17070 /* end confdefs.h. */
17077 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17078 $EGREP "choke me" >/dev
/null
2>&1; then :
17079 gl_cv_pragma_columns
=yes
17081 gl_cv_pragma_columns
=no
17087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
17088 $as_echo "$gl_cv_pragma_columns" >&6; }
17089 if test $gl_cv_pragma_columns = yes; then
17090 PRAGMA_COLUMNS
="#pragma COLUMNS 10000"
17099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtold conforms to C99" >&5
17100 $as_echo_n "checking whether strtold conforms to C99... " >&6; }
17101 if test "${gl_cv_func_c99_strtold+set}" = set; then :
17102 $as_echo_n "(cached) " >&6
17104 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17105 /* end confdefs.h. */
17106 /* On HP-UX before 11.23, strtold returns a struct instead of
17107 long double. Reject implementations like that, by requiring
17108 compatibility with the C99 prototype. */
17109 #include <stdlib.h>
17110 static long double (*p) (char const *, char **) = strtold;
17112 test (char const *nptr, char **endptr)
17115 r = strtold (nptr, endptr);
17121 return test ("1.0", NULL) != 1 || p ("1.0", NULL) != 1;
17126 if ac_fn_c_try_link
"$LINENO"; then :
17127 gl_cv_func_c99_strtold
=yes
17129 gl_cv_func_c99_strtold
=no
17131 rm -f core conftest.err conftest.
$ac_objext \
17132 conftest
$ac_exeext conftest.
$ac_ext
17134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_c99_strtold" >&5
17135 $as_echo "$gl_cv_func_c99_strtold" >&6; }
17136 if test $gl_cv_func_c99_strtold = yes; then
17138 $as_echo "#define HAVE_C99_STRTOLD 1" >>confdefs.h
17149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if environ is properly declared" >&5
17150 $as_echo_n "checking if environ is properly declared... " >&6; }
17151 if test "${gt_cv_var_environ_declaration+set}" = set; then :
17152 $as_echo_n "(cached) " >&6
17155 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17156 /* end confdefs.h. */
17158 #include <unistd.h>
17160 /* mingw, BeOS, Haiku declare environ in <stdlib.h>, not in <unistd.h>. */
17161 #include <stdlib.h>
17163 extern struct { int foo; } environ;
17172 if ac_fn_c_try_compile
"$LINENO"; then :
17173 gt_cv_var_environ_declaration
=no
17175 gt_cv_var_environ_declaration
=yes
17177 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_var_environ_declaration" >&5
17181 $as_echo "$gt_cv_var_environ_declaration" >&6; }
17182 if test $gt_cv_var_environ_declaration = yes; then
17184 $as_echo "#define HAVE_ENVIRON_DECL 1" >>confdefs.h
17189 if test $gt_cv_var_environ_declaration != yes; then
17190 HAVE_DECL_ENVIRON
=0
17202 GNULIB_NONBLOCKING
=0;
17212 ac_fn_c_check_type
"$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
17213 if test "x$ac_cv_type_mode_t" = x
""yes; then :
17217 cat >>confdefs.h
<<_ACEOF
17225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_dm_mode in struct stat" >&5
17226 $as_echo_n "checking for st_dm_mode in struct stat... " >&6; }
17227 if test "${ac_cv_struct_st_dm_mode+set}" = set; then :
17228 $as_echo_n "(cached) " >&6
17230 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17231 /* end confdefs.h. */
17233 #include <sys/types.h>
17234 #include <sys/stat.h>
17238 struct stat s; s.st_dm_mode;
17243 if ac_fn_c_try_compile
"$LINENO"; then :
17244 ac_cv_struct_st_dm_mode
=yes
17246 ac_cv_struct_st_dm_mode
=no
17248 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_st_dm_mode" >&5
17251 $as_echo "$ac_cv_struct_st_dm_mode" >&6; }
17253 if test $ac_cv_struct_st_dm_mode = yes; then
17255 $as_echo "#define HAVE_ST_DM_MODE 1" >>confdefs.h
17260 ac_fn_c_check_decl
"$LINENO" "strmode" "ac_cv_have_decl_strmode" "$ac_includes_default"
17261 if test "x$ac_cv_have_decl_strmode" = x
""yes; then :
17267 cat >>confdefs.h
<<_ACEOF
17268 #define HAVE_DECL_STRMODE $ac_have_decl
17288 GNULIB_UTIMENSAT
=0;
17302 REPLACE_FUTIMENS
=0;
17308 REPLACE_UTIMENSAT
=0;
17311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
17312 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
17313 if test "${gl_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
17314 $as_echo_n "(cached) " >&6
17316 rm -f conftest.sym conftest.
file
17317 echo >conftest.
file
17318 if test "$as_ln_s" = "ln -s" && ln -s conftest.
file conftest.sym
; then
17319 if test "$cross_compiling" = yes; then :
17321 # Guess yes on glibc systems.
17322 *-gnu*) gl_cv_func_lstat_dereferences_slashed_symlink
="guessing yes" ;;
17323 # If we don't know, assume the worst.
17324 *) gl_cv_func_lstat_dereferences_slashed_symlink
="guessing no" ;;
17328 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17329 /* end confdefs.h. */
17330 $ac_includes_default
17335 /* Linux will dereference the symlink and fail, as required by
17336 POSIX. That is better in the sense that it means we will not
17337 have to compile and use the lstat wrapper. */
17338 return lstat ("conftest.sym/", &sbuf) == 0;
17344 if ac_fn_c_try_run
"$LINENO"; then :
17345 gl_cv_func_lstat_dereferences_slashed_symlink
=yes
17347 gl_cv_func_lstat_dereferences_slashed_symlink
=no
17349 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17350 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17354 # If the 'ln -s' command failed, then we probably don't even
17355 # have an lstat function.
17356 gl_cv_func_lstat_dereferences_slashed_symlink
="guessing no"
17358 rm -f conftest.sym conftest.
file
17361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
17362 $as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
17363 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
17366 cat >>confdefs.h
<<_ACEOF
17367 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
17378 GNULIB_CALLOC_POSIX
=0;
17379 GNULIB_CANONICALIZE_FILE_NAME
=0;
17380 GNULIB_GETLOADAVG
=0;
17381 GNULIB_GETSUBOPT
=0;
17383 GNULIB_MALLOC_POSIX
=0;
17387 GNULIB_MKOSTEMPS
=0;
17390 GNULIB_POSIX_OPENPT
=0;
17392 GNULIB_PTSNAME_R
=0;
17396 GNULIB_REALLOC_POSIX
=0;
17399 GNULIB_SECURE_GETENV
=0;
17404 GNULIB_SYSTEM_POSIX
=0;
17410 HAVE_CANONICALIZE_FILE_NAME
=1;
17411 HAVE_DECL_GETLOADAVG
=1;
17419 HAVE_POSIX_OPENPT
=1;
17427 HAVE_SECURE_GETENV
=1;
17429 HAVE_DECL_SETENV
=1;
17433 HAVE_STRUCT_RANDOM_DATA
=1;
17434 HAVE_SYS_LOADAVG_H
=0;
17436 HAVE_DECL_UNSETENV
=1;
17438 REPLACE_CANONICALIZE_FILE_NAME
=0;
17443 REPLACE_PTSNAME_R
=0;
17445 REPLACE_RANDOM_R
=0;
17447 REPLACE_REALPATH
=0;
17450 REPLACE_UNSETENV
=0;
17468 if test $gl_cv_have_include_next = yes; then
17469 gl_cv_next_getopt_h
='<'getopt.h
'>'
17471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
17472 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
17473 if test "${gl_cv_next_getopt_h+set}" = set; then :
17474 $as_echo_n "(cached) " >&6
17477 if test $ac_cv_header_getopt_h = yes; then
17480 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17481 /* end confdefs.h. */
17482 #include <getopt.h>
17486 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
17487 *) gl_absname_cpp
="$ac_cpp" ;;
17492 gl_dirsep_regex
='[/\\]'
17495 gl_dirsep_regex
='\/'
17498 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
17500 gl_header_literal_regex
=`echo 'getopt.h' \
17501 | sed -e "$gl_make_literal_regex_sed"`
17502 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17503 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17508 gl_cv_next_getopt_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17509 sed -n "$gl_absolute_header_sed"`'"'
17511 gl_cv_next_getopt_h
='<'getopt.h
'>'
17516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
17517 $as_echo "$gl_cv_next_getopt_h" >&6; }
17519 NEXT_GETOPT_H
=$gl_cv_next_getopt_h
17521 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
17522 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17523 gl_next_as_first_directive
='<'getopt.h
'>'
17525 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17526 gl_next_as_first_directive
=$gl_cv_next_getopt_h
17528 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
=$gl_next_as_first_directive
17533 if test $ac_cv_header_getopt_h = yes; then
17542 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
17543 for ac_header
in getopt.h
17545 ac_fn_c_check_header_mongrel
"$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
17546 if test "x$ac_cv_header_getopt_h" = x
""yes; then :
17547 cat >>confdefs.h
<<_ACEOF
17548 #define HAVE_GETOPT_H 1
17552 gl_replace_getopt
=yes
17559 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
17560 for ac_func
in getopt_long_only
17562 ac_fn_c_check_func
"$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
17563 if test "x$ac_cv_func_getopt_long_only" = x
""yes; then :
17564 cat >>confdefs.h
<<_ACEOF
17565 #define HAVE_GETOPT_LONG_ONLY 1
17569 gl_replace_getopt
=yes
17575 if test -z "$gl_replace_getopt"; then
17576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
17577 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
17578 if test "${gl_cv_func_getopt_posix+set}" = set; then :
17579 $as_echo_n "(cached) " >&6
17582 if test $cross_compiling = no
; then
17583 if test "$cross_compiling" = yes; then :
17584 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17585 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17586 as_fn_error
"cannot run test program while cross compiling
17587 See \`config.log' for more details." "$LINENO" 5; }
17589 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17590 /* end confdefs.h. */
17592 #include <unistd.h>
17593 #include <stdlib.h>
17594 #include <string.h>
17599 static char program[] = "program";
17600 static char a[] = "-a";
17601 static char foo[] = "foo";
17602 static char bar[] = "bar";
17603 char *argv[] = { program, a, foo, bar, NULL };
17606 c = getopt (4, argv, "ab");
17609 c = getopt (4, argv, "ab");
17612 if (!(optind == 2))
17618 if ac_fn_c_try_run
"$LINENO"; then :
17619 gl_cv_func_getopt_posix
=maybe
17621 gl_cv_func_getopt_posix
=no
17623 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17624 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17627 if test $gl_cv_func_getopt_posix = maybe
; then
17628 if test "$cross_compiling" = yes; then :
17629 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17630 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17631 as_fn_error
"cannot run test program while cross compiling
17632 See \`config.log' for more details." "$LINENO" 5; }
17634 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17635 /* end confdefs.h. */
17637 #include <unistd.h>
17638 #include <stdlib.h>
17639 #include <string.h>
17644 static char program[] = "program";
17645 static char donald[] = "donald";
17646 static char p[] = "-p";
17647 static char billy[] = "billy";
17648 static char duck[] = "duck";
17649 static char a[] = "-a";
17650 static char bar[] = "bar";
17651 char *argv[] = { program, donald, p, billy, duck, a, bar, NULL };
17654 c = getopt (7, argv, "+abp:q:");
17657 if (!(strcmp (argv[0], "program") == 0))
17659 if (!(strcmp (argv[1], "donald") == 0))
17661 if (!(strcmp (argv[2], "-p") == 0))
17663 if (!(strcmp (argv[3], "billy") == 0))
17665 if (!(strcmp (argv[4], "duck") == 0))
17667 if (!(strcmp (argv[5], "-a") == 0))
17669 if (!(strcmp (argv[6], "bar") == 0))
17671 if (!(optind == 1))
17677 if ac_fn_c_try_run
"$LINENO"; then :
17678 gl_cv_func_getopt_posix
=maybe
17680 gl_cv_func_getopt_posix
=no
17682 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17683 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17687 if test $gl_cv_func_getopt_posix = maybe
; then
17688 if test "$cross_compiling" = yes; then :
17689 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17690 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17691 as_fn_error
"cannot run test program while cross compiling
17692 See \`config.log' for more details." "$LINENO" 5; }
17694 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17695 /* end confdefs.h. */
17697 #include <unistd.h>
17698 #include <stdlib.h>
17699 #include <string.h>
17704 static char program[] = "program";
17705 static char ab[] = "-ab";
17706 char *argv[3] = { program, ab, NULL };
17707 if (getopt (2, argv, "ab:") != 'a')
17709 if (getopt (2, argv, "ab:") != '?')
17719 if ac_fn_c_try_run
"$LINENO"; then :
17720 gl_cv_func_getopt_posix
=yes
17722 gl_cv_func_getopt_posix
=no
17724 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17725 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17731 darwin
* | aix
* | mingw
*) gl_cv_func_getopt_posix
="guessing no";;
17732 *) gl_cv_func_getopt_posix
="guessing yes";;
17737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
17738 $as_echo "$gl_cv_func_getopt_posix" >&6; }
17739 case "$gl_cv_func_getopt_posix" in
17740 *no
) gl_replace_getopt
=yes ;;
17744 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
17745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
17746 $as_echo_n "checking for working GNU getopt function... " >&6; }
17747 if test "${gl_cv_func_getopt_gnu+set}" = set; then :
17748 $as_echo_n "(cached) " >&6
17750 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
17751 # optstring is necessary for programs like m4 that have POSIX-mandated
17752 # semantics for supporting options interspersed with files.
17753 # Also, since getopt_long is a GNU extension, we require optind=0.
17754 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
17755 # so take care to revert to the correct (non-)export state.
17756 gl_awk_probe
='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
17757 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
17758 xx
) gl_had_POSIXLY_CORRECT
=exported
;;
17759 x
) gl_had_POSIXLY_CORRECT
=yes ;;
17760 *) gl_had_POSIXLY_CORRECT
= ;;
17763 export POSIXLY_CORRECT
17764 if test "$cross_compiling" = yes; then :
17765 gl_cv_func_getopt_gnu
="guessing no"
17768 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17769 /* end confdefs.h. */
17770 #include <getopt.h>
17771 #include <stddef.h>
17772 #include <string.h>
17774 #include <stdlib.h>
17775 #if defined __MACH__ && defined __APPLE__
17776 /* Avoid a crash on Mac OS X. */
17777 #include <mach/mach.h>
17778 #include <mach/mach_error.h>
17779 #include <mach/thread_status.h>
17780 #include <mach/exception.h>
17781 #include <mach/task.h>
17782 #include <pthread.h>
17783 /* The exception port on which our thread listens. */
17784 static mach_port_t our_exception_port;
17785 /* The main function of the thread listening for exceptions of type
17788 mach_exception_thread (void *arg)
17790 /* Buffer for a message to be received. */
17792 mach_msg_header_t head;
17793 mach_msg_body_t msgh_body;
17796 mach_msg_return_t retval;
17797 /* Wait for a message on the exception port. */
17798 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
17799 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
17800 if (retval != MACH_MSG_SUCCESS)
17805 nocrash_init (void)
17807 mach_port_t self = mach_task_self ();
17808 /* Allocate a port on which the thread shall listen for exceptions. */
17809 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
17811 /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
17812 if (mach_port_insert_right (self, our_exception_port, our_exception_port,
17813 MACH_MSG_TYPE_MAKE_SEND)
17815 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
17817 exception_mask_t mask = EXC_MASK_BAD_ACCESS;
17818 /* Create the thread listening on the exception port. */
17819 pthread_attr_t attr;
17821 if (pthread_attr_init (&attr) == 0
17822 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
17823 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
17824 pthread_attr_destroy (&attr);
17825 /* Replace the exception port info for these exceptions with our own.
17826 Note that we replace the exception port for the entire task, not only
17827 for a particular thread. This has the effect that when our exception
17828 port gets the message, the thread specific exception port has already
17829 been asked, and we don't need to bother about it.
17830 See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
17831 task_set_exception_ports (self, mask, our_exception_port,
17832 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
17837 #elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
17838 /* Avoid a crash on native Windows. */
17839 #define WIN32_LEAN_AND_MEAN
17840 #include <windows.h>
17841 #include <winerror.h>
17843 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
17845 switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
17847 case EXCEPTION_ACCESS_VIOLATION:
17848 case EXCEPTION_IN_PAGE_ERROR:
17849 case EXCEPTION_STACK_OVERFLOW:
17850 case EXCEPTION_GUARD_PAGE:
17851 case EXCEPTION_PRIV_INSTRUCTION:
17852 case EXCEPTION_ILLEGAL_INSTRUCTION:
17853 case EXCEPTION_DATATYPE_MISALIGNMENT:
17854 case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
17855 case EXCEPTION_NONCONTINUABLE_EXCEPTION:
17858 return EXCEPTION_CONTINUE_SEARCH;
17861 nocrash_init (void)
17863 SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
17866 /* Avoid a crash on POSIX systems. */
17867 #include <signal.h>
17868 /* A POSIX signal handler. */
17870 exception_handler (int sig)
17875 nocrash_init (void)
17878 signal (SIGSEGV, exception_handler);
17881 signal (SIGBUS, exception_handler);
17895 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
17896 and fails on Mac OS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
17897 OSF/1 5.1, Solaris 10. */
17899 static char conftest[] = "conftest";
17900 static char plus[] = "-+";
17901 char *argv[3] = { conftest, plus, NULL };
17903 if (getopt (2, argv, "+a") != '?')
17906 /* This code succeeds on glibc 2.8, mingw,
17907 and fails on Mac OS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
17908 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
17910 static char program[] = "program";
17911 static char p[] = "-p";
17912 static char foo[] = "foo";
17913 static char bar[] = "bar";
17914 char *argv[] = { program, p, foo, bar, NULL };
17917 if (getopt (4, argv, "p::") != 'p')
17919 else if (optarg != NULL)
17921 else if (getopt (4, argv, "p::") != -1)
17923 else if (optind != 2)
17926 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
17928 static char program[] = "program";
17929 static char foo[] = "foo";
17930 static char p[] = "-p";
17931 char *argv[] = { program, foo, p, NULL };
17933 if (getopt (3, argv, "-p") != 1)
17935 else if (getopt (3, argv, "-p") != 'p')
17938 /* This code fails on glibc 2.11. */
17940 static char program[] = "program";
17941 static char b[] = "-b";
17942 static char a[] = "-a";
17943 char *argv[] = { program, b, a, NULL };
17944 optind = opterr = 0;
17945 if (getopt (3, argv, "+:a:b") != 'b')
17947 else if (getopt (3, argv, "+:a:b") != ':')
17950 /* This code dumps core on glibc 2.14. */
17952 static char program[] = "program";
17953 static char w[] = "-W";
17954 static char dummy[] = "dummy";
17955 char *argv[] = { program, w, dummy, NULL };
17956 optind = opterr = 1;
17957 if (getopt (3, argv, "W;") != 'W')
17966 if ac_fn_c_try_run
"$LINENO"; then :
17967 gl_cv_func_getopt_gnu
=yes
17969 gl_cv_func_getopt_gnu
=no
17971 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17972 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17975 case $gl_had_POSIXLY_CORRECT in
17977 yes) { POSIXLY_CORRECT
=; unset POSIXLY_CORRECT
;}; POSIXLY_CORRECT
=1 ;;
17978 *) { POSIXLY_CORRECT
=; unset POSIXLY_CORRECT
;} ;;
17982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
17983 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
17984 if test "$gl_cv_func_getopt_gnu" != yes; then
17985 gl_replace_getopt
=yes
17987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt_long function" >&5
17988 $as_echo_n "checking for working GNU getopt_long function... " >&6; }
17989 if test "${gl_cv_func_getopt_long_gnu+set}" = set; then :
17990 $as_echo_n "(cached) " >&6
17992 if test "$cross_compiling" = yes; then :
17994 openbsd
*) gl_cv_func_getopt_long_gnu
="guessing no";;
17995 *) gl_cv_func_getopt_long_gnu
="guessing yes";;
17999 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18000 /* end confdefs.h. */
18001 #include <getopt.h>
18002 #include <stddef.h>
18003 #include <string.h>
18008 static const struct option long_options[] =
18010 { "xtremely-",no_argument, NULL, 1003 },
18011 { "xtra", no_argument, NULL, 1001 },
18012 { "xtreme", no_argument, NULL, 1002 },
18013 { "xtremely", no_argument, NULL, 1003 },
18014 { NULL, 0, NULL, 0 }
18016 /* This code fails on OpenBSD 5.0. */
18018 static char program[] = "program";
18019 static char xtremel[] = "--xtremel";
18020 char *argv[] = { program, xtremel, NULL };
18022 optind = 1; opterr = 0;
18023 if (getopt_long (2, argv, "", long_options, &option_index) != 1003)
18032 if ac_fn_c_try_run
"$LINENO"; then :
18033 gl_cv_func_getopt_long_gnu
=yes
18035 gl_cv_func_getopt_long_gnu
=no
18037 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18038 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_long_gnu" >&5
18044 $as_echo "$gl_cv_func_getopt_long_gnu" >&6; }
18045 case "$gl_cv_func_getopt_long_gnu" in
18047 *) gl_replace_getopt
=yes ;;
18058 if test -n "$gl_replace_getopt"; then
18062 if test $REPLACE_GETOPT = 1; then
18066 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
18072 ac_fn_c_check_decl
"$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
18073 if test "x$ac_cv_have_decl_getenv" = x
""yes; then :
18079 cat >>confdefs.h
<<_ACEOF
18080 #define HAVE_DECL_GETENV $ac_have_decl
18088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
18089 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
18090 if test "${ac_cv_c_restrict+set}" = set; then :
18091 $as_echo_n "(cached) " >&6
18093 ac_cv_c_restrict
=no
18094 # The order here caters to the fact that C++ does not require restrict.
18095 for ac_kw
in __restrict __restrict__ _Restrict restrict
; do
18096 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18097 /* end confdefs.h. */
18098 typedef int * int_ptr;
18099 int foo (int_ptr $ac_kw ip) {
18106 int * $ac_kw t = s;
18113 if ac_fn_c_try_compile
"$LINENO"; then :
18114 ac_cv_c_restrict
=$ac_kw
18116 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18117 test "$ac_cv_c_restrict" != no
&& break
18121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
18122 $as_echo "$ac_cv_c_restrict" >&6; }
18124 case $ac_cv_c_restrict in
18126 no
) $as_echo "#define restrict /**/" >>confdefs.h
18128 *) cat >>confdefs.h
<<_ACEOF
18129 #define restrict $ac_cv_c_restrict
18135 GNULIB_GETTIMEOFDAY
=0;
18136 HAVE_GETTIMEOFDAY
=1;
18137 HAVE_STRUCT_TIMEVAL
=1;
18139 REPLACE_GETTIMEOFDAY
=0;
18140 REPLACE_STRUCT_TIMEVAL
=0;
18157 if test $gl_cv_have_include_next = yes; then
18158 gl_cv_next_sys_time_h
='<'sys
/time.h
'>'
18160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/time.h>" >&5
18161 $as_echo_n "checking absolute name of <sys/time.h>... " >&6; }
18162 if test "${gl_cv_next_sys_time_h+set}" = set; then :
18163 $as_echo_n "(cached) " >&6
18166 if test $ac_cv_header_sys_time_h = yes; then
18169 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18170 /* end confdefs.h. */
18171 #include <sys/time.h>
18175 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
18176 *) gl_absname_cpp
="$ac_cpp" ;;
18181 gl_dirsep_regex
='[/\\]'
18184 gl_dirsep_regex
='\/'
18187 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
18189 gl_header_literal_regex
=`echo 'sys/time.h' \
18190 | sed -e "$gl_make_literal_regex_sed"`
18191 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18192 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18197 gl_cv_next_sys_time_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18198 sed -n "$gl_absolute_header_sed"`'"'
18200 gl_cv_next_sys_time_h
='<'sys
/time.h
'>'
18205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_time_h" >&5
18206 $as_echo "$gl_cv_next_sys_time_h" >&6; }
18208 NEXT_SYS_TIME_H
=$gl_cv_next_sys_time_h
18210 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
18211 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18212 gl_next_as_first_directive
='<'sys
/time.h
'>'
18214 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18215 gl_next_as_first_directive
=$gl_cv_next_sys_time_h
18217 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
=$gl_next_as_first_directive
18223 if test $ac_cv_header_sys_time_h != yes; then
18231 if test $ac_cv_header_sys_socket_h != yes; then
18232 for ac_header
in winsock2.h
18234 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
18235 if test "x$ac_cv_header_winsock2_h" = x
""yes; then :
18236 cat >>confdefs.h
<<_ACEOF
18237 #define HAVE_WINSOCK2_H 1
18245 if test "$ac_cv_header_winsock2_h" = yes; then
18247 UNISTD_H_HAVE_WINSOCK2_H
=1
18248 SYS_IOCTL_H_HAVE_WINSOCK2_H
=1
18254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
18255 $as_echo_n "checking for struct timeval... " >&6; }
18256 if test "${gl_cv_sys_struct_timeval+set}" = set; then :
18257 $as_echo_n "(cached) " >&6
18259 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18260 /* end confdefs.h. */
18261 #if HAVE_SYS_TIME_H
18262 #include <sys/time.h>
18265 #if HAVE_WINSOCK2_H
18266 # include <winsock2.h>
18272 static struct timeval x; x.tv_sec = x.tv_usec;
18277 if ac_fn_c_try_compile
"$LINENO"; then :
18278 gl_cv_sys_struct_timeval
=yes
18280 gl_cv_sys_struct_timeval
=no
18282 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval" >&5
18286 $as_echo "$gl_cv_sys_struct_timeval" >&6; }
18287 if test $gl_cv_sys_struct_timeval != yes; then
18288 HAVE_STRUCT_TIMEVAL
=0
18290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wide-enough struct timeval.tv_sec member" >&5
18291 $as_echo_n "checking for wide-enough struct timeval.tv_sec member... " >&6; }
18292 if test "${gl_cv_sys_struct_timeval_tv_sec+set}" = set; then :
18293 $as_echo_n "(cached) " >&6
18295 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18296 /* end confdefs.h. */
18297 #if HAVE_SYS_TIME_H
18298 #include <sys/time.h>
18301 #if HAVE_WINSOCK2_H
18302 # include <winsock2.h>
18308 static struct timeval x;
18309 typedef int verify_tv_sec_type[
18310 sizeof (time_t) <= sizeof x.tv_sec ? 1 : -1
18317 if ac_fn_c_try_compile
"$LINENO"; then :
18318 gl_cv_sys_struct_timeval_tv_sec
=yes
18320 gl_cv_sys_struct_timeval_tv_sec
=no
18322 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval_tv_sec" >&5
18326 $as_echo "$gl_cv_sys_struct_timeval_tv_sec" >&6; }
18327 if test $gl_cv_sys_struct_timeval_tv_sec != yes; then
18328 REPLACE_STRUCT_TIMEVAL
=1
18338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
18339 $as_echo_n "checking for unsigned long long int... " >&6; }
18340 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
18341 $as_echo_n "(cached) " >&6
18343 ac_cv_type_unsigned_long_long_int
=yes
18344 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
18345 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18346 /* end confdefs.h. */
18348 /* For now, do not test the preprocessor; as of 2007 there are too many
18349 implementations with broken preprocessors. Perhaps this can
18350 be revisited in 2012. In the meantime, code should not expect
18351 #if to work with literals wider than 32 bits. */
18352 /* Test literals. */
18353 long long int ll = 9223372036854775807ll;
18354 long long int nll = -9223372036854775807LL;
18355 unsigned long long int ull = 18446744073709551615ULL;
18356 /* Test constant expressions. */
18357 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
18359 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
18365 /* Test availability of runtime routines for shift and division. */
18366 long long int llmax = 9223372036854775807ll;
18367 unsigned long long int ullmax = 18446744073709551615ull;
18368 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
18369 | (llmax / ll) | (llmax % ll)
18370 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
18371 | (ullmax / ull) | (ullmax % ull));
18377 if ac_fn_c_try_link
"$LINENO"; then :
18380 ac_cv_type_unsigned_long_long_int
=no
18382 rm -f core conftest.err conftest.
$ac_objext \
18383 conftest
$ac_exeext conftest.
$ac_ext
18386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
18387 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
18388 if test $ac_cv_type_unsigned_long_long_int = yes; then
18390 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
18396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
18397 $as_echo_n "checking for long long int... " >&6; }
18398 if test "${ac_cv_type_long_long_int+set}" = set; then :
18399 $as_echo_n "(cached) " >&6
18401 ac_cv_type_long_long_int
=yes
18402 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
18403 ac_cv_type_long_long_int
=$ac_cv_type_unsigned_long_long_int
18404 if test $ac_cv_type_long_long_int = yes; then
18405 if test "$cross_compiling" = yes; then :
18408 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18409 /* end confdefs.h. */
18410 #include <limits.h>
18413 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
18414 # define LLONG_MAX (HALF - 1 + HALF)
18419 long long int n = 1;
18423 long long int m = n << i;
18426 if (LLONG_MAX / 2 < m)
18434 if ac_fn_c_try_run
"$LINENO"; then :
18437 ac_cv_type_long_long_int
=no
18439 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18440 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
18447 $as_echo "$ac_cv_type_long_long_int" >&6; }
18448 if test $ac_cv_type_long_long_int = yes; then
18450 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
18459 gl_cv_c_multiarch
=no
18460 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18461 /* end confdefs.h. */
18462 #ifndef __APPLE_CC__
18463 not a universal capable compiler
18468 if ac_fn_c_try_compile
"$LINENO"; then :
18472 for word
in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
18473 if test -n "$prev"; then
18475 i?
86 | x86_64 | ppc | ppc64
)
18476 if test -z "$arch" ||
test "$arch" = "$word"; then
18479 gl_cv_c_multiarch
=yes
18485 if test "x$word" = "x-arch"; then
18492 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18493 if test $gl_cv_c_multiarch = yes; then
18494 APPLE_UNIVERSAL_BUILD
=1
18496 APPLE_UNIVERSAL_BUILD
=0
18503 if test $ac_cv_type_long_long_int = yes; then
18504 HAVE_LONG_LONG_INT
=1
18506 HAVE_LONG_LONG_INT
=0
18510 if test $ac_cv_type_unsigned_long_long_int = yes; then
18511 HAVE_UNSIGNED_LONG_LONG_INT
=1
18513 HAVE_UNSIGNED_LONG_LONG_INT
=0
18518 if test $ac_cv_header_wchar_h = yes; then
18525 if test $ac_cv_header_inttypes_h = yes; then
18532 if test $ac_cv_header_sys_types_h = yes; then
18548 if test $gl_cv_have_include_next = yes; then
18549 gl_cv_next_stdint_h
='<'stdint.h
'>'
18551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
18552 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
18553 if test "${gl_cv_next_stdint_h+set}" = set; then :
18554 $as_echo_n "(cached) " >&6
18557 if test $ac_cv_header_stdint_h = yes; then
18560 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18561 /* end confdefs.h. */
18562 #include <stdint.h>
18566 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
18567 *) gl_absname_cpp
="$ac_cpp" ;;
18572 gl_dirsep_regex
='[/\\]'
18575 gl_dirsep_regex
='\/'
18578 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
18580 gl_header_literal_regex
=`echo 'stdint.h' \
18581 | sed -e "$gl_make_literal_regex_sed"`
18582 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18583 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18588 gl_cv_next_stdint_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18589 sed -n "$gl_absolute_header_sed"`'"'
18591 gl_cv_next_stdint_h
='<'stdint.h
'>'
18596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
18597 $as_echo "$gl_cv_next_stdint_h" >&6; }
18599 NEXT_STDINT_H
=$gl_cv_next_stdint_h
18601 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
18602 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18603 gl_next_as_first_directive
='<'stdint.h
'>'
18605 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18606 gl_next_as_first_directive
=$gl_cv_next_stdint_h
18608 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
=$gl_next_as_first_directive
18613 if test $ac_cv_header_stdint_h = yes; then
18620 if test $ac_cv_header_stdint_h = yes; then
18621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
18622 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
18623 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
18624 $as_echo_n "(cached) " >&6
18626 gl_cv_header_working_stdint_h
=no
18627 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18628 /* end confdefs.h. */
18631 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
18632 #include <stdint.h>
18633 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
18634 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
18635 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
18639 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18640 included before <wchar.h>. */
18641 #include <stddef.h>
18642 #include <signal.h>
18644 # include <stdio.h>
18646 # include <wchar.h>
18651 int8_t a1 = INT8_MAX;
18652 int8_t a1min = INT8_MIN;
18655 int16_t a2 = INT16_MAX;
18656 int16_t a2min = INT16_MIN;
18659 int32_t a3 = INT32_MAX;
18660 int32_t a3min = INT32_MIN;
18663 int64_t a4 = INT64_MAX;
18664 int64_t a4min = INT64_MIN;
18667 uint8_t b1 = UINT8_MAX;
18669 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
18672 uint16_t b2 = UINT16_MAX;
18675 uint32_t b3 = UINT32_MAX;
18678 uint64_t b4 = UINT64_MAX;
18680 int_least8_t c1 = INT8_C (0x7f);
18681 int_least8_t c1max = INT_LEAST8_MAX;
18682 int_least8_t c1min = INT_LEAST8_MIN;
18683 int_least16_t c2 = INT16_C (0x7fff);
18684 int_least16_t c2max = INT_LEAST16_MAX;
18685 int_least16_t c2min = INT_LEAST16_MIN;
18686 int_least32_t c3 = INT32_C (0x7fffffff);
18687 int_least32_t c3max = INT_LEAST32_MAX;
18688 int_least32_t c3min = INT_LEAST32_MIN;
18689 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
18690 int_least64_t c4max = INT_LEAST64_MAX;
18691 int_least64_t c4min = INT_LEAST64_MIN;
18692 uint_least8_t d1 = UINT8_C (0xff);
18693 uint_least8_t d1max = UINT_LEAST8_MAX;
18694 uint_least16_t d2 = UINT16_C (0xffff);
18695 uint_least16_t d2max = UINT_LEAST16_MAX;
18696 uint_least32_t d3 = UINT32_C (0xffffffff);
18697 uint_least32_t d3max = UINT_LEAST32_MAX;
18698 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
18699 uint_least64_t d4max = UINT_LEAST64_MAX;
18700 int_fast8_t e1 = INT_FAST8_MAX;
18701 int_fast8_t e1min = INT_FAST8_MIN;
18702 int_fast16_t e2 = INT_FAST16_MAX;
18703 int_fast16_t e2min = INT_FAST16_MIN;
18704 int_fast32_t e3 = INT_FAST32_MAX;
18705 int_fast32_t e3min = INT_FAST32_MIN;
18706 int_fast64_t e4 = INT_FAST64_MAX;
18707 int_fast64_t e4min = INT_FAST64_MIN;
18708 uint_fast8_t f1 = UINT_FAST8_MAX;
18709 uint_fast16_t f2 = UINT_FAST16_MAX;
18710 uint_fast32_t f3 = UINT_FAST32_MAX;
18711 uint_fast64_t f4 = UINT_FAST64_MAX;
18713 intptr_t g = INTPTR_MAX;
18714 intptr_t gmin = INTPTR_MIN;
18717 uintptr_t h = UINTPTR_MAX;
18719 intmax_t i = INTMAX_MAX;
18720 uintmax_t j = UINTMAX_MAX;
18722 #include <limits.h> /* for CHAR_BIT */
18723 #define TYPE_MINIMUM(t) \
18724 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
18725 #define TYPE_MAXIMUM(t) \
18726 ((t) ((t) 0 < (t) -1 \
18728 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
18731 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
18732 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
18734 /* Detect bug in FreeBSD 6.0 / ia64. */
18735 int check_SIG_ATOMIC:
18736 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
18737 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
18739 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
18741 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
18742 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
18744 /* Detect bug in mingw. */
18746 WINT_MIN == TYPE_MINIMUM (wint_t)
18747 && WINT_MAX == TYPE_MAXIMUM (wint_t)
18750 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
18752 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
18753 int check_UINT16_C:
18754 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
18756 /* Detect bugs in OpenBSD 3.9 stdint.h. */
18758 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
18761 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
18764 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
18767 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
18769 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
18770 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
18771 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
18772 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
18773 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
18774 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
18775 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
18776 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
18777 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
18778 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
18779 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
18790 if ac_fn_c_try_compile
"$LINENO"; then :
18791 if test "$cross_compiling" = yes; then :
18792 gl_cv_header_working_stdint_h
=yes
18795 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18796 /* end confdefs.h. */
18799 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
18800 #include <stdint.h>
18803 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18804 included before <wchar.h>. */
18805 #include <stddef.h>
18806 #include <signal.h>
18808 # include <stdio.h>
18810 # include <wchar.h>
18815 #include <string.h>
18816 #define MVAL(macro) MVAL1(macro)
18817 #define MVAL1(expression) #expression
18818 static const char *macro_values[] =
18852 for (mv = macro_values; *mv != NULL; mv++)
18854 const char *value = *mv;
18855 /* Test whether it looks like a cast expression. */
18856 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
18857 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
18858 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
18859 || strncmp (value, "((int)"/*)*/, 6) == 0
18860 || strncmp (value, "((signed short)"/*)*/, 15) == 0
18861 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
18862 return mv - macro_values + 1;
18870 if ac_fn_c_try_run
"$LINENO"; then :
18871 gl_cv_header_working_stdint_h
=yes
18873 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18874 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18879 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
18883 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
18885 if test "$gl_cv_header_working_stdint_h" = yes; then
18888 for ac_header
in sys
/inttypes.h sys
/bitypes.h
18890 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18891 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18892 eval as_val
=\$
$as_ac_Header
18893 if test "x$as_val" = x
""yes; then :
18894 cat >>confdefs.h
<<_ACEOF
18895 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18902 if test $ac_cv_header_sys_inttypes_h = yes; then
18903 HAVE_SYS_INTTYPES_H
=1
18905 HAVE_SYS_INTTYPES_H
=0
18908 if test $ac_cv_header_sys_bitypes_h = yes; then
18909 HAVE_SYS_BITYPES_H
=1
18911 HAVE_SYS_BITYPES_H
=0
18917 if test $APPLE_UNIVERSAL_BUILD = 0; then
18920 for gltype
in ptrdiff_t size_t
; do
18921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
18922 $as_echo_n "checking for bit size of $gltype... " >&6; }
18923 if { as_var
=gl_cv_bitsizeof_
${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
18924 $as_echo_n "(cached) " >&6
18926 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
18927 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18928 included before <wchar.h>. */
18929 #include <stddef.h>
18930 #include <signal.h>
18932 # include <stdio.h>
18934 # include <wchar.h>
18937 #include <limits.h>"; then :
18943 eval gl_cv_bitsizeof_
${gltype}=\
$result
18946 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
18947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18948 $as_echo "$ac_res" >&6; }
18949 eval result
=\
$gl_cv_bitsizeof_${gltype}
18950 if test $result = unknown
; then
18953 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18954 cat >>confdefs.h
<<_ACEOF
18955 #define BITSIZEOF_${GLTYPE} $result
18958 eval BITSIZEOF_
${GLTYPE}=\
$result
18965 for gltype
in sig_atomic_t wchar_t wint_t
; do
18966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
18967 $as_echo_n "checking for bit size of $gltype... " >&6; }
18968 if { as_var
=gl_cv_bitsizeof_
${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
18969 $as_echo_n "(cached) " >&6
18971 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
18972 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18973 included before <wchar.h>. */
18974 #include <stddef.h>
18975 #include <signal.h>
18977 # include <stdio.h>
18979 # include <wchar.h>
18982 #include <limits.h>"; then :
18988 eval gl_cv_bitsizeof_
${gltype}=\
$result
18991 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
18992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18993 $as_echo "$ac_res" >&6; }
18994 eval result
=\
$gl_cv_bitsizeof_${gltype}
18995 if test $result = unknown
; then
18998 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18999 cat >>confdefs.h
<<_ACEOF
19000 #define BITSIZEOF_${GLTYPE} $result
19003 eval BITSIZEOF_
${GLTYPE}=\
$result
19009 for gltype
in sig_atomic_t wchar_t wint_t
; do
19010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
19011 $as_echo_n "checking whether $gltype is signed... " >&6; }
19012 if { as_var
=gl_cv_type_
${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
19013 $as_echo_n "(cached) " >&6
19015 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19016 /* end confdefs.h. */
19018 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19019 included before <wchar.h>. */
19020 #include <stddef.h>
19021 #include <signal.h>
19023 # include <stdio.h>
19025 # include <wchar.h>
19028 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
19037 if ac_fn_c_try_compile
"$LINENO"; then :
19042 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19043 eval gl_cv_type_
${gltype}_signed
=\
$result
19046 eval ac_res
=\
$gl_cv_type_${gltype}_signed
19047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19048 $as_echo "$ac_res" >&6; }
19049 eval result
=\
$gl_cv_type_${gltype}_signed
19050 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
19051 if test "$result" = yes; then
19052 cat >>confdefs.h
<<_ACEOF
19053 #define HAVE_SIGNED_${GLTYPE} 1
19056 eval HAVE_SIGNED_
${GLTYPE}=1
19058 eval HAVE_SIGNED_
${GLTYPE}=0
19063 gl_cv_type_ptrdiff_t_signed
=yes
19064 gl_cv_type_size_t_signed
=no
19065 if test $APPLE_UNIVERSAL_BUILD = 0; then
19068 for gltype
in ptrdiff_t size_t
; do
19069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
19070 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
19071 if { as_var
=gl_cv_type_
${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
19072 $as_echo_n "(cached) " >&6
19074 eval gl_cv_type_
${gltype}_suffix
=no
19075 eval result
=\
$gl_cv_type_${gltype}_signed
19076 if test "$result" = yes; then
19081 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
19083 '') gltype1
='int';;
19084 l
) gltype1
='long int';;
19085 ll
) gltype1
='long long int';;
19086 i64
) gltype1
='__int64';;
19087 u
) gltype1
='unsigned int';;
19088 ul
) gltype1
='unsigned long int';;
19089 ull
) gltype1
='unsigned long long int';;
19090 ui64
)gltype1
='unsigned __int64';;
19092 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19093 /* end confdefs.h. */
19095 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19096 included before <wchar.h>. */
19097 #include <stddef.h>
19098 #include <signal.h>
19100 # include <stdio.h>
19102 # include <wchar.h>
19105 extern $gltype foo;
19106 extern $gltype1 foo;
19115 if ac_fn_c_try_compile
"$LINENO"; then :
19116 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
19118 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19119 eval result
=\
$gl_cv_type_${gltype}_suffix
19120 test "$result" != no
&& break
19123 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
19124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19125 $as_echo "$ac_res" >&6; }
19126 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
19127 eval result
=\
$gl_cv_type_${gltype}_suffix
19128 test "$result" = no
&& result
=
19129 eval ${GLTYPE}_SUFFIX
=\
$result
19130 cat >>confdefs.h
<<_ACEOF
19131 #define ${GLTYPE}_SUFFIX $result
19140 for gltype
in sig_atomic_t wchar_t wint_t
; do
19141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
19142 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
19143 if { as_var
=gl_cv_type_
${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
19144 $as_echo_n "(cached) " >&6
19146 eval gl_cv_type_
${gltype}_suffix
=no
19147 eval result
=\
$gl_cv_type_${gltype}_signed
19148 if test "$result" = yes; then
19153 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
19155 '') gltype1
='int';;
19156 l
) gltype1
='long int';;
19157 ll
) gltype1
='long long int';;
19158 i64
) gltype1
='__int64';;
19159 u
) gltype1
='unsigned int';;
19160 ul
) gltype1
='unsigned long int';;
19161 ull
) gltype1
='unsigned long long int';;
19162 ui64
)gltype1
='unsigned __int64';;
19164 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19165 /* end confdefs.h. */
19167 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19168 included before <wchar.h>. */
19169 #include <stddef.h>
19170 #include <signal.h>
19172 # include <stdio.h>
19174 # include <wchar.h>
19177 extern $gltype foo;
19178 extern $gltype1 foo;
19187 if ac_fn_c_try_compile
"$LINENO"; then :
19188 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
19190 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19191 eval result
=\
$gl_cv_type_${gltype}_suffix
19192 test "$result" != no
&& break
19195 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
19196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19197 $as_echo "$ac_res" >&6; }
19198 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
19199 eval result
=\
$gl_cv_type_${gltype}_suffix
19200 test "$result" = no
&& result
=
19201 eval ${GLTYPE}_SUFFIX
=\
$result
19202 cat >>confdefs.h
<<_ACEOF
19203 #define ${GLTYPE}_SUFFIX $result
19210 if test $BITSIZEOF_WINT_T -lt 32; then
19211 BITSIZEOF_WINT_T
=32
19217 if test -n "$STDINT_H"; then
19218 GL_GENERATE_STDINT_H_TRUE
=
19219 GL_GENERATE_STDINT_H_FALSE
='#'
19221 GL_GENERATE_STDINT_H_TRUE
='#'
19222 GL_GENERATE_STDINT_H_FALSE
=
19231 GNULIB_STRTOIMAX
=0;
19232 GNULIB_STRTOUMAX
=0;
19233 HAVE_DECL_IMAXABS
=1;
19234 HAVE_DECL_IMAXDIV
=1;
19235 HAVE_DECL_STRTOIMAX
=1;
19236 HAVE_DECL_STRTOUMAX
=1;
19237 REPLACE_STRTOIMAX
=0;
19238 INT32_MAX_LT_INTMAX_MAX
=1;
19239 INT64_MAX_EQ_LONG_MAX
='defined _LP64';
19240 PRI_MACROS_BROKEN
=0;
19241 PRIPTR_PREFIX
=__PRIPTR_PREFIX
;
19242 UINT32_MAX_LT_UINTMAX_MAX
=1;
19243 UINT64_MAX_EQ_ULONG_MAX
='defined _LP64';
19259 if test $gl_cv_have_include_next = yes; then
19260 gl_cv_next_inttypes_h
='<'inttypes.h
'>'
19262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
19263 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
19264 if test "${gl_cv_next_inttypes_h+set}" = set; then :
19265 $as_echo_n "(cached) " >&6
19268 if test $ac_cv_header_inttypes_h = yes; then
19271 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19272 /* end confdefs.h. */
19273 #include <inttypes.h>
19277 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
19278 *) gl_absname_cpp
="$ac_cpp" ;;
19283 gl_dirsep_regex
='[/\\]'
19286 gl_dirsep_regex
='\/'
19289 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
19291 gl_header_literal_regex
=`echo 'inttypes.h' \
19292 | sed -e "$gl_make_literal_regex_sed"`
19293 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19294 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19299 gl_cv_next_inttypes_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19300 sed -n "$gl_absolute_header_sed"`'"'
19302 gl_cv_next_inttypes_h
='<'inttypes.h
'>'
19307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
19308 $as_echo "$gl_cv_next_inttypes_h" >&6; }
19310 NEXT_INTTYPES_H
=$gl_cv_next_inttypes_h
19312 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
19313 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19314 gl_next_as_first_directive
='<'inttypes.h
'>'
19316 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19317 gl_next_as_first_directive
=$gl_cv_next_inttypes_h
19319 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
=$gl_next_as_first_directive
19333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5
19334 $as_echo_n "checking for 64-bit off_t... " >&6; }
19335 if test "${gl_cv_type_off_t_64+set}" = set; then :
19336 $as_echo_n "(cached) " >&6
19338 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19339 /* end confdefs.h. */
19340 #include <sys/types.h>
19341 int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1];
19351 if ac_fn_c_try_compile
"$LINENO"; then :
19352 gl_cv_type_off_t_64
=yes
19354 gl_cv_type_off_t_64
=no
19356 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5
19360 $as_echo "$gl_cv_type_off_t_64" >&6; }
19361 if test $gl_cv_type_off_t_64 = no
; then
19362 WINDOWS_64_BIT_OFF_T
=1
19364 WINDOWS_64_BIT_OFF_T
=0
19366 WINDOWS_64_BIT_ST_SIZE
=1
19369 WINDOWS_64_BIT_OFF_T
=0
19370 WINDOWS_64_BIT_ST_SIZE
=0
19383 GNULIB_RAWMEMCHR
=0;
19386 GNULIB_STRCHRNUL
=0;
19394 GNULIB_STRCASESTR
=0;
19401 GNULIB_MBSCASECMP
=0;
19402 GNULIB_MBSNCASECMP
=0;
19403 GNULIB_MBSPCASECMP
=0;
19404 GNULIB_MBSCASESTR
=0;
19411 GNULIB_STRERROR_R
=0;
19412 GNULIB_STRSIGNAL
=0;
19413 GNULIB_STRVERSCMP
=0;
19418 HAVE_DECL_MEMMEM
=1;
19420 HAVE_DECL_MEMRCHR
=1;
19425 HAVE_DECL_STRDUP
=1;
19426 HAVE_DECL_STRNDUP
=1;
19427 HAVE_DECL_STRNLEN
=1;
19431 HAVE_DECL_STRTOK_R
=1;
19432 HAVE_DECL_STRERROR_R
=1;
19433 HAVE_DECL_STRSIGNAL
=1;
19440 REPLACE_STRCASESTR
=0;
19441 REPLACE_STRCHRNUL
=0;
19442 REPLACE_STRERROR
=0;
19443 REPLACE_STRERROR_R
=0;
19447 REPLACE_STRSIGNAL
=0;
19448 REPLACE_STRTOK_R
=0;
19449 UNDEFINE_STRTOK_R
=0;
19451 ac_fn_c_check_decl
"$LINENO" "memrchr" "ac_cv_have_decl_memrchr" "$ac_includes_default"
19452 if test "x$ac_cv_have_decl_memrchr" = x
""yes; then :
19458 cat >>confdefs.h
<<_ACEOF
19459 #define HAVE_DECL_MEMRCHR $ac_have_decl
19464 GNULIB_NANOSLEEP
=0;
19468 HAVE_DECL_LOCALTIME_R
=1;
19472 REPLACE_LOCALTIME_R
=GNULIB_PORTCHECK
;
19473 REPLACE_MKTIME
=GNULIB_PORTCHECK
;
19474 REPLACE_NANOSLEEP
=GNULIB_PORTCHECK
;
19475 REPLACE_TIMEGM
=GNULIB_PORTCHECK
;
19491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/select.h> is self-contained" >&5
19492 $as_echo_n "checking whether <sys/select.h> is self-contained... " >&6; }
19493 if test "${gl_cv_header_sys_select_h_selfcontained+set}" = set; then :
19494 $as_echo_n "(cached) " >&6
19497 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19498 /* end confdefs.h. */
19499 #include <sys/select.h>
19508 if ac_fn_c_try_compile
"$LINENO"; then :
19509 gl_cv_header_sys_select_h_selfcontained
=yes
19511 gl_cv_header_sys_select_h_selfcontained
=no
19513 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19514 if test $gl_cv_header_sys_select_h_selfcontained = yes; then
19515 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19516 /* end confdefs.h. */
19517 #include <sys/select.h>
19521 int memset; int bzero;
19527 if ac_fn_c_try_compile
"$LINENO"; then :
19528 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19529 /* end confdefs.h. */
19530 #include <sys/select.h>
19536 #define memset nonexistent_memset
19541 void *memset (void *, int, unsigned long);
19543 #define bzero nonexistent_bzero
19548 void bzero (void *, unsigned long);
19557 if ac_fn_c_try_link
"$LINENO"; then :
19560 gl_cv_header_sys_select_h_selfcontained
=no
19562 rm -f core conftest.err conftest.
$ac_objext \
19563 conftest
$ac_exeext conftest.
$ac_ext
19566 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_selfcontained" >&5
19571 $as_echo "$gl_cv_header_sys_select_h_selfcontained" >&6; }
19581 if test $gl_cv_have_include_next = yes; then
19582 gl_cv_next_sys_select_h
='<'sys
/select.h
'>'
19584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/select.h>" >&5
19585 $as_echo_n "checking absolute name of <sys/select.h>... " >&6; }
19586 if test "${gl_cv_next_sys_select_h+set}" = set; then :
19587 $as_echo_n "(cached) " >&6
19590 if test $ac_cv_header_sys_select_h = yes; then
19593 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19594 /* end confdefs.h. */
19595 #include <sys/select.h>
19599 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
19600 *) gl_absname_cpp
="$ac_cpp" ;;
19605 gl_dirsep_regex
='[/\\]'
19608 gl_dirsep_regex
='\/'
19611 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
19613 gl_header_literal_regex
=`echo 'sys/select.h' \
19614 | sed -e "$gl_make_literal_regex_sed"`
19615 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19616 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19621 gl_cv_next_sys_select_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19622 sed -n "$gl_absolute_header_sed"`'"'
19624 gl_cv_next_sys_select_h
='<'sys
/select.h
'>'
19629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_select_h" >&5
19630 $as_echo "$gl_cv_next_sys_select_h" >&6; }
19632 NEXT_SYS_SELECT_H
=$gl_cv_next_sys_select_h
19634 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
19635 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19636 gl_next_as_first_directive
='<'sys
/select.h
'>'
19638 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19639 gl_next_as_first_directive
=$gl_cv_next_sys_select_h
19641 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H
=$gl_next_as_first_directive
19646 if test $ac_cv_header_sys_select_h = yes; then
19647 HAVE_SYS_SELECT_H
=1
19649 HAVE_SYS_SELECT_H
=0
19656 if test $ac_cv_header_sys_socket_h != yes; then
19657 for ac_header
in winsock2.h
19659 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
19660 if test "x$ac_cv_header_winsock2_h" = x
""yes; then :
19661 cat >>confdefs.h
<<_ACEOF
19662 #define HAVE_WINSOCK2_H 1
19670 if test "$ac_cv_header_winsock2_h" = yes; then
19672 UNISTD_H_HAVE_WINSOCK2_H
=1
19673 SYS_IOCTL_H_HAVE_WINSOCK2_H
=1
19685 GNULIB_PTHREAD_SIGMASK
=0;
19687 GNULIB_SIGNAL_H_SIGPIPE
=0;
19688 GNULIB_SIGPROCMASK
=0;
19689 GNULIB_SIGACTION
=0;
19690 HAVE_POSIX_SIGNALBLOCKING
=1;
19691 HAVE_PTHREAD_SIGMASK
=1;
19696 HAVE_STRUCT_SIGACTION_SA_SIGACTION
=1;
19698 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
=1;
19700 HAVE_SIGHANDLER_T
=1;
19701 REPLACE_PTHREAD_SIGMASK
=0;
19710 ac_fn_c_check_type
"$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
19711 #include <signal.h>
19712 /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */
19713 #include <sys/types.h>
19716 if test "x$ac_cv_type_sigset_t" = x
""yes; then :
19718 cat >>confdefs.h
<<_ACEOF
19719 #define HAVE_SIGSET_T 1
19722 gl_cv_type_sigset_t
=yes
19724 gl_cv_type_sigset_t
=no
19727 if test $gl_cv_type_sigset_t != yes; then
19733 if test $ac_cv_header_sys_socket_h = no
; then
19734 for ac_header
in ws2tcpip.h
19736 ac_fn_c_check_header_mongrel
"$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
19737 if test "x$ac_cv_header_ws2tcpip_h" = x
""yes; then :
19738 cat >>confdefs.h
<<_ACEOF
19739 #define HAVE_WS2TCPIP_H 1
19748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
19749 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
19750 if test "${ac_cv_header_stdbool_h+set}" = set; then :
19751 $as_echo_n "(cached) " >&6
19753 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19754 /* end confdefs.h. */
19756 #include <stdbool.h>
19758 "error: bool is not defined"
19761 "error: false is not defined"
19764 "error: false is not 0"
19767 "error: true is not defined"
19770 "error: true is not 1"
19772 #ifndef __bool_true_false_are_defined
19773 "error: __bool_true_false_are_defined is not defined"
19776 struct s { _Bool s: 1; _Bool t; } s;
19778 char a[true == 1 ? 1 : -1];
19779 char b[false == 0 ? 1 : -1];
19780 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
19781 char d[(bool) 0.5 == true ? 1 : -1];
19782 /* See body of main program for 'e'. */
19783 char f[(_Bool) 0.0 == false ? 1 : -1];
19785 char h[sizeof (_Bool)];
19786 char i[sizeof s.t];
19787 enum { j = false, k = true, l = false * true, m = true * 256 };
19788 /* The following fails for
19789 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
19791 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
19792 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
19793 /* Catch a bug in an HP-UX C compiler. See
19794 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
19795 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
19807 /* Refer to every declared value, to avoid compiler optimizations. */
19808 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
19809 + !m + !n + !o + !p + !q + !pq);
19815 if ac_fn_c_try_compile
"$LINENO"; then :
19816 ac_cv_header_stdbool_h
=yes
19818 ac_cv_header_stdbool_h
=no
19820 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
19823 $as_echo "$ac_cv_header_stdbool_h" >&6; }
19824 ac_fn_c_check_type
"$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
19825 if test "x$ac_cv_type__Bool" = x
""yes; then :
19827 cat >>confdefs.h
<<_ACEOF
19828 #define HAVE__BOOL 1
19840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
19841 $as_echo_n "checking for wchar_t... " >&6; }
19842 if test "${gt_cv_c_wchar_t+set}" = set; then :
19843 $as_echo_n "(cached) " >&6
19845 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19846 /* end confdefs.h. */
19847 #include <stddef.h>
19848 wchar_t foo = (wchar_t)'\0';
19857 if ac_fn_c_try_compile
"$LINENO"; then :
19858 gt_cv_c_wchar_t
=yes
19862 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
19865 $as_echo "$gt_cv_c_wchar_t" >&6; }
19866 if test $gt_cv_c_wchar_t = yes; then
19868 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
19881 GNULIB_FPRINTF_POSIX
=0;
19897 GNULIB_OBSTACK_PRINTF
=0;
19898 GNULIB_OBSTACK_PRINTF_POSIX
=0;
19903 GNULIB_PRINTF_POSIX
=0;
19912 GNULIB_SPRINTF_POSIX
=0;
19913 GNULIB_STDIO_H_NONBLOCKING
=0;
19914 GNULIB_STDIO_H_SIGPIPE
=0;
19916 GNULIB_VASPRINTF
=0;
19921 GNULIB_VFPRINTF_POSIX
=0;
19923 GNULIB_VPRINTF_POSIX
=0;
19924 GNULIB_VSNPRINTF
=0;
19925 GNULIB_VSPRINTF_POSIX
=0;
19926 HAVE_DECL_FPURGE
=1;
19927 HAVE_DECL_FSEEKO
=1;
19928 HAVE_DECL_FTELLO
=1;
19929 HAVE_DECL_GETDELIM
=1;
19930 HAVE_DECL_GETLINE
=1;
19931 HAVE_DECL_OBSTACK_PRINTF
=1;
19932 HAVE_DECL_SNPRINTF
=1;
19933 HAVE_DECL_VSNPRINTF
=1;
19954 REPLACE_GETDELIM
=0;
19956 REPLACE_OBSTACK_PRINTF
=0;
19962 REPLACE_RENAMEAT
=0;
19963 REPLACE_SNPRINTF
=0;
19965 REPLACE_STDIO_READ_FUNCS
=0;
19966 REPLACE_STDIO_WRITE_FUNCS
=0;
19968 REPLACE_VASPRINTF
=0;
19969 REPLACE_VDPRINTF
=0;
19970 REPLACE_VFPRINTF
=0;
19972 REPLACE_VSNPRINTF
=0;
19973 REPLACE_VSPRINTF
=0;
19975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
19976 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
19977 if test "${ac_cv_struct_tm+set}" = set; then :
19978 $as_echo_n "(cached) " >&6
19980 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19981 /* end confdefs.h. */
19982 #include <sys/types.h>
19989 int *p = &tm.tm_sec;
19995 if ac_fn_c_try_compile
"$LINENO"; then :
19996 ac_cv_struct_tm
=time.h
19998 ac_cv_struct_tm
=sys
/time.h
20000 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
20003 $as_echo "$ac_cv_struct_tm" >&6; }
20004 if test $ac_cv_struct_tm = sys
/time.h
; then
20006 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
20010 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
20011 #include <$ac_cv_struct_tm>
20014 if test "x$ac_cv_member_struct_tm_tm_zone" = x
""yes; then :
20016 cat >>confdefs.h
<<_ACEOF
20017 #define HAVE_STRUCT_TM_TM_ZONE 1
20023 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
20025 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
20028 ac_fn_c_check_decl
"$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
20030 if test "x$ac_cv_have_decl_tzname" = x
""yes; then :
20036 cat >>confdefs.h
<<_ACEOF
20037 #define HAVE_DECL_TZNAME $ac_have_decl
20040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
20041 $as_echo_n "checking for tzname... " >&6; }
20042 if test "${ac_cv_var_tzname+set}" = set; then :
20043 $as_echo_n "(cached) " >&6
20045 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20046 /* end confdefs.h. */
20048 #if !HAVE_DECL_TZNAME
20049 extern char *tzname[];
20055 return tzname[0][0];
20060 if ac_fn_c_try_link
"$LINENO"; then :
20061 ac_cv_var_tzname
=yes
20063 ac_cv_var_tzname
=no
20065 rm -f core conftest.err conftest.
$ac_objext \
20066 conftest
$ac_exeext conftest.
$ac_ext
20068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
20069 $as_echo "$ac_cv_var_tzname" >&6; }
20070 if test $ac_cv_var_tzname = yes; then
20072 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
20078 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
20080 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x
""yes; then :
20082 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
20098 if test $gl_cv_have_include_next = yes; then
20099 gl_cv_next_string_h
='<'string.h
'>'
20101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
20102 $as_echo_n "checking absolute name of <string.h>... " >&6; }
20103 if test "${gl_cv_next_string_h+set}" = set; then :
20104 $as_echo_n "(cached) " >&6
20107 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20108 /* end confdefs.h. */
20109 #include <string.h>
20113 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
20114 *) gl_absname_cpp
="$ac_cpp" ;;
20119 gl_dirsep_regex
='[/\\]'
20122 gl_dirsep_regex
='\/'
20125 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
20127 gl_header_literal_regex
=`echo 'string.h' \
20128 | sed -e "$gl_make_literal_regex_sed"`
20129 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
20130 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
20135 gl_cv_next_string_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20136 sed -n "$gl_absolute_header_sed"`'"'
20140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
20141 $as_echo "$gl_cv_next_string_h" >&6; }
20143 NEXT_STRING_H
=$gl_cv_next_string_h
20145 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
20146 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20147 gl_next_as_first_directive
='<'string.h
'>'
20149 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20150 gl_next_as_first_directive
=$gl_cv_next_string_h
20152 NEXT_AS_FIRST_DIRECTIVE_STRING_H
=$gl_next_as_first_directive
20162 ac_fn_c_check_decl
"$LINENO" "strtoimax" "ac_cv_have_decl_strtoimax" "$ac_includes_default"
20163 if test "x$ac_cv_have_decl_strtoimax" = x
""yes; then :
20169 cat >>confdefs.h
<<_ACEOF
20170 #define HAVE_DECL_STRTOIMAX $ac_have_decl
20175 ac_fn_c_check_decl
"$LINENO" "strtoumax" "ac_cv_have_decl_strtoumax" "$ac_includes_default"
20176 if test "x$ac_cv_have_decl_strtoumax" = x
""yes; then :
20182 cat >>confdefs.h
<<_ACEOF
20183 #define HAVE_DECL_STRTOUMAX $ac_have_decl
20188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
20189 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
20190 if test "${ac_cv_header_stat_broken+set}" = set; then :
20191 $as_echo_n "(cached) " >&6
20193 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20194 /* end confdefs.h. */
20195 #include <sys/types.h>
20196 #include <sys/stat.h>
20198 #if defined S_ISBLK && defined S_IFDIR
20199 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
20202 #if defined S_ISBLK && defined S_IFCHR
20203 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
20206 #if defined S_ISLNK && defined S_IFREG
20207 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
20210 #if defined S_ISSOCK && defined S_IFREG
20211 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
20215 if ac_fn_c_try_compile
"$LINENO"; then :
20216 ac_cv_header_stat_broken
=no
20218 ac_cv_header_stat_broken
=yes
20220 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
20223 $as_echo "$ac_cv_header_stat_broken" >&6; }
20224 if test $ac_cv_header_stat_broken = yes; then
20226 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
20234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
20235 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
20236 if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then :
20237 $as_echo_n "(cached) " >&6
20239 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20240 /* end confdefs.h. */
20246 static struct timespec x; x.tv_sec = x.tv_nsec;
20251 if ac_fn_c_try_compile
"$LINENO"; then :
20252 gl_cv_sys_struct_timespec_in_time_h
=yes
20254 gl_cv_sys_struct_timespec_in_time_h
=no
20256 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
20259 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
20261 TIME_H_DEFINES_STRUCT_TIMESPEC
=0
20262 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
=0
20263 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
=0
20264 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
20265 TIME_H_DEFINES_STRUCT_TIMESPEC
=1
20267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
20268 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
20269 if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then :
20270 $as_echo_n "(cached) " >&6
20272 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20273 /* end confdefs.h. */
20274 #include <sys/time.h>
20279 static struct timespec x; x.tv_sec = x.tv_nsec;
20284 if ac_fn_c_try_compile
"$LINENO"; then :
20285 gl_cv_sys_struct_timespec_in_sys_time_h
=yes
20287 gl_cv_sys_struct_timespec_in_sys_time_h
=no
20289 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
20292 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
20293 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
20294 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
=1
20296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
20297 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
20298 if test "${gl_cv_sys_struct_timespec_in_pthread_h+set}" = set; then :
20299 $as_echo_n "(cached) " >&6
20301 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20302 /* end confdefs.h. */
20303 #include <pthread.h>
20308 static struct timespec x; x.tv_sec = x.tv_nsec;
20313 if ac_fn_c_try_compile
"$LINENO"; then :
20314 gl_cv_sys_struct_timespec_in_pthread_h
=yes
20316 gl_cv_sys_struct_timespec_in_pthread_h
=no
20318 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
20321 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
20322 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
20323 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
=1
20342 if test $gl_cv_have_include_next = yes; then
20343 gl_cv_next_time_h
='<'time.h
'>'
20345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
20346 $as_echo_n "checking absolute name of <time.h>... " >&6; }
20347 if test "${gl_cv_next_time_h+set}" = set; then :
20348 $as_echo_n "(cached) " >&6
20351 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20352 /* end confdefs.h. */
20357 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
20358 *) gl_absname_cpp
="$ac_cpp" ;;
20363 gl_dirsep_regex
='[/\\]'
20366 gl_dirsep_regex
='\/'
20369 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
20371 gl_header_literal_regex
=`echo 'time.h' \
20372 | sed -e "$gl_make_literal_regex_sed"`
20373 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
20374 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
20379 gl_cv_next_time_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20380 sed -n "$gl_absolute_header_sed"`'"'
20384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
20385 $as_echo "$gl_cv_next_time_h" >&6; }
20387 NEXT_TIME_H
=$gl_cv_next_time_h
20389 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
20390 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20391 gl_next_as_first_directive
='<'time.h
'>'
20393 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20394 gl_next_as_first_directive
=$gl_cv_next_time_h
20396 NEXT_AS_FIRST_DIRECTIVE_TIME_H
=$gl_next_as_first_directive
20411 ac_fn_c_check_decl
"$LINENO" "unsetenv" "ac_cv_have_decl_unsetenv" "$ac_includes_default"
20412 if test "x$ac_cv_have_decl_unsetenv" = x
""yes; then :
20418 cat >>confdefs.h
<<_ACEOF
20419 #define HAVE_DECL_UNSETENV $ac_have_decl
20423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the utimes function works" >&5
20424 $as_echo_n "checking whether the utimes function works... " >&6; }
20425 if test "${gl_cv_func_working_utimes+set}" = set; then :
20426 $as_echo_n "(cached) " >&6
20429 if test "$cross_compiling" = yes; then :
20430 gl_cv_func_working_utimes
=no
20432 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20433 /* end confdefs.h. */
20435 #include <sys/types.h>
20436 #include <sys/stat.h>
20438 #include <sys/time.h>
20440 #include <unistd.h>
20441 #include <stdlib.h>
20446 inorder (time_t a, time_t b, time_t c)
20448 return a <= b && b <= c;
20455 char const *file = "conftest.utimes";
20456 static struct timeval timeval[2] = {{9, 10}, {999999, 999999}};
20458 /* Test whether utimes() essentially works. */
20461 FILE *f = fopen (file, "w");
20464 else if (fclose (f) != 0)
20466 else if (utimes (file, timeval) != 0)
20468 else if (lstat (file, &sbuf) != 0)
20470 else if (!(sbuf.st_atime == timeval[0].tv_sec
20471 && sbuf.st_mtime == timeval[1].tv_sec))
20473 if (unlink (file) != 0)
20477 /* Test whether utimes() with a NULL argument sets the file's timestamp
20478 to the current time. Use 'fstat' as well as 'time' to
20479 determine the "current" time, to accommodate NFS file systems
20480 if there is a time skew between the host and the NFS server. */
20482 int fd = open (file, O_WRONLY|O_CREAT, 0644);
20488 struct stat st0, st1, st2;
20489 if (time (&t0) == (time_t) -1)
20491 else if (fstat (fd, &st0) != 0)
20493 else if (utimes (file, timeval) != 0)
20495 else if (utimes (file, NULL) != 0)
20497 else if (fstat (fd, &st1) != 0)
20499 else if (write (fd, "\n", 1) != 1)
20501 else if (fstat (fd, &st2) != 0)
20503 else if (time (&t2) == (time_t) -1)
20507 int m_ok_POSIX = inorder (t0, st1.st_mtime, t2);
20508 int m_ok_NFS = inorder (st0.st_mtime, st1.st_mtime, st2.st_mtime);
20509 if (! (st1.st_atime == st1.st_mtime))
20511 if (! (m_ok_POSIX || m_ok_NFS))
20514 if (close (fd) != 0)
20517 if (unlink (file) != 0)
20521 /* Test whether utimes() with a NULL argument works on read-only files. */
20523 int fd = open (file, O_WRONLY|O_CREAT, 0444);
20526 else if (close (fd) != 0)
20528 else if (utimes (file, NULL) != 0)
20530 if (unlink (file) != 0)
20538 if ac_fn_c_try_run
"$LINENO"; then :
20539 gl_cv_func_working_utimes
=yes
20541 gl_cv_func_working_utimes
=no
20543 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20544 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_utimes" >&5
20549 $as_echo "$gl_cv_func_working_utimes" >&6; }
20551 if test $gl_cv_func_working_utimes = yes; then
20553 $as_echo "#define HAVE_WORKING_UTIMES 1" >>confdefs.h
20561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
20562 $as_echo_n "checking for struct utimbuf... " >&6; }
20563 if test "${gl_cv_sys_struct_utimbuf+set}" = set; then :
20564 $as_echo_n "(cached) " >&6
20566 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20567 /* end confdefs.h. */
20568 #if HAVE_SYS_TIME_H
20569 #include <sys/time.h>
20572 #ifdef HAVE_UTIME_H
20579 static struct utimbuf x; x.actime = x.modtime;
20584 if ac_fn_c_try_compile
"$LINENO"; then :
20585 gl_cv_sys_struct_utimbuf
=yes
20587 gl_cv_sys_struct_utimbuf
=no
20589 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_utimbuf" >&5
20592 $as_echo "$gl_cv_sys_struct_utimbuf" >&6; }
20594 if test $gl_cv_sys_struct_utimbuf = yes; then
20596 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
20610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5
20611 $as_echo_n "checking type of array argument to getgroups... " >&6; }
20612 if test "${ac_cv_type_getgroups+set}" = set; then :
20613 $as_echo_n "(cached) " >&6
20615 if test "$cross_compiling" = yes; then :
20616 ac_cv_type_getgroups
=cross
20618 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20619 /* end confdefs.h. */
20620 /* Thanks to Mike Rendell for this test. */
20621 $ac_includes_default
20624 #define MAX(x, y) ((x) > (y) ? (x) : (y))
20629 gid_t gidset[NGID];
20631 union { gid_t gval; long int lval; } val;
20634 for (i = 0; i < NGID; i++)
20635 gidset[i] = val.gval;
20636 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
20638 /* Exit non-zero if getgroups seems to require an array of ints. This
20639 happens when gid_t is short int but getgroups modifies an array
20641 return n > 0 && gidset[n] != val.gval;
20644 if ac_fn_c_try_run
"$LINENO"; then :
20645 ac_cv_type_getgroups
=gid_t
20647 ac_cv_type_getgroups
=int
20649 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20650 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20653 if test $ac_cv_type_getgroups = cross
; then
20654 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20655 /* end confdefs.h. */
20656 #include <unistd.h>
20659 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20660 $EGREP "getgroups.*int.*gid_t" >/dev
/null
2>&1; then :
20661 ac_cv_type_getgroups
=gid_t
20663 ac_cv_type_getgroups
=int
20669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5
20670 $as_echo "$ac_cv_type_getgroups" >&6; }
20672 cat >>confdefs.h
<<_ACEOF
20673 #define GETGROUPS_T $ac_cv_type_getgroups
20680 GL_COND_LIBTOOL_TRUE
=
20681 GL_COND_LIBTOOL_FALSE
='#'
20683 GL_COND_LIBTOOL_TRUE
='#'
20684 GL_COND_LIBTOOL_FALSE
=
20687 gl_cond_libtool
=false
20700 gl_source_base
='lib'
20703 if test $ac_cv_func_alloca_works = no
; then
20707 # Define an additional variable used in the Makefile substitution.
20708 if test $ac_cv_working_alloca_h = yes; then
20709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
20710 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
20711 if test "${gl_cv_rpl_alloca+set}" = set; then :
20712 $as_echo_n "(cached) " >&6
20715 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20716 /* end confdefs.h. */
20718 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
20723 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20724 $EGREP "Need own alloca" >/dev
/null
2>&1; then :
20725 gl_cv_rpl_alloca
=yes
20727 gl_cv_rpl_alloca
=no
20733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
20734 $as_echo "$gl_cv_rpl_alloca" >&6; }
20735 if test $gl_cv_rpl_alloca = yes; then
20737 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
20747 if test -n "$ALLOCA_H"; then
20748 GL_GENERATE_ALLOCA_H_TRUE
=
20749 GL_GENERATE_ALLOCA_H_FALSE
='#'
20751 GL_GENERATE_ALLOCA_H_TRUE
='#'
20752 GL_GENERATE_ALLOCA_H_FALSE
=
20760 # Solaris 2.5.1 needs -lposix4 to get the clock_gettime function.
20761 # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
20763 # Save and restore LIBS so e.g., -lrt, isn't added to it. Otherwise, *all*
20764 # programs in the package would end up linked with that potentially-shared
20765 # library, inducing unnecessary run-time overhead.
20768 gl_saved_libs
=$LIBS
20769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
20770 $as_echo_n "checking for library containing clock_gettime... " >&6; }
20771 if test "${ac_cv_search_clock_gettime+set}" = set; then :
20772 $as_echo_n "(cached) " >&6
20774 ac_func_search_save_LIBS
=$LIBS
20775 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20776 /* end confdefs.h. */
20778 /* Override any GCC internal prototype to avoid an error.
20779 Use char because int might match the return type of a GCC
20780 builtin and then its argument prototype would still apply. */
20784 char clock_gettime ();
20788 return clock_gettime ();
20793 for ac_lib
in '' rt posix4
; do
20794 if test -z "$ac_lib"; then
20795 ac_res
="none required"
20798 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
20800 if ac_fn_c_try_link
"$LINENO"; then :
20801 ac_cv_search_clock_gettime
=$ac_res
20803 rm -f core conftest.err conftest.
$ac_objext \
20805 if test "${ac_cv_search_clock_gettime+set}" = set; then :
20809 if test "${ac_cv_search_clock_gettime+set}" = set; then :
20812 ac_cv_search_clock_gettime
=no
20814 rm conftest.
$ac_ext
20815 LIBS
=$ac_func_search_save_LIBS
20817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
20818 $as_echo "$ac_cv_search_clock_gettime" >&6; }
20819 ac_res
=$ac_cv_search_clock_gettime
20820 if test "$ac_res" != no
; then :
20821 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
20822 test "$ac_cv_search_clock_gettime" = "none required" ||
20823 LIB_CLOCK_GETTIME
=$ac_cv_search_clock_gettime
20826 for ac_func
in clock_gettime clock_settime
20828 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20829 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
20830 eval as_val
=\$
$as_ac_var
20831 if test "x$as_val" = x
""yes; then :
20832 cat >>confdefs.h
<<_ACEOF
20833 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20839 LIBS
=$gl_saved_libs
20846 cat >>confdefs.h
<<_ACEOF
20847 #define GNULIB_CLOSE_STREAM 1
20877 if test $gl_cv_have_include_next = yes; then
20878 gl_cv_next_dirent_h
='<'dirent.h
'>'
20880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <dirent.h>" >&5
20881 $as_echo_n "checking absolute name of <dirent.h>... " >&6; }
20882 if test "${gl_cv_next_dirent_h+set}" = set; then :
20883 $as_echo_n "(cached) " >&6
20886 if test $ac_cv_header_dirent_h = yes; then
20889 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20890 /* end confdefs.h. */
20891 #include <dirent.h>
20895 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
20896 *) gl_absname_cpp
="$ac_cpp" ;;
20901 gl_dirsep_regex
='[/\\]'
20904 gl_dirsep_regex
='\/'
20907 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
20909 gl_header_literal_regex
=`echo 'dirent.h' \
20910 | sed -e "$gl_make_literal_regex_sed"`
20911 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
20912 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
20917 gl_cv_next_dirent_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20918 sed -n "$gl_absolute_header_sed"`'"'
20920 gl_cv_next_dirent_h
='<'dirent.h
'>'
20925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_dirent_h" >&5
20926 $as_echo "$gl_cv_next_dirent_h" >&6; }
20928 NEXT_DIRENT_H
=$gl_cv_next_dirent_h
20930 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
20931 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20932 gl_next_as_first_directive
='<'dirent.h
'>'
20934 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20935 gl_next_as_first_directive
=$gl_cv_next_dirent_h
20937 NEXT_AS_FIRST_DIRECTIVE_DIRENT_H
=$gl_next_as_first_directive
20942 if test $ac_cv_header_dirent_h = yes; then
20957 $as_echo "#define HAVE_DUP2 1" >>confdefs.h
20960 if test $HAVE_DUP2 = 1; then
20961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5
20962 $as_echo_n "checking whether dup2 works... " >&6; }
20963 if test "${gl_cv_func_dup2_works+set}" = set; then :
20964 $as_echo_n "(cached) " >&6
20966 if test "$cross_compiling" = yes; then :
20968 mingw
*) # on this platform, dup2 always returns 0 for success
20969 gl_cv_func_dup2_works
="guessing no" ;;
20970 cygwin
*) # on cygwin 1.5.x, dup2(1,1) returns 0
20971 gl_cv_func_dup2_works
="guessing no" ;;
20972 linux
*) # On linux between 2008-07-27 and 2009-05-11, dup2 of a
20973 # closed fd may yield -EBADF instead of -1 / errno=EBADF.
20974 gl_cv_func_dup2_works
="guessing no" ;;
20975 freebsd
*) # on FreeBSD 6.1, dup2(1,1000000) gives EMFILE, not EBADF.
20976 gl_cv_func_dup2_works
="guessing no" ;;
20977 haiku
*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC.
20978 gl_cv_func_dup2_works
="guessing no" ;;
20979 *) gl_cv_func_dup2_works
="guessing yes" ;;
20982 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20983 /* end confdefs.h. */
20985 #include <unistd.h>
20993 if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1)
20996 if (dup2 (1, 1) == 0)
20999 if (fcntl (1, F_GETFD) != FD_CLOEXEC)
21003 if (dup2 (0, 0) != -1)
21005 /* Many gnulib modules require POSIX conformance of EBADF. */
21006 if (dup2 (2, 1000000) == -1 && errno != EBADF)
21008 /* Flush out a cygwin core dump. */
21009 if (dup2 (2, -1) != -1 || errno != EBADF)
21018 if ac_fn_c_try_run
"$LINENO"; then :
21019 gl_cv_func_dup2_works
=yes
21021 gl_cv_func_dup2_works
=no
21023 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21024 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5
21030 $as_echo "$gl_cv_func_dup2_works" >&6; }
21031 case "$gl_cv_func_dup2_works" in
21040 if test $HAVE_DUP2 = 0 ||
test $REPLACE_DUP2 = 1; then
21049 gl_LIBOBJS
="$gl_LIBOBJS dup2.$ac_objext"
21080 EXECINFO_H
='execinfo.h'
21082 if test $ac_cv_header_execinfo_h = yes; then
21083 gl_saved_libs
=$LIBS
21084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing backtrace_symbols_fd" >&5
21085 $as_echo_n "checking for library containing backtrace_symbols_fd... " >&6; }
21086 if test "${ac_cv_search_backtrace_symbols_fd+set}" = set; then :
21087 $as_echo_n "(cached) " >&6
21089 ac_func_search_save_LIBS
=$LIBS
21090 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21091 /* end confdefs.h. */
21093 /* Override any GCC internal prototype to avoid an error.
21094 Use char because int might match the return type of a GCC
21095 builtin and then its argument prototype would still apply. */
21099 char backtrace_symbols_fd ();
21103 return backtrace_symbols_fd ();
21108 for ac_lib
in '' execinfo
; do
21109 if test -z "$ac_lib"; then
21110 ac_res
="none required"
21113 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
21115 if ac_fn_c_try_link
"$LINENO"; then :
21116 ac_cv_search_backtrace_symbols_fd
=$ac_res
21118 rm -f core conftest.err conftest.
$ac_objext \
21120 if test "${ac_cv_search_backtrace_symbols_fd+set}" = set; then :
21124 if test "${ac_cv_search_backtrace_symbols_fd+set}" = set; then :
21127 ac_cv_search_backtrace_symbols_fd
=no
21129 rm conftest.
$ac_ext
21130 LIBS
=$ac_func_search_save_LIBS
21132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_backtrace_symbols_fd" >&5
21133 $as_echo "$ac_cv_search_backtrace_symbols_fd" >&6; }
21134 ac_res
=$ac_cv_search_backtrace_symbols_fd
21135 if test "$ac_res" != no
; then :
21136 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
21137 test "$ac_cv_search_backtrace_symbols_fd" = "none required" ||
21138 LIB_EXECINFO
=$ac_cv_search_backtrace_symbols_fd
21141 LIBS
=$gl_saved_libs
21142 test "$ac_cv_search_backtrace_symbols_fd" = no || EXECINFO_H
=''
21145 if test -n "$EXECINFO_H"; then
21154 gl_LIBOBJS
="$gl_LIBOBJS execinfo.$ac_objext"
21160 if test -n "$EXECINFO_H"; then
21161 GL_GENERATE_EXECINFO_H_TRUE
=
21162 GL_GENERATE_EXECINFO_H_FALSE
='#'
21164 GL_GENERATE_EXECINFO_H_TRUE
='#'
21165 GL_GENERATE_EXECINFO_H_FALSE
=
21176 if test $ac_cv_func_faccessat = no
; then
21180 if test $HAVE_FACCESSAT = 0; then
21189 gl_LIBOBJS
="$gl_LIBOBJS faccessat.$ac_objext"
21192 for ac_func
in access
21194 ac_fn_c_check_func
"$LINENO" "access" "ac_cv_func_access"
21195 if test "x$ac_cv_func_access" = x
""yes; then :
21196 cat >>confdefs.h
<<_ACEOF
21197 #define HAVE_ACCESS 1
21207 cat >>confdefs.h
<<_ACEOF
21208 #define GNULIB_FACCESSAT 1
21234 if test $gl_cv_have_include_next = yes; then
21235 gl_cv_next_fcntl_h
='<'fcntl.h
'>'
21237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <fcntl.h>" >&5
21238 $as_echo_n "checking absolute name of <fcntl.h>... " >&6; }
21239 if test "${gl_cv_next_fcntl_h+set}" = set; then :
21240 $as_echo_n "(cached) " >&6
21243 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21244 /* end confdefs.h. */
21249 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
21250 *) gl_absname_cpp
="$ac_cpp" ;;
21255 gl_dirsep_regex
='[/\\]'
21258 gl_dirsep_regex
='\/'
21261 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
21263 gl_header_literal_regex
=`echo 'fcntl.h' \
21264 | sed -e "$gl_make_literal_regex_sed"`
21265 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21266 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21271 gl_cv_next_fcntl_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21272 sed -n "$gl_absolute_header_sed"`'"'
21276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_fcntl_h" >&5
21277 $as_echo "$gl_cv_next_fcntl_h" >&6; }
21279 NEXT_FCNTL_H
=$gl_cv_next_fcntl_h
21281 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
21282 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21283 gl_next_as_first_directive
='<'fcntl.h
'>'
21285 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21286 gl_next_as_first_directive
=$gl_cv_next_fcntl_h
21288 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H
=$gl_next_as_first_directive
21305 ac_fn_c_check_decl
"$LINENO" "fdopendir" "ac_cv_have_decl_fdopendir" "
21306 #include <dirent.h>
21309 if test "x$ac_cv_have_decl_fdopendir" = x
""yes; then :
21315 cat >>confdefs.h
<<_ACEOF
21316 #define HAVE_DECL_FDOPENDIR $ac_have_decl
21318 if test $ac_have_decl = 1; then :
21321 HAVE_DECL_FDOPENDIR
=0
21325 if test $ac_cv_func_fdopendir = no
; then
21328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fdopendir works" >&5
21329 $as_echo_n "checking whether fdopendir works... " >&6; }
21330 if test "${gl_cv_func_fdopendir_works+set}" = set; then :
21331 $as_echo_n "(cached) " >&6
21333 if test "$cross_compiling" = yes; then :
21335 # Guess yes on glibc systems.
21336 *-gnu*) gl_cv_func_fdopendir_works
="guessing yes" ;;
21337 # If we don't know, assume the worst.
21338 *) gl_cv_func_fdopendir_works
="guessing no" ;;
21342 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21343 /* end confdefs.h. */
21345 #include <dirent.h>
21347 #include <unistd.h>
21348 #if !HAVE_DECL_FDOPENDIR
21350 # ifdef __cplusplus
21353 DIR *fdopendir (int);
21360 int fd = open ("conftest.c", O_RDONLY);
21361 if (fd < 0) result |= 1;
21362 if (fdopendir (fd)) result |= 2;
21363 if (close (fd)) result |= 4;
21369 if ac_fn_c_try_run
"$LINENO"; then :
21370 gl_cv_func_fdopendir_works
=yes
21372 gl_cv_func_fdopendir_works
=no
21374 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21375 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fdopendir_works" >&5
21380 $as_echo "$gl_cv_func_fdopendir_works" >&6; }
21381 case "$gl_cv_func_fdopendir_works" in
21384 REPLACE_FDOPENDIR
=1
21389 if test $HAVE_FDOPENDIR = 0 ||
test $REPLACE_FDOPENDIR = 1; then
21398 gl_LIBOBJS
="$gl_LIBOBJS fdopendir.$ac_objext"
21414 cat >>confdefs.h
<<_ACEOF
21415 #define GNULIB_FDOPENDIR 1
21427 # include <stdio.h>
21428 # if HAVE_STDIO_EXT_H
21429 # include <stdio_ext.h>
21432 ac_fn_c_check_decl
"$LINENO" "__fpending" "ac_cv_have_decl___fpending" "$fp_headers
21434 if test "x$ac_cv_have_decl___fpending" = x
""yes; then :
21440 cat >>confdefs.h
<<_ACEOF
21441 #define HAVE_DECL___FPENDING $ac_have_decl
21445 if test $ac_cv_func___fpending = no
; then
21454 gl_LIBOBJS
="$gl_LIBOBJS fpending.$ac_objext"
21457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to determine the number of pending output bytes on a stream" >&5
21458 $as_echo_n "checking how to determine the number of pending output bytes on a stream... " >&6; }
21459 if test "${ac_cv_sys_pending_output_n_bytes+set}" = set; then :
21460 $as_echo_n "(cached) " >&6
21466 'fp->_IO_write_ptr - fp->_IO_write_base' \
21468 '# traditional Unix' \
21469 'fp->_ptr - fp->_base' \
21472 'fp->_p - fp->_bf._base' \
21474 '# SCO, Unixware' \
21475 '(fp->__ptr ? fp->__ptr - fp->__base : 0)' \
21478 '(fp->_Mode & 0x2000 /*_MWRITE*/ ? fp->_Next - fp->_Buf : 0)' \
21481 'fp->__bufp - fp->__buffer' \
21483 '# old glibc iostream?' \
21484 'fp->_pptr - fp->_pbase' \
21487 'fp->_ptr - fp->_buffer' \
21490 'fp->_ptr - fp->_buf' \
21493 'fp->wp - fp->buf' \
21496 '(*fp)->_ptr - (*fp)->_base' \
21498 '# e.g., DGUX R4.11; the info is not available' \
21502 # Skip each embedded comment.
21503 case "$ac_expr" in '#'*) continue;; esac
21505 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21506 /* end confdefs.h. */
21511 FILE *fp = stdin; (void) ($ac_expr);
21516 if ac_fn_c_try_compile
"$LINENO"; then :
21520 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21521 test "$fp_done" = yes && break
21524 ac_cv_sys_pending_output_n_bytes
=$ac_expr
21528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_pending_output_n_bytes" >&5
21529 $as_echo "$ac_cv_sys_pending_output_n_bytes" >&6; }
21531 cat >>confdefs.h
<<_ACEOF
21532 #define PENDING_OUTPUT_N_BYTES $ac_cv_sys_pending_output_n_bytes
21543 if test $ac_cv_func_fstatat = no
; then
21546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fstatat (..., 0) works" >&5
21547 $as_echo_n "checking whether fstatat (..., 0) works... " >&6; }
21548 if test "${gl_cv_func_fstatat_zero_flag+set}" = set; then :
21549 $as_echo_n "(cached) " >&6
21551 if test "$cross_compiling" = yes; then :
21553 aix
*) gl_cv_func_fstatat_zero_flag
="guessing no";;
21554 *) gl_cv_func_fstatat_zero_flag
="guessing yes";;
21558 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21559 /* end confdefs.h. */
21562 #include <sys/stat.h>
21567 return fstatat (AT_FDCWD, ".", &a, 0) != 0;
21571 if ac_fn_c_try_run
"$LINENO"; then :
21572 gl_cv_func_fstatat_zero_flag
=yes
21574 gl_cv_func_fstatat_zero_flag
=no
21576 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21577 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fstatat_zero_flag" >&5
21583 $as_echo "$gl_cv_func_fstatat_zero_flag" >&6; }
21585 case $gl_cv_func_fstatat_zero_flag+$gl_cv_func_lstat_dereferences_slashed_symlink in
21587 *) REPLACE_FSTATAT
=1
21588 case $gl_cv_func_fstatat_zero_flag in
21591 $as_echo "#define HAVE_WORKING_FSTATAT_ZERO_FLAG 1" >>confdefs.h
21599 if test $HAVE_FSTATAT = 0 ||
test $REPLACE_FSTATAT = 1; then
21608 gl_LIBOBJS
="$gl_LIBOBJS fstatat.$ac_objext"
21624 # Persuade glibc <stdlib.h> to declare getloadavg().
21629 # getloadvg is present in libc on glibc >= 2.2, Mac OS X, FreeBSD >= 2.0,
21630 # NetBSD >= 0.9, OpenBSD >= 2.0, Solaris >= 7.
21632 ac_fn_c_check_func
"$LINENO" "getloadavg" "ac_cv_func_getloadavg"
21633 if test "x$ac_cv_func_getloadavg" = x
""yes; then :
21636 gl_func_getloadavg_done
=no
21638 # Some systems with -lutil have (and need) -lkvm as well, some do not.
21639 # On Solaris, -lkvm requires nlist from -lelf, so check that first
21640 # to get the right answer into the cache.
21641 # For kstat on solaris, we need to test for libelf and libkvm to force the
21642 # definition of SVR4 below.
21643 if test $gl_func_getloadavg_done = no
; then
21644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
21645 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
21646 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then :
21647 $as_echo_n "(cached) " >&6
21649 ac_check_lib_save_LIBS
=$LIBS
21651 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21652 /* end confdefs.h. */
21654 /* Override any GCC internal prototype to avoid an error.
21655 Use char because int might match the return type of a GCC
21656 builtin and then its argument prototype would still apply. */
21664 return elf_begin ();
21669 if ac_fn_c_try_link
"$LINENO"; then :
21670 ac_cv_lib_elf_elf_begin
=yes
21672 ac_cv_lib_elf_elf_begin
=no
21674 rm -f core conftest.err conftest.
$ac_objext \
21675 conftest
$ac_exeext conftest.
$ac_ext
21676 LIBS
=$ac_check_lib_save_LIBS
21678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
21679 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
21680 if test "x$ac_cv_lib_elf_elf_begin" = x
""yes; then :
21684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
21685 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
21686 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then :
21687 $as_echo_n "(cached) " >&6
21689 ac_check_lib_save_LIBS
=$LIBS
21691 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21692 /* end confdefs.h. */
21694 /* Override any GCC internal prototype to avoid an error.
21695 Use char because int might match the return type of a GCC
21696 builtin and then its argument prototype would still apply. */
21704 return kvm_open ();
21709 if ac_fn_c_try_link
"$LINENO"; then :
21710 ac_cv_lib_kvm_kvm_open
=yes
21712 ac_cv_lib_kvm_kvm_open
=no
21714 rm -f core conftest.err conftest.
$ac_objext \
21715 conftest
$ac_exeext conftest.
$ac_ext
21716 LIBS
=$ac_check_lib_save_LIBS
21718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
21719 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
21720 if test "x$ac_cv_lib_kvm_kvm_open" = x
""yes; then :
21724 # Check for the 4.4BSD definition of getloadavg.
21725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
21726 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
21727 if test "${ac_cv_lib_util_getloadavg+set}" = set; then :
21728 $as_echo_n "(cached) " >&6
21730 ac_check_lib_save_LIBS
=$LIBS
21731 LIBS
="-lutil $LIBS"
21732 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21733 /* end confdefs.h. */
21735 /* Override any GCC internal prototype to avoid an error.
21736 Use char because int might match the return type of a GCC
21737 builtin and then its argument prototype would still apply. */
21741 char getloadavg ();
21745 return getloadavg ();
21750 if ac_fn_c_try_link
"$LINENO"; then :
21751 ac_cv_lib_util_getloadavg
=yes
21753 ac_cv_lib_util_getloadavg
=no
21755 rm -f core conftest.err conftest.
$ac_objext \
21756 conftest
$ac_exeext conftest.
$ac_ext
21757 LIBS
=$ac_check_lib_save_LIBS
21759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
21760 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
21761 if test "x$ac_cv_lib_util_getloadavg" = x
""yes; then :
21762 LIBS
="-lutil $LIBS" gl_func_getloadavg_done
=yes
21767 if test $gl_func_getloadavg_done = no
; then
21768 # There is a commonly available library for RS/6000 AIX.
21769 # Since it is not a standard part of AIX, it might be installed locally.
21770 gl_getloadavg_LIBS
=$LIBS
21771 LIBS
="-L/usr/local/lib $LIBS"
21772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
21773 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
21774 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then :
21775 $as_echo_n "(cached) " >&6
21777 ac_check_lib_save_LIBS
=$LIBS
21778 LIBS
="-lgetloadavg $LIBS"
21779 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21780 /* end confdefs.h. */
21782 /* Override any GCC internal prototype to avoid an error.
21783 Use char because int might match the return type of a GCC
21784 builtin and then its argument prototype would still apply. */
21788 char getloadavg ();
21792 return getloadavg ();
21797 if ac_fn_c_try_link
"$LINENO"; then :
21798 ac_cv_lib_getloadavg_getloadavg
=yes
21800 ac_cv_lib_getloadavg_getloadavg
=no
21802 rm -f core conftest.err conftest.
$ac_objext \
21803 conftest
$ac_exeext conftest.
$ac_ext
21804 LIBS
=$ac_check_lib_save_LIBS
21806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
21807 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
21808 if test "x$ac_cv_lib_getloadavg_getloadavg" = x
""yes; then :
21809 LIBS
="-lgetloadavg $LIBS" gl_func_getloadavg_done
=yes
21811 LIBS
=$gl_getloadavg_LIBS
21816 # Set up the replacement function if necessary.
21817 if test $gl_func_getloadavg_done = no
; then
21820 # Solaris has libkstat which does not require root.
21821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
21822 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
21823 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
21824 $as_echo_n "(cached) " >&6
21826 ac_check_lib_save_LIBS
=$LIBS
21827 LIBS
="-lkstat $LIBS"
21828 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21829 /* end confdefs.h. */
21831 /* Override any GCC internal prototype to avoid an error.
21832 Use char because int might match the return type of a GCC
21833 builtin and then its argument prototype would still apply. */
21837 char kstat_open ();
21841 return kstat_open ();
21846 if ac_fn_c_try_link
"$LINENO"; then :
21847 ac_cv_lib_kstat_kstat_open
=yes
21849 ac_cv_lib_kstat_kstat_open
=no
21851 rm -f core conftest.err conftest.
$ac_objext \
21852 conftest
$ac_exeext conftest.
$ac_ext
21853 LIBS
=$ac_check_lib_save_LIBS
21855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
21856 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
21857 if test "x$ac_cv_lib_kstat_kstat_open" = x
""yes; then :
21858 cat >>confdefs.h
<<_ACEOF
21859 #define HAVE_LIBKSTAT 1
21862 LIBS
="-lkstat $LIBS"
21866 test $ac_cv_lib_kstat_kstat_open = yes && gl_func_getloadavg_done
=yes
21868 # AIX has libperfstat which does not require root
21869 if test $gl_func_getloadavg_done = no
; then
21870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perfstat_cpu_total in -lperfstat" >&5
21871 $as_echo_n "checking for perfstat_cpu_total in -lperfstat... " >&6; }
21872 if test "${ac_cv_lib_perfstat_perfstat_cpu_total+set}" = set; then :
21873 $as_echo_n "(cached) " >&6
21875 ac_check_lib_save_LIBS
=$LIBS
21876 LIBS
="-lperfstat $LIBS"
21877 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21878 /* end confdefs.h. */
21880 /* Override any GCC internal prototype to avoid an error.
21881 Use char because int might match the return type of a GCC
21882 builtin and then its argument prototype would still apply. */
21886 char perfstat_cpu_total ();
21890 return perfstat_cpu_total ();
21895 if ac_fn_c_try_link
"$LINENO"; then :
21896 ac_cv_lib_perfstat_perfstat_cpu_total
=yes
21898 ac_cv_lib_perfstat_perfstat_cpu_total
=no
21900 rm -f core conftest.err conftest.
$ac_objext \
21901 conftest
$ac_exeext conftest.
$ac_ext
21902 LIBS
=$ac_check_lib_save_LIBS
21904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_perfstat_perfstat_cpu_total" >&5
21905 $as_echo "$ac_cv_lib_perfstat_perfstat_cpu_total" >&6; }
21906 if test "x$ac_cv_lib_perfstat_perfstat_cpu_total" = x
""yes; then :
21907 cat >>confdefs.h
<<_ACEOF
21908 #define HAVE_LIBPERFSTAT 1
21911 LIBS
="-lperfstat $LIBS"
21915 test $ac_cv_lib_perfstat_perfstat_cpu_total = yes && gl_func_getloadavg_done
=yes
21918 if test $gl_func_getloadavg_done = no
; then
21919 ac_fn_c_check_header_mongrel
"$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
21920 if test "x$ac_cv_header_sys_dg_sys_info_h" = x
""yes; then :
21921 gl_func_getloadavg_done
=yes
21923 $as_echo "#define DGUX 1" >>confdefs.h
21925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
21926 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
21927 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then :
21928 $as_echo_n "(cached) " >&6
21930 ac_check_lib_save_LIBS
=$LIBS
21932 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21933 /* end confdefs.h. */
21935 /* Override any GCC internal prototype to avoid an error.
21936 Use char because int might match the return type of a GCC
21937 builtin and then its argument prototype would still apply. */
21941 char dg_sys_info ();
21945 return dg_sys_info ();
21950 if ac_fn_c_try_link
"$LINENO"; then :
21951 ac_cv_lib_dgc_dg_sys_info
=yes
21953 ac_cv_lib_dgc_dg_sys_info
=no
21955 rm -f core conftest.err conftest.
$ac_objext \
21956 conftest
$ac_exeext conftest.
$ac_ext
21957 LIBS
=$ac_check_lib_save_LIBS
21959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
21960 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
21961 if test "x$ac_cv_lib_dgc_dg_sys_info" = x
""yes; then :
21962 cat >>confdefs.h
<<_ACEOF
21963 #define HAVE_LIBDGC 1
21978 if test "x$gl_save_LIBS" = x
; then
21979 GETLOADAVG_LIBS
=$LIBS
21981 GETLOADAVG_LIBS
=`echo "$LIBS" | sed "s!$gl_save_LIBS!!"`
21986 # Test whether the system declares getloadavg. Solaris has the function
21987 # but declares it in <sys/loadavg.h>, not <stdlib.h>.
21988 for ac_header
in sys
/loadavg.h
21990 ac_fn_c_check_header_mongrel
"$LINENO" "sys/loadavg.h" "ac_cv_header_sys_loadavg_h" "$ac_includes_default"
21991 if test "x$ac_cv_header_sys_loadavg_h" = x
""yes; then :
21992 cat >>confdefs.h
<<_ACEOF
21993 #define HAVE_SYS_LOADAVG_H 1
22000 if test $ac_cv_header_sys_loadavg_h = yes; then
22001 HAVE_SYS_LOADAVG_H
=1
22003 HAVE_SYS_LOADAVG_H
=0
22005 ac_fn_c_check_decl
"$LINENO" "getloadavg" "ac_cv_have_decl_getloadavg" "#if HAVE_SYS_LOADAVG_H
22006 # include <sys/loadavg.h>
22008 #include <stdlib.h>
22010 if test "x$ac_cv_have_decl_getloadavg" = x
""yes; then :
22013 HAVE_DECL_GETLOADAVG
=0
22017 if test $HAVE_GETLOADAVG = 0; then
22026 gl_LIBOBJS
="$gl_LIBOBJS getloadavg.$ac_objext"
22029 # Figure out what our getloadavg.c needs.
22033 # On HPUX9, an unprivileged user can get load averages this way.
22034 if test $gl_func_getloadavg_done = no
; then
22035 for ac_func
in pstat_getdynamic
22037 ac_fn_c_check_func
"$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
22038 if test "x$ac_cv_func_pstat_getdynamic" = x
""yes; then :
22039 cat >>confdefs.h
<<_ACEOF
22040 #define HAVE_PSTAT_GETDYNAMIC 1
22042 gl_func_getloadavg_done
=yes
22048 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
22049 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
22050 # Irix 4.0.5F has the header but not the library.
22051 if test $gl_func_getloadavg_done = no
&& test "$ac_cv_lib_elf_elf_begin" = yes \
22052 && test "$ac_cv_lib_kvm_kvm_open" = yes; then
22053 gl_func_getloadavg_done
=yes
22055 $as_echo "#define SVR4 1" >>confdefs.h
22059 if test $gl_func_getloadavg_done = no
; then
22060 ac_fn_c_check_header_mongrel
"$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
22061 if test "x$ac_cv_header_inq_stats_cpustats_h" = x
""yes; then :
22062 gl_func_getloadavg_done
=yes
22064 $as_echo "#define UMAX 1" >>confdefs.h
22067 $as_echo "#define UMAX4_3 1" >>confdefs.h
22074 if test $gl_func_getloadavg_done = no
; then
22075 ac_fn_c_check_header_mongrel
"$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
22076 if test "x$ac_cv_header_sys_cpustats_h" = x
""yes; then :
22077 gl_func_getloadavg_done
=yes; $as_echo "#define UMAX 1" >>confdefs.h
22084 if test $gl_func_getloadavg_done = no
; then
22085 for ac_header
in mach
/mach.h
22087 ac_fn_c_check_header_mongrel
"$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
22088 if test "x$ac_cv_header_mach_mach_h" = x
""yes; then :
22089 cat >>confdefs.h
<<_ACEOF
22090 #define HAVE_MACH_MACH_H 1
22099 for ac_header
in nlist.h
22101 ac_fn_c_check_header_mongrel
"$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
22102 if test "x$ac_cv_header_nlist_h" = x
""yes; then :
22103 cat >>confdefs.h
<<_ACEOF
22104 #define HAVE_NLIST_H 1
22106 ac_fn_c_check_member
"$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
22108 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x
""yes; then :
22110 cat >>confdefs.h
<<_ACEOF
22111 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
22117 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22118 /* end confdefs.h. */
22124 #ifdef HAVE_STRUCT_NLIST_N_UN_N_NAME
22125 x.n_un.n_name = "";
22133 if ac_fn_c_try_link
"$LINENO"; then :
22135 $as_echo "#define N_NAME_POINTER 1" >>confdefs.h
22138 rm -f core conftest.err conftest.
$ac_objext \
22139 conftest
$ac_exeext conftest.
$ac_ext
22151 GNULIB_GETLOADAVG
=1
22162 if test $REPLACE_GETOPT = 1; then
22171 gl_LIBOBJS
="$gl_LIBOBJS getopt.$ac_objext"
22181 gl_LIBOBJS
="$gl_LIBOBJS getopt1.$ac_objext"
22186 GNULIB_GL_UNISTD_H_GETOPT
=1
22196 if test -n "$gl_replace_getopt"; then
22200 if test $REPLACE_GETOPT = 1; then
22204 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
22210 if test $REPLACE_GETOPT = 1; then
22219 gl_LIBOBJS
="$gl_LIBOBJS getopt.$ac_objext"
22229 gl_LIBOBJS
="$gl_LIBOBJS getopt1.$ac_objext"
22234 GNULIB_GL_UNISTD_H_GETOPT
=1
22248 gl_gettimeofday_timezone
=void
22249 if test $ac_cv_func_gettimeofday != yes; then
22250 HAVE_GETTIMEOFDAY
=0
22255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday clobbers localtime buffer" >&5
22256 $as_echo_n "checking whether gettimeofday clobbers localtime buffer... " >&6; }
22257 if test "${gl_cv_func_gettimeofday_clobber+set}" = set; then :
22258 $as_echo_n "(cached) " >&6
22260 if test "$cross_compiling" = yes; then :
22261 # When cross-compiling:
22263 # Guess all is fine on glibc systems.
22264 *-gnu*) gl_cv_func_gettimeofday_clobber
="guessing no" ;;
22265 # If we don't know, assume the worst.
22266 *) gl_cv_func_gettimeofday_clobber
="guessing yes" ;;
22270 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22271 /* end confdefs.h. */
22272 #include <string.h>
22273 #include <sys/time.h>
22275 #include <stdlib.h>
22283 struct tm saved_lt;
22285 lt = localtime (&t);
22287 gettimeofday (&tv, NULL);
22288 return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0;
22294 if ac_fn_c_try_run
"$LINENO"; then :
22295 gl_cv_func_gettimeofday_clobber
=no
22297 gl_cv_func_gettimeofday_clobber
=yes
22299 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22300 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_clobber" >&5
22305 $as_echo "$gl_cv_func_gettimeofday_clobber" >&6; }
22307 case "$gl_cv_func_gettimeofday_clobber" in
22309 REPLACE_GETTIMEOFDAY
=1
22312 $as_echo "#define gmtime rpl_gmtime" >>confdefs.h
22315 $as_echo "#define localtime rpl_localtime" >>confdefs.h
22319 $as_echo "#define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1" >>confdefs.h
22324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday with POSIX signature" >&5
22325 $as_echo_n "checking for gettimeofday with POSIX signature... " >&6; }
22326 if test "${gl_cv_func_gettimeofday_posix_signature+set}" = set; then :
22327 $as_echo_n "(cached) " >&6
22329 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22330 /* end confdefs.h. */
22331 #include <sys/time.h>
22333 int gettimeofday (struct timeval *restrict, void *restrict);
22338 /* glibc uses struct timezone * rather than the POSIX void *
22339 if _GNU_SOURCE is defined. However, since the only portable
22340 use of gettimeofday uses NULL as the second parameter, and
22341 since the glibc definition is actually more typesafe, it is
22342 not worth wrapping this to get a compliant signature. */
22343 int (*f) (struct timeval *restrict, void *restrict)
22346 return !(x | c.tv_sec | c.tv_usec);
22352 if ac_fn_c_try_compile
"$LINENO"; then :
22353 gl_cv_func_gettimeofday_posix_signature
=yes
22355 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22356 /* end confdefs.h. */
22357 #include <sys/time.h>
22358 int gettimeofday (struct timeval *restrict, struct timezone *restrict);
22368 if ac_fn_c_try_compile
"$LINENO"; then :
22369 gl_cv_func_gettimeofday_posix_signature
=almost
22371 gl_cv_func_gettimeofday_posix_signature
=no
22373 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22375 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_posix_signature" >&5
22378 $as_echo "$gl_cv_func_gettimeofday_posix_signature" >&6; }
22379 if test $gl_cv_func_gettimeofday_posix_signature = almost
; then
22380 gl_gettimeofday_timezone
='struct timezone'
22381 elif test $gl_cv_func_gettimeofday_posix_signature != yes; then
22382 REPLACE_GETTIMEOFDAY
=1
22384 if test $REPLACE_STRUCT_TIMEVAL = 1; then
22385 REPLACE_GETTIMEOFDAY
=1
22390 cat >>confdefs.h
<<_ACEOF
22391 #define GETTIMEOFDAY_TIMEZONE $gl_gettimeofday_timezone
22395 if test $HAVE_GETTIMEOFDAY = 0 ||
test $REPLACE_GETTIMEOFDAY = 1; then
22404 gl_LIBOBJS
="$gl_LIBOBJS gettimeofday.$ac_objext"
22407 for ac_header
in sys
/timeb.h
22409 ac_fn_c_check_header_mongrel
"$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
22410 if test "x$ac_cv_header_sys_timeb_h" = x
""yes; then :
22411 cat >>confdefs.h
<<_ACEOF
22412 #define HAVE_SYS_TIMEB_H 1
22419 for ac_func
in _ftime
22421 ac_fn_c_check_func
"$LINENO" "_ftime" "ac_cv_func__ftime"
22422 if test "x$ac_cv_func__ftime" = x
""yes; then :
22423 cat >>confdefs.h
<<_ACEOF
22424 #define HAVE__FTIME 1
22437 GNULIB_GETTIMEOFDAY
=1
22448 if test $ac_cv_func_lstat = yes; then
22450 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
22459 if test $REPLACE_LSTAT = 1; then
22468 gl_LIBOBJS
="$gl_LIBOBJS lstat.$ac_objext"
22488 if test $ac_cv_have_decl_memrchr = no
; then
22489 HAVE_DECL_MEMRCHR
=0
22492 for ac_func
in memrchr
22494 ac_fn_c_check_func
"$LINENO" "memrchr" "ac_cv_func_memrchr"
22495 if test "x$ac_cv_func_memrchr" = x
""yes; then :
22496 cat >>confdefs.h
<<_ACEOF
22497 #define HAVE_MEMRCHR 1
22504 if test $ac_cv_func_memrchr = no
; then
22513 gl_LIBOBJS
="$gl_LIBOBJS memrchr.$ac_objext"
22534 if test $APPLE_UNIVERSAL_BUILD = 1; then
22535 # A universal build on Apple Mac OS X platforms.
22536 # The test result would be 'yes' in 32-bit mode and 'no' in 64-bit mode.
22537 # But we need a configuration result that is valid in both modes.
22538 gl_cv_func_working_mktime
=no
22540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
22541 $as_echo_n "checking for working mktime... " >&6; }
22542 if test "${gl_cv_func_working_mktime+set}" = set; then :
22543 $as_echo_n "(cached) " >&6
22545 if test "$cross_compiling" = yes; then :
22546 gl_cv_func_working_mktime
=no
22548 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22549 /* end confdefs.h. */
22550 /* Test program from Paul Eggert and Tony Leneis. */
22551 #include <limits.h>
22552 #include <stdlib.h>
22555 #ifdef HAVE_UNISTD_H
22556 # include <unistd.h>
22560 # define alarm(X) /* empty */
22563 /* Work around redefinition to rpl_putenv by other config tests. */
22566 static time_t time_t_max;
22567 static time_t time_t_min;
22569 /* Values we'll use to set the TZ environment variable. */
22570 static char *tz_strings[] = {
22571 (char *) 0, "TZ=GMT0", "TZ=JST-9",
22572 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
22574 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
22576 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
22577 Based on a problem report from Andreas Jaeger. */
22579 spring_forward_gap ()
22581 /* glibc (up to about 1998-10-07) failed this test. */
22584 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
22585 instead of "TZ=America/Vancouver" in order to detect the bug even
22586 on systems that don't support the Olson extension, or don't have the
22587 full zoneinfo tables installed. */
22588 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
22597 return mktime (&tm) != (time_t) -1;
22601 mktime_test1 (time_t now)
22604 return ! (lt = localtime (&now)) || mktime (lt) == now;
22608 mktime_test (time_t now)
22610 return (mktime_test1 (now)
22611 && mktime_test1 ((time_t) (time_t_max - now))
22612 && mktime_test1 ((time_t) (time_t_min + now)));
22618 /* Based on code from Ariel Faigon. */
22628 return tm.tm_mon == 2 && tm.tm_mday == 31;
22632 bigtime_test (int j)
22636 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
22637 now = mktime (&tm);
22638 if (now != (time_t) -1)
22640 struct tm *lt = localtime (&now);
22642 && lt->tm_year == tm.tm_year
22643 && lt->tm_mon == tm.tm_mon
22644 && lt->tm_mday == tm.tm_mday
22645 && lt->tm_hour == tm.tm_hour
22646 && lt->tm_min == tm.tm_min
22647 && lt->tm_sec == tm.tm_sec
22648 && lt->tm_yday == tm.tm_yday
22649 && lt->tm_wday == tm.tm_wday
22650 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
22651 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
22660 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
22661 ignoring leap seconds. */
22662 unsigned long int answer = 2527315200UL;
22666 tm.tm_year = 2050 - 1900;
22669 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
22672 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
22673 instead of "TZ=America/Vancouver" in order to detect the bug even
22674 on systems that don't support the Olson extension, or don't have the
22675 full zoneinfo tables installed. */
22676 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
22680 /* Check that the result is either a failure, or close enough
22681 to the correct answer that we can assume the discrepancy is
22682 due to leap seconds. */
22683 return (t == (time_t) -1
22684 || (0 < t && answer - 120 <= t && t <= answer + 120));
22693 int time_t_signed_magnitude = (time_t) ~ (time_t) 0 < (time_t) -1;
22694 int time_t_signed = ! ((time_t) 0 < (time_t) -1);
22696 /* This test makes some buggy mktime implementations loop.
22697 Give up after 60 seconds; a mktime slower than that
22698 isn't worth using anyway. */
22701 time_t_max = (! time_t_signed
22703 : ((((time_t) 1 << (sizeof (time_t) * CHAR_BIT - 2)) - 1)
22705 time_t_min = (! time_t_signed
22707 : time_t_signed_magnitude
22711 delta = time_t_max / 997; /* a suitable prime number */
22712 for (i = 0; i < N_STRINGS; i++)
22715 putenv (tz_strings[i]);
22717 for (t = 0; t <= time_t_max - delta && (result & 1) == 0; t += delta)
22718 if (! mktime_test (t))
22720 if ((result & 2) == 0
22721 && ! (mktime_test ((time_t) 1)
22722 && mktime_test ((time_t) (60 * 60))
22723 && mktime_test ((time_t) (60 * 60 * 24))))
22726 for (j = 1; (result & 4) == 0; j <<= 1)
22728 if (! bigtime_test (j))
22730 if (INT_MAX / 2 < j)
22733 if ((result & 8) == 0 && ! bigtime_test (INT_MAX))
22736 if (! irix_6_4_bug ())
22738 if (! spring_forward_gap ())
22740 if (! year_2050_test ())
22745 if ac_fn_c_try_run
"$LINENO"; then :
22746 gl_cv_func_working_mktime
=yes
22748 gl_cv_func_working_mktime
=no
22750 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22751 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_mktime" >&5
22757 $as_echo "$gl_cv_func_working_mktime" >&6; }
22759 if test $gl_cv_func_working_mktime = no
; then
22765 if test $REPLACE_MKTIME = 1; then
22774 gl_LIBOBJS
="$gl_LIBOBJS mktime.$ac_objext"
22795 if test $ac_cv_func_pselect = yes; then
22796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether signature of pselect conforms to POSIX" >&5
22797 $as_echo_n "checking whether signature of pselect conforms to POSIX... " >&6; }
22798 if test "${gl_cv_sig_pselect+set}" = set; then :
22799 $as_echo_n "(cached) " >&6
22801 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22802 /* end confdefs.h. */
22803 #include <sys/select.h>
22808 int (*p) (int, fd_set *, fd_set *, fd_set *restrict,
22809 struct timespec const *restrict,
22810 sigset_t const *restrict) = pselect;
22816 if ac_fn_c_try_link
"$LINENO"; then :
22817 gl_cv_sig_pselect
=yes
22819 gl_cv_sig_pselect
=no
22821 rm -f core conftest.err conftest.
$ac_objext \
22822 conftest
$ac_exeext conftest.
$ac_ext
22824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sig_pselect" >&5
22825 $as_echo "$gl_cv_sig_pselect" >&6; }
22827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pselect detects invalid fds" >&5
22828 $as_echo_n "checking whether pselect detects invalid fds... " >&6; }
22829 if test "${gl_cv_func_pselect_detects_ebadf+set}" = set; then :
22830 $as_echo_n "(cached) " >&6
22833 if test "$cross_compiling" = yes; then :
22836 # Guess yes on glibc systems.
22837 *-gnu*) gl_cv_func_pselect_detects_ebadf
="guessing yes" ;;
22838 # If we don't know, assume the worst.
22839 *) gl_cv_func_pselect_detects_ebadf
="guessing no" ;;
22843 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22844 /* end confdefs.h. */
22846 #include <sys/types.h>
22847 #include <sys/time.h>
22848 #if HAVE_SYS_SELECT_H
22849 # include <sys/select.h>
22851 #include <unistd.h>
22863 struct timespec timeout;
22864 timeout.tv_sec = 0;
22865 timeout.tv_nsec = 5000;
22866 return pselect (17, &set, NULL, NULL, &timeout, NULL) != -1 || errno != EBADF;
22872 if ac_fn_c_try_run
"$LINENO"; then :
22873 gl_cv_func_pselect_detects_ebadf
=yes
22875 gl_cv_func_pselect_detects_ebadf
=no
22877 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22878 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pselect_detects_ebadf" >&5
22884 $as_echo "$gl_cv_func_pselect_detects_ebadf" >&6; }
22885 case $gl_cv_func_pselect_detects_ebadf in
22887 *) REPLACE_PSELECT
=1 ;;
22891 if test $ac_cv_func_pselect = no ||
test $gl_cv_sig_pselect = no
; then
22895 if test $HAVE_PSELECT = 0 ||
test $REPLACE_PSELECT = 1; then
22904 gl_LIBOBJS
="$gl_LIBOBJS pselect.$ac_objext"
22922 LIB_PTHREAD_SIGMASK
=
22927 if test "$gl_threads_api" = posix
; then
22928 if test $ac_cv_func_pthread_sigmask = yes; then
22931 if test -n "$LIBMULTITHREAD"; then
22932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_sigmask in $LIBMULTITHREAD" >&5
22933 $as_echo_n "checking for pthread_sigmask in $LIBMULTITHREAD... " >&6; }
22934 if test "${gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD+set}" = set; then :
22935 $as_echo_n "(cached) " >&6
22937 gl_save_LIBS
="$LIBS"
22938 LIBS
="$LIBS $LIBMULTITHREAD"
22939 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22940 /* end confdefs.h. */
22941 #include <pthread.h>
22942 #include <signal.h>
22947 return pthread_sigmask (0, (sigset_t *) 0, (sigset_t *) 0);
22953 if ac_fn_c_try_link
"$LINENO"; then :
22954 gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD
=yes
22956 gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD
=no
22958 rm -f core conftest.err conftest.
$ac_objext \
22959 conftest
$ac_exeext conftest.
$ac_ext
22960 LIBS
="$gl_save_LIBS"
22963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD" >&5
22964 $as_echo "$gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD" >&6; }
22965 if test $gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD = yes; then
22966 LIB_PTHREAD_SIGMASK
="$LIBMULTITHREAD"
22968 HAVE_PTHREAD_SIGMASK
=0
22971 HAVE_PTHREAD_SIGMASK
=0
22975 if test $ac_cv_func_pthread_sigmask = yes; then
22976 REPLACE_PTHREAD_SIGMASK
=1
22978 HAVE_PTHREAD_SIGMASK
=0
22985 if test $HAVE_PTHREAD_SIGMASK = 1; then
22988 if test -z "$LIB_PTHREAD_SIGMASK"; then
22989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask works without -lpthread" >&5
22990 $as_echo_n "checking whether pthread_sigmask works without -lpthread... " >&6; }
22991 if test "${gl_cv_func_pthread_sigmask_in_libc_works+set}" = set; then :
22992 $as_echo_n "(cached) " >&6
22995 if test "$cross_compiling" = yes; then :
22998 freebsd
* | hpux
* | solaris | solaris2.
[2-9]*)
22999 gl_cv_func_pthread_sigmask_in_libc_works
="guessing no";;
23001 gl_cv_func_pthread_sigmask_in_libc_works
="guessing yes";;
23005 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23006 /* end confdefs.h. */
23008 #include <pthread.h>
23009 #include <signal.h>
23010 #include <stddef.h>
23014 sigemptyset (&set);
23015 return pthread_sigmask (1729, &set, NULL) != 0;
23018 if ac_fn_c_try_run
"$LINENO"; then :
23019 gl_cv_func_pthread_sigmask_in_libc_works
=no
23021 gl_cv_func_pthread_sigmask_in_libc_works
=yes
23023 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23024 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_in_libc_works" >&5
23030 $as_echo "$gl_cv_func_pthread_sigmask_in_libc_works" >&6; }
23031 case "$gl_cv_func_pthread_sigmask_in_libc_works" in
23033 REPLACE_PTHREAD_SIGMASK
=1
23035 $as_echo "#define PTHREAD_SIGMASK_INEFFECTIVE 1" >>confdefs.h
23041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask returns error numbers" >&5
23042 $as_echo_n "checking whether pthread_sigmask returns error numbers... " >&6; }
23043 if test "${gl_cv_func_pthread_sigmask_return_works+set}" = set; then :
23044 $as_echo_n "(cached) " >&6
23047 gl_save_LIBS
="$LIBS"
23048 LIBS
="$LIBS $LIB_PTHREAD_SIGMASK"
23049 if test "$cross_compiling" = yes; then :
23052 gl_cv_func_pthread_sigmask_return_works
="guessing no";;
23054 gl_cv_func_pthread_sigmask_return_works
="guessing yes";;
23058 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23059 /* end confdefs.h. */
23061 #include <pthread.h>
23062 #include <signal.h>
23063 #include <stddef.h>
23067 sigemptyset (&set);
23068 if (pthread_sigmask (1729, &set, NULL) == -1)
23073 if ac_fn_c_try_run
"$LINENO"; then :
23074 gl_cv_func_pthread_sigmask_return_works
=yes
23076 gl_cv_func_pthread_sigmask_return_works
=no
23078 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23079 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23082 LIBS
="$gl_save_LIBS"
23085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_return_works" >&5
23086 $as_echo "$gl_cv_func_pthread_sigmask_return_works" >&6; }
23087 case "$gl_cv_func_pthread_sigmask_return_works" in
23089 REPLACE_PTHREAD_SIGMASK
=1
23091 $as_echo "#define PTHREAD_SIGMASK_FAILS_WITH_ERRNO 1" >>confdefs.h
23096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask unblocks signals correctly" >&5
23097 $as_echo_n "checking whether pthread_sigmask unblocks signals correctly... " >&6; }
23098 if test "${gl_cv_func_pthread_sigmask_unblock_works+set}" = set; then :
23099 $as_echo_n "(cached) " >&6
23104 gl_cv_func_pthread_sigmask_unblock_works
="guessing no";;
23106 gl_cv_func_pthread_sigmask_unblock_works
="guessing yes";;
23108 gl_save_LIBS
="$LIBS"
23109 LIBS
="$LIBS $LIBMULTITHREAD"
23110 if test "$cross_compiling" = yes; then :
23113 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23114 /* end confdefs.h. */
23116 #include <pthread.h>
23117 #include <signal.h>
23119 #include <stdlib.h>
23120 #include <unistd.h>
23121 static volatile int sigint_occurred;
23123 sigint_handler (int sig)
23130 int pid = getpid ();
23132 signal (SIGINT, sigint_handler);
23133 sigemptyset (&set);
23134 sigaddset (&set, SIGINT);
23135 if (!(pthread_sigmask (SIG_BLOCK, &set, NULL) == 0))
23137 sprintf (command, "sh -c 'sleep 1; kill -%d %d' &", SIGINT, pid);
23138 if (!(system (command) == 0))
23141 if (!(sigint_occurred == 0))
23143 if (!(pthread_sigmask (SIG_UNBLOCK, &set, NULL) == 0))
23145 if (!(sigint_occurred == 1)) /* This fails on IRIX. */
23150 if ac_fn_c_try_run
"$LINENO"; then :
23153 gl_cv_func_pthread_sigmask_unblock_works
=no
23155 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23156 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23159 LIBS
="$gl_save_LIBS"
23162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_unblock_works" >&5
23163 $as_echo "$gl_cv_func_pthread_sigmask_unblock_works" >&6; }
23164 case "$gl_cv_func_pthread_sigmask_unblock_works" in
23166 REPLACE_PTHREAD_SIGMASK
=1
23168 $as_echo "#define PTHREAD_SIGMASK_UNBLOCK_BUG 1" >>confdefs.h
23174 if test $HAVE_PTHREAD_SIGMASK = 0 ||
test $REPLACE_PTHREAD_SIGMASK = 1; then
23183 gl_LIBOBJS
="$gl_LIBOBJS pthread_sigmask.$ac_objext"
23186 if test $HAVE_PTHREAD_SIGMASK = 1; then
23188 $as_echo "#define HAVE_PTHREAD_SIGMASK 1" >>confdefs.h
23198 GNULIB_PTHREAD_SIGMASK
=1
23206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for putenv compatible with GNU and SVID" >&5
23207 $as_echo_n "checking for putenv compatible with GNU and SVID... " >&6; }
23208 if test "${gl_cv_func_svid_putenv+set}" = set; then :
23209 $as_echo_n "(cached) " >&6
23211 if test "$cross_compiling" = yes; then :
23213 # Guess yes on glibc systems.
23214 *-gnu*) gl_cv_func_svid_putenv
="guessing yes" ;;
23215 # If we don't know, assume the worst.
23216 *) gl_cv_func_svid_putenv
="guessing no" ;;
23220 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23221 /* end confdefs.h. */
23222 $ac_includes_default
23227 /* Put it in env. */
23228 if (putenv ("CONFTEST_putenv=val"))
23231 /* Try to remove it. */
23232 if (putenv ("CONFTEST_putenv"))
23235 /* Make sure it was deleted. */
23236 if (getenv ("CONFTEST_putenv") != 0)
23245 if ac_fn_c_try_run
"$LINENO"; then :
23246 gl_cv_func_svid_putenv
=yes
23248 gl_cv_func_svid_putenv
=no
23250 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23251 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_svid_putenv" >&5
23257 $as_echo "$gl_cv_func_svid_putenv" >&6; }
23258 case "$gl_cv_func_svid_putenv" in
23265 if test $REPLACE_PUTENV = 1; then
23274 gl_LIBOBJS
="$gl_LIBOBJS putenv.$ac_objext"
23291 if test $ac_cv_func_readlink = no
; then
23294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
23295 $as_echo_n "checking whether readlink signature is correct... " >&6; }
23296 if test "${gl_cv_decl_readlink_works+set}" = set; then :
23297 $as_echo_n "(cached) " >&6
23299 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23300 /* end confdefs.h. */
23301 #include <unistd.h>
23302 /* Cause compilation failure if original declaration has wrong type. */
23303 ssize_t readlink (const char *, char *, size_t);
23312 if ac_fn_c_try_compile
"$LINENO"; then :
23313 gl_cv_decl_readlink_works
=yes
23315 gl_cv_decl_readlink_works
=no
23317 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
23320 $as_echo "$gl_cv_decl_readlink_works" >&6; }
23321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
23322 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
23323 if test "${gl_cv_func_readlink_works+set}" = set; then :
23324 $as_echo_n "(cached) " >&6
23326 # We have readlink, so assume ln -s works.
23327 ln -s conftest.no-such conftest.link
23328 ln -s conftest.link conftest.lnk2
23329 if test "$cross_compiling" = yes; then :
23331 # Guess yes on glibc systems.
23332 *-gnu*) gl_cv_func_readlink_works
="guessing yes" ;;
23333 # If we don't know, assume the worst.
23334 *) gl_cv_func_readlink_works
="guessing no" ;;
23338 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23339 /* end confdefs.h. */
23340 #include <unistd.h>
23346 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
23351 if ac_fn_c_try_run
"$LINENO"; then :
23352 gl_cv_func_readlink_works
=yes
23354 gl_cv_func_readlink_works
=no
23356 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23357 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23360 rm -f conftest.link conftest.lnk2
23362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
23363 $as_echo "$gl_cv_func_readlink_works" >&6; }
23364 case "$gl_cv_func_readlink_works" in
23366 if test "$gl_cv_decl_readlink_works" != yes; then
23372 $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
23379 if test $HAVE_READLINK = 0 ||
test $REPLACE_READLINK = 1; then
23388 gl_LIBOBJS
="$gl_LIBOBJS readlink.$ac_objext"
23409 if test $ac_cv_func_readlinkat = no
; then
23413 if test $HAVE_READLINKAT = 0; then
23422 gl_LIBOBJS
="$gl_LIBOBJS readlinkat.$ac_objext"
23430 GNULIB_READLINKAT
=1
23437 for ac_func
in sig2str
23439 ac_fn_c_check_func
"$LINENO" "sig2str" "ac_cv_func_sig2str"
23440 if test "x$ac_cv_func_sig2str" = x
""yes; then :
23441 cat >>confdefs.h
<<_ACEOF
23442 #define HAVE_SIG2STR 1
23449 if test $ac_cv_func_sig2str = no
; then
23458 gl_LIBOBJS
="$gl_LIBOBJS sig2str.$ac_objext"
23475 if test $gl_cv_have_include_next = yes; then
23476 gl_cv_next_signal_h
='<'signal.h
'>'
23478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
23479 $as_echo_n "checking absolute name of <signal.h>... " >&6; }
23480 if test "${gl_cv_next_signal_h+set}" = set; then :
23481 $as_echo_n "(cached) " >&6
23484 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23485 /* end confdefs.h. */
23486 #include <signal.h>
23490 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
23491 *) gl_absname_cpp
="$ac_cpp" ;;
23496 gl_dirsep_regex
='[/\\]'
23499 gl_dirsep_regex
='\/'
23502 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
23504 gl_header_literal_regex
=`echo 'signal.h' \
23505 | sed -e "$gl_make_literal_regex_sed"`
23506 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23507 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23512 gl_cv_next_signal_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23513 sed -n "$gl_absolute_header_sed"`'"'
23517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
23518 $as_echo "$gl_cv_next_signal_h" >&6; }
23520 NEXT_SIGNAL_H
=$gl_cv_next_signal_h
23522 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
23523 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23524 gl_next_as_first_directive
='<'signal.h
'>'
23526 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23527 gl_next_as_first_directive
=$gl_cv_next_signal_h
23529 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
=$gl_next_as_first_directive
23535 # AIX declares sig_atomic_t to already include volatile, and C89 compilers
23536 # then choke on 'volatile sig_atomic_t'. C99 requires that it compile.
23537 ac_fn_c_check_type
"$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
23538 #include <signal.h>
23541 if test "x$ac_cv_type_volatile_sig_atomic_t" = x
""yes; then :
23544 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
=0
23553 ac_fn_c_check_type
"$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
23554 #include <signal.h>
23557 if test "x$ac_cv_type_sighandler_t" = x
""yes; then :
23560 HAVE_SIGHANDLER_T
=0
23566 ac_fn_c_check_type
"$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
23567 /* <sys/types.h> is not needed according to POSIX, but the
23568 <sys/socket.h> in i386-unknown-freebsd4.10 and
23569 powerpc-apple-darwin5.5 required it. */
23570 #include <sys/types.h>
23571 #if HAVE_SYS_SOCKET_H
23572 # include <sys/socket.h>
23573 #elif HAVE_WS2TCPIP_H
23574 # include <ws2tcpip.h>
23578 if test "x$ac_cv_type_socklen_t" = x
""yes; then :
23581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
23582 $as_echo_n "checking for socklen_t equivalent... " >&6; }
23583 if test "${gl_cv_socklen_t_equiv+set}" = set; then :
23584 $as_echo_n "(cached) " >&6
23586 # Systems have either "struct sockaddr *" or
23587 # "void *" as the second argument to getpeername
23588 gl_cv_socklen_t_equiv
=
23589 for arg2
in "struct sockaddr" void
; do
23590 for t
in int size_t
"unsigned int" "long int" "unsigned long int"; do
23591 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23592 /* end confdefs.h. */
23593 #include <sys/types.h>
23594 #include <sys/socket.h>
23596 int getpeername (int, $arg2 *, $t *);
23601 getpeername (0, 0, &len);
23606 if ac_fn_c_try_compile
"$LINENO"; then :
23607 gl_cv_socklen_t_equiv
="$t"
23609 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23610 test "$gl_cv_socklen_t_equiv" != "" && break
23612 test "$gl_cv_socklen_t_equiv" != "" && break
23617 if test "$gl_cv_socklen_t_equiv" = ""; then
23618 as_fn_error
"Cannot find a type to use in place of socklen_t" "$LINENO" 5
23620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
23621 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
23623 cat >>confdefs.h
<<_ACEOF
23624 #define socklen_t $gl_cv_socklen_t_equiv
23630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
23631 $as_echo_n "checking for ssize_t... " >&6; }
23632 if test "${gt_cv_ssize_t+set}" = set; then :
23633 $as_echo_n "(cached) " >&6
23635 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23636 /* end confdefs.h. */
23637 #include <sys/types.h>
23641 int x = sizeof (ssize_t *) + sizeof (ssize_t);
23647 if ac_fn_c_try_compile
"$LINENO"; then :
23652 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
23655 $as_echo "$gt_cv_ssize_t" >&6; }
23656 if test $gt_cv_ssize_t = no
; then
23658 $as_echo "#define ssize_t int" >>confdefs.h
23666 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>
23667 #include <sys/stat.h>
23669 if test "x$ac_cv_member_struct_stat_st_atim_tv_nsec" = x
""yes; then :
23671 cat >>confdefs.h
<<_ACEOF
23672 #define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1
23675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat.st_atim is of type struct timespec" >&5
23676 $as_echo_n "checking whether struct stat.st_atim is of type struct timespec... " >&6; }
23677 if test "${ac_cv_typeof_struct_stat_st_atim_is_struct_timespec+set}" = set; then :
23678 $as_echo_n "(cached) " >&6
23680 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23681 /* end confdefs.h. */
23683 #include <sys/types.h>
23684 #include <sys/stat.h>
23685 #if HAVE_SYS_TIME_H
23686 # include <sys/time.h>
23689 struct timespec ts;
23702 if ac_fn_c_try_compile
"$LINENO"; then :
23703 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec
=yes
23705 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec
=no
23707 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&5
23710 $as_echo "$ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&6; }
23711 if test $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec = yes; then
23713 $as_echo "#define TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC 1" >>confdefs.h
23717 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>
23718 #include <sys/stat.h>
23720 if test "x$ac_cv_member_struct_stat_st_atimespec_tv_nsec" = x
""yes; then :
23722 cat >>confdefs.h
<<_ACEOF
23723 #define HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC 1
23728 ac_fn_c_check_member
"$LINENO" "struct stat" "st_atimensec" "ac_cv_member_struct_stat_st_atimensec" "#include <sys/types.h>
23729 #include <sys/stat.h>
23731 if test "x$ac_cv_member_struct_stat_st_atimensec" = x
""yes; then :
23733 cat >>confdefs.h
<<_ACEOF
23734 #define HAVE_STRUCT_STAT_ST_ATIMENSEC 1
23739 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>
23740 #include <sys/stat.h>
23742 if test "x$ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" = x
""yes; then :
23744 cat >>confdefs.h
<<_ACEOF
23745 #define HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC 1
23761 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>
23762 #include <sys/stat.h>
23764 if test "x$ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" = x
""yes; then :
23766 cat >>confdefs.h
<<_ACEOF
23767 #define HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC 1
23772 ac_fn_c_check_member
"$LINENO" "struct stat" "st_birthtimensec" "ac_cv_member_struct_stat_st_birthtimensec" "#include <sys/types.h>
23773 #include <sys/stat.h>
23775 if test "x$ac_cv_member_struct_stat_st_birthtimensec" = x
""yes; then :
23777 cat >>confdefs.h
<<_ACEOF
23778 #define HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC 1
23783 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>
23784 #include <sys/stat.h>
23786 if test "x$ac_cv_member_struct_stat_st_birthtim_tv_nsec" = x
""yes; then :
23788 cat >>confdefs.h
<<_ACEOF
23789 #define HAVE_STRUCT_STAT_ST_BIRTHTIM_TV_NSEC 1
23801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdalign.h" >&5
23802 $as_echo_n "checking for working stdalign.h... " >&6; }
23803 if test "${gl_cv_header_working_stdalign_h+set}" = set; then :
23804 $as_echo_n "(cached) " >&6
23806 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23807 /* end confdefs.h. */
23808 #include <stdalign.h>
23809 #include <stddef.h>
23811 /* Test that alignof yields a result consistent with offsetof.
23812 This catches GCC bug 52023
23813 <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023>. */
23815 template <class t> struct alignof_helper { char a; t b; };
23816 # define ao(type) offsetof (alignof_helper<type>, b)
23818 # define ao(type) offsetof (struct { char a; type b; }, b)
23820 char test_double[ao (double) % _Alignof (double) == 0 ? 1 : -1];
23821 char test_long[ao (long int) % _Alignof (long int) == 0 ? 1 : -1];
23822 char test_alignof[alignof (double) == _Alignof (double) ? 1 : -1];
23824 /* Test _Alignas only on platforms where gnulib can help. */
23826 (__GNUC__ || __IBMC__ || __IBMCPP__ \
23827 || 0x5110 <= __SUNPRO_C || 1300 <= _MSC_VER)
23828 int alignas (8) alignas_int = 1;
23829 char test_alignas[_Alignof (alignas_int) == 8 ? 1 : -1];
23840 if ac_fn_c_try_compile
"$LINENO"; then :
23841 gl_cv_header_working_stdalign_h
=yes
23843 gl_cv_header_working_stdalign_h
=no
23845 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdalign_h" >&5
23848 $as_echo "$gl_cv_header_working_stdalign_h" >&6; }
23850 if test $gl_cv_header_working_stdalign_h = yes; then
23853 STDALIGN_H
='stdalign.h'
23857 if test -n "$STDALIGN_H"; then
23858 GL_GENERATE_STDALIGN_H_TRUE
=
23859 GL_GENERATE_STDALIGN_H_FALSE
='#'
23861 GL_GENERATE_STDALIGN_H_TRUE
='#'
23862 GL_GENERATE_STDALIGN_H_FALSE
=
23868 NEXT_STDARG_H
='<stdarg.h>'
23869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
23870 $as_echo_n "checking for va_copy... " >&6; }
23871 if test "${gl_cv_func_va_copy+set}" = set; then :
23872 $as_echo_n "(cached) " >&6
23875 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23876 /* end confdefs.h. */
23877 #include <stdarg.h>
23883 void (*func) (va_list, va_list) = va_copy;
23890 if ac_fn_c_try_compile
"$LINENO"; then :
23891 gl_cv_func_va_copy
=yes
23893 gl_cv_func_va_copy
=no
23895 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_va_copy" >&5
23899 $as_echo "$gl_cv_func_va_copy" >&6; }
23900 if test $gl_cv_func_va_copy = no
; then
23901 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23902 /* end confdefs.h. */
23903 #if defined _AIX && !defined __GNUC__
23908 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23909 $EGREP "vaccine" >/dev
/null
2>&1; then :
23916 if test $gl_aixcc = yes; then
23926 if test $gl_cv_have_include_next = yes; then
23927 gl_cv_next_stdarg_h
='<'stdarg.h
'>'
23929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdarg.h>" >&5
23930 $as_echo_n "checking absolute name of <stdarg.h>... " >&6; }
23931 if test "${gl_cv_next_stdarg_h+set}" = set; then :
23932 $as_echo_n "(cached) " >&6
23935 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23936 /* end confdefs.h. */
23937 #include <stdarg.h>
23941 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
23942 *) gl_absname_cpp
="$ac_cpp" ;;
23947 gl_dirsep_regex
='[/\\]'
23950 gl_dirsep_regex
='\/'
23953 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
23955 gl_header_literal_regex
=`echo 'stdarg.h' \
23956 | sed -e "$gl_make_literal_regex_sed"`
23957 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23958 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23963 gl_cv_next_stdarg_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23964 sed -n "$gl_absolute_header_sed"`'"'
23968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdarg_h" >&5
23969 $as_echo "$gl_cv_next_stdarg_h" >&6; }
23971 NEXT_STDARG_H
=$gl_cv_next_stdarg_h
23973 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
23974 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23975 gl_next_as_first_directive
='<'stdarg.h
'>'
23977 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23978 gl_next_as_first_directive
=$gl_cv_next_stdarg_h
23980 NEXT_AS_FIRST_DIRECTIVE_STDARG_H
=$gl_next_as_first_directive
23985 if test "$gl_cv_next_stdarg_h" = '""'; then
23986 gl_cv_next_stdarg_h
='"///usr/include/stdarg.h"'
23987 NEXT_STDARG_H
="$gl_cv_next_stdarg_h"
23991 saved_as_echo_n
="$as_echo_n"
23993 if test "${gl_cv_func___va_copy+set}" = set; then :
23994 $as_echo_n "(cached) " >&6
23997 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23998 /* end confdefs.h. */
23999 #include <stdarg.h>
24012 if ac_fn_c_try_compile
"$LINENO"; then :
24013 gl_cv_func___va_copy
=yes
24015 gl_cv_func___va_copy
=no
24017 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24020 as_echo_n
="$saved_as_echo_n"
24022 if test $gl_cv_func___va_copy = yes; then
24024 $as_echo "#define va_copy __va_copy" >>confdefs.h
24029 $as_echo "#define va_copy gl_va_copy" >>confdefs.h
24035 if test -n "$STDARG_H"; then
24036 GL_GENERATE_STDARG_H_TRUE
=
24037 GL_GENERATE_STDARG_H_FALSE
='#'
24039 GL_GENERATE_STDARG_H_TRUE
='#'
24040 GL_GENERATE_STDARG_H_FALSE
=
24048 # Define two additional variables used in the Makefile substitution.
24050 if test "$ac_cv_header_stdbool_h" = yes; then
24053 STDBOOL_H
='stdbool.h'
24056 if test -n "$STDBOOL_H"; then
24057 GL_GENERATE_STDBOOL_H_TRUE
=
24058 GL_GENERATE_STDBOOL_H_FALSE
='#'
24060 GL_GENERATE_STDBOOL_H_TRUE
='#'
24061 GL_GENERATE_STDBOOL_H_FALSE
=
24065 if test "$ac_cv_type__Bool" = yes; then
24076 if test $gt_cv_c_wchar_t = no
; then
24080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
24081 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
24082 if test "${gl_cv_decl_null_works+set}" = set; then :
24083 $as_echo_n "(cached) " >&6
24085 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24086 /* end confdefs.h. */
24087 #include <stddef.h>
24088 int test[2 * (sizeof NULL == sizeof (void *)) -1];
24098 if ac_fn_c_try_compile
"$LINENO"; then :
24099 gl_cv_decl_null_works
=yes
24101 gl_cv_decl_null_works
=no
24103 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
24106 $as_echo "$gl_cv_decl_null_works" >&6; }
24107 if test $gl_cv_decl_null_works = no
; then
24112 if test -n "$STDDEF_H"; then
24113 GL_GENERATE_STDDEF_H_TRUE
=
24114 GL_GENERATE_STDDEF_H_FALSE
='#'
24116 GL_GENERATE_STDDEF_H_TRUE
='#'
24117 GL_GENERATE_STDDEF_H_FALSE
=
24120 if test -n "$STDDEF_H"; then
24129 if test $gl_cv_have_include_next = yes; then
24130 gl_cv_next_stddef_h
='<'stddef.h
'>'
24132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
24133 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
24134 if test "${gl_cv_next_stddef_h+set}" = set; then :
24135 $as_echo_n "(cached) " >&6
24138 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24139 /* end confdefs.h. */
24140 #include <stddef.h>
24144 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
24145 *) gl_absname_cpp
="$ac_cpp" ;;
24150 gl_dirsep_regex
='[/\\]'
24153 gl_dirsep_regex
='\/'
24156 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
24158 gl_header_literal_regex
=`echo 'stddef.h' \
24159 | sed -e "$gl_make_literal_regex_sed"`
24160 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24161 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24166 gl_cv_next_stddef_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24167 sed -n "$gl_absolute_header_sed"`'"'
24171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
24172 $as_echo "$gl_cv_next_stddef_h" >&6; }
24174 NEXT_STDDEF_H
=$gl_cv_next_stddef_h
24176 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
24177 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24178 gl_next_as_first_directive
='<'stddef.h
'>'
24180 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24181 gl_next_as_first_directive
=$gl_cv_next_stddef_h
24183 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
=$gl_next_as_first_directive
24201 if test $gl_cv_have_include_next = yes; then
24202 gl_cv_next_stdio_h
='<'stdio.h
'>'
24204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
24205 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
24206 if test "${gl_cv_next_stdio_h+set}" = set; then :
24207 $as_echo_n "(cached) " >&6
24210 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24211 /* end confdefs.h. */
24216 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
24217 *) gl_absname_cpp
="$ac_cpp" ;;
24222 gl_dirsep_regex
='[/\\]'
24225 gl_dirsep_regex
='\/'
24228 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
24230 gl_header_literal_regex
=`echo 'stdio.h' \
24231 | sed -e "$gl_make_literal_regex_sed"`
24232 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24233 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24238 gl_cv_next_stdio_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24239 sed -n "$gl_absolute_header_sed"`'"'
24243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
24244 $as_echo "$gl_cv_next_stdio_h" >&6; }
24246 NEXT_STDIO_H
=$gl_cv_next_stdio_h
24248 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
24249 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24250 gl_next_as_first_directive
='<'stdio.h
'>'
24252 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24253 gl_next_as_first_directive
=$gl_cv_next_stdio_h
24255 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
=$gl_next_as_first_directive
24264 cat >>confdefs.h
<<_ACEOF
24265 #define GNULIB_FSCANF 1
24272 cat >>confdefs.h
<<_ACEOF
24273 #define GNULIB_SCANF 1
24309 if test $gl_cv_have_include_next = yes; then
24310 gl_cv_next_stdlib_h
='<'stdlib.h
'>'
24312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
24313 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
24314 if test "${gl_cv_next_stdlib_h+set}" = set; then :
24315 $as_echo_n "(cached) " >&6
24318 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24319 /* end confdefs.h. */
24320 #include <stdlib.h>
24324 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
24325 *) gl_absname_cpp
="$ac_cpp" ;;
24330 gl_dirsep_regex
='[/\\]'
24333 gl_dirsep_regex
='\/'
24336 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
24338 gl_header_literal_regex
=`echo 'stdlib.h' \
24339 | sed -e "$gl_make_literal_regex_sed"`
24340 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24341 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24346 gl_cv_next_stdlib_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24347 sed -n "$gl_absolute_header_sed"`'"'
24351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
24352 $as_echo "$gl_cv_next_stdlib_h" >&6; }
24354 NEXT_STDLIB_H
=$gl_cv_next_stdlib_h
24356 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
24357 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24358 gl_next_as_first_directive
='<'stdlib.h
'>'
24360 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24361 gl_next_as_first_directive
=$gl_cv_next_stdlib_h
24363 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
=$gl_next_as_first_directive
24373 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
24381 $as_echo "#define my_strftime nstrftime" >>confdefs.h
24393 if test "$ac_cv_have_decl_strtoimax" != yes; then
24394 HAVE_DECL_STRTOIMAX
=0
24397 if test $ac_cv_func_strtoimax = yes; then
24399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtoimax works" >&5
24400 $as_echo_n "checking whether strtoimax works... " >&6; }
24401 if test "${gl_cv_func_strtoimax+set}" = set; then :
24402 $as_echo_n "(cached) " >&6
24404 if test "$cross_compiling" = yes; then :
24406 # Guess no on AIX 5.
24407 aix5
*) gl_cv_func_strtoimax
="guessing no" ;;
24408 # Guess yes otherwise.
24409 *) gl_cv_func_strtoimax
="guessing yes" ;;
24413 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24414 /* end confdefs.h. */
24417 #include <string.h>
24418 #include <inttypes.h>
24421 if (sizeof (intmax_t) > sizeof (int))
24423 const char *s = "4294967295";
24427 res = strtoimax (s, &p, 10);
24428 if (p != s + strlen (s))
24432 if (res != (intmax_t) 65535 * (intmax_t) 65537)
24437 const char *s = "2147483647";
24441 res = strtoimax (s, &p, 10);
24442 if (p != s + strlen (s))
24446 if (res != 2147483647)
24453 if ac_fn_c_try_run
"$LINENO"; then :
24454 gl_cv_func_strtoimax
=yes
24456 gl_cv_func_strtoimax
=no
24458 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24459 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strtoimax" >&5
24465 $as_echo "$gl_cv_func_strtoimax" >&6; }
24466 case "$gl_cv_func_strtoimax" in
24467 *no
) REPLACE_STRTOIMAX
=1 ;;
24473 if test $HAVE_STRTOIMAX = 0 ||
test $REPLACE_STRTOIMAX = 1; then
24482 gl_LIBOBJS
="$gl_LIBOBJS strtoimax.$ac_objext"
24485 ac_fn_c_check_decl
"$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
24486 if test "x$ac_cv_have_decl_strtoll" = x
""yes; then :
24492 cat >>confdefs.h
<<_ACEOF
24493 #define HAVE_DECL_STRTOLL $ac_have_decl
24514 if test "$ac_cv_have_decl_strtoumax" != yes; then
24515 HAVE_DECL_STRTOUMAX
=0
24518 if test $ac_cv_func_strtoumax = no
; then
24527 gl_LIBOBJS
="$gl_LIBOBJS strtoumax.$ac_objext"
24530 ac_fn_c_check_decl
"$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
24531 if test "x$ac_cv_have_decl_strtoull" = x
""yes; then :
24537 cat >>confdefs.h
<<_ACEOF
24538 #define HAVE_DECL_STRTOULL $ac_have_decl
24557 if test $ac_cv_func_symlink = no
; then
24560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symlink handles trailing slash correctly" >&5
24561 $as_echo_n "checking whether symlink handles trailing slash correctly... " >&6; }
24562 if test "${gl_cv_func_symlink_works+set}" = set; then :
24563 $as_echo_n "(cached) " >&6
24565 if test "$cross_compiling" = yes; then :
24567 # Guess yes on glibc systems.
24568 *-gnu*) gl_cv_func_symlink_works
="guessing yes" ;;
24569 # If we don't know, assume the worst.
24570 *) gl_cv_func_symlink_works
="guessing no" ;;
24574 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24575 /* end confdefs.h. */
24576 #include <unistd.h>
24582 if (!symlink ("a", "conftest.link/"))
24584 if (symlink ("conftest.f", "conftest.lnk2"))
24586 else if (!symlink ("a", "conftest.lnk2/"))
24594 if ac_fn_c_try_run
"$LINENO"; then :
24595 gl_cv_func_symlink_works
=yes
24597 gl_cv_func_symlink_works
=no
24599 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24600 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24603 rm -f conftest.f conftest.link conftest.lnk2
24605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_symlink_works" >&5
24606 $as_echo "$gl_cv_func_symlink_works" >&6; }
24607 case "$gl_cv_func_symlink_works" in
24615 if test $HAVE_SYMLINK = 0 ||
test $REPLACE_SYMLINK = 1; then
24624 gl_LIBOBJS
="$gl_LIBOBJS symlink.$ac_objext"
24641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/select.h> is self-contained" >&5
24642 $as_echo_n "checking whether <sys/select.h> is self-contained... " >&6; }
24643 if test "${gl_cv_header_sys_select_h_selfcontained+set}" = set; then :
24644 $as_echo_n "(cached) " >&6
24647 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24648 /* end confdefs.h. */
24649 #include <sys/select.h>
24658 if ac_fn_c_try_compile
"$LINENO"; then :
24659 gl_cv_header_sys_select_h_selfcontained
=yes
24661 gl_cv_header_sys_select_h_selfcontained
=no
24663 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24664 if test $gl_cv_header_sys_select_h_selfcontained = yes; then
24665 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24666 /* end confdefs.h. */
24667 #include <sys/select.h>
24671 int memset; int bzero;
24677 if ac_fn_c_try_compile
"$LINENO"; then :
24678 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24679 /* end confdefs.h. */
24680 #include <sys/select.h>
24686 #define memset nonexistent_memset
24691 void *memset (void *, int, unsigned long);
24693 #define bzero nonexistent_bzero
24698 void bzero (void *, unsigned long);
24707 if ac_fn_c_try_link
"$LINENO"; then :
24710 gl_cv_header_sys_select_h_selfcontained
=no
24712 rm -f core conftest.err conftest.
$ac_objext \
24713 conftest
$ac_exeext conftest.
$ac_ext
24716 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_selfcontained" >&5
24721 $as_echo "$gl_cv_header_sys_select_h_selfcontained" >&6; }
24731 if test $gl_cv_have_include_next = yes; then
24732 gl_cv_next_sys_select_h
='<'sys
/select.h
'>'
24734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/select.h>" >&5
24735 $as_echo_n "checking absolute name of <sys/select.h>... " >&6; }
24736 if test "${gl_cv_next_sys_select_h+set}" = set; then :
24737 $as_echo_n "(cached) " >&6
24740 if test $ac_cv_header_sys_select_h = yes; then
24743 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24744 /* end confdefs.h. */
24745 #include <sys/select.h>
24749 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
24750 *) gl_absname_cpp
="$ac_cpp" ;;
24755 gl_dirsep_regex
='[/\\]'
24758 gl_dirsep_regex
='\/'
24761 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
24763 gl_header_literal_regex
=`echo 'sys/select.h' \
24764 | sed -e "$gl_make_literal_regex_sed"`
24765 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24766 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24771 gl_cv_next_sys_select_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24772 sed -n "$gl_absolute_header_sed"`'"'
24774 gl_cv_next_sys_select_h
='<'sys
/select.h
'>'
24779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_select_h" >&5
24780 $as_echo "$gl_cv_next_sys_select_h" >&6; }
24782 NEXT_SYS_SELECT_H
=$gl_cv_next_sys_select_h
24784 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
24785 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24786 gl_next_as_first_directive
='<'sys
/select.h
'>'
24788 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24789 gl_next_as_first_directive
=$gl_cv_next_sys_select_h
24791 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H
=$gl_next_as_first_directive
24796 if test $ac_cv_header_sys_select_h = yes; then
24797 HAVE_SYS_SELECT_H
=1
24799 HAVE_SYS_SELECT_H
=0
24806 if test $ac_cv_header_sys_socket_h != yes; then
24807 for ac_header
in winsock2.h
24809 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
24810 if test "x$ac_cv_header_winsock2_h" = x
""yes; then :
24811 cat >>confdefs.h
<<_ACEOF
24812 #define HAVE_WINSOCK2_H 1
24820 if test "$ac_cv_header_winsock2_h" = yes; then
24822 UNISTD_H_HAVE_WINSOCK2_H
=1
24823 SYS_IOCTL_H_HAVE_WINSOCK2_H
=1
24847 if test $gl_cv_have_include_next = yes; then
24848 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
24850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
24851 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
24852 if test "${gl_cv_next_sys_stat_h+set}" = set; then :
24853 $as_echo_n "(cached) " >&6
24856 if test $ac_cv_header_sys_stat_h = yes; then
24859 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24860 /* end confdefs.h. */
24861 #include <sys/stat.h>
24865 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
24866 *) gl_absname_cpp
="$ac_cpp" ;;
24871 gl_dirsep_regex
='[/\\]'
24874 gl_dirsep_regex
='\/'
24877 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
24879 gl_header_literal_regex
=`echo 'sys/stat.h' \
24880 | sed -e "$gl_make_literal_regex_sed"`
24881 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24882 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24887 gl_cv_next_sys_stat_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24888 sed -n "$gl_absolute_header_sed"`'"'
24890 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
24895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
24896 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
24898 NEXT_SYS_STAT_H
=$gl_cv_next_sys_stat_h
24900 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
24901 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24902 gl_next_as_first_directive
='<'sys
/stat.h
'>'
24904 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24905 gl_next_as_first_directive
=$gl_cv_next_sys_stat_h
24907 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
=$gl_next_as_first_directive
24919 if test $WINDOWS_64_BIT_ST_SIZE = 1; then
24921 $as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h
24925 ac_fn_c_check_type
"$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
24926 #include <sys/stat.h>
24928 if test "x$ac_cv_type_nlink_t" = x
""yes; then :
24932 $as_echo "#define nlink_t int" >>confdefs.h
24953 ac_fn_c_check_decl
"$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "#include <time.h>
24955 if test "x$ac_cv_have_decl_localtime_r" = x
""yes; then :
24961 cat >>confdefs.h
<<_ACEOF
24962 #define HAVE_DECL_LOCALTIME_R $ac_have_decl
24965 if test $ac_cv_have_decl_localtime_r = no
; then
24966 HAVE_DECL_LOCALTIME_R
=0
24970 if test $ac_cv_func_localtime_r = yes; then
24972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
24973 $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
24974 if test "${gl_cv_time_r_posix+set}" = set; then :
24975 $as_echo_n "(cached) " >&6
24977 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24978 /* end confdefs.h. */
24983 /* We don't need to append 'restrict's to the argument types,
24984 even though the POSIX signature has the 'restrict's,
24985 since C99 says they can't affect type compatibility. */
24986 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
24988 /* Check the return type is a pointer.
24989 On HP-UX 10 it is 'int'. */
24990 *localtime_r (0, 0);
24996 if ac_fn_c_try_compile
"$LINENO"; then :
24997 gl_cv_time_r_posix
=yes
24999 gl_cv_time_r_posix
=no
25001 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
25005 $as_echo "$gl_cv_time_r_posix" >&6; }
25006 if test $gl_cv_time_r_posix = yes; then
25007 REPLACE_LOCALTIME_R
=0
25009 REPLACE_LOCALTIME_R
=1
25015 if test $HAVE_LOCALTIME_R = 0 ||
test $REPLACE_LOCALTIME_R = 1; then
25024 gl_LIBOBJS
="$gl_LIBOBJS time_r.$ac_objext"
25048 gl_saved_libs
=$LIBS
25049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing timer_settime" >&5
25050 $as_echo_n "checking for library containing timer_settime... " >&6; }
25051 if test "${ac_cv_search_timer_settime+set}" = set; then :
25052 $as_echo_n "(cached) " >&6
25054 ac_func_search_save_LIBS
=$LIBS
25055 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25056 /* end confdefs.h. */
25058 /* Override any GCC internal prototype to avoid an error.
25059 Use char because int might match the return type of a GCC
25060 builtin and then its argument prototype would still apply. */
25064 char timer_settime ();
25068 return timer_settime ();
25073 for ac_lib
in '' rt posix4
; do
25074 if test -z "$ac_lib"; then
25075 ac_res
="none required"
25078 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
25080 if ac_fn_c_try_link
"$LINENO"; then :
25081 ac_cv_search_timer_settime
=$ac_res
25083 rm -f core conftest.err conftest.
$ac_objext \
25085 if test "${ac_cv_search_timer_settime+set}" = set; then :
25089 if test "${ac_cv_search_timer_settime+set}" = set; then :
25092 ac_cv_search_timer_settime
=no
25094 rm conftest.
$ac_ext
25095 LIBS
=$ac_func_search_save_LIBS
25097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_timer_settime" >&5
25098 $as_echo "$ac_cv_search_timer_settime" >&6; }
25099 ac_res
=$ac_cv_search_timer_settime
25100 if test "$ac_res" != no
; then :
25101 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
25102 test "$ac_cv_search_timer_settime" = "none required" ||
25103 LIB_TIMER_TIME
=$ac_cv_search_timer_settime
25106 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25107 /* end confdefs.h. */
25109 #include <features.h>
25110 #ifdef __GNU_LIBRARY__
25111 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2) || (__GLIBC__ > 2)) \
25112 && !defined __UCLIBC__
25113 Thread emulation available
25118 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25119 $EGREP "Thread" >/dev
/null
2>&1; then :
25120 LIB_TIMER_TIME
="$LIB_TIMER_TIME $LIBMULTITHREAD"
25124 for ac_func
in timer_settime
25126 ac_fn_c_check_func
"$LINENO" "timer_settime" "ac_cv_func_timer_settime"
25127 if test "x$ac_cv_func_timer_settime" = x
""yes; then :
25128 cat >>confdefs.h
<<_ACEOF
25129 #define HAVE_TIMER_SETTIME 1
25135 LIBS
=$gl_saved_libs
25150 if test $gl_cv_have_include_next = yes; then
25151 gl_cv_next_unistd_h
='<'unistd.h
'>'
25153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
25154 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
25155 if test "${gl_cv_next_unistd_h+set}" = set; then :
25156 $as_echo_n "(cached) " >&6
25159 if test $ac_cv_header_unistd_h = yes; then
25162 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25163 /* end confdefs.h. */
25164 #include <unistd.h>
25168 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
25169 *) gl_absname_cpp
="$ac_cpp" ;;
25174 gl_dirsep_regex
='[/\\]'
25177 gl_dirsep_regex
='\/'
25180 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
25182 gl_header_literal_regex
=`echo 'unistd.h' \
25183 | sed -e "$gl_make_literal_regex_sed"`
25184 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
25185 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
25190 gl_cv_next_unistd_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
25191 sed -n "$gl_absolute_header_sed"`'"'
25193 gl_cv_next_unistd_h
='<'unistd.h
'>'
25198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
25199 $as_echo "$gl_cv_next_unistd_h" >&6; }
25201 NEXT_UNISTD_H
=$gl_cv_next_unistd_h
25203 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
25204 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
25205 gl_next_as_first_directive
='<'unistd.h
'>'
25207 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
25208 gl_next_as_first_directive
=$gl_cv_next_unistd_h
25210 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
=$gl_next_as_first_directive
25215 if test $ac_cv_header_unistd_h = yes; then
25231 if test $ac_cv_have_decl_unsetenv = no
; then
25232 HAVE_DECL_UNSETENV
=0
25234 for ac_func
in unsetenv
25236 ac_fn_c_check_func
"$LINENO" "unsetenv" "ac_cv_func_unsetenv"
25237 if test "x$ac_cv_func_unsetenv" = x
""yes; then :
25238 cat >>confdefs.h
<<_ACEOF
25239 #define HAVE_UNSETENV 1
25245 if test $ac_cv_func_unsetenv = no
; then
25249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsetenv() return type" >&5
25250 $as_echo_n "checking for unsetenv() return type... " >&6; }
25251 if test "${gt_cv_func_unsetenv_ret+set}" = set; then :
25252 $as_echo_n "(cached) " >&6
25254 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25255 /* end confdefs.h. */
25258 #define _BSD 1 /* unhide unsetenv declaration in OSF/1 5.1 <stdlib.h> */
25259 #include <stdlib.h>
25264 int unsetenv (const char *name);
25274 if ac_fn_c_try_compile
"$LINENO"; then :
25275 gt_cv_func_unsetenv_ret
='int'
25277 gt_cv_func_unsetenv_ret
='void'
25279 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_unsetenv_ret" >&5
25282 $as_echo "$gt_cv_func_unsetenv_ret" >&6; }
25283 if test $gt_cv_func_unsetenv_ret = 'void'; then
25285 $as_echo "#define VOID_UNSETENV 1" >>confdefs.h
25290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether unsetenv obeys POSIX" >&5
25291 $as_echo_n "checking whether unsetenv obeys POSIX... " >&6; }
25292 if test "${gl_cv_func_unsetenv_works+set}" = set; then :
25293 $as_echo_n "(cached) " >&6
25295 if test "$cross_compiling" = yes; then :
25297 # Guess yes on glibc systems.
25298 *-gnu*) gl_cv_func_unsetenv_works
="guessing yes" ;;
25299 # If we don't know, assume the worst.
25300 *) gl_cv_func_unsetenv_works
="guessing no" ;;
25304 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25305 /* end confdefs.h. */
25307 #include <stdlib.h>
25309 extern char **environ;
25315 char entry1[] = "a=1";
25316 char entry2[] = "b=2";
25317 char *env[] = { entry1, entry2, NULL };
25318 if (putenv ((char *) "a=1")) return 1;
25319 if (putenv (entry2)) return 2;
25322 if (getenv ("a")) return 3;
25323 if (!unsetenv ("") || errno != EINVAL) return 4;
25326 if (!getenv ("a")) return 5;
25329 if (getenv ("a")) return 6;
25335 if ac_fn_c_try_run
"$LINENO"; then :
25336 gl_cv_func_unsetenv_works
=yes
25338 gl_cv_func_unsetenv_works
=no
25340 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
25341 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
25345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_unsetenv_works" >&5
25346 $as_echo "$gl_cv_func_unsetenv_works" >&6; }
25347 case "$gl_cv_func_unsetenv_works" in
25355 if test $HAVE_UNSETENV = 0 ||
test $REPLACE_UNSETENV = 1; then
25364 gl_LIBOBJS
="$gl_LIBOBJS unsetenv.$ac_objext"
25388 if test $ac_cv_func_futimens = no
&& test $ac_cv_func_futimesat = yes; then
25389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether futimesat handles NULL file" >&5
25390 $as_echo_n "checking whether futimesat handles NULL file... " >&6; }
25391 if test "${gl_cv_func_futimesat_works+set}" = set; then :
25392 $as_echo_n "(cached) " >&6
25394 touch conftest.
file
25395 if test "$cross_compiling" = yes; then :
25397 # Guess yes on glibc systems.
25398 *-gnu*) gl_cv_func_futimesat_works
="guessing yes" ;;
25399 # If we don't know, assume the worst.
25400 *) gl_cv_func_futimesat_works
="guessing no" ;;
25404 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25405 /* end confdefs.h. */
25407 #include <stddef.h>
25408 #include <sys/times.h>
25414 int fd = open ("conftest.file", O_RDWR);
25415 if (fd < 0) return 1;
25416 if (futimesat (fd, NULL, NULL)) return 2;
25422 if ac_fn_c_try_run
"$LINENO"; then :
25423 gl_cv_func_futimesat_works
=yes
25425 gl_cv_func_futimesat_works
=no
25427 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
25428 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
25431 rm -f conftest.
file
25433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_futimesat_works" >&5
25434 $as_echo "$gl_cv_func_futimesat_works" >&6; }
25435 case "$gl_cv_func_futimesat_works" in
25439 $as_echo "#define FUTIMESAT_NULL_BUG 1" >>confdefs.h
25445 gl_gnulib_enabled_260941c0e5dc67ec9e87d1fb321c300b
=false
25446 gl_gnulib_enabled_dosname
=false
25447 gl_gnulib_enabled_euidaccess
=false
25448 gl_gnulib_enabled_getgroups
=false
25449 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36
=false
25450 gl_gnulib_enabled_a9786850e999ae65a836a6041e8e5ed1
=false
25451 gl_gnulib_enabled_03e0aaad4cb89ca757653bd367a6ccb7
=false
25452 gl_gnulib_enabled_pathmax
=false
25453 gl_gnulib_enabled_6099e9737f757db36c47fa9d9f02e88c
=false
25454 gl_gnulib_enabled_stat
=false
25455 gl_gnulib_enabled_strtoll
=false
25456 gl_gnulib_enabled_strtoull
=false
25457 gl_gnulib_enabled_verify
=false
25458 gl_gnulib_enabled_682e609604ccaac6be382e4ee3a4eaec
=false
25459 func_gl_gnulib_m4code_260941c0e5dc67ec9e87d1fb321c300b
()
25461 if ! $gl_gnulib_enabled_260941c0e5dc67ec9e87d1fb321c300b; then
25470 gl_LIBOBJS
="$gl_LIBOBJS openat-proc.$ac_objext"
25472 gl_gnulib_enabled_260941c0e5dc67ec9e87d1fb321c300b
=true
25475 func_gl_gnulib_m4code_dosname
()
25477 if ! $gl_gnulib_enabled_dosname; then
25478 gl_gnulib_enabled_dosname
=true
25481 func_gl_gnulib_m4code_euidaccess
()
25483 if ! $gl_gnulib_enabled_euidaccess; then
25489 for ac_func
in euidaccess
25491 ac_fn_c_check_func
"$LINENO" "euidaccess" "ac_cv_func_euidaccess"
25492 if test "x$ac_cv_func_euidaccess" = x
""yes; then :
25493 cat >>confdefs.h
<<_ACEOF
25494 #define HAVE_EUIDACCESS 1
25500 if test $ac_cv_func_euidaccess = no
; then
25504 if test $HAVE_EUIDACCESS = 0; then
25513 gl_LIBOBJS
="$gl_LIBOBJS euidaccess.$ac_objext"
25517 for ac_header
in libgen.h
25519 ac_fn_c_check_header_mongrel
"$LINENO" "libgen.h" "ac_cv_header_libgen_h" "$ac_includes_default"
25520 if test "x$ac_cv_header_libgen_h" = x
""yes; then :
25521 cat >>confdefs.h
<<_ACEOF
25522 #define HAVE_LIBGEN_H 1
25530 ac_fn_c_check_func
"$LINENO" "getgroups" "ac_cv_func_getgroups"
25531 if test "x$ac_cv_func_getgroups" = x
""yes; then :
25536 # If we don't yet have getgroups, see if it's in -lbsd.
25537 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
25539 if test $ac_cv_func_getgroups = no
; then
25540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getgroups in -lbsd" >&5
25541 $as_echo_n "checking for getgroups in -lbsd... " >&6; }
25542 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then :
25543 $as_echo_n "(cached) " >&6
25545 ac_check_lib_save_LIBS
=$LIBS
25547 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25548 /* end confdefs.h. */
25550 /* Override any GCC internal prototype to avoid an error.
25551 Use char because int might match the return type of a GCC
25552 builtin and then its argument prototype would still apply. */
25560 return getgroups ();
25565 if ac_fn_c_try_link
"$LINENO"; then :
25566 ac_cv_lib_bsd_getgroups
=yes
25568 ac_cv_lib_bsd_getgroups
=no
25570 rm -f core conftest.err conftest.
$ac_objext \
25571 conftest
$ac_exeext conftest.
$ac_ext
25572 LIBS
=$ac_check_lib_save_LIBS
25574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_getgroups" >&5
25575 $as_echo "$ac_cv_lib_bsd_getgroups" >&6; }
25576 if test "x$ac_cv_lib_bsd_getgroups" = x
""yes; then :
25577 GETGROUPS_LIB
=-lbsd
25582 # Run the program to test the functionality of the system-supplied
25583 # getgroups function only if there is such a function.
25584 if test $ac_cv_func_getgroups = yes; then
25585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getgroups" >&5
25586 $as_echo_n "checking for working getgroups... " >&6; }
25587 if test "${ac_cv_func_getgroups_works+set}" = set; then :
25588 $as_echo_n "(cached) " >&6
25590 if test "$cross_compiling" = yes; then :
25591 case "$host_os" in # ((
25592 # Guess yes on glibc systems.
25593 *-gnu*) ac_cv_func_getgroups_works
="guessing yes" ;;
25594 # If we don't know, assume the worst.
25595 *) ac_cv_func_getgroups_works
="guessing no" ;;
25599 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25600 /* end confdefs.h. */
25601 $ac_includes_default
25605 /* On Ultrix 4.3, getgroups (0, 0) always fails. */
25606 return getgroups (0, 0) == -1;
25612 if ac_fn_c_try_run
"$LINENO"; then :
25613 ac_cv_func_getgroups_works
=yes
25615 ac_cv_func_getgroups_works
=no
25617 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
25618 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
25623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getgroups_works" >&5
25624 $as_echo "$ac_cv_func_getgroups_works" >&6; }
25626 ac_cv_func_getgroups_works
=no
25628 case "$ac_cv_func_getgroups_works" in
25631 $as_echo "#define HAVE_GETGROUPS 1" >>confdefs.h
25638 # Solaris 9 and 10 need -lgen to get the eaccess function.
25639 # Save and restore LIBS so -lgen isn't added to it. Otherwise, *all*
25640 # programs in the package would end up linked with that potentially-shared
25641 # library, inducing unnecessary run-time overhead.
25644 gl_saved_libs
=$LIBS
25645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing eaccess" >&5
25646 $as_echo_n "checking for library containing eaccess... " >&6; }
25647 if test "${ac_cv_search_eaccess+set}" = set; then :
25648 $as_echo_n "(cached) " >&6
25650 ac_func_search_save_LIBS
=$LIBS
25651 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25652 /* end confdefs.h. */
25654 /* Override any GCC internal prototype to avoid an error.
25655 Use char because int might match the return type of a GCC
25656 builtin and then its argument prototype would still apply. */
25669 for ac_lib
in '' gen
; do
25670 if test -z "$ac_lib"; then
25671 ac_res
="none required"
25674 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
25676 if ac_fn_c_try_link
"$LINENO"; then :
25677 ac_cv_search_eaccess
=$ac_res
25679 rm -f core conftest.err conftest.
$ac_objext \
25681 if test "${ac_cv_search_eaccess+set}" = set; then :
25685 if test "${ac_cv_search_eaccess+set}" = set; then :
25688 ac_cv_search_eaccess
=no
25690 rm conftest.
$ac_ext
25691 LIBS
=$ac_func_search_save_LIBS
25693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_eaccess" >&5
25694 $as_echo "$ac_cv_search_eaccess" >&6; }
25695 ac_res
=$ac_cv_search_eaccess
25696 if test "$ac_res" != no
; then :
25697 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
25698 test "$ac_cv_search_eaccess" = "none required" ||
25699 LIB_EACCESS
=$ac_cv_search_eaccess
25702 for ac_func
in eaccess
25704 ac_fn_c_check_func
"$LINENO" "eaccess" "ac_cv_func_eaccess"
25705 if test "x$ac_cv_func_eaccess" = x
""yes; then :
25706 cat >>confdefs.h
<<_ACEOF
25707 #define HAVE_EACCESS 1
25713 LIBS
=$gl_saved_libs
25721 GNULIB_EUIDACCESS
=1
25727 gl_gnulib_enabled_euidaccess
=true
25728 if test $HAVE_EUIDACCESS = 0; then
25729 func_gl_gnulib_m4code_a9786850e999ae65a836a6041e8e5ed1
25731 func_gl_gnulib_m4code_6099e9737f757db36c47fa9d9f02e88c
25732 if test $HAVE_EUIDACCESS = 0; then
25733 func_gl_gnulib_m4code_stat
25737 func_gl_gnulib_m4code_getgroups
()
25739 if ! $gl_gnulib_enabled_getgroups; then
25745 ac_fn_c_check_func
"$LINENO" "getgroups" "ac_cv_func_getgroups"
25746 if test "x$ac_cv_func_getgroups" = x
""yes; then :
25751 # If we don't yet have getgroups, see if it's in -lbsd.
25752 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
25754 if test $ac_cv_func_getgroups = no
; then
25755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getgroups in -lbsd" >&5
25756 $as_echo_n "checking for getgroups in -lbsd... " >&6; }
25757 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then :
25758 $as_echo_n "(cached) " >&6
25760 ac_check_lib_save_LIBS
=$LIBS
25762 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25763 /* end confdefs.h. */
25765 /* Override any GCC internal prototype to avoid an error.
25766 Use char because int might match the return type of a GCC
25767 builtin and then its argument prototype would still apply. */
25775 return getgroups ();
25780 if ac_fn_c_try_link
"$LINENO"; then :
25781 ac_cv_lib_bsd_getgroups
=yes
25783 ac_cv_lib_bsd_getgroups
=no
25785 rm -f core conftest.err conftest.
$ac_objext \
25786 conftest
$ac_exeext conftest.
$ac_ext
25787 LIBS
=$ac_check_lib_save_LIBS
25789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_getgroups" >&5
25790 $as_echo "$ac_cv_lib_bsd_getgroups" >&6; }
25791 if test "x$ac_cv_lib_bsd_getgroups" = x
""yes; then :
25792 GETGROUPS_LIB
=-lbsd
25797 # Run the program to test the functionality of the system-supplied
25798 # getgroups function only if there is such a function.
25799 if test $ac_cv_func_getgroups = yes; then
25800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getgroups" >&5
25801 $as_echo_n "checking for working getgroups... " >&6; }
25802 if test "${ac_cv_func_getgroups_works+set}" = set; then :
25803 $as_echo_n "(cached) " >&6
25805 if test "$cross_compiling" = yes; then :
25806 case "$host_os" in # ((
25807 # Guess yes on glibc systems.
25808 *-gnu*) ac_cv_func_getgroups_works
="guessing yes" ;;
25809 # If we don't know, assume the worst.
25810 *) ac_cv_func_getgroups_works
="guessing no" ;;
25814 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25815 /* end confdefs.h. */
25816 $ac_includes_default
25820 /* On Ultrix 4.3, getgroups (0, 0) always fails. */
25821 return getgroups (0, 0) == -1;
25827 if ac_fn_c_try_run
"$LINENO"; then :
25828 ac_cv_func_getgroups_works
=yes
25830 ac_cv_func_getgroups_works
=no
25832 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
25833 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
25838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getgroups_works" >&5
25839 $as_echo "$ac_cv_func_getgroups_works" >&6; }
25841 ac_cv_func_getgroups_works
=no
25843 case "$ac_cv_func_getgroups_works" in
25846 $as_echo "#define HAVE_GETGROUPS 1" >>confdefs.h
25852 if test $ac_cv_func_getgroups != yes; then
25855 if test "$ac_cv_type_getgroups" != gid_t \
25856 ||
{ case "$ac_cv_func_getgroups_works" in
25861 REPLACE_GETGROUPS
=1
25863 $as_echo "#define GETGROUPS_ZERO_BUG 1" >>confdefs.h
25866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getgroups handles negative values" >&5
25867 $as_echo_n "checking whether getgroups handles negative values... " >&6; }
25868 if test "${gl_cv_func_getgroups_works+set}" = set; then :
25869 $as_echo_n "(cached) " >&6
25871 if test "$cross_compiling" = yes; then :
25873 # Guess yes on glibc systems.
25874 *-gnu*) gl_cv_func_getgroups_works
="guessing yes" ;;
25875 # If we don't know, assume the worst.
25876 *) gl_cv_func_getgroups_works
="guessing no" ;;
25880 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25881 /* end confdefs.h. */
25882 $ac_includes_default
25886 int size = getgroups (0, 0);
25887 gid_t *list = malloc (size * sizeof *list);
25888 return getgroups (-1, list) != -1;
25893 if ac_fn_c_try_run
"$LINENO"; then :
25894 gl_cv_func_getgroups_works
=yes
25896 gl_cv_func_getgroups_works
=no
25898 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
25899 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
25903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getgroups_works" >&5
25904 $as_echo "$gl_cv_func_getgroups_works" >&6; }
25905 case "$gl_cv_func_getgroups_works" in
25907 *) REPLACE_GETGROUPS
=1 ;;
25911 test -n "$GETGROUPS_LIB" && LIBS
="$GETGROUPS_LIB $LIBS"
25913 if test $HAVE_GETGROUPS = 0 ||
test $REPLACE_GETGROUPS = 1; then
25922 gl_LIBOBJS
="$gl_LIBOBJS getgroups.$ac_objext"
25936 gl_gnulib_enabled_getgroups
=true
25939 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36
()
25941 if ! $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
25944 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36
=true
25947 func_gl_gnulib_m4code_a9786850e999ae65a836a6041e8e5ed1
()
25949 if ! $gl_gnulib_enabled_a9786850e999ae65a836a6041e8e5ed1; then
25955 ac_fn_c_check_func
"$LINENO" "group_member" "ac_cv_func_group_member"
25956 if test "x$ac_cv_func_group_member" = x
""yes; then :
25960 HAVE_GROUP_MEMBER
=0
25965 if test $HAVE_GROUP_MEMBER = 0; then
25974 gl_LIBOBJS
="$gl_LIBOBJS group-member.$ac_objext"
25985 GNULIB_GROUP_MEMBER
=1
25991 gl_gnulib_enabled_a9786850e999ae65a836a6041e8e5ed1
=true
25992 if test $HAVE_GROUP_MEMBER = 0; then
25993 func_gl_gnulib_m4code_getgroups
25995 if test $HAVE_GROUP_MEMBER = 0; then
25996 func_gl_gnulib_m4code_682e609604ccaac6be382e4ee3a4eaec
26000 func_gl_gnulib_m4code_03e0aaad4cb89ca757653bd367a6ccb7
()
26002 if ! $gl_gnulib_enabled_03e0aaad4cb89ca757653bd367a6ccb7; then
26003 gl_gnulib_enabled_03e0aaad4cb89ca757653bd367a6ccb7
=true
26006 func_gl_gnulib_m4code_pathmax
()
26008 if ! $gl_gnulib_enabled_pathmax; then
26012 gl_gnulib_enabled_pathmax
=true
26015 func_gl_gnulib_m4code_6099e9737f757db36c47fa9d9f02e88c
()
26017 if ! $gl_gnulib_enabled_6099e9737f757db36c47fa9d9f02e88c; then
26018 gl_gnulib_enabled_6099e9737f757db36c47fa9d9f02e88c
=true
26021 func_gl_gnulib_m4code_stat
()
26023 if ! $gl_gnulib_enabled_stat; then
26027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
26028 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
26029 if test "${gl_cv_func_stat_dir_slash+set}" = set; then :
26030 $as_echo_n "(cached) " >&6
26032 if test "$cross_compiling" = yes; then :
26034 mingw
*) gl_cv_func_stat_dir_slash
="guessing no";;
26035 *) gl_cv_func_stat_dir_slash
="guessing yes";;
26038 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26039 /* end confdefs.h. */
26040 #include <sys/stat.h>
26045 struct stat st; return stat (".", &st) != stat ("./", &st);
26050 if ac_fn_c_try_run
"$LINENO"; then :
26051 gl_cv_func_stat_dir_slash
=yes
26053 gl_cv_func_stat_dir_slash
=no
26055 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
26056 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
26060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
26061 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
26062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
26063 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
26064 if test "${gl_cv_func_stat_file_slash+set}" = set; then :
26065 $as_echo_n "(cached) " >&6
26068 # Assume that if we have lstat, we can also check symlinks.
26069 if test $ac_cv_func_lstat = yes; then
26070 ln -s conftest.tmp conftest.lnk
26072 if test "$cross_compiling" = yes; then :
26074 # Guess yes on glibc systems.
26075 *-gnu*) gl_cv_func_stat_file_slash
="guessing yes" ;;
26076 # If we don't know, assume the worst.
26077 *) gl_cv_func_stat_file_slash
="guessing no" ;;
26081 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26082 /* end confdefs.h. */
26083 #include <sys/stat.h>
26090 if (!stat ("conftest.tmp/", &st))
26093 if (!stat ("conftest.lnk/", &st))
26102 if ac_fn_c_try_run
"$LINENO"; then :
26103 gl_cv_func_stat_file_slash
=yes
26105 gl_cv_func_stat_file_slash
=no
26107 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
26108 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
26111 rm -f conftest.tmp conftest.lnk
26113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
26114 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
26115 case $gl_cv_func_stat_dir_slash in
26116 *no
) REPLACE_STAT
=1
26118 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
26121 case $gl_cv_func_stat_file_slash in
26122 *no
) REPLACE_STAT
=1
26124 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
26128 if test $REPLACE_STAT = 1; then
26137 gl_LIBOBJS
="$gl_LIBOBJS stat.$ac_objext"
26152 gl_gnulib_enabled_stat
=true
26153 if test $REPLACE_STAT = 1; then
26154 func_gl_gnulib_m4code_dosname
26156 if test $REPLACE_STAT = 1; then
26157 func_gl_gnulib_m4code_pathmax
26159 if test $REPLACE_STAT = 1; then
26160 func_gl_gnulib_m4code_verify
26164 func_gl_gnulib_m4code_strtoll
()
26166 if ! $gl_gnulib_enabled_strtoll; then
26170 if test "$ac_cv_type_long_long_int" = yes; then
26171 for ac_func
in strtoll
26173 ac_fn_c_check_func
"$LINENO" "strtoll" "ac_cv_func_strtoll"
26174 if test "x$ac_cv_func_strtoll" = x
""yes; then :
26175 cat >>confdefs.h
<<_ACEOF
26176 #define HAVE_STRTOLL 1
26182 if test $ac_cv_func_strtoll = no
; then
26187 if test $HAVE_STRTOLL = 0; then
26196 gl_LIBOBJS
="$gl_LIBOBJS strtoll.$ac_objext"
26213 gl_gnulib_enabled_strtoll
=true
26216 func_gl_gnulib_m4code_strtoull
()
26218 if ! $gl_gnulib_enabled_strtoull; then
26222 if test "$ac_cv_type_unsigned_long_long_int" = yes; then
26223 for ac_func
in strtoull
26225 ac_fn_c_check_func
"$LINENO" "strtoull" "ac_cv_func_strtoull"
26226 if test "x$ac_cv_func_strtoull" = x
""yes; then :
26227 cat >>confdefs.h
<<_ACEOF
26228 #define HAVE_STRTOULL 1
26234 if test $ac_cv_func_strtoull = no
; then
26239 if test $HAVE_STRTOULL = 0; then
26248 gl_LIBOBJS
="$gl_LIBOBJS strtoull.$ac_objext"
26265 gl_gnulib_enabled_strtoull
=true
26268 func_gl_gnulib_m4code_verify
()
26270 if ! $gl_gnulib_enabled_verify; then
26271 gl_gnulib_enabled_verify
=true
26274 func_gl_gnulib_m4code_682e609604ccaac6be382e4ee3a4eaec
()
26276 if ! $gl_gnulib_enabled_682e609604ccaac6be382e4ee3a4eaec; then
26277 gl_gnulib_enabled_682e609604ccaac6be382e4ee3a4eaec
=true
26280 if test $HAVE_FACCESSAT = 0; then
26281 func_gl_gnulib_m4code_260941c0e5dc67ec9e87d1fb321c300b
26283 if test $HAVE_FACCESSAT = 0; then
26284 func_gl_gnulib_m4code_dosname
26286 if test $HAVE_FACCESSAT = 0; then
26287 func_gl_gnulib_m4code_euidaccess
26289 if test $HAVE_FACCESSAT = 0; then
26290 func_gl_gnulib_m4code_03e0aaad4cb89ca757653bd367a6ccb7
26292 if test $HAVE_FDOPENDIR = 0; then
26293 func_gl_gnulib_m4code_260941c0e5dc67ec9e87d1fb321c300b
26295 if test $HAVE_FSTATAT = 0 ||
test $REPLACE_FSTATAT = 1; then
26296 func_gl_gnulib_m4code_260941c0e5dc67ec9e87d1fb321c300b
26298 if test $HAVE_FSTATAT = 0 ||
test $REPLACE_FSTATAT = 1; then
26299 func_gl_gnulib_m4code_dosname
26301 if test $HAVE_FSTATAT = 0 ||
test $REPLACE_FSTATAT = 1; then
26302 func_gl_gnulib_m4code_03e0aaad4cb89ca757653bd367a6ccb7
26304 if test $REPLACE_GETOPT = 1; then
26305 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36
26307 if test $REPLACE_LSTAT = 1; then
26308 func_gl_gnulib_m4code_dosname
26310 if test $REPLACE_LSTAT = 1; then
26311 func_gl_gnulib_m4code_stat
26313 if test $HAVE_READLINK = 0 ||
test $REPLACE_READLINK = 1; then
26314 func_gl_gnulib_m4code_stat
26316 if test $HAVE_READLINKAT = 0; then
26317 func_gl_gnulib_m4code_260941c0e5dc67ec9e87d1fb321c300b
26319 if test $HAVE_READLINKAT = 0; then
26320 func_gl_gnulib_m4code_dosname
26322 if test $HAVE_READLINKAT = 0; then
26323 func_gl_gnulib_m4code_03e0aaad4cb89ca757653bd367a6ccb7
26325 if { test $HAVE_STRTOIMAX = 0 ||
test $REPLACE_STRTOIMAX = 1; } && test $ac_cv_type_long_long_int = yes; then
26326 func_gl_gnulib_m4code_strtoll
26328 if test $HAVE_STRTOIMAX = 0 ||
test $REPLACE_STRTOIMAX = 1; then
26329 func_gl_gnulib_m4code_verify
26331 if test $ac_cv_func_strtoumax = no
&& test $ac_cv_type_unsigned_long_long_int = yes; then
26332 func_gl_gnulib_m4code_strtoull
26334 if test $ac_cv_func_strtoumax = no
; then
26335 func_gl_gnulib_m4code_verify
26338 if $gl_gnulib_enabled_260941c0e5dc67ec9e87d1fb321c300b; then
26339 gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_TRUE
=
26340 gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_FALSE
='#'
26342 gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_TRUE
='#'
26343 gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_FALSE
=
26346 if $gl_gnulib_enabled_dosname; then
26347 gl_GNULIB_ENABLED_dosname_TRUE
=
26348 gl_GNULIB_ENABLED_dosname_FALSE
='#'
26350 gl_GNULIB_ENABLED_dosname_TRUE
='#'
26351 gl_GNULIB_ENABLED_dosname_FALSE
=
26354 if $gl_gnulib_enabled_euidaccess; then
26355 gl_GNULIB_ENABLED_euidaccess_TRUE
=
26356 gl_GNULIB_ENABLED_euidaccess_FALSE
='#'
26358 gl_GNULIB_ENABLED_euidaccess_TRUE
='#'
26359 gl_GNULIB_ENABLED_euidaccess_FALSE
=
26362 if $gl_gnulib_enabled_getgroups; then
26363 gl_GNULIB_ENABLED_getgroups_TRUE
=
26364 gl_GNULIB_ENABLED_getgroups_FALSE
='#'
26366 gl_GNULIB_ENABLED_getgroups_TRUE
='#'
26367 gl_GNULIB_ENABLED_getgroups_FALSE
=
26370 if $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
26371 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE
=
26372 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE
='#'
26374 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE
='#'
26375 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE
=
26378 if $gl_gnulib_enabled_a9786850e999ae65a836a6041e8e5ed1; then
26379 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_TRUE
=
26380 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_FALSE
='#'
26382 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_TRUE
='#'
26383 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_FALSE
=
26386 if $gl_gnulib_enabled_03e0aaad4cb89ca757653bd367a6ccb7; then
26387 gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_TRUE
=
26388 gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_FALSE
='#'
26390 gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_TRUE
='#'
26391 gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_FALSE
=
26394 if $gl_gnulib_enabled_pathmax; then
26395 gl_GNULIB_ENABLED_pathmax_TRUE
=
26396 gl_GNULIB_ENABLED_pathmax_FALSE
='#'
26398 gl_GNULIB_ENABLED_pathmax_TRUE
='#'
26399 gl_GNULIB_ENABLED_pathmax_FALSE
=
26402 if $gl_gnulib_enabled_6099e9737f757db36c47fa9d9f02e88c; then
26403 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_TRUE
=
26404 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_FALSE
='#'
26406 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_TRUE
='#'
26407 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_FALSE
=
26410 if $gl_gnulib_enabled_stat; then
26411 gl_GNULIB_ENABLED_stat_TRUE
=
26412 gl_GNULIB_ENABLED_stat_FALSE
='#'
26414 gl_GNULIB_ENABLED_stat_TRUE
='#'
26415 gl_GNULIB_ENABLED_stat_FALSE
=
26418 if $gl_gnulib_enabled_strtoll; then
26419 gl_GNULIB_ENABLED_strtoll_TRUE
=
26420 gl_GNULIB_ENABLED_strtoll_FALSE
='#'
26422 gl_GNULIB_ENABLED_strtoll_TRUE
='#'
26423 gl_GNULIB_ENABLED_strtoll_FALSE
=
26426 if $gl_gnulib_enabled_strtoull; then
26427 gl_GNULIB_ENABLED_strtoull_TRUE
=
26428 gl_GNULIB_ENABLED_strtoull_FALSE
='#'
26430 gl_GNULIB_ENABLED_strtoull_TRUE
='#'
26431 gl_GNULIB_ENABLED_strtoull_FALSE
=
26434 if $gl_gnulib_enabled_verify; then
26435 gl_GNULIB_ENABLED_verify_TRUE
=
26436 gl_GNULIB_ENABLED_verify_FALSE
='#'
26438 gl_GNULIB_ENABLED_verify_TRUE
='#'
26439 gl_GNULIB_ENABLED_verify_FALSE
=
26442 if $gl_gnulib_enabled_682e609604ccaac6be382e4ee3a4eaec; then
26443 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_TRUE
=
26444 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_FALSE
='#'
26446 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_TRUE
='#'
26447 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_FALSE
=
26450 # End of code from modules
26471 gl_source_base
='tests'
26472 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
26474 gl_module_indicator_condition
=$gltests_WITNESS
26485 LIBGNU_LIBDEPS
="$gl_libdeps"
26487 LIBGNU_LTLIBDEPS
="$gl_ltlibdeps"
26490 CFLAGS
=$SAVE_CFLAGS
26494 aix4-2
) LD_SWITCH_SYSTEM_TEMACS
="-Wl,-bnodelcsect" ;;
26497 ## The -headerpad option tells ld (see man page) to leave room at the
26498 ## end of the header for adding load commands. Needed for dumping.
26499 ## 0x690 is the total size of 30 segment load commands (at 56
26500 ## each); under Cocoa 31 commands are required.
26501 if test "$HAVE_NS" = "yes"; then
26502 libs_nsgui
="-framework AppKit"
26503 headerpad_extra
=6C8
26506 headerpad_extra
=690
26508 LD_SWITCH_SYSTEM_TEMACS
="-fno-pie -prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
26510 ## This is here because src/Makefile.in did some extra fiddling around
26511 ## with LD_SWITCH_SYSTEM. The cpp logic was:
26512 ## #ifndef LD_SWITCH_SYSTEM
26513 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
26514 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
26515 ## not using gcc, darwin.
26516 ## Because this was done in src/Makefile.in, the resulting part of
26517 ## LD_SWITCH_SYSTEM was not used in configure (ie, in ac_link).
26518 ## It therefore seems cleaner to put this in LD_SWITCH_SYSTEM_TEMACS,
26519 ## rather than LD_SWITCH_SYSTEM.
26520 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
26521 LD_SWITCH_SYSTEM_TEMACS
="-X $LD_SWITCH_SYSTEM_TEMACS"
26524 ## LD_SWITCH_X_SITE_RPATH is a -rpath option saying where to
26525 ## find X at run-time.
26526 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at the
26527 ## point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_RPATH
26528 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
26529 ## had different values in configure (in ac_link) and src/Makefile.in.
26530 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
26531 gnu
*) LD_SWITCH_SYSTEM_TEMACS
="\$(LD_SWITCH_X_SITE_RPATH)" ;;
26533 *) LD_SWITCH_SYSTEM_TEMACS
= ;;
26538 ## Common for all window systems
26539 if test "$window_system" != "none"; then
26541 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
26543 WINDOW_SYSTEM_OBJ
="fontset.o fringe.o image.o"
26550 #### Report on what we decided to do.
26551 #### Report GTK as a toolkit, even if it doesn't use Xt.
26552 #### It makes printing result more understandable as using GTK sets
26553 #### toolkit_scroll_bars to yes by default.
26554 if test "${HAVE_GTK}" = "yes"; then
26555 USE_X_TOOLKIT
="$USE_GTK_TOOLKIT"
26559 Configured for \`${canonical}'.
26561 Where should the build process find the source code? ${srcdir}
26562 What compiler should emacs be built with? ${CC} ${CFLAGS}
26563 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
26564 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
26565 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
26566 What window system should Emacs use? ${window_system}
26567 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
26569 if test -n "${x_includes}"; then
26570 echo " Where do we find X Windows header files? ${x_includes}"
26572 echo " Where do we find X Windows header files? Standard dirs"
26574 if test -n "${x_libraries}"; then
26575 echo " Where do we find X Windows libraries? ${x_libraries}"
26577 echo " Where do we find X Windows libraries? Standard dirs"
26580 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
26581 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
26582 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
26583 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
26584 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
26585 echo " Does Emacs use -lpng? ${HAVE_PNG}"
26586 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
26587 echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
26589 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
26590 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
26591 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
26592 echo " Does Emacs use GSettings? ${HAVE_GSETTINGS}"
26593 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
26594 echo " Does Emacs use -lgnutls? ${HAVE_GNUTLS}"
26595 echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}"
26597 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
26598 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
26599 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
26600 echo " Does Emacs use -lxft? ${HAVE_XFT}"
26602 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
26605 if test -n "${EMACSDATA}"; then
26606 echo " Environment variable EMACSDATA set to: $EMACSDATA"
26608 if test -n "${EMACSDOC}"; then
26609 echo " Environment variable EMACSDOC set to: $EMACSDOC"
26614 if test "$HAVE_NS" = "yes"; then
26616 echo "You must run \"${MAKE-make} install\" in order to test the built application.
26617 The installed application will go to nextstep/Emacs.app and can be
26618 run or moved from there."
26619 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
26620 echo "The application will be fully self-contained."
26622 echo "The lisp resources for the application will be installed under ${prefix}.
26623 You may need to run \"${MAKE-make} install\" with sudo. The application will fail
26624 to run if these resources are not installed."
26629 if test "${opsys}" = "cygwin"; then
26631 1.5.
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: building Emacs on Cygwin 1.5 is not supported." >&5
26632 $as_echo "$as_me: WARNING: building Emacs on Cygwin 1.5 is not supported." >&2;}
26638 # Remove any trailing slashes in these variables.
26639 test "${prefix}" != NONE
&&
26640 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
26641 test "${exec_prefix}" != NONE
&&
26642 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
26644 if test "$HAVE_NS" = "yes"; then
26645 if test "$NS_IMPL_GNUSTEP" = yes; then
26646 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"
26649 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"
26654 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"
26656 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"
26659 opt_makefile
=test
/automated
/Makefile
26661 if test -f "$srcdir/$opt_makefile.in"; then
26662 SUBDIR_MAKEFILES
="$SUBDIR_MAKEFILES $opt_makefile"
26663 ac_config_files
="$ac_config_files test/automated/Makefile"
26668 opt_makefile
=admin
/unidata
/Makefile
26670 if test -f "$srcdir/$opt_makefile.in"; then
26671 SUBDIR_MAKEFILES
="$SUBDIR_MAKEFILES $opt_makefile"
26672 ac_config_files
="$ac_config_files admin/unidata/Makefile"
26677 SUBDIR_MAKEFILES_IN
=`echo " ${SUBDIR_MAKEFILES}" | sed -e 's| | $(srcdir)/|g' -e 's|Makefile|Makefile.in|g'`
26681 ac_config_commands
="$ac_config_commands mkdirs"
26684 ac_config_commands
="$ac_config_commands epaths"
26687 ac_config_commands
="$ac_config_commands gdbinit"
26690 cat >confcache
<<\_ACEOF
26691 # This file is a shell script that caches the results of configure
26692 # tests run on this system so they can be shared between configure
26693 # scripts and configure runs, see configure's option --config-cache.
26694 # It is not useful on other systems. If it contains results you don't
26695 # want to keep, you may remove or edit it.
26697 # config.status only pays attention to the cache file if you give it
26698 # the --recheck option to rerun configure.
26700 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26701 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26702 # following values.
26706 # The following way of writing the cache mishandles newlines in values,
26707 # but we know of no workaround that is simple, portable, and efficient.
26708 # So, we kill variables containing newlines.
26709 # Ultrix sh set writes to stderr and can't be redirected directly,
26710 # and sets the high bit in the cache file unless we assign to the vars.
26712 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26713 eval ac_val
=\$
$ac_var
26717 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
26718 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
26721 _ | IFS | as_nl
) ;; #(
26722 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
26723 *) { eval $ac_var=; unset $ac_var;} ;;
26729 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26730 *${as_nl}ac_space
=\
*)
26731 # `set' does not quote correctly, so add quotes: double-quote
26732 # substitution turns \\\\ into \\, and sed turns \\ into \.
26735 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26738 # `set' quotes correctly as required by POSIX, so do not add quotes.
26739 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26748 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26750 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26752 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
26753 if test -w "$cache_file"; then
26754 test "x$cache_file" != "x/dev/null" &&
26755 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
26756 $as_echo "$as_me: updating cache $cache_file" >&6;}
26757 cat confcache
>$cache_file
26759 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
26760 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26765 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
26766 # Let make expand exec_prefix.
26767 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
26769 DEFS
=-DHAVE_CONFIG_H
26773 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
26774 # 1. Remove the extension, and $U if already installed.
26775 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
26776 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
26777 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
26778 # will be set to the directory where LIBOBJS objects are built.
26779 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26780 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
26782 LIBOBJS
=$ac_libobjs
26784 LTLIBOBJS
=$ac_ltlibobjs
26787 if test -n "$EXEEXT"; then
26789 am__EXEEXT_FALSE
='#'
26791 am__EXEEXT_TRUE
='#'
26795 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
26796 as_fn_error
"conditional \"AMDEP\" was never defined.
26797 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26799 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26800 as_fn_error
"conditional \"am__fastdepCC\" was never defined.
26801 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26803 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
26804 as_fn_error
"conditional \"GL_COND_LIBTOOL\" was never defined.
26805 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26807 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
26808 as_fn_error
"conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
26809 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26812 if test -z "${GL_GENERATE_EXECINFO_H_TRUE}" && test -z "${GL_GENERATE_EXECINFO_H_FALSE}"; then
26813 as_fn_error
"conditional \"GL_GENERATE_EXECINFO_H\" was never defined.
26814 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26816 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
26817 as_fn_error
"conditional \"GL_GENERATE_STDINT_H\" was never defined.
26818 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26820 if test -z "${GL_GENERATE_STDALIGN_H_TRUE}" && test -z "${GL_GENERATE_STDALIGN_H_FALSE}"; then
26821 as_fn_error
"conditional \"GL_GENERATE_STDALIGN_H\" was never defined.
26822 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26824 if test -z "${GL_GENERATE_STDARG_H_TRUE}" && test -z "${GL_GENERATE_STDARG_H_FALSE}"; then
26825 as_fn_error
"conditional \"GL_GENERATE_STDARG_H\" was never defined.
26826 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26828 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
26829 as_fn_error
"conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
26830 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26832 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
26833 as_fn_error
"conditional \"GL_GENERATE_STDDEF_H\" was never defined.
26834 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26836 if test -z "${gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_TRUE}" && test -z "${gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_FALSE}"; then
26837 as_fn_error
"conditional \"gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b\" was never defined.
26838 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26840 if test -z "${gl_GNULIB_ENABLED_dosname_TRUE}" && test -z "${gl_GNULIB_ENABLED_dosname_FALSE}"; then
26841 as_fn_error
"conditional \"gl_GNULIB_ENABLED_dosname\" was never defined.
26842 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26844 if test -z "${gl_GNULIB_ENABLED_euidaccess_TRUE}" && test -z "${gl_GNULIB_ENABLED_euidaccess_FALSE}"; then
26845 as_fn_error
"conditional \"gl_GNULIB_ENABLED_euidaccess\" was never defined.
26846 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26848 if test -z "${gl_GNULIB_ENABLED_getgroups_TRUE}" && test -z "${gl_GNULIB_ENABLED_getgroups_FALSE}"; then
26849 as_fn_error
"conditional \"gl_GNULIB_ENABLED_getgroups\" was never defined.
26850 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26852 if test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE}" && test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE}"; then
26853 as_fn_error
"conditional \"gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36\" was never defined.
26854 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26856 if test -z "${gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_TRUE}" && test -z "${gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_FALSE}"; then
26857 as_fn_error
"conditional \"gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1\" was never defined.
26858 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26860 if test -z "${gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_TRUE}" && test -z "${gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_FALSE}"; then
26861 as_fn_error
"conditional \"gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7\" was never defined.
26862 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26864 if test -z "${gl_GNULIB_ENABLED_pathmax_TRUE}" && test -z "${gl_GNULIB_ENABLED_pathmax_FALSE}"; then
26865 as_fn_error
"conditional \"gl_GNULIB_ENABLED_pathmax\" was never defined.
26866 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26868 if test -z "${gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_TRUE}" && test -z "${gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_FALSE}"; then
26869 as_fn_error
"conditional \"gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c\" was never defined.
26870 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26872 if test -z "${gl_GNULIB_ENABLED_stat_TRUE}" && test -z "${gl_GNULIB_ENABLED_stat_FALSE}"; then
26873 as_fn_error
"conditional \"gl_GNULIB_ENABLED_stat\" was never defined.
26874 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26876 if test -z "${gl_GNULIB_ENABLED_strtoll_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoll_FALSE}"; then
26877 as_fn_error
"conditional \"gl_GNULIB_ENABLED_strtoll\" was never defined.
26878 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26880 if test -z "${gl_GNULIB_ENABLED_strtoull_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoull_FALSE}"; then
26881 as_fn_error
"conditional \"gl_GNULIB_ENABLED_strtoull\" was never defined.
26882 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26884 if test -z "${gl_GNULIB_ENABLED_verify_TRUE}" && test -z "${gl_GNULIB_ENABLED_verify_FALSE}"; then
26885 as_fn_error
"conditional \"gl_GNULIB_ENABLED_verify\" was never defined.
26886 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26888 if test -z "${gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_TRUE}" && test -z "${gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_FALSE}"; then
26889 as_fn_error
"conditional \"gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec\" was never defined.
26890 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26895 if test -n "$gl_LIBOBJS"; then
26896 # Remove the extension.
26897 sed_drop_objext
='s/\.o$//;s/\.obj$//'
26898 for i
in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
26899 gl_libobjs
="$gl_libobjs $i.$ac_objext"
26900 gl_ltlibobjs
="$gl_ltlibobjs $i.lo"
26903 gl_LIBOBJS
=$gl_libobjs
26905 gl_LTLIBOBJS
=$gl_ltlibobjs
26911 if test -n "$gltests_LIBOBJS"; then
26912 # Remove the extension.
26913 sed_drop_objext
='s/\.o$//;s/\.obj$//'
26914 for i
in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
26915 gltests_libobjs
="$gltests_libobjs $i.$ac_objext"
26916 gltests_ltlibobjs
="$gltests_ltlibobjs $i.lo"
26919 gltests_LIBOBJS
=$gltests_libobjs
26921 gltests_LTLIBOBJS
=$gltests_ltlibobjs
26925 : ${CONFIG_STATUS=./config.status}
26927 ac_clean_files_save
=$ac_clean_files
26928 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
26929 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
26930 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
26932 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
26934 # Generated by $as_me.
26935 # Run this file to recreate the current configuration.
26936 # Compiler output produced by configure, useful for debugging
26937 # configure, is in config.log if it exists.
26940 ac_cs_recheck=false
26943 SHELL=\${CONFIG_SHELL-$SHELL}
26946 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
26947 ## -------------------- ##
26948 ## M4sh Initialization. ##
26949 ## -------------------- ##
26951 # Be more Bourne compatible
26952 DUALCASE
=1; export DUALCASE
# for MKS sh
26953 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
26956 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26957 # is contrary to our usage. Disable this feature.
26958 alias -g '${1+"$@"}'='"$@"'
26959 setopt NO_GLOB_SUBST
26961 case `(set -o) 2>/dev/null` in #(
26973 # Printing a long string crashes Solaris 7 /usr/bin/printf.
26974 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
26975 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
26976 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
26977 # Prefer a ksh shell builtin over an external printf program on Solaris,
26978 # but without wasting forks for bash or zsh.
26979 if test -z "$BASH_VERSION$ZSH_VERSION" \
26980 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
26981 as_echo='print
-r --'
26982 as_echo_n='print
-rn --'
26983 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
26984 as_echo='printf %s
\n'
26985 as_echo_n='printf %s
'
26987 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
26988 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
26989 as_echo_n='/usr
/ucb
/echo -n'
26991 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
26992 as_echo_n_body='eval
26996 expr "X$arg" : "X\\(.*\\)$as_nl";
26997 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
26999 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
27001 export as_echo_n_body
27002 as_echo_n='sh
-c $as_echo_n_body as_echo
'
27004 export as_echo_body
27005 as_echo='sh
-c $as_echo_body as_echo
'
27008 # The user is always right.
27009 if test "${PATH_SEPARATOR+set}" != set; then
27011 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
27012 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
27019 # We need space, tab and new line, in precisely that order. Quoting is
27020 # there to prevent editors from complaining about space-tab.
27021 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
27022 # splitting by setting IFS to empty value.)
27025 # Find who we are. Look in the path if we contain no directory separator.
27027 *[\\/]* ) as_myself=$0 ;;
27028 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27029 for as_dir in $PATH
27032 test -z "$as_dir" && as_dir=.
27033 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27039 # We did not find ourselves, most probably we were run as `sh COMMAND'
27040 # in which case we are not to be found in the path.
27041 if test "x$as_myself" = x
; then
27044 if test ! -f "$as_myself"; then
27045 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27049 # Unset variables that we do not need and which cause bugs (e.g. in
27050 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
27051 # suppresses any "Segmentation fault" message there. '((' could
27052 # trigger a bug in pdksh 5.2.14.
27053 for as_var
in BASH_ENV ENV MAIL MAILPATH
27054 do eval test x\
${$as_var+set} = xset \
27055 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
27068 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
27071 # as_fn_error ERROR [LINENO LOG_FD]
27072 # ---------------------------------
27073 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
27074 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
27075 # script with status $?, using 1 if that was 0.
27078 as_status
=$?
; test $as_status -eq 0 && as_status
=1
27080 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
27081 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
27083 $as_echo "$as_me: error: $1" >&2
27084 as_fn_exit
$as_status
27088 # as_fn_set_status STATUS
27089 # -----------------------
27090 # Set $? to STATUS, without forking.
27091 as_fn_set_status
()
27094 } # as_fn_set_status
27096 # as_fn_exit STATUS
27097 # -----------------
27098 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
27102 as_fn_set_status
$1
27108 # Portably unset VAR.
27111 { eval $1=; unset $1;}
27113 as_unset
=as_fn_unset
27114 # as_fn_append VAR VALUE
27115 # ----------------------
27116 # Append the text in VALUE to the end of the definition contained in VAR. Take
27117 # advantage of any shell optimizations that allow amortized linear growth over
27118 # repeated appends, instead of the typical quadratic growth present in naive
27120 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
27121 eval 'as_fn_append ()
27132 # as_fn_arith ARG...
27133 # ------------------
27134 # Perform arithmetic evaluation on the ARGs, and store the result in the
27135 # global $as_val. Take advantage of shells that can avoid forks. The arguments
27136 # must be portable across $(()) and expr.
27137 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
27138 eval 'as_fn_arith ()
27145 as_val
=`expr "$@" || test $? -eq 1`
27150 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
27151 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
27157 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27158 as_basename
=basename
27163 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
27169 as_me
=`$as_basename -- "$0" ||
27170 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27171 X"$0" : 'X\(//\)$' \| \
27172 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27174 sed '/^.*\/\([^/][^/]*\)\/*$/{
27188 # Avoid depending upon Character Ranges.
27189 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
27190 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27191 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
27192 as_cr_digits
='0123456789'
27193 as_cr_alnum
=$as_cr_Letters$as_cr_digits
27195 ECHO_C
= ECHO_N
= ECHO_T
=
27196 case `echo -n x` in #(((((
27198 case `echo 'xy\c'` in
27199 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
27201 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
27208 rm -f conf$$ conf$$.exe conf$$.
file
27209 if test -d conf$$.dir
; then
27210 rm -f conf$$.dir
/conf$$.
file
27213 mkdir conf$$.dir
2>/dev
/null
27215 if (echo >conf$$.
file) 2>/dev
/null
; then
27216 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
27218 # ... but there are two gotchas:
27219 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27220 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27221 # In both cases, we have to default to `cp -p'.
27222 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
27224 elif ln conf$$.
file conf$$
2>/dev
/null
; then
27232 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
27233 rmdir conf$$.dir
2>/dev
/null
27238 # Create "$as_dir" as a directory, including parents if necessary.
27243 -*) as_dir
=.
/$as_dir;;
27245 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
27249 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27250 *) as_qdir
=$as_dir;;
27252 as_dirs
="'$as_qdir' $as_dirs"
27253 as_dir
=`$as_dirname -- "$as_dir" ||
27254 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27255 X"$as_dir" : 'X\(//\)[^/]' \| \
27256 X"$as_dir" : 'X\(//\)$' \| \
27257 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27258 $as_echo X"$as_dir" |
27259 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27263 /^X\(\/\/\)[^/].*/{
27276 test -d "$as_dir" && break
27278 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
27279 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
27283 if mkdir
-p .
2>/dev
/null
; then
27284 as_mkdir_p
='mkdir -p "$as_dir"'
27286 test -d .
/-p && rmdir .
/-p
27290 if test -x / >/dev
/null
2>&1; then
27291 as_test_x
='test -x'
27293 if ls -dL / >/dev
/null
2>&1; then
27300 if test -d "$1"; then
27306 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
27307 ???[sx]*):;;*)false;;esac;fi
27311 as_executable_p
=$as_test_x
27313 # Sed expression to map a string onto a valid CPP name.
27314 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27316 # Sed expression to map a string onto a valid variable name.
27317 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27321 ## ----------------------------------- ##
27322 ## Main body of $CONFIG_STATUS script. ##
27323 ## ----------------------------------- ##
27325 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
27327 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27328 # Save the log message, to keep $0 and so on meaningful, and to
27329 # report actual input values of CONFIG_FILES etc. instead of their
27330 # values after options handling.
27332 This file was extended by emacs $as_me 24.3.50, which was
27333 generated by GNU Autoconf 2.65. Invocation command line was
27335 CONFIG_FILES = $CONFIG_FILES
27336 CONFIG_HEADERS = $CONFIG_HEADERS
27337 CONFIG_LINKS = $CONFIG_LINKS
27338 CONFIG_COMMANDS = $CONFIG_COMMANDS
27341 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27346 case $ac_config_files in *"
27347 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
27350 case $ac_config_headers in *"
27351 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
27355 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27356 # Files that config.status was made for.
27357 config_files="$ac_config_files"
27358 config_headers="$ac_config_headers"
27359 config_commands="$ac_config_commands"
27363 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27365 \`$as_me' instantiates files and other configuration actions
27366 from templates according to the current configuration. Unless the files
27367 and actions are specified as TAGs, all are instantiated by default.
27369 Usage: $0 [OPTION]... [TAG]...
27371 -h, --help print this help, then exit
27372 -V, --version print version number and configuration settings, then exit
27373 --config print configuration, then exit
27374 -q, --quiet, --silent
27375 do not print progress messages
27376 -d, --debug don't remove temporary files
27377 --recheck update $as_me by reconfiguring in the same conditions
27378 --file=FILE[:TEMPLATE]
27379 instantiate the configuration file FILE
27380 --header=FILE[:TEMPLATE]
27381 instantiate the configuration header FILE
27383 Configuration files:
27386 Configuration headers:
27389 Configuration commands:
27392 Report bugs to the package provider."
27395 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27396 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
27398 emacs config.status 24.3.50
27399 configured by $0, generated by GNU Autoconf 2.65,
27400 with options \\"\$ac_cs_config\\"
27402 Copyright (C) 2009 Free Software Foundation, Inc.
27403 This config.status script is free software; the Free Software Foundation
27404 gives unlimited permission to copy, distribute and modify it."
27411 test -n "\$AWK" || AWK=awk
27414 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27415 # The default lists apply if the user does not specify any file.
27421 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
27422 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
27433 # Handling of the options.
27434 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
27436 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
27437 $as_echo "$ac_cs_version"; exit ;;
27438 --config |
--confi |
--conf |
--con |
--co |
--c )
27439 $as_echo "$ac_cs_config"; exit ;;
27440 --debug |
--debu |
--deb |
--de |
--d |
-d )
27442 --file |
--fil |
--fi |
--f )
27445 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27447 as_fn_append CONFIG_FILES
" '$ac_optarg'"
27448 ac_need_defaults
=false
;;
27449 --header |
--heade |
--head |
--hea )
27452 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27454 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
27455 ac_need_defaults
=false
;;
27457 # Conflict between --help and --header
27458 as_fn_error
"ambiguous option: \`$1'
27459 Try \`$0 --help' for more information.";;
27460 --help |
--hel |
-h )
27461 $as_echo "$ac_cs_usage"; exit ;;
27462 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
27463 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
27466 # This is an error.
27467 -*) as_fn_error
"unrecognized option: \`$1'
27468 Try \`$0 --help' for more information." ;;
27470 *) as_fn_append ac_config_targets
" $1"
27471 ac_need_defaults
=false
;;
27477 ac_configure_extra_args
=
27479 if $ac_cs_silent; then
27481 ac_configure_extra_args
="$ac_configure_extra_args --silent"
27485 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27486 if \$ac_cs_recheck; then
27487 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27489 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
27490 CONFIG_SHELL='$SHELL'
27491 export CONFIG_SHELL
27496 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27500 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27501 ## Running $as_me. ##
27507 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27511 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
27512 GCC="$GCC" CPPFLAGS="$CPPFLAGS"
27516 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27518 # Handling of arguments.
27519 for ac_config_target
in $ac_config_targets
27521 case $ac_config_target in
27522 "src/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
27523 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
27524 "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" ;;
27525 "nextstep/GNUstep/Emacs.base/Resources/Emacs.desktop") CONFIG_FILES
="$CONFIG_FILES nextstep/GNUstep/Emacs.base/Resources/Emacs.desktop:nextstep/templates/Emacs.desktop.in" ;;
27526 "nextstep/Cocoa/Emacs.base/Contents/Info.plist") CONFIG_FILES
="$CONFIG_FILES nextstep/Cocoa/Emacs.base/Contents/Info.plist:nextstep/templates/Info.plist.in" ;;
27527 "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" ;;
27528 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
27529 "lib/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/Makefile" ;;
27530 "lib-src/Makefile") CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile" ;;
27531 "oldXMenu/Makefile") CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
27532 "doc/emacs/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/emacs/Makefile" ;;
27533 "doc/misc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/misc/Makefile" ;;
27534 "doc/lispintro/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispintro/Makefile" ;;
27535 "doc/lispref/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispref/Makefile" ;;
27536 "src/Makefile") CONFIG_FILES
="$CONFIG_FILES src/Makefile" ;;
27537 "lwlib/Makefile") CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
27538 "lisp/Makefile") CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
27539 "leim/Makefile") CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
27540 "nextstep/Makefile") CONFIG_FILES
="$CONFIG_FILES nextstep/Makefile" ;;
27541 "test/automated/Makefile") CONFIG_FILES
="$CONFIG_FILES test/automated/Makefile" ;;
27542 "admin/unidata/Makefile") CONFIG_FILES
="$CONFIG_FILES admin/unidata/Makefile" ;;
27543 "mkdirs") CONFIG_COMMANDS
="$CONFIG_COMMANDS mkdirs" ;;
27544 "epaths") CONFIG_COMMANDS
="$CONFIG_COMMANDS epaths" ;;
27545 "gdbinit") CONFIG_COMMANDS
="$CONFIG_COMMANDS gdbinit" ;;
27547 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
27552 # If the user did not use the arguments to specify the items to instantiate,
27553 # then the envvar interface is used. Set only those that are not.
27554 # We use the long form for the default assignment because of an extremely
27555 # bizarre bug on SunOS 4.1.3.
27556 if $ac_need_defaults; then
27557 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
27558 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
27559 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
27562 # Have a temporary directory for convenience. Make it in the build tree
27563 # simply because there is no reason against having it here, and in addition,
27564 # creating and moving files from /tmp can sometimes cause problems.
27565 # Hook for its removal unless debugging.
27566 # Note that there is a small window in which the directory will not be cleaned:
27567 # after its creation but before its name has been assigned to `$tmp'.
27571 trap 'exit_status=$?
27572 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
27574 trap 'as_fn_exit 1' 1 2 13 15
27576 # Create a (secure) tmp directory for tmp files.
27579 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27580 test -n "$tmp" && test -d "$tmp"
27583 tmp
=.
/conf$$
-$RANDOM
27584 (umask 077 && mkdir
"$tmp")
27585 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
27587 # Set up the scripts for CONFIG_FILES section.
27588 # No need to generate them if there are no CONFIG_FILES.
27589 # This happens for instance with `./config.status config.h'.
27590 if test -n "$CONFIG_FILES"; then
27592 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
27593 ac_cs_awk_getline
=:
27594 ac_cs_awk_pipe_init
=
27595 ac_cs_awk_read_file
='
27596 while ((getline aline < (F[key])) > 0)
27599 ac_cs_awk_pipe_fini
=
27601 ac_cs_awk_getline
=false
27602 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
27603 ac_cs_awk_read_file
='
27605 print "cat " F[key] " &&"
27606 '$ac_cs_awk_pipe_init
27607 # The final `:' finishes the AND list.
27608 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
27610 ac_cr
=`echo X | tr X '\015'`
27611 # On cygwin, bash can eat \r inside `` if the user requested igncr.
27612 # But we know of no other shell where ac_cr would be empty at this
27613 # point, so we can use a bashism as a fallback.
27614 if test "x$ac_cr" = x
; then
27615 eval ac_cr
=\$
\'\\r
\'
27617 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
27618 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
27621 ac_cs_awk_cr
=$ac_cr
27624 echo 'BEGIN {' >"$tmp/subs1.awk" &&
27627 # Create commands to substitute file output variables.
27629 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
27630 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
27631 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
27634 } >conf$
$files.sh
&&
27635 . .
/conf$
$files.sh ||
27636 as_fn_error
"could not make $CONFIG_STATUS" "$LINENO" 5
27637 rm -f conf$
$files.sh
27640 echo "cat >conf$$subs.awk <<_ACEOF" &&
27641 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
27643 } >conf$$subs.sh ||
27644 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
27645 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
27647 for ac_last_try in false false false false false :; do
27648 . ./conf$$subs.sh ||
27649 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
27651 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
27652 if test $ac_delim_n = $ac_delim_num; then
27654 elif $ac_last_try; then
27655 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
27657 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
27660 rm -f conf$$subs.sh
27662 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27663 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
27667 s/^/S["/; s
/!.
*/"]=/
27677 s/\(.\{148\}\)..*/\1/
27679 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
27684 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
27691 s/\(.\{148\}\)..*/\1/
27693 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
27697 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
27702 ' <conf$$subs.awk | sed '
27707 ' >>$CONFIG_STATUS || ac_write_fail=1
27708 rm -f conf$$subs.awk
27709 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27711 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
27712 for (key in S) S_is_set[key] = 1
27714 \$ac_cs_awk_pipe_init
27718 nfields = split(line, field, "@
")
27720 len = length(field[1])
27721 for (i = 2; i < nfields; i++) {
27723 keylen = length(key)
27724 if (S_is_set[key]) {
27726 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
27727 len += length(value) + length(field[++i])
27732 if (nfields == 3 && !substed) {
27734 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
27735 \$ac_cs_awk_read_file
27741 \$ac_cs_awk_pipe_fini
27744 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27745 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
27746 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
27749 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
27750 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
27753 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27754 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
27755 # trailing colons and then remove the whole line if VPATH becomes empty
27756 # (actually we leave an empty line to preserve line numbers).
27757 if test "x
$srcdir" = x.; then
27758 ac_vpsub='/^[ ]*VPATH[ ]*=/{
27759 s/:*\$(srcdir):*/:/
27760 s/:*\${srcdir}:*/:/
27762 s/^\([^=]*=[ ]*\):*/\1/
27768 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27769 fi # test -n "$CONFIG_FILES"
27771 # Set up the scripts for CONFIG_HEADERS section.
27772 # No need to generate them if there are no CONFIG_HEADERS.
27773 # This happens for instance with `./config.status Makefile'.
27774 if test -n "$CONFIG_HEADERS"; then
27775 cat >"$tmp/defines.
awk" <<\_ACAWK ||
27779 # Transform confdefs.h into an awk script `defines.awk', embedded as
27780 # here-document in config.status, that substitutes the proper values into
27781 # config.h.in to produce config.h.
27783 # Create a delimiter string that does not exist in confdefs.h, to ease
27784 # handling of long lines.
27786 for ac_last_try in false false :; do
27787 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
27788 if test -z "$ac_t"; then
27790 elif $ac_last_try; then
27791 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
27793 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
27797 # For the awk script, D is an array of macro values keyed by name,
27798 # likewise P contains macro parameters if any. Preserve backslash
27799 # newline sequences.
27801 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27803 s/.\{148\}/&'"$ac_delim"'/g
27806 s/^[ ]*#[ ]*define[ ][ ]*/ /
27813 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
27815 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
27819 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
27820 D["\
1"]=" \
3\\\\\\n
"\\/p
27822 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
27827 s/.\{148\}/&'"$ac_delim"'/g
27832 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
27835 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
27837 ' <confdefs.h | sed '
27838 s/'"$ac_delim"'/"\\\
27839 "/g' >>$CONFIG_STATUS || ac_write_fail=1
27841 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27842 for (key in D) D_is_set[key] = 1
27845 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
27847 split(line, arg, " ")
27848 if (arg[1] == "#") {
27852 defundef
= substr
(arg
[1], 2)
27855 split(mac1
, mac2
, "(") #)
27857 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
27858 if (D_is_set
[macro
]) {
27859 # Preserve the white space surrounding the "#".
27860 print prefix
"define", macro P
[macro
] D
[macro
]
27863 # Replace #undef with comments. This is necessary, for example,
27864 # in the case of _POSIX_SOURCE, which is predefined and required
27865 # on some systems where configure will not decide to define it.
27866 if (defundef
== "undef") {
27867 print
"/*", prefix defundef
, macro
, "*/"
27875 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27876 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
27877 fi # test -n "$CONFIG_HEADERS"
27880 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
27885 :[FHLC
]) ac_mode
=$ac_tag; continue;;
27887 case $ac_mode$ac_tag in
27889 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
27890 :[FH
]-) ac_tag
=-:-;;
27891 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
27908 -) ac_f
="$tmp/stdin";;
27909 *) # Look for the file first in the build tree, then in the source tree
27910 # (if the path is not absolute). The absolute path cannot be DOS-style,
27911 # because $ac_f cannot contain `:'.
27915 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
27917 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
27919 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
27920 as_fn_append ac_file_inputs
" '$ac_f'"
27923 # Let's still pretend it is `configure' which instantiates (i.e., don't
27924 # use $as_me), people would be surprised to read:
27925 # /* config.h. Generated by config.status. */
27926 configure_input
='Generated from '`
27927 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
27929 if test x
"$ac_file" != x-
; then
27930 configure_input
="$ac_file. $configure_input"
27931 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
27932 $as_echo "$as_me: creating $ac_file" >&6;}
27934 # Neutralize special characters interpreted by sed in replacement strings.
27935 case $configure_input in #(
27936 *\
&* |
*\|
* |
*\\* )
27937 ac_sed_conf_input
=`$as_echo "$configure_input" |
27938 sed 's/[\\\\&|]/\\\\&/g'`;; #(
27939 *) ac_sed_conf_input
=$configure_input;;
27943 *:-:* |
*:-) cat >"$tmp/stdin" \
27944 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
27949 ac_dir
=`$as_dirname -- "$ac_file" ||
27950 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27951 X"$ac_file" : 'X\(//\)[^/]' \| \
27952 X"$ac_file" : 'X\(//\)$' \| \
27953 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27954 $as_echo X"$ac_file" |
27955 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27959 /^X\(\/\/\)[^/].*/{
27972 as_dir
="$ac_dir"; as_fn_mkdir_p
27976 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
27978 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
27979 # A ".." for each directory in $ac_dir_suffix.
27980 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
27981 case $ac_top_builddir_sub in
27982 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
27983 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
27986 ac_abs_top_builddir
=$ac_pwd
27987 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
27988 # for backward compatibility:
27989 ac_top_builddir
=$ac_top_build_prefix
27992 .
) # We are building in place.
27994 ac_top_srcdir
=$ac_top_builddir_sub
27995 ac_abs_top_srcdir
=$ac_pwd ;;
27996 [\\/]* | ?
:[\\/]* ) # Absolute name.
27997 ac_srcdir
=$srcdir$ac_dir_suffix;
27998 ac_top_srcdir
=$srcdir
27999 ac_abs_top_srcdir
=$srcdir ;;
28000 *) # Relative name.
28001 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
28002 ac_top_srcdir
=$ac_top_build_prefix$srcdir
28003 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
28005 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
28015 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
28016 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
28018 ac_MKDIR_P
=$MKDIR_P
28020 [\\/$
]* | ?
:[\\/]* ) ;;
28021 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
28025 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28026 # If the template does not know about datarootdir, expand it.
28027 # FIXME: This hack should be removed a few years after 2.60.
28028 ac_datarootdir_hack
=; ac_datarootdir_seen
=
28039 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
28040 *datarootdir
*) ac_datarootdir_seen
=yes;;
28041 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
28042 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28043 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28045 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28046 ac_datarootdir_hack='
28047 s&@datadir@&$datadir&g
28048 s&@docdir@&$docdir&g
28049 s&@infodir@&$infodir&g
28050 s&@localedir@&$localedir&g
28051 s&@mandir@&$mandir&g
28052 s&\\\${datarootdir}&$datarootdir&g' ;;
28056 # Neutralize VPATH when `$srcdir' = `.'.
28057 # Shell code in configure.ac might set extrasub.
28058 # FIXME: do we really want to maintain this feature?
28059 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28060 ac_sed_extra="$ac_vpsub
28063 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28065 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
28066 s|@configure_input@|
$ac_sed_conf_input|
;t t
28067 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
28068 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
28069 s
&@srcdir@
&$ac_srcdir&;t t
28070 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
28071 s
&@top_srcdir@
&$ac_top_srcdir&;t t
28072 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
28073 s
&@builddir@
&$ac_builddir&;t t
28074 s
&@abs_builddir@
&$ac_abs_builddir&;t t
28075 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
28076 s
&@INSTALL@
&$ac_INSTALL&;t t
28077 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
28078 $ac_datarootdir_hack
28080 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
28081 if $ac_cs_awk_getline; then
28082 $AWK -f "$tmp/subs.
awk"
28084 $AWK -f "$tmp/subs.
awk" | $SHELL
28086 || as_fn_error "could not create
$ac_file" "$LINENO" 5
28088 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28089 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
28090 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
28091 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
28092 which seems to be undefined. Please make sure it is defined." >&5
28093 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
28094 which seems to be undefined. Please make sure it is defined." >&2;}
28098 -) cat "$tmp/out" && rm -f "$tmp/out";;
28099 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
28101 || as_fn_error "could not create $ac_file" "$LINENO" 5
28107 if test x"$ac_file" != x-; then
28109 $as_echo "/* $configure_input */" \
28110 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
28111 } >"$tmp/config.h" \
28112 || as_fn_error "could not create $ac_file" "$LINENO" 5
28113 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
28114 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
28115 $as_echo "$as_me: $ac_file is unchanged" >&6;}
28118 mv "$tmp/config.h" "$ac_file" \
28119 || as_fn_error "could not create $ac_file" "$LINENO" 5
28122 $as_echo "/* $configure_input */" \
28123 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
28124 || as_fn_error "could not create -" "$LINENO" 5
28126 # Compute "$ac_file"'s index
in $config_headers.
28129 for _am_header
in $config_headers :; do
28130 case $_am_header in
28131 $_am_arg |
$_am_arg:* )
28134 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
28137 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
28138 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28139 X"$_am_arg" : 'X\(//\)[^/]' \| \
28140 X"$_am_arg" : 'X\(//\)$' \| \
28141 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
28142 $as_echo X"$_am_arg" |
28143 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28147 /^X\(\/\/\)[^/].*/{
28159 s/.*/./; q'`/stamp-h
$_am_stamp_count
28162 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
28163 $as_echo "$as_me: executing $ac_file commands" >&6;}
28168 case $ac_file$ac_mode in
28169 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
28170 # Autoconf 2.62 quotes --file arguments for eval, but not when files
28171 # are listed without --file. Let's play safe and only enable the eval
28172 # if we detect the quoting.
28173 case $CONFIG_FILES in
28174 *\'*) eval set x
"$CONFIG_FILES" ;;
28175 *) set x
$CONFIG_FILES ;;
28180 # Strip MF so we end up with the name of the file.
28181 mf
=`echo "$mf" | sed -e 's/:.*$//'`
28182 # Check whether this is an Automake generated Makefile or not.
28183 # We used to match only the files named `Makefile.in', but
28184 # some people rename them; so instead we look at the file content.
28185 # Grep'ing the first line is not enough: some people post-process
28186 # each Makefile.in and add a new line on top of each file to say so.
28187 # Grep'ing the whole file is not good either: AIX grep has a line
28188 # limit of 2048, but all sed's we know have understand at least 4000.
28189 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
28190 dirpart
=`$as_dirname -- "$mf" ||
28191 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28192 X"$mf" : 'X\(//\)[^/]' \| \
28193 X"$mf" : 'X\(//\)$' \| \
28194 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
28196 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28200 /^X\(\/\/\)[^/].*/{
28216 # Extract the definition of DEPDIR, am__include, and am__quote
28217 # from the Makefile without running `make'.
28218 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
28219 test -z "$DEPDIR" && continue
28220 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
28221 test -z "am__include" && continue
28222 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
28223 # When using ansi2knr, U may be empty or an underscore; expand it
28224 U
=`sed -n 's/^U = //p' < "$mf"`
28225 # Find all dependency output files, they are included files with
28226 # $(DEPDIR) in their names. We invoke sed twice because it is the
28227 # simplest approach to changing $(DEPDIR) to its actual value in the
28229 for file in `sed -n "
28230 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
28231 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
28232 # Make sure the directory exists.
28233 test -f "$dirpart/$file" && continue
28234 fdir
=`$as_dirname -- "$file" ||
28235 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28236 X"$file" : 'X\(//\)[^/]' \| \
28237 X"$file" : 'X\(//\)$' \| \
28238 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
28239 $as_echo X"$file" |
28240 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28244 /^X\(\/\/\)[^/].*/{
28257 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
28258 # echo "creating $dirpart/$file"
28259 echo '# dummy' > "$dirpart/$file"
28265 for dir
in etc lisp
; do
28266 test -d ${dir} || mkdir
${dir}
28270 echo creating src
/epaths.h
28271 ${MAKE-make} MAKEFILE_NAME
=do-not-make-Makefile epaths-force
28274 if test ! -f src
/.gdbinit
&& test -f "$srcdir/src/.gdbinit"; then
28275 echo creating src
/.gdbinit
28276 echo "source $srcdir/src/.gdbinit" > src
/.gdbinit
28286 ac_clean_files
=$ac_clean_files_save
28288 test $ac_write_fail = 0 ||
28289 as_fn_error
"write failure creating $CONFIG_STATUS" "$LINENO" 5
28292 # configure is writing to config.log, and then calls config.status.
28293 # config.status does its own redirection, appending to config.log.
28294 # Unfortunately, on DOS this fails, as config.log is still kept open
28295 # by configure, so config.status won't be able to write to it; its
28296 # output is simply discarded. So we exec the FD to /dev/null,
28297 # effectively closing config.log, so it can be properly (re)opened and
28298 # appended to by config.status. When coming back to configure, we
28299 # need to make the FD available again.
28300 if test "$no_create" != yes; then
28302 ac_config_status_args
=
28303 test "$silent" = yes &&
28304 ac_config_status_args
="$ac_config_status_args --quiet"
28306 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
28308 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28309 # would make configure fail if this is the last instruction.
28310 $ac_cs_success || as_fn_exit $?
28312 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
28313 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
28314 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}