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
610 LD_SWITCH_SYSTEM_TEMACS
614 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_FALSE
615 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_TRUE
616 gl_GNULIB_ENABLED_verify_FALSE
617 gl_GNULIB_ENABLED_verify_TRUE
618 gl_GNULIB_ENABLED_strtoull_FALSE
619 gl_GNULIB_ENABLED_strtoull_TRUE
620 gl_GNULIB_ENABLED_strtoll_FALSE
621 gl_GNULIB_ENABLED_strtoll_TRUE
622 gl_GNULIB_ENABLED_stat_FALSE
623 gl_GNULIB_ENABLED_stat_TRUE
624 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_FALSE
625 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_TRUE
626 gl_GNULIB_ENABLED_pathmax_FALSE
627 gl_GNULIB_ENABLED_pathmax_TRUE
628 gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_FALSE
629 gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_TRUE
630 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_FALSE
631 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_TRUE
632 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE
633 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE
634 gl_GNULIB_ENABLED_getgroups_FALSE
635 gl_GNULIB_ENABLED_getgroups_TRUE
636 gl_GNULIB_ENABLED_euidaccess_FALSE
637 gl_GNULIB_ENABLED_euidaccess_TRUE
638 gl_GNULIB_ENABLED_dosname_FALSE
639 gl_GNULIB_ENABLED_dosname_TRUE
640 gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_FALSE
641 gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_TRUE
647 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
650 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
651 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
652 TIME_H_DEFINES_STRUCT_TIMESPEC
653 NEXT_AS_FIRST_DIRECTIVE_TIME_H
655 WINDOWS_64_BIT_ST_SIZE
656 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_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
822 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
824 UINT64_MAX_EQ_ULONG_MAX
825 UINT32_MAX_LT_UINTMAX_MAX
828 INT64_MAX_EQ_LONG_MAX
829 INT32_MAX_LT_INTMAX_MAX
839 GL_GENERATE_STDINT_H_FALSE
840 GL_GENERATE_STDINT_H_TRUE
849 HAVE_SIGNED_SIG_ATOMIC_T
852 BITSIZEOF_SIG_ATOMIC_T
855 APPLE_UNIVERSAL_BUILD
859 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
864 HAVE_UNSIGNED_LONG_LONG_INT
867 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
869 REPLACE_STRUCT_TIMEVAL
875 GNULIB_GL_UNISTD_H_GETOPT
878 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
894 REPLACE_CANONICALIZE_FILE_NAME
899 HAVE_STRUCT_RANDOM_DATA
922 HAVE_CANONICALIZE_FILE_NAME
953 GNULIB_CANONICALIZE_FILE_NAME
990 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H
1001 GL_GENERATE_EXECINFO_H_FALSE
1002 GL_GENERATE_EXECINFO_H_TRUE
1006 NEXT_AS_FIRST_DIRECTIVE_DIRENT_H
1009 PRAGMA_SYSTEM_HEADER
1010 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1033 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
1034 UNISTD_H_HAVE_WINSOCK2_H
1055 REPLACE_GETDOMAINNAME
1066 HAVE_DECL_SETHOSTNAME
1067 HAVE_DECL_GETUSERSHELL
1068 HAVE_DECL_GETPAGESIZE
1069 HAVE_DECL_GETLOGIN_R
1070 HAVE_DECL_GETDOMAINNAME
1109 GNULIB_UNISTD_H_SIGPIPE
1110 GNULIB_UNISTD_H_NONBLOCKING
1136 GNULIB_GETDTABLESIZE
1137 GNULIB_GETDOMAINNAME
1154 GL_GENERATE_ALLOCA_H_FALSE
1155 GL_GENERATE_ALLOCA_H_TRUE
1158 GL_COND_LIBTOOL_FALSE
1159 GL_COND_LIBTOOL_TRUE
1190 x_default_search_path
1269 INSTALL_ARCH_INDEP_EXTRA
1271 LD_SWITCH_X_SITE_RPATH
1340 INSTALL_STRIP_PROGRAM
1382 program_transform_name
1393 ac_subst_files
='deps_frag
1396 enable_option_checking
1419 with_toolkit_scroll_bars
1434 with_pkg_config_prog
1438 enable_ns_self_contained
1439 enable_locallisppath
1441 enable_check_lisp_object_type
1444 enable_gtk_deprecation_warnings
1445 enable_dependency_tracking
1448 enable_link_time_optimization
1451 ac_precious_vars
='build_alias
1463 # Initialize some variables set by options.
1465 ac_init_version
=false
1466 ac_unrecognized_opts
=
1467 ac_unrecognized_sep
=
1468 # The variables have the same names as the options, with
1469 # dashes changed to underlines.
1470 cache_file
=/dev
/null
1477 program_transform_name
=s
,x
,x
,
1485 # Installation directory options.
1486 # These are left unexpanded so users can "make install exec_prefix=/foo"
1487 # and all the variables that are supposed to be based on exec_prefix
1488 # by default will actually change.
1489 # Use braces instead of parens because sh, perl, etc. also accept them.
1490 # (The list follows the same order as the GNU Coding Standards.)
1491 bindir
='${exec_prefix}/bin'
1492 sbindir
='${exec_prefix}/sbin'
1493 libexecdir
='${exec_prefix}/libexec'
1494 datarootdir
='${prefix}/share'
1495 datadir
='${datarootdir}'
1496 sysconfdir
='${prefix}/etc'
1497 sharedstatedir
='${prefix}/com'
1498 localstatedir
='${prefix}/var'
1499 includedir
='${prefix}/include'
1500 oldincludedir
='/usr/include'
1501 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
1502 infodir
='${datarootdir}/info'
1507 libdir
='${exec_prefix}/lib'
1508 localedir
='${datarootdir}/locale'
1509 mandir
='${datarootdir}/man'
1515 # If the previous option needs an argument, assign it.
1516 if test -n "$ac_prev"; then
1517 eval $ac_prev=\
$ac_option
1523 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1527 # Accept the important Cygnus configure options, so we can diagnose typos.
1529 case $ac_dashdash$ac_option in
1533 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1535 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1536 bindir
=$ac_optarg ;;
1538 -build |
--build |
--buil |
--bui |
--bu)
1539 ac_prev
=build_alias
;;
1540 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1541 build_alias
=$ac_optarg ;;
1543 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1544 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1545 ac_prev
=cache_file
;;
1546 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1547 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1548 cache_file
=$ac_optarg ;;
1550 --config-cache |
-C)
1551 cache_file
=config.cache
;;
1553 -datadir |
--datadir |
--datadi |
--datad)
1555 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1556 datadir
=$ac_optarg ;;
1558 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1559 |
--dataroo |
--dataro |
--datar)
1560 ac_prev
=datarootdir
;;
1561 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1562 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1563 datarootdir
=$ac_optarg ;;
1565 -disable-* |
--disable-*)
1566 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1567 # Reject names that are not valid shell variable names.
1568 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1569 as_fn_error
"invalid feature name: $ac_useropt"
1570 ac_useropt_orig
=$ac_useropt
1571 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1572 case $ac_user_opts in
1574 "enable_
$ac_useropt"
1576 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1577 ac_unrecognized_sep
=', ';;
1579 eval enable_
$ac_useropt=no
;;
1581 -docdir |
--docdir |
--docdi |
--doc |
--do)
1583 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1584 docdir
=$ac_optarg ;;
1586 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1588 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1589 dvidir
=$ac_optarg ;;
1591 -enable-* |
--enable-*)
1592 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1593 # Reject names that are not valid shell variable names.
1594 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1595 as_fn_error
"invalid feature name: $ac_useropt"
1596 ac_useropt_orig
=$ac_useropt
1597 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1598 case $ac_user_opts in
1600 "enable_
$ac_useropt"
1602 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1603 ac_unrecognized_sep
=', ';;
1605 eval enable_
$ac_useropt=\
$ac_optarg ;;
1607 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1608 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1609 |
--exec |
--exe |
--ex)
1610 ac_prev
=exec_prefix
;;
1611 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1612 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1613 |
--exec=* |
--exe=* |
--ex=*)
1614 exec_prefix
=$ac_optarg ;;
1616 -gas |
--gas |
--ga |
--g)
1617 # Obsolete; use --with-gas.
1620 -help |
--help |
--hel |
--he |
-h)
1621 ac_init_help
=long
;;
1622 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1623 ac_init_help
=recursive
;;
1624 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1625 ac_init_help
=short
;;
1627 -host |
--host |
--hos |
--ho)
1628 ac_prev
=host_alias
;;
1629 -host=* |
--host=* |
--hos=* |
--ho=*)
1630 host_alias
=$ac_optarg ;;
1632 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1634 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1636 htmldir
=$ac_optarg ;;
1638 -includedir |
--includedir |
--includedi |
--included |
--include \
1639 |
--includ |
--inclu |
--incl |
--inc)
1640 ac_prev
=includedir
;;
1641 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1642 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1643 includedir
=$ac_optarg ;;
1645 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1647 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1648 infodir
=$ac_optarg ;;
1650 -libdir |
--libdir |
--libdi |
--libd)
1652 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1653 libdir
=$ac_optarg ;;
1655 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1656 |
--libexe |
--libex |
--libe)
1657 ac_prev
=libexecdir
;;
1658 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1659 |
--libexe=* |
--libex=* |
--libe=*)
1660 libexecdir
=$ac_optarg ;;
1662 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1663 ac_prev
=localedir
;;
1664 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1665 localedir
=$ac_optarg ;;
1667 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1668 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1669 ac_prev
=localstatedir
;;
1670 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1671 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1672 localstatedir
=$ac_optarg ;;
1674 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1676 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1677 mandir
=$ac_optarg ;;
1679 -nfp |
--nfp |
--nf)
1680 # Obsolete; use --without-fp.
1683 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1684 |
--no-cr |
--no-c |
-n)
1687 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1688 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1691 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1692 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1693 |
--oldin |
--oldi |
--old |
--ol |
--o)
1694 ac_prev
=oldincludedir
;;
1695 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1696 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1697 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1698 oldincludedir
=$ac_optarg ;;
1700 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1702 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1703 prefix
=$ac_optarg ;;
1705 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1706 |
--program-pre |
--program-pr |
--program-p)
1707 ac_prev
=program_prefix
;;
1708 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1709 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1710 program_prefix
=$ac_optarg ;;
1712 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1713 |
--program-suf |
--program-su |
--program-s)
1714 ac_prev
=program_suffix
;;
1715 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1716 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1717 program_suffix
=$ac_optarg ;;
1719 -program-transform-name |
--program-transform-name \
1720 |
--program-transform-nam |
--program-transform-na \
1721 |
--program-transform-n |
--program-transform- \
1722 |
--program-transform |
--program-transfor \
1723 |
--program-transfo |
--program-transf \
1724 |
--program-trans |
--program-tran \
1725 |
--progr-tra |
--program-tr |
--program-t)
1726 ac_prev
=program_transform_name
;;
1727 -program-transform-name=* |
--program-transform-name=* \
1728 |
--program-transform-nam=* |
--program-transform-na=* \
1729 |
--program-transform-n=* |
--program-transform-=* \
1730 |
--program-transform=* |
--program-transfor=* \
1731 |
--program-transfo=* |
--program-transf=* \
1732 |
--program-trans=* |
--program-tran=* \
1733 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1734 program_transform_name
=$ac_optarg ;;
1736 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1738 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1739 pdfdir
=$ac_optarg ;;
1741 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1743 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1746 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1747 |
-silent |
--silent |
--silen |
--sile |
--sil)
1750 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1752 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1754 sbindir
=$ac_optarg ;;
1756 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1757 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1758 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1760 ac_prev
=sharedstatedir
;;
1761 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1762 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1763 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1765 sharedstatedir
=$ac_optarg ;;
1767 -site |
--site |
--sit)
1769 -site=* |
--site=* |
--sit=*)
1772 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1774 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1775 srcdir
=$ac_optarg ;;
1777 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1778 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1779 ac_prev
=sysconfdir
;;
1780 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1781 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1782 sysconfdir
=$ac_optarg ;;
1784 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1785 ac_prev
=target_alias
;;
1786 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1787 target_alias
=$ac_optarg ;;
1789 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1792 -version |
--version |
--versio |
--versi |
--vers |
-V)
1793 ac_init_version
=: ;;
1796 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1797 # Reject names that are not valid shell variable names.
1798 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1799 as_fn_error
"invalid package name: $ac_useropt"
1800 ac_useropt_orig
=$ac_useropt
1801 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1802 case $ac_user_opts in
1806 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1807 ac_unrecognized_sep
=', ';;
1809 eval with_
$ac_useropt=\
$ac_optarg ;;
1811 -without-* |
--without-*)
1812 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1813 # Reject names that are not valid shell variable names.
1814 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1815 as_fn_error
"invalid package name: $ac_useropt"
1816 ac_useropt_orig
=$ac_useropt
1817 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1818 case $ac_user_opts in
1822 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1823 ac_unrecognized_sep
=', ';;
1825 eval with_
$ac_useropt=no
;;
1828 # Obsolete; use --with-x.
1831 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1832 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1833 ac_prev
=x_includes
;;
1834 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1835 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1836 x_includes
=$ac_optarg ;;
1838 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1839 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1840 ac_prev
=x_libraries
;;
1841 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1842 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1843 x_libraries
=$ac_optarg ;;
1845 -*) as_fn_error
"unrecognized option: \`$ac_option'
1846 Try \`$0 --help' for more information."
1850 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1851 # Reject names that are not valid shell variable names.
1852 case $ac_envvar in #(
1853 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1854 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1856 eval $ac_envvar=\
$ac_optarg
1857 export $ac_envvar ;;
1860 # FIXME: should be removed in autoconf 3.0.
1861 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1862 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1863 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1864 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1870 if test -n "$ac_prev"; then
1871 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1872 as_fn_error
"missing argument to $ac_option"
1875 if test -n "$ac_unrecognized_opts"; then
1876 case $enable_option_checking in
1878 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1879 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1883 # Check all directory arguments for consistency.
1884 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1885 datadir sysconfdir sharedstatedir localstatedir includedir \
1886 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1887 libdir localedir mandir
1889 eval ac_val
=\$
$ac_var
1890 # Remove trailing slashes.
1893 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1894 eval $ac_var=\
$ac_val;;
1896 # Be sure to have absolute directory names.
1898 [\\/$
]* | ?
:[\\/]* ) continue;;
1899 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1901 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1904 # There might be people who depend on the old broken behavior: `$host'
1905 # used to hold the argument of --host etc.
1906 # FIXME: To remove some day.
1909 target
=$target_alias
1911 # FIXME: To remove some day.
1912 if test "x$host_alias" != x
; then
1913 if test "x$build_alias" = x
; then
1914 cross_compiling
=maybe
1915 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1916 If a cross compiler is detected then cross compile mode will be used." >&2
1917 elif test "x$build_alias" != "x$host_alias"; then
1923 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1925 test "$silent" = yes && exec 6>/dev
/null
1928 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1929 ac_ls_di
=`ls -di .` &&
1930 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1931 as_fn_error
"working directory cannot be determined"
1932 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1933 as_fn_error
"pwd does not report name of working directory"
1936 # Find the source files, if location was not specified.
1937 if test -z "$srcdir"; then
1938 ac_srcdir_defaulted
=yes
1939 # Try the directory containing this script, then the parent directory.
1940 ac_confdir
=`$as_dirname -- "$as_myself" ||
1941 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1942 X"$as_myself" : 'X\(//\)[^/]' \| \
1943 X"$as_myself" : 'X\(//\)$' \| \
1944 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1945 $as_echo X"$as_myself" |
1946 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1964 if test ! -r "$srcdir/$ac_unique_file"; then
1968 ac_srcdir_defaulted
=no
1970 if test ! -r "$srcdir/$ac_unique_file"; then
1971 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1972 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1974 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1976 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1978 # When building in place, set srcdir=.
1979 if test "$ac_abs_confdir" = "$ac_pwd"; then
1982 # Remove unnecessary trailing slashes from srcdir.
1983 # Double slashes in file names in object file debugging info
1984 # mess up M-x gdb in Emacs.
1986 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1988 for ac_var
in $ac_precious_vars; do
1989 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1990 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1991 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1992 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1996 # Report the --help message.
1998 if test "$ac_init_help" = "long"; then
1999 # Omit some internal or obsolete options to make the list less imposing.
2000 # This message is too long to be a string in the A/UX 3.1 sh.
2002 \`configure' configures emacs 24.3.50 to adapt to many kinds of systems.
2004 Usage: $0 [OPTION]... [VAR=VALUE]...
2006 To assign environment variables (e.g., CC, CFLAGS...), specify them as
2007 VAR=VALUE. See below for descriptions of some of the useful variables.
2009 Defaults for the options are specified in brackets.
2012 -h, --help display this help and exit
2013 --help=short display options specific to this package
2014 --help=recursive display the short help of all the included packages
2015 -V, --version display version information and exit
2016 -q, --quiet, --silent do not print \`checking...' messages
2017 --cache-file=FILE cache test results in FILE [disabled]
2018 -C, --config-cache alias for \`--cache-file=config.cache'
2019 -n, --no-create do not create output files
2020 --srcdir=DIR find the sources in DIR [configure dir or \`..']
2022 Installation directories:
2023 --prefix=PREFIX install architecture-independent files in PREFIX
2024 [$ac_default_prefix]
2025 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
2028 By default, \`make install' will install all the files in
2029 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
2030 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
2031 for instance \`--prefix=\$HOME'.
2033 For better control, use the options below.
2035 Fine tuning of the installation directories:
2036 --bindir=DIR user executables [EPREFIX/bin]
2037 --sbindir=DIR system admin executables [EPREFIX/sbin]
2038 --libexecdir=DIR program executables [EPREFIX/libexec]
2039 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
2040 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
2041 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
2042 --libdir=DIR object code libraries [EPREFIX/lib]
2043 --includedir=DIR C header files [PREFIX/include]
2044 --oldincludedir=DIR C header files for non-gcc [/usr/include]
2045 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
2046 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
2047 --infodir=DIR info documentation [DATAROOTDIR/info]
2048 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
2049 --mandir=DIR man documentation [DATAROOTDIR/man]
2050 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
2051 --htmldir=DIR html documentation [DOCDIR]
2052 --dvidir=DIR dvi documentation [DOCDIR]
2053 --pdfdir=DIR pdf documentation [DOCDIR]
2054 --psdir=DIR ps documentation [DOCDIR]
2060 --program-prefix=PREFIX prepend PREFIX to installed program names
2061 --program-suffix=SUFFIX append SUFFIX to installed program names
2062 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
2065 --x-includes=DIR X include files are
in DIR
2066 --x-libraries=DIR X library files are
in DIR
2069 --build=BUILD configure
for building on BUILD
[guessed
]
2070 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
2074 if test -n "$ac_init_help"; then
2075 case $ac_init_help in
2076 short | recursive
) echo "Configuration of emacs 24.3.50:";;
2081 --disable-option-checking ignore unrecognized
--enable/--with options
2082 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
2083 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
2084 --disable-ns-self-contained
2085 disable self contained build under NeXTstep
2086 --enable-locallisppath=PATH
2087 directories Emacs should search
for lisp files
2088 specific to this site
2089 --enable-checking[=LIST
]
2090 enable expensive run-time checks. With LIST
, enable
2091 only specific categories of checks. Categories are
:
2092 all
,yes,no. Flags are
: stringbytes
, stringoverrun
,
2093 stringfreelist
, xmallocoverrun
, conslist
, glyphs
2094 --enable-check-lisp-object-type
2095 enable compile
time checks
for the Lisp_Object data
2096 type. This is useful
for development
for catching
2097 certain types of bugs.
2098 --enable-profiling build emacs with low-level
, gprof profiling support.
2099 Mainly useful
for debugging Emacs itself. May not
2100 work on all platforms. Stops profiler.el working.
2101 --enable-autodepend automatically generate dependencies to .h-files.
2102 Requires GNU Make and Gcc. Enabled
if GNU Make and
2104 --enable-gtk-deprecation-warnings
2105 Show Gtk
+/Gdk deprecation warnings
for Gtk
+ >= 3.0
2106 --disable-dependency-tracking speeds up one-time build
2107 --enable-dependency-tracking do not reject slow dependency extractors
2108 --disable-largefile omit support
for large files
2109 --enable-gcc-warnings turn on lots of GCC warnings
/errors. This is
2110 intended
for developers
, and may generate false
2111 alarms when used with older or non-GNU development
2113 --enable-link-time-optimization
2114 build emacs with link-time optimization. This is
2115 supported only
for GCC since
4.5.0.
2118 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
2119 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
2120 --without-all omit almost all features and build small executable
2121 with minimal dependencies
2122 --without-pop don
't support POP mail retrieval with movemail
2123 --with-kerberos support Kerberos-authenticated POP
2124 --with-kerberos5 support Kerberos version 5 authenticated POP
2125 --with-hesiod support Hesiod to get the POP server host
2126 --with-mmdf support MMDF mailboxes
2127 --with-mail-unlink unlink, rather than empty, mail spool after reading
2128 --with-mailhost=HOSTNAME
2129 string giving default POP mail host
2130 --without-sound don't compile with sound support
2131 --with-x-toolkit=KIT use an X toolkit
(KIT one of
: yes or gtk
, gtk2
,
2132 gtk3
, lucid or athena
, motif
, no
)
2133 --with-wide-int prefer wide Emacs integers
(typically
62-bit)
2134 --without-xpm don
't compile with XPM image support
2135 --without-jpeg don't compile with JPEG image support
2136 --without-tiff don
't compile with TIFF image support
2137 --without-gif don't compile with GIF image support
2138 --without-png don
't compile with PNG image support
2139 --without-rsvg don't compile with SVG image support
2140 --without-xml2 don
't compile with XML parsing support
2141 --without-imagemagick don't compile with ImageMagick image support
2142 --without-xft don
't use XFT for anti aliased fonts
2143 --without-libotf don't use libotf
for OpenType font support
2144 --without-m17n-flt don
't use m17n-flt for text shaping
2145 --without-toolkit-scroll-bars
2146 don't use Motif or Xaw3d scroll bars
2147 --without-xaw3d don
't use Xaw3d
2148 --without-xim don't use X11 XIM
2149 --with-ns use NeXTstep
(Cocoa or GNUstep
) windowing system
2150 --with-w32 use native MS Windows GUI
2151 --without-gpm don
't use -lgpm for mouse support on a GNU/Linux
2153 --without-dbus don't compile with D-Bus support
2154 --without-gconf don
't compile with GConf support
2155 --without-gsettings don't compile with GSettings support
2156 --without-selinux don
't compile with SELinux support
2157 --without-acl don't compile with ACL support
2158 --without-gnutls don
't use -lgnutls for SSL/TLS support
2159 --without-inotify don't compile with inotify
(file-watch
) support
2160 --without-makeinfo don
't require makeinfo for building manuals
2161 --without-compress-info don't
compress the installed Info pages
2162 --with-pkg-config-prog=FILENAME
2163 file name of pkg-config
for finding GTK and librsvg
2164 --with-crt-dir=DIR directory containing crtn.o etc. The default is
2165 /usr
/lib
, or
/usr
/lib64 on some platforms.
2166 --with-gameuser=USER user
for shared game score files
2167 --with-gnustep-conf=FILENAME
2168 name of GNUstep.conf
; default
$GNUSTEP_CONFIG_FILE,
2169 or
/etc
/GNUstep
/GNUstep.conf
2170 --with-x use the X Window System
2172 Some influential environment variables
:
2173 CC C compiler
command
2174 CFLAGS C compiler flags
2175 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
2176 nonstandard directory
<lib dir
>
2177 LIBS libraries to pass to the linker
, e.g.
-l<library
>
2178 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
2179 you have headers
in a nonstandard directory
<include dir
>
2181 XMKMF Path to xmkmf
, Makefile generator
for X Window System
2183 Use these variables to override the choices made by
`configure' or to help
2184 it to find libraries and programs with nonstandard names/locations.
2186 Report bugs to the package provider.
2191 if test "$ac_init_help" = "recursive"; then
2192 # If there are subdirs, report their specific --help.
2193 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2194 test -d "$ac_dir" ||
2195 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2200 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2202 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
2203 # A ".." for each directory in $ac_dir_suffix.
2204 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
2205 case $ac_top_builddir_sub in
2206 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2207 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2210 ac_abs_top_builddir=$ac_pwd
2211 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2212 # for backward compatibility:
2213 ac_top_builddir=$ac_top_build_prefix
2216 .) # We are building in place.
2218 ac_top_srcdir=$ac_top_builddir_sub
2219 ac_abs_top_srcdir=$ac_pwd ;;
2220 [\\/]* | ?:[\\/]* ) # Absolute name.
2221 ac_srcdir=$srcdir$ac_dir_suffix;
2222 ac_top_srcdir=$srcdir
2223 ac_abs_top_srcdir=$srcdir ;;
2225 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2226 ac_top_srcdir=$ac_top_build_prefix$srcdir
2227 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2229 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2231 cd "$ac_dir" || { ac_status=$?; continue; }
2232 # Check for guested configure.
2233 if test -f "$ac_srcdir/configure.gnu"; then
2235 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2236 elif test -f "$ac_srcdir/configure"; then
2238 $SHELL "$ac_srcdir/configure" --help=recursive
2240 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2242 cd "$ac_pwd" || { ac_status=$?; break; }
2246 test -n "$ac_init_help" && exit $ac_status
2247 if $ac_init_version; then
2249 emacs configure 24.3.50
2250 generated by GNU Autoconf 2.65
2252 Copyright (C) 2009 Free Software Foundation, Inc.
2253 This configure script is free software; the Free Software Foundation
2254 gives unlimited permission to copy, distribute and modify it.
2259 ## ------------------------ ##
2260 ## Autoconf initialization. ##
2261 ## ------------------------ ##
2263 # ac_fn_c_try_compile LINENO
2264 # --------------------------
2265 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2266 ac_fn_c_try_compile ()
2268 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2269 rm -f conftest.$ac_objext
2270 if { { ac_try="$ac_compile"
2272 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2273 *) ac_try_echo
=$ac_try;;
2275 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2276 $as_echo "$ac_try_echo"; } >&5
2277 (eval "$ac_compile") 2>conftest.err
2279 if test -s conftest.err
; then
2280 grep -v '^ *+' conftest.err
>conftest.er1
2281 cat conftest.er1
>&5
2282 mv -f conftest.er1 conftest.err
2284 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2285 test $ac_status = 0; } && {
2286 test -z "$ac_c_werror_flag" ||
2287 test ! -s conftest.err
2288 } && test -s conftest.
$ac_objext; then :
2291 $as_echo "$as_me: failed program was:" >&5
2292 sed 's/^/| /' conftest.
$ac_ext >&5
2296 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2297 as_fn_set_status
$ac_retval
2299 } # ac_fn_c_try_compile
2301 # ac_fn_c_try_cpp LINENO
2302 # ----------------------
2303 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2306 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2307 if { { ac_try
="$ac_cpp conftest.$ac_ext"
2309 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2310 *) ac_try_echo=$ac_try;;
2312 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2313 $as_echo "$ac_try_echo"; } >&5
2314 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2316 if test -s conftest.err; then
2317 grep -v '^ *+' conftest.err >conftest.er1
2318 cat conftest.er1 >&5
2319 mv -f conftest.er1 conftest.err
2321 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2322 test $ac_status = 0; } >/dev/null && {
2323 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2324 test ! -s conftest.err
2328 $as_echo "$as_me: failed program was:" >&5
2329 sed 's/^/| /' conftest.$ac_ext >&5
2333 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2334 as_fn_set_status $ac_retval
2338 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2339 # -------------------------------------------------------
2340 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2341 # the include files in INCLUDES and setting the cache variable VAR
2343 ac_fn_c_check_header_mongrel ()
2345 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2346 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2348 $as_echo_n "checking for $2... " >&6; }
2349 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2350 $as_echo_n "(cached) " >&6
2353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2354 $as_echo "$ac_res" >&6; }
2356 # Is the header compilable?
2357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2358 $as_echo_n "checking $2 usability... " >&6; }
2359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2360 /* end confdefs.h. */
2364 if ac_fn_c_try_compile "$LINENO"; then :
2365 ac_header_compiler=yes
2367 ac_header_compiler=no
2369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2371 $as_echo "$ac_header_compiler" >&6; }
2373 # Is the header present?
2374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2375 $as_echo_n "checking $2 presence... " >&6; }
2376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2377 /* end confdefs.h. */
2380 if ac_fn_c_try_cpp "$LINENO"; then :
2381 ac_header_preproc=yes
2383 ac_header_preproc=no
2385 rm -f conftest.err conftest.$ac_ext
2386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2387 $as_echo "$ac_header_preproc" >&6; }
2389 # So? What about this header?
2390 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2392 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2393 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2394 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2395 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2398 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2399 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2400 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2401 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2402 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2403 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2404 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2405 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2406 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2407 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2411 $as_echo_n "checking for $2... " >&6; }
2412 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2413 $as_echo_n "(cached) " >&6
2415 eval "$3=\$ac_header_compiler"
2418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2419 $as_echo "$ac_res" >&6; }
2421 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2423 } # ac_fn_c_check_header_mongrel
2425 # ac_fn_c_try_run LINENO
2426 # ----------------------
2427 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2428 # that executables *can* be run.
2431 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2432 if { { ac_try="$ac_link"
2434 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2435 *) ac_try_echo
=$ac_try;;
2437 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2438 $as_echo "$ac_try_echo"; } >&5
2439 (eval "$ac_link") 2>&5
2441 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2442 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
2443 { { case "(($ac_try" in
2444 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2445 *) ac_try_echo=$ac_try;;
2447 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2448 $as_echo "$ac_try_echo"; } >&5
2449 (eval "$ac_try") 2>&5
2451 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2452 test $ac_status = 0; }; }; then :
2455 $as_echo "$as_me: program exited with status $ac_status" >&5
2456 $as_echo "$as_me: failed program was:" >&5
2457 sed 's/^/| /' conftest.$ac_ext >&5
2459 ac_retval=$ac_status
2461 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2462 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2463 as_fn_set_status $ac_retval
2467 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2468 # -------------------------------------------------------
2469 # Tests whether HEADER exists and can be compiled using the include files in
2470 # INCLUDES, setting the cache variable VAR accordingly.
2471 ac_fn_c_check_header_compile ()
2473 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2475 $as_echo_n "checking for $2... " >&6; }
2476 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2477 $as_echo_n "(cached) " >&6
2479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2480 /* end confdefs.h. */
2484 if ac_fn_c_try_compile "$LINENO"; then :
2489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2493 $as_echo "$ac_res" >&6; }
2494 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2496 } # ac_fn_c_check_header_compile
2498 # ac_fn_c_try_link LINENO
2499 # -----------------------
2500 # Try to link conftest.$ac_ext, and return whether this succeeded.
2503 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2504 rm -f conftest.$ac_objext conftest$ac_exeext
2505 if { { ac_try="$ac_link"
2507 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2508 *) ac_try_echo
=$ac_try;;
2510 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2511 $as_echo "$ac_try_echo"; } >&5
2512 (eval "$ac_link") 2>conftest.err
2514 if test -s conftest.err
; then
2515 grep -v '^ *+' conftest.err
>conftest.er1
2516 cat conftest.er1
>&5
2517 mv -f conftest.er1 conftest.err
2519 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2520 test $ac_status = 0; } && {
2521 test -z "$ac_c_werror_flag" ||
2522 test ! -s conftest.err
2523 } && test -s conftest
$ac_exeext && {
2524 test "$cross_compiling" = yes ||
2525 $as_test_x conftest
$ac_exeext
2529 $as_echo "$as_me: failed program was:" >&5
2530 sed 's/^/| /' conftest.
$ac_ext >&5
2534 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2535 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2536 # interfere with the next link command; also delete a directory that is
2537 # left behind by Apple's compiler. We do this before executing the actions.
2538 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2539 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2540 as_fn_set_status
$ac_retval
2542 } # ac_fn_c_try_link
2544 # ac_fn_c_check_decl LINENO SYMBOL VAR
2545 # ------------------------------------
2546 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2547 ac_fn_c_check_decl
()
2549 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2551 $as_echo_n "checking whether $2 is declared... " >&6; }
2552 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2553 $as_echo_n "(cached) " >&6
2555 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2556 /* end confdefs.h. */
2569 if ac_fn_c_try_compile
"$LINENO"; then :
2574 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2578 $as_echo "$ac_res" >&6; }
2579 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2581 } # ac_fn_c_check_decl
2583 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2584 # ----------------------------------------------
2585 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2586 ac_fn_c_check_header_preproc
()
2588 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2590 $as_echo_n "checking for $2... " >&6; }
2591 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2592 $as_echo_n "(cached) " >&6
2594 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2595 /* end confdefs.h. */
2598 if ac_fn_c_try_cpp
"$LINENO"; then :
2603 rm -f conftest.err conftest.
$ac_ext
2606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2607 $as_echo "$ac_res" >&6; }
2608 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2610 } # ac_fn_c_check_header_preproc
2612 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2613 # ----------------------------------------------------
2614 # Tries to find if the field MEMBER exists in type AGGR, after including
2615 # INCLUDES, setting cache variable VAR accordingly.
2616 ac_fn_c_check_member
()
2618 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2620 $as_echo_n "checking for $2.$3... " >&6; }
2621 if { as_var
=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2622 $as_echo_n "(cached) " >&6
2624 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2625 /* end confdefs.h. */
2637 if ac_fn_c_try_compile
"$LINENO"; then :
2640 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2641 /* end confdefs.h. */
2647 if (sizeof ac_aggr.$3)
2653 if ac_fn_c_try_compile
"$LINENO"; then :
2658 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2660 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2664 $as_echo "$ac_res" >&6; }
2665 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2667 } # ac_fn_c_check_member
2669 # ac_fn_c_check_func LINENO FUNC VAR
2670 # ----------------------------------
2671 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2672 ac_fn_c_check_func
()
2674 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2676 $as_echo_n "checking for $2... " >&6; }
2677 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2678 $as_echo_n "(cached) " >&6
2680 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2681 /* end confdefs.h. */
2682 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2683 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2684 #define $2 innocuous_$2
2686 /* System header to define __stub macros and hopefully few prototypes,
2687 which can conflict with char $2 (); below.
2688 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2689 <limits.h> exists even on freestanding compilers. */
2692 # include <limits.h>
2694 # include <assert.h>
2699 /* Override any GCC internal prototype to avoid an error.
2700 Use char because int might match the return type of a GCC
2701 builtin and then its argument prototype would still apply. */
2706 /* The GNU C library defines this for functions which it implements
2707 to always fail with ENOSYS. Some functions are actually named
2708 something starting with __ and the normal name is an alias. */
2709 #if defined __stub_$2 || defined __stub___$2
2721 if ac_fn_c_try_link
"$LINENO"; then :
2726 rm -f core conftest.err conftest.
$ac_objext \
2727 conftest
$ac_exeext 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_func
2736 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2737 # -------------------------------------------
2738 # Tests whether TYPE exists after having included INCLUDES, setting cache
2739 # variable VAR accordingly.
2740 ac_fn_c_check_type
()
2742 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2744 $as_echo_n "checking for $2... " >&6; }
2745 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2746 $as_echo_n "(cached) " >&6
2749 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2750 /* end confdefs.h. */
2761 if ac_fn_c_try_compile
"$LINENO"; then :
2762 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2763 /* end confdefs.h. */
2774 if ac_fn_c_try_compile
"$LINENO"; then :
2779 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2781 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2785 $as_echo "$ac_res" >&6; }
2786 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2788 } # ac_fn_c_check_type
2790 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2791 # --------------------------------------------
2792 # Tries to find the compile-time value of EXPR in a program that includes
2793 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2795 ac_fn_c_compute_int
()
2797 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2798 if test "$cross_compiling" = yes; then
2799 # Depending upon the size, compute the lo and hi bounds.
2800 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2801 /* end confdefs.h. */
2806 static int test_array [1 - 2 * !(($2) >= 0)];
2813 if ac_fn_c_try_compile
"$LINENO"; then :
2816 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2817 /* end confdefs.h. */
2822 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2829 if ac_fn_c_try_compile
"$LINENO"; then :
2830 ac_hi
=$ac_mid; break
2832 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2833 if test $ac_lo -le $ac_mid; then
2837 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2839 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2842 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2843 /* end confdefs.h. */
2848 static int test_array [1 - 2 * !(($2) < 0)];
2855 if ac_fn_c_try_compile
"$LINENO"; then :
2858 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2859 /* end confdefs.h. */
2864 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2871 if ac_fn_c_try_compile
"$LINENO"; then :
2872 ac_lo
=$ac_mid; break
2874 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2875 if test $ac_mid -le $ac_hi; then
2879 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2881 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2886 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2888 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2889 # Binary search between lo and hi bounds.
2890 while test "x$ac_lo" != "x$ac_hi"; do
2891 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2892 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2893 /* end confdefs.h. */
2898 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2905 if ac_fn_c_try_compile
"$LINENO"; then :
2908 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2910 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2913 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2917 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2918 /* end confdefs.h. */
2920 static long int longval () { return $2; }
2921 static unsigned long int ulongval () { return $2; }
2928 FILE *f = fopen ("conftest.val", "w");
2933 long int i = longval ();
2936 fprintf (f, "%ld", i);
2940 unsigned long int i = ulongval ();
2943 fprintf (f, "%lu", i);
2945 /* Do not output a trailing newline, as this causes \r\n confusion
2946 on some platforms. */
2947 return ferror (f) || fclose (f) != 0;
2953 if ac_fn_c_try_run
"$LINENO"; then :
2954 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2958 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2959 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2963 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2964 as_fn_set_status
$ac_retval
2966 } # ac_fn_c_compute_int
2967 cat >config.log
<<_ACEOF
2968 This file contains any messages produced by compilers while
2969 running configure, to aid debugging if configure makes a mistake.
2971 It was created by emacs $as_me 24.3.50, which was
2972 generated by GNU Autoconf 2.65. Invocation command line was
2984 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2985 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2986 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2987 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2988 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2990 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2991 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2993 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2994 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2995 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2996 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2997 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2998 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2999 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3003 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3007 test -z "$as_dir" && as_dir
=.
3008 $as_echo "PATH: $as_dir"
3024 # Keep a trace of the command line.
3025 # Strip out --no-create and --no-recursion so they do not pile up.
3026 # Strip out --silent because we don't want to record it for future runs.
3027 # Also quote any args containing shell meta-characters.
3028 # Make two passes to allow for proper duplicate-argument suppression.
3032 ac_must_keep_next
=false
3038 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
3039 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
3040 |
-silent |
--silent |
--silen |
--sile |
--sil)
3043 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3046 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
3048 as_fn_append ac_configure_args1
" '$ac_arg'"
3049 if test $ac_must_keep_next = true
; then
3050 ac_must_keep_next
=false
# Got value, back to normal.
3053 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
3054 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
3055 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
3056 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
3057 case "$ac_configure_args0 " in
3058 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3061 -* ) ac_must_keep_next
=true
;;
3064 as_fn_append ac_configure_args
" '$ac_arg'"
3069 { ac_configure_args0
=; unset ac_configure_args0
;}
3070 { ac_configure_args1
=; unset ac_configure_args1
;}
3072 # When interrupted or exit'd, cleanup temporary files, and complete
3073 # config.log. We remove comments because anyway the quotes in there
3074 # would cause problems or look ugly.
3075 # WARNING: Use '\'' to represent an apostrophe within the trap.
3076 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3077 trap 'exit_status=$?
3078 # Save into config.log some information that might help in debugging.
3083 ## ---------------- ##
3084 ## Cache variables. ##
3085 ## ---------------- ##
3088 # The following way of writing the cache mishandles newlines in values,
3090 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3091 eval ac_val=\$$ac_var
3095 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3096 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3099 _ | IFS | as_nl) ;; #(
3100 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3101 *) { eval $ac_var=; unset $ac_var;} ;;
3106 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3107 *${as_nl}ac_space=\ *)
3109 "s/'\''/'\''\\\\'\'''\''/g;
3110 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3113 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3121 ## ----------------- ##
3122 ## Output variables. ##
3123 ## ----------------- ##
3126 for ac_var in $ac_subst_vars
3128 eval ac_val=\$$ac_var
3130 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3132 $as_echo "$ac_var='\''$ac_val'\''"
3136 if test -n "$ac_subst_files"; then
3138 ## ------------------- ##
3139 ## File substitutions. ##
3140 ## ------------------- ##
3143 for ac_var
in $ac_subst_files
3145 eval ac_val
=\$
$ac_var
3147 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3149 $as_echo "$ac_var='\''$ac_val'\''"
3154 if test -s confdefs.h; then
3164 test "$ac_signal" != 0 &&
3165 $as_echo "$as_me: caught signal $ac_signal"
3166 $as_echo "$as_me: exit $exit_status"
3168 rm -f core *.core core.conftest.* &&
3169 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3172 for ac_signal
in 1 2 13 15; do
3173 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3177 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3178 rm -f -r conftest
* confdefs.h
3180 $as_echo "/* confdefs.h */" > confdefs.h
3182 # Predefined preprocessor variables.
3184 cat >>confdefs.h
<<_ACEOF
3185 #define PACKAGE_NAME "$PACKAGE_NAME"
3188 cat >>confdefs.h
<<_ACEOF
3189 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3192 cat >>confdefs.h
<<_ACEOF
3193 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3196 cat >>confdefs.h
<<_ACEOF
3197 #define PACKAGE_STRING "$PACKAGE_STRING"
3200 cat >>confdefs.h
<<_ACEOF
3201 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3204 cat >>confdefs.h
<<_ACEOF
3205 #define PACKAGE_URL "$PACKAGE_URL"
3209 # Let the site file select an alternate cache file if it wants to.
3210 # Prefer an explicitly selected file to automatically selected ones.
3213 if test -n "$CONFIG_SITE"; then
3214 ac_site_file1
=$CONFIG_SITE
3215 elif test "x$prefix" != xNONE
; then
3216 ac_site_file1
=$prefix/share
/config.site
3217 ac_site_file2
=$prefix/etc
/config.site
3219 ac_site_file1
=$ac_default_prefix/share
/config.site
3220 ac_site_file2
=$ac_default_prefix/etc
/config.site
3222 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
3224 test "x$ac_site_file" = xNONE
&& continue
3225 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
3226 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3227 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3228 sed 's/^/| /' "$ac_site_file" >&5
3233 if test -r "$cache_file"; then
3234 # Some versions of bash will fail to source /dev/null (special files
3235 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3236 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
3237 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3238 $as_echo "$as_me: loading cache $cache_file" >&6;}
3240 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
3241 *) .
"./$cache_file";;
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3246 $as_echo "$as_me: creating cache $cache_file" >&6;}
3250 as_fn_append ac_header_list
" linux/version.h"
3251 as_fn_append ac_header_list
" sys/systeminfo.h"
3252 as_fn_append ac_header_list
" coff.h"
3253 as_fn_append ac_header_list
" pty.h"
3254 as_fn_append ac_header_list
" sys/vlimit.h"
3255 as_fn_append ac_header_list
" sys/resource.h"
3256 as_fn_append ac_header_list
" sys/utsname.h"
3257 as_fn_append ac_header_list
" pwd.h"
3258 as_fn_append ac_header_list
" utmp.h"
3259 as_fn_append ac_header_list
" util.h"
3260 as_fn_append ac_header_list
" sys/socket.h"
3261 as_fn_append ac_header_list
" stdlib.h"
3262 as_fn_append ac_header_list
" unistd.h"
3263 as_fn_append ac_header_list
" sys/param.h"
3264 as_fn_append ac_header_list
" pthread.h"
3265 as_fn_append ac_header_list
" malloc/malloc.h"
3266 as_fn_append ac_header_list
" maillock.h"
3267 as_fn_append ac_header_list
" sys/un.h"
3268 as_fn_append ac_func_list
" tzset"
3269 as_fn_append ac_func_list
" readlinkat"
3270 as_fn_append ac_header_list
" dirent.h"
3271 as_fn_append ac_header_list
" execinfo.h"
3272 as_fn_append ac_func_list
" faccessat"
3273 as_fn_append ac_func_list
" fdopendir"
3274 as_fn_append ac_header_list
" stdio_ext.h"
3275 as_fn_append ac_func_list
" __fpending"
3276 as_fn_append ac_func_list
" fstatat"
3277 gl_getopt_required
=GNU
3278 as_fn_append ac_header_list
" getopt.h"
3279 as_fn_append ac_func_list
" gettimeofday"
3280 as_fn_append ac_func_list
" nanotime"
3281 as_fn_append ac_header_list
" sys/time.h"
3282 as_fn_append ac_header_list
" wchar.h"
3283 as_fn_append ac_header_list
" stdint.h"
3284 as_fn_append ac_header_list
" inttypes.h"
3285 as_fn_append ac_func_list
" lstat"
3286 as_fn_append ac_func_list
" alarm"
3287 as_fn_append ac_header_list
" sys/select.h"
3288 as_fn_append ac_func_list
" pselect"
3289 as_fn_append ac_func_list
" pthread_sigmask"
3290 as_fn_append ac_func_list
" readlink"
3291 as_fn_append ac_func_list
" strtoimax"
3292 as_fn_append ac_func_list
" strtoumax"
3293 as_fn_append ac_func_list
" symlink"
3294 as_fn_append ac_header_list
" sys/stat.h"
3295 as_fn_append ac_func_list
" localtime_r"
3296 as_fn_append ac_header_list
" utime.h"
3297 as_fn_append ac_func_list
" futimes"
3298 as_fn_append ac_func_list
" futimesat"
3299 as_fn_append ac_func_list
" futimens"
3300 as_fn_append ac_func_list
" utimensat"
3301 as_fn_append ac_func_list
" lutimes"
3302 # Check that the precious variables saved in the cache have kept the same
3304 ac_cache_corrupted
=false
3305 for ac_var
in $ac_precious_vars; do
3306 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
3307 eval ac_new_set
=\
$ac_env_${ac_var}_set
3308 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
3309 eval ac_new_val
=\
$ac_env_${ac_var}_value
3310 case $ac_old_set,$ac_new_set in
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3313 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3314 ac_cache_corrupted
=: ;;
3316 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3317 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3318 ac_cache_corrupted
=: ;;
3321 if test "x$ac_old_val" != "x$ac_new_val"; then
3322 # differences in whitespace do not lead to failure.
3323 ac_old_val_w
=`echo x $ac_old_val`
3324 ac_new_val_w
=`echo x $ac_new_val`
3325 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3326 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3327 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3328 ac_cache_corrupted
=:
3330 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3331 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3332 eval $ac_var=\
$ac_old_val
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3335 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3336 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3337 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3340 # Pass precious variables to config.status.
3341 if test "$ac_new_set" = set; then
3343 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3344 *) ac_arg
=$ac_var=$ac_new_val ;;
3346 case " $ac_configure_args " in
3347 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3348 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
3352 if $ac_cache_corrupted; then
3353 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3354 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3355 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3356 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3357 as_fn_error
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3359 ## -------------------- ##
3360 ## Main body of script. ##
3361 ## -------------------- ##
3364 ac_cpp
='$CPP $CPPFLAGS'
3365 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3366 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3367 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3370 emacs_config_options
="$@"
3371 ac_config_headers
="$ac_config_headers src/config.h:src/config.in"
3375 for ac_dir
in build-aux
"$srcdir"/build-aux
; do
3376 for ac_t
in install-sh
install.sh shtool
; do
3377 if test -f "$ac_dir/$ac_t"; then
3379 ac_install_sh
="$ac_aux_dir/$ac_t -c"
3384 if test -z "$ac_aux_dir"; then
3385 as_fn_error
"cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
3388 # These three variables are undocumented and unsupported,
3389 # and are intended to be withdrawn in a future Autoconf release.
3390 # They can cause serious problems if a builder's source tree is in a directory
3391 # whose full name contains unusual characters.
3392 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3393 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3394 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3397 am__api_version
='1.11'
3399 # Find a good install program. We prefer a C program (faster),
3400 # so one script is as good as another. But avoid the broken or
3401 # incompatible versions:
3402 # SysV /etc/install, /usr/sbin/install
3403 # SunOS /usr/etc/install
3404 # IRIX /sbin/install
3406 # AmigaOS /C/install, which installs bootblocks on floppy discs
3407 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3408 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3409 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3410 # OS/2's system install, which has a completely different semantic
3411 # ./install, which can be erroneously created by make from ./install.sh.
3412 # Reject install programs that cannot install multiple files.
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3414 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3415 if test -z "$INSTALL"; then
3416 if test "${ac_cv_path_install+set}" = set; then :
3417 $as_echo_n "(cached) " >&6
3419 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3423 test -z "$as_dir" && as_dir
=.
3424 # Account for people who put trailing slashes in PATH elements.
3425 case $as_dir/ in #((
3426 .
/ | .
// |
/[cC
]/* | \
3427 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
3428 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
3431 # OSF1 and SCO ODT 3.0 have their own names for install.
3432 # Don't use installbsd from OSF since it installs stuff as root
3434 for ac_prog
in ginstall scoinst
install; do
3435 for ac_exec_ext
in '' $ac_executable_extensions; do
3436 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3437 if test $ac_prog = install &&
3438 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3439 # AIX install. It has an incompatible calling convention.
3441 elif test $ac_prog = install &&
3442 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3443 # program-specific install script used by HP pwplus--don't use.
3446 rm -rf conftest.one conftest.two conftest.dir
3447 echo one
> conftest.one
3448 echo two
> conftest.two
3450 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
3451 test -s conftest.one
&& test -s conftest.two
&&
3452 test -s conftest.dir
/conftest.one
&&
3453 test -s conftest.dir
/conftest.two
3455 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
3468 rm -rf conftest.one conftest.two conftest.dir
3471 if test "${ac_cv_path_install+set}" = set; then
3472 INSTALL
=$ac_cv_path_install
3474 # As a last resort, use the slow shell script. Don't cache a
3475 # value for INSTALL within a source directory, because that will
3476 # break other packages using the cache if that directory is
3477 # removed, or if the value is a relative name.
3478 INSTALL
=$ac_install_sh
3481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3482 $as_echo "$INSTALL" >&6; }
3484 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3485 # It thinks the first close brace ends the variable substitution.
3486 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3488 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3490 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3493 $as_echo_n "checking whether build environment is sane... " >&6; }
3496 echo timestamp
> conftest.
file
3497 # Reject unsafe characters in $srcdir or the absolute working directory
3498 # name. Accept space and tab only in the latter.
3502 *[\\\"\
#\$\&\'\`$am_lf]*)
3503 as_fn_error
"unsafe absolute working directory name" "$LINENO" 5;;
3506 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
3507 as_fn_error
"unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3510 # Do `set' in a subshell so we don't clobber the current shell's
3511 # arguments. Must try -L first in case configure is actually a
3512 # symlink; some systems play weird games with the mod time of symlinks
3513 # (eg FreeBSD returns the mod time of the symlink's containing
3516 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3517 if test "$*" = "X"; then
3519 set X
`ls -t "$srcdir/configure" conftest.file`
3522 if test "$*" != "X $srcdir/configure conftest.file" \
3523 && test "$*" != "X conftest.file $srcdir/configure"; then
3525 # If neither matched, then we have a broken ls. This can happen
3526 # if, for instance, CONFIG_SHELL is bash and it inherits a
3527 # broken ls alias from the environment. This has actually
3528 # happened. Such a system could not be considered "sane".
3529 as_fn_error
"ls -t appears to fail. Make sure there is not a broken
3530 alias in your environment" "$LINENO" 5
3533 test "$2" = conftest.
file
3539 as_fn_error
"newly created file is older than distributed files!
3540 Check your system clock" "$LINENO" 5
3542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3543 $as_echo "yes" >&6; }
3544 test "$program_prefix" != NONE
&&
3545 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
3546 # Use a double $ so make ignores it.
3547 test "$program_suffix" != NONE
&&
3548 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
3549 # Double any \ or $.
3550 # By default was `s,x,x', remove it if useless.
3551 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
3552 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
3554 # expand $ac_aux_dir to an absolute path
3555 am_aux_dir
=`cd $ac_aux_dir && pwd`
3557 if test x
"${MISSING+set}" != xset
; then
3560 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
3562 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
3565 # Use eval to expand $SHELL
3566 if eval "$MISSING --run true"; then
3567 am_missing_run
="$MISSING --run "
3570 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3571 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3574 if test x
"${install_sh}" != xset
; then
3577 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
3579 install_sh
="\${SHELL} $am_aux_dir/install-sh"
3583 # Installed binaries are usually stripped using `strip' when the user
3584 # run `make install-strip'. However `strip' might not be the right
3585 # tool to use in cross-compilation environments, therefore Automake
3586 # will honor the `STRIP' environment variable to overrule this program.
3587 if test "$cross_compiling" != no
; then
3588 if test -n "$ac_tool_prefix"; then
3589 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3590 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
3591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3592 $as_echo_n "checking for $ac_word... " >&6; }
3593 if test "${ac_cv_prog_STRIP+set}" = set; then :
3594 $as_echo_n "(cached) " >&6
3596 if test -n "$STRIP"; then
3597 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
3599 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3603 test -z "$as_dir" && as_dir
=.
3604 for ac_exec_ext
in '' $ac_executable_extensions; do
3605 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3606 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
3607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3616 STRIP
=$ac_cv_prog_STRIP
3617 if test -n "$STRIP"; then
3618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3619 $as_echo "$STRIP" >&6; }
3621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3622 $as_echo "no" >&6; }
3627 if test -z "$ac_cv_prog_STRIP"; then
3629 # Extract the first word of "strip", so it can be a program name with args.
3630 set dummy strip
; ac_word
=$2
3631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3632 $as_echo_n "checking for $ac_word... " >&6; }
3633 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3634 $as_echo_n "(cached) " >&6
3636 if test -n "$ac_ct_STRIP"; then
3637 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
3639 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3643 test -z "$as_dir" && as_dir
=.
3644 for ac_exec_ext
in '' $ac_executable_extensions; do
3645 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3646 ac_cv_prog_ac_ct_STRIP
="strip"
3647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3656 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
3657 if test -n "$ac_ct_STRIP"; then
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3659 $as_echo "$ac_ct_STRIP" >&6; }
3661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3662 $as_echo "no" >&6; }
3665 if test "x$ac_ct_STRIP" = x
; then
3668 case $cross_compiling:$ac_tool_warned in
3670 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3671 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3672 ac_tool_warned
=yes ;;
3677 STRIP
="$ac_cv_prog_STRIP"
3681 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
3683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3684 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3685 if test -z "$MKDIR_P"; then
3686 if test "${ac_cv_path_mkdir+set}" = set; then :
3687 $as_echo_n "(cached) " >&6
3689 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3690 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
3693 test -z "$as_dir" && as_dir
=.
3694 for ac_prog
in mkdir gmkdir
; do
3695 for ac_exec_ext
in '' $ac_executable_extensions; do
3696 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } ||
continue
3697 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3698 'mkdir (GNU coreutils) '* | \
3699 'mkdir (coreutils) '* | \
3700 'mkdir (fileutils) '4.1*)
3701 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
3711 test -d .
/--version && rmdir .
/--version
3712 if test "${ac_cv_path_mkdir+set}" = set; then
3713 MKDIR_P
="$ac_cv_path_mkdir -p"
3715 # As a last resort, use the slow shell script. Don't cache a
3716 # value for MKDIR_P within a source directory, because that will
3717 # break other packages using the cache if that directory is
3718 # removed, or if the value is a relative name.
3719 MKDIR_P
="$ac_install_sh -d"
3722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3723 $as_echo "$MKDIR_P" >&6; }
3727 [\\/$
]* | ?
:[\\/]*) ;;
3728 */*) mkdir_p
="\$(top_builddir)/$mkdir_p" ;;
3731 for ac_prog
in gawk mawk nawk
awk
3733 # Extract the first word of "$ac_prog", so it can be a program name with args.
3734 set dummy
$ac_prog; ac_word
=$2
3735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3736 $as_echo_n "checking for $ac_word... " >&6; }
3737 if test "${ac_cv_prog_AWK+set}" = set; then :
3738 $as_echo_n "(cached) " >&6
3740 if test -n "$AWK"; then
3741 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
3743 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3747 test -z "$as_dir" && as_dir
=.
3748 for ac_exec_ext
in '' $ac_executable_extensions; do
3749 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3750 ac_cv_prog_AWK
="$ac_prog"
3751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3761 if test -n "$AWK"; then
3762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3763 $as_echo "$AWK" >&6; }
3765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3766 $as_echo "no" >&6; }
3770 test -n "$AWK" && break
3773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3774 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3776 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3777 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3778 $as_echo_n "(cached) " >&6
3780 cat >conftest.
make <<\_ACEOF
3783 @
echo '@@@%%%=$(MAKE)=@@@%%%'
3785 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3786 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3788 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
3790 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
3794 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
3795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3796 $as_echo "yes" >&6; }
3799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3800 $as_echo "no" >&6; }
3801 SET_MAKE
="MAKE=${MAKE-make}"
3804 rm -rf .tst
2>/dev
/null
3805 mkdir .tst
2>/dev
/null
3806 if test -d .tst
; then
3811 rmdir .tst
2>/dev
/null
3813 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3814 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3815 # is not polluted with repeated "-I."
3816 am__isrc
=' -I$(srcdir)'
3817 # test to see if srcdir already configured
3818 if test -f $srcdir/config.status
; then
3819 as_fn_error
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3823 # test whether we have cygpath
3824 if test -z "$CYGPATH_W"; then
3825 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
3826 CYGPATH_W
='cygpath -w'
3833 # Define the identity of the package.
3838 cat >>confdefs.h
<<_ACEOF
3839 #define PACKAGE "$PACKAGE"
3843 cat >>confdefs.h
<<_ACEOF
3844 #define VERSION "$VERSION"
3847 # Some tools Automake needs.
3849 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3852 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
3855 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3858 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
3861 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
3863 # We need awk for the "check" target. The system "awk" is bad on
3865 # Always define AMTAR for backward compatibility.
3867 AMTAR
=${AMTAR-"${am_missing_run}tar"}
3869 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
3878 lispdir
='${datadir}/emacs/${version}/lisp'
3879 leimdir
='${datadir}/emacs/${version}/leim'
3880 standardlisppath
='${lispdir}:${leimdir}'
3881 locallisppath
='${datadir}/emacs/${version}/site-lisp:'\
3882 '${datadir}/emacs/site-lisp'
3883 lisppath
='${locallisppath}:${standardlisppath}'
3884 etcdir
='${datadir}/emacs/${version}/etc'
3885 archlibdir
='${libexecdir}/emacs/${version}/${configuration}'
3886 docdir
='${datadir}/emacs/${version}/etc'
3887 gamedir
='${localstatedir}/games/emacs'
3890 # Check whether --with-all was given.
3891 if test "${with_all+set}" = set; then :
3892 withval
=$with_all; with_features
=$withval
3901 # Check whether --with-pop was given.
3902 if test "${with_pop+set}" = set; then :
3905 with_pop
=$with_features
3908 if test "$with_pop" = yes; then
3909 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
3914 # Check whether --with-kerberos was given.
3915 if test "${with_kerberos+set}" = set; then :
3916 withval
=$with_kerberos;
3921 if test "$with_kerberos" != no
; then
3922 $as_echo "#define KERBEROS 1" >>confdefs.h
3927 # Check whether --with-kerberos5 was given.
3928 if test "${with_kerberos5+set}" = set; then :
3929 withval
=$with_kerberos5;
3934 if test "${with_kerberos5}" != no
; then
3935 if test "${with_kerberos}" = no
; then
3937 $as_echo "#define KERBEROS 1" >>confdefs.h
3941 $as_echo "#define KERBEROS5 1" >>confdefs.h
3946 # Check whether --with-hesiod was given.
3947 if test "${with_hesiod+set}" = set; then :
3948 withval
=$with_hesiod;
3953 if test "$with_hesiod" != no
; then
3955 $as_echo "#define HESIOD 1" >>confdefs.h
3960 # Check whether --with-mmdf was given.
3961 if test "${with_mmdf+set}" = set; then :
3967 if test "$with_mmdf" != no
; then
3969 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
3974 # Check whether --with-mail-unlink was given.
3975 if test "${with_mail_unlink+set}" = set; then :
3976 withval
=$with_mail_unlink;
3981 if test "$with_mail_unlink" != no
; then
3983 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
3988 # Check whether --with-mailhost was given.
3989 if test "${with_mailhost+set}" = set; then :
3990 withval
=$with_mailhost;
3991 cat >>confdefs.h
<<_ACEOF
3992 #define MAILHOST "$withval"
3999 # Check whether --with-sound was given.
4000 if test "${with_sound+set}" = set; then :
4001 withval
=$with_sound;
4003 with_sound
=$with_features
4008 # Check whether --with-x-toolkit was given.
4009 if test "${with_x_toolkit+set}" = set; then :
4010 withval
=$with_x_toolkit; case "${withval}" in
4011 y | ye |
yes ) val
=gtk
;;
4013 l | lu | luc | luci | lucid
) val
=lucid
;;
4014 a |
at | ath | athe | athen | athena
) val
=athena
;;
4015 m | mo | mot | moti | motif
) val
=motif
;;
4016 g | gt | gtk
) val
=gtk
;;
4020 as_fn_error
"\`--with-x-toolkit=$withval' is invalid;
4021 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk',
4022 \`gtk2' or \`gtk3'. \`yes' and \`gtk' are synonyms.
4023 \`athena' and \`lucid' are synonyms." "$LINENO" 5
4032 # Check whether --with-wide-int was given.
4033 if test "${with_wide_int+set}" = set; then :
4034 withval
=$with_wide_int;
4039 if test "$with_wide_int" = yes; then
4041 $as_echo "#define WIDE_EMACS_INT 1" >>confdefs.h
4046 # Check whether --with-xpm was given.
4047 if test "${with_xpm+set}" = set; then :
4050 with_xpm
=$with_features
4054 # Check whether --with-jpeg was given.
4055 if test "${with_jpeg+set}" = set; then :
4058 with_jpeg
=$with_features
4062 # Check whether --with-tiff was given.
4063 if test "${with_tiff+set}" = set; then :
4066 with_tiff
=$with_features
4070 # Check whether --with-gif was given.
4071 if test "${with_gif+set}" = set; then :
4074 with_gif
=$with_features
4078 # Check whether --with-png was given.
4079 if test "${with_png+set}" = set; then :
4082 with_png
=$with_features
4086 # Check whether --with-rsvg was given.
4087 if test "${with_rsvg+set}" = set; then :
4090 with_rsvg
=$with_features
4094 # Check whether --with-xml2 was given.
4095 if test "${with_xml2+set}" = set; then :
4098 with_xml2
=$with_features
4102 # Check whether --with-imagemagick was given.
4103 if test "${with_imagemagick+set}" = set; then :
4104 withval
=$with_imagemagick;
4106 with_imagemagick
=$with_features
4111 # Check whether --with-xft was given.
4112 if test "${with_xft+set}" = set; then :
4115 with_xft
=$with_features
4119 # Check whether --with-libotf was given.
4120 if test "${with_libotf+set}" = set; then :
4121 withval
=$with_libotf;
4123 with_libotf
=$with_features
4127 # Check whether --with-m17n-flt was given.
4128 if test "${with_m17n_flt+set}" = set; then :
4129 withval
=$with_m17n_flt;
4131 with_m17n_flt
=$with_features
4136 # Check whether --with-toolkit-scroll-bars was given.
4137 if test "${with_toolkit_scroll_bars+set}" = set; then :
4138 withval
=$with_toolkit_scroll_bars;
4140 with_toolkit_scroll_bars
=$with_features
4144 # Check whether --with-xaw3d was given.
4145 if test "${with_xaw3d+set}" = set; then :
4146 withval
=$with_xaw3d;
4148 with_xaw3d
=$with_features
4152 # Check whether --with-xim was given.
4153 if test "${with_xim+set}" = set; then :
4156 with_xim
=$with_features
4160 # Check whether --with-ns was given.
4161 if test "${with_ns+set}" = set; then :
4168 # Check whether --with-w32 was given.
4169 if test "${with_w32+set}" = set; then :
4177 # Check whether --with-gpm was given.
4178 if test "${with_gpm+set}" = set; then :
4181 with_gpm
=$with_features
4185 # Check whether --with-dbus was given.
4186 if test "${with_dbus+set}" = set; then :
4189 with_dbus
=$with_features
4193 # Check whether --with-gconf was given.
4194 if test "${with_gconf+set}" = set; then :
4195 withval
=$with_gconf;
4197 with_gconf
=$with_features
4201 # Check whether --with-gsettings was given.
4202 if test "${with_gsettings+set}" = set; then :
4203 withval
=$with_gsettings;
4205 with_gsettings
=$with_features
4209 # Check whether --with-selinux was given.
4210 if test "${with_selinux+set}" = set; then :
4211 withval
=$with_selinux;
4213 with_selinux
=$with_features
4217 # Check whether --with-acl was given.
4218 if test "${with_acl+set}" = set; then :
4221 with_acl
=$with_features
4225 # Check whether --with-gnutls was given.
4226 if test "${with_gnutls+set}" = set; then :
4227 withval
=$with_gnutls;
4229 with_gnutls
=$with_features
4233 # Check whether --with-inotify was given.
4234 if test "${with_inotify+set}" = set; then :
4235 withval
=$with_inotify;
4237 with_inotify
=$with_features
4241 ## For the times when you want to build Emacs but don't have
4242 ## a suitable makeinfo, and can live without the manuals.
4244 # Check whether --with-makeinfo was given.
4245 if test "${with_makeinfo+set}" = set; then :
4246 withval
=$with_makeinfo;
4248 with_makeinfo
=$with_features
4252 ## Makefile.in needs the cache file name.
4255 ## This is an option because I do not know if all info/man support
4256 ## compressed files, nor how to test if they do so.
4258 # Check whether --with-compress-info was given.
4259 if test "${with_compress_info+set}" = set; then :
4260 withval
=$with_compress_info;
4262 with_compress_info
=$with_features
4265 if test $with_compress_info = yes; then
4273 # Check whether --with-pkg-config-prog was given.
4274 if test "${with_pkg_config_prog+set}" = set; then :
4275 withval
=$with_pkg_config_prog;
4278 if test "X${with_pkg_config_prog}" != X
; then
4279 if test "${with_pkg_config_prog}" != yes; then
4280 PKG_CONFIG
="${with_pkg_config_prog}"
4286 # Check whether --with-crt-dir was given.
4287 if test "${with_crt_dir+set}" = set; then :
4288 withval
=$with_crt_dir;
4291 CRT_DIR
="${with_crt_dir}"
4294 # Check whether --with-gameuser was given.
4295 if test "${with_gameuser+set}" = set; then :
4296 withval
=$with_gameuser;
4299 test "X${with_gameuser}" != X
&& test "${with_gameuser}" != yes \
4300 && gameuser
="${with_gameuser}"
4301 test "X$gameuser" = X
&& gameuser
=games
4304 # Check whether --with-gnustep-conf was given.
4305 if test "${with_gnustep_conf+set}" = set; then :
4306 withval
=$with_gnustep_conf;
4309 test "X${with_gnustep_conf}" != X
&& test "${with_gnustep_conf}" != yes && \
4310 GNUSTEP_CONFIG_FILE
="${with_gnustep_conf}"
4311 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
4312 GNUSTEP_CONFIG_FILE
=/etc
/GNUstep
/GNUstep.conf
4314 # Check whether --enable-ns-self-contained was given.
4315 if test "${enable_ns_self_contained+set}" = set; then :
4316 enableval
=$enable_ns_self_contained; EN_NS_SELF_CONTAINED
=$enableval
4318 EN_NS_SELF_CONTAINED
=yes
4322 # Check whether --enable-locallisppath was given.
4323 if test "${enable_locallisppath+set}" = set; then :
4324 enableval
=$enable_locallisppath; if test "${enableval}" = "no"; then
4326 elif test "${enableval}" != "yes"; then
4327 locallisppath
=${enableval}
4332 # Check whether --enable-checking was given.
4333 if test "${enable_checking+set}" = set; then :
4334 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
4337 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
4338 for check
in $ac_checking_flags
4341 # these set all the flags to specific states
4342 yes) ac_enable_checking
=1 ;;
4343 no
) ac_enable_checking
= ;
4344 ac_gc_check_stringbytes
= ;
4345 ac_gc_check_string_overrun
= ;
4346 ac_gc_check_string_free_list
= ;
4347 ac_xmalloc_overrun
= ;
4348 ac_gc_check_cons_list
= ;
4350 all
) ac_enable_checking
=1 ;
4351 ac_gc_check_stringbytes
=1 ;
4352 ac_gc_check_string_overrun
=1 ;
4353 ac_gc_check_string_free_list
=1 ;
4354 ac_xmalloc_overrun
=1 ;
4355 ac_gc_check_cons_list
=1 ;
4356 ac_glyphs_debug
=1 ;;
4357 # these enable particular checks
4358 stringbytes
) ac_gc_check_stringbytes
=1 ;;
4359 stringoverrun
) ac_gc_check_string_overrun
=1 ;;
4360 stringfreelist
) ac_gc_check_string_free_list
=1 ;;
4361 xmallocoverrun
) ac_xmalloc_overrun
=1 ;;
4362 conslist
) ac_gc_check_cons_list
=1 ;;
4363 glyphs
) ac_glyphs_debug
=1 ;;
4364 *) as_fn_error
"unknown check category $check" "$LINENO" 5 ;;
4369 if test x
$ac_enable_checking != x
; then
4371 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
4374 if test x
$ac_gc_check_stringbytes != x
; then
4376 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
4379 if test x
$ac_gc_check_string_overrun != x
; then
4381 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
4384 if test x
$ac_gc_check_string_free_list != x
; then
4386 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
4389 if test x
$ac_xmalloc_overrun != x
; then
4391 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
4394 if test x
$ac_gc_check_cons_list != x
; then
4396 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
4399 if test x
$ac_glyphs_debug != x
; then
4401 $as_echo "#define GLYPH_DEBUG 1" >>confdefs.h
4405 # Check whether --enable-check-lisp-object-type was given.
4406 if test "${enable_check_lisp_object_type+set}" = set; then :
4407 enableval
=$enable_check_lisp_object_type; if test "${enableval}" != "no"; then
4409 $as_echo "#define CHECK_LISP_OBJECT_TYPE 1" >>confdefs.h
4416 # Check whether --enable-profiling was given.
4417 if test "${enable_profiling+set}" = set; then :
4418 enableval
=$enable_profiling; ac_enable_profiling
="${enableval}"
4421 if test x
$ac_enable_profiling != x
; then
4422 PROFILING_CFLAGS
="-DPROFILING=1 -pg"
4428 # Check whether --enable-autodepend was given.
4429 if test "${enable_autodepend+set}" = set; then :
4430 enableval
=$enable_autodepend; ac_enable_autodepend
="${enableval}"
4432 ac_enable_autodepend
=yes
4436 # Check whether --enable-gtk-deprecation-warnings was given.
4437 if test "${enable_gtk_deprecation_warnings+set}" = set; then :
4438 enableval
=$enable_gtk_deprecation_warnings; ac_enable_gtk_deprecation_warnings
="${enableval}"
4442 #### Make srcdir absolute, if it isn't already. It's important to
4443 #### avoid running the file name through pwd unnecessarily, since pwd can
4444 #### give you automounter prefixes, which can go away. We do all this
4445 #### so Emacs can find its files when run uninstalled.
4446 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
4451 ## We may be able to use the $PWD environment variable to make this
4452 ## absolute. But sometimes PWD is inaccurate.
4453 ## Note: we used to use $PWD at the end instead of `pwd`,
4454 ## but that tested only for a well-formed and valid PWD,
4455 ## it did not object when PWD was well-formed and valid but just wrong.
4456 if test ".$PWD" != "." && test ".`(cd "$PWD" ; sh -c pwd)`" = ".`pwd`" ;
4460 srcdir
=`(cd "$srcdir"; pwd)`
4463 * ) srcdir
=`(cd "$srcdir"; pwd)` ;;
4466 ### Canonicalize the configuration name.
4468 # Make sure we can run config.sub.
4469 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
4470 as_fn_error
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4473 $as_echo_n "checking build system type... " >&6; }
4474 if test "${ac_cv_build+set}" = set; then :
4475 $as_echo_n "(cached) " >&6
4477 ac_build_alias
=$build_alias
4478 test "x$ac_build_alias" = x
&&
4479 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
4480 test "x$ac_build_alias" = x
&&
4481 as_fn_error
"cannot guess build type; you must specify one" "$LINENO" 5
4482 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4483 as_fn_error
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4487 $as_echo "$ac_cv_build" >&6; }
4488 case $ac_cv_build in
4490 *) as_fn_error
"invalid value of canonical build" "$LINENO" 5;;
4493 ac_save_IFS
=$IFS; IFS
='-'
4499 # Remember, the first character of IFS is used to create $*,
4500 # except with old shells:
4503 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
4506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4507 $as_echo_n "checking host system type... " >&6; }
4508 if test "${ac_cv_host+set}" = set; then :
4509 $as_echo_n "(cached) " >&6
4511 if test "x$host_alias" = x
; then
4512 ac_cv_host
=$ac_cv_build
4514 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4515 as_fn_error
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4520 $as_echo "$ac_cv_host" >&6; }
4523 *) as_fn_error
"invalid value of canonical host" "$LINENO" 5;;
4526 ac_save_IFS
=$IFS; IFS
='-'
4532 # Remember, the first character of IFS is used to create $*,
4533 # except with old shells:
4536 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
4540 configuration
=${host_alias-${build_alias-$host}}
4544 ### If you add support for a new configuration, add code to this
4545 ### switch statement to recognize your configuration name and select
4546 ### the appropriate operating system file.
4548 ### You would hope that you could choose an s/*.h
4549 ### file based on the operating system portion. However, it turns out
4550 ### that each s/*.h file is pretty manufacturer-specific.
4551 ### So we basically have to have a special case for each
4552 ### configuration name.
4554 ### As far as handling version numbers on operating systems is
4555 ### concerned, make sure things will fail in a fixable way. If
4556 ### /etc/MACHINES doesn't say anything about version numbers, be
4557 ### prepared to handle anything reasonably. If version numbers
4558 ### matter, be sure /etc/MACHINES says something about it.
4560 opsys
='' unported
=no
4561 case "${canonical}" in
4563 ## GNU/Linux and similar ports
4573 ## FreeBSD kernel + glibc based userland
4588 ## Apple Darwin / Mac OS X
4590 case "${canonical}" in
4597 ## Use fink packages if available.
4598 ## FIXME find a better way to do this: http://debbugs.gnu.org/11507
4599 ## if test -d /sw/include && test -d /sw/lib; then
4600 ## GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
4601 ## NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
4605 ## HP 9000 series 700 and 800, running HP/UX
4606 hppa
*-hp-hpux10.2
* )
4609 hppa
*-hp-hpux1[1-9]* )
4611 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
4615 rs6000-ibm-aix4.
[23]* )
4618 powerpc-ibm-aix4.
[23]* )
4621 rs6000-ibm-aix
[56]* )
4624 powerpc-ibm-aix
[56]* )
4628 ## Silicon Graphics machines
4632 # Without defining _LANGUAGE_C, things get masked out in the headers
4633 # so that, for instance, grepping for `free' in stdlib.h fails and
4634 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
4635 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
4640 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* \
4641 | x86_64-
*-solaris2* | x86_64-
*-sunos5*)
4642 case "${canonical}" in
4644 amd64-
*-*|x86_64-
*-*) ;;
4648 case "${canonical}" in
4649 *-sunos5.6
* |
*-solaris2.6
* )
4653 *-sunos5.
[7-9]* |
*-solaris2.
[7-9]* )
4655 emacs_check_sunpro_c
=yes
4657 *-sunos5* |
*-solaris* )
4659 emacs_check_sunpro_c
=yes
4662 ## Watch out for a compiler that we know will not work.
4663 case "${canonical}" in
4664 *-solaris* |
*-sunos5* )
4665 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
4666 ## /usr/ucb/cc doesn't work;
4667 ## we should find some other compiler that does work.
4675 ## Intel 386 machines where we don't care about the manufacturer.
4677 case "${canonical}" in
4678 *-cygwin ) opsys
=cygwin
;;
4679 *-darwin* ) opsys
=darwin
;;
4680 *-sysv4.2uw
* ) opsys
=unixware
;;
4681 *-sysv5uw* ) opsys
=unixware
;;
4682 *-sysv5OpenUNIX* ) opsys
=unixware
;;
4683 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
4692 ### If the code above didn't choose an operating system, just choose
4693 ### an operating system based on the configuration name. You really
4694 ### only want to use this when you have no idea what the right
4695 ### operating system is; if you know what operating systems a machine
4696 ### runs, it's cleaner to make it explicit in the case statement
4698 if test x
"${opsys}" = x
; then
4699 case "${canonical}" in
4700 *-gnu* ) opsys
=gnu
;;
4709 if test $unported = yes; then
4710 as_fn_error
"Emacs hasn't been ported to \`${canonical}' systems.
4711 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
4715 #### Choose a compiler.
4718 ac_cpp
='$CPP $CPPFLAGS'
4719 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4720 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4721 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4722 if test -n "$ac_tool_prefix"; then
4723 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4724 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
4725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4726 $as_echo_n "checking for $ac_word... " >&6; }
4727 if test "${ac_cv_prog_CC+set}" = set; then :
4728 $as_echo_n "(cached) " >&6
4730 if test -n "$CC"; then
4731 ac_cv_prog_CC
="$CC" # Let the user override the test.
4733 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4737 test -z "$as_dir" && as_dir
=.
4738 for ac_exec_ext
in '' $ac_executable_extensions; do
4739 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4740 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
4741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4751 if test -n "$CC"; then
4752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4753 $as_echo "$CC" >&6; }
4755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4756 $as_echo "no" >&6; }
4761 if test -z "$ac_cv_prog_CC"; then
4763 # Extract the first word of "gcc", so it can be a program name with args.
4764 set dummy gcc
; ac_word
=$2
4765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4766 $as_echo_n "checking for $ac_word... " >&6; }
4767 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4768 $as_echo_n "(cached) " >&6
4770 if test -n "$ac_ct_CC"; then
4771 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4773 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4777 test -z "$as_dir" && as_dir
=.
4778 for ac_exec_ext
in '' $ac_executable_extensions; do
4779 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4780 ac_cv_prog_ac_ct_CC
="gcc"
4781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4790 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4791 if test -n "$ac_ct_CC"; then
4792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4793 $as_echo "$ac_ct_CC" >&6; }
4795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4796 $as_echo "no" >&6; }
4799 if test "x$ac_ct_CC" = x
; then
4802 case $cross_compiling:$ac_tool_warned in
4804 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4805 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4806 ac_tool_warned
=yes ;;
4814 if test -z "$CC"; then
4815 if test -n "$ac_tool_prefix"; then
4816 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4817 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
4818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4819 $as_echo_n "checking for $ac_word... " >&6; }
4820 if test "${ac_cv_prog_CC+set}" = set; then :
4821 $as_echo_n "(cached) " >&6
4823 if test -n "$CC"; then
4824 ac_cv_prog_CC
="$CC" # Let the user override the test.
4826 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4830 test -z "$as_dir" && as_dir
=.
4831 for ac_exec_ext
in '' $ac_executable_extensions; do
4832 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4833 ac_cv_prog_CC
="${ac_tool_prefix}cc"
4834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4844 if test -n "$CC"; then
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4846 $as_echo "$CC" >&6; }
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4849 $as_echo "no" >&6; }
4855 if test -z "$CC"; then
4856 # Extract the first word of "cc", so it can be a program name with args.
4857 set dummy cc
; ac_word
=$2
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4859 $as_echo_n "checking for $ac_word... " >&6; }
4860 if test "${ac_cv_prog_CC+set}" = set; then :
4861 $as_echo_n "(cached) " >&6
4863 if test -n "$CC"; then
4864 ac_cv_prog_CC
="$CC" # Let the user override the test.
4867 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4871 test -z "$as_dir" && as_dir
=.
4872 for ac_exec_ext
in '' $ac_executable_extensions; do
4873 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4874 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4875 ac_prog_rejected
=yes
4879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4886 if test $ac_prog_rejected = yes; then
4887 # We found a bogon in the path, so make sure we never use it.
4888 set dummy
$ac_cv_prog_CC
4890 if test $# != 0; then
4891 # We chose a different compiler from the bogus one.
4892 # However, it has the same basename, so the bogon will be chosen
4893 # first if we set CC to just the basename; use the full file name.
4895 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
4901 if test -n "$CC"; then
4902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4903 $as_echo "$CC" >&6; }
4905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4906 $as_echo "no" >&6; }
4911 if test -z "$CC"; then
4912 if test -n "$ac_tool_prefix"; then
4913 for ac_prog
in cl.exe
4915 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4916 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4918 $as_echo_n "checking for $ac_word... " >&6; }
4919 if test "${ac_cv_prog_CC+set}" = set; then :
4920 $as_echo_n "(cached) " >&6
4922 if test -n "$CC"; then
4923 ac_cv_prog_CC
="$CC" # Let the user override the test.
4925 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4929 test -z "$as_dir" && as_dir
=.
4930 for ac_exec_ext
in '' $ac_executable_extensions; do
4931 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4932 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
4933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4943 if test -n "$CC"; then
4944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4945 $as_echo "$CC" >&6; }
4947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4948 $as_echo "no" >&6; }
4952 test -n "$CC" && break
4955 if test -z "$CC"; then
4957 for ac_prog
in cl.exe
4959 # Extract the first word of "$ac_prog", so it can be a program name with args.
4960 set dummy
$ac_prog; ac_word
=$2
4961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4962 $as_echo_n "checking for $ac_word... " >&6; }
4963 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4964 $as_echo_n "(cached) " >&6
4966 if test -n "$ac_ct_CC"; then
4967 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4969 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4973 test -z "$as_dir" && as_dir
=.
4974 for ac_exec_ext
in '' $ac_executable_extensions; do
4975 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4976 ac_cv_prog_ac_ct_CC
="$ac_prog"
4977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4986 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4987 if test -n "$ac_ct_CC"; then
4988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4989 $as_echo "$ac_ct_CC" >&6; }
4991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4992 $as_echo "no" >&6; }
4996 test -n "$ac_ct_CC" && break
4999 if test "x$ac_ct_CC" = x
; then
5002 case $cross_compiling:$ac_tool_warned in
5004 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5005 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5006 ac_tool_warned
=yes ;;
5015 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5016 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5017 as_fn_error
"no acceptable C compiler found in \$PATH
5018 See \`config.log' for more details." "$LINENO" 5; }
5020 # Provide some information about the compiler.
5021 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5024 for ac_option
in --version -v -V -qversion; do
5025 { { ac_try
="$ac_compiler $ac_option >&5"
5027 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5028 *) ac_try_echo=$ac_try;;
5030 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5031 $as_echo "$ac_try_echo"; } >&5
5032 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5034 if test -s conftest.err; then
5036 ... rest of stderr output deleted ...
5037 10q' conftest.err >conftest.er1
5038 cat conftest.er1 >&5
5040 rm -f conftest.er1 conftest.err
5041 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5042 test $ac_status = 0; }
5045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5046 /* end confdefs.h. */
5056 ac_clean_files_save=$ac_clean_files
5057 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
5058 # Try to create an executable without -o first, disregard a.out.
5059 # It will help us diagnose broken compilers, and finding out an intuition
5061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
5062 $as_echo_n "checking whether the C compiler works... " >&6; }
5063 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
5065 # The possible output files:
5066 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
5069 for ac_file in $ac_files
5072 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5073 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
5078 if { { ac_try="$ac_link_default"
5080 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5081 *) ac_try_echo
=$ac_try;;
5083 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5084 $as_echo "$ac_try_echo"; } >&5
5085 (eval "$ac_link_default") 2>&5
5087 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5088 test $ac_status = 0; }; then :
5089 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
5090 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
5091 # in a Makefile. We should not override ac_cv_exeext if it was cached,
5092 # so that the user can short-circuit this test for compilers unknown to
5094 for ac_file
in $ac_files ''
5096 test -f "$ac_file" ||
continue
5098 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
5101 # We found the default executable, but exeext='' is most
5105 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
5107 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
5109 # We set ac_cv_exeext here because the later test for it is not
5110 # safe: cross compilers may not add the suffix if given an `-o'
5111 # argument, so we may need to know it at that point already.
5112 # Even if this section looks crufty: it has the advantage of
5119 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
5124 if test -z "$ac_file"; then :
5125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5126 $as_echo "no" >&6; }
5127 $as_echo "$as_me: failed program was:" >&5
5128 sed 's/^/| /' conftest.
$ac_ext >&5
5130 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5131 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5132 { as_fn_set_status
77
5133 as_fn_error
"C compiler cannot create executables
5134 See \`config.log' for more details." "$LINENO" 5; }; }
5136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5137 $as_echo "yes" >&6; }
5139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5140 $as_echo_n "checking for C compiler default output file name... " >&6; }
5141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5142 $as_echo "$ac_file" >&6; }
5143 ac_exeext
=$ac_cv_exeext
5145 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
5146 ac_clean_files
=$ac_clean_files_save
5147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5148 $as_echo_n "checking for suffix of executables... " >&6; }
5149 if { { ac_try
="$ac_link"
5151 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5152 *) ac_try_echo=$ac_try;;
5154 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5155 $as_echo "$ac_try_echo"; } >&5
5156 (eval "$ac_link") 2>&5
5158 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5159 test $ac_status = 0; }; then :
5160 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
5161 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
5162 # work properly (i.e., refer to `conftest.exe'), while it won't with
5164 for ac_file
in conftest.exe conftest conftest.
*; do
5165 test -f "$ac_file" ||
continue
5167 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
5168 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
5174 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5175 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5176 as_fn_error
"cannot compute suffix of executables: cannot compile and link
5177 See \`config.log' for more details." "$LINENO" 5; }
5179 rm -f conftest conftest
$ac_cv_exeext
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5181 $as_echo "$ac_cv_exeext" >&6; }
5183 rm -f conftest.
$ac_ext
5184 EXEEXT
=$ac_cv_exeext
5186 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5187 /* end confdefs.h. */
5192 FILE *f = fopen ("conftest.out", "w");
5193 return ferror (f) || fclose (f) != 0;
5199 ac_clean_files
="$ac_clean_files conftest.out"
5200 # Check that the compiler produces executables we can run. If not, either
5201 # the compiler is broken, or we cross compile.
5202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5203 $as_echo_n "checking whether we are cross compiling... " >&6; }
5204 if test "$cross_compiling" != yes; then
5205 { { ac_try
="$ac_link"
5207 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5208 *) ac_try_echo=$ac_try;;
5210 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5211 $as_echo "$ac_try_echo"; } >&5
5212 (eval "$ac_link") 2>&5
5214 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5215 test $ac_status = 0; }
5216 if { ac_try='./conftest$ac_cv_exeext'
5217 { { case "(($ac_try" in
5218 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5219 *) ac_try_echo
=$ac_try;;
5221 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5222 $as_echo "$ac_try_echo"; } >&5
5223 (eval "$ac_try") 2>&5
5225 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5226 test $ac_status = 0; }; }; then
5229 if test "$cross_compiling" = maybe
; then
5232 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5233 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5234 as_fn_error
"cannot run C compiled programs.
5235 If you meant to cross compile, use \`--host'.
5236 See \`config.log' for more details." "$LINENO" 5; }
5240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5241 $as_echo "$cross_compiling" >&6; }
5243 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
5244 ac_clean_files
=$ac_clean_files_save
5245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5246 $as_echo_n "checking for suffix of object files... " >&6; }
5247 if test "${ac_cv_objext+set}" = set; then :
5248 $as_echo_n "(cached) " >&6
5250 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5251 /* end confdefs.h. */
5261 rm -f conftest.o conftest.obj
5262 if { { ac_try
="$ac_compile"
5264 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5265 *) ac_try_echo=$ac_try;;
5267 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5268 $as_echo "$ac_try_echo"; } >&5
5269 (eval "$ac_compile") 2>&5
5271 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5272 test $ac_status = 0; }; then :
5273 for ac_file in conftest.o conftest.obj conftest.*; do
5274 test -f "$ac_file" || continue;
5276 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5277 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5282 $as_echo "$as_me: failed program was:" >&5
5283 sed 's/^/| /' conftest.$ac_ext >&5
5285 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5286 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5287 as_fn_error "cannot compute suffix of object files
: cannot compile
5288 See \
`config.log' for more details." "$LINENO" 5; }
5290 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5293 $as_echo "$ac_cv_objext" >&6; }
5294 OBJEXT=$ac_cv_objext
5296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5297 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5298 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5299 $as_echo_n "(cached) " >&6
5301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5302 /* end confdefs.h. */
5315 if ac_fn_c_try_compile "$LINENO"; then :
5320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5321 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5325 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5326 if test $ac_compiler_gnu = yes; then
5331 ac_test_CFLAGS=${CFLAGS+set}
5332 ac_save_CFLAGS=$CFLAGS
5333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5334 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5335 if test "${ac_cv_prog_cc_g+set}" = set; then :
5336 $as_echo_n "(cached) " >&6
5338 ac_save_c_werror_flag=$ac_c_werror_flag
5339 ac_c_werror_flag=yes
5342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5343 /* end confdefs.h. */
5353 if ac_fn_c_try_compile "$LINENO"; then :
5357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5358 /* end confdefs.h. */
5368 if ac_fn_c_try_compile "$LINENO"; then :
5371 ac_c_werror_flag=$ac_save_c_werror_flag
5373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5374 /* end confdefs.h. */
5384 if ac_fn_c_try_compile "$LINENO"; then :
5387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5392 ac_c_werror_flag=$ac_save_c_werror_flag
5394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5395 $as_echo "$ac_cv_prog_cc_g" >&6; }
5396 if test "$ac_test_CFLAGS" = set; then
5397 CFLAGS=$ac_save_CFLAGS
5398 elif test $ac_cv_prog_cc_g = yes; then
5399 if test "$GCC" = yes; then
5405 if test "$GCC" = yes; then
5411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5412 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5413 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5414 $as_echo_n "(cached) " >&6
5416 ac_cv_prog_cc_c89=no
5418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5419 /* end confdefs.h. */
5422 #include <sys/types.h>
5423 #include <sys/stat.h>
5424 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5425 struct buf { int x; };
5426 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5427 static char *e (p, i)
5433 static char *f (char * (*g) (char **, int), char **p, ...)
5438 s = g (p, va_arg (v,int));
5443 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5444 function prototypes and stuff, but not '\xHH' hex character constants.
5445 These don't provoke an error unfortunately, instead are silently treated
5446 as 'x'. The following induces an error, until -std is added to get
5447 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5448 array size at least. It's necessary to write '\x00'==0 to get something
5449 that's true only with -std. */
5450 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5452 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5453 inside strings and character constants. */
5455 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5457 int test (int i, double x);
5458 struct s1 {int (*f) (int a);};
5459 struct s2 {int (*f) (double a);};
5460 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5466 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5471 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5472 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5474 CC="$ac_save_CC $ac_arg"
5475 if ac_fn_c_try_compile "$LINENO"; then :
5476 ac_cv_prog_cc_c89=$ac_arg
5478 rm -f core conftest.err conftest.$ac_objext
5479 test "x$ac_cv_prog_cc_c89" != "xno" && break
5481 rm -f conftest.$ac_ext
5486 case "x$ac_cv_prog_cc_c89" in
5488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5489 $as_echo "none needed" >&6; } ;;
5491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5492 $as_echo "unsupported" >&6; } ;;
5494 CC="$CC $ac_cv_prog_cc_c89"
5495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5496 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5498 if test "x$ac_cv_prog_cc_c89" != xno; then :
5503 ac_cpp='$CPP $CPPFLAGS'
5504 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5505 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5506 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5507 DEPDIR="${am__leading_dot}deps"
5509 ac_config_commands="$ac_config_commands depfiles"
5512 am_make=${MAKE-make}
5513 cat > confinc << 'END'
5515 @echo this is the am__doit target
5518 # If we don't find an include directive, just comment out the code.
5519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5520 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5524 # First try GNU make style include.
5525 echo "include confinc" > confmf
5526 # Ignore all kinds of additional output from `make'.
5527 case `$am_make -s -f confmf 2> /dev/null` in #(
5528 *the\ am__doit\ target*)
5534 # Now try BSD make style include.
5535 if test "$am__include" = "#"; then
5536 echo '.include
"confinc"' > confmf
5537 case `$am_make -s -f confmf 2> /dev/null` in #(
5538 *the\ am__doit\ target*)
5539 am__include=.include
5547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5548 $as_echo "$_am_result" >&6; }
5549 rm -f confinc confmf
5551 # Check whether --enable-dependency-tracking was given.
5552 if test "${enable_dependency_tracking+set}" = set; then :
5553 enableval=$enable_dependency_tracking;
5556 if test "x$enable_dependency_tracking" != xno; then
5557 am_depcomp="$ac_aux_dir/depcomp"
5560 if test "x$enable_dependency_tracking" != xno
; then
5570 depcc
="$CC" am_compiler_list
=
5572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5573 $as_echo_n "checking dependency style of $depcc... " >&6; }
5574 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5575 $as_echo_n "(cached) " >&6
5577 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5578 # We make a subdir and do the tests there. Otherwise we can end up
5579 # making bogus files that we don't know about and never remove. For
5580 # instance it was reported that on HP-UX the gcc test will end up
5581 # making a dummy file named `D' -- because `-MD' means `put the output
5584 # Copy depcomp to subdir because otherwise we won't find it if we're
5585 # using a relative directory.
5586 cp "$am_depcomp" conftest.dir
5588 # We will build objects and dependencies in a subdirectory because
5589 # it helps to detect inapplicable dependency modes. For instance
5590 # both Tru64's cc and ICC support -MD to output dependencies as a
5591 # side effect of compilation, but ICC will put the dependencies in
5592 # the current directory while Tru64 will put them in the object
5596 am_cv_CC_dependencies_compiler_type
=none
5597 if test "$am_compiler_list" = ""; then
5598 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5601 case " $depcc " in #(
5602 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
5605 for depmode
in $am_compiler_list; do
5606 # Setup a source with many dependencies, because some compilers
5607 # like to wrap large dependency lists on column 80 (with \), and
5608 # we should not choose a depcomp mode which is confused by this.
5610 # We need to recreate these files for each test, as the compiler may
5611 # overwrite some of them when testing with obscure command lines.
5612 # This happens at least with the AIX C compiler.
5614 for i
in 1 2 3 4 5 6; do
5615 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
5616 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5617 # Solaris 8's {/usr,}/bin/sh.
5618 touch sub
/conftst
$i.h
5620 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5622 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5623 # mode. It turns out that the SunPro C++ compiler does not properly
5624 # handle `-M -o', and we need to detect this. Also, some Intel
5625 # versions had trouble with output in subdirs
5626 am__obj
=sub
/conftest.
${OBJEXT-o}
5627 am__minus_obj
="-o $am__obj"
5630 # This depmode causes a compiler race in universal mode.
5631 test "$am__universal" = false ||
continue
5634 # after this tag, mechanisms are not by side-effect, so they'll
5635 # only be used when explicitly requested
5636 if test "x$enable_dependency_tracking" = xyes
; then
5642 msvisualcpp | msvcmsys
)
5643 # This compiler won't grok `-c -o', but also, the minuso test has
5644 # not run yet. These depmodes are late enough in the game, and
5645 # so weak that their functioning should not be impacted.
5646 am__obj
=conftest.
${OBJEXT-o}
5651 if depmode
=$depmode \
5652 source=sub
/conftest.c object
=$am__obj \
5653 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
5654 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
5655 >/dev
/null
2>conftest.err
&&
5656 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
5657 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
5658 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
5659 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
5660 # icc doesn't choke on unknown options, it will just issue warnings
5661 # or remarks (even with -Werror). So we grep stderr for any message
5662 # that says an option was ignored or not supported.
5663 # When given -MP, icc 7.0 and 7.1 complain thusly:
5664 # icc: Command line warning: ignoring option '-M'; no argument required
5665 # The diagnosis changed in icc 8.0:
5666 # icc: Command line remark: option '-MP' not supported
5667 if (grep 'ignoring option' conftest.err ||
5668 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
5669 am_cv_CC_dependencies_compiler_type
=$depmode
5678 am_cv_CC_dependencies_compiler_type
=none
5682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5683 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5684 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
5687 test "x$enable_dependency_tracking" != xno \
5688 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
5690 am__fastdepCC_FALSE
='#'
5692 am__fastdepCC_TRUE
='#'
5693 am__fastdepCC_FALSE
=
5697 if test "x$CC" != xcc
; then
5698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5699 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5702 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5704 set dummy
$CC; ac_cc
=`$as_echo "$2" |
5705 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5706 if { as_var
=ac_cv_prog_cc_
${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
5707 $as_echo_n "(cached) " >&6
5709 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5710 /* end confdefs.h. */
5720 # Make sure it works both with $CC and with simple cc.
5721 # We do the test twice because some compilers refuse to overwrite an
5722 # existing .o file with -o, though they will create one.
5723 ac_try
='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5725 if { { case "(($ac_try" in
5726 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5727 *) ac_try_echo=$ac_try;;
5729 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5730 $as_echo "$ac_try_echo"; } >&5
5731 (eval "$ac_try") 2>&5
5733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5734 test $ac_status = 0; } &&
5735 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5736 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5737 *) ac_try_echo
=$ac_try;;
5739 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5740 $as_echo "$ac_try_echo"; } >&5
5741 (eval "$ac_try") 2>&5
5743 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5744 test $ac_status = 0; };
5746 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
5747 if test "x$CC" != xcc
; then
5748 # Test first that cc exists at all.
5749 if { ac_try
='cc -c conftest.$ac_ext >&5'
5750 { { case "(($ac_try" in
5751 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5752 *) ac_try_echo=$ac_try;;
5754 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5755 $as_echo "$ac_try_echo"; } >&5
5756 (eval "$ac_try") 2>&5
5758 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5759 test $ac_status = 0; }; }; then
5760 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5762 if { { case "(($ac_try" in
5763 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5764 *) ac_try_echo
=$ac_try;;
5766 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5767 $as_echo "$ac_try_echo"; } >&5
5768 (eval "$ac_try") 2>&5
5770 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5771 test $ac_status = 0; } &&
5772 test -f conftest2.
$ac_objext && { { case "(($ac_try" in
5773 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5774 *) ac_try_echo=$ac_try;;
5776 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5777 $as_echo "$ac_try_echo"; } >&5
5778 (eval "$ac_try") 2>&5
5780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5781 test $ac_status = 0; };
5786 # cc exists but doesn't like -o.
5787 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5792 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5794 rm -f core conftest*
5797 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5799 $as_echo "yes" >&6; }
5801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5802 $as_echo "no" >&6; }
5804 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5808 # FIXME: we rely on the cache variable name because
5809 # there is no other way.
5811 am_cc=`echo $2 |
sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5812 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5813 if test "$am_t" != yes; then
5814 # Losing compiler, so override with the script.
5815 # FIXME: It is wrong to rewrite CC.
5816 # But if we don't then we get into trouble of one sort or another.
5817 # A longer-term fix would be to have automake use am__CC in this case,
5818 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5819 CC="$am_aux_dir/compile $CC"
5824 if test x$GCC = xyes; then
5825 test "x$GCC_TEST_OPTIONS" != x && CC="$CC $GCC_TEST_OPTIONS"
5827 test "x$NON_GCC_TEST_OPTIONS" != x && CC="$CC $NON_GCC_TEST_OPTIONS"
5830 # Avoid gnulib's tests for O_NOATIME and O_NOFOLLOW, as we don't use them.
5832 # Avoid gnulib's threadlib module, as we do threads our own way.
5835 # Initialize gnulib right after choosing the compiler.
5838 ac_cpp='$CPP $CPPFLAGS'
5839 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5840 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5841 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5843 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5844 # On Suns, sometimes $CPP names a directory.
5845 if test -n "$CPP" && test -d "$CPP"; then
5848 if test -z "$CPP"; then
5849 if test "${ac_cv_prog_CPP+set}" = set; then :
5850 $as_echo_n "(cached) " >&6
5852 # Double quotes because CPP needs to be expanded
5853 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5856 for ac_c_preproc_warn_flag in '' yes
5858 # Use a header file that comes with gcc, so configuring glibc
5859 # with a fresh cross-compiler works.
5860 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5861 # <limits.h> exists even on freestanding compilers.
5862 # On the NeXT, cc -E runs the code through the compiler's parser,
5863 # not just through cpp. "Syntax error" is here to catch this case.
5864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5865 /* end confdefs.h. */
5867 # include <limits.h>
5869 # include <assert.h>
5873 if ac_fn_c_try_cpp "$LINENO"; then :
5876 # Broken: fails on valid input.
5879 rm -f conftest.err conftest.$ac_ext
5881 # OK, works on sane cases. Now check whether nonexistent headers
5882 # can be detected and how.
5883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5884 /* end confdefs.h. */
5885 #include <ac_nonexistent.h>
5887 if ac_fn_c_try_cpp "$LINENO"; then :
5888 # Broken: success on invalid input.
5891 # Passes both tests.
5895 rm -f conftest.err conftest.$ac_ext
5898 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5899 rm -f conftest.err conftest.
$ac_ext
5900 if $ac_preproc_ok; then :
5912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5913 $as_echo "$CPP" >&6; }
5915 for ac_c_preproc_warn_flag
in '' yes
5917 # Use a header file that comes with gcc, so configuring glibc
5918 # with a fresh cross-compiler works.
5919 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5920 # <limits.h> exists even on freestanding compilers.
5921 # On the NeXT, cc -E runs the code through the compiler's parser,
5922 # not just through cpp. "Syntax error" is here to catch this case.
5923 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5924 /* end confdefs.h. */
5926 # include <limits.h>
5928 # include <assert.h>
5932 if ac_fn_c_try_cpp
"$LINENO"; then :
5935 # Broken: fails on valid input.
5938 rm -f conftest.err conftest.
$ac_ext
5940 # OK, works on sane cases. Now check whether nonexistent headers
5941 # can be detected and how.
5942 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5943 /* end confdefs.h. */
5944 #include <ac_nonexistent.h>
5946 if ac_fn_c_try_cpp
"$LINENO"; then :
5947 # Broken: success on invalid input.
5950 # Passes both tests.
5954 rm -f conftest.err conftest.
$ac_ext
5957 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5958 rm -f conftest.err conftest.
$ac_ext
5959 if $ac_preproc_ok; then :
5962 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5963 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5964 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
5965 See \`config.log' for more details." "$LINENO" 5; }
5969 ac_cpp
='$CPP $CPPFLAGS'
5970 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5971 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5972 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5976 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5977 if test "${ac_cv_path_GREP+set}" = set; then :
5978 $as_echo_n "(cached) " >&6
5980 if test -z "$GREP"; then
5981 ac_path_GREP_found
=false
5982 # Loop through the user's path and test for each of PROGNAME-LIST
5983 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5984 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5987 test -z "$as_dir" && as_dir
=.
5988 for ac_prog
in grep ggrep
; do
5989 for ac_exec_ext
in '' $ac_executable_extensions; do
5990 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5991 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
5992 # Check for GNU ac_path_GREP and select it if it is found.
5993 # Check for GNU $ac_path_GREP
5994 case `"$ac_path_GREP" --version 2>&1` in
5996 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5999 $as_echo_n 0123456789 >"conftest.in"
6002 cat "conftest.in" "conftest.in" >"conftest.tmp"
6003 mv "conftest.tmp" "conftest.in"
6004 cp "conftest.in" "conftest.nl"
6005 $as_echo 'GREP' >> "conftest.nl"
6006 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
6007 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
6008 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
6009 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6010 # Best one so far, save it but keep looking for a better one
6011 ac_cv_path_GREP
="$ac_path_GREP"
6012 ac_path_GREP_max
=$ac_count
6014 # 10*(2^10) chars as input seems more than enough
6015 test $ac_count -gt 10 && break
6017 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
6020 $ac_path_GREP_found && break 3
6025 if test -z "$ac_cv_path_GREP"; then
6026 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6029 ac_cv_path_GREP
=$GREP
6033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6034 $as_echo "$ac_cv_path_GREP" >&6; }
6035 GREP
="$ac_cv_path_GREP"
6038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6039 $as_echo_n "checking for egrep... " >&6; }
6040 if test "${ac_cv_path_EGREP+set}" = set; then :
6041 $as_echo_n "(cached) " >&6
6043 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
6044 then ac_cv_path_EGREP
="$GREP -E"
6046 if test -z "$EGREP"; then
6047 ac_path_EGREP_found
=false
6048 # Loop through the user's path and test for each of PROGNAME-LIST
6049 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6050 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
6053 test -z "$as_dir" && as_dir
=.
6054 for ac_prog
in egrep; do
6055 for ac_exec_ext
in '' $ac_executable_extensions; do
6056 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
6057 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
6058 # Check for GNU ac_path_EGREP and select it if it is found.
6059 # Check for GNU $ac_path_EGREP
6060 case `"$ac_path_EGREP" --version 2>&1` in
6062 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
6065 $as_echo_n 0123456789 >"conftest.in"
6068 cat "conftest.in" "conftest.in" >"conftest.tmp"
6069 mv "conftest.tmp" "conftest.in"
6070 cp "conftest.in" "conftest.nl"
6071 $as_echo 'EGREP' >> "conftest.nl"
6072 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
6073 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
6074 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
6075 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6076 # Best one so far, save it but keep looking for a better one
6077 ac_cv_path_EGREP
="$ac_path_EGREP"
6078 ac_path_EGREP_max
=$ac_count
6080 # 10*(2^10) chars as input seems more than enough
6081 test $ac_count -gt 10 && break
6083 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
6086 $ac_path_EGREP_found && break 3
6091 if test -z "$ac_cv_path_EGREP"; then
6092 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6095 ac_cv_path_EGREP
=$EGREP
6100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6101 $as_echo "$ac_cv_path_EGREP" >&6; }
6102 EGREP
="$ac_cv_path_EGREP"
6107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
6108 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
6109 if test "${gl_cv_c_amsterdam_compiler+set}" = set; then :
6110 $as_echo_n "(cached) " >&6
6113 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6114 /* end confdefs.h. */
6121 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6122 $EGREP "Amsterdam" >/dev
/null
2>&1; then :
6123 gl_cv_c_amsterdam_compiler
=yes
6125 gl_cv_c_amsterdam_compiler
=no
6131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
6132 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
6133 if test -z "$AR"; then
6134 if test $gl_cv_c_amsterdam_compiler = yes; then
6136 if test -z "$ARFLAGS"; then
6140 if test -n "$ac_tool_prefix"; then
6141 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6142 set dummy
${ac_tool_prefix}ar; ac_word
=$2
6143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6144 $as_echo_n "checking for $ac_word... " >&6; }
6145 if test "${ac_cv_prog_AR+set}" = set; then :
6146 $as_echo_n "(cached) " >&6
6148 if test -n "$AR"; then
6149 ac_cv_prog_AR
="$AR" # Let the user override the test.
6151 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6155 test -z "$as_dir" && as_dir
=.
6156 for ac_exec_ext
in '' $ac_executable_extensions; do
6157 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6158 ac_cv_prog_AR
="${ac_tool_prefix}ar"
6159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6169 if test -n "$AR"; then
6170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6171 $as_echo "$AR" >&6; }
6173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6174 $as_echo "no" >&6; }
6179 if test -z "$ac_cv_prog_AR"; then
6181 # Extract the first word of "ar", so it can be a program name with args.
6182 set dummy
ar; ac_word
=$2
6183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6184 $as_echo_n "checking for $ac_word... " >&6; }
6185 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6186 $as_echo_n "(cached) " >&6
6188 if test -n "$ac_ct_AR"; then
6189 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
6191 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6195 test -z "$as_dir" && as_dir
=.
6196 for ac_exec_ext
in '' $ac_executable_extensions; do
6197 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6198 ac_cv_prog_ac_ct_AR
="ar"
6199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6208 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
6209 if test -n "$ac_ct_AR"; then
6210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6211 $as_echo "$ac_ct_AR" >&6; }
6213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6214 $as_echo "no" >&6; }
6217 if test "x$ac_ct_AR" = x
; then
6220 case $cross_compiling:$ac_tool_warned in
6222 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6223 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6224 ac_tool_warned
=yes ;;
6232 if test -z "$ARFLAGS"; then
6237 if test -z "$ARFLAGS"; then
6243 if test -z "$RANLIB"; then
6244 if test $gl_cv_c_amsterdam_compiler = yes; then
6247 if test -n "$ac_tool_prefix"; then
6248 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6249 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
6250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6251 $as_echo_n "checking for $ac_word... " >&6; }
6252 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6253 $as_echo_n "(cached) " >&6
6255 if test -n "$RANLIB"; then
6256 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
6258 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6262 test -z "$as_dir" && as_dir
=.
6263 for ac_exec_ext
in '' $ac_executable_extensions; do
6264 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6265 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
6266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6275 RANLIB
=$ac_cv_prog_RANLIB
6276 if test -n "$RANLIB"; then
6277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6278 $as_echo "$RANLIB" >&6; }
6280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6281 $as_echo "no" >&6; }
6286 if test -z "$ac_cv_prog_RANLIB"; then
6287 ac_ct_RANLIB
=$RANLIB
6288 # Extract the first word of "ranlib", so it can be a program name with args.
6289 set dummy ranlib
; ac_word
=$2
6290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6291 $as_echo_n "checking for $ac_word... " >&6; }
6292 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6293 $as_echo_n "(cached) " >&6
6295 if test -n "$ac_ct_RANLIB"; then
6296 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
6298 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6302 test -z "$as_dir" && as_dir
=.
6303 for ac_exec_ext
in '' $ac_executable_extensions; do
6304 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6305 ac_cv_prog_ac_ct_RANLIB
="ranlib"
6306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6315 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
6316 if test -n "$ac_ct_RANLIB"; then
6317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6318 $as_echo "$ac_ct_RANLIB" >&6; }
6320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6321 $as_echo "no" >&6; }
6324 if test "x$ac_ct_RANLIB" = x
; then
6327 case $cross_compiling:$ac_tool_warned in
6329 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6330 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6331 ac_tool_warned
=yes ;;
6333 RANLIB
=$ac_ct_RANLIB
6336 RANLIB
="$ac_cv_prog_RANLIB"
6343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6344 $as_echo_n "checking for ANSI C header files... " >&6; }
6345 if test "${ac_cv_header_stdc+set}" = set; then :
6346 $as_echo_n "(cached) " >&6
6348 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6349 /* end confdefs.h. */
6363 if ac_fn_c_try_compile
"$LINENO"; then :
6364 ac_cv_header_stdc
=yes
6366 ac_cv_header_stdc
=no
6368 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6370 if test $ac_cv_header_stdc = yes; then
6371 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6372 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6373 /* end confdefs.h. */
6377 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6378 $EGREP "memchr" >/dev
/null
2>&1; then :
6381 ac_cv_header_stdc
=no
6387 if test $ac_cv_header_stdc = yes; then
6388 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6389 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6390 /* end confdefs.h. */
6394 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6395 $EGREP "free" >/dev
/null
2>&1; then :
6398 ac_cv_header_stdc
=no
6404 if test $ac_cv_header_stdc = yes; then
6405 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6406 if test "$cross_compiling" = yes; then :
6409 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6410 /* end confdefs.h. */
6413 #if ((' ' & 0x0FF) == 0x020)
6414 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6415 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6417 # define ISLOWER(c) \
6418 (('a' <= (c) && (c) <= 'i') \
6419 || ('j' <= (c) && (c) <= 'r') \
6420 || ('s' <= (c) && (c) <= 'z'))
6421 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6424 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6429 for (i = 0; i < 256; i++)
6430 if (XOR (islower (i), ISLOWER (i))
6431 || toupper (i) != TOUPPER (i))
6436 if ac_fn_c_try_run
"$LINENO"; then :
6439 ac_cv_header_stdc
=no
6441 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6442 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6448 $as_echo "$ac_cv_header_stdc" >&6; }
6449 if test $ac_cv_header_stdc = yes; then
6451 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6455 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6456 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
6457 inttypes.h stdint.h unistd.h
6459 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6460 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6462 eval as_val
=\$
$as_ac_Header
6463 if test "x$as_val" = x
""yes; then :
6464 cat >>confdefs.h
<<_ACEOF
6465 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6474 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
6475 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
6482 if test "$MINIX" = yes; then
6484 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6487 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6490 $as_echo "#define _MINIX 1" >>confdefs.h
6493 $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
6498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6499 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6500 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
6501 $as_echo_n "(cached) " >&6
6503 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6504 /* end confdefs.h. */
6506 # define __EXTENSIONS__ 1
6507 $ac_includes_default
6516 if ac_fn_c_try_compile
"$LINENO"; then :
6517 ac_cv_safe_to_define___extensions__
=yes
6519 ac_cv_safe_to_define___extensions__
=no
6521 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6524 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6525 test $ac_cv_safe_to_define___extensions__ = yes &&
6526 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6528 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6530 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
6532 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6534 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6536 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
6539 $as_echo_n "checking whether _XOPEN_SOURCE should be defined... " >&6; }
6540 if test "${ac_cv_should_define__xopen_source+set}" = set; then :
6541 $as_echo_n "(cached) " >&6
6543 ac_cv_should_define__xopen_source
=no
6544 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6545 /* end confdefs.h. */
6557 if ac_fn_c_try_compile
"$LINENO"; then :
6560 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6561 /* end confdefs.h. */
6563 #define _XOPEN_SOURCE 500
6574 if ac_fn_c_try_compile
"$LINENO"; then :
6575 ac_cv_should_define__xopen_source
=yes
6577 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6579 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
6582 $as_echo "$ac_cv_should_define__xopen_source" >&6; }
6583 test $ac_cv_should_define__xopen_source = yes &&
6584 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
6593 # Check whether --enable-largefile was given.
6594 if test "${enable_largefile+set}" = set; then :
6595 enableval
=$enable_largefile;
6598 if test "$enable_largefile" != no
; then
6600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6601 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6602 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
6603 $as_echo_n "(cached) " >&6
6605 ac_cv_sys_largefile_CC
=no
6606 if test "$GCC" != yes; then
6609 # IRIX 6.2 and later do not support large files by default,
6610 # so use the C compiler's -n32 option if that helps.
6611 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6612 /* end confdefs.h. */
6613 #include <sys/types.h>
6614 /* Check that off_t can represent 2**63 - 1 correctly.
6615 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6616 since some C++ compilers masquerading as C compilers
6617 incorrectly reject 9223372036854775807. */
6618 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6619 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6620 && LARGE_OFF_T % 2147483647 == 1)
6630 if ac_fn_c_try_compile
"$LINENO"; then :
6633 rm -f core conftest.err conftest.
$ac_objext
6635 if ac_fn_c_try_compile
"$LINENO"; then :
6636 ac_cv_sys_largefile_CC
=' -n32'; break
6638 rm -f core conftest.err conftest.
$ac_objext
6642 rm -f conftest.
$ac_ext
6645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6646 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6647 if test "$ac_cv_sys_largefile_CC" != no
; then
6648 CC
=$CC$ac_cv_sys_largefile_CC
6651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6652 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6653 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
6654 $as_echo_n "(cached) " >&6
6657 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6658 /* end confdefs.h. */
6659 #include <sys/types.h>
6660 /* Check that off_t can represent 2**63 - 1 correctly.
6661 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6662 since some C++ compilers masquerading as C compilers
6663 incorrectly reject 9223372036854775807. */
6664 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6665 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6666 && LARGE_OFF_T % 2147483647 == 1)
6676 if ac_fn_c_try_compile
"$LINENO"; then :
6677 ac_cv_sys_file_offset_bits
=no
; break
6679 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6680 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6681 /* end confdefs.h. */
6682 #define _FILE_OFFSET_BITS 64
6683 #include <sys/types.h>
6684 /* Check that off_t can represent 2**63 - 1 correctly.
6685 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6686 since some C++ compilers masquerading as C compilers
6687 incorrectly reject 9223372036854775807. */
6688 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6689 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6690 && LARGE_OFF_T % 2147483647 == 1)
6700 if ac_fn_c_try_compile
"$LINENO"; then :
6701 ac_cv_sys_file_offset_bits
=64; break
6703 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6704 ac_cv_sys_file_offset_bits
=unknown
6708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6709 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6710 case $ac_cv_sys_file_offset_bits in #(
6713 cat >>confdefs.h
<<_ACEOF
6714 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6719 if test $ac_cv_sys_file_offset_bits = unknown
; then
6720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6721 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6722 if test "${ac_cv_sys_large_files+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_large_files
=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 _LARGE_FILES 1
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_large_files
=1; break
6772 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6773 ac_cv_sys_large_files
=unknown
6777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6778 $as_echo "$ac_cv_sys_large_files" >&6; }
6779 case $ac_cv_sys_large_files in #(
6782 cat >>confdefs.h
<<_ACEOF
6783 #define _LARGE_FILES $ac_cv_sys_large_files
6791 $as_echo "#define _DARWIN_USE_64_BIT_INODE 1" >>confdefs.h
6795 case $ac_cv_prog_cc_stdc in #(
6797 ac_cv_prog_cc_c99
=no
; ac_cv_prog_cc_c89
=no
;; #(
6799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
6800 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
6801 if test "${ac_cv_prog_cc_c99+set}" = set; then :
6802 $as_echo_n "(cached) " >&6
6804 ac_cv_prog_cc_c99
=no
6806 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6807 /* end confdefs.h. */
6809 #include <stdbool.h>
6814 // Check varargs macros. These examples are taken from C99 6.10.3.5.
6815 #define debug(...) fprintf (stderr, __VA_ARGS__)
6816 #define showlist(...) puts (#__VA_ARGS__)
6817 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6819 test_varargs_macros (void)
6824 debug ("X = %d\n", x);
6825 showlist (The first, second, and third items.);
6826 report (x>y, "x is %d but y is %d", x, y);
6829 // Check long long types.
6830 #define BIG64 18446744073709551615ull
6831 #define BIG32 4294967295ul
6832 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6834 your preprocessor is broken;
6838 your preprocessor is broken;
6840 static long long int bignum = -9223372036854775807LL;
6841 static unsigned long long int ubignum = BIG64;
6843 struct incomplete_array
6851 const wchar_t *name;
6855 typedef const char *ccp;
6858 test_restrict (ccp restrict text)
6860 // See if C++-style comments work.
6861 // Iterate through items via the restricted pointer.
6862 // Also check for declarations in for loops.
6863 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6868 // Check varargs and va_copy.
6870 test_varargs (const char *format, ...)
6873 va_start (args, format);
6875 va_copy (args_copy, args);
6886 str = va_arg (args_copy, const char *);
6889 number = va_arg (args_copy, int);
6892 fnumber = va_arg (args_copy, double);
6907 _Bool success = false;
6910 if (test_restrict ("String literal") == 0)
6912 char *restrict newvar = "Another string";
6915 test_varargs ("s, d' f .", "string", 65, 34.234);
6916 test_varargs_macros ();
6918 // Check flexible array members.
6919 struct incomplete_array *ia =
6920 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6922 for (int i = 0; i < ia->datasize; ++i)
6923 ia->data[i] = i * 1.234;
6925 // Check named initializers.
6926 struct named_init ni = {
6928 .name = L"Test wide string",
6929 .average = 543.34343,
6934 int dynamic_array[ni.number];
6935 dynamic_array[ni.number - 1] = 543;
6937 // work around unused variable warnings
6938 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6939 || dynamic_array[ni.number - 1] != 543);
6945 for ac_arg
in '' -std=gnu99
-std=c99
-c99 -AC99 -xc99=all
-qlanglvl=extc99
6947 CC
="$ac_save_CC $ac_arg"
6948 if ac_fn_c_try_compile
"$LINENO"; then :
6949 ac_cv_prog_cc_c99
=$ac_arg
6951 rm -f core conftest.err conftest.
$ac_objext
6952 test "x$ac_cv_prog_cc_c99" != "xno" && break
6954 rm -f conftest.
$ac_ext
6959 case "x$ac_cv_prog_cc_c99" in
6961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6962 $as_echo "none needed" >&6; } ;;
6964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6965 $as_echo "unsupported" >&6; } ;;
6967 CC
="$CC $ac_cv_prog_cc_c99"
6968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
6969 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6971 if test "x$ac_cv_prog_cc_c99" != xno
; then :
6972 ac_cv_prog_cc_stdc
=$ac_cv_prog_cc_c99
6974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6975 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6976 if test "${ac_cv_prog_cc_c89+set}" = set; then :
6977 $as_echo_n "(cached) " >&6
6979 ac_cv_prog_cc_c89
=no
6981 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6982 /* end confdefs.h. */
6985 #include <sys/types.h>
6986 #include <sys/stat.h>
6987 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6988 struct buf { int x; };
6989 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6990 static char *e (p, i)
6996 static char *f (char * (*g) (char **, int), char **p, ...)
7001 s = g (p, va_arg (v,int));
7006 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
7007 function prototypes and stuff, but not '\xHH' hex character constants.
7008 These don't provoke an error unfortunately, instead are silently treated
7009 as 'x'. The following induces an error, until -std is added to get
7010 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
7011 array size at least. It's necessary to write '\x00'==0 to get something
7012 that's true only with -std. */
7013 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
7015 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
7016 inside strings and character constants. */
7018 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
7020 int test (int i, double x);
7021 struct s1 {int (*f) (int a);};
7022 struct s2 {int (*f) (double a);};
7023 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7029 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
7034 for ac_arg
in '' -qlanglvl=extc89
-qlanglvl=ansi
-std \
7035 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7037 CC
="$ac_save_CC $ac_arg"
7038 if ac_fn_c_try_compile
"$LINENO"; then :
7039 ac_cv_prog_cc_c89
=$ac_arg
7041 rm -f core conftest.err conftest.
$ac_objext
7042 test "x$ac_cv_prog_cc_c89" != "xno" && break
7044 rm -f conftest.
$ac_ext
7049 case "x$ac_cv_prog_cc_c89" in
7051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7052 $as_echo "none needed" >&6; } ;;
7054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7055 $as_echo "unsupported" >&6; } ;;
7057 CC
="$CC $ac_cv_prog_cc_c89"
7058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
7059 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
7061 if test "x$ac_cv_prog_cc_c89" != xno
; then :
7062 ac_cv_prog_cc_stdc
=$ac_cv_prog_cc_c89
7064 ac_cv_prog_cc_stdc
=no
7070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
7071 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
7072 if test "${ac_cv_prog_cc_stdc+set}" = set; then :
7073 $as_echo_n "(cached) " >&6
7076 case $ac_cv_prog_cc_stdc in #(
7078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7079 $as_echo "unsupported" >&6; } ;; #(
7081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7082 $as_echo "none needed" >&6; } ;; #(
7084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
7085 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
7090 # Code from module alloca-opt:
7091 # Code from module allocator:
7092 # Code from module at-internal:
7093 # Code from module c-ctype:
7094 # Code from module c-strcase:
7095 # Code from module careadlinkat:
7096 # Code from module clock-time:
7097 # Code from module close-stream:
7098 # Code from module crypto/md5:
7099 # Code from module crypto/sha1:
7100 # Code from module crypto/sha256:
7101 # Code from module crypto/sha512:
7102 # Code from module dirent:
7103 # Code from module dosname:
7104 # Code from module dtoastr:
7105 # Code from module dtotimespec:
7106 # Code from module dup2:
7107 # Code from module environ:
7108 # Code from module euidaccess:
7109 # Code from module execinfo:
7110 # Code from module extensions:
7112 # Code from module extern-inline:
7113 # Code from module faccessat:
7114 # Code from module fcntl-h:
7115 # Code from module fdopendir:
7116 # Code from module filemode:
7117 # Code from module fpending:
7118 # Code from module fstatat:
7119 # Code from module getgroups:
7120 # Code from module getloadavg:
7121 # Code from module getopt-gnu:
7122 # Code from module getopt-posix:
7123 # Code from module gettext-h:
7124 # Code from module gettime:
7125 # Code from module gettimeofday:
7126 # Code from module group-member:
7127 # Code from module ignore-value:
7128 # Code from module include_next:
7129 # Code from module intprops:
7130 # Code from module inttypes-incomplete:
7131 # Code from module largefile:
7133 # Code from module lstat:
7134 # Code from module manywarnings:
7135 # Code from module mktime:
7136 # Code from module multiarch:
7137 # Code from module nocrash:
7138 # Code from module openat-h:
7139 # Code from module pathmax:
7140 # Code from module pselect:
7141 # Code from module pthread_sigmask:
7142 # Code from module putenv:
7143 # Code from module readlink:
7144 # Code from module readlinkat:
7145 # Code from module root-uid:
7146 # Code from module sig2str:
7147 # Code from module signal-h:
7148 # Code from module snippet/_Noreturn:
7149 # Code from module snippet/arg-nonnull:
7150 # Code from module snippet/c++defs:
7151 # Code from module snippet/warn-on-use:
7152 # Code from module socklen:
7153 # Code from module ssize_t:
7154 # Code from module stat:
7155 # Code from module stat-time:
7156 # Code from module stdalign:
7157 # Code from module stdarg:
7161 # Code from module stdbool:
7162 # Code from module stddef:
7163 # Code from module stdint:
7164 # Code from module stdio:
7165 # Code from module stdlib:
7166 # Code from module strftime:
7167 # Code from module strtoimax:
7168 # Code from module strtoll:
7169 # Code from module strtoull:
7170 # Code from module strtoumax:
7171 # Code from module symlink:
7172 # Code from module sys_select:
7173 # Code from module sys_stat:
7174 # Code from module sys_time:
7175 # Code from module time:
7176 # Code from module time_r:
7177 # Code from module timer-time:
7178 # Code from module timespec:
7179 # Code from module timespec-add:
7180 # Code from module timespec-sub:
7181 # Code from module u64:
7182 # Code from module unistd:
7183 # Code from module unsetenv:
7184 # Code from module utimens:
7185 # Code from module verify:
7186 # Code from module warnings:
7187 # Code from module xalloc-oversized:
7190 # It's helpful to have C macros available to GDB, so prefer -g3 to -g
7191 # if -g3 works and the user does not specify CFLAGS.
7192 # This test must follow gl_EARLY; otherwise AC_LINK_IFELSE complains.
7193 if test "$ac_test_CFLAGS" != set; then
7196 emacs_g3_CFLAGS
='-g3';;
7198 emacs_g3_CFLAGS
='-g3 -O2';;
7200 emacs_g3_CFLAGS
='';;
7202 if test -n "$emacs_g3_CFLAGS"; then
7203 emacs_save_CFLAGS
=$CFLAGS
7204 CFLAGS
=$emacs_g3_CFLAGS
7205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts $emacs_g3_CFLAGS" >&5
7206 $as_echo_n "checking whether $CC accepts $emacs_g3_CFLAGS... " >&6; }
7207 if test "${emacs_cv_prog_cc_g3+set}" = set; then :
7208 $as_echo_n "(cached) " >&6
7210 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7211 /* end confdefs.h. */
7221 if ac_fn_c_try_link
"$LINENO"; then :
7222 emacs_cv_prog_cc_g3
=yes
7224 emacs_cv_prog_cc_g3
=no
7226 rm -f core conftest.err conftest.
$ac_objext \
7227 conftest
$ac_exeext conftest.
$ac_ext
7229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_prog_cc_g3" >&5
7230 $as_echo "$emacs_cv_prog_cc_g3" >&6; }
7231 if test $emacs_cv_prog_cc_g3 = yes; then
7232 CFLAGS
=$emacs_g3_CFLAGS
7234 CFLAGS
=$emacs_save_CFLAGS
7239 # Check whether --enable-gcc-warnings was given.
7240 if test "${enable_gcc_warnings+set}" = set; then :
7241 enableval
=$enable_gcc_warnings; case $enableval in
7243 *) as_fn_error
"bad value $enableval for gcc-warnings option" "$LINENO" 5 ;;
7245 gl_gcc_warnings
=$enableval
7252 # Check whether --enable-link-time-optimization was given.
7253 if test "${enable_link_time_optimization+set}" = set; then :
7254 enableval
=$enable_link_time_optimization; if test "${enableval}" != "no"; then
7255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether link-time optimization is supported" >&5
7256 $as_echo_n "checking whether link-time optimization is supported... " >&6; }
7258 if test x
$GCC = xyes
; then
7259 CPUS
=`getconf _NPROCESSORS_ONLN 2>/dev/null`
7260 if test x
$CPUS != x
; then
7266 CFLAGS
="$CFLAGS $LTO"
7267 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7268 /* end confdefs.h. */
7278 if ac_fn_c_try_compile
"$LINENO"; then :
7279 ac_lto_supported
=yes
7283 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7284 CFLAGS
="$old_CFLAGS"
7286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_lto_supported" >&5
7287 $as_echo "$ac_lto_supported" >&6; }
7288 if test "$ac_lto_supported" = "yes"; then
7289 CFLAGS
="$CFLAGS $LTO"
7295 # gl_GCC_VERSION_IFELSE([major], [minor], [run-if-found], [run-if-not-found])
7296 # ------------------------------------------------
7297 # If $CPP is gcc-MAJOR.MINOR or newer, then run RUN-IF-FOUND.
7298 # Otherwise, run RUN-IF-NOT-FOUND.
7301 # When compiling with GCC, prefer -isystem to -I when including system
7302 # include files, to avoid generating useless diagnostics for the files.
7303 if test "$gl_gcc_warnings" != yes; then
7308 # This, $nw, is the list of warnings we disable.
7311 case $with_x_toolkit in
7312 lucid | athena | motif
)
7313 # Old toolkits mishandle 'const'.
7314 nw
="$nw -Wwrite-strings"
7317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Werror" >&5
7318 $as_echo_n "checking whether C compiler handles -Werror... " >&6; }
7319 if test "${gl_cv_warn_c__Werror+set}" = set; then :
7320 $as_echo_n "(cached) " >&6
7323 gl_save_compiler_FLAGS
="$CFLAGS"
7324 as_fn_append CFLAGS
" -Werror"
7325 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7326 /* end confdefs.h. */
7336 if ac_fn_c_try_compile
"$LINENO"; then :
7337 gl_cv_warn_c__Werror
=yes
7339 gl_cv_warn_c__Werror
=no
7341 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7342 CFLAGS
="$gl_save_compiler_FLAGS"
7345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Werror" >&5
7346 $as_echo "$gl_cv_warn_c__Werror" >&6; }
7347 if test "x$gl_cv_warn_c__Werror" = x
""yes; then :
7348 as_fn_append WERROR_CFLAGS
" -Werror"
7356 nw
="$nw -Waggregate-return" # anachronistic
7357 nw
="$nw -Wlong-long" # C90 is anachronistic
7358 nw
="$nw -Wc++-compat" # We don't care about C++ compilers
7359 nw
="$nw -Wundef" # Warns on '#if GNULIB_FOO' etc in gnulib
7360 nw
="$nw -Wtraditional" # Warns on #elif which we use often
7361 nw
="$nw -Wcast-qual" # Too many warnings for now
7362 nw
="$nw -Wconversion" # Too many warnings for now
7363 nw
="$nw -Wsystem-headers" # Don't let system headers trigger warnings
7364 nw
="$nw -Wsign-conversion" # Too many warnings for now
7365 nw
="$nw -Woverlength-strings" # Not a problem these days
7366 nw
="$nw -Wtraditional-conversion" # Too many warnings for now
7367 nw
="$nw -Wunreachable-code" # so buggy that it's now silently ignored
7368 nw
="$nw -Wpadded" # Our structs are not padded
7369 nw
="$nw -Wredundant-decls" # we regularly (re)declare functions
7370 nw
="$nw -Wlogical-op" # any use of fwrite provokes this
7371 nw
="$nw -Wformat-nonliteral" # we do this a lot
7372 nw
="$nw -Wvla" # warnings in gettext.h
7373 nw
="$nw -Wnested-externs" # use of XARGMATCH/verify_function__
7374 nw
="$nw -Wswitch-enum" # Too many warnings for now
7375 nw
="$nw -Wswitch-default" # Too many warnings for now
7376 nw
="$nw -Wfloat-equal" # warns about high-quality code
7377 nw
="$nw -Winline" # OK to ignore 'inline'
7378 nw
="$nw -Wjump-misses-init" # We sometimes safely jump over init.
7379 nw
="$nw -Wstrict-overflow" # OK to optimize assuming that
7380 # signed overflow has undefined behavior
7381 nw
="$nw -Wsync-nand" # irrelevant here, and provokes ObjC warning
7382 nw
="$nw -Wunsafe-loop-optimizations" # OK to suppress unsafe optimizations
7384 # Emacs doesn't care about shadowing; see
7385 # <http://lists.gnu.org/archive/html/emacs-diffs/2011-11/msg00265.html>.
7388 # Emacs's use of alloca inhibits protecting the stack.
7389 nw
="$nw -Wstack-protector"
7391 # The following line should be removable at some point.
7392 nw
="$nw -Wsuggest-attribute=pure"
7396 if test -n "$GCC"; then
7398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is supported" >&5
7399 $as_echo_n "checking whether -Wno-missing-field-initializers is supported... " >&6; }
7400 if test "${gl_cv_cc_nomfi_supported+set}" = set; then :
7401 $as_echo_n "(cached) " >&6
7404 gl_save_CFLAGS
="$CFLAGS"
7405 CFLAGS
="$CFLAGS -W -Werror -Wno-missing-field-initializers"
7406 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7407 /* end confdefs.h. */
7417 if ac_fn_c_try_compile
"$LINENO"; then :
7418 gl_cv_cc_nomfi_supported
=yes
7420 gl_cv_cc_nomfi_supported
=no
7422 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7423 CFLAGS
="$gl_save_CFLAGS"
7426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_supported" >&5
7427 $as_echo "$gl_cv_cc_nomfi_supported" >&6; }
7429 if test "$gl_cv_cc_nomfi_supported" = yes; then
7430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is needed" >&5
7431 $as_echo_n "checking whether -Wno-missing-field-initializers is needed... " >&6; }
7432 if test "${gl_cv_cc_nomfi_needed+set}" = set; then :
7433 $as_echo_n "(cached) " >&6
7436 gl_save_CFLAGS
="$CFLAGS"
7437 CFLAGS
="$CFLAGS -W -Werror"
7438 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7439 /* end confdefs.h. */
7442 typedef struct { int a; int b; } s_t;
7454 if ac_fn_c_try_compile
"$LINENO"; then :
7455 gl_cv_cc_nomfi_needed
=no
7457 gl_cv_cc_nomfi_needed
=yes
7459 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7460 CFLAGS
="$gl_save_CFLAGS"
7464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_needed" >&5
7465 $as_echo "$gl_cv_cc_nomfi_needed" >&6; }
7468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wuninitialized is supported" >&5
7469 $as_echo_n "checking whether -Wuninitialized is supported... " >&6; }
7470 if test "${gl_cv_cc_uninitialized_supported+set}" = set; then :
7471 $as_echo_n "(cached) " >&6
7474 gl_save_CFLAGS
="$CFLAGS"
7475 CFLAGS
="$CFLAGS -Werror -Wuninitialized"
7476 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7477 /* end confdefs.h. */
7487 if ac_fn_c_try_compile
"$LINENO"; then :
7488 gl_cv_cc_uninitialized_supported
=yes
7490 gl_cv_cc_uninitialized_supported
=no
7492 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7493 CFLAGS
="$gl_save_CFLAGS"
7496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_uninitialized_supported" >&5
7497 $as_echo "$gl_cv_cc_uninitialized_supported" >&6; }
7501 # List all gcc warning categories.
7503 for gl_manywarn_item
in \
7510 -Wbad-function-cast \
7511 -Wbuiltin-macro-redefined \
7517 -Wcoverage-mismatch \
7520 -Wdeprecated-declarations \
7521 -Wdisabled-optimization \
7523 -Wdouble-promotion \
7528 -Wformat-contains-nul \
7529 -Wformat-extra-args \
7530 -Wformat-nonliteral \
7533 -Wformat-zero-length \
7535 -Wfree-nonheap-object \
7536 -Wignored-qualifiers \
7538 -Wimplicit-function-declaration \
7542 -Wint-to-pointer-cast \
7543 -Winvalid-memory-model \
7545 -Wjump-misses-init \
7548 -Wmaybe-uninitialized \
7550 -Wmissing-declarations \
7551 -Wmissing-field-initializers \
7552 -Wmissing-format-attribute \
7553 -Wmissing-include-dirs \
7554 -Wmissing-noreturn \
7555 -Wmissing-parameter-type \
7556 -Wmissing-prototypes \
7563 -Wold-style-declaration \
7564 -Wold-style-definition \
7566 -Woverlength-strings \
7569 -Wpacked-bitfield-compat \
7573 -Wpointer-to-int-cast \
7578 -Wsizeof-pointer-memaccess \
7582 -Wstrict-prototypes \
7583 -Wsuggest-attribute=const \
7584 -Wsuggest-attribute=format \
7585 -Wsuggest-attribute=noreturn \
7586 -Wsuggest-attribute=pure \
7596 -Wunreachable-code \
7597 -Wunsafe-loop-optimizations \
7599 -Wunused-but-set-parameter \
7600 -Wunused-but-set-variable \
7603 -Wunused-local-typedefs \
7605 -Wunused-parameter \
7611 -Wvector-operation-performance \
7613 -Wvolatile-register-var \
7617 gl_manywarn_set
="$gl_manywarn_set $gl_manywarn_item"
7620 # Disable specific options as needed.
7621 if test "$gl_cv_cc_nomfi_needed" = yes; then
7622 gl_manywarn_set
="$gl_manywarn_set -Wno-missing-field-initializers"
7625 if test "$gl_cv_cc_uninitialized_supported" = no
; then
7626 gl_manywarn_set
="$gl_manywarn_set -Wno-uninitialized"
7637 *" $gl_warn_item "*)
7640 gl_warn_set
="$gl_warn_set $gl_warn_item"
7647 as_gl_Warn
=`$as_echo "gl_cv_warn_c_$w" | $as_tr_sh`
7648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles $w" >&5
7649 $as_echo_n "checking whether C compiler handles $w... " >&6; }
7650 if { as_var
=$as_gl_Warn; eval "test \"\${$as_var+set}\" = set"; }; then :
7651 $as_echo_n "(cached) " >&6
7654 gl_save_compiler_FLAGS
="$CFLAGS"
7655 as_fn_append CFLAGS
" $w"
7656 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7657 /* end confdefs.h. */
7667 if ac_fn_c_try_compile
"$LINENO"; then :
7668 eval "$as_gl_Warn=yes"
7670 eval "$as_gl_Warn=no"
7672 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7673 CFLAGS
="$gl_save_compiler_FLAGS"
7676 eval ac_res
=\$
$as_gl_Warn
7677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7678 $as_echo "$ac_res" >&6; }
7679 eval as_val
=\$
$as_gl_Warn
7680 if test "x$as_val" = x
""yes; then :
7681 as_fn_append WARN_CFLAGS
" $w"
7686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-missing-field-initializers" >&5
7687 $as_echo_n "checking whether C compiler handles -Wno-missing-field-initializers... " >&6; }
7688 if test "${gl_cv_warn_c__Wno_missing_field_initializers+set}" = set; then :
7689 $as_echo_n "(cached) " >&6
7692 gl_save_compiler_FLAGS
="$CFLAGS"
7693 as_fn_append CFLAGS
" -Wno-missing-field-initializers"
7694 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7695 /* end confdefs.h. */
7705 if ac_fn_c_try_compile
"$LINENO"; then :
7706 gl_cv_warn_c__Wno_missing_field_initializers
=yes
7708 gl_cv_warn_c__Wno_missing_field_initializers
=no
7710 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7711 CFLAGS
="$gl_save_compiler_FLAGS"
7714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_missing_field_initializers" >&5
7715 $as_echo "$gl_cv_warn_c__Wno_missing_field_initializers" >&6; }
7716 if test "x$gl_cv_warn_c__Wno_missing_field_initializers" = x
""yes; then :
7717 as_fn_append WARN_CFLAGS
" -Wno-missing-field-initializers"
7721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-sign-compare" >&5
7722 $as_echo_n "checking whether C compiler handles -Wno-sign-compare... " >&6; }
7723 if test "${gl_cv_warn_c__Wno_sign_compare+set}" = set; then :
7724 $as_echo_n "(cached) " >&6
7727 gl_save_compiler_FLAGS
="$CFLAGS"
7728 as_fn_append CFLAGS
" -Wno-sign-compare"
7729 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7730 /* end confdefs.h. */
7740 if ac_fn_c_try_compile
"$LINENO"; then :
7741 gl_cv_warn_c__Wno_sign_compare
=yes
7743 gl_cv_warn_c__Wno_sign_compare
=no
7745 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7746 CFLAGS
="$gl_save_compiler_FLAGS"
7749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_sign_compare" >&5
7750 $as_echo "$gl_cv_warn_c__Wno_sign_compare" >&6; }
7751 if test "x$gl_cv_warn_c__Wno_sign_compare" = x
""yes; then :
7752 as_fn_append WARN_CFLAGS
" -Wno-sign-compare"
7755 # Too many warnings for now
7756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-type-limits" >&5
7757 $as_echo_n "checking whether C compiler handles -Wno-type-limits... " >&6; }
7758 if test "${gl_cv_warn_c__Wno_type_limits+set}" = set; then :
7759 $as_echo_n "(cached) " >&6
7762 gl_save_compiler_FLAGS
="$CFLAGS"
7763 as_fn_append CFLAGS
" -Wno-type-limits"
7764 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7765 /* end confdefs.h. */
7775 if ac_fn_c_try_compile
"$LINENO"; then :
7776 gl_cv_warn_c__Wno_type_limits
=yes
7778 gl_cv_warn_c__Wno_type_limits
=no
7780 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7781 CFLAGS
="$gl_save_compiler_FLAGS"
7784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_type_limits" >&5
7785 $as_echo "$gl_cv_warn_c__Wno_type_limits" >&6; }
7786 if test "x$gl_cv_warn_c__Wno_type_limits" = x
""yes; then :
7787 as_fn_append WARN_CFLAGS
" -Wno-type-limits"
7790 # Too many warnings for now
7791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-switch" >&5
7792 $as_echo_n "checking whether C compiler handles -Wno-switch... " >&6; }
7793 if test "${gl_cv_warn_c__Wno_switch+set}" = set; then :
7794 $as_echo_n "(cached) " >&6
7797 gl_save_compiler_FLAGS
="$CFLAGS"
7798 as_fn_append CFLAGS
" -Wno-switch"
7799 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7800 /* end confdefs.h. */
7810 if ac_fn_c_try_compile
"$LINENO"; then :
7811 gl_cv_warn_c__Wno_switch
=yes
7813 gl_cv_warn_c__Wno_switch
=no
7815 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7816 CFLAGS
="$gl_save_compiler_FLAGS"
7819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_switch" >&5
7820 $as_echo "$gl_cv_warn_c__Wno_switch" >&6; }
7821 if test "x$gl_cv_warn_c__Wno_switch" = x
""yes; then :
7822 as_fn_append WARN_CFLAGS
" -Wno-switch"
7825 # Too many warnings for now
7826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-unused-parameter" >&5
7827 $as_echo_n "checking whether C compiler handles -Wno-unused-parameter... " >&6; }
7828 if test "${gl_cv_warn_c__Wno_unused_parameter+set}" = set; then :
7829 $as_echo_n "(cached) " >&6
7832 gl_save_compiler_FLAGS
="$CFLAGS"
7833 as_fn_append CFLAGS
" -Wno-unused-parameter"
7834 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7835 /* end confdefs.h. */
7845 if ac_fn_c_try_compile
"$LINENO"; then :
7846 gl_cv_warn_c__Wno_unused_parameter
=yes
7848 gl_cv_warn_c__Wno_unused_parameter
=no
7850 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7851 CFLAGS
="$gl_save_compiler_FLAGS"
7854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_unused_parameter" >&5
7855 $as_echo "$gl_cv_warn_c__Wno_unused_parameter" >&6; }
7856 if test "x$gl_cv_warn_c__Wno_unused_parameter" = x
""yes; then :
7857 as_fn_append WARN_CFLAGS
" -Wno-unused-parameter"
7860 # Too many warnings for now
7861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-format-nonliteral" >&5
7862 $as_echo_n "checking whether C compiler handles -Wno-format-nonliteral... " >&6; }
7863 if test "${gl_cv_warn_c__Wno_format_nonliteral+set}" = set; then :
7864 $as_echo_n "(cached) " >&6
7867 gl_save_compiler_FLAGS
="$CFLAGS"
7868 as_fn_append CFLAGS
" -Wno-format-nonliteral"
7869 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7870 /* end confdefs.h. */
7880 if ac_fn_c_try_compile
"$LINENO"; then :
7881 gl_cv_warn_c__Wno_format_nonliteral
=yes
7883 gl_cv_warn_c__Wno_format_nonliteral
=no
7885 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7886 CFLAGS
="$gl_save_compiler_FLAGS"
7889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_format_nonliteral" >&5
7890 $as_echo "$gl_cv_warn_c__Wno_format_nonliteral" >&6; }
7891 if test "x$gl_cv_warn_c__Wno_format_nonliteral" = x
""yes; then :
7892 as_fn_append WARN_CFLAGS
" -Wno-format-nonliteral"
7897 # In spite of excluding -Wlogical-op above, it is enabled, as of
7898 # gcc 4.5.0 20090517.
7899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-logical-op" >&5
7900 $as_echo_n "checking whether C compiler handles -Wno-logical-op... " >&6; }
7901 if test "${gl_cv_warn_c__Wno_logical_op+set}" = set; then :
7902 $as_echo_n "(cached) " >&6
7905 gl_save_compiler_FLAGS
="$CFLAGS"
7906 as_fn_append CFLAGS
" -Wno-logical-op"
7907 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7908 /* end confdefs.h. */
7918 if ac_fn_c_try_compile
"$LINENO"; then :
7919 gl_cv_warn_c__Wno_logical_op
=yes
7921 gl_cv_warn_c__Wno_logical_op
=no
7923 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7924 CFLAGS
="$gl_save_compiler_FLAGS"
7927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_logical_op" >&5
7928 $as_echo "$gl_cv_warn_c__Wno_logical_op" >&6; }
7929 if test "x$gl_cv_warn_c__Wno_logical_op" = x
""yes; then :
7930 as_fn_append WARN_CFLAGS
" -Wno-logical-op"
7935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -fdiagnostics-show-option" >&5
7936 $as_echo_n "checking whether C compiler handles -fdiagnostics-show-option... " >&6; }
7937 if test "${gl_cv_warn_c__fdiagnostics_show_option+set}" = set; then :
7938 $as_echo_n "(cached) " >&6
7941 gl_save_compiler_FLAGS
="$CFLAGS"
7942 as_fn_append CFLAGS
" -fdiagnostics-show-option"
7943 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7944 /* end confdefs.h. */
7954 if ac_fn_c_try_compile
"$LINENO"; then :
7955 gl_cv_warn_c__fdiagnostics_show_option
=yes
7957 gl_cv_warn_c__fdiagnostics_show_option
=no
7959 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7960 CFLAGS
="$gl_save_compiler_FLAGS"
7963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__fdiagnostics_show_option" >&5
7964 $as_echo "$gl_cv_warn_c__fdiagnostics_show_option" >&6; }
7965 if test "x$gl_cv_warn_c__fdiagnostics_show_option" = x
""yes; then :
7966 as_fn_append WARN_CFLAGS
" -fdiagnostics-show-option"
7970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -funit-at-a-time" >&5
7971 $as_echo_n "checking whether C compiler handles -funit-at-a-time... " >&6; }
7972 if test "${gl_cv_warn_c__funit_at_a_time+set}" = set; then :
7973 $as_echo_n "(cached) " >&6
7976 gl_save_compiler_FLAGS
="$CFLAGS"
7977 as_fn_append CFLAGS
" -funit-at-a-time"
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__funit_at_a_time
=yes
7992 gl_cv_warn_c__funit_at_a_time
=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__funit_at_a_time" >&5
7999 $as_echo "$gl_cv_warn_c__funit_at_a_time" >&6; }
8000 if test "x$gl_cv_warn_c__funit_at_a_time" = x
""yes; then :
8001 as_fn_append WARN_CFLAGS
" -funit-at-a-time"
8007 $as_echo "#define lint 1" >>confdefs.h
8011 $as_echo "#define GNULIB_PORTCHECK 1" >>confdefs.h
8014 # We use a slightly smaller set of warning options for lib/.
8015 # Remove the following and save the result in GNULIB_WARN_CFLAGS.
8017 nw
="$nw -Wunused-macros"
8021 set x
$WARN_CFLAGS; shift
8025 *" $gl_warn_item "*)
8028 gl_warn_set
="$gl_warn_set $gl_warn_item"
8032 GNULIB_WARN_CFLAGS
=$gl_warn_set
8039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8040 $as_echo_n "checking whether ln -s works... " >&6; }
8042 if test "$LN_S" = "ln -s"; then
8043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8044 $as_echo "yes" >&6; }
8046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
8047 $as_echo "no, using $LN_S" >&6; }
8051 # Extract the first word of "install-info", so it can be a program name with args.
8052 set dummy install-info
; ac_word
=$2
8053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8054 $as_echo_n "checking for $ac_word... " >&6; }
8055 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
8056 $as_echo_n "(cached) " >&6
8058 case $INSTALL_INFO in
8060 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
8063 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8064 for as_dir
in $PATH$PATH_SEPARATOR/usr
/sbin
$PATH_SEPARATOR/sbin
8067 test -z "$as_dir" && as_dir
=.
8068 for ac_exec_ext
in '' $ac_executable_extensions; do
8069 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8070 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
8071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8078 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
8082 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
8083 if test -n "$INSTALL_INFO"; then
8084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
8085 $as_echo "$INSTALL_INFO" >&6; }
8087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8088 $as_echo "no" >&6; }
8092 # Extract the first word of "gzip", so it can be a program name with args.
8093 set dummy
gzip; ac_word
=$2
8094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8095 $as_echo_n "checking for $ac_word... " >&6; }
8096 if test "${ac_cv_path_GZIP_PROG+set}" = set; then :
8097 $as_echo_n "(cached) " >&6
8101 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
8104 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8108 test -z "$as_dir" && as_dir
=.
8109 for ac_exec_ext
in '' $ac_executable_extensions; do
8110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8111 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
8112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8122 GZIP_PROG
=$ac_cv_path_GZIP_PROG
8123 if test -n "$GZIP_PROG"; then
8124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
8125 $as_echo "$GZIP_PROG" >&6; }
8127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8128 $as_echo "no" >&6; }
8133 if test $opsys = gnu-linux
; then
8134 # Extract the first word of "paxctl", so it can be a program name with args.
8135 set dummy paxctl
; ac_word
=$2
8136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8137 $as_echo_n "checking for $ac_word... " >&6; }
8138 if test "${ac_cv_path_PAXCTL+set}" = set; then :
8139 $as_echo_n "(cached) " >&6
8143 ac_cv_path_PAXCTL
="$PAXCTL" # Let the user override the test with a path.
8146 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8147 for as_dir
in $PATH$PATH_SEPARATOR/sbin
$PATH_SEPARATOR/usr
/sbin
8150 test -z "$as_dir" && as_dir
=.
8151 for ac_exec_ext
in '' $ac_executable_extensions; do
8152 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8153 ac_cv_path_PAXCTL
="$as_dir/$ac_word$ac_exec_ext"
8154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8164 PAXCTL
=$ac_cv_path_PAXCTL
8165 if test -n "$PAXCTL"; then
8166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PAXCTL" >&5
8167 $as_echo "$PAXCTL" >&6; }
8169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8170 $as_echo "no" >&6; }
8174 if test "X$PAXCTL" != X
; then
8175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether binaries have a PT_PAX_FLAGS header" >&5
8176 $as_echo_n "checking whether binaries have a PT_PAX_FLAGS header... " >&6; }
8177 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8178 /* end confdefs.h. */
8188 if ac_fn_c_try_link
"$LINENO"; then :
8189 if $PAXCTL -v conftest
$EXEEXT >/dev
/null
2>&1; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8190 $as_echo "yes" >&6; }
8191 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8192 $as_echo "no" >&6; }; PAXCTL
=""; fi
8194 rm -f core conftest.err conftest.
$ac_objext \
8195 conftest
$ac_exeext conftest.
$ac_ext
8199 ## Need makeinfo >= 4.7 (?) to build the manuals.
8200 # Extract the first word of "makeinfo", so it can be a program name with args.
8201 set dummy makeinfo
; ac_word
=$2
8202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8203 $as_echo_n "checking for $ac_word... " >&6; }
8204 if test "${ac_cv_path_MAKEINFO+set}" = set; then :
8205 $as_echo_n "(cached) " >&6
8209 ac_cv_path_MAKEINFO
="$MAKEINFO" # Let the user override the test with a path.
8212 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8216 test -z "$as_dir" && as_dir
=.
8217 for ac_exec_ext
in '' $ac_executable_extensions; do
8218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8219 ac_cv_path_MAKEINFO
="$as_dir/$ac_word$ac_exec_ext"
8220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8227 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO
="no"
8231 MAKEINFO
=$ac_cv_path_MAKEINFO
8232 if test -n "$MAKEINFO"; then
8233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8234 $as_echo "$MAKEINFO" >&6; }
8236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8237 $as_echo "no" >&6; }
8241 if test "$MAKEINFO" != "no"; then
8243 $MAKEINFO --version 2> /dev/null |
8244 $EGREP 'texinfo[^0-9]*([1-4][0-9]+|[5-9]|4\.[7-9]|4\.[1-6][0-9]+)'
8250 ## Makeinfo is unusual. For a released Emacs, the manuals are
8251 ## pre-built, and not deleted by the normal clean rules. makeinfo is
8252 ## therefore in the category of "special tools" not normally required, which
8253 ## configure does not have to check for (eg autoconf itself).
8254 ## In a Bazaar checkout on the other hand, the manuals are not included.
8255 ## So makeinfo is a requirement to build from Bazaar, and configure
8256 ## should test for it as it does for any other build requirement.
8257 ## We use the presence of $srcdir/info/emacs to distinguish a release,
8258 ## with pre-built manuals, from a Bazaar checkout.
8261 if test "$MAKEINFO" = "no"; then
8263 if test "x${with_makeinfo}" = "xno"; then
8265 elif test ! -e "$srcdir/info/emacs" && test ! -e "$srcdir/info/emacs.info"; then
8266 as_fn_error
"You do not seem to have makeinfo >= 4.7, and your
8267 source tree does not seem to have pre-built manuals in the \`info' directory.
8268 Either install a suitable version of makeinfo, or re-run configure
8269 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
8275 INFO_OPTS
=--no-split
8280 if test x
$GCC = xyes
; then
8281 test "x$GCC_LINK_TEST_OPTIONS" != x
&& \
8282 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
8284 test "x$NON_GCC_LINK_TEST_OPTIONS" != x
&& \
8285 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
8289 late_LDFLAGS
=$LDFLAGS
8290 if test x
$GCC = xyes
; then
8291 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
8293 LDFLAGS
="$LDFLAGS -znocombreloc"
8296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
8297 $as_echo_n "checking for -znocombreloc... " >&6; }
8298 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8299 /* end confdefs.h. */
8309 if ac_fn_c_try_link
"$LINENO"; then :
8310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8311 $as_echo "yes" >&6; }
8313 LDFLAGS
=$late_LDFLAGS
8314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8315 $as_echo "no" >&6; }
8317 rm -f core conftest.err conftest.
$ac_objext \
8318 conftest
$ac_exeext conftest.
$ac_ext
8321 test "x$CANNOT_DUMP" = "x" && CANNOT_DUMP
=no
8323 your-opsys-here
) CANNOT_DUMP
=yes ;;
8326 test "$CANNOT_DUMP" = "yes" && \
8328 $as_echo "#define CANNOT_DUMP 1" >>confdefs.h
8334 UNEXEC_OBJ
=unexelf.o
8336 # MSDOS uses unexcoff.o
8337 # MSWindows uses unexw32.o
8339 UNEXEC_OBJ
=unexaix.o
8345 UNEXEC_OBJ
=unexmacosx.o
8348 UNEXEC_OBJ
=unexhp9k800.o
8351 # Use the Solaris dldump() function, called from unexsol.c, to dump
8352 # emacs, instead of the generic ELF dump code found in unexelf.c.
8353 # The resulting binary has a complete symbol table, and is better
8354 # for debugging and other observability tools (debuggers, pstack, etc).
8356 # If you encounter a problem using dldump(), please consider sending
8357 # a message to the OpenSolaris tools-linking mailing list:
8358 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
8360 # It is likely that dldump() works with older Solaris too, but this has
8361 # not been tested, so for now this change is for Solaris 10 or newer.
8362 UNEXEC_OBJ
=unexsol.o
8369 ## Let `ld' find image libs and similar things in /usr/local/lib.
8370 ## The system compiler, GCC, has apparently been modified to not
8371 ## look there, contrary to what a stock GCC would do.
8372 ### It's not our place to do this. See bug#10313#17.
8373 ### LD_SWITCH_SYSTEM=-L/usr/local/lib
8378 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
8379 case $host_cpu in mips
*) LD_SWITCH_SYSTEM
="-G 0";; esac
8383 ### It's not our place to do this. See bug#10313#17.
8384 ### LD_SWITCH_SYSTEM="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
8389 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
8390 ## otherwise Emacs dumps core on elf systems.
8391 LD_SWITCH_SYSTEM
="-Z"
8396 ac_link
="$ac_link $LD_SWITCH_SYSTEM"
8398 ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_RPATH,
8399 ## which has not been defined yet. When this was handled with cpp,
8400 ## it was expanded to null when configure sourced the s/*.h file.
8401 ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
8402 ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
8403 ## (or somesuch), but because it is supposed to go at the _front_
8404 ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
8405 ## Compare with the gnu-linux case below, which added to the end
8406 ## of LD_SWITCH_SYSTEM, and so can instead go at the front of
8407 ## LD_SWITCH_SYSTEM_TEMACS.
8410 LD_SWITCH_SYSTEM
="\$(LD_SWITCH_X_SITE_RPATH) $LD_SWITCH_SYSTEM" ;;
8417 ac_fn_c_check_decl
"$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
8418 if test "x$ac_cv_have_decl___ELF__" = x
""yes; then :
8422 if test "$ac_cv_have_decl___ELF__" = "yes"; then
8423 ## With ELF, make sure that all common symbols get allocated to in the
8424 ## data section. Otherwise, the dump of temacs may miss variables in
8425 ## the shared library that have been initialized. For example, with
8426 ## GNU libc, __malloc_initialized would normally be resolved to the
8427 ## shared library's .bss section, which is fatal.
8428 if test "x$GCC" = "xyes"; then
8429 C_SWITCH_MACHINE
="-fno-common"
8431 as_fn_error
"What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
8434 UNEXEC_OBJ
=unexalpha.o
8443 ## Some programs in src produce warnings saying certain subprograms
8444 ## are too complex and need a MAXMEM value greater than 2000 for
8445 ## additional optimization. --nils@exp-math.uni-essen.de
8446 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
8447 C_SWITCH_SYSTEM
="-ma -qmaxmem=4000"
8448 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
8449 ## It is redundant in glibc2, since we define _GNU_SOURCE.
8455 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
8456 aix4-2
) LIBS_SYSTEM
="-lrts -lIM -liconv" ;;
8458 freebsd
) LIBS_SYSTEM
="-lutil" ;;
8460 hpux
*) LIBS_SYSTEM
="-l:libdld.sl" ;;
8462 sol2
*) LIBS_SYSTEM
="-lsocket -lnsl" ;;
8464 ## Motif needs -lgen.
8465 unixware
) LIBS_SYSTEM
="-lsocket -lnsl -lelf -lgen" ;;
8470 ### Make sure subsequent tests use flags consistent with the build flags.
8472 if test x
"${OVERRIDE_CPPFLAGS}" != x
; then
8473 CPPFLAGS
="${OVERRIDE_CPPFLAGS}"
8475 CPPFLAGS
="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
8478 # Suppress obsolescent Autoconf test for size_t; Emacs assumes C89 or better.
8480 # Likewise for obsolescent test for uid_t, gid_t; Emacs assumes them.
8487 SYSTEM_TYPE
=`echo $opsys | sed -e 's/[0-9].*//' -e 's|-|/|'`
8492 START_FILES
='pre-crt0.o'
8495 ## Adding -lm confuses the dynamic linker, so omit it.
8497 START_FILES
='pre-crt0.o'
8500 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
8501 START_FILES
='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
8502 SYSTEM_TYPE
=berkeley-unix
8504 gnu-linux | gnu-kfreebsd
)
8505 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
8506 START_FILES
='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
8508 hpux10-20 | hpux11
)
8510 START_FILES
='pre-crt0.o $(CRT_DIR)/crt0.o'
8513 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
8514 START_FILES
='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
8515 SYSTEM_TYPE
=berkeley-unix
8519 SYSTEM_TYPE
=usg-unix-v
8527 cat >>confdefs.h
<<_ACEOF
8528 #define SYSTEM_TYPE "$SYSTEM_TYPE"
8534 for file in x
$LIB_STANDARD $START_FILES; do
8536 *CRT_DIR
*) crt_files
="$crt_files `echo $file | sed -e 's|.*/||'`" ;;
8540 if test "x$crt_files" != x
; then
8542 ## If user specified a crt-dir, use that unconditionally.
8545 if test "X$CRT_DIR" = "X"; then
8547 CRT_DIR
=/usr
/lib
# default
8549 case "$canonical" in
8550 x86_64-
*-linux-gnu* | s390x-
*-linux-gnu*)
8551 ## On x86-64 and s390x GNU/Linux distributions, the standard library
8552 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
8553 ## For anything else (eg /usr/lib32), it is up the user to specify
8554 ## the location (bug#5655).
8555 ## Test for crtn.o, not just the directory, because sometimes the
8556 ## directory exists but does not have the relevant files (bug#1287).
8557 ## FIXME better to test for binary compatibility somehow.
8558 test -e /usr
/lib64
/crtn.o
&& CRT_DIR
=/usr
/lib64
8561 powerpc64-
*-linux-gnu* | sparc64-
*-linux-gnu*) CRT_DIR
=/usr
/lib64
;;
8565 hpux10-20
) CRT_DIR
=/lib
;;
8568 test "x${GCC}" = xyes
&& crt_gcc
=yes
8574 for file in $crt_files; do
8576 ## If we're using gcc, try to determine it automatically by asking
8577 ## gcc. [If this doesn't work, CRT_DIR will remain at the
8578 ## system-dependent default from above.]
8579 if test $crt_gcc = yes && test ! -e $CRT_DIR/$file; then
8581 crt_file
=`$CC --print-file-name=$file 2>/dev/null`
8584 CRT_DIR
=`$as_dirname -- "$crt_file" ||
8585 $as_expr X"$crt_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8586 X"$crt_file" : 'X\(//\)[^/]' \| \
8587 X"$crt_file" : 'X\(//\)$' \| \
8588 X"$crt_file" : 'X\(/\)' \| . 2>/dev/null ||
8589 $as_echo X"$crt_file" |
8590 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8613 test -e $CRT_DIR/$file || crt_missing
="$crt_missing $file"
8616 test "x$crt_missing" = x || \
8617 as_fn_error
"Required file(s) not found:$crt_missing
8618 Try using the --with-crt-dir option." "$LINENO" 5
8620 fi # crt_files != ""
8626 if test -f $CRT_DIR/crti.o
; then
8628 test -f $CRT_DIR/crtn.o || \
8629 as_fn_error
"Required file not found: crtn.o" "$LINENO" 5
8631 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
8632 START_FILES
='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
8638 pre_PKG_CONFIG_CFLAGS
=$CFLAGS
8639 pre_PKG_CONFIG_LIBS
=$LIBS
8641 # Extract the first word of "pkg-config", so it can be a program name with args.
8642 set dummy pkg-config
; ac_word
=$2
8643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8644 $as_echo_n "checking for $ac_word... " >&6; }
8645 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8646 $as_echo_n "(cached) " >&6
8650 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
8653 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8657 test -z "$as_dir" && as_dir
=.
8658 for ac_exec_ext
in '' $ac_executable_extensions; do
8659 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8660 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
8661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8668 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
8672 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
8673 if test -n "$PKG_CONFIG"; then
8674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8675 $as_echo "$PKG_CONFIG" >&6; }
8677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8678 $as_echo "no" >&6; }
8686 if test "${with_sound}" != "no"; then
8687 # Sound support for GNU/Linux and the free BSDs.
8688 for ac_header
in machine
/soundcard.h sys
/soundcard.h soundcard.h
8690 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8691 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8692 eval as_val
=\$
$as_ac_Header
8693 if test "x$as_val" = x
""yes; then :
8694 cat >>confdefs.h
<<_ACEOF
8695 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8697 have_sound_header
=yes
8702 # Emulation library used on NetBSD.
8703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
8704 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
8705 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
8706 $as_echo_n "(cached) " >&6
8708 ac_check_lib_save_LIBS
=$LIBS
8709 LIBS
="-lossaudio $LIBS"
8710 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8711 /* end confdefs.h. */
8713 /* Override any GCC internal prototype to avoid an error.
8714 Use char because int might match the return type of a GCC
8715 builtin and then its argument prototype would still apply. */
8723 return _oss_ioctl ();
8728 if ac_fn_c_try_link
"$LINENO"; then :
8729 ac_cv_lib_ossaudio__oss_ioctl
=yes
8731 ac_cv_lib_ossaudio__oss_ioctl
=no
8733 rm -f core conftest.err conftest.
$ac_objext \
8734 conftest
$ac_exeext conftest.
$ac_ext
8735 LIBS
=$ac_check_lib_save_LIBS
8737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
8738 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
8739 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x
""yes; then :
8748 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
8752 if test "$PKG_CONFIG" = "no" ; then
8755 PKG_CONFIG_MIN_VERSION
=0.9.0
8756 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
8758 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
8760 if "$PKG_CONFIG" --exists "$ALSA_MODULES" 2>&5 &&
8761 ALSA_CFLAGS
=`"$PKG_CONFIG" --cflags "$ALSA_MODULES" 2>&5` &&
8762 ALSA_LIBS
=`"$PKG_CONFIG" --libs "$ALSA_MODULES" 2>&5`; then
8769 ALSA_CFLAGS
=`$as_echo "$ALSA_CFLAGS" | sed -e "$edit_cflags"`
8770 ALSA_LIBS
=`$as_echo "$ALSA_LIBS" | sed -e 's,///*,/,g'`
8771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$ALSA_CFLAGS' LIBS='$ALSA_LIBS'" >&5
8772 $as_echo "yes CFLAGS='$ALSA_CFLAGS' LIBS='$ALSA_LIBS'" >&6; }
8775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8776 $as_echo "no" >&6; }
8779 ## If we have a custom action on failure, don't print errors, but
8780 ## do set a variable so people can do so. Do it in a subshell
8781 ## to capture any diagnostics in invoking pkg-config.
8782 ALSA_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "$ALSA_MODULES") 2>&1`
8789 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8790 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8794 if test $succeeded = yes; then
8800 if test $HAVE_ALSA = yes; then
8801 SAVE_CFLAGS
="$CFLAGS"
8803 CFLAGS
="$ALSA_CFLAGS $CFLAGS"
8804 LIBS
="$ALSA_LIBS $LIBS"
8805 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8806 /* end confdefs.h. */
8807 #include <asoundlib.h>
8811 snd_lib_error_set_handler (0);
8816 if ac_fn_c_try_compile
"$LINENO"; then :
8817 emacs_alsa_normal
=yes
8819 emacs_alsa_normal
=no
8821 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8822 if test "$emacs_alsa_normal" != yes; then
8823 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8824 /* end confdefs.h. */
8825 #include <alsa/asoundlib.h>
8829 snd_lib_error_set_handler (0);
8834 if ac_fn_c_try_compile
"$LINENO"; then :
8835 emacs_alsa_subdir
=yes
8837 emacs_alsa_subdir
=no
8839 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8840 if test "$emacs_alsa_subdir" != yes; then
8841 as_fn_error
"pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
8843 ALSA_CFLAGS
="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
8846 CFLAGS
="$SAVE_CFLAGS"
8848 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
8849 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
8851 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
8855 if test x
$have_sound_header = xyes ||
test $HAVE_ALSA = yes; then
8857 gnu-linux|freebsd|netbsd
)
8859 $as_echo "#define HAVE_SOUND 1" >>confdefs.h
8871 for ac_header
in $ac_header_list
8873 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8874 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8876 eval as_val
=\$
$as_ac_Header
8877 if test "x$as_val" = x
""yes; then :
8878 cat >>confdefs.h
<<_ACEOF
8879 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
8909 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
8910 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8911 /* end confdefs.h. */
8912 #include <sys/personality.h>
8916 personality (PER_LINUX32)
8921 if ac_fn_c_try_compile
"$LINENO"; then :
8922 emacs_cv_personality_linux32
=yes
8924 emacs_cv_personality_linux32
=no
8926 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
8928 $as_echo "$emacs_cv_personality_linux32" >&6; }
8930 if test $emacs_cv_personality_linux32 = yes; then
8932 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
8936 for ac_header
in term.h
8938 ac_fn_c_check_header_preproc
"$LINENO" "term.h" "ac_cv_header_term_h"
8939 if test "x$ac_cv_header_term_h" = x
""yes; then :
8940 cat >>confdefs.h
<<_ACEOF
8941 #define HAVE_TERM_H 1
8948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8949 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8950 if test "${ac_cv_header_time+set}" = set; then :
8951 $as_echo_n "(cached) " >&6
8953 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8954 /* end confdefs.h. */
8955 #include <sys/types.h>
8956 #include <sys/time.h>
8962 if ((struct tm *) 0)
8968 if ac_fn_c_try_compile
"$LINENO"; then :
8969 ac_cv_header_time
=yes
8971 ac_cv_header_time
=no
8973 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8976 $as_echo "$ac_cv_header_time" >&6; }
8977 if test $ac_cv_header_time = yes; then
8979 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8983 ac_fn_c_check_decl
"$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "#include <signal.h>
8986 if test "x$ac_cv_have_decl_sys_siglist" = x
""yes; then :
8992 cat >>confdefs.h
<<_ACEOF
8993 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
8996 if test $ac_cv_have_decl_sys_siglist != yes; then
8997 # For Tru64, at least:
8998 ac_fn_c_check_decl
"$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "#include <signal.h>
9001 if test "x$ac_cv_have_decl___sys_siglist" = x
""yes; then :
9007 cat >>confdefs.h
<<_ACEOF
9008 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
9011 if test $ac_cv_have_decl___sys_siglist = yes; then
9013 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
9017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
9018 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
9019 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
9020 $as_echo_n "(cached) " >&6
9022 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9023 /* end confdefs.h. */
9024 #include <sys/types.h>
9025 #include <sys/wait.h>
9027 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
9030 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9038 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9043 if ac_fn_c_try_compile
"$LINENO"; then :
9044 ac_cv_header_sys_wait_h
=yes
9046 ac_cv_header_sys_wait_h
=no
9048 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
9051 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
9052 if test $ac_cv_header_sys_wait_h = yes; then
9054 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
9059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
9060 $as_echo_n "checking for speed_t... " >&6; }
9061 if test "${emacs_cv_speed_t+set}" = set; then :
9062 $as_echo_n "(cached) " >&6
9064 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9065 /* end confdefs.h. */
9066 #include <termios.h>
9075 if ac_fn_c_try_compile
"$LINENO"; then :
9076 emacs_cv_speed_t
=yes
9080 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
9083 $as_echo "$emacs_cv_speed_t" >&6; }
9084 if test $emacs_cv_speed_t = yes; then
9086 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
9093 for ac_header
in net
/if.h
9095 ac_fn_c_check_header_compile
"$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
9096 #if HAVE_SYS_SOCKET_H
9097 #include <sys/socket.h>
9100 if test "x$ac_cv_header_net_if_h" = x
""yes; then :
9101 cat >>confdefs.h
<<_ACEOF
9102 #define HAVE_NET_IF_H 1
9109 for ac_header
in ifaddrs.h
9111 ac_fn_c_check_header_compile
"$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default
9112 #if HAVE_SYS_SOCKET_H
9113 #include <sys/socket.h>
9116 if test "x$ac_cv_header_ifaddrs_h" = x
""yes; then :
9117 cat >>confdefs.h
<<_ACEOF
9118 #define HAVE_IFADDRS_H 1
9125 for ac_header
in net
/if_dl.h
9127 ac_fn_c_check_header_compile
"$LINENO" "net/if_dl.h" "ac_cv_header_net_if_dl_h" "$ac_includes_default
9128 #if HAVE_SYS_SOCKET_H
9129 #include <sys/socket.h>
9132 if test "x$ac_cv_header_net_if_dl_h" = x
""yes; then :
9133 cat >>confdefs.h
<<_ACEOF
9134 #define HAVE_NET_IF_DL_H 1
9142 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
9143 #if HAVE_SYS_SOCKET_H
9144 #include <sys/socket.h>
9150 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x
""yes; then :
9152 cat >>confdefs.h
<<_ACEOF
9153 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
9158 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
9159 #if HAVE_SYS_SOCKET_H
9160 #include <sys/socket.h>
9166 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x
""yes; then :
9168 cat >>confdefs.h
<<_ACEOF
9169 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
9174 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
9175 #if HAVE_SYS_SOCKET_H
9176 #include <sys/socket.h>
9182 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x
""yes; then :
9184 cat >>confdefs.h
<<_ACEOF
9185 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
9190 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
9191 #if HAVE_SYS_SOCKET_H
9192 #include <sys/socket.h>
9198 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x
""yes; then :
9200 cat >>confdefs.h
<<_ACEOF
9201 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
9206 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
9207 #if HAVE_SYS_SOCKET_H
9208 #include <sys/socket.h>
9214 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x
""yes; then :
9216 cat >>confdefs.h
<<_ACEOF
9217 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
9222 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_addr.sa_len" "ac_cv_member_struct_ifreq_ifr_addr_sa_len" "$ac_includes_default
9223 #if HAVE_SYS_SOCKET_H
9224 #include <sys/socket.h>
9230 if test "x$ac_cv_member_struct_ifreq_ifr_addr_sa_len" = x
""yes; then :
9232 cat >>confdefs.h
<<_ACEOF
9233 #define HAVE_STRUCT_IFREQ_IFR_ADDR_SA_LEN 1
9245 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
9246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
9247 $as_echo_n "checking whether we are using GNU Make... " >&6; }
9249 testval
=`${MAKE-make} --version 2>/dev/null | grep 'GNU Make'`
9250 if test "x$testval" != x
; then
9253 ac_enable_autodepend
=no
9255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
9256 $as_echo "$HAVE_GNU_MAKE" >&6; }
9257 if test $HAVE_GNU_MAKE = yes; then
9258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
9259 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
9260 SAVE_CFLAGS
="$CFLAGS"
9261 CFLAGS
="$CFLAGS -MMD -MF deps.d -MP"
9262 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9263 /* end confdefs.h. */
9273 if ac_fn_c_try_compile
"$LINENO"; then :
9276 ac_enable_autodepend
=no
9278 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9279 CFLAGS
="$SAVE_CFLAGS"
9280 test -f deps.d || ac_enable_autodepend
=no
9282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
9283 $as_echo "$ac_enable_autodepend" >&6; }
9285 if test $ac_enable_autodepend = yes; then
9286 DEPFLAGS
='-MMD -MF ${DEPDIR}/$*.d -MP'
9287 ## MKDIR_P is documented (see AC_PROG_MKDIR_P) to be parallel-safe.
9288 MKDEPDIR
='${MKDIR_P} ${DEPDIR}'
9289 deps_frag
=autodeps.mk
9292 deps_frag
=$srcdir/src
/$deps_frag
9298 lisp_frag
=$srcdir/src
/lisp.mk
9302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
9303 $as_echo_n "checking for long file names... " >&6; }
9304 if test "${ac_cv_sys_long_file_names+set}" = set; then :
9305 $as_echo_n "(cached) " >&6
9307 ac_cv_sys_long_file_names
=yes
9308 # Test for long file names in all the places we know might matter:
9309 # . the current directory, where building will happen
9310 # $prefix/lib where we will be installing things
9311 # $exec_prefix/lib likewise
9312 # $TMPDIR if set, where it might want to write temporary files
9313 # /tmp where it might want to write temporary files
9316 for ac_dir
in .
"$TMPDIR" /tmp
/var
/tmp
/usr
/tmp
"$prefix/lib" "$exec_prefix/lib"; do
9317 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9318 # in the usual case where exec_prefix is '${prefix}'.
9320 . |
/* | ?
:[\\/]*) ;; #(
9323 test -w "$ac_dir/." ||
continue # It is less confusing to not echo anything here.
9324 ac_xdir
=$ac_dir/cf$$
9325 (umask 077 && mkdir
"$ac_xdir" 2>/dev
/null
) ||
continue
9326 ac_tf1
=$ac_xdir/conftest9012345
9327 ac_tf2
=$ac_xdir/conftest9012346
9328 touch "$ac_tf1" 2>/dev
/null
&& test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9329 ac_cv_sys_long_file_names
=no
9330 rm -f -r "$ac_xdir" 2>/dev
/null
9331 test $ac_cv_sys_long_file_names = no
&& break
9334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
9335 $as_echo "$ac_cv_sys_long_file_names" >&6; }
9336 if test $ac_cv_sys_long_file_names = yes; then
9338 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
9343 #### Choose a window system.
9345 ## We leave window_system equal to none if
9346 ## we end up building without one. Any new window system should
9347 ## set window_system to an appropriate value and add objects to
9348 ## window-system-specific substs.
9351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
9352 $as_echo_n "checking for X... " >&6; }
9355 # Check whether --with-x was given.
9356 if test "${with_x+set}" = set; then :
9360 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9361 if test "x$with_x" = xno
; then
9362 # The user explicitly disabled X.
9365 case $x_includes,$x_libraries in #(
9366 *\'*) as_fn_error
"cannot use X directory names containing '" "$LINENO" 5;; #(
9367 *,NONE | NONE
,*) if test "${ac_cv_have_x+set}" = set; then :
9368 $as_echo_n "(cached) " >&6
9370 # One or both of the vars are not set, and there is no cached value.
9371 ac_x_includes
=no ac_x_libraries
=no
9372 rm -f -r conftest.dir
9373 if mkdir conftest.dir
; then
9375 cat >Imakefile
<<'_ACEOF'
9377 @echo incroot='${INCROOT}'
9379 @echo usrlibdir='${USRLIBDIR}'
9381 @echo libdir='${LIBDIR}'
9383 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
9384 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9385 for ac_var
in incroot usrlibdir libdir
; do
9386 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9388 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9389 for ac_extension
in a so sl dylib la dll
; do
9390 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9391 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9392 ac_im_usrlibdir
=$ac_im_libdir; break
9395 # Screen out bogus values from the imake configuration. They are
9396 # bogus both because they are the default anyway, and because
9397 # using them would break gcc on systems where it needs fixed includes.
9398 case $ac_im_incroot in
9399 /usr
/include
) ac_x_includes
= ;;
9400 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
9402 case $ac_im_usrlibdir in
9403 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
9404 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
9408 rm -f -r conftest.dir
9411 # Standard set of common directories for X headers.
9412 # Check X11 before X11Rn because it is often a symlink to the current release.
9426 /usr/local/X11/include
9427 /usr/local/X11R7/include
9428 /usr/local/X11R6/include
9429 /usr/local/X11R5/include
9430 /usr/local/X11R4/include
9432 /usr/local/include/X11
9433 /usr/local/include/X11R7
9434 /usr/local/include/X11R6
9435 /usr/local/include/X11R5
9436 /usr/local/include/X11R4
9440 /usr/XFree86/include/X11
9444 /usr/unsupported/include
9446 /usr/local/x11r5/include
9447 /usr/lpp/Xamples/include
9449 /usr/openwin/include
9450 /usr/openwin/share/include'
9452 if test "$ac_x_includes" = no
; then
9453 # Guess where to find include files, by looking for Xlib.h.
9454 # First, try using that file with no special directory specified.
9455 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9456 /* end confdefs.h. */
9457 #include <X11/Xlib.h>
9459 if ac_fn_c_try_cpp
"$LINENO"; then :
9460 # We can compile using X headers with no special include directory.
9463 for ac_dir
in $ac_x_header_dirs; do
9464 if test -r "$ac_dir/X11/Xlib.h"; then
9465 ac_x_includes
=$ac_dir
9470 rm -f conftest.err conftest.
$ac_ext
9471 fi # $ac_x_includes = no
9473 if test "$ac_x_libraries" = no
; then
9474 # Check for the libraries.
9475 # See if we find them without any special options.
9476 # Don't add to $LIBS permanently.
9479 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9480 /* end confdefs.h. */
9481 #include <X11/Xlib.h>
9490 if ac_fn_c_try_link
"$LINENO"; then :
9492 # We can link X programs with no special library path.
9496 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9498 # Don't even attempt the hair of trying to link an X program!
9499 for ac_extension
in a so sl dylib la dll
; do
9500 if test -r "$ac_dir/libX11.$ac_extension"; then
9501 ac_x_libraries
=$ac_dir
9507 rm -f core conftest.err conftest.
$ac_objext \
9508 conftest
$ac_exeext conftest.
$ac_ext
9509 fi # $ac_x_libraries = no
9511 case $ac_x_includes,$ac_x_libraries in #(
9513 # Didn't find X, or a directory has "'" in its name.
9514 ac_cv_have_x
="have_x=no";; #(
9516 # Record where we found X for the cache.
9517 ac_cv_have_x
="have_x=yes\
9518 ac_x_includes='$ac_x_includes'\
9519 ac_x_libraries='$ac_x_libraries'"
9525 eval "$ac_cv_have_x"
9528 if test "$have_x" != yes; then
9529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
9530 $as_echo "$have_x" >&6; }
9533 # If each of the values was on the command line, it overrides each guess.
9534 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
9535 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
9536 # Update the cache value to reflect the command line values.
9537 ac_cv_have_x
="have_x=yes\
9538 ac_x_includes='$x_includes'\
9539 ac_x_libraries='$x_libraries'"
9540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
9541 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
9544 if test "$no_x" != yes; then
9548 LD_SWITCH_X_SITE_RPATH
=
9549 if test "${x_libraries}" != NONE
; then
9550 if test -n "${x_libraries}"; then
9551 LD_SWITCH_X_SITE
=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9552 LD_SWITCH_X_SITE_RPATH
=-Wl,-rpath,`echo ${x_libraries} | sed -e "s/:/ -Wl,-rpath,/g"`
9554 x_default_search_path
=""
9555 x_search_path
=${x_libraries}
9556 if test -z "${x_search_path}"; then
9557 x_search_path
=/usr
/lib
9559 for x_library
in `echo ${x_search_path}: | \
9560 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9562 ${x_library}/X11/%L/%T/%N%C%S:\
9563 ${x_library}/X11/%l/%T/%N%C%S:\
9564 ${x_library}/X11/%T/%N%C%S:\
9565 ${x_library}/X11/%L/%T/%N%S:\
9566 ${x_library}/X11/%l/%T/%N%S:\
9567 ${x_library}/X11/%T/%N%S"
9568 if test x
"${x_default_search_path}" = x
; then
9569 x_default_search_path
=${x_search_path}
9571 x_default_search_path
="${x_search_path}:${x_default_search_path}"
9577 if test "${x_includes}" != NONE
&& test -n "${x_includes}"; then
9578 C_SWITCH_X_SITE
="$isystem"`echo ${x_includes} | sed -e "s/:/ $isystem/g"`
9581 if test x
"${x_includes}" = x
; then
9582 bitmapdir
=/usr
/include
/X11
/bitmaps
9584 # accumulate include directories that have X11 bitmap subdirectories
9586 for bmd
in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9587 if test -d "${bmd}/X11/bitmaps"; then
9588 bmd_acc
="${bmd_acc}:${bmd}/X11/bitmaps"
9590 if test -d "${bmd}/bitmaps"; then
9591 bmd_acc
="${bmd_acc}:${bmd}/bitmaps"
9594 if test ${bmd_acc} != "dummyval"; then
9595 bitmapdir
=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9602 tmp_CPPFLAGS
="$CPPFLAGS"
9603 tmp_CFLAGS
="$CFLAGS"
9604 CPPFLAGS
="$CPPFLAGS -x objective-c"
9605 CFLAGS
="$CFLAGS -x objective-c"
9608 if test "${with_ns}" != no
; then
9609 if test "${opsys}" = darwin
; then
9611 ns_appdir
=`pwd`/nextstep
/Emacs.app
9612 ns_appbindir
=${ns_appdir}/Contents
/MacOS
9613 ns_appresdir
=${ns_appdir}/Contents
/Resources
9614 ns_appsrc
=Cocoa
/Emacs.base
9615 elif test -f $GNUSTEP_CONFIG_FILE; then
9617 ns_appdir
=`pwd`/nextstep
/Emacs.app
9618 ns_appbindir
=${ns_appdir}
9619 ns_appresdir
=${ns_appdir}/Resources
9620 ns_appsrc
=GNUstep
/Emacs.base
9621 GNUSTEP_SYSTEM_HEADERS
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9622 GNUSTEP_SYSTEM_LIBRARIES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9623 GNUSTEP_LOCAL_HEADERS
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
9624 GNUSTEP_LOCAL_LIBRARIES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
9625 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
9626 GNUSTEP_LOCAL_HEADERS
="-I${GNUSTEP_LOCAL_HEADERS}"
9627 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
9628 GNUSTEP_LOCAL_LIBRARIES
="-L${GNUSTEP_LOCAL_LIBRARIES}"
9629 CPPFLAGS
="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9630 CFLAGS
="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9631 LDFLAGS
="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
9632 LIBS_GNUSTEP
="-lgnustep-gui -lgnustep-base -lobjc -lpthread"
9635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS" >&5
9636 $as_echo_n "checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS... " >&6; }
9637 if test "${emacs_cv_objc_exceptions+set}" = set; then :
9638 $as_echo_n "(cached) " >&6
9640 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9641 /* end confdefs.h. */
9642 #include <GNUstepBase/GSConfig.h>
9646 #if defined BASE_NATIVE_OBJC_EXCEPTIONS && BASE_NATIVE_OBJC_EXCEPTIONS > 0
9655 if ac_fn_c_try_compile
"$LINENO"; then :
9656 emacs_cv_objc_exceptions
=yes
9658 emacs_cv_objc_exceptions
=no
9660 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_objc_exceptions" >&5
9663 $as_echo "$emacs_cv_objc_exceptions" >&6; }
9664 if test $emacs_cv_objc_exceptions = yes; then
9666 $as_echo "#define _NATIVE_OBJC_EXCEPTIONS 1" >>confdefs.h
9668 GNU_OBJC_CFLAGS
="-fobjc-exceptions"
9672 CFLAGS
="$CFLAGS $GNU_OBJC_CFLAGS"
9674 ac_fn_c_check_header_mongrel
"$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
9675 if test "x$ac_cv_header_AppKit_AppKit_h" = x
""yes; then :
9678 as_fn_error
"\`--with-ns' was specified, but the include
9679 files are missing or cannot be compiled." "$LINENO" 5
9684 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9685 /* end confdefs.h. */
9686 #include <AppKit/AppKit.h>
9691 #ifdef MAC_OS_X_VERSION_MAX_ALLOWED
9692 #if MAC_OS_X_VERSION_MAX_ALLOWED >= 1040
9695 #error "OSX 10.4 or newer required"
9703 if ac_fn_c_try_compile
"$LINENO"; then :
9708 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9709 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9710 /* end confdefs.h. */
9711 #include <Foundation/NSObjCRuntime.h>
9720 if ac_fn_c_try_compile
"$LINENO"; then :
9721 ns_have_nsinteger
=yes
9723 ns_have_nsinteger
=no
9725 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9726 if test $ns_osx_have_104 = no
; then
9727 as_fn_error
"\`OSX 10.4 or newer is required'" "$LINENO" 5;
9729 if test $ns_have_nsinteger = yes; then
9731 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
9738 INSTALL_ARCH_INDEP_EXTRA
=install-etc
9739 ns_self_contained
=no
9742 if test "${HAVE_NS}" = yes; then
9743 if test "$with_toolkit_scroll_bars" = "no"; then
9744 as_fn_error
"Non-toolkit scroll bars are not implemented for Nextstep." "$LINENO" 5
9747 window_system
=nextstep
9748 # set up packaging dirs
9749 if test "${EN_NS_SELF_CONTAINED}" = yes; then
9750 ns_self_contained
=yes
9751 prefix
=${ns_appresdir}
9752 exec_prefix
=${ns_appbindir}
9753 libexecdir
="\${ns_appbindir}/libexec"
9754 archlibdir
="\${ns_appbindir}/libexec"
9755 docdir
="\${ns_appresdir}/etc"
9756 etcdir
="\${ns_appresdir}/etc"
9757 infodir
="\${ns_appresdir}/info"
9758 mandir
="\${ns_appresdir}/man"
9759 lispdir
="\${ns_appresdir}/lisp"
9760 leimdir
="\${ns_appresdir}/leim"
9761 INSTALL_ARCH_INDEP_EXTRA
=
9763 NS_OBJC_OBJ
="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o"
9765 CFLAGS
="$tmp_CFLAGS"
9766 CPPFLAGS
="$tmp_CPPFLAGS"
9778 if test "${with_w32}" != no
; then
9779 if test "${opsys}" != "cygwin"; then
9780 as_fn_error
"Using w32 with an autotools build is only supported for Cygwin." "$LINENO" 5
9782 ac_fn_c_check_header_mongrel
"$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
9783 if test "x$ac_cv_header_windows_h" = x
""yes; then :
9786 as_fn_error
"\`--with-w32' was specified, but windows.h
9787 cannot be found." "$LINENO" 5
9792 $as_echo "#define HAVE_NTGUI 1" >>confdefs.h
9794 if test -n "$ac_tool_prefix"; then
9795 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
9796 set dummy
${ac_tool_prefix}windres
; ac_word
=$2
9797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9798 $as_echo_n "checking for $ac_word... " >&6; }
9799 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9800 $as_echo_n "(cached) " >&6
9802 if test -n "$WINDRES"; then
9803 ac_cv_prog_WINDRES
="$WINDRES" # Let the user override the test.
9805 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9809 test -z "$as_dir" && as_dir
=.
9810 for ac_exec_ext
in '' $ac_executable_extensions; do
9811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9812 ac_cv_prog_WINDRES
="${ac_tool_prefix}windres"
9813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9822 WINDRES
=$ac_cv_prog_WINDRES
9823 if test -n "$WINDRES"; then
9824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9825 $as_echo "$WINDRES" >&6; }
9827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9828 $as_echo "no" >&6; }
9833 if test -z "$ac_cv_prog_WINDRES"; then
9834 ac_ct_WINDRES
=$WINDRES
9835 # Extract the first word of "windres", so it can be a program name with args.
9836 set dummy windres
; ac_word
=$2
9837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9838 $as_echo_n "checking for $ac_word... " >&6; }
9839 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then :
9840 $as_echo_n "(cached) " >&6
9842 if test -n "$ac_ct_WINDRES"; then
9843 ac_cv_prog_ac_ct_WINDRES
="$ac_ct_WINDRES" # Let the user override the test.
9845 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9849 test -z "$as_dir" && as_dir
=.
9850 for ac_exec_ext
in '' $ac_executable_extensions; do
9851 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9852 ac_cv_prog_ac_ct_WINDRES
="windres"
9853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9862 ac_ct_WINDRES
=$ac_cv_prog_ac_ct_WINDRES
9863 if test -n "$ac_ct_WINDRES"; then
9864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
9865 $as_echo "$ac_ct_WINDRES" >&6; }
9867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9868 $as_echo "no" >&6; }
9871 if test "x$ac_ct_WINDRES" = x
; then
9872 WINDRES
="as_fn_error "No resource compiler found.
" "$LINENO" 5"
9874 case $cross_compiling:$ac_tool_warned in
9876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9877 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9878 ac_tool_warned
=yes ;;
9880 WINDRES
=$ac_ct_WINDRES
9883 WINDRES
="$ac_cv_prog_WINDRES"
9886 W32_OBJ
="w32fns.o w32menu.o w32reg.o w32font.o w32term.o"
9887 W32_OBJ
="$W32_OBJ w32xfns.o w32select.o w32uniscribe.o"
9888 W32_LIBS
="$W32_LIBS -lkernel32 -luser32 -lgdi32 -lole32 -lcomdlg32"
9889 W32_LIBS
="$W32_LIBS -lusp10 -lcomctl32 -lwinspool"
9891 # Tell the linker that emacs.res is an object (which we compile from
9892 # the rc file), not a linker script.
9893 W32_RES_LINK
="-Wl,-bpe-i386 -Wl,emacs.res"
9900 if test "${HAVE_W32}" = "yes"; then
9905 ## $window_system is now set to the window system we will
9913 case "${window_system}" in
9918 case "${with_x_toolkit}" in
9919 athena | lucid
) USE_X_TOOLKIT
=LUCID
;;
9920 motif
) USE_X_TOOLKIT
=MOTIF
;;
9922 term_header
=gtkutil.h
9923 USE_X_TOOLKIT
=none
;;
9924 gtk2
) with_gtk2
=yes
9925 term_header
=gtkutil.h
9926 USE_X_TOOLKIT
=none
;;
9927 gtk3
) with_gtk3
=yes
9928 term_header
=gtkutil.h
9929 USE_X_TOOLKIT
=none
;;
9930 no
) USE_X_TOOLKIT
=none
;;
9931 * ) USE_X_TOOLKIT
=maybe
;;
9935 term_header
=nsterm.h
9938 term_header
=w32term.h
9942 if test -n "${term_header}"; then
9944 cat >>confdefs.h
<<_ACEOF
9945 #define TERM_HEADER "${term_header}"
9950 if test "$window_system" = none
&& test "X$with_x" != "Xno"; then
9951 # Extract the first word of "X", so it can be a program name with args.
9952 set dummy X
; ac_word
=$2
9953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9954 $as_echo_n "checking for $ac_word... " >&6; }
9955 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then :
9956 $as_echo_n "(cached) " >&6
9958 if test -n "$HAVE_XSERVER"; then
9959 ac_cv_prog_HAVE_XSERVER
="$HAVE_XSERVER" # Let the user override the test.
9961 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9965 test -z "$as_dir" && as_dir
=.
9966 for ac_exec_ext
in '' $ac_executable_extensions; do
9967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9968 ac_cv_prog_HAVE_XSERVER
="true"
9969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9976 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER
="false"
9979 HAVE_XSERVER
=$ac_cv_prog_HAVE_XSERVER
9980 if test -n "$HAVE_XSERVER"; then
9981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
9982 $as_echo "$HAVE_XSERVER" >&6; }
9984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9985 $as_echo "no" >&6; }
9989 if test "$HAVE_XSERVER" = true ||
9990 test -n "$DISPLAY" ||
9991 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
9992 as_fn_error
"You seem to be running X, but no X development libraries
9993 were found. You should install the relevant development files for X
9994 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9995 sure you have development files for image handling, i.e.
9996 tiff, gif, jpeg, png and xpm.
9997 If you are sure you want Emacs compiled without X window support, pass
9999 to configure." "$LINENO" 5
10003 ### If we're using X11, we should use the X menu package.
10005 case ${HAVE_X11} in
10006 yes ) HAVE_MENUS
=yes ;;
10009 # Does the opsystem file prohibit the use of the GNU malloc?
10010 # Assume not, until told otherwise.
10013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc is Doug Lea style" >&5
10014 $as_echo_n "checking whether malloc is Doug Lea style... " >&6; }
10015 if test "${emacs_cv_var_doug_lea_malloc+set}" = set; then :
10016 $as_echo_n "(cached) " >&6
10018 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10019 /* end confdefs.h. */
10020 #include <malloc.h>
10021 static void hook (void) {}
10025 malloc_set_state (malloc_get_state ());
10026 __after_morecore_hook = hook;
10027 __malloc_initialize_hook = hook;
10032 if ac_fn_c_try_link
"$LINENO"; then :
10033 emacs_cv_var_doug_lea_malloc
=yes
10035 emacs_cv_var_doug_lea_malloc
=no
10037 rm -f core conftest.err conftest.
$ac_objext \
10038 conftest
$ac_exeext conftest.
$ac_ext
10040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var_doug_lea_malloc" >&5
10041 $as_echo "$emacs_cv_var_doug_lea_malloc" >&6; }
10042 doug_lea_malloc
=$emacs_cv_var_doug_lea_malloc
10047 ## darwin ld insists on the use of malloc routines in the System framework.
10048 darwin|sol2-10
) system_malloc
=yes ;;
10051 if test "${system_malloc}" = "yes"; then
10053 $as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
10056 GNU_MALLOC_reason
="
10057 (The GNU allocators don't work with this system configuration.)"
10061 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ
=gmalloc.o
10062 VMLIMIT_OBJ
=vm-limit.o
10067 if test "$doug_lea_malloc" = "yes" ; then
10068 if test "$GNU_MALLOC" = yes ; then
10069 GNU_MALLOC_reason
="
10070 (Using Doug Lea's new malloc from the GNU C Library.)"
10073 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
10076 ## Use mmap directly for allocating larger buffers.
10077 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
10078 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
10079 ## Does the AC_FUNC_MMAP test below make this check unnecessary?
10081 gnu
*) REL_ALLOC
=no
;;
10085 if test x
"${REL_ALLOC}" = x
; then
10086 REL_ALLOC
=${GNU_MALLOC}
10089 use_mmap_for_buffers
=no
10091 cygwin|freebsd|irix6-5
) use_mmap_for_buffers
=yes ;;
10101 for ac_func
in getpagesize
10103 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
10104 if test "x$ac_cv_func_getpagesize" = x
""yes; then :
10105 cat >>confdefs.h
<<_ACEOF
10106 #define HAVE_GETPAGESIZE 1
10112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
10113 $as_echo_n "checking for working mmap... " >&6; }
10114 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
10115 $as_echo_n "(cached) " >&6
10117 if test "$cross_compiling" = yes; then :
10118 ac_cv_func_mmap_fixed_mapped
=no
10120 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10121 /* end confdefs.h. */
10122 $ac_includes_default
10123 /* malloc might have been renamed as rpl_malloc. */
10126 /* Thanks to Mike Haertel and Jim Avera for this test.
10127 Here is a matrix of mmap possibilities:
10128 mmap private not fixed
10129 mmap private fixed at somewhere currently unmapped
10130 mmap private fixed at somewhere already mapped
10131 mmap shared not fixed
10132 mmap shared fixed at somewhere currently unmapped
10133 mmap shared fixed at somewhere already mapped
10134 For private mappings, we should verify that changes cannot be read()
10135 back from the file, nor mmap's back from the file at a different
10136 address. (There have been systems where private was not correctly
10137 implemented like the infamous i386 svr4.0, and systems where the
10138 VM page cache was not coherent with the file system buffer cache
10139 like early versions of FreeBSD and possibly contemporary NetBSD.)
10140 For shared mappings, we should conversely verify that changes get
10141 propagated back to all the places they're supposed to be.
10143 Grep wants private fixed already mapped.
10144 The main things grep needs to know about mmap are:
10145 * does it exist and is it safe to write into the mmap'd area
10146 * how to use it (BSD variants) */
10149 #include <sys/mman.h>
10151 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10155 /* This mess was copied from the GNU getpagesize.h. */
10156 #ifndef HAVE_GETPAGESIZE
10157 # ifdef _SC_PAGESIZE
10158 # define getpagesize() sysconf(_SC_PAGESIZE)
10159 # else /* no _SC_PAGESIZE */
10160 # ifdef HAVE_SYS_PARAM_H
10161 # include <sys/param.h>
10162 # ifdef EXEC_PAGESIZE
10163 # define getpagesize() EXEC_PAGESIZE
10164 # else /* no EXEC_PAGESIZE */
10166 # define getpagesize() NBPG * CLSIZE
10169 # endif /* no CLSIZE */
10170 # else /* no NBPG */
10172 # define getpagesize() NBPC
10173 # else /* no NBPC */
10175 # define getpagesize() PAGESIZE
10176 # endif /* PAGESIZE */
10177 # endif /* no NBPC */
10178 # endif /* no NBPG */
10179 # endif /* no EXEC_PAGESIZE */
10180 # else /* no HAVE_SYS_PARAM_H */
10181 # define getpagesize() 8192 /* punt totally */
10182 # endif /* no HAVE_SYS_PARAM_H */
10183 # endif /* no _SC_PAGESIZE */
10185 #endif /* no HAVE_GETPAGESIZE */
10190 char *data, *data2, *data3;
10191 const char *cdata2;
10195 pagesize = getpagesize ();
10197 /* First, make a file with some known garbage in it. */
10198 data = (char *) malloc (pagesize);
10201 for (i = 0; i < pagesize; ++i)
10202 *(data + i) = rand ();
10204 fd = creat ("conftest.mmap", 0600);
10207 if (write (fd, data, pagesize) != pagesize)
10211 /* Next, check that the tail of a page is zero-filled. File must have
10212 non-zero length, otherwise we risk SIGBUS for entire page. */
10213 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
10217 if (write (fd2, cdata2, 1) != 1)
10219 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
10220 if (data2 == MAP_FAILED)
10222 for (i = 0; i < pagesize; ++i)
10226 if (munmap (data2, pagesize))
10229 /* Next, try to mmap the file at a fixed address which already has
10230 something else allocated at it. If we can, also make sure that
10231 we see the same garbage. */
10232 fd = open ("conftest.mmap", O_RDWR);
10235 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10236 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10238 for (i = 0; i < pagesize; ++i)
10239 if (*(data + i) != *(data2 + i))
10242 /* Finally, make sure that changes to the mapped area do not
10243 percolate back to the file as seen by read(). (This is a bug on
10244 some variants of i386 svr4.0.) */
10245 for (i = 0; i < pagesize; ++i)
10246 *(data2 + i) = *(data2 + i) + 1;
10247 data3 = (char *) malloc (pagesize);
10250 if (read (fd, data3, pagesize) != pagesize)
10252 for (i = 0; i < pagesize; ++i)
10253 if (*(data + i) != *(data3 + i))
10259 if ac_fn_c_try_run
"$LINENO"; then :
10260 ac_cv_func_mmap_fixed_mapped
=yes
10262 ac_cv_func_mmap_fixed_mapped
=no
10264 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10265 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
10270 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
10271 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10273 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
10276 rm -f conftest.mmap conftest.txt
10278 if test $use_mmap_for_buffers = yes; then
10280 $as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
10285 LIBS
="$LIBS_SYSTEM $LIBS"
10287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
10288 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
10289 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
10290 $as_echo_n "(cached) " >&6
10292 ac_check_lib_save_LIBS
=$LIBS
10293 LIBS
="-ldnet $LIBS"
10294 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10295 /* end confdefs.h. */
10297 /* Override any GCC internal prototype to avoid an error.
10298 Use char because int might match the return type of a GCC
10299 builtin and then its argument prototype would still apply. */
10307 return dnet_ntoa ();
10312 if ac_fn_c_try_link
"$LINENO"; then :
10313 ac_cv_lib_dnet_dnet_ntoa
=yes
10315 ac_cv_lib_dnet_dnet_ntoa
=no
10317 rm -f core conftest.err conftest.
$ac_objext \
10318 conftest
$ac_exeext conftest.
$ac_ext
10319 LIBS
=$ac_check_lib_save_LIBS
10321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10322 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10323 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x
""yes; then :
10324 cat >>confdefs.h
<<_ACEOF
10325 #define HAVE_LIBDNET 1
10328 LIBS
="-ldnet $LIBS"
10333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
10334 $as_echo_n "checking for main in -lXbsd... " >&6; }
10335 if test "${ac_cv_lib_Xbsd_main+set}" = set; then :
10336 $as_echo_n "(cached) " >&6
10338 ac_check_lib_save_LIBS
=$LIBS
10339 LIBS
="-lXbsd $LIBS"
10340 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10341 /* end confdefs.h. */
10352 if ac_fn_c_try_link
"$LINENO"; then :
10353 ac_cv_lib_Xbsd_main
=yes
10355 ac_cv_lib_Xbsd_main
=no
10357 rm -f core conftest.err conftest.
$ac_objext \
10358 conftest
$ac_exeext conftest.
$ac_ext
10359 LIBS
=$ac_check_lib_save_LIBS
10361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
10362 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
10363 if test "x$ac_cv_lib_Xbsd_main" = x
""yes; then :
10364 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -lXbsd"
10372 if test "$ac_cv_header_pthread_h"; then
10373 if test "$GMALLOC_OBJ" = gmalloc.o
; then
10374 emacs_pthread_function
=pthread_atfork
10376 emacs_pthread_function
=pthread_self
10378 as_ac_Lib
=`$as_echo "ac_cv_lib_pthread_$emacs_pthread_function" | $as_tr_sh`
10379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $emacs_pthread_function in -lpthread" >&5
10380 $as_echo_n "checking for $emacs_pthread_function in -lpthread... " >&6; }
10381 if { as_var
=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
10382 $as_echo_n "(cached) " >&6
10384 ac_check_lib_save_LIBS
=$LIBS
10385 LIBS
="-lpthread $LIBS"
10386 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10387 /* end confdefs.h. */
10389 /* Override any GCC internal prototype to avoid an error.
10390 Use char because int might match the return type of a GCC
10391 builtin and then its argument prototype would still apply. */
10395 char $emacs_pthread_function ();
10399 return $emacs_pthread_function ();
10404 if ac_fn_c_try_link
"$LINENO"; then :
10405 eval "$as_ac_Lib=yes"
10407 eval "$as_ac_Lib=no"
10409 rm -f core conftest.err conftest.
$ac_objext \
10410 conftest
$ac_exeext conftest.
$ac_ext
10411 LIBS
=$ac_check_lib_save_LIBS
10413 eval ac_res
=\$
$as_ac_Lib
10414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10415 $as_echo "$ac_res" >&6; }
10416 eval as_val
=\$
$as_ac_Lib
10417 if test "x$as_val" = x
""yes; then :
10422 if test "$HAVE_PTHREAD" = yes; then
10423 case "${canonical}" in
10425 *) LIB_PTHREAD
="-lpthread"
10426 LIBS
="$LIB_PTHREAD $LIBS" ;;
10429 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
10434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
10435 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
10436 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then :
10437 $as_echo_n "(cached) " >&6
10439 ac_check_lib_save_LIBS
=$LIBS
10440 LIBS
="-lpthreads $LIBS"
10441 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10442 /* end confdefs.h. */
10444 /* Override any GCC internal prototype to avoid an error.
10445 Use char because int might match the return type of a GCC
10446 builtin and then its argument prototype would still apply. */
10454 return cma_open ();
10459 if ac_fn_c_try_link
"$LINENO"; then :
10460 ac_cv_lib_pthreads_cma_open
=yes
10462 ac_cv_lib_pthreads_cma_open
=no
10464 rm -f core conftest.err conftest.
$ac_objext \
10465 conftest
$ac_exeext conftest.
$ac_ext
10466 LIBS
=$ac_check_lib_save_LIBS
10468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
10469 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
10470 if test "x$ac_cv_lib_pthreads_cma_open" = x
""yes; then :
10471 cat >>confdefs.h
<<_ACEOF
10472 #define HAVE_LIBPTHREADS 1
10475 LIBS
="-lpthreads $LIBS"
10480 ## Note: when using cpp in s/aix4.2.h, this definition depended on
10481 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
10482 ## the system file was sourced. Hence the value of LIBS_SYSTEM
10483 ## added to LIBS in configure would never contain the pthreads part,
10484 ## but the value used in Makefiles might. FIXME?
10486 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
10487 ## be harmless on older versions of X where it happens to exist.
10488 test "$opsys" = "aix4-2" && \
10489 test $ac_cv_lib_pthreads_cma_open = yes && \
10490 LIBS_SYSTEM
="$LIBS_SYSTEM -lpthreads"
10495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
10496 $as_echo_n "checking for -bbigtoc option... " >&6; }
10497 if test "${gdb_cv_bigtoc+set}" = set; then :
10498 $as_echo_n "(cached) " >&6
10502 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
10503 *) gdb_cv_bigtoc
=-bbigtoc ;;
10506 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
10507 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10508 /* end confdefs.h. */
10518 if ac_fn_c_try_link
"$LINENO"; then :
10523 rm -f core conftest.err conftest.
$ac_objext \
10524 conftest
$ac_exeext conftest.
$ac_ext
10527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
10528 $as_echo "$gdb_cv_bigtoc" >&6; }
10532 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10533 # used for the tests that follow. We set them back to REAL_CFLAGS and
10534 # REAL_CPPFLAGS later on.
10536 REAL_CFLAGS
="$CFLAGS"
10537 REAL_CPPFLAGS
="$CPPFLAGS"
10539 if test "${HAVE_X11}" = "yes"; then
10540 DEFS
="$C_SWITCH_X_SITE $DEFS"
10541 LDFLAGS
="$LDFLAGS $LD_SWITCH_X_SITE"
10543 CFLAGS
="$C_SWITCH_X_SITE $CFLAGS"
10544 CPPFLAGS
="$C_SWITCH_X_SITE $CPPFLAGS"
10546 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10547 # This is handled by LD_SWITCH_X_SITE_RPATH during the real build,
10548 # but it's more convenient here to set LD_RUN_PATH since this
10549 # also works on hosts that don't understand LD_SWITCH_X_SITE_RPATH.
10550 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
10551 LD_RUN_PATH
=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10555 if test "${opsys}" = "gnu-linux"; then
10556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
10557 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
10558 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10559 /* end confdefs.h. */
10564 XOpenDisplay ("foo");
10569 if ac_fn_c_try_link
"$LINENO"; then :
10570 xgnu_linux_first_failure
=no
10572 xgnu_linux_first_failure
=yes
10574 rm -f core conftest.err conftest.
$ac_objext \
10575 conftest
$ac_exeext conftest.
$ac_ext
10576 if test "${xgnu_linux_first_failure}" = "yes"; then
10577 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
10578 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
10579 OLD_CPPFLAGS
="$CPPFLAGS"
10581 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
10582 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
10583 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
10584 LIBS
="$LIBS -b i486-linuxaout"
10585 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10586 /* end confdefs.h. */
10591 XOpenDisplay ("foo");
10596 if ac_fn_c_try_link
"$LINENO"; then :
10597 xgnu_linux_second_failure
=no
10599 xgnu_linux_second_failure
=yes
10601 rm -f core conftest.err conftest.
$ac_objext \
10602 conftest
$ac_exeext conftest.
$ac_ext
10603 if test "${xgnu_linux_second_failure}" = "yes"; then
10604 # If we get the same failure with -b, there is no use adding -b.
10605 # So take it out. This plays safe.
10606 LD_SWITCH_X_SITE
="$OLD_LD_SWITCH_X_SITE"
10607 C_SWITCH_X_SITE
="$OLD_C_SWITCH_X_SITE"
10608 CPPFLAGS
="$OLD_CPPFLAGS"
10610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10611 $as_echo "no" >&6; }
10613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10614 $as_echo "yes" >&6; }
10617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10618 $as_echo "no" >&6; }
10622 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10623 # header files included from there.
10624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
10625 $as_echo_n "checking for Xkb... " >&6; }
10626 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10627 /* end confdefs.h. */
10628 #include <X11/Xlib.h>
10629 #include <X11/XKBlib.h>
10633 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10638 if ac_fn_c_try_link
"$LINENO"; then :
10643 rm -f core conftest.err conftest.
$ac_objext \
10644 conftest
$ac_exeext conftest.
$ac_ext
10645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
10646 $as_echo "$emacs_xkb" >&6; }
10647 if test $emacs_xkb = yes; then
10649 $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
10653 for ac_func
in XrmSetDatabase XScreenResourceString \
10654 XScreenNumberOfScreen
10656 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10657 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10658 eval as_val
=\$
$as_ac_var
10659 if test "x$as_val" = x
""yes; then :
10660 cat >>confdefs.h
<<_ACEOF
10661 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10669 if test "${window_system}" = "x11"; then
10670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
10671 $as_echo_n "checking X11 version 6... " >&6; }
10672 if test "${emacs_cv_x11_version_6+set}" = set; then :
10673 $as_echo_n "(cached) " >&6
10675 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10676 /* end confdefs.h. */
10677 #include <X11/Xlib.h>
10681 #if XlibSpecificationRelease < 6
10689 if ac_fn_c_try_link
"$LINENO"; then :
10690 emacs_cv_x11_version_6
=yes
10692 emacs_cv_x11_version_6
=no
10694 rm -f core conftest.err conftest.
$ac_objext \
10695 conftest
$ac_exeext conftest.
$ac_ext
10698 if test $emacs_cv_x11_version_6 = yes; then
10699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
10700 $as_echo "6 or newer" >&6; }
10702 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
10705 $as_echo "#define HAVE_X_I18N 1" >>confdefs.h
10707 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
10712 $as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
10717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
10718 $as_echo "before 6" >&6; }
10723 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
10725 if test "${HAVE_X11}" = "yes" ||
test "${HAVE_NS}" = "yes"; then
10726 if test "${with_rsvg}" != "no"; then
10727 RSVG_REQUIRED
=2.11.0
10728 RSVG_MODULE
="librsvg-2.0 >= $RSVG_REQUIRED"
10733 if test "$PKG_CONFIG" = "no" ; then
10736 PKG_CONFIG_MIN_VERSION
=0.9.0
10737 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
10739 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
10741 if "$PKG_CONFIG" --exists "$RSVG_MODULE" 2>&5 &&
10742 RSVG_CFLAGS
=`"$PKG_CONFIG" --cflags "$RSVG_MODULE" 2>&5` &&
10743 RSVG_LIBS
=`"$PKG_CONFIG" --libs "$RSVG_MODULE" 2>&5`; then
10750 RSVG_CFLAGS
=`$as_echo "$RSVG_CFLAGS" | sed -e "$edit_cflags"`
10751 RSVG_LIBS
=`$as_echo "$RSVG_LIBS" | sed -e 's,///*,/,g'`
10752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$RSVG_CFLAGS' LIBS='$RSVG_LIBS'" >&5
10753 $as_echo "yes CFLAGS='$RSVG_CFLAGS' LIBS='$RSVG_LIBS'" >&6; }
10756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10757 $as_echo "no" >&6; }
10760 ## If we have a custom action on failure, don't print errors, but
10761 ## do set a variable so people can do so. Do it in a subshell
10762 ## to capture any diagnostics in invoking pkg-config.
10763 RSVG_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "$RSVG_MODULE") 2>&1`
10770 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10771 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10775 if test $succeeded = yes; then
10784 if test $HAVE_RSVG = yes; then
10786 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
10788 CFLAGS
="$CFLAGS $RSVG_CFLAGS"
10789 LIBS
="$RSVG_LIBS $LIBS"
10794 HAVE_IMAGEMAGICK
=no
10795 if test "${HAVE_X11}" = "yes"; then
10796 if test "${with_imagemagick}" != "no"; then
10797 ## 6.2.8 is the earliest version known to work, but earlier versions
10798 ## might work - let us know if you find one.
10799 ## 6.0.7 does not work. See bug#7955.
10800 IMAGEMAGICK_MODULE
="Wand >= 6.2.8"
10804 if test "$PKG_CONFIG" = "no" ; then
10807 PKG_CONFIG_MIN_VERSION
=0.9.0
10808 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
10810 $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
10812 if "$PKG_CONFIG" --exists "$IMAGEMAGICK_MODULE" 2>&5 &&
10813 IMAGEMAGICK_CFLAGS
=`"$PKG_CONFIG" --cflags "$IMAGEMAGICK_MODULE" 2>&5` &&
10814 IMAGEMAGICK_LIBS
=`"$PKG_CONFIG" --libs "$IMAGEMAGICK_MODULE" 2>&5`; then
10821 IMAGEMAGICK_CFLAGS
=`$as_echo "$IMAGEMAGICK_CFLAGS" | sed -e "$edit_cflags"`
10822 IMAGEMAGICK_LIBS
=`$as_echo "$IMAGEMAGICK_LIBS" | sed -e 's,///*,/,g'`
10823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$IMAGEMAGICK_CFLAGS' LIBS='$IMAGEMAGICK_LIBS'" >&5
10824 $as_echo "yes CFLAGS='$IMAGEMAGICK_CFLAGS' LIBS='$IMAGEMAGICK_LIBS'" >&6; }
10827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10828 $as_echo "no" >&6; }
10829 IMAGEMAGICK_CFLAGS
=""
10830 IMAGEMAGICK_LIBS
=""
10831 ## If we have a custom action on failure, don't print errors, but
10832 ## do set a variable so people can do so. Do it in a subshell
10833 ## to capture any diagnostics in invoking pkg-config.
10834 IMAGEMAGICK_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "$IMAGEMAGICK_MODULE") 2>&1`
10841 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10842 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10846 if test $succeeded = yes; then
10847 HAVE_IMAGEMAGICK
=yes
10855 if test $HAVE_IMAGEMAGICK = yes; then
10857 $as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
10859 CFLAGS
="$CFLAGS $IMAGEMAGICK_CFLAGS"
10860 LIBS
="$IMAGEMAGICK_LIBS $LIBS"
10861 for ac_func
in MagickExportImagePixels MagickMergeImageLayers
10863 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10864 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10865 eval as_val
=\$
$as_ac_var
10866 if test "x$as_val" = x
""yes; then :
10867 cat >>confdefs.h
<<_ACEOF
10868 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10883 if test "${with_gtk3}" = "yes" ||
test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "maybe"; then
10886 GTK_MODULES
="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10891 if test "$PKG_CONFIG" = "no" ; then
10894 PKG_CONFIG_MIN_VERSION
=0.9.0
10895 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
10897 $as_echo_n "checking for $GTK_MODULES... " >&6; }
10899 if "$PKG_CONFIG" --exists "$GTK_MODULES" 2>&5 &&
10900 GTK_CFLAGS
=`"$PKG_CONFIG" --cflags "$GTK_MODULES" 2>&5` &&
10901 GTK_LIBS
=`"$PKG_CONFIG" --libs "$GTK_MODULES" 2>&5`; then
10908 GTK_CFLAGS
=`$as_echo "$GTK_CFLAGS" | sed -e "$edit_cflags"`
10909 GTK_LIBS
=`$as_echo "$GTK_LIBS" | sed -e 's,///*,/,g'`
10910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&5
10911 $as_echo "yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&6; }
10914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10915 $as_echo "no" >&6; }
10918 ## If we have a custom action on failure, don't print errors, but
10919 ## do set a variable so people can do so. Do it in a subshell
10920 ## to capture any diagnostics in invoking pkg-config.
10921 GTK_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "$GTK_MODULES") 2>&1`
10928 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10929 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10933 if test $succeeded = yes; then
10939 if test "$pkg_check_gtk" = "no" && test "$with_gtk3" = "yes"; then
10940 as_fn_error
"$GTK_PKG_ERRORS" "$LINENO" 5
10942 if test "$pkg_check_gtk" = "yes"; then
10944 $as_echo "#define HAVE_GTK3 1" >>confdefs.h
10946 GTK_OBJ
=emacsgtkfixed.o
10947 term_header
=gtkutil.h
10948 USE_GTK_TOOLKIT
="GTK3"
10949 if test "x$ac_enable_gtk_deprecation_warnings" = x
; then
10950 GTK_CFLAGS
="$GTK_CFLAGS -DGDK_DISABLE_DEPRECATION_WARNINGS"
10954 gtk3_pkg_errors
="$GTK_PKG_ERRORS "
10958 if test "${with_gtk2}" = "yes" ||
test "$check_gtk2" = "yes"; then
10961 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10966 if test "$PKG_CONFIG" = "no" ; then
10969 PKG_CONFIG_MIN_VERSION
=0.9.0
10970 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
10972 $as_echo_n "checking for $GTK_MODULES... " >&6; }
10974 if "$PKG_CONFIG" --exists "$GTK_MODULES" 2>&5 &&
10975 GTK_CFLAGS
=`"$PKG_CONFIG" --cflags "$GTK_MODULES" 2>&5` &&
10976 GTK_LIBS
=`"$PKG_CONFIG" --libs "$GTK_MODULES" 2>&5`; then
10983 GTK_CFLAGS
=`$as_echo "$GTK_CFLAGS" | sed -e "$edit_cflags"`
10984 GTK_LIBS
=`$as_echo "$GTK_LIBS" | sed -e 's,///*,/,g'`
10985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&5
10986 $as_echo "yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&6; }
10989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10990 $as_echo "no" >&6; }
10993 ## If we have a custom action on failure, don't print errors, but
10994 ## do set a variable so people can do so. Do it in a subshell
10995 ## to capture any diagnostics in invoking pkg-config.
10996 GTK_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "$GTK_MODULES") 2>&1`
11003 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11004 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11008 if test $succeeded = yes; then
11014 if test "$pkg_check_gtk" = "no" &&
11015 { test "$with_gtk" = yes ||
test "$with_gtk2" = "yes"; }
11017 as_fn_error
"$gtk3_pkg_errors$GTK_PKG_ERRORS" "$LINENO" 5
11019 test "$pkg_check_gtk" = "yes" && USE_GTK_TOOLKIT
="GTK2"
11022 if test x
"$pkg_check_gtk" = xyes
; then
11026 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
11027 CFLAGS
="$CFLAGS $GTK_CFLAGS"
11028 LIBS
="$GTK_LIBS $LIBS"
11030 for ac_func
in gtk_main
11032 ac_fn_c_check_func
"$LINENO" "gtk_main" "ac_cv_func_gtk_main"
11033 if test "x$ac_cv_func_gtk_main" = x
""yes; then :
11034 cat >>confdefs.h
<<_ACEOF
11035 #define HAVE_GTK_MAIN 1
11041 if test "${GTK_COMPILES}" != "yes"; then
11042 if test "$USE_X_TOOLKIT" != "maybe"; then
11043 as_fn_error
"Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
11048 $as_echo "#define USE_GTK 1" >>confdefs.h
11050 GTK_OBJ
="gtkutil.o $GTK_OBJ"
11052 if "$PKG_CONFIG" --atleast-version=2.10 gtk
+-2.0
; then
11055 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
11056 closing open displays. This is no problem if you just use
11057 one display, but if you use more than one and close one of them
11058 Emacs may crash." >&5
11059 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
11060 closing open displays. This is no problem if you just use
11061 one display, but if you use more than one and close one of them
11062 Emacs may crash." >&2;}
11071 if test "${HAVE_GTK}" = "yes"; then
11073 if test "$with_toolkit_scroll_bars" != no
; then
11074 with_toolkit_scroll_bars
=yes
11077 HAVE_GTK_FILE_SELECTION
=no
11078 ac_fn_c_check_decl
"$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
11079 #include <gtk/gtk.h>
11081 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x
""yes; then :
11082 HAVE_GTK_FILE_SELECTION
=yes
11084 HAVE_GTK_FILE_SELECTION
=no
11087 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
11088 for ac_func
in gtk_file_selection_new
11090 ac_fn_c_check_func
"$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
11091 if test "x$ac_cv_func_gtk_file_selection_new" = x
""yes; then :
11092 cat >>confdefs.h
<<_ACEOF
11093 #define HAVE_GTK_FILE_SELECTION_NEW 1
11101 HAVE_GTK_HANDLE_BOX
=no
11102 ac_fn_c_check_decl
"$LINENO" "GTK_TYPE_HANDLE_BOX" "ac_cv_have_decl_GTK_TYPE_HANDLE_BOX" "$ac_includes_default
11103 #include <gtk/gtk.h>
11105 if test "x$ac_cv_have_decl_GTK_TYPE_HANDLE_BOX" = x
""yes; then :
11106 HAVE_GTK_HANDLE_BOX
=yes
11108 HAVE_GTK_HANDLE_BOX
=no
11111 if test "$HAVE_GTK_HANDLE_BOX" = yes; then
11112 for ac_func
in gtk_handle_box_new
11114 ac_fn_c_check_func
"$LINENO" "gtk_handle_box_new" "ac_cv_func_gtk_handle_box_new"
11115 if test "x$ac_cv_func_gtk_handle_box_new" = x
""yes; then :
11116 cat >>confdefs.h
<<_ACEOF
11117 #define HAVE_GTK_HANDLE_BOX_NEW 1
11125 HAVE_GTK_TEAROFF_MENU_ITEM
=no
11126 ac_fn_c_check_decl
"$LINENO" "GTK_TYPE_TEAROFF_MENU_ITEM" "ac_cv_have_decl_GTK_TYPE_TEAROFF_MENU_ITEM" "$ac_includes_default
11127 #include <gtk/gtk.h>
11129 if test "x$ac_cv_have_decl_GTK_TYPE_TEAROFF_MENU_ITEM" = x
""yes; then :
11130 HAVE_GTK_TEAROFF_MENU_ITEM
=yes
11132 HAVE_GTK_TEAROFF_MENU_ITEM
=no
11135 if test "$HAVE_GTK_TEAROFF_MENU_ITEM" = yes; then
11136 for ac_func
in gtk_tearoff_menu_item_new
11138 ac_fn_c_check_func
"$LINENO" "gtk_tearoff_menu_item_new" "ac_cv_func_gtk_tearoff_menu_item_new"
11139 if test "x$ac_cv_func_gtk_tearoff_menu_item_new" = x
""yes; then :
11140 cat >>confdefs.h
<<_ACEOF
11141 #define HAVE_GTK_TEAROFF_MENU_ITEM_NEW 1
11149 for ac_func
in gtk_widget_get_window gtk_widget_set_has_window \
11150 gtk_dialog_get_action_area gtk_widget_get_sensitive \
11151 gtk_widget_get_mapped gtk_adjustment_get_page_size \
11152 gtk_orientable_set_orientation \
11153 gtk_window_set_has_resize_grip
11155 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11156 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11157 eval as_val
=\$
$as_ac_var
11158 if test "x$as_val" = x
""yes; then :
11159 cat >>confdefs.h
<<_ACEOF
11160 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11167 term_header
=gtkutil.h
11172 if test "${with_dbus}" = "yes"; then
11176 if test "$PKG_CONFIG" = "no" ; then
11179 PKG_CONFIG_MIN_VERSION
=0.9.0
11180 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
11182 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
11184 if "$PKG_CONFIG" --exists "dbus-1 >= 1.0" 2>&5 &&
11185 DBUS_CFLAGS
=`"$PKG_CONFIG" --cflags "dbus-1 >= 1.0" 2>&5` &&
11186 DBUS_LIBS
=`"$PKG_CONFIG" --libs "dbus-1 >= 1.0" 2>&5`; then
11193 DBUS_CFLAGS
=`$as_echo "$DBUS_CFLAGS" | sed -e "$edit_cflags"`
11194 DBUS_LIBS
=`$as_echo "$DBUS_LIBS" | sed -e 's,///*,/,g'`
11195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$DBUS_CFLAGS' LIBS='$DBUS_LIBS'" >&5
11196 $as_echo "yes CFLAGS='$DBUS_CFLAGS' LIBS='$DBUS_LIBS'" >&6; }
11199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11200 $as_echo "no" >&6; }
11203 ## If we have a custom action on failure, don't print errors, but
11204 ## do set a variable so people can do so. Do it in a subshell
11205 ## to capture any diagnostics in invoking pkg-config.
11206 DBUS_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "dbus-1 >= 1.0") 2>&1`
11213 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11214 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11218 if test $succeeded = yes; then
11224 if test "$HAVE_DBUS" = yes; then
11225 LIBS
="$LIBS $DBUS_LIBS"
11227 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
11229 for ac_func
in dbus_watch_get_unix_fd \
11230 dbus_type_is_valid \
11231 dbus_validate_bus_name \
11232 dbus_validate_path \
11233 dbus_validate_interface \
11234 dbus_validate_member
11236 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11237 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11238 eval as_val
=\$
$as_ac_var
11239 if test "x$as_val" = x
""yes; then :
11240 cat >>confdefs.h
<<_ACEOF
11241 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11247 DBUS_OBJ
=dbusbind.o
11253 if test "${HAVE_X11}" = "yes" && test "${with_gsettings}" = "yes"; then
11257 if test "$PKG_CONFIG" = "no" ; then
11260 PKG_CONFIG_MIN_VERSION
=0.9.0
11261 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gio-2.0 >= 2.26" >&5
11263 $as_echo_n "checking for gio-2.0 >= 2.26... " >&6; }
11265 if "$PKG_CONFIG" --exists "gio-2.0 >= 2.26" 2>&5 &&
11266 GSETTINGS_CFLAGS
=`"$PKG_CONFIG" --cflags "gio-2.0 >= 2.26" 2>&5` &&
11267 GSETTINGS_LIBS
=`"$PKG_CONFIG" --libs "gio-2.0 >= 2.26" 2>&5`; then
11274 GSETTINGS_CFLAGS
=`$as_echo "$GSETTINGS_CFLAGS" | sed -e "$edit_cflags"`
11275 GSETTINGS_LIBS
=`$as_echo "$GSETTINGS_LIBS" | sed -e 's,///*,/,g'`
11276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GSETTINGS_CFLAGS' LIBS='$GSETTINGS_LIBS'" >&5
11277 $as_echo "yes CFLAGS='$GSETTINGS_CFLAGS' LIBS='$GSETTINGS_LIBS'" >&6; }
11280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11281 $as_echo "no" >&6; }
11282 GSETTINGS_CFLAGS
=""
11284 ## If we have a custom action on failure, don't print errors, but
11285 ## do set a variable so people can do so. Do it in a subshell
11286 ## to capture any diagnostics in invoking pkg-config.
11287 GSETTINGS_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "gio-2.0 >= 2.26") 2>&1`
11294 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11295 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11299 if test $succeeded = yes; then
11305 if test "$HAVE_GSETTINGS" = "yes"; then
11307 $as_echo "#define HAVE_GSETTINGS 1" >>confdefs.h
11309 SETTINGS_CFLAGS
="$GSETTINGS_CFLAGS"
11310 SETTINGS_LIBS
="$GSETTINGS_LIBS"
11315 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
11319 if test "$PKG_CONFIG" = "no" ; then
11322 PKG_CONFIG_MIN_VERSION
=0.9.0
11323 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
11325 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
11327 if "$PKG_CONFIG" --exists "gconf-2.0 >= 2.13" 2>&5 &&
11328 GCONF_CFLAGS
=`"$PKG_CONFIG" --cflags "gconf-2.0 >= 2.13" 2>&5` &&
11329 GCONF_LIBS
=`"$PKG_CONFIG" --libs "gconf-2.0 >= 2.13" 2>&5`; then
11336 GCONF_CFLAGS
=`$as_echo "$GCONF_CFLAGS" | sed -e "$edit_cflags"`
11337 GCONF_LIBS
=`$as_echo "$GCONF_LIBS" | sed -e 's,///*,/,g'`
11338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GCONF_CFLAGS' LIBS='$GCONF_LIBS'" >&5
11339 $as_echo "yes CFLAGS='$GCONF_CFLAGS' LIBS='$GCONF_LIBS'" >&6; }
11342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11343 $as_echo "no" >&6; }
11346 ## If we have a custom action on failure, don't print errors, but
11347 ## do set a variable so people can do so. Do it in a subshell
11348 ## to capture any diagnostics in invoking pkg-config.
11349 GCONF_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "gconf-2.0 >= 2.13") 2>&1`
11356 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11357 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11361 if test $succeeded = yes; then
11367 if test "$HAVE_GCONF" = yes; then
11369 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
11371 SETTINGS_CFLAGS
="$SETTINGS_CFLAGS $GCONF_CFLAGS"
11372 SETTINGS_LIBS
="$SETTINGS_LIBS $GCONF_LIBS"
11376 if test "$HAVE_GSETTINGS" = "yes" ||
test "$HAVE_GCONF" = "yes"; then
11380 if test "$PKG_CONFIG" = "no" ; then
11383 PKG_CONFIG_MIN_VERSION
=0.9.0
11384 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gobject-2.0 >= 2.0" >&5
11386 $as_echo_n "checking for gobject-2.0 >= 2.0... " >&6; }
11388 if "$PKG_CONFIG" --exists "gobject-2.0 >= 2.0" 2>&5 &&
11389 GOBJECT_CFLAGS
=`"$PKG_CONFIG" --cflags "gobject-2.0 >= 2.0" 2>&5` &&
11390 GOBJECT_LIBS
=`"$PKG_CONFIG" --libs "gobject-2.0 >= 2.0" 2>&5`; then
11397 GOBJECT_CFLAGS
=`$as_echo "$GOBJECT_CFLAGS" | sed -e "$edit_cflags"`
11398 GOBJECT_LIBS
=`$as_echo "$GOBJECT_LIBS" | sed -e 's,///*,/,g'`
11399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GOBJECT_CFLAGS' LIBS='$GOBJECT_LIBS'" >&5
11400 $as_echo "yes CFLAGS='$GOBJECT_CFLAGS' LIBS='$GOBJECT_LIBS'" >&6; }
11403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11404 $as_echo "no" >&6; }
11407 ## If we have a custom action on failure, don't print errors, but
11408 ## do set a variable so people can do so. Do it in a subshell
11409 ## to capture any diagnostics in invoking pkg-config.
11410 GOBJECT_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "gobject-2.0 >= 2.0") 2>&1`
11417 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11418 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11422 if test $succeeded = yes; then
11428 if test "$HAVE_GOBJECT" = "yes"; then
11429 SETTINGS_CFLAGS
="$SETTINGS_CFLAGS $GOBJECT_CFLAGS"
11430 SETTINGS_LIBS
="$SETTINGS_LIBS $GOBJECT_LIBS"
11432 SAVE_CFLAGS
="$CFLAGS"
11434 CFLAGS
="$SETTINGS_CFLAGS $CFLAGS"
11435 LIBS
="$SETTINGS_LIBS $LIBS"
11436 for ac_func
in g_type_init
11438 ac_fn_c_check_func
"$LINENO" "g_type_init" "ac_cv_func_g_type_init"
11439 if test "x$ac_cv_func_g_type_init" = x
""yes; then :
11440 cat >>confdefs.h
<<_ACEOF
11441 #define HAVE_G_TYPE_INIT 1
11447 CFLAGS
="$SAVE_CFLAGS"
11456 if test "${with_selinux}" = "yes"; then
11457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
11458 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
11459 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then :
11460 $as_echo_n "(cached) " >&6
11462 ac_check_lib_save_LIBS
=$LIBS
11463 LIBS
="-lselinux $LIBS"
11464 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11465 /* end confdefs.h. */
11467 /* Override any GCC internal prototype to avoid an error.
11468 Use char because int might match the return type of a GCC
11469 builtin and then its argument prototype would still apply. */
11473 char lgetfilecon ();
11477 return lgetfilecon ();
11482 if ac_fn_c_try_link
"$LINENO"; then :
11483 ac_cv_lib_selinux_lgetfilecon
=yes
11485 ac_cv_lib_selinux_lgetfilecon
=no
11487 rm -f core conftest.err conftest.
$ac_objext \
11488 conftest
$ac_exeext conftest.
$ac_ext
11489 LIBS
=$ac_check_lib_save_LIBS
11491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
11492 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
11493 if test "x$ac_cv_lib_selinux_lgetfilecon" = x
""yes; then :
11494 HAVE_LIBSELINUX
=yes
11499 if test "$HAVE_LIBSELINUX" = yes; then
11501 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
11503 LIBSELINUX_LIBS
=-lselinux
11509 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY
=no
11510 if test "${with_gnutls}" = "yes" ; then
11514 if test "$PKG_CONFIG" = "no" ; then
11517 PKG_CONFIG_MIN_VERSION
=0.9.0
11518 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.6.6" >&5
11520 $as_echo_n "checking for gnutls >= 2.6.6... " >&6; }
11522 if "$PKG_CONFIG" --exists "gnutls >= 2.6.6" 2>&5 &&
11523 LIBGNUTLS_CFLAGS
=`"$PKG_CONFIG" --cflags "gnutls >= 2.6.6" 2>&5` &&
11524 LIBGNUTLS_LIBS
=`"$PKG_CONFIG" --libs "gnutls >= 2.6.6" 2>&5`; then
11531 LIBGNUTLS_CFLAGS
=`$as_echo "$LIBGNUTLS_CFLAGS" | sed -e "$edit_cflags"`
11532 LIBGNUTLS_LIBS
=`$as_echo "$LIBGNUTLS_LIBS" | sed -e 's,///*,/,g'`
11533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBGNUTLS_CFLAGS' LIBS='$LIBGNUTLS_LIBS'" >&5
11534 $as_echo "yes CFLAGS='$LIBGNUTLS_CFLAGS' LIBS='$LIBGNUTLS_LIBS'" >&6; }
11537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11538 $as_echo "no" >&6; }
11539 LIBGNUTLS_CFLAGS
=""
11541 ## If we have a custom action on failure, don't print errors, but
11542 ## do set a variable so people can do so. Do it in a subshell
11543 ## to capture any diagnostics in invoking pkg-config.
11544 LIBGNUTLS_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "gnutls >= 2.6.6") 2>&1`
11551 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11552 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11556 if test $succeeded = yes; then
11562 if test "${HAVE_GNUTLS}" = "yes"; then
11564 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
11568 CFLAGS
="$CFLAGS $LIBGNUTLS_CFLAGS"
11569 LIBS
="$LIBGNUTLS_LIBS $LIBS"
11570 for ac_func
in gnutls_certificate_set_verify_function
11572 ac_fn_c_check_func
"$LINENO" "gnutls_certificate_set_verify_function" "ac_cv_func_gnutls_certificate_set_verify_function"
11573 if test "x$ac_cv_func_gnutls_certificate_set_verify_function" = x
""yes; then :
11574 cat >>confdefs.h
<<_ACEOF
11575 #define HAVE_GNUTLS_CERTIFICATE_SET_VERIFY_FUNCTION 1
11577 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY
=yes
11582 if test "${HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY}" = "yes"; then
11584 $as_echo "#define HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY 1" >>confdefs.h
11592 if test "${with_inotify}" = "yes"; then
11593 for ac_header
in sys
/inotify.h
11595 ac_fn_c_check_header_mongrel
"$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
11596 if test "x$ac_cv_header_sys_inotify_h" = x
""yes; then :
11597 cat >>confdefs.h
<<_ACEOF
11598 #define HAVE_SYS_INOTIFY_H 1
11605 if test "$ac_cv_header_sys_inotify_h" = yes ; then
11606 ac_fn_c_check_func
"$LINENO" "inotify_init1" "ac_cv_func_inotify_init1"
11607 if test "x$ac_cv_func_inotify_init1" = x
""yes; then :
11613 if test "$ac_cv_func_inotify_init1" = yes; then
11615 $as_echo "#define HAVE_INOTIFY 1" >>confdefs.h
11621 if test "${with_acl}" = "yes"; then
11622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_set_file in -lacl" >&5
11623 $as_echo_n "checking for acl_set_file in -lacl... " >&6; }
11624 if test "${ac_cv_lib_acl_acl_set_file+set}" = set; then :
11625 $as_echo_n "(cached) " >&6
11627 ac_check_lib_save_LIBS
=$LIBS
11629 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11630 /* end confdefs.h. */
11632 /* Override any GCC internal prototype to avoid an error.
11633 Use char because int might match the return type of a GCC
11634 builtin and then its argument prototype would still apply. */
11638 char acl_set_file ();
11642 return acl_set_file ();
11647 if ac_fn_c_try_link
"$LINENO"; then :
11648 ac_cv_lib_acl_acl_set_file
=yes
11650 ac_cv_lib_acl_acl_set_file
=no
11652 rm -f core conftest.err conftest.
$ac_objext \
11653 conftest
$ac_exeext conftest.
$ac_ext
11654 LIBS
=$ac_check_lib_save_LIBS
11656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_acl_acl_set_file" >&5
11657 $as_echo "$ac_cv_lib_acl_acl_set_file" >&6; }
11658 if test "x$ac_cv_lib_acl_acl_set_file" = x
""yes; then :
11664 if test "$HAVE_POSIX_ACL" = yes; then
11666 $as_echo "#define HAVE_POSIX_ACL 1" >>confdefs.h
11670 ac_fn_c_check_func
"$LINENO" "acl_set_file" "ac_cv_func_acl_set_file"
11671 if test "x$ac_cv_func_acl_set_file" = x
""yes; then :
11677 if test "$HAVE_POSIX_ACL" = yes; then
11679 $as_echo "#define HAVE_POSIX_ACL 1" >>confdefs.h
11688 if test x
"${USE_X_TOOLKIT}" = xmaybe ||
test x
"${USE_X_TOOLKIT}" = xLUCID
; then
11689 if test "$with_xaw3d" != no
; then
11690 if test "${emacs_cv_xaw3d+set}" = set; then :
11691 $as_echo_n "(cached) " >&6
11693 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11694 /* end confdefs.h. */
11696 #include <X11/Intrinsic.h>
11697 #include <X11/Xaw3d/Simple.h>
11706 if ac_fn_c_try_link
"$LINENO"; then :
11707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XawScrollbarSetThumb in -lXaw3d" >&5
11708 $as_echo_n "checking for XawScrollbarSetThumb in -lXaw3d... " >&6; }
11709 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then :
11710 $as_echo_n "(cached) " >&6
11712 ac_check_lib_save_LIBS
=$LIBS
11713 LIBS
="-lXaw3d $LIBS"
11714 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11715 /* end confdefs.h. */
11717 /* Override any GCC internal prototype to avoid an error.
11718 Use char because int might match the return type of a GCC
11719 builtin and then its argument prototype would still apply. */
11723 char XawScrollbarSetThumb ();
11727 return XawScrollbarSetThumb ();
11732 if ac_fn_c_try_link
"$LINENO"; then :
11733 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=yes
11735 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=no
11737 rm -f core conftest.err conftest.
$ac_objext \
11738 conftest
$ac_exeext conftest.
$ac_ext
11739 LIBS
=$ac_check_lib_save_LIBS
11741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
11742 $as_echo "$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
11743 if test "x$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" = x
""yes; then :
11752 rm -f core conftest.err conftest.
$ac_objext \
11753 conftest
$ac_exeext conftest.
$ac_ext
11759 if test $emacs_cv_xaw3d = yes; then
11760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
11761 $as_echo_n "checking for xaw3d... " >&6; }
11762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
11763 $as_echo "yes; using Lucid toolkit" >&6; }
11764 USE_X_TOOLKIT
=LUCID
11768 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
11771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
11772 $as_echo_n "checking for xaw3d... " >&6; }
11773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11774 $as_echo "no" >&6; }
11775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
11776 $as_echo_n "checking for libXaw... " >&6; }
11777 if test "${emacs_cv_xaw+set}" = set; then :
11778 $as_echo_n "(cached) " >&6
11780 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11781 /* end confdefs.h. */
11783 #include <X11/Intrinsic.h>
11784 #include <X11/Xaw/Simple.h>
11793 if ac_fn_c_try_link
"$LINENO"; then :
11798 rm -f core conftest.err conftest.
$ac_objext \
11799 conftest
$ac_exeext conftest.
$ac_ext
11802 if test $emacs_cv_xaw = yes; then
11803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
11804 $as_echo "yes; using Lucid toolkit" >&6; }
11805 USE_X_TOOLKIT
=LUCID
11807 elif test x
"${USE_X_TOOLKIT}" = xLUCID
; then
11808 as_fn_error
"Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
11810 as_fn_error
"No X toolkit could be found.
11811 If you are sure you want Emacs compiled without an X toolkit, pass
11812 --with-x-toolkit=no
11813 to configure. Otherwise, install the development libraries for the toolkit
11814 that you want to use (e.g. Gtk+) and re-run configure." "$LINENO" 5
11819 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
11822 if test "${USE_X_TOOLKIT}" != "none"; then
11823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
11824 $as_echo_n "checking X11 toolkit version... " >&6; }
11825 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then :
11826 $as_echo_n "(cached) " >&6
11828 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11829 /* end confdefs.h. */
11830 #include <X11/Intrinsic.h>
11834 #if XtSpecificationRelease < 6
11842 if ac_fn_c_try_link
"$LINENO"; then :
11843 emacs_cv_x11_toolkit_version_6
=yes
11845 emacs_cv_x11_toolkit_version_6
=no
11847 rm -f core conftest.err conftest.
$ac_objext \
11848 conftest
$ac_exeext conftest.
$ac_ext
11851 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
11852 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
11854 $as_echo "6 or newer" >&6; }
11856 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
11858 LIBXTR6
="-lSM -lICE"
11860 ## Use libw.a along with X11R6 Xt.
11861 unixware
) LIBXTR6
="$LIBXTR6 -lw" ;;
11864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
11865 $as_echo "before 6" >&6; }
11869 if test x
$HAVE_X11XTR6 = xyes
; then
11870 LIBS
="-lXt -lSM -lICE $LIBS"
11874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
11875 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
11876 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then :
11877 $as_echo_n "(cached) " >&6
11879 ac_check_lib_save_LIBS
=$LIBS
11881 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11882 /* end confdefs.h. */
11884 /* Override any GCC internal prototype to avoid an error.
11885 Use char because int might match the return type of a GCC
11886 builtin and then its argument prototype would still apply. */
11890 char XmuConvertStandardSelection ();
11894 return XmuConvertStandardSelection ();
11899 if ac_fn_c_try_link
"$LINENO"; then :
11900 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
11902 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
11904 rm -f core conftest.err conftest.
$ac_objext \
11905 conftest
$ac_exeext conftest.
$ac_ext
11906 LIBS
=$ac_check_lib_save_LIBS
11908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
11909 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
11910 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x
""yes; then :
11911 cat >>confdefs.h
<<_ACEOF
11912 #define HAVE_LIBXMU 1
11919 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
11925 ## These systems don't supply Xmu.
11927 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU
=
11932 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
11933 if test "${HAVE_X11}" = "yes"; then
11934 if test "${USE_X_TOOLKIT}" != "none"; then
11935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
11936 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
11937 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
11938 $as_echo_n "(cached) " >&6
11940 ac_check_lib_save_LIBS
=$LIBS
11941 LIBS
="-lXext $LIBS"
11942 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11943 /* end confdefs.h. */
11945 /* Override any GCC internal prototype to avoid an error.
11946 Use char because int might match the return type of a GCC
11947 builtin and then its argument prototype would still apply. */
11951 char XShapeQueryExtension ();
11955 return XShapeQueryExtension ();
11960 if ac_fn_c_try_link
"$LINENO"; then :
11961 ac_cv_lib_Xext_XShapeQueryExtension
=yes
11963 ac_cv_lib_Xext_XShapeQueryExtension
=no
11965 rm -f core conftest.err conftest.
$ac_objext \
11966 conftest
$ac_exeext conftest.
$ac_ext
11967 LIBS
=$ac_check_lib_save_LIBS
11969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
11970 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
11971 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x
""yes; then :
11972 cat >>confdefs.h
<<_ACEOF
11973 #define HAVE_LIBXEXT 1
11976 LIBS
="-lXext $LIBS"
11984 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11985 # OpenMotif may be installed in such a way on some GNU/Linux systems.
11986 if test -d /usr
/include
/openmotif
; then
11987 CPPFLAGS
="-I/usr/include/openmotif $CPPFLAGS"
11988 emacs_cv_openmotif
=yes
11989 case "$canonical" in
11990 x86_64-
*-linux-gnu* | powerpc64-
*-linux-gnu* | sparc64-
*-linux-gnu*)
11991 test -d /usr
/lib64
/openmotif
&& LDFLAGS
="-L/usr/lib64/openmotif $LDFLAGS"
11994 test -d /usr
/lib
/openmotif
&& LDFLAGS
="-L/usr/lib/openmotif $LDFLAGS"
11997 emacs_cv_openmotif
=no
11999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for (Open)Motif version 2.1" >&5
12000 $as_echo_n "checking for (Open)Motif version 2.1... " >&6; }
12001 if test "${emacs_cv_motif_version_2_1+set}" = set; then :
12002 $as_echo_n "(cached) " >&6
12004 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12005 /* end confdefs.h. */
12010 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12013 Motif version prior to 2.1.
12019 if ac_fn_c_try_compile
"$LINENO"; then :
12020 emacs_cv_motif_version_2_1
=yes
12022 emacs_cv_motif_version_2_1
=no
12024 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
12027 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
12028 if test $emacs_cv_motif_version_2_1 = yes; then
12029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
12030 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
12031 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then :
12032 $as_echo_n "(cached) " >&6
12034 ac_check_lib_save_LIBS
=$LIBS
12036 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12037 /* end confdefs.h. */
12039 /* Override any GCC internal prototype to avoid an error.
12040 Use char because int might match the return type of a GCC
12041 builtin and then its argument prototype would still apply. */
12045 char XpCreateContext ();
12049 return XpCreateContext ();
12054 if ac_fn_c_try_link
"$LINENO"; then :
12055 ac_cv_lib_Xp_XpCreateContext
=yes
12057 ac_cv_lib_Xp_XpCreateContext
=no
12059 rm -f core conftest.err conftest.
$ac_objext \
12060 conftest
$ac_exeext conftest.
$ac_ext
12061 LIBS
=$ac_check_lib_save_LIBS
12063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12064 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
12065 if test "x$ac_cv_lib_Xp_XpCreateContext" = x
""yes; then :
12069 if test x
$emacs_cv_openmotif = xyes
; then
12070 REAL_CPPFLAGS
="-I/usr/include/openmotif $REAL_CPPFLAGS"
12073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
12074 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
12075 if test "${emacs_cv_lesstif+set}" = set; then :
12076 $as_echo_n "(cached) " >&6
12078 # We put this in CFLAGS temporarily to precede other -I options
12079 # that might be in CFLAGS temporarily.
12080 # We put this in CPPFLAGS where it precedes the other -I options.
12081 OLD_CPPFLAGS
=$CPPFLAGS
12083 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12084 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12085 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12086 /* end confdefs.h. */
12087 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12096 if ac_fn_c_try_compile
"$LINENO"; then :
12097 emacs_cv_lesstif
=yes
12099 emacs_cv_lesstif
=no
12101 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
12104 $as_echo "$emacs_cv_lesstif" >&6; }
12105 if test $emacs_cv_lesstif = yes; then
12106 # Make sure this -I option remains in CPPFLAGS after it is set
12107 # back to REAL_CPPFLAGS.
12108 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12109 # have those other -I options anyway. Ultimately, having this
12110 # directory ultimately in CPPFLAGS will be enough.
12111 REAL_CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12112 LDFLAGS
="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12115 CPPFLAGS
=$OLD_CPPFLAGS
12118 ac_fn_c_check_header_mongrel
"$LINENO" "Xm/BulletinB.h" "ac_cv_header_Xm_BulletinB_h" "$ac_includes_default"
12119 if test "x$ac_cv_header_Xm_BulletinB_h" = x
""yes; then :
12122 as_fn_error
"Motif toolkit requested but requirements not found." "$LINENO" 5
12129 USE_TOOLKIT_SCROLL_BARS
=no
12130 if test "${with_toolkit_scroll_bars}" != "no"; then
12131 if test "${USE_X_TOOLKIT}" != "none"; then
12132 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12133 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12136 USE_TOOLKIT_SCROLL_BARS
=yes
12137 elif test "${HAVE_XAW3D}" = "yes" ||
test "${USE_X_TOOLKIT}" = "LUCID"; then
12138 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12140 USE_TOOLKIT_SCROLL_BARS
=yes
12142 elif test "${HAVE_GTK}" = "yes"; then
12143 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12145 USE_TOOLKIT_SCROLL_BARS
=yes
12146 elif test "${HAVE_NS}" = "yes"; then
12147 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12149 USE_TOOLKIT_SCROLL_BARS
=yes
12150 elif test "${HAVE_W32}" = "yes"; then
12151 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12153 USE_TOOLKIT_SCROLL_BARS
=yes
12157 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12158 /* end confdefs.h. */
12160 #include <X11/Xlib.h>
12161 #include <X11/Xresource.h>
12170 if ac_fn_c_try_compile
"$LINENO"; then :
12173 $as_echo "#define HAVE_XIM 1" >>confdefs.h
12178 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12181 if test "${with_xim}" != "no"; then
12183 $as_echo "#define USE_XIM 1" >>confdefs.h
12188 if test "${HAVE_XIM}" != "no"; then
12189 late_CFLAGS
=$CFLAGS
12190 if test "$GCC" = yes; then
12191 CFLAGS
="$CFLAGS --pedantic-errors"
12193 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12194 /* end confdefs.h. */
12196 #include <X11/Xlib.h>
12197 #include <X11/Xresource.h>
12206 XPointer *client_data;
12208 /* If we're not using GCC, it's probably not XFree86, and this is
12209 probably right, but we can't use something like --pedantic-errors. */
12210 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12211 char*, XIMProc, XPointer*);
12213 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12219 if ac_fn_c_try_compile
"$LINENO"; then :
12220 emacs_cv_arg6_star
=yes
12222 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12223 if test "$emacs_cv_arg6_star" = yes; then
12224 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
12227 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
12230 CFLAGS
=$late_CFLAGS
12233 ### Start of font-backend (under any platform) section.
12234 # (nothing here yet -- this is a placeholder)
12235 ### End of font-backend (under any platform) section.
12237 ### Start of font-backend (under X11) section.
12238 if test "${HAVE_X11}" = "yes"; then
12242 if test "$PKG_CONFIG" = "no" ; then
12245 PKG_CONFIG_MIN_VERSION
=0.9.0
12246 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
12248 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
12250 if "$PKG_CONFIG" --exists "fontconfig >= 2.2.0" 2>&5 &&
12251 FONTCONFIG_CFLAGS
=`"$PKG_CONFIG" --cflags "fontconfig >= 2.2.0" 2>&5` &&
12252 FONTCONFIG_LIBS
=`"$PKG_CONFIG" --libs "fontconfig >= 2.2.0" 2>&5`; then
12259 FONTCONFIG_CFLAGS
=`$as_echo "$FONTCONFIG_CFLAGS" | sed -e "$edit_cflags"`
12260 FONTCONFIG_LIBS
=`$as_echo "$FONTCONFIG_LIBS" | sed -e 's,///*,/,g'`
12261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$FONTCONFIG_CFLAGS' LIBS='$FONTCONFIG_LIBS'" >&5
12262 $as_echo "yes CFLAGS='$FONTCONFIG_CFLAGS' LIBS='$FONTCONFIG_LIBS'" >&6; }
12265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12266 $as_echo "no" >&6; }
12267 FONTCONFIG_CFLAGS
=""
12269 ## If we have a custom action on failure, don't print errors, but
12270 ## do set a variable so people can do so. Do it in a subshell
12271 ## to capture any diagnostics in invoking pkg-config.
12272 FONTCONFIG_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "fontconfig >= 2.2.0") 2>&1`
12279 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12280 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12284 if test $succeeded = yes; then
12291 ## Use -lXft if available, unless `--with-xft=no'.
12293 if test "${HAVE_FC}" = "no" ||
test "x${with_x}" = "xno"; then
12296 if test "x${with_xft}" != "xno"; then
12301 if test "$PKG_CONFIG" = "no" ; then
12304 PKG_CONFIG_MIN_VERSION
=0.9.0
12305 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
12307 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
12309 if "$PKG_CONFIG" --exists "xft >= 0.13.0" 2>&5 &&
12310 XFT_CFLAGS
=`"$PKG_CONFIG" --cflags "xft >= 0.13.0" 2>&5` &&
12311 XFT_LIBS
=`"$PKG_CONFIG" --libs "xft >= 0.13.0" 2>&5`; then
12318 XFT_CFLAGS
=`$as_echo "$XFT_CFLAGS" | sed -e "$edit_cflags"`
12319 XFT_LIBS
=`$as_echo "$XFT_LIBS" | sed -e 's,///*,/,g'`
12320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$XFT_CFLAGS' LIBS='$XFT_LIBS'" >&5
12321 $as_echo "yes CFLAGS='$XFT_CFLAGS' LIBS='$XFT_LIBS'" >&6; }
12324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12325 $as_echo "no" >&6; }
12328 ## If we have a custom action on failure, don't print errors, but
12329 ## do set a variable so people can do so. Do it in a subshell
12330 ## to capture any diagnostics in invoking pkg-config.
12331 XFT_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "xft >= 0.13.0") 2>&1`
12338 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12339 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12343 if test $succeeded = yes; then
12349 ## Because xftfont.c uses XRenderQueryExtension, we also
12350 ## need to link to -lXrender.
12352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
12353 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
12354 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
12355 $as_echo_n "(cached) " >&6
12357 ac_check_lib_save_LIBS
=$LIBS
12358 LIBS
="-lXrender $LIBS"
12359 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12360 /* end confdefs.h. */
12362 /* Override any GCC internal prototype to avoid an error.
12363 Use char because int might match the return type of a GCC
12364 builtin and then its argument prototype would still apply. */
12368 char XRenderQueryExtension ();
12372 return XRenderQueryExtension ();
12377 if ac_fn_c_try_link
"$LINENO"; then :
12378 ac_cv_lib_Xrender_XRenderQueryExtension
=yes
12380 ac_cv_lib_Xrender_XRenderQueryExtension
=no
12382 rm -f core conftest.err conftest.
$ac_objext \
12383 conftest
$ac_exeext conftest.
$ac_ext
12384 LIBS
=$ac_check_lib_save_LIBS
12386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
12387 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
12388 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x
""yes; then :
12392 if test "$HAVE_XFT" != no
&& test "$HAVE_XRENDER" != no
; then
12393 OLD_CPPFLAGS
="$CPPFLAGS"
12394 OLD_CFLAGS
="$CFLAGS"
12396 CPPFLAGS
="$CPPFLAGS $XFT_CFLAGS"
12397 CFLAGS
="$CFLAGS $XFT_CFLAGS"
12398 XFT_LIBS
="-lXrender $XFT_LIBS"
12399 LIBS
="$XFT_LIBS $LIBS"
12400 ac_fn_c_check_header_mongrel
"$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
12401 if test "x$ac_cv_header_X11_Xft_Xft_h" = x
""yes; then :
12402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
12403 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
12404 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then :
12405 $as_echo_n "(cached) " >&6
12407 ac_check_lib_save_LIBS
=$LIBS
12408 LIBS
="-lXft $XFT_LIBS $LIBS"
12409 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12410 /* end confdefs.h. */
12412 /* Override any GCC internal prototype to avoid an error.
12413 Use char because int might match the return type of a GCC
12414 builtin and then its argument prototype would still apply. */
12418 char XftFontOpen ();
12422 return XftFontOpen ();
12427 if ac_fn_c_try_link
"$LINENO"; then :
12428 ac_cv_lib_Xft_XftFontOpen
=yes
12430 ac_cv_lib_Xft_XftFontOpen
=no
12432 rm -f core conftest.err conftest.
$ac_objext \
12433 conftest
$ac_exeext conftest.
$ac_ext
12434 LIBS
=$ac_check_lib_save_LIBS
12436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
12437 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
12438 if test "x$ac_cv_lib_Xft_XftFontOpen" = x
""yes; then :
12446 if test "${HAVE_XFT}" = "yes"; then
12448 $as_echo "#define HAVE_XFT 1" >>confdefs.h
12451 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $XFT_CFLAGS"
12453 CPPFLAGS
="$OLD_CPPFLAGS"
12454 CFLAGS
="$OLD_CFLAGS"
12456 fi # "${HAVE_XFT}" = "yes"
12457 fi # "$HAVE_XFT" != no
12458 fi # "x${with_xft}" != "xno"
12460 ## We used to allow building with FreeType and without Xft.
12461 ## However, the ftx font backend driver is not in good shape.
12462 if test "$HAVE_XFT" != "yes"; then
12469 if test "$PKG_CONFIG" = "no" ; then
12472 PKG_CONFIG_MIN_VERSION
=0.9.0
12473 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype2" >&5
12475 $as_echo_n "checking for freetype2... " >&6; }
12477 if "$PKG_CONFIG" --exists "freetype2" 2>&5 &&
12478 FREETYPE_CFLAGS
=`"$PKG_CONFIG" --cflags "freetype2" 2>&5` &&
12479 FREETYPE_LIBS
=`"$PKG_CONFIG" --libs "freetype2" 2>&5`; then
12486 FREETYPE_CFLAGS
=`$as_echo "$FREETYPE_CFLAGS" | sed -e "$edit_cflags"`
12487 FREETYPE_LIBS
=`$as_echo "$FREETYPE_LIBS" | sed -e 's,///*,/,g'`
12488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$FREETYPE_CFLAGS' LIBS='$FREETYPE_LIBS'" >&5
12489 $as_echo "yes CFLAGS='$FREETYPE_CFLAGS' LIBS='$FREETYPE_LIBS'" >&6; }
12492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12493 $as_echo "no" >&6; }
12496 ## If we have a custom action on failure, don't print errors, but
12497 ## do set a variable so people can do so. Do it in a subshell
12498 ## to capture any diagnostics in invoking pkg-config.
12499 FREETYPE_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "freetype2") 2>&1`
12506 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12507 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12511 if test $succeeded = yes; then
12518 test "$HAVE_FREETYPE" = "no" && as_fn_error
"libxft requires libfreetype" "$LINENO" 5
12522 if test "${HAVE_FREETYPE}" = "yes"; then
12524 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
12526 if test "${with_libotf}" != "no"; then
12530 if test "$PKG_CONFIG" = "no" ; then
12533 PKG_CONFIG_MIN_VERSION
=0.9.0
12534 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
12536 $as_echo_n "checking for libotf... " >&6; }
12538 if "$PKG_CONFIG" --exists "libotf" 2>&5 &&
12539 LIBOTF_CFLAGS
=`"$PKG_CONFIG" --cflags "libotf" 2>&5` &&
12540 LIBOTF_LIBS
=`"$PKG_CONFIG" --libs "libotf" 2>&5`; then
12547 LIBOTF_CFLAGS
=`$as_echo "$LIBOTF_CFLAGS" | sed -e "$edit_cflags"`
12548 LIBOTF_LIBS
=`$as_echo "$LIBOTF_LIBS" | sed -e 's,///*,/,g'`
12549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBOTF_CFLAGS' LIBS='$LIBOTF_LIBS'" >&5
12550 $as_echo "yes CFLAGS='$LIBOTF_CFLAGS' LIBS='$LIBOTF_LIBS'" >&6; }
12553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12554 $as_echo "no" >&6; }
12557 ## If we have a custom action on failure, don't print errors, but
12558 ## do set a variable so people can do so. Do it in a subshell
12559 ## to capture any diagnostics in invoking pkg-config.
12560 LIBOTF_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "libotf") 2>&1`
12567 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12568 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12572 if test $succeeded = yes; then
12578 if test "$HAVE_LIBOTF" = "yes"; then
12580 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
12582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
12583 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
12584 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then :
12585 $as_echo_n "(cached) " >&6
12587 ac_check_lib_save_LIBS
=$LIBS
12589 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12590 /* end confdefs.h. */
12592 /* Override any GCC internal prototype to avoid an error.
12593 Use char because int might match the return type of a GCC
12594 builtin and then its argument prototype would still apply. */
12598 char OTF_get_variation_glyphs ();
12602 return OTF_get_variation_glyphs ();
12607 if ac_fn_c_try_link
"$LINENO"; then :
12608 ac_cv_lib_otf_OTF_get_variation_glyphs
=yes
12610 ac_cv_lib_otf_OTF_get_variation_glyphs
=no
12612 rm -f core conftest.err conftest.
$ac_objext \
12613 conftest
$ac_exeext conftest.
$ac_ext
12614 LIBS
=$ac_check_lib_save_LIBS
12616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
12617 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
12618 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x
""yes; then :
12619 HAVE_OTF_GET_VARIATION_GLYPHS
=yes
12621 HAVE_OTF_GET_VARIATION_GLYPHS
=no
12624 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
12626 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
12634 if test "${HAVE_LIBOTF}" = yes; then
12635 if test "${with_m17n_flt}" != "no"; then
12639 if test "$PKG_CONFIG" = "no" ; then
12642 PKG_CONFIG_MIN_VERSION
=0.9.0
12643 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
12645 $as_echo_n "checking for m17n-flt... " >&6; }
12647 if "$PKG_CONFIG" --exists "m17n-flt" 2>&5 &&
12648 M17N_FLT_CFLAGS
=`"$PKG_CONFIG" --cflags "m17n-flt" 2>&5` &&
12649 M17N_FLT_LIBS
=`"$PKG_CONFIG" --libs "m17n-flt" 2>&5`; then
12656 M17N_FLT_CFLAGS
=`$as_echo "$M17N_FLT_CFLAGS" | sed -e "$edit_cflags"`
12657 M17N_FLT_LIBS
=`$as_echo "$M17N_FLT_LIBS" | sed -e 's,///*,/,g'`
12658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$M17N_FLT_CFLAGS' LIBS='$M17N_FLT_LIBS'" >&5
12659 $as_echo "yes CFLAGS='$M17N_FLT_CFLAGS' LIBS='$M17N_FLT_LIBS'" >&6; }
12662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12663 $as_echo "no" >&6; }
12666 ## If we have a custom action on failure, don't print errors, but
12667 ## do set a variable so people can do so. Do it in a subshell
12668 ## to capture any diagnostics in invoking pkg-config.
12669 M17N_FLT_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "m17n-flt") 2>&1`
12676 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12677 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12681 if test $succeeded = yes; then
12687 if test "$HAVE_M17N_FLT" = "yes"; then
12689 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
12701 ### End of font-backend (under X11) section.
12712 ### Use -lXpm if available, unless `--with-xpm=no'.
12716 if test "${HAVE_W32}" = "yes"; then
12717 if test "${with_xpm}" != "no"; then
12718 SAVE_CPPFLAGS
="$CPPFLAGS"
12719 SAVE_LDFLAGS
="$LDFLAGS"
12720 CPPFLAGS
="$CPPFLAGS -I/usr/include/noX"
12721 LDFLAGS
="$LDFLAGS -L/usr/lib/noX"
12722 ac_fn_c_check_header_mongrel
"$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
12723 if test "x$ac_cv_header_X11_xpm_h" = x
""yes; then :
12724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToImage in -lXpm" >&5
12725 $as_echo_n "checking for XpmReadFileToImage in -lXpm... " >&6; }
12726 if test "${ac_cv_lib_Xpm_XpmReadFileToImage+set}" = set; then :
12727 $as_echo_n "(cached) " >&6
12729 ac_check_lib_save_LIBS
=$LIBS
12731 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12732 /* end confdefs.h. */
12734 /* Override any GCC internal prototype to avoid an error.
12735 Use char because int might match the return type of a GCC
12736 builtin and then its argument prototype would still apply. */
12740 char XpmReadFileToImage ();
12744 return XpmReadFileToImage ();
12749 if ac_fn_c_try_link
"$LINENO"; then :
12750 ac_cv_lib_Xpm_XpmReadFileToImage
=yes
12752 ac_cv_lib_Xpm_XpmReadFileToImage
=no
12754 rm -f core conftest.err conftest.
$ac_objext \
12755 conftest
$ac_exeext conftest.
$ac_ext
12756 LIBS
=$ac_check_lib_save_LIBS
12758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToImage" >&5
12759 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToImage" >&6; }
12760 if test "x$ac_cv_lib_Xpm_XpmReadFileToImage" = x
""yes; then :
12767 if test "${HAVE_XPM}" = "yes"; then
12768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
12769 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
12770 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12771 /* end confdefs.h. */
12772 #include "X11/xpm.h"
12773 #ifndef XpmReturnAllocPixels
12774 no_return_alloc_pixels
12778 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12779 $EGREP "no_return_alloc_pixels" >/dev
/null
2>&1; then :
12787 if test "${HAVE_XPM}" = "yes"; then
12788 REAL_CPPFLAGS
="$REAL_CPPFLAGS -I/usr/include/noX"
12789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12790 $as_echo "yes" >&6; }
12792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12793 $as_echo "no" >&6; }
12794 CPPFLAGS
="$SAVE_CPPFLAGS"
12795 LDFLAGS
="$SAVE_LDFLAGS"
12800 if test "${HAVE_XPM}" = "yes"; then
12802 $as_echo "#define HAVE_XPM 1" >>confdefs.h
12808 if test "${HAVE_X11}" = "yes"; then
12809 if test "${with_xpm}" != "no"; then
12810 ac_fn_c_check_header_mongrel
"$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
12811 if test "x$ac_cv_header_X11_xpm_h" = x
""yes; then :
12812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
12813 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
12814 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then :
12815 $as_echo_n "(cached) " >&6
12817 ac_check_lib_save_LIBS
=$LIBS
12818 LIBS
="-lXpm -lX11 $LIBS"
12819 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12820 /* end confdefs.h. */
12822 /* Override any GCC internal prototype to avoid an error.
12823 Use char because int might match the return type of a GCC
12824 builtin and then its argument prototype would still apply. */
12828 char XpmReadFileToPixmap ();
12832 return XpmReadFileToPixmap ();
12837 if ac_fn_c_try_link
"$LINENO"; then :
12838 ac_cv_lib_Xpm_XpmReadFileToPixmap
=yes
12840 ac_cv_lib_Xpm_XpmReadFileToPixmap
=no
12842 rm -f core conftest.err conftest.
$ac_objext \
12843 conftest
$ac_exeext conftest.
$ac_ext
12844 LIBS
=$ac_check_lib_save_LIBS
12846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
12847 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
12848 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x
""yes; then :
12855 if test "${HAVE_XPM}" = "yes"; then
12856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
12857 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
12858 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12859 /* end confdefs.h. */
12860 #include "X11/xpm.h"
12861 #ifndef XpmReturnAllocPixels
12862 no_return_alloc_pixels
12866 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12867 $EGREP "no_return_alloc_pixels" >/dev
/null
2>&1; then :
12875 if test "${HAVE_XPM}" = "yes"; then
12876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12877 $as_echo "yes" >&6; }
12879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12880 $as_echo "no" >&6; }
12885 if test "${HAVE_XPM}" = "yes"; then
12887 $as_echo "#define HAVE_XPM 1" >>confdefs.h
12895 ### Use -ljpeg if available, unless `--with-jpeg=no'.
12898 if test "${HAVE_X11}" = "yes" ||
test "${HAVE_W32}" = "yes"; then
12899 if test "${with_jpeg}" != "no"; then
12900 ac_fn_c_check_header_mongrel
"$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
12901 if test "x$ac_cv_header_jerror_h" = x
""yes; then :
12902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
12903 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
12904 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then :
12905 $as_echo_n "(cached) " >&6
12907 ac_check_lib_save_LIBS
=$LIBS
12908 LIBS
="-ljpeg $LIBS"
12909 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12910 /* end confdefs.h. */
12912 /* Override any GCC internal prototype to avoid an error.
12913 Use char because int might match the return type of a GCC
12914 builtin and then its argument prototype would still apply. */
12918 char jpeg_destroy_compress ();
12922 return jpeg_destroy_compress ();
12927 if ac_fn_c_try_link
"$LINENO"; then :
12928 ac_cv_lib_jpeg_jpeg_destroy_compress
=yes
12930 ac_cv_lib_jpeg_jpeg_destroy_compress
=no
12932 rm -f core conftest.err conftest.
$ac_objext \
12933 conftest
$ac_exeext conftest.
$ac_ext
12934 LIBS
=$ac_check_lib_save_LIBS
12936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
12937 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
12938 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x
""yes; then :
12947 if test "${HAVE_JPEG}" = "yes"; then
12948 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
12950 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12951 /* end confdefs.h. */
12952 #include <jpeglib.h>
12953 version=JPEG_LIB_VERSION
12956 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12957 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev
/null
2>&1; then :
12958 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
12961 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
12962 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
12968 if test "${HAVE_JPEG}" = "yes"; then
12974 ### Use -lpng if available, unless `--with-png=no'.
12977 if test "${HAVE_X11}" = "yes" ||
test "${HAVE_W32}" = "yes"; then
12978 if test "${with_png}" != "no"; then
12979 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
12980 # in /usr/include/libpng.
12981 for ac_header
in png.h libpng
/png.h
12983 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12984 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12985 eval as_val
=\$
$as_ac_Header
12986 if test "x$as_val" = x
""yes; then :
12987 cat >>confdefs.h
<<_ACEOF
12988 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12995 if test "$ac_cv_header_png_h" = yes ||
test "$ac_cv_header_libpng_png_h" = yes ; then
12996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
12997 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
12998 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then :
12999 $as_echo_n "(cached) " >&6
13001 ac_check_lib_save_LIBS
=$LIBS
13002 LIBS
="-lpng -lz -lm $LIBS"
13003 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13004 /* end confdefs.h. */
13006 /* Override any GCC internal prototype to avoid an error.
13007 Use char because int might match the return type of a GCC
13008 builtin and then its argument prototype would still apply. */
13012 char png_get_channels ();
13016 return png_get_channels ();
13021 if ac_fn_c_try_link
"$LINENO"; then :
13022 ac_cv_lib_png_png_get_channels
=yes
13024 ac_cv_lib_png_png_get_channels
=no
13026 rm -f core conftest.err conftest.
$ac_objext \
13027 conftest
$ac_exeext conftest.
$ac_ext
13028 LIBS
=$ac_check_lib_save_LIBS
13030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
13031 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
13032 if test "x$ac_cv_lib_png_png_get_channels" = x
""yes; then :
13039 if test "${HAVE_PNG}" = "yes"; then
13041 $as_echo "#define HAVE_PNG 1" >>confdefs.h
13043 LIBPNG
="-lpng -lz -lm"
13045 ac_fn_c_check_decl
"$LINENO" "png_longjmp" "ac_cv_have_decl_png_longjmp" "#ifdef HAVE_LIBPNG_PNG_H
13046 # include <libpng/png.h>
13052 if test "x$ac_cv_have_decl_png_longjmp" = x
""yes; then :
13056 $as_echo "#define PNG_DEPSTRUCT /**/" >>confdefs.h
13064 ### Use -ltiff if available, unless `--with-tiff=no'.
13067 if test "${HAVE_X11}" = "yes" ||
test "${HAVE_W32}" = "yes"; then
13068 if test "${with_tiff}" != "no"; then
13069 ac_fn_c_check_header_mongrel
"$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
13070 if test "x$ac_cv_header_tiffio_h" = x
""yes; then :
13072 # At least one tiff package requires the jpeg library.
13073 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
13074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
13075 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
13076 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then :
13077 $as_echo_n "(cached) " >&6
13079 ac_check_lib_save_LIBS
=$LIBS
13080 LIBS
="-ltiff $tifflibs $LIBS"
13081 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13082 /* end confdefs.h. */
13084 /* Override any GCC internal prototype to avoid an error.
13085 Use char because int might match the return type of a GCC
13086 builtin and then its argument prototype would still apply. */
13090 char TIFFGetVersion ();
13094 return TIFFGetVersion ();
13099 if ac_fn_c_try_link
"$LINENO"; then :
13100 ac_cv_lib_tiff_TIFFGetVersion
=yes
13102 ac_cv_lib_tiff_TIFFGetVersion
=no
13104 rm -f core conftest.err conftest.
$ac_objext \
13105 conftest
$ac_exeext conftest.
$ac_ext
13106 LIBS
=$ac_check_lib_save_LIBS
13108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
13109 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
13110 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x
""yes; then :
13119 if test "${HAVE_TIFF}" = "yes"; then
13121 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
13128 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
13131 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no" \
13132 ||
test "${HAVE_W32}" = "yes"; then
13133 ac_fn_c_check_header_mongrel
"$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
13134 if test "x$ac_cv_header_gif_lib_h" = x
""yes; then :
13135 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
13136 # Earlier versions can crash Emacs.
13137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
13138 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
13139 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then :
13140 $as_echo_n "(cached) " >&6
13142 ac_check_lib_save_LIBS
=$LIBS
13144 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13145 /* end confdefs.h. */
13147 /* Override any GCC internal prototype to avoid an error.
13148 Use char because int might match the return type of a GCC
13149 builtin and then its argument prototype would still apply. */
13153 char EGifPutExtensionLast ();
13157 return EGifPutExtensionLast ();
13162 if ac_fn_c_try_link
"$LINENO"; then :
13163 ac_cv_lib_gif_EGifPutExtensionLast
=yes
13165 ac_cv_lib_gif_EGifPutExtensionLast
=no
13167 rm -f core conftest.err conftest.
$ac_objext \
13168 conftest
$ac_exeext conftest.
$ac_ext
13169 LIBS
=$ac_check_lib_save_LIBS
13171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
13172 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
13173 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x
""yes; then :
13183 if test "$HAVE_GIF" = yes; then
13185 elif test "$HAVE_GIF" = maybe
; then
13186 # If gif_lib.h but no libgif, try libungif.
13187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
13188 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
13189 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then :
13190 $as_echo_n "(cached) " >&6
13192 ac_check_lib_save_LIBS
=$LIBS
13193 LIBS
="-lungif $LIBS"
13194 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13195 /* end confdefs.h. */
13197 /* Override any GCC internal prototype to avoid an error.
13198 Use char because int might match the return type of a GCC
13199 builtin and then its argument prototype would still apply. */
13203 char EGifPutExtensionLast ();
13207 return EGifPutExtensionLast ();
13212 if ac_fn_c_try_link
"$LINENO"; then :
13213 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
13215 ac_cv_lib_ungif_EGifPutExtensionLast
=no
13217 rm -f core conftest.err conftest.
$ac_objext \
13218 conftest
$ac_exeext conftest.
$ac_ext
13219 LIBS
=$ac_check_lib_save_LIBS
13221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
13222 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
13223 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x
""yes; then :
13229 test "$HAVE_GIF" = yes && LIBGIF
=-lungif
13232 if test "${HAVE_GIF}" = "yes"; then
13234 $as_echo "#define HAVE_GIF 1" >>confdefs.h
13240 if test "${HAVE_X11}" = "yes"; then
13243 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
13244 MISSING
="libXpm" && WITH_NO
="--with-xpm=no"
13245 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
13246 MISSING
="$MISSING libjpeg" && WITH_NO
="$WITH_NO --with-jpeg=no"
13247 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
13248 MISSING
="$MISSING libpng" && WITH_NO
="$WITH_NO --with-png=no"
13249 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
13250 MISSING
="$MISSING libgif/libungif" && WITH_NO
="$WITH_NO --with-gif=no"
13251 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
13252 MISSING
="$MISSING libtiff" && WITH_NO
="$WITH_NO --with-tiff=no"
13254 if test "X${MISSING}" != X
; then
13255 as_fn_error
"The following required libraries were not found:
13257 Maybe some development libraries/packages are missing?
13258 If you don't want to link with them give
13260 as options to configure" "$LINENO" 5
13264 ### Use -lgpm if available, unless `--with-gpm=no'.
13267 if test "${with_gpm}" != "no"; then
13268 ac_fn_c_check_header_mongrel
"$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
13269 if test "x$ac_cv_header_gpm_h" = x
""yes; then :
13270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
13271 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
13272 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then :
13273 $as_echo_n "(cached) " >&6
13275 ac_check_lib_save_LIBS
=$LIBS
13277 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13278 /* end confdefs.h. */
13280 /* Override any GCC internal prototype to avoid an error.
13281 Use char because int might match the return type of a GCC
13282 builtin and then its argument prototype would still apply. */
13290 return Gpm_Open ();
13295 if ac_fn_c_try_link
"$LINENO"; then :
13296 ac_cv_lib_gpm_Gpm_Open
=yes
13298 ac_cv_lib_gpm_Gpm_Open
=no
13300 rm -f core conftest.err conftest.
$ac_objext \
13301 conftest
$ac_exeext conftest.
$ac_ext
13302 LIBS
=$ac_check_lib_save_LIBS
13304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
13305 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
13306 if test "x$ac_cv_lib_gpm_Gpm_Open" = x
""yes; then :
13314 if test "${HAVE_GPM}" = "yes"; then
13316 $as_echo "#define HAVE_GPM 1" >>confdefs.h
13328 ### Use NeXTstep API to implement GUI.
13329 if test "${HAVE_NS}" = "yes"; then
13331 $as_echo "#define HAVE_NS 1" >>confdefs.h
13333 if test "${NS_IMPL_COCOA}" = "yes"; then
13335 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
13338 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
13340 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
13342 # See also .m.o rule in Makefile.in */
13343 # FIXME: are all these flags really needed? Document here why. */
13344 GNUSTEP_CFLAGS
="-D_REENTRANT -fPIC -fno-strict-aliasing -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
13345 ## Extra CFLAGS applied to src/*.m files.
13346 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"
13348 # We also have mouse menus.
13353 if test "${HAVE_W32}" = "yes"; then
13357 ### Use session management (-lSM -lICE) if available
13360 if test "${HAVE_X11}" = "yes"; then
13361 ac_fn_c_check_header_mongrel
"$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
13362 if test "x$ac_cv_header_X11_SM_SMlib_h" = x
""yes; then :
13363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
13364 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
13365 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then :
13366 $as_echo_n "(cached) " >&6
13368 ac_check_lib_save_LIBS
=$LIBS
13369 LIBS
="-lSM -lICE $LIBS"
13370 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13371 /* end confdefs.h. */
13373 /* Override any GCC internal prototype to avoid an error.
13374 Use char because int might match the return type of a GCC
13375 builtin and then its argument prototype would still apply. */
13379 char SmcOpenConnection ();
13383 return SmcOpenConnection ();
13388 if ac_fn_c_try_link
"$LINENO"; then :
13389 ac_cv_lib_SM_SmcOpenConnection
=yes
13391 ac_cv_lib_SM_SmcOpenConnection
=no
13393 rm -f core conftest.err conftest.
$ac_objext \
13394 conftest
$ac_exeext conftest.
$ac_ext
13395 LIBS
=$ac_check_lib_save_LIBS
13397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
13398 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
13399 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x
""yes; then :
13407 if test "${HAVE_X_SM}" = "yes"; then
13409 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
13411 LIBXSM
="-lSM -lICE"
13414 *) LIBS
="$LIBXSM $LIBS" ;;
13420 ### Use libxml (-lxml2) if available
13422 if test "${with_xml2}" != "no"; then
13423 ### I'm not sure what the version number should be, so I just guessed.
13427 if test "$PKG_CONFIG" = "no" ; then
13430 PKG_CONFIG_MIN_VERSION
=0.9.0
13431 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.6.17" >&5
13433 $as_echo_n "checking for libxml-2.0 > 2.6.17... " >&6; }
13435 if "$PKG_CONFIG" --exists "libxml-2.0 > 2.6.17" 2>&5 &&
13436 LIBXML2_CFLAGS
=`"$PKG_CONFIG" --cflags "libxml-2.0 > 2.6.17" 2>&5` &&
13437 LIBXML2_LIBS
=`"$PKG_CONFIG" --libs "libxml-2.0 > 2.6.17" 2>&5`; then
13444 LIBXML2_CFLAGS
=`$as_echo "$LIBXML2_CFLAGS" | sed -e "$edit_cflags"`
13445 LIBXML2_LIBS
=`$as_echo "$LIBXML2_LIBS" | sed -e 's,///*,/,g'`
13446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBXML2_CFLAGS' LIBS='$LIBXML2_LIBS'" >&5
13447 $as_echo "yes CFLAGS='$LIBXML2_CFLAGS' LIBS='$LIBXML2_LIBS'" >&6; }
13450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13451 $as_echo "no" >&6; }
13454 ## If we have a custom action on failure, don't print errors, but
13455 ## do set a variable so people can do so. Do it in a subshell
13456 ## to capture any diagnostics in invoking pkg-config.
13457 LIBXML2_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "libxml-2.0 > 2.6.17") 2>&1`
13464 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13465 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13469 if test $succeeded = yes; then
13475 if test "${HAVE_LIBXML2}" = "yes"; then
13476 LIBS
="$LIBXML2_LIBS $LIBS"
13477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5
13478 $as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; }
13479 if test "${ac_cv_lib_xml2_htmlReadMemory+set}" = set; then :
13480 $as_echo_n "(cached) " >&6
13482 ac_check_lib_save_LIBS
=$LIBS
13483 LIBS
="-lxml2 $LIBS"
13484 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13485 /* end confdefs.h. */
13487 /* Override any GCC internal prototype to avoid an error.
13488 Use char because int might match the return type of a GCC
13489 builtin and then its argument prototype would still apply. */
13493 char htmlReadMemory ();
13497 return htmlReadMemory ();
13502 if ac_fn_c_try_link
"$LINENO"; then :
13503 ac_cv_lib_xml2_htmlReadMemory
=yes
13505 ac_cv_lib_xml2_htmlReadMemory
=no
13507 rm -f core conftest.err conftest.
$ac_objext \
13508 conftest
$ac_exeext conftest.
$ac_ext
13509 LIBS
=$ac_check_lib_save_LIBS
13511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5
13512 $as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; }
13513 if test "x$ac_cv_lib_xml2_htmlReadMemory" = x
""yes; then :
13519 if test "${HAVE_LIBXML2}" = "yes"; then
13521 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
13532 # If netdb.h doesn't declare h_errno, we must declare it by hand.
13533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
13534 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
13535 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then :
13536 $as_echo_n "(cached) " >&6
13538 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13539 /* end confdefs.h. */
13549 if ac_fn_c_try_link
"$LINENO"; then :
13550 emacs_cv_netdb_declares_h_errno
=yes
13552 emacs_cv_netdb_declares_h_errno
=no
13554 rm -f core conftest.err conftest.
$ac_objext \
13555 conftest
$ac_exeext conftest.
$ac_ext
13557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
13558 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
13559 if test $emacs_cv_netdb_declares_h_errno = yes; then
13561 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
13565 # sqrt and other floating-point functions such as fmod and frexp
13566 # are found in -lm on most systems.
13567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
13568 $as_echo_n "checking for sqrt in -lm... " >&6; }
13569 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
13570 $as_echo_n "(cached) " >&6
13572 ac_check_lib_save_LIBS
=$LIBS
13574 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13575 /* end confdefs.h. */
13577 /* Override any GCC internal prototype to avoid an error.
13578 Use char because int might match the return type of a GCC
13579 builtin and then its argument prototype would still apply. */
13592 if ac_fn_c_try_link
"$LINENO"; then :
13593 ac_cv_lib_m_sqrt
=yes
13595 ac_cv_lib_m_sqrt
=no
13597 rm -f core conftest.err conftest.
$ac_objext \
13598 conftest
$ac_exeext conftest.
$ac_ext
13599 LIBS
=$ac_check_lib_save_LIBS
13601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
13602 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
13603 if test "x$ac_cv_lib_m_sqrt" = x
""yes; then :
13604 cat >>confdefs.h
<<_ACEOF
13605 #define HAVE_LIBM 1
13613 # Check for mail-locking functions in a "mail" library. Probably this should
13614 # have the same check as for liblockfile below.
13615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
13616 $as_echo_n "checking for maillock in -lmail... " >&6; }
13617 if test "${ac_cv_lib_mail_maillock+set}" = set; then :
13618 $as_echo_n "(cached) " >&6
13620 ac_check_lib_save_LIBS
=$LIBS
13621 LIBS
="-lmail $LIBS"
13622 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13623 /* end confdefs.h. */
13625 /* Override any GCC internal prototype to avoid an error.
13626 Use char because int might match the return type of a GCC
13627 builtin and then its argument prototype would still apply. */
13635 return maillock ();
13640 if ac_fn_c_try_link
"$LINENO"; then :
13641 ac_cv_lib_mail_maillock
=yes
13643 ac_cv_lib_mail_maillock
=no
13645 rm -f core conftest.err conftest.
$ac_objext \
13646 conftest
$ac_exeext conftest.
$ac_ext
13647 LIBS
=$ac_check_lib_save_LIBS
13649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
13650 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
13651 if test "x$ac_cv_lib_mail_maillock" = x
""yes; then :
13657 if test $have_mail = yes; then
13659 LIBS
="$LIBS_MAIL $LIBS"
13661 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
13666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
13667 $as_echo_n "checking for maillock in -llockfile... " >&6; }
13668 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then :
13669 $as_echo_n "(cached) " >&6
13671 ac_check_lib_save_LIBS
=$LIBS
13672 LIBS
="-llockfile $LIBS"
13673 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13674 /* end confdefs.h. */
13676 /* Override any GCC internal prototype to avoid an error.
13677 Use char because int might match the return type of a GCC
13678 builtin and then its argument prototype would still apply. */
13686 return maillock ();
13691 if ac_fn_c_try_link
"$LINENO"; then :
13692 ac_cv_lib_lockfile_maillock
=yes
13694 ac_cv_lib_lockfile_maillock
=no
13696 rm -f core conftest.err conftest.
$ac_objext \
13697 conftest
$ac_exeext conftest.
$ac_ext
13698 LIBS
=$ac_check_lib_save_LIBS
13700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
13701 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
13702 if test "x$ac_cv_lib_lockfile_maillock" = x
""yes; then :
13708 if test $have_lockfile = yes; then
13709 LIBS_MAIL
=-llockfile
13710 LIBS
="$LIBS_MAIL $LIBS"
13712 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
13715 # If we have the shared liblockfile, assume we must use it for mail
13716 # locking (e.g. Debian). If we couldn't link against liblockfile
13717 # (no liblockfile.a installed), ensure that we don't need to.
13718 # Extract the first word of "liblockfile.so", so it can be a program name with args.
13719 set dummy liblockfile.so
; ac_word
=$2
13720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13721 $as_echo_n "checking for $ac_word... " >&6; }
13722 if test "${ac_cv_prog_liblockfile+set}" = set; then :
13723 $as_echo_n "(cached) " >&6
13725 if test -n "$liblockfile"; then
13726 ac_cv_prog_liblockfile
="$liblockfile" # Let the user override the test.
13728 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13729 as_dummy
="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
13730 for as_dir
in $as_dummy
13733 test -z "$as_dir" && as_dir
=.
13734 for ac_exec_ext
in '' $ac_executable_extensions; do
13735 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13736 ac_cv_prog_liblockfile
="yes"
13737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13744 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile
="no"
13747 liblockfile
=$ac_cv_prog_liblockfile
13748 if test -n "$liblockfile"; then
13749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
13750 $as_echo "$liblockfile" >&6; }
13752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13753 $as_echo "no" >&6; }
13757 if test $ac_cv_prog_liblockfile = yes; then
13758 as_fn_error
"Shared liblockfile found but can't link against it.
13759 This probably means that movemail could lose mail.
13760 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
13768 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
13769 ## interlock access to the mail spool. The alternative is a lock file named
13770 ## /usr/spool/mail/$USER.lock.
13773 aix4-2
) mail_lock
="lockf" ;;
13775 gnu|freebsd|netbsd|openbsd|darwin|irix6-5
) mail_lock
="flock" ;;
13777 ## On GNU/Linux systems, both methods are used by various mail programs.
13778 ## I assume most people are using newer mailers that have heard of flock.
13779 ## Change this if you need to.
13780 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
13781 ## configure gets the right answers, and that means *NOT* using flock.
13782 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
13783 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
13784 ## Debian maintainer hasn't provided a clean fix for Emacs.
13785 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
13786 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
13787 ## correct logic. -- fx
13788 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
13789 ## liblockfile is a Free Software replacement for libmail, used on
13790 ## Debian systems and elsewhere. -rfr.
13793 if test $have_mail = yes ||
test $have_lockfile = yes; then
13794 test $ac_cv_header_maillock_h = yes && mail_lock
=no
13800 case "$mail_lock" in
13802 $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
13806 $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
13809 *) BLESSMAIL_TARGET
="need-blessmail" ;;
13814 for ac_func
in gethostname \
13815 getrusage get_current_dir_name \
13817 select getpagesize setlocale \
13818 utimes getrlimit setrlimit shutdown getaddrinfo \
13819 strsignal setitimer \
13820 sendto recvfrom getsockname getpeername getifaddrs freeifaddrs \
13821 gai_strerror mkstemp getline getdelim fsync sync \
13822 difftime posix_memalign \
13823 getpwent endpwent getgrent endgrent \
13825 cfmakeraw cfsetspeed copysign __executable_start
13827 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13828 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13829 eval as_val
=\$
$as_ac_var
13830 if test "x$as_val" = x
""yes; then :
13831 cat >>confdefs.h
<<_ACEOF
13832 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13839 ## Eric Backus <ericb@lsid.hp.com> says, HP-UX 9.x on HP 700 machines
13840 ## has a broken `rint' in some library versions including math library
13841 ## version number A.09.05.
13842 ## You can fix the math library by installing patch number PHSS_4630.
13843 ## But we can fix it more reliably for Emacs by just not using rint.
13844 ## We also skip HAVE_RANDOM - see comments in src/conf_post.h.
13847 *) for ac_func
in random rint
13849 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13850 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13851 eval as_val
=\$
$as_ac_var
13852 if test "x$as_val" = x
""yes; then :
13853 cat >>confdefs.h
<<_ACEOF
13854 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unwind_init" >&5
13863 $as_echo_n "checking for __builtin_unwind_init... " >&6; }
13864 if test "${emacs_cv_func___builtin_unwind_init+set}" = set; then :
13865 $as_echo_n "(cached) " >&6
13867 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13868 /* end confdefs.h. */
13873 __builtin_unwind_init ();
13878 if ac_fn_c_try_link
"$LINENO"; then :
13879 emacs_cv_func___builtin_unwind_init
=yes
13881 emacs_cv_func___builtin_unwind_init
=no
13883 rm -f core conftest.err conftest.
$ac_objext \
13884 conftest
$ac_exeext conftest.
$ac_ext
13886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func___builtin_unwind_init" >&5
13887 $as_echo "$emacs_cv_func___builtin_unwind_init" >&6; }
13888 if test $emacs_cv_func___builtin_unwind_init = yes; then
13890 $as_echo "#define HAVE___BUILTIN_UNWIND_INIT 1" >>confdefs.h
13898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13899 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
13900 if test "${ac_cv_sys_largefile_source+set}" = set; then :
13901 $as_echo_n "(cached) " >&6
13904 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13905 /* end confdefs.h. */
13906 #include <sys/types.h> /* for off_t */
13911 int (*fp) (FILE *, off_t, int) = fseeko;
13912 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13917 if ac_fn_c_try_link
"$LINENO"; then :
13918 ac_cv_sys_largefile_source
=no
; break
13920 rm -f core conftest.err conftest.
$ac_objext \
13921 conftest
$ac_exeext conftest.
$ac_ext
13922 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13923 /* end confdefs.h. */
13924 #define _LARGEFILE_SOURCE 1
13925 #include <sys/types.h> /* for off_t */
13930 int (*fp) (FILE *, off_t, int) = fseeko;
13931 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13936 if ac_fn_c_try_link
"$LINENO"; then :
13937 ac_cv_sys_largefile_source
=1; break
13939 rm -f core conftest.err conftest.
$ac_objext \
13940 conftest
$ac_exeext conftest.
$ac_ext
13941 ac_cv_sys_largefile_source
=unknown
13945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
13946 $as_echo "$ac_cv_sys_largefile_source" >&6; }
13947 case $ac_cv_sys_largefile_source in #(
13950 cat >>confdefs.h
<<_ACEOF
13951 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13957 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13958 # in glibc 2.1.3, but that breaks too many other things.
13959 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13960 if test $ac_cv_sys_largefile_source != unknown
; then
13962 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
13968 for ac_func
in grantpt
13970 ac_fn_c_check_func
"$LINENO" "grantpt" "ac_cv_func_grantpt"
13971 if test "x$ac_cv_func_grantpt" = x
""yes; then :
13972 cat >>confdefs.h
<<_ACEOF
13973 #define HAVE_GRANTPT 1
13980 # PTY-related GNU extensions.
13981 for ac_func
in getpt posix_openpt
13983 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13984 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13985 eval as_val
=\$
$as_ac_var
13986 if test "x$as_val" = x
""yes; then :
13987 cat >>confdefs.h
<<_ACEOF
13988 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13995 # Check this now, so that we will NOT find the above functions in ncurses.
13996 # That is because we have not set up to link ncurses in lib-src.
13997 # It's better to believe a function is not available
13998 # than to expect to find it in ncurses.
13999 # Also we need tputs and friends to be able to build at all.
14000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
14001 $as_echo_n "checking for library containing tputs... " >&6; }
14002 # Run a test program that contains a call to tputs, a call that is
14003 # never executed. This tests whether a pre-'main' dynamic linker
14004 # works with the library. It's too much trouble to actually call
14005 # tputs in the test program, due to portability hassles. When
14006 # cross-compiling, assume the test program will run if it links.
14008 # Maybe curses should be tried earlier?
14009 # See http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9736#35
14010 for tputs_library
in '' tinfo ncurses terminfo termcap curses
; do
14012 if test -z "$tputs_library"; then
14014 msg
='none required'
14016 LIBS_TERMCAP
=-l$tputs_library
14018 LIBS
="$LIBS_TERMCAP $LIBS"
14020 if test "$cross_compiling" = yes; then :
14021 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14022 /* end confdefs.h. */
14024 extern void tputs (const char *, int, int (*)(int));
14025 int main (int argc, char **argv)
14028 tputs (argv[0], 0, 0);
14033 if ac_fn_c_try_link
"$LINENO"; then :
14038 rm -f core conftest.err conftest.
$ac_objext \
14039 conftest
$ac_exeext conftest.
$ac_ext
14041 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14042 /* end confdefs.h. */
14044 extern void tputs (const char *, int, int (*)(int));
14045 int main (int argc, char **argv)
14048 tputs (argv[0], 0, 0);
14053 if ac_fn_c_try_run
"$LINENO"; then :
14058 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14059 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14063 if test "X$msg" != Xno
; then
14067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5
14068 $as_echo "$msg" >&6; }
14069 if test "X$msg" = Xno
; then
14070 as_fn_error
"The required function \`tputs' was not found in any library.
14071 The following libraries were tried (in order):
14072 libtinfo, libncurses, libterminfo, libtermcap, libcurses
14073 Please try installing whichever of these libraries is most appropriate
14074 for your system, together with its header files.
14075 For example, a libncurses-dev(el) or similar package." "$LINENO" 5
14078 ## Use termcap instead of terminfo?
14079 ## Only true for: freebsd < 40000, ms-w32, msdos, netbsd < 599002500.
14081 ## FIXME? In the cases below where we unconditionally set
14082 ## LIBS_TERMCAP="-lncurses", this overrides LIBS_TERMCAP = -ltinfo,
14083 ## if that was found above to have tputs.
14084 ## Should we use the gnu* logic everywhere?
14086 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
14087 ## The ncurses library has been moved out of the System framework in
14088 ## Mac OS X 10.2. So if configure detects it, set the command-line
14089 ## option to use it.
14090 darwin
) LIBS_TERMCAP
="-lncurses" ;;
14092 gnu
*) test -z "$LIBS_TERMCAP" && LIBS_TERMCAP
="-lncurses" ;;
14095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
14096 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
14097 if test "${emacs_cv_freebsd_terminfo+set}" = set; then :
14098 $as_echo_n "(cached) " >&6
14100 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14101 /* end confdefs.h. */
14102 #include <osreldate.h>
14106 #if __FreeBSD_version < 400000
14114 if ac_fn_c_try_link
"$LINENO"; then :
14115 emacs_cv_freebsd_terminfo
=yes
14117 emacs_cv_freebsd_terminfo
=no
14119 rm -f core conftest.err conftest.
$ac_objext \
14120 conftest
$ac_exeext conftest.
$ac_ext
14124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
14125 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
14127 if test $emacs_cv_freebsd_terminfo = yes; then
14128 LIBS_TERMCAP
="-lncurses"
14131 LIBS_TERMCAP
="-ltermcap"
14136 if test "x$LIBS_TERMCAP" != "x-lterminfo"; then
14138 LIBS_TERMCAP
="-ltermcap"
14142 openbsd
) LIBS_TERMCAP
="-lncurses" ;;
14144 ## hpux: Make sure we get select from libc rather than from libcurses
14145 ## because libcurses on HPUX 10.10 has a broken version of select.
14146 ## We used to use -lc -lcurses, but this may be cleaner.
14147 ## FIXME? But TERMINFO = yes on hpux (it used to be explicitly
14148 # set that way, now it uses the default). Isn't this a contradiction?
14149 hpux
*) LIBS_TERMCAP
="-ltermcap" ;;
14153 TERMCAP_OBJ
=tparam.o
14154 if test $TERMINFO = yes; then
14156 $as_echo "#define TERMINFO 1" >>confdefs.h
14158 TERMCAP_OBJ
=terminfo.o
14164 # Do we have res_init, for detecting changes in /etc/resolv.conf?
14165 # On Darwin, res_init appears not to be useful: see bug#562 and
14166 # http://lists.gnu.org/archive/html/emacs-devel/2007-11/msg01467.html
14169 if test $opsys != darwin
; then
14171 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14172 /* end confdefs.h. */
14173 #include <netinet/in.h>
14174 #include <arpa/nameser.h>
14175 #include <resolv.h>
14184 if ac_fn_c_try_link
"$LINENO"; then :
14189 rm -f core conftest.err conftest.
$ac_objext \
14190 conftest
$ac_exeext conftest.
$ac_ext
14191 if test "$have_res_init" = no
; then
14193 LIBS
="$LIBS -lresolv"
14194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
14195 $as_echo_n "checking for res_init with -lresolv... " >&6; }
14196 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14197 /* end confdefs.h. */
14198 #include <netinet/in.h>
14199 #include <arpa/nameser.h>
14200 #include <resolv.h>
14209 if ac_fn_c_try_link
"$LINENO"; then :
14214 rm -f core conftest.err conftest.
$ac_objext \
14215 conftest
$ac_exeext conftest.
$ac_ext
14216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
14217 $as_echo "$have_res_init" >&6; }
14218 if test "$have_res_init" = yes ; then
14224 if test "$have_res_init" = yes; then
14226 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
14230 # Do we need the Hesiod library to provide the support routines?
14232 if test "$with_hesiod" != no
; then
14233 # Don't set $LIBS here -- see comments above. FIXME which comments?
14234 ac_fn_c_check_func
"$LINENO" "res_send" "ac_cv_func_res_send"
14235 if test "x$ac_cv_func_res_send" = x
""yes; then :
14238 ac_fn_c_check_func
"$LINENO" "__res_send" "ac_cv_func___res_send"
14239 if test "x$ac_cv_func___res_send" = x
""yes; then :
14242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
14243 $as_echo_n "checking for res_send in -lresolv... " >&6; }
14244 if test "${ac_cv_lib_resolv_res_send+set}" = set; then :
14245 $as_echo_n "(cached) " >&6
14247 ac_check_lib_save_LIBS
=$LIBS
14248 LIBS
="-lresolv $LIBS"
14249 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14250 /* end confdefs.h. */
14252 /* Override any GCC internal prototype to avoid an error.
14253 Use char because int might match the return type of a GCC
14254 builtin and then its argument prototype would still apply. */
14262 return res_send ();
14267 if ac_fn_c_try_link
"$LINENO"; then :
14268 ac_cv_lib_resolv_res_send
=yes
14270 ac_cv_lib_resolv_res_send
=no
14272 rm -f core conftest.err conftest.
$ac_objext \
14273 conftest
$ac_exeext conftest.
$ac_ext
14274 LIBS
=$ac_check_lib_save_LIBS
14276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
14277 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
14278 if test "x$ac_cv_lib_resolv_res_send" = x
""yes; then :
14281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
14282 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
14283 if test "${ac_cv_lib_resolv___res_send+set}" = set; then :
14284 $as_echo_n "(cached) " >&6
14286 ac_check_lib_save_LIBS
=$LIBS
14287 LIBS
="-lresolv $LIBS"
14288 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14289 /* end confdefs.h. */
14291 /* Override any GCC internal prototype to avoid an error.
14292 Use char because int might match the return type of a GCC
14293 builtin and then its argument prototype would still apply. */
14297 char __res_send ();
14301 return __res_send ();
14306 if ac_fn_c_try_link
"$LINENO"; then :
14307 ac_cv_lib_resolv___res_send
=yes
14309 ac_cv_lib_resolv___res_send
=no
14311 rm -f core conftest.err conftest.
$ac_objext \
14312 conftest
$ac_exeext conftest.
$ac_ext
14313 LIBS
=$ac_check_lib_save_LIBS
14315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
14316 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
14317 if test "x$ac_cv_lib_resolv___res_send" = x
""yes; then :
14327 if test "$resolv" = yes ; then
14332 ac_fn_c_check_func
"$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
14333 if test "x$ac_cv_func_hes_getmailhost" = x
""yes; then :
14336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
14337 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
14338 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then :
14339 $as_echo_n "(cached) " >&6
14341 ac_check_lib_save_LIBS
=$LIBS
14342 LIBS
="-lhesiod $RESOLVLIB $LIBS"
14343 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14344 /* end confdefs.h. */
14346 /* Override any GCC internal prototype to avoid an error.
14347 Use char because int might match the return type of a GCC
14348 builtin and then its argument prototype would still apply. */
14352 char hes_getmailhost ();
14356 return hes_getmailhost ();
14361 if ac_fn_c_try_link
"$LINENO"; then :
14362 ac_cv_lib_hesiod_hes_getmailhost
=yes
14364 ac_cv_lib_hesiod_hes_getmailhost
=no
14366 rm -f core conftest.err conftest.
$ac_objext \
14367 conftest
$ac_exeext conftest.
$ac_ext
14368 LIBS
=$ac_check_lib_save_LIBS
14370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
14371 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
14372 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x
""yes; then :
14381 if test x
"$hesiod" = xyes
; then
14383 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
14390 # Do we need libresolv (due to res_init or Hesiod)?
14391 if test "$resolv" = yes && test $opsys != darwin
; then
14393 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
14401 # These tell us which Kerberos-related libraries to use.
14408 if test "${with_kerberos}" != no
; then
14409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
14410 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
14411 if test "${ac_cv_lib_com_err_com_err+set}" = set; then :
14412 $as_echo_n "(cached) " >&6
14414 ac_check_lib_save_LIBS
=$LIBS
14415 LIBS
="-lcom_err $LIBS"
14416 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14417 /* end confdefs.h. */
14419 /* Override any GCC internal prototype to avoid an error.
14420 Use char because int might match the return type of a GCC
14421 builtin and then its argument prototype would still apply. */
14434 if ac_fn_c_try_link
"$LINENO"; then :
14435 ac_cv_lib_com_err_com_err
=yes
14437 ac_cv_lib_com_err_com_err
=no
14439 rm -f core conftest.err conftest.
$ac_objext \
14440 conftest
$ac_exeext conftest.
$ac_ext
14441 LIBS
=$ac_check_lib_save_LIBS
14443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
14444 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
14445 if test "x$ac_cv_lib_com_err_com_err" = x
""yes; then :
14451 if test $have_com_err = yes; then
14452 COM_ERRLIB
=-lcom_err
14453 LIBS
="$COM_ERRLIB $LIBS"
14455 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
14458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
14459 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
14460 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then :
14461 $as_echo_n "(cached) " >&6
14463 ac_check_lib_save_LIBS
=$LIBS
14464 LIBS
="-lcrypto $LIBS"
14465 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14466 /* end confdefs.h. */
14468 /* Override any GCC internal prototype to avoid an error.
14469 Use char because int might match the return type of a GCC
14470 builtin and then its argument prototype would still apply. */
14474 char mit_des_cbc_encrypt ();
14478 return mit_des_cbc_encrypt ();
14483 if ac_fn_c_try_link
"$LINENO"; then :
14484 ac_cv_lib_crypto_mit_des_cbc_encrypt
=yes
14486 ac_cv_lib_crypto_mit_des_cbc_encrypt
=no
14488 rm -f core conftest.err conftest.
$ac_objext \
14489 conftest
$ac_exeext conftest.
$ac_ext
14490 LIBS
=$ac_check_lib_save_LIBS
14492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
14493 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
14494 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x
""yes; then :
14500 if test $have_crypto = yes; then
14502 LIBS
="$CRYPTOLIB $LIBS"
14504 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
14507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
14508 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
14509 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then :
14510 $as_echo_n "(cached) " >&6
14512 ac_check_lib_save_LIBS
=$LIBS
14513 LIBS
="-lk5crypto $LIBS"
14514 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14515 /* end confdefs.h. */
14517 /* Override any GCC internal prototype to avoid an error.
14518 Use char because int might match the return type of a GCC
14519 builtin and then its argument prototype would still apply. */
14523 char mit_des_cbc_encrypt ();
14527 return mit_des_cbc_encrypt ();
14532 if ac_fn_c_try_link
"$LINENO"; then :
14533 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=yes
14535 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=no
14537 rm -f core conftest.err conftest.
$ac_objext \
14538 conftest
$ac_exeext conftest.
$ac_ext
14539 LIBS
=$ac_check_lib_save_LIBS
14541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
14542 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
14543 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x
""yes; then :
14549 if test $have_k5crypto = yes; then
14550 CRYPTOLIB
=-lk5crypto
14551 LIBS
="$CRYPTOLIB $LIBS"
14553 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
14556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
14557 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
14558 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then :
14559 $as_echo_n "(cached) " >&6
14561 ac_check_lib_save_LIBS
=$LIBS
14562 LIBS
="-lkrb5 $LIBS"
14563 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14564 /* end confdefs.h. */
14566 /* Override any GCC internal prototype to avoid an error.
14567 Use char because int might match the return type of a GCC
14568 builtin and then its argument prototype would still apply. */
14572 char krb5_init_context ();
14576 return krb5_init_context ();
14581 if ac_fn_c_try_link
"$LINENO"; then :
14582 ac_cv_lib_krb5_krb5_init_context
=yes
14584 ac_cv_lib_krb5_krb5_init_context
=no
14586 rm -f core conftest.err conftest.
$ac_objext \
14587 conftest
$ac_exeext conftest.
$ac_ext
14588 LIBS
=$ac_check_lib_save_LIBS
14590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
14591 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
14592 if test "x$ac_cv_lib_krb5_krb5_init_context" = x
""yes; then :
14598 if test $have_krb5=yes; then
14600 LIBS
="$KRB5LIB $LIBS"
14602 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
14605 if test "${with_kerberos5}" = no
; then
14606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
14607 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
14608 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
14609 $as_echo_n "(cached) " >&6
14611 ac_check_lib_save_LIBS
=$LIBS
14612 LIBS
="-ldes425 $LIBS"
14613 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14614 /* end confdefs.h. */
14616 /* Override any GCC internal prototype to avoid an error.
14617 Use char because int might match the return type of a GCC
14618 builtin and then its argument prototype would still apply. */
14622 char des_cbc_encrypt ();
14626 return des_cbc_encrypt ();
14631 if ac_fn_c_try_link
"$LINENO"; then :
14632 ac_cv_lib_des425_des_cbc_encrypt
=yes
14634 ac_cv_lib_des425_des_cbc_encrypt
=no
14636 rm -f core conftest.err conftest.
$ac_objext \
14637 conftest
$ac_exeext conftest.
$ac_ext
14638 LIBS
=$ac_check_lib_save_LIBS
14640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
14641 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
14642 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x
""yes; then :
14648 if test $have_des425 = yes; then
14650 LIBS
="$DESLIB $LIBS"
14652 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
14655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
14656 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
14657 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
14658 $as_echo_n "(cached) " >&6
14660 ac_check_lib_save_LIBS
=$LIBS
14662 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14663 /* end confdefs.h. */
14665 /* Override any GCC internal prototype to avoid an error.
14666 Use char because int might match the return type of a GCC
14667 builtin and then its argument prototype would still apply. */
14671 char des_cbc_encrypt ();
14675 return des_cbc_encrypt ();
14680 if ac_fn_c_try_link
"$LINENO"; then :
14681 ac_cv_lib_des_des_cbc_encrypt
=yes
14683 ac_cv_lib_des_des_cbc_encrypt
=no
14685 rm -f core conftest.err conftest.
$ac_objext \
14686 conftest
$ac_exeext conftest.
$ac_ext
14687 LIBS
=$ac_check_lib_save_LIBS
14689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
14690 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
14691 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x
""yes; then :
14697 if test $have_des = yes; then
14699 LIBS
="$DESLIB $LIBS"
14701 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
14705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
14706 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
14707 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then :
14708 $as_echo_n "(cached) " >&6
14710 ac_check_lib_save_LIBS
=$LIBS
14711 LIBS
="-lkrb4 $LIBS"
14712 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14713 /* end confdefs.h. */
14715 /* Override any GCC internal prototype to avoid an error.
14716 Use char because int might match the return type of a GCC
14717 builtin and then its argument prototype would still apply. */
14721 char krb_get_cred ();
14725 return krb_get_cred ();
14730 if ac_fn_c_try_link
"$LINENO"; then :
14731 ac_cv_lib_krb4_krb_get_cred
=yes
14733 ac_cv_lib_krb4_krb_get_cred
=no
14735 rm -f core conftest.err conftest.
$ac_objext \
14736 conftest
$ac_exeext conftest.
$ac_ext
14737 LIBS
=$ac_check_lib_save_LIBS
14739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
14740 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
14741 if test "x$ac_cv_lib_krb4_krb_get_cred" = x
""yes; then :
14747 if test $have_krb4 = yes; then
14749 LIBS
="$KRB4LIB $LIBS"
14751 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
14754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
14755 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
14756 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then :
14757 $as_echo_n "(cached) " >&6
14759 ac_check_lib_save_LIBS
=$LIBS
14761 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14762 /* end confdefs.h. */
14764 /* Override any GCC internal prototype to avoid an error.
14765 Use char because int might match the return type of a GCC
14766 builtin and then its argument prototype would still apply. */
14770 char krb_get_cred ();
14774 return krb_get_cred ();
14779 if ac_fn_c_try_link
"$LINENO"; then :
14780 ac_cv_lib_krb_krb_get_cred
=yes
14782 ac_cv_lib_krb_krb_get_cred
=no
14784 rm -f core conftest.err conftest.
$ac_objext \
14785 conftest
$ac_exeext conftest.
$ac_ext
14786 LIBS
=$ac_check_lib_save_LIBS
14788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
14789 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
14790 if test "x$ac_cv_lib_krb_krb_get_cred" = x
""yes; then :
14796 if test $have_krb = yes; then
14798 LIBS
="$KRB4LIB $LIBS"
14800 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
14806 if test "${with_kerberos5}" != no
; then
14807 for ac_header
in krb5.h
14809 ac_fn_c_check_header_mongrel
"$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
14810 if test "x$ac_cv_header_krb5_h" = x
""yes; then :
14811 cat >>confdefs.h
<<_ACEOF
14812 #define HAVE_KRB5_H 1
14814 ac_fn_c_check_member
"$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
14816 if test "x$ac_cv_member_krb5_error_text" = x
""yes; then :
14818 cat >>confdefs.h
<<_ACEOF
14819 #define HAVE_KRB5_ERROR_TEXT 1
14824 ac_fn_c_check_member
"$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
14826 if test "x$ac_cv_member_krb5_error_e_text" = x
""yes; then :
14828 cat >>confdefs.h
<<_ACEOF
14829 #define HAVE_KRB5_ERROR_E_TEXT 1
14840 for ac_header
in des.h
14842 ac_fn_c_check_header_mongrel
"$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
14843 if test "x$ac_cv_header_des_h" = x
""yes; then :
14844 cat >>confdefs.h
<<_ACEOF
14845 #define HAVE_DES_H 1
14849 for ac_header
in kerberosIV
/des.h
14851 ac_fn_c_check_header_mongrel
"$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
14852 if test "x$ac_cv_header_kerberosIV_des_h" = x
""yes; then :
14853 cat >>confdefs.h
<<_ACEOF
14854 #define HAVE_KERBEROSIV_DES_H 1
14858 for ac_header
in kerberos
/des.h
14860 ac_fn_c_check_header_mongrel
"$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
14861 if test "x$ac_cv_header_kerberos_des_h" = x
""yes; then :
14862 cat >>confdefs.h
<<_ACEOF
14863 #define HAVE_KERBEROS_DES_H 1
14878 for ac_header
in krb.h
14880 ac_fn_c_check_header_mongrel
"$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
14881 if test "x$ac_cv_header_krb_h" = x
""yes; then :
14882 cat >>confdefs.h
<<_ACEOF
14883 #define HAVE_KRB_H 1
14887 for ac_header
in kerberosIV
/krb.h
14889 ac_fn_c_check_header_mongrel
"$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
14890 if test "x$ac_cv_header_kerberosIV_krb_h" = x
""yes; then :
14891 cat >>confdefs.h
<<_ACEOF
14892 #define HAVE_KERBEROSIV_KRB_H 1
14896 for ac_header
in kerberos
/krb.h
14898 ac_fn_c_check_header_mongrel
"$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
14899 if test "x$ac_cv_header_kerberos_krb_h" = x
""yes; then :
14900 cat >>confdefs.h
<<_ACEOF
14901 #define HAVE_KERBEROS_KRB_H 1
14917 for ac_header
in com_err.h
14919 ac_fn_c_check_header_mongrel
"$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
14920 if test "x$ac_cv_header_com_err_h" = x
""yes; then :
14921 cat >>confdefs.h
<<_ACEOF
14922 #define HAVE_COM_ERR_H 1
14940 for ac_func
in $ac_func_list
14942 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14943 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
14944 eval as_val
=\$
$as_ac_var
14945 if test "x$as_val" = x
""yes; then :
14946 cat >>confdefs.h
<<_ACEOF
14947 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
14957 $as_echo_n "checking whether localtime caches TZ... " >&6; }
14958 if test "${emacs_cv_localtime_cache+set}" = set; then :
14959 $as_echo_n "(cached) " >&6
14961 if test x
$ac_cv_func_tzset = xyes
; then
14962 if test "$cross_compiling" = yes; then :
14963 # If we have tzset, assume the worst when cross-compiling.
14964 emacs_cv_localtime_cache
=yes
14966 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14967 /* end confdefs.h. */
14969 char TZ_GMT0[] = "TZ=GMT0";
14970 char TZ_PST8[] = "TZ=PST8";
14973 time_t now = time ((time_t *) 0);
14974 int hour_GMT0, hour_unset;
14975 if (putenv (TZ_GMT0) != 0)
14977 hour_GMT0 = localtime (&now)->tm_hour;
14979 hour_unset = localtime (&now)->tm_hour;
14980 if (putenv (TZ_PST8) != 0)
14982 if (localtime (&now)->tm_hour == hour_GMT0)
14985 if (localtime (&now)->tm_hour != hour_unset)
14990 if ac_fn_c_try_run
"$LINENO"; then :
14991 emacs_cv_localtime_cache
=no
14993 emacs_cv_localtime_cache
=yes
14995 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14996 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15000 # If we lack tzset, report that localtime does not cache TZ,
15001 # since we can't invalidate the cache if we don't have tzset.
15002 emacs_cv_localtime_cache
=no
15005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
15006 $as_echo "$emacs_cv_localtime_cache" >&6; }
15007 if test $emacs_cv_localtime_cache = yes; then
15009 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
15014 ac_fn_c_check_func
"$LINENO" "socket" "ac_cv_func_socket"
15015 if test "x$ac_cv_func_socket" = x
""yes; then :
15021 if test $ok_so_far = yes; then
15022 ac_fn_c_check_header_mongrel
"$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
15023 if test "x$ac_cv_header_netinet_in_h" = x
""yes; then :
15031 if test $ok_so_far = yes; then
15032 ac_fn_c_check_header_mongrel
"$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
15033 if test "x$ac_cv_header_arpa_inet_h" = x
""yes; then :
15041 if test $ok_so_far = yes; then
15043 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
15047 if test -f /usr
/lpp
/X11
/bin
/smt.exp
; then
15049 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
15053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
15054 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
15055 if test -d /dev
/pts
&& ls -d /dev
/ptmx
> /dev
/null
2>&1 ; then
15056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15057 $as_echo "yes" >&6; }
15059 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
15062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15063 $as_echo "no" >&6; }
15067 *-solaris2.4 |
*-solaris2.4.
*)
15068 : ${ac_cv_func_vfork_works=no};;
15071 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
15072 if test "x$ac_cv_type_pid_t" = x
""yes; then :
15076 cat >>confdefs.h
<<_ACEOF
15082 for ac_header
in vfork.h
15084 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
15085 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
15086 cat >>confdefs.h
<<_ACEOF
15087 #define HAVE_VFORK_H 1
15094 for ac_func
in fork vfork
15096 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15097 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
15098 eval as_val
=\$
$as_ac_var
15099 if test "x$as_val" = x
""yes; then :
15100 cat >>confdefs.h
<<_ACEOF
15101 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15107 if test "x$ac_cv_func_fork" = xyes
; then
15108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
15109 $as_echo_n "checking for working fork... " >&6; }
15110 if test "${ac_cv_func_fork_works+set}" = set; then :
15111 $as_echo_n "(cached) " >&6
15113 if test "$cross_compiling" = yes; then :
15114 ac_cv_func_fork_works
=cross
15116 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15117 /* end confdefs.h. */
15118 $ac_includes_default
15123 /* By Ruediger Kuhlmann. */
15124 return fork () < 0;
15130 if ac_fn_c_try_run
"$LINENO"; then :
15131 ac_cv_func_fork_works
=yes
15133 ac_cv_func_fork_works
=no
15135 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15136 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
15141 $as_echo "$ac_cv_func_fork_works" >&6; }
15144 ac_cv_func_fork_works
=$ac_cv_func_fork
15146 if test "x$ac_cv_func_fork_works" = xcross
; then
15148 *-*-amigaos* |
*-*-msdosdjgpp*)
15149 # Override, as these systems have only a dummy fork() stub
15150 ac_cv_func_fork_works
=no
15153 ac_cv_func_fork_works
=yes
15156 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
15157 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
15159 ac_cv_func_vfork_works
=$ac_cv_func_vfork
15160 if test "x$ac_cv_func_vfork" = xyes
; then
15161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
15162 $as_echo_n "checking for working vfork... " >&6; }
15163 if test "${ac_cv_func_vfork_works+set}" = set; then :
15164 $as_echo_n "(cached) " >&6
15166 if test "$cross_compiling" = yes; then :
15167 ac_cv_func_vfork_works
=cross
15169 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15170 /* end confdefs.h. */
15171 /* Thanks to Paul Eggert for this test. */
15172 $ac_includes_default
15173 #include <sys/wait.h>
15174 #ifdef HAVE_VFORK_H
15175 # include <vfork.h>
15177 /* On some sparc systems, changes by the child to local and incoming
15178 argument registers are propagated back to the parent. The compiler
15179 is told about this with #include <vfork.h>, but some compilers
15180 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
15181 static variable whose address is put into a register that is
15182 clobbered by the vfork. */
15185 sparc_address_test (int arg)
15187 sparc_address_test (arg) int arg;
15190 static pid_t child;
15208 pid_t parent = getpid ();
15211 sparc_address_test (0);
15216 /* Here is another test for sparc vfork register problems. This
15217 test uses lots of local variables, at least as many local
15218 variables as main has allocated so far including compiler
15219 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
15220 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
15221 reuse the register of parent for one of the local variables,
15222 since it will think that parent can't possibly be used any more
15223 in this routine. Assigning to the local variable will thus
15224 munge parent in the parent process. */
15226 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
15227 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
15228 /* Convince the compiler that p..p7 are live; otherwise, it might
15229 use the same hardware register for all 8 local variables. */
15230 if (p != p1 || p != p2 || p != p3 || p != p4
15231 || p != p5 || p != p6 || p != p7)
15234 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
15235 from child file descriptors. If the child closes a descriptor
15236 before it execs or exits, this munges the parent's descriptor
15237 as well. Test for this by closing stdout in the child. */
15238 _exit(close(fileno(stdout)) != 0);
15243 while (wait(&status) != child)
15246 /* Was there some problem with vforking? */
15249 /* Did the child fail? (This shouldn't happen.) */
15252 /* Did the vfork/compiler bug occur? */
15253 || parent != getpid()
15255 /* Did the file descriptor bug occur? */
15256 || fstat(fileno(stdout), &st) != 0
15261 if ac_fn_c_try_run
"$LINENO"; then :
15262 ac_cv_func_vfork_works
=yes
15264 ac_cv_func_vfork_works
=no
15266 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15267 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
15272 $as_echo "$ac_cv_func_vfork_works" >&6; }
15275 if test "x$ac_cv_func_fork_works" = xcross
; then
15276 ac_cv_func_vfork_works
=$ac_cv_func_vfork
15277 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
15278 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
15281 if test "x$ac_cv_func_vfork_works" = xyes
; then
15283 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
15287 $as_echo "#define vfork fork" >>confdefs.h
15290 if test "x$ac_cv_func_fork_works" = xyes
; then
15292 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
15297 for ac_func
in snprintf
15299 ac_fn_c_check_func
"$LINENO" "snprintf" "ac_cv_func_snprintf"
15300 if test "x$ac_cv_func_snprintf" = x
""yes; then :
15301 cat >>confdefs.h
<<_ACEOF
15302 #define HAVE_SNPRINTF 1
15309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
15310 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
15311 if test "${emacs_cv_langinfo_codeset+set}" = set; then :
15312 $as_echo_n "(cached) " >&6
15314 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15315 /* end confdefs.h. */
15316 #include <langinfo.h>
15320 char* cs = nl_langinfo(CODESET);
15325 if ac_fn_c_try_link
"$LINENO"; then :
15326 emacs_cv_langinfo_codeset
=yes
15328 emacs_cv_langinfo_codeset
=no
15330 rm -f core conftest.err conftest.
$ac_objext \
15331 conftest
$ac_exeext conftest.
$ac_ext
15334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
15335 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
15336 if test $emacs_cv_langinfo_codeset = yes; then
15338 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
15342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
15343 $as_echo_n "checking for mbstate_t... " >&6; }
15344 if test "${ac_cv_type_mbstate_t+set}" = set; then :
15345 $as_echo_n "(cached) " >&6
15347 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15348 /* end confdefs.h. */
15349 $ac_includes_default
15350 # include <wchar.h>
15354 mbstate_t x; return sizeof x;
15359 if ac_fn_c_try_compile
"$LINENO"; then :
15360 ac_cv_type_mbstate_t
=yes
15362 ac_cv_type_mbstate_t
=no
15364 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
15367 $as_echo "$ac_cv_type_mbstate_t" >&6; }
15368 if test $ac_cv_type_mbstate_t = yes; then
15370 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
15374 $as_echo "#define mbstate_t int" >>confdefs.h
15378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
15379 $as_echo_n "checking for C restricted array declarations... " >&6; }
15380 if test "${emacs_cv_c_restrict_arr+set}" = set; then :
15381 $as_echo_n "(cached) " >&6
15383 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15384 /* end confdefs.h. */
15385 void fred (int x[__restrict]);
15394 if ac_fn_c_try_compile
"$LINENO"; then :
15395 emacs_cv_c_restrict_arr
=yes
15397 emacs_cv_c_restrict_arr
=no
15399 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
15402 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
15403 if test "$emacs_cv_c_restrict_arr" = yes; then
15405 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
15411 $as_echo "#define AMPERSAND_FULL_NAME 1" >>confdefs.h
15415 $as_echo "#define CLASH_DETECTION 1" >>confdefs.h
15418 ## Note: PTYs are broken on darwin <6. Use at your own risk.
15420 $as_echo "#define HAVE_PTYS 1" >>confdefs.h
15424 $as_echo "#define HAVE_SOCKETS 1" >>confdefs.h
15430 $as_echo "#define NULL_DEVICE \"/dev/null\"" >>confdefs.h
15434 $as_echo "#define SEPCHAR ':'" >>confdefs.h
15438 $as_echo "#define subprocesses 1" >>confdefs.h
15442 $as_echo "#define USER_FULL_NAME pw->pw_gecos" >>confdefs.h
15447 $as_echo "#define DIRECTORY_SEP '/'" >>confdefs.h
15453 $as_echo "#define IS_DEVICE_SEP(_c_) 0" >>confdefs.h
15457 $as_echo "#define IS_DIRECTORY_SEP(_c_) ((_c_) == DIRECTORY_SEP)" >>confdefs.h
15461 $as_echo "#define IS_ANY_SEP(_c_) (IS_DIRECTORY_SEP (_c_))" >>confdefs.h
15469 if test x
$ac_cv_lib_Xmu_XmuConvertStandardSelection != xyes
; then
15470 $as_echo "#define NO_EDITRES 1" >>confdefs.h
15476 $as_echo "#define NO_EDITRES 1" >>confdefs.h
15483 irix6-5 | sol2
* | unixware
)
15485 $as_echo "#define NSIG_MINIMUM 32" >>confdefs.h
15490 emacs_broken_SIGIO
=no
15493 hpux
* | irix6-5 | openbsd | sol2
* | unixware
)
15494 emacs_broken_SIGIO
=yes
15499 $as_echo "#define BROKEN_GET_CURRENT_DIR_NAME 1" >>confdefs.h
15505 $as_echo "#define BROKEN_PTY_READ_AFTER_EAGAIN 1" >>confdefs.h
15513 $as_echo "#define HAVE_PROCFS 1" >>confdefs.h
15519 darwin | freebsd | netbsd | openbsd
)
15521 $as_echo "#define DONT_REOPEN_PTY 1" >>confdefs.h
15527 netbsd | openbsd
) sound_device
="/dev/audio" ;;
15528 *) sound_device
="/dev/dsp" ;;
15532 cat >>confdefs.h
<<_ACEOF
15533 #define DEFAULT_SOUND_DEVICE "$sound_device"
15539 darwin | gnu-linux | gnu-kfreebsd
)
15541 $as_echo "#define INTERRUPT_INPUT 1" >>confdefs.h
15548 cygwin|gnu|gnu-linux|gnu-kfreebsd|irix6-5|freebsd|netbsd|openbsd
)
15550 $as_echo "#define NARROWPROTO 1" >>confdefs.h
15564 $as_echo "#define PTY_ITERATION int c; for (c = 0; !c ; c++)" >>confdefs.h
15566 $as_echo "#define PTY_NAME_SPRINTF strcpy (pty_name, \"/dev/ptc\");" >>confdefs.h
15568 $as_echo "#define PTY_TTY_NAME_SPRINTF strcpy (pty_name, ttyname (fd));" >>confdefs.h
15573 $as_echo "#define PTY_ITERATION int i; for (i = 0; i < 1; i++)" >>confdefs.h
15575 $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
15577 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
15579 $as_echo "#define PTY_TTY_NAME_SPRINTF /**/" >>confdefs.h
15584 $as_echo "#define PTY_ITERATION int i; for (i = 0; i < 1; i++)" >>confdefs.h
15586 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
15588 $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
15590 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
15592 $as_echo "#define PTY_TTY_NAME_SPRINTF /**/" >>confdefs.h
15597 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
15601 gnu-linux | gnu-kfreebsd | freebsd | netbsd
)
15602 if test "x$ac_cv_func_grantpt" = xyes
; then
15604 $as_echo "#define UNIX98_PTYS 1" >>confdefs.h
15606 $as_echo "#define PTY_ITERATION int i; for (i = 0; i < 1; i++)" >>confdefs.h
15608 $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
15610 if test "x$ac_cv_func_posix_openpt" = xyes
; then
15611 $as_echo "#define PTY_OPEN fd = posix_openpt (O_RDWR | O_NOCTTY)" >>confdefs.h
15613 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
15615 elif test "x$ac_cv_func_getpt" = xyes
; then
15616 $as_echo "#define PTY_OPEN fd = getpt ()" >>confdefs.h
15618 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
15621 $as_echo "#define PTY_NAME_SPRINTF strcpy (pty_name, \"/dev/ptmx\");" >>confdefs.h
15625 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
15631 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
15633 $as_echo "#define PTY_NAME_SPRINTF sprintf (pty_name, \"/dev/ptym/pty%c%x\", c, i);" >>confdefs.h
15635 $as_echo "#define PTY_TTY_NAME_SPRINTF sprintf (pty_name, \"/dev/pty/tty%c%x\", c, i);" >>confdefs.h
15640 $as_echo "#define PTY_ITERATION /**/" >>confdefs.h
15642 $as_echo "#define FIRST_PTY_LETTER 'q'" >>confdefs.h
15644 $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
15646 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
15648 $as_echo "#define PTY_TTY_NAME_SPRINTF /**/" >>confdefs.h
15653 $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
15658 $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
15666 $as_echo "#define FIRST_PTY_LETTER 'z'" >>confdefs.h
15668 $as_echo "#define PTY_NAME_SPRINTF strcpy (pty_name, \"/dev/ptmx\");" >>confdefs.h
15671 $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
15680 aix4-2 | cygwin | gnu | irix6-5 | freebsd | netbsd | openbsd | darwin
)
15681 $as_echo "#define SIGNALS_VIA_CHARACTERS 1" >>confdefs.h
15685 gnu-linux | gnu-kfreebsd
)
15687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signals via characters" >&5
15688 $as_echo_n "checking for signals via characters... " >&6; }
15689 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15690 /* end confdefs.h. */
15692 #include <linux/version.h>
15693 #if LINUX_VERSION_CODE < 0x20400
15694 # error "Linux version too old"
15705 if ac_fn_c_try_cpp
"$LINENO"; then :
15706 emacs_signals_via_chars
=yes
15708 emacs_signals_via_chars
=no
15710 rm -f conftest.err conftest.
$ac_ext
15712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_signals_via_chars" >&5
15713 $as_echo "$emacs_signals_via_chars" >&6; }
15714 test $emacs_signals_via_chars = yes && $as_echo "#define SIGNALS_VIA_CHARACTERS 1" >>confdefs.h
15725 $as_echo "#define DATA_START ({ extern int data_start; (char *) &data_start; })" >>confdefs.h
15730 $as_echo "#define DATA_START 0x40000000" >>confdefs.h
15732 $as_echo "#define DATA_SEG_BITS 0x40000000" >>confdefs.h
15736 $as_echo "#define DATA_START 0x10000000" >>confdefs.h
15738 $as_echo "#define DATA_SEG_BITS 0x10000000" >>confdefs.h
15747 darwin
) $as_echo "#define TAB3 OXTABS" >>confdefs.h
15750 gnu | freebsd | netbsd | openbsd
)
15752 $as_echo "#define TABDLY OXTABS" >>confdefs.h
15754 $as_echo "#define TAB3 OXTABS" >>confdefs.h
15758 gnu-linux | gnu-kfreebsd
)
15759 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15760 /* end confdefs.h. */
15774 if ac_fn_c_try_cpp
"$LINENO"; then :
15776 $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
15779 rm -f conftest.err conftest.
$ac_ext
15784 $as_echo "#define RUN_TIME_REMAP 1" >>confdefs.h
15794 gnu-linux | gnu-kfreebsd
)
15795 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15796 /* end confdefs.h. */
15798 #if defined __i386__ || defined __sparc__ || defined __mc68000__ \
15799 || defined __alpha__ || defined __mips__ || defined __s390__ \
15800 || defined __arm__ || defined __powerpc__ || defined __amd64__ \
15801 || defined __ia64__ || defined __sh__
15804 # error "setjmp not known to work on this arch"
15815 if ac_fn_c_try_cpp
"$LINENO"; then :
15816 $as_echo "#define GC_SETJMP_WORKS 1" >>confdefs.h
15819 rm -f conftest.err conftest.
$ac_ext
15824 if test x
$GCC = xyes
; then
15825 $as_echo "#define GC_SETJMP_WORKS 1" >>confdefs.h
15829 freebsd | netbsd | openbsd | irix6-5 | sol2
* )
15830 $as_echo "#define GC_SETJMP_WORKS 1" >>confdefs.h
15835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _setjmp" >&5
15836 $as_echo_n "checking for _setjmp... " >&6; }
15837 if test "${emacs_cv_func__setjmp+set}" = set; then :
15838 $as_echo_n "(cached) " >&6
15840 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15841 /* end confdefs.h. */
15842 #include <setjmp.h>
15854 if ac_fn_c_try_link
"$LINENO"; then :
15855 emacs_cv_func__setjmp
=yes
15857 emacs_cv_func__setjmp
=no
15859 rm -f core conftest.err conftest.
$ac_objext \
15860 conftest
$ac_exeext conftest.
$ac_ext
15862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func__setjmp" >&5
15863 $as_echo "$emacs_cv_func__setjmp" >&6; }
15864 if test $emacs_cv_func__setjmp = yes; then
15866 $as_echo "#define HAVE__SETJMP 1" >>confdefs.h
15869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
15870 $as_echo_n "checking for sigsetjmp... " >&6; }
15871 if test "${emacs_cv_func_sigsetjmp+set}" = set; then :
15872 $as_echo_n "(cached) " >&6
15874 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15875 /* end confdefs.h. */
15876 #include <setjmp.h>
15882 if (! sigsetjmp (j, 1))
15888 if ac_fn_c_try_link
"$LINENO"; then :
15889 emacs_cv_func_sigsetjmp
=yes
15891 emacs_cv_func_sigsetjmp
=no
15893 rm -f core conftest.err conftest.
$ac_objext \
15894 conftest
$ac_exeext conftest.
$ac_ext
15896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func_sigsetjmp" >&5
15897 $as_echo "$emacs_cv_func_sigsetjmp" >&6; }
15898 if test $emacs_cv_func_sigsetjmp = yes; then
15900 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
15908 $as_echo "#define TIOCSIGSEND TIOCSIGNAL" >>confdefs.h
15917 $as_echo "#define XOS_NEEDS_TIME_H 1" >>confdefs.h
15932 $as_echo "#define USG /**/" >>confdefs.h
15934 $as_echo "#define USG5 /**/" >>confdefs.h
15936 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15937 /* end confdefs.h. */
15940 # error "_AIX not defined"
15951 if ac_fn_c_try_cpp
"$LINENO"; then :
15955 $as_echo "#define _AIX /**/" >>confdefs.h
15958 rm -f conftest.err conftest.
$ac_ext
15963 $as_echo "#define CYGWIN 1" >>confdefs.h
15968 $as_echo "#define BSD_SYSTEM /**/" >>confdefs.h
15971 $as_echo "#define DARWIN_OS /**/" >>confdefs.h
15977 $as_echo "#define BSD_SYSTEM_AHB 1" >>confdefs.h
15981 gnu | netbsd | openbsd
)
15982 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15983 /* end confdefs.h. */
15986 # error "BSD_SYSTEM not defined"
15997 if ac_fn_c_try_cpp
"$LINENO"; then :
16000 $as_echo "#define BSD_SYSTEM 43" >>confdefs.h
16003 rm -f conftest.err conftest.
$ac_ext
16006 gnu-linux | gnu-kfreebsd
)
16007 $as_echo "#define USG /**/" >>confdefs.h
16010 $as_echo "#define GNU_LINUX /**/" >>confdefs.h
16015 $as_echo "#define USG /**/" >>confdefs.h
16017 $as_echo "#define USG5 /**/" >>confdefs.h
16020 $as_echo "#define HPUX /**/" >>confdefs.h
16025 $as_echo "#define USG /**/" >>confdefs.h
16027 $as_echo "#define USG5 /**/" >>confdefs.h
16029 $as_echo "#define USG5_4 /**/" >>confdefs.h
16032 $as_echo "#define IRIX6_5 /**/" >>confdefs.h
16037 $as_echo "#define USG /**/" >>confdefs.h
16039 $as_echo "#define USG5 /**/" >>confdefs.h
16041 $as_echo "#define USG5_4 /**/" >>confdefs.h
16044 $as_echo "#define SOLARIS2 /**/" >>confdefs.h
16049 $as_echo "#define USG /**/" >>confdefs.h
16051 $as_echo "#define USG5 /**/" >>confdefs.h
16053 $as_echo "#define USG5_4 /**/" >>confdefs.h
16058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable FIONREAD" >&5
16059 $as_echo_n "checking for usable FIONREAD... " >&6; }
16060 if test "${emacs_cv_usable_FIONREAD+set}" = set; then :
16061 $as_echo_n "(cached) " >&6
16065 emacs_cv_usable_FIONREAD
=no
16069 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16070 /* end confdefs.h. */
16071 #include <sys/types.h>
16072 #include <sys/ioctl.h>
16074 # include <sys/filio.h>
16080 int foo = ioctl (0, FIONREAD, &foo);
16085 if ac_fn_c_try_compile
"$LINENO"; then :
16086 emacs_cv_usable_FIONREAD
=yes
16088 emacs_cv_usable_FIONREAD
=no
16090 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_usable_FIONREAD" >&5
16095 $as_echo "$emacs_cv_usable_FIONREAD" >&6; }
16096 if test $emacs_cv_usable_FIONREAD = yes; then
16098 $as_echo "#define USABLE_FIONREAD 1" >>confdefs.h
16101 if test $emacs_broken_SIGIO = no
; then
16102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable SIGIO" >&5
16103 $as_echo_n "checking for usable SIGIO... " >&6; }
16104 if test "${emacs_cv_usable_SIGIO+set}" = set; then :
16105 $as_echo_n "(cached) " >&6
16107 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16108 /* end confdefs.h. */
16110 #include <signal.h>
16115 int foo = SIGIO | F_SETFL | FASYNC;
16120 if ac_fn_c_try_compile
"$LINENO"; then :
16121 emacs_cv_usable_SIGIO
=yes
16123 emacs_cv_usable_SIGIO
=no
16125 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_usable_SIGIO" >&5
16128 $as_echo "$emacs_cv_usable_SIGIO" >&6; }
16129 if test $emacs_cv_usable_SIGIO = yes; then
16131 $as_echo "#define USABLE_SIGIO 1" >>confdefs.h
16141 $as_echo "#define G_SLICE_ALWAYS_MALLOC 1" >>confdefs.h
16147 $as_echo "#define USG_SUBTTY_WORKS 1" >>confdefs.h
16153 $as_echo "#define PREFER_VSUSP 1" >>confdefs.h
16159 $as_echo "#define _STRUCTURED_PROC 1" >>confdefs.h
16164 # Set up the CFLAGS for real compilation, so we can substitute it.
16165 CFLAGS
="$REAL_CFLAGS"
16166 CPPFLAGS
="$REAL_CPPFLAGS"
16168 ## Hack to detect a buggy GCC version.
16169 if test "x$GCC" = xyes \
16170 && test x
"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
16171 && test x
"`echo $CFLAGS | grep '\-O[23]'`" != x \
16172 && test x
"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x
; then
16173 as_fn_error
"GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
16176 version
=$PACKAGE_VERSION
16178 copyright
="Copyright (C) 2013 Free Software Foundation, Inc."
16180 cat >>confdefs.h
<<_ACEOF
16181 #define COPYRIGHT "$copyright"
16186 ### Specify what sort of things we'll be editing into Makefile and config.h.
16187 ### Use configuration here uncanonicalized to avoid exceeding size limits.
16213 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
16214 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
16215 ## end of LIBX_BASE, but nothing ever set it.
16220 ## Used in lwlib/Makefile.in.
16229 if test -n "${term_header}"; then
16231 cat >>confdefs.h
<<_ACEOF
16232 #define TERM_HEADER "${term_header}"
16238 cat >>confdefs.h
<<_ACEOF
16239 #define EMACS_CONFIGURATION "${canonical}"
16242 emacs_config_options
=`echo "$emacs_config_options " | sed -e 's/--no-create //' -e 's/--no-recursion //' -e 's/ *$//' -e "s/\"/'/g"`
16244 cat >>confdefs.h
<<_ACEOF
16245 #define EMACS_CONFIG_OPTIONS "${emacs_config_options}"
16253 if test "${HAVE_X_WINDOWS}" = "yes" ; then
16255 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
16258 XOBJ
="xterm.o xfns.o xselect.o xrdb.o xsmfns.o xsettings.o xgselect.o"
16260 if test "$HAVE_XFT" = "yes"; then
16261 FONT_OBJ
="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
16262 elif test "$HAVE_FREETYPE" = "yes"; then
16263 FONT_OBJ
="$FONT_OBJ ftfont.o ftxfont.o"
16273 if test "${USE_X_TOOLKIT}" != "none" ; then
16274 WIDGET_OBJ
=widget.o
16276 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
16278 if test "${USE_X_TOOLKIT}" = "LUCID"; then
16280 $as_echo "#define USE_LUCID 1" >>confdefs.h
16282 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
16284 $as_echo "#define USE_MOTIF 1" >>confdefs.h
16289 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
16290 MOTIF_LIBW
="$MOTIF_LIBW -lXpm"
16294 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
16295 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
16296 MOTIF_LIBW
="MOTIF_LIBW -lXimp"
16300 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
16301 MOTIF_LIBW
="$MOTIF_LIBW -li18n"
16304 MOTIF_LIBW
="$MOTIF_LIBW $LIBXP"
16310 case "$USE_X_TOOLKIT" in
16311 MOTIF
) TOOLKIT_LIBW
="$MOTIF_LIBW" ;;
16312 LUCID
) TOOLKIT_LIBW
="$LUCID_LIBW" ;;
16313 none
) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW
="$GTK_LIBS" ;;
16317 if test "$USE_X_TOOLKIT" = "none"; then
16318 LIBXT_OTHER
="\$(LIBXSM)"
16319 OLDXMENU_TARGET
="really-oldXMenu"
16321 LIBXT_OTHER
="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
16322 OLDXMENU_TARGET
="really-lwlib"
16326 ## The X Menu stuff is present in the X10 distribution, but missing
16327 ## from X11. If we have X10, just use the installed library;
16328 ## otherwise, use our own copy.
16329 if test "${HAVE_X11}" = "yes" ; then
16331 $as_echo "#define HAVE_X11 1" >>confdefs.h
16334 if test "$USE_X_TOOLKIT" = "none"; then
16335 OLDXMENU
="\${oldXMenudir}/libXMenu11.a"
16337 OLDXMENU
="\${lwlibdir}/liblw.a"
16339 LIBXMENU
="\$(OLDXMENU)"
16340 LIBX_OTHER
="\$(LIBXT) \$(LIBX_EXTRA)"
16341 OLDXMENU_DEPS
="\${OLDXMENU} ../src/\${OLDXMENU}"
16343 ## For a syntactically valid Makefile; not actually used for anything.
16344 ## See comments in src/Makefile.in.
16346 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
16347 if test "${HAVE_X_WINDOWS}" = "yes"; then
16356 if test "$HAVE_GTK" = "yes" ||
test "$HAVE_MENUS" != "yes"; then
16369 if test "${HAVE_MENUS}" = "yes" ; then
16371 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
16375 if test "${GNU_MALLOC}" = "yes" ; then
16377 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
16382 if test "${REL_ALLOC}" = "yes" ; then
16384 $as_echo "#define REL_ALLOC 1" >>confdefs.h
16387 test "$system_malloc" != "yes" && RALLOC_OBJ
=ralloc.o
16391 if test "$opsys" = "cygwin"; then
16392 CYGWIN_OBJ
="sheap.o cygw32.o"
16393 ## Cygwin differs because of its unexec().
16395 POST_ALLOC_OBJ
=lastfile.o
16398 PRE_ALLOC_OBJ
=lastfile.o
16405 # Configure gnulib. Although this does not affect CFLAGS or LIBS permanently.
16406 # it temporarily reverts them to their pre-pkg-config values,
16407 # because gnulib needs to work with both src (which uses the
16408 # pkg-config stuff) and lib-src (which does not). For example, gnulib
16409 # may need to determine whether LIB_CLOCK_GETTIME should contain -lrt,
16410 # and it therefore needs to run in an environment where LIBS does not
16411 # already contain -lrt merely because 'pkg-config --libs' printed '-lrt'
16412 # for some package unrelated to lib-src.
16413 SAVE_CFLAGS
=$CFLAGS
16415 CFLAGS
=$pre_PKG_CONFIG_CFLAGS
16416 LIBS
="$LIB_PTHREAD $pre_PKG_CONFIG_LIBS"
16428 LIBC_FATAL_STDERR_
=1
16429 export LIBC_FATAL_STDERR_
16431 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16432 # for constant arguments. Useless!
16433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
16434 $as_echo_n "checking for working alloca.h... " >&6; }
16435 if test "${ac_cv_working_alloca_h+set}" = set; then :
16436 $as_echo_n "(cached) " >&6
16438 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16439 /* end confdefs.h. */
16440 #include <alloca.h>
16444 char *p = (char *) alloca (2 * sizeof (int));
16450 if ac_fn_c_try_link
"$LINENO"; then :
16451 ac_cv_working_alloca_h
=yes
16453 ac_cv_working_alloca_h
=no
16455 rm -f core conftest.err conftest.
$ac_objext \
16456 conftest
$ac_exeext conftest.
$ac_ext
16458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
16459 $as_echo "$ac_cv_working_alloca_h" >&6; }
16460 if test $ac_cv_working_alloca_h = yes; then
16462 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
16466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
16467 $as_echo_n "checking for alloca... " >&6; }
16468 if test "${ac_cv_func_alloca_works+set}" = set; then :
16469 $as_echo_n "(cached) " >&6
16471 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16472 /* end confdefs.h. */
16474 # define alloca __builtin_alloca
16477 # include <malloc.h>
16478 # define alloca _alloca
16480 # ifdef HAVE_ALLOCA_H
16481 # include <alloca.h>
16486 # ifndef alloca /* predefined by HP cc +Olibcalls */
16497 char *p = (char *) alloca (1);
16503 if ac_fn_c_try_link
"$LINENO"; then :
16504 ac_cv_func_alloca_works
=yes
16506 ac_cv_func_alloca_works
=no
16508 rm -f core conftest.err conftest.
$ac_objext \
16509 conftest
$ac_exeext conftest.
$ac_ext
16511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
16512 $as_echo "$ac_cv_func_alloca_works" >&6; }
16514 if test $ac_cv_func_alloca_works = yes; then
16516 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
16519 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16520 # that cause trouble. Some versions do not even contain alloca or
16521 # contain a buggy version. If you still want to use their alloca,
16522 # use ar to extract alloca.o from them instead of compiling alloca.c.
16528 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
16530 $as_echo "#define C_ALLOCA 1" >>confdefs.h
16533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 'alloca.c' needs Cray hooks" >&5
16534 $as_echo_n "checking whether 'alloca.c' needs Cray hooks... " >&6; }
16535 if test "${ac_cv_os_cray+set}" = set; then :
16536 $as_echo_n "(cached) " >&6
16538 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16539 /* end confdefs.h. */
16540 #if defined CRAY && ! defined CRAY2
16547 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16548 $EGREP "webecray" >/dev
/null
2>&1; then :
16556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
16557 $as_echo "$ac_cv_os_cray" >&6; }
16558 if test $ac_cv_os_cray = yes; then
16559 for ac_func
in _getb67 GETB67 getb67
; do
16560 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16561 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
16562 eval as_val
=\$
$as_ac_var
16563 if test "x$as_val" = x
""yes; then :
16565 cat >>confdefs.h
<<_ACEOF
16566 #define CRAY_STACKSEG_END $ac_func
16575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
16576 $as_echo_n "checking stack direction for C alloca... " >&6; }
16577 if test "${ac_cv_c_stack_direction+set}" = set; then :
16578 $as_echo_n "(cached) " >&6
16580 if test "$cross_compiling" = yes; then :
16581 ac_cv_c_stack_direction
=0
16583 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16584 /* end confdefs.h. */
16585 $ac_includes_default
16587 find_stack_direction (int *addr, int depth)
16589 int dir, dummy = 0;
16592 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
16593 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
16594 return dir + dummy;
16598 main (int argc, char **argv)
16600 return find_stack_direction (0, argc + !argv + 20) < 0;
16603 if ac_fn_c_try_run
"$LINENO"; then :
16604 ac_cv_c_stack_direction
=1
16606 ac_cv_c_stack_direction
=-1
16608 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16609 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
16614 $as_echo "$ac_cv_c_stack_direction" >&6; }
16615 cat >>confdefs.h
<<_ACEOF
16616 #define STACK_DIRECTION $ac_cv_c_stack_direction
16625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
16626 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
16627 if test "${ac_cv_c_bigendian+set}" = set; then :
16628 $as_echo_n "(cached) " >&6
16630 ac_cv_c_bigendian
=unknown
16631 # See if we're dealing with a universal compiler.
16632 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16633 /* end confdefs.h. */
16634 #ifndef __APPLE_CC__
16635 not a universal capable compiler
16640 if ac_fn_c_try_compile
"$LINENO"; then :
16642 # Check for potential -arch flags. It is not universal unless
16643 # there are at least two -arch flags with different values.
16646 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
16647 if test -n "$ac_prev"; then
16649 i?
86 | x86_64 | ppc | ppc64
)
16650 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
16653 ac_cv_c_bigendian
=universal
16659 elif test "x$ac_word" = "x-arch"; then
16664 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16665 if test $ac_cv_c_bigendian = unknown
; then
16666 # See if sys/param.h defines the BYTE_ORDER macro.
16667 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16668 /* end confdefs.h. */
16669 #include <sys/types.h>
16670 #include <sys/param.h>
16675 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
16676 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
16678 bogus endian macros
16685 if ac_fn_c_try_compile
"$LINENO"; then :
16686 # It does; now see whether it defined to BIG_ENDIAN or not.
16687 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16688 /* end confdefs.h. */
16689 #include <sys/types.h>
16690 #include <sys/param.h>
16695 #if BYTE_ORDER != BIG_ENDIAN
16703 if ac_fn_c_try_compile
"$LINENO"; then :
16704 ac_cv_c_bigendian
=yes
16706 ac_cv_c_bigendian
=no
16708 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16710 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16712 if test $ac_cv_c_bigendian = unknown
; then
16713 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
16714 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16715 /* end confdefs.h. */
16716 #include <limits.h>
16721 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
16722 bogus endian macros
16729 if ac_fn_c_try_compile
"$LINENO"; then :
16730 # It does; now see whether it defined to _BIG_ENDIAN or not.
16731 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16732 /* end confdefs.h. */
16733 #include <limits.h>
16738 #ifndef _BIG_ENDIAN
16746 if ac_fn_c_try_compile
"$LINENO"; then :
16747 ac_cv_c_bigendian
=yes
16749 ac_cv_c_bigendian
=no
16751 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16753 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16755 if test $ac_cv_c_bigendian = unknown
; then
16756 # Compile a test program.
16757 if test "$cross_compiling" = yes; then :
16758 # Try to guess by grepping values from an object file.
16759 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16760 /* end confdefs.h. */
16761 short int ascii_mm[] =
16762 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
16763 short int ascii_ii[] =
16764 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
16765 int use_ascii (int i) {
16766 return ascii_mm[i] + ascii_ii[i];
16768 short int ebcdic_ii[] =
16769 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
16770 short int ebcdic_mm[] =
16771 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
16772 int use_ebcdic (int i) {
16773 return ebcdic_mm[i] + ebcdic_ii[i];
16780 return use_ascii (foo) == use_ebcdic (foo);
16785 if ac_fn_c_try_compile
"$LINENO"; then :
16786 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
16787 ac_cv_c_bigendian
=yes
16789 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
16790 if test "$ac_cv_c_bigendian" = unknown
; then
16791 ac_cv_c_bigendian
=no
16793 # finding both strings is unlikely to happen, but who knows?
16794 ac_cv_c_bigendian
=unknown
16798 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16800 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16801 /* end confdefs.h. */
16802 $ac_includes_default
16807 /* Are we little or big endian? From Harbison&Steele. */
16811 char c[sizeof (long int)];
16814 return u.c[sizeof (long int) - 1] == 1;
16820 if ac_fn_c_try_run
"$LINENO"; then :
16821 ac_cv_c_bigendian
=no
16823 ac_cv_c_bigendian
=yes
16825 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16826 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
16832 $as_echo "$ac_cv_c_bigendian" >&6; }
16833 case $ac_cv_c_bigendian in #(
16835 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
16841 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
16845 as_fn_error
"unknown endianness
16846 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
16858 GNULIB_EUIDACCESS
=0;
16859 GNULIB_FACCESSAT
=0;
16862 GNULIB_FDATASYNC
=0;
16864 GNULIB_FTRUNCATE
=0;
16866 GNULIB_GETDOMAINNAME
=0;
16867 GNULIB_GETDTABLESIZE
=0;
16868 GNULIB_GETGROUPS
=0;
16869 GNULIB_GETHOSTNAME
=0;
16871 GNULIB_GETLOGIN_R
=0;
16872 GNULIB_GETPAGESIZE
=0;
16873 GNULIB_GETUSERSHELL
=0;
16874 GNULIB_GROUP_MEMBER
=0;
16886 GNULIB_READLINKAT
=0;
16888 GNULIB_SETHOSTNAME
=0;
16891 GNULIB_SYMLINKAT
=0;
16892 GNULIB_TTYNAME_R
=0;
16893 GNULIB_UNISTD_H_NONBLOCKING
=0;
16894 GNULIB_UNISTD_H_SIGPIPE
=0;
16909 HAVE_GETDTABLESIZE
=1;
16911 HAVE_GETHOSTNAME
=1;
16913 HAVE_GETPAGESIZE
=1;
16914 HAVE_GROUP_MEMBER
=1;
16924 HAVE_SETHOSTNAME
=1;
16930 HAVE_DECL_ENVIRON
=1;
16931 HAVE_DECL_FCHDIR
=1;
16932 HAVE_DECL_FDATASYNC
=1;
16933 HAVE_DECL_GETDOMAINNAME
=1;
16934 HAVE_DECL_GETLOGIN_R
=1;
16935 HAVE_DECL_GETPAGESIZE
=1;
16936 HAVE_DECL_GETUSERSHELL
=1;
16937 HAVE_DECL_SETHOSTNAME
=1;
16938 HAVE_DECL_TTYNAME_R
=1;
16940 HAVE_SYS_PARAM_H
=0;
16945 REPLACE_FCHOWNAT
=0;
16946 REPLACE_FTRUNCATE
=0;
16948 REPLACE_GETDOMAINNAME
=0;
16949 REPLACE_GETLOGIN_R
=0;
16950 REPLACE_GETGROUPS
=0;
16951 REPLACE_GETPAGESIZE
=0;
16960 REPLACE_READLINK
=0;
16964 REPLACE_TTYNAME_R
=0;
16966 REPLACE_UNLINKAT
=0;
16969 UNISTD_H_HAVE_WINSOCK2_H
=0;
16970 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
=0;
16976 GNULIB_REWINDDIR
=0;
16979 GNULIB_FDOPENDIR
=0;
16981 GNULIB_ALPHASORT
=0;
16987 HAVE_DECL_FDOPENDIR
=1;
16992 REPLACE_CLOSEDIR
=0;
16994 REPLACE_FDOPENDIR
=0;
16998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
16999 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
17000 if test "${gl_cv_have_include_next+set}" = set; then :
17001 $as_echo_n "(cached) " >&6
17003 rm -rf conftestd1a conftestd1b conftestd2
17004 mkdir conftestd1a conftestd1b conftestd2
17005 cat <<EOF > conftestd1a/conftest.h
17006 #define DEFINED_IN_CONFTESTD1
17007 #include_next <conftest.h>
17008 #ifdef DEFINED_IN_CONFTESTD2
17011 #error "include_next doesn't work"
17014 cat <<EOF > conftestd1b/conftest.h
17015 #define DEFINED_IN_CONFTESTD1
17017 #include_next <conftest.h>
17018 #ifdef DEFINED_IN_CONFTESTD2
17021 #error "include_next doesn't work"
17024 cat <<EOF > conftestd2/conftest.h
17025 #ifndef DEFINED_IN_CONFTESTD1
17026 #error "include_next test doesn't work"
17028 #define DEFINED_IN_CONFTESTD2
17030 gl_save_CPPFLAGS
="$CPPFLAGS"
17031 CPPFLAGS
="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
17032 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17033 /* end confdefs.h. */
17034 #include <conftest.h>
17036 if ac_fn_c_try_compile
"$LINENO"; then :
17037 gl_cv_have_include_next
=yes
17039 CPPFLAGS
="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
17040 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17041 /* end confdefs.h. */
17042 #include <conftest.h>
17044 if ac_fn_c_try_compile
"$LINENO"; then :
17045 gl_cv_have_include_next
=buggy
17047 gl_cv_have_include_next
=no
17049 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17052 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17053 CPPFLAGS
="$gl_save_CPPFLAGS"
17054 rm -rf conftestd1a conftestd1b conftestd2
17057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
17058 $as_echo "$gl_cv_have_include_next" >&6; }
17059 PRAGMA_SYSTEM_HEADER
=
17060 if test $gl_cv_have_include_next = yes; then
17061 INCLUDE_NEXT
=include_next
17062 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include_next
17063 if test -n "$GCC"; then
17064 PRAGMA_SYSTEM_HEADER
='#pragma GCC system_header'
17067 if test $gl_cv_have_include_next = buggy
; then
17068 INCLUDE_NEXT
=include
17069 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include_next
17071 INCLUDE_NEXT
=include
17072 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include
17078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
17079 $as_echo_n "checking whether system header files limit the line length... " >&6; }
17080 if test "${gl_cv_pragma_columns+set}" = set; then :
17081 $as_echo_n "(cached) " >&6
17083 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17084 /* end confdefs.h. */
17091 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17092 $EGREP "choke me" >/dev
/null
2>&1; then :
17093 gl_cv_pragma_columns
=yes
17095 gl_cv_pragma_columns
=no
17101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
17102 $as_echo "$gl_cv_pragma_columns" >&6; }
17103 if test $gl_cv_pragma_columns = yes; then
17104 PRAGMA_COLUMNS
="#pragma COLUMNS 10000"
17113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtold conforms to C99" >&5
17114 $as_echo_n "checking whether strtold conforms to C99... " >&6; }
17115 if test "${gl_cv_func_c99_strtold+set}" = set; then :
17116 $as_echo_n "(cached) " >&6
17118 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17119 /* end confdefs.h. */
17120 /* On HP-UX before 11.23, strtold returns a struct instead of
17121 long double. Reject implementations like that, by requiring
17122 compatibility with the C99 prototype. */
17123 #include <stdlib.h>
17124 static long double (*p) (char const *, char **) = strtold;
17126 test (char const *nptr, char **endptr)
17129 r = strtold (nptr, endptr);
17135 return test ("1.0", NULL) != 1 || p ("1.0", NULL) != 1;
17140 if ac_fn_c_try_link
"$LINENO"; then :
17141 gl_cv_func_c99_strtold
=yes
17143 gl_cv_func_c99_strtold
=no
17145 rm -f core conftest.err conftest.
$ac_objext \
17146 conftest
$ac_exeext conftest.
$ac_ext
17148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_c99_strtold" >&5
17149 $as_echo "$gl_cv_func_c99_strtold" >&6; }
17150 if test $gl_cv_func_c99_strtold = yes; then
17152 $as_echo "#define HAVE_C99_STRTOLD 1" >>confdefs.h
17163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if environ is properly declared" >&5
17164 $as_echo_n "checking if environ is properly declared... " >&6; }
17165 if test "${gt_cv_var_environ_declaration+set}" = set; then :
17166 $as_echo_n "(cached) " >&6
17169 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17170 /* end confdefs.h. */
17172 #include <unistd.h>
17174 /* mingw, BeOS, Haiku declare environ in <stdlib.h>, not in <unistd.h>. */
17175 #include <stdlib.h>
17177 extern struct { int foo; } environ;
17186 if ac_fn_c_try_compile
"$LINENO"; then :
17187 gt_cv_var_environ_declaration
=no
17189 gt_cv_var_environ_declaration
=yes
17191 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_var_environ_declaration" >&5
17195 $as_echo "$gt_cv_var_environ_declaration" >&6; }
17196 if test $gt_cv_var_environ_declaration = yes; then
17198 $as_echo "#define HAVE_ENVIRON_DECL 1" >>confdefs.h
17203 if test $gt_cv_var_environ_declaration != yes; then
17204 HAVE_DECL_ENVIRON
=0
17216 GNULIB_NONBLOCKING
=0;
17226 ac_fn_c_check_type
"$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
17227 if test "x$ac_cv_type_mode_t" = x
""yes; then :
17231 cat >>confdefs.h
<<_ACEOF
17239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_dm_mode in struct stat" >&5
17240 $as_echo_n "checking for st_dm_mode in struct stat... " >&6; }
17241 if test "${ac_cv_struct_st_dm_mode+set}" = set; then :
17242 $as_echo_n "(cached) " >&6
17244 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17245 /* end confdefs.h. */
17247 #include <sys/types.h>
17248 #include <sys/stat.h>
17252 struct stat s; s.st_dm_mode;
17257 if ac_fn_c_try_compile
"$LINENO"; then :
17258 ac_cv_struct_st_dm_mode
=yes
17260 ac_cv_struct_st_dm_mode
=no
17262 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_st_dm_mode" >&5
17265 $as_echo "$ac_cv_struct_st_dm_mode" >&6; }
17267 if test $ac_cv_struct_st_dm_mode = yes; then
17269 $as_echo "#define HAVE_ST_DM_MODE 1" >>confdefs.h
17274 ac_fn_c_check_decl
"$LINENO" "strmode" "ac_cv_have_decl_strmode" "$ac_includes_default"
17275 if test "x$ac_cv_have_decl_strmode" = x
""yes; then :
17281 cat >>confdefs.h
<<_ACEOF
17282 #define HAVE_DECL_STRMODE $ac_have_decl
17302 GNULIB_UTIMENSAT
=0;
17316 REPLACE_FUTIMENS
=0;
17322 REPLACE_UTIMENSAT
=0;
17325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
17326 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
17327 if test "${gl_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
17328 $as_echo_n "(cached) " >&6
17330 rm -f conftest.sym conftest.
file
17331 echo >conftest.
file
17332 if test "$as_ln_s" = "ln -s" && ln -s conftest.
file conftest.sym
; then
17333 if test "$cross_compiling" = yes; then :
17335 # Guess yes on glibc systems.
17336 *-gnu*) gl_cv_func_lstat_dereferences_slashed_symlink
="guessing yes" ;;
17337 # If we don't know, assume the worst.
17338 *) gl_cv_func_lstat_dereferences_slashed_symlink
="guessing no" ;;
17342 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17343 /* end confdefs.h. */
17344 $ac_includes_default
17349 /* Linux will dereference the symlink and fail, as required by
17350 POSIX. That is better in the sense that it means we will not
17351 have to compile and use the lstat wrapper. */
17352 return lstat ("conftest.sym/", &sbuf) == 0;
17358 if ac_fn_c_try_run
"$LINENO"; then :
17359 gl_cv_func_lstat_dereferences_slashed_symlink
=yes
17361 gl_cv_func_lstat_dereferences_slashed_symlink
=no
17363 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17364 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17368 # If the 'ln -s' command failed, then we probably don't even
17369 # have an lstat function.
17370 gl_cv_func_lstat_dereferences_slashed_symlink
="guessing no"
17372 rm -f conftest.sym conftest.
file
17375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
17376 $as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
17377 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
17380 cat >>confdefs.h
<<_ACEOF
17381 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
17392 GNULIB_CALLOC_POSIX
=0;
17393 GNULIB_CANONICALIZE_FILE_NAME
=0;
17394 GNULIB_GETLOADAVG
=0;
17395 GNULIB_GETSUBOPT
=0;
17397 GNULIB_MALLOC_POSIX
=0;
17401 GNULIB_MKOSTEMPS
=0;
17404 GNULIB_POSIX_OPENPT
=0;
17406 GNULIB_PTSNAME_R
=0;
17410 GNULIB_REALLOC_POSIX
=0;
17413 GNULIB_SECURE_GETENV
=0;
17418 GNULIB_SYSTEM_POSIX
=0;
17424 HAVE_CANONICALIZE_FILE_NAME
=1;
17425 HAVE_DECL_GETLOADAVG
=1;
17433 HAVE_POSIX_OPENPT
=1;
17441 HAVE_SECURE_GETENV
=1;
17443 HAVE_DECL_SETENV
=1;
17447 HAVE_STRUCT_RANDOM_DATA
=1;
17448 HAVE_SYS_LOADAVG_H
=0;
17450 HAVE_DECL_UNSETENV
=1;
17452 REPLACE_CANONICALIZE_FILE_NAME
=0;
17457 REPLACE_PTSNAME_R
=0;
17459 REPLACE_RANDOM_R
=0;
17461 REPLACE_REALPATH
=0;
17464 REPLACE_UNSETENV
=0;
17482 if test $gl_cv_have_include_next = yes; then
17483 gl_cv_next_getopt_h
='<'getopt.h
'>'
17485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
17486 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
17487 if test "${gl_cv_next_getopt_h+set}" = set; then :
17488 $as_echo_n "(cached) " >&6
17491 if test $ac_cv_header_getopt_h = yes; then
17494 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17495 /* end confdefs.h. */
17496 #include <getopt.h>
17500 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
17501 *) gl_absname_cpp
="$ac_cpp" ;;
17506 gl_dirsep_regex
='[/\\]'
17509 gl_dirsep_regex
='\/'
17512 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
17514 gl_header_literal_regex
=`echo 'getopt.h' \
17515 | sed -e "$gl_make_literal_regex_sed"`
17516 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17517 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17522 gl_cv_next_getopt_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17523 sed -n "$gl_absolute_header_sed"`'"'
17525 gl_cv_next_getopt_h
='<'getopt.h
'>'
17530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
17531 $as_echo "$gl_cv_next_getopt_h" >&6; }
17533 NEXT_GETOPT_H
=$gl_cv_next_getopt_h
17535 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
17536 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17537 gl_next_as_first_directive
='<'getopt.h
'>'
17539 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17540 gl_next_as_first_directive
=$gl_cv_next_getopt_h
17542 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
=$gl_next_as_first_directive
17547 if test $ac_cv_header_getopt_h = yes; then
17556 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
17557 for ac_header
in getopt.h
17559 ac_fn_c_check_header_mongrel
"$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
17560 if test "x$ac_cv_header_getopt_h" = x
""yes; then :
17561 cat >>confdefs.h
<<_ACEOF
17562 #define HAVE_GETOPT_H 1
17566 gl_replace_getopt
=yes
17573 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
17574 for ac_func
in getopt_long_only
17576 ac_fn_c_check_func
"$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
17577 if test "x$ac_cv_func_getopt_long_only" = x
""yes; then :
17578 cat >>confdefs.h
<<_ACEOF
17579 #define HAVE_GETOPT_LONG_ONLY 1
17583 gl_replace_getopt
=yes
17589 if test -z "$gl_replace_getopt"; then
17590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
17591 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
17592 if test "${gl_cv_func_getopt_posix+set}" = set; then :
17593 $as_echo_n "(cached) " >&6
17596 if test $cross_compiling = no
; then
17597 if test "$cross_compiling" = yes; then :
17598 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17599 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17600 as_fn_error
"cannot run test program while cross compiling
17601 See \`config.log' for more details." "$LINENO" 5; }
17603 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17604 /* end confdefs.h. */
17606 #include <unistd.h>
17607 #include <stdlib.h>
17608 #include <string.h>
17613 static char program[] = "program";
17614 static char a[] = "-a";
17615 static char foo[] = "foo";
17616 static char bar[] = "bar";
17617 char *argv[] = { program, a, foo, bar, NULL };
17620 c = getopt (4, argv, "ab");
17623 c = getopt (4, argv, "ab");
17626 if (!(optind == 2))
17632 if ac_fn_c_try_run
"$LINENO"; then :
17633 gl_cv_func_getopt_posix
=maybe
17635 gl_cv_func_getopt_posix
=no
17637 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17638 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17641 if test $gl_cv_func_getopt_posix = maybe
; then
17642 if test "$cross_compiling" = yes; then :
17643 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17644 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17645 as_fn_error
"cannot run test program while cross compiling
17646 See \`config.log' for more details." "$LINENO" 5; }
17648 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17649 /* end confdefs.h. */
17651 #include <unistd.h>
17652 #include <stdlib.h>
17653 #include <string.h>
17658 static char program[] = "program";
17659 static char donald[] = "donald";
17660 static char p[] = "-p";
17661 static char billy[] = "billy";
17662 static char duck[] = "duck";
17663 static char a[] = "-a";
17664 static char bar[] = "bar";
17665 char *argv[] = { program, donald, p, billy, duck, a, bar, NULL };
17668 c = getopt (7, argv, "+abp:q:");
17671 if (!(strcmp (argv[0], "program") == 0))
17673 if (!(strcmp (argv[1], "donald") == 0))
17675 if (!(strcmp (argv[2], "-p") == 0))
17677 if (!(strcmp (argv[3], "billy") == 0))
17679 if (!(strcmp (argv[4], "duck") == 0))
17681 if (!(strcmp (argv[5], "-a") == 0))
17683 if (!(strcmp (argv[6], "bar") == 0))
17685 if (!(optind == 1))
17691 if ac_fn_c_try_run
"$LINENO"; then :
17692 gl_cv_func_getopt_posix
=maybe
17694 gl_cv_func_getopt_posix
=no
17696 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17697 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17701 if test $gl_cv_func_getopt_posix = maybe
; then
17702 if test "$cross_compiling" = yes; then :
17703 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17704 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17705 as_fn_error
"cannot run test program while cross compiling
17706 See \`config.log' for more details." "$LINENO" 5; }
17708 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17709 /* end confdefs.h. */
17711 #include <unistd.h>
17712 #include <stdlib.h>
17713 #include <string.h>
17718 static char program[] = "program";
17719 static char ab[] = "-ab";
17720 char *argv[3] = { program, ab, NULL };
17721 if (getopt (2, argv, "ab:") != 'a')
17723 if (getopt (2, argv, "ab:") != '?')
17733 if ac_fn_c_try_run
"$LINENO"; then :
17734 gl_cv_func_getopt_posix
=yes
17736 gl_cv_func_getopt_posix
=no
17738 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17739 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17745 darwin
* | aix
* | mingw
*) gl_cv_func_getopt_posix
="guessing no";;
17746 *) gl_cv_func_getopt_posix
="guessing yes";;
17751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
17752 $as_echo "$gl_cv_func_getopt_posix" >&6; }
17753 case "$gl_cv_func_getopt_posix" in
17754 *no
) gl_replace_getopt
=yes ;;
17758 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
17759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
17760 $as_echo_n "checking for working GNU getopt function... " >&6; }
17761 if test "${gl_cv_func_getopt_gnu+set}" = set; then :
17762 $as_echo_n "(cached) " >&6
17764 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
17765 # optstring is necessary for programs like m4 that have POSIX-mandated
17766 # semantics for supporting options interspersed with files.
17767 # Also, since getopt_long is a GNU extension, we require optind=0.
17768 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
17769 # so take care to revert to the correct (non-)export state.
17770 gl_awk_probe
='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
17771 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
17772 xx
) gl_had_POSIXLY_CORRECT
=exported
;;
17773 x
) gl_had_POSIXLY_CORRECT
=yes ;;
17774 *) gl_had_POSIXLY_CORRECT
= ;;
17777 export POSIXLY_CORRECT
17778 if test "$cross_compiling" = yes; then :
17779 gl_cv_func_getopt_gnu
="guessing no"
17782 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17783 /* end confdefs.h. */
17784 #include <getopt.h>
17785 #include <stddef.h>
17786 #include <string.h>
17788 #include <stdlib.h>
17789 #if defined __MACH__ && defined __APPLE__
17790 /* Avoid a crash on Mac OS X. */
17791 #include <mach/mach.h>
17792 #include <mach/mach_error.h>
17793 #include <mach/thread_status.h>
17794 #include <mach/exception.h>
17795 #include <mach/task.h>
17796 #include <pthread.h>
17797 /* The exception port on which our thread listens. */
17798 static mach_port_t our_exception_port;
17799 /* The main function of the thread listening for exceptions of type
17802 mach_exception_thread (void *arg)
17804 /* Buffer for a message to be received. */
17806 mach_msg_header_t head;
17807 mach_msg_body_t msgh_body;
17810 mach_msg_return_t retval;
17811 /* Wait for a message on the exception port. */
17812 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
17813 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
17814 if (retval != MACH_MSG_SUCCESS)
17819 nocrash_init (void)
17821 mach_port_t self = mach_task_self ();
17822 /* Allocate a port on which the thread shall listen for exceptions. */
17823 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
17825 /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
17826 if (mach_port_insert_right (self, our_exception_port, our_exception_port,
17827 MACH_MSG_TYPE_MAKE_SEND)
17829 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
17831 exception_mask_t mask = EXC_MASK_BAD_ACCESS;
17832 /* Create the thread listening on the exception port. */
17833 pthread_attr_t attr;
17835 if (pthread_attr_init (&attr) == 0
17836 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
17837 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
17838 pthread_attr_destroy (&attr);
17839 /* Replace the exception port info for these exceptions with our own.
17840 Note that we replace the exception port for the entire task, not only
17841 for a particular thread. This has the effect that when our exception
17842 port gets the message, the thread specific exception port has already
17843 been asked, and we don't need to bother about it.
17844 See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
17845 task_set_exception_ports (self, mask, our_exception_port,
17846 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
17851 #elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
17852 /* Avoid a crash on native Windows. */
17853 #define WIN32_LEAN_AND_MEAN
17854 #include <windows.h>
17855 #include <winerror.h>
17857 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
17859 switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
17861 case EXCEPTION_ACCESS_VIOLATION:
17862 case EXCEPTION_IN_PAGE_ERROR:
17863 case EXCEPTION_STACK_OVERFLOW:
17864 case EXCEPTION_GUARD_PAGE:
17865 case EXCEPTION_PRIV_INSTRUCTION:
17866 case EXCEPTION_ILLEGAL_INSTRUCTION:
17867 case EXCEPTION_DATATYPE_MISALIGNMENT:
17868 case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
17869 case EXCEPTION_NONCONTINUABLE_EXCEPTION:
17872 return EXCEPTION_CONTINUE_SEARCH;
17875 nocrash_init (void)
17877 SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
17880 /* Avoid a crash on POSIX systems. */
17881 #include <signal.h>
17882 /* A POSIX signal handler. */
17884 exception_handler (int sig)
17889 nocrash_init (void)
17892 signal (SIGSEGV, exception_handler);
17895 signal (SIGBUS, exception_handler);
17909 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
17910 and fails on Mac OS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
17911 OSF/1 5.1, Solaris 10. */
17913 static char conftest[] = "conftest";
17914 static char plus[] = "-+";
17915 char *argv[3] = { conftest, plus, NULL };
17917 if (getopt (2, argv, "+a") != '?')
17920 /* This code succeeds on glibc 2.8, mingw,
17921 and fails on Mac OS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
17922 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
17924 static char program[] = "program";
17925 static char p[] = "-p";
17926 static char foo[] = "foo";
17927 static char bar[] = "bar";
17928 char *argv[] = { program, p, foo, bar, NULL };
17931 if (getopt (4, argv, "p::") != 'p')
17933 else if (optarg != NULL)
17935 else if (getopt (4, argv, "p::") != -1)
17937 else if (optind != 2)
17940 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
17942 static char program[] = "program";
17943 static char foo[] = "foo";
17944 static char p[] = "-p";
17945 char *argv[] = { program, foo, p, NULL };
17947 if (getopt (3, argv, "-p") != 1)
17949 else if (getopt (3, argv, "-p") != 'p')
17952 /* This code fails on glibc 2.11. */
17954 static char program[] = "program";
17955 static char b[] = "-b";
17956 static char a[] = "-a";
17957 char *argv[] = { program, b, a, NULL };
17958 optind = opterr = 0;
17959 if (getopt (3, argv, "+:a:b") != 'b')
17961 else if (getopt (3, argv, "+:a:b") != ':')
17964 /* This code dumps core on glibc 2.14. */
17966 static char program[] = "program";
17967 static char w[] = "-W";
17968 static char dummy[] = "dummy";
17969 char *argv[] = { program, w, dummy, NULL };
17970 optind = opterr = 1;
17971 if (getopt (3, argv, "W;") != 'W')
17980 if ac_fn_c_try_run
"$LINENO"; then :
17981 gl_cv_func_getopt_gnu
=yes
17983 gl_cv_func_getopt_gnu
=no
17985 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17986 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17989 case $gl_had_POSIXLY_CORRECT in
17991 yes) { POSIXLY_CORRECT
=; unset POSIXLY_CORRECT
;}; POSIXLY_CORRECT
=1 ;;
17992 *) { POSIXLY_CORRECT
=; unset POSIXLY_CORRECT
;} ;;
17996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
17997 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
17998 if test "$gl_cv_func_getopt_gnu" != yes; then
17999 gl_replace_getopt
=yes
18001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt_long function" >&5
18002 $as_echo_n "checking for working GNU getopt_long function... " >&6; }
18003 if test "${gl_cv_func_getopt_long_gnu+set}" = set; then :
18004 $as_echo_n "(cached) " >&6
18006 if test "$cross_compiling" = yes; then :
18008 openbsd
*) gl_cv_func_getopt_long_gnu
="guessing no";;
18009 *) gl_cv_func_getopt_long_gnu
="guessing yes";;
18013 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18014 /* end confdefs.h. */
18015 #include <getopt.h>
18016 #include <stddef.h>
18017 #include <string.h>
18022 static const struct option long_options[] =
18024 { "xtremely-",no_argument, NULL, 1003 },
18025 { "xtra", no_argument, NULL, 1001 },
18026 { "xtreme", no_argument, NULL, 1002 },
18027 { "xtremely", no_argument, NULL, 1003 },
18028 { NULL, 0, NULL, 0 }
18030 /* This code fails on OpenBSD 5.0. */
18032 static char program[] = "program";
18033 static char xtremel[] = "--xtremel";
18034 char *argv[] = { program, xtremel, NULL };
18036 optind = 1; opterr = 0;
18037 if (getopt_long (2, argv, "", long_options, &option_index) != 1003)
18046 if ac_fn_c_try_run
"$LINENO"; then :
18047 gl_cv_func_getopt_long_gnu
=yes
18049 gl_cv_func_getopt_long_gnu
=no
18051 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18052 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_long_gnu" >&5
18058 $as_echo "$gl_cv_func_getopt_long_gnu" >&6; }
18059 case "$gl_cv_func_getopt_long_gnu" in
18061 *) gl_replace_getopt
=yes ;;
18072 if test -n "$gl_replace_getopt"; then
18076 if test $REPLACE_GETOPT = 1; then
18080 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
18086 ac_fn_c_check_decl
"$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
18087 if test "x$ac_cv_have_decl_getenv" = x
""yes; then :
18093 cat >>confdefs.h
<<_ACEOF
18094 #define HAVE_DECL_GETENV $ac_have_decl
18102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
18103 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
18104 if test "${ac_cv_c_restrict+set}" = set; then :
18105 $as_echo_n "(cached) " >&6
18107 ac_cv_c_restrict
=no
18108 # The order here caters to the fact that C++ does not require restrict.
18109 for ac_kw
in __restrict __restrict__ _Restrict restrict
; do
18110 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18111 /* end confdefs.h. */
18112 typedef int * int_ptr;
18113 int foo (int_ptr $ac_kw ip) {
18120 int * $ac_kw t = s;
18127 if ac_fn_c_try_compile
"$LINENO"; then :
18128 ac_cv_c_restrict
=$ac_kw
18130 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18131 test "$ac_cv_c_restrict" != no
&& break
18135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
18136 $as_echo "$ac_cv_c_restrict" >&6; }
18138 case $ac_cv_c_restrict in
18140 no
) $as_echo "#define restrict /**/" >>confdefs.h
18142 *) cat >>confdefs.h
<<_ACEOF
18143 #define restrict $ac_cv_c_restrict
18149 GNULIB_GETTIMEOFDAY
=0;
18150 HAVE_GETTIMEOFDAY
=1;
18151 HAVE_STRUCT_TIMEVAL
=1;
18153 REPLACE_GETTIMEOFDAY
=0;
18154 REPLACE_STRUCT_TIMEVAL
=0;
18171 if test $gl_cv_have_include_next = yes; then
18172 gl_cv_next_sys_time_h
='<'sys
/time.h
'>'
18174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/time.h>" >&5
18175 $as_echo_n "checking absolute name of <sys/time.h>... " >&6; }
18176 if test "${gl_cv_next_sys_time_h+set}" = set; then :
18177 $as_echo_n "(cached) " >&6
18180 if test $ac_cv_header_sys_time_h = yes; then
18183 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18184 /* end confdefs.h. */
18185 #include <sys/time.h>
18189 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
18190 *) gl_absname_cpp
="$ac_cpp" ;;
18195 gl_dirsep_regex
='[/\\]'
18198 gl_dirsep_regex
='\/'
18201 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
18203 gl_header_literal_regex
=`echo 'sys/time.h' \
18204 | sed -e "$gl_make_literal_regex_sed"`
18205 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18206 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18211 gl_cv_next_sys_time_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18212 sed -n "$gl_absolute_header_sed"`'"'
18214 gl_cv_next_sys_time_h
='<'sys
/time.h
'>'
18219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_time_h" >&5
18220 $as_echo "$gl_cv_next_sys_time_h" >&6; }
18222 NEXT_SYS_TIME_H
=$gl_cv_next_sys_time_h
18224 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
18225 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18226 gl_next_as_first_directive
='<'sys
/time.h
'>'
18228 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18229 gl_next_as_first_directive
=$gl_cv_next_sys_time_h
18231 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
=$gl_next_as_first_directive
18237 if test $ac_cv_header_sys_time_h != yes; then
18245 if test $ac_cv_header_sys_socket_h != yes; then
18246 for ac_header
in winsock2.h
18248 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
18249 if test "x$ac_cv_header_winsock2_h" = x
""yes; then :
18250 cat >>confdefs.h
<<_ACEOF
18251 #define HAVE_WINSOCK2_H 1
18259 if test "$ac_cv_header_winsock2_h" = yes; then
18261 UNISTD_H_HAVE_WINSOCK2_H
=1
18262 SYS_IOCTL_H_HAVE_WINSOCK2_H
=1
18268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
18269 $as_echo_n "checking for struct timeval... " >&6; }
18270 if test "${gl_cv_sys_struct_timeval+set}" = set; then :
18271 $as_echo_n "(cached) " >&6
18273 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18274 /* end confdefs.h. */
18275 #if HAVE_SYS_TIME_H
18276 #include <sys/time.h>
18279 #if HAVE_WINSOCK2_H
18280 # include <winsock2.h>
18286 static struct timeval x; x.tv_sec = x.tv_usec;
18291 if ac_fn_c_try_compile
"$LINENO"; then :
18292 gl_cv_sys_struct_timeval
=yes
18294 gl_cv_sys_struct_timeval
=no
18296 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval" >&5
18300 $as_echo "$gl_cv_sys_struct_timeval" >&6; }
18301 if test $gl_cv_sys_struct_timeval != yes; then
18302 HAVE_STRUCT_TIMEVAL
=0
18304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wide-enough struct timeval.tv_sec member" >&5
18305 $as_echo_n "checking for wide-enough struct timeval.tv_sec member... " >&6; }
18306 if test "${gl_cv_sys_struct_timeval_tv_sec+set}" = set; then :
18307 $as_echo_n "(cached) " >&6
18309 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18310 /* end confdefs.h. */
18311 #if HAVE_SYS_TIME_H
18312 #include <sys/time.h>
18315 #if HAVE_WINSOCK2_H
18316 # include <winsock2.h>
18322 static struct timeval x;
18323 typedef int verify_tv_sec_type[
18324 sizeof (time_t) <= sizeof x.tv_sec ? 1 : -1
18331 if ac_fn_c_try_compile
"$LINENO"; then :
18332 gl_cv_sys_struct_timeval_tv_sec
=yes
18334 gl_cv_sys_struct_timeval_tv_sec
=no
18336 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval_tv_sec" >&5
18340 $as_echo "$gl_cv_sys_struct_timeval_tv_sec" >&6; }
18341 if test $gl_cv_sys_struct_timeval_tv_sec != yes; then
18342 REPLACE_STRUCT_TIMEVAL
=1
18352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
18353 $as_echo_n "checking for unsigned long long int... " >&6; }
18354 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
18355 $as_echo_n "(cached) " >&6
18357 ac_cv_type_unsigned_long_long_int
=yes
18358 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
18359 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18360 /* end confdefs.h. */
18362 /* For now, do not test the preprocessor; as of 2007 there are too many
18363 implementations with broken preprocessors. Perhaps this can
18364 be revisited in 2012. In the meantime, code should not expect
18365 #if to work with literals wider than 32 bits. */
18366 /* Test literals. */
18367 long long int ll = 9223372036854775807ll;
18368 long long int nll = -9223372036854775807LL;
18369 unsigned long long int ull = 18446744073709551615ULL;
18370 /* Test constant expressions. */
18371 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
18373 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
18379 /* Test availability of runtime routines for shift and division. */
18380 long long int llmax = 9223372036854775807ll;
18381 unsigned long long int ullmax = 18446744073709551615ull;
18382 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
18383 | (llmax / ll) | (llmax % ll)
18384 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
18385 | (ullmax / ull) | (ullmax % ull));
18391 if ac_fn_c_try_link
"$LINENO"; then :
18394 ac_cv_type_unsigned_long_long_int
=no
18396 rm -f core conftest.err conftest.
$ac_objext \
18397 conftest
$ac_exeext conftest.
$ac_ext
18400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
18401 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
18402 if test $ac_cv_type_unsigned_long_long_int = yes; then
18404 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
18410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
18411 $as_echo_n "checking for long long int... " >&6; }
18412 if test "${ac_cv_type_long_long_int+set}" = set; then :
18413 $as_echo_n "(cached) " >&6
18415 ac_cv_type_long_long_int
=yes
18416 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
18417 ac_cv_type_long_long_int
=$ac_cv_type_unsigned_long_long_int
18418 if test $ac_cv_type_long_long_int = yes; then
18419 if test "$cross_compiling" = yes; then :
18422 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18423 /* end confdefs.h. */
18424 #include <limits.h>
18427 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
18428 # define LLONG_MAX (HALF - 1 + HALF)
18433 long long int n = 1;
18437 long long int m = n << i;
18440 if (LLONG_MAX / 2 < m)
18448 if ac_fn_c_try_run
"$LINENO"; then :
18451 ac_cv_type_long_long_int
=no
18453 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18454 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
18461 $as_echo "$ac_cv_type_long_long_int" >&6; }
18462 if test $ac_cv_type_long_long_int = yes; then
18464 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
18473 gl_cv_c_multiarch
=no
18474 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18475 /* end confdefs.h. */
18476 #ifndef __APPLE_CC__
18477 not a universal capable compiler
18482 if ac_fn_c_try_compile
"$LINENO"; then :
18486 for word
in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
18487 if test -n "$prev"; then
18489 i?
86 | x86_64 | ppc | ppc64
)
18490 if test -z "$arch" ||
test "$arch" = "$word"; then
18493 gl_cv_c_multiarch
=yes
18499 if test "x$word" = "x-arch"; then
18506 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18507 if test $gl_cv_c_multiarch = yes; then
18508 APPLE_UNIVERSAL_BUILD
=1
18510 APPLE_UNIVERSAL_BUILD
=0
18517 if test $ac_cv_type_long_long_int = yes; then
18518 HAVE_LONG_LONG_INT
=1
18520 HAVE_LONG_LONG_INT
=0
18524 if test $ac_cv_type_unsigned_long_long_int = yes; then
18525 HAVE_UNSIGNED_LONG_LONG_INT
=1
18527 HAVE_UNSIGNED_LONG_LONG_INT
=0
18532 if test $ac_cv_header_wchar_h = yes; then
18539 if test $ac_cv_header_inttypes_h = yes; then
18546 if test $ac_cv_header_sys_types_h = yes; then
18562 if test $gl_cv_have_include_next = yes; then
18563 gl_cv_next_stdint_h
='<'stdint.h
'>'
18565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
18566 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
18567 if test "${gl_cv_next_stdint_h+set}" = set; then :
18568 $as_echo_n "(cached) " >&6
18571 if test $ac_cv_header_stdint_h = yes; then
18574 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18575 /* end confdefs.h. */
18576 #include <stdint.h>
18580 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
18581 *) gl_absname_cpp
="$ac_cpp" ;;
18586 gl_dirsep_regex
='[/\\]'
18589 gl_dirsep_regex
='\/'
18592 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
18594 gl_header_literal_regex
=`echo 'stdint.h' \
18595 | sed -e "$gl_make_literal_regex_sed"`
18596 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18597 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18602 gl_cv_next_stdint_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18603 sed -n "$gl_absolute_header_sed"`'"'
18605 gl_cv_next_stdint_h
='<'stdint.h
'>'
18610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
18611 $as_echo "$gl_cv_next_stdint_h" >&6; }
18613 NEXT_STDINT_H
=$gl_cv_next_stdint_h
18615 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
18616 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18617 gl_next_as_first_directive
='<'stdint.h
'>'
18619 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18620 gl_next_as_first_directive
=$gl_cv_next_stdint_h
18622 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
=$gl_next_as_first_directive
18627 if test $ac_cv_header_stdint_h = yes; then
18634 if test $ac_cv_header_stdint_h = yes; then
18635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
18636 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
18637 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
18638 $as_echo_n "(cached) " >&6
18640 gl_cv_header_working_stdint_h
=no
18641 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18642 /* end confdefs.h. */
18645 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
18646 #include <stdint.h>
18647 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
18648 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
18649 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
18653 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18654 included before <wchar.h>. */
18655 #include <stddef.h>
18656 #include <signal.h>
18658 # include <stdio.h>
18660 # include <wchar.h>
18665 int8_t a1 = INT8_MAX;
18666 int8_t a1min = INT8_MIN;
18669 int16_t a2 = INT16_MAX;
18670 int16_t a2min = INT16_MIN;
18673 int32_t a3 = INT32_MAX;
18674 int32_t a3min = INT32_MIN;
18677 int64_t a4 = INT64_MAX;
18678 int64_t a4min = INT64_MIN;
18681 uint8_t b1 = UINT8_MAX;
18683 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
18686 uint16_t b2 = UINT16_MAX;
18689 uint32_t b3 = UINT32_MAX;
18692 uint64_t b4 = UINT64_MAX;
18694 int_least8_t c1 = INT8_C (0x7f);
18695 int_least8_t c1max = INT_LEAST8_MAX;
18696 int_least8_t c1min = INT_LEAST8_MIN;
18697 int_least16_t c2 = INT16_C (0x7fff);
18698 int_least16_t c2max = INT_LEAST16_MAX;
18699 int_least16_t c2min = INT_LEAST16_MIN;
18700 int_least32_t c3 = INT32_C (0x7fffffff);
18701 int_least32_t c3max = INT_LEAST32_MAX;
18702 int_least32_t c3min = INT_LEAST32_MIN;
18703 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
18704 int_least64_t c4max = INT_LEAST64_MAX;
18705 int_least64_t c4min = INT_LEAST64_MIN;
18706 uint_least8_t d1 = UINT8_C (0xff);
18707 uint_least8_t d1max = UINT_LEAST8_MAX;
18708 uint_least16_t d2 = UINT16_C (0xffff);
18709 uint_least16_t d2max = UINT_LEAST16_MAX;
18710 uint_least32_t d3 = UINT32_C (0xffffffff);
18711 uint_least32_t d3max = UINT_LEAST32_MAX;
18712 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
18713 uint_least64_t d4max = UINT_LEAST64_MAX;
18714 int_fast8_t e1 = INT_FAST8_MAX;
18715 int_fast8_t e1min = INT_FAST8_MIN;
18716 int_fast16_t e2 = INT_FAST16_MAX;
18717 int_fast16_t e2min = INT_FAST16_MIN;
18718 int_fast32_t e3 = INT_FAST32_MAX;
18719 int_fast32_t e3min = INT_FAST32_MIN;
18720 int_fast64_t e4 = INT_FAST64_MAX;
18721 int_fast64_t e4min = INT_FAST64_MIN;
18722 uint_fast8_t f1 = UINT_FAST8_MAX;
18723 uint_fast16_t f2 = UINT_FAST16_MAX;
18724 uint_fast32_t f3 = UINT_FAST32_MAX;
18725 uint_fast64_t f4 = UINT_FAST64_MAX;
18727 intptr_t g = INTPTR_MAX;
18728 intptr_t gmin = INTPTR_MIN;
18731 uintptr_t h = UINTPTR_MAX;
18733 intmax_t i = INTMAX_MAX;
18734 uintmax_t j = UINTMAX_MAX;
18736 #include <limits.h> /* for CHAR_BIT */
18737 #define TYPE_MINIMUM(t) \
18738 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
18739 #define TYPE_MAXIMUM(t) \
18740 ((t) ((t) 0 < (t) -1 \
18742 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
18745 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
18746 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
18748 /* Detect bug in FreeBSD 6.0 / ia64. */
18749 int check_SIG_ATOMIC:
18750 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
18751 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
18753 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
18755 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
18756 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
18758 /* Detect bug in mingw. */
18760 WINT_MIN == TYPE_MINIMUM (wint_t)
18761 && WINT_MAX == TYPE_MAXIMUM (wint_t)
18764 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
18766 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
18767 int check_UINT16_C:
18768 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
18770 /* Detect bugs in OpenBSD 3.9 stdint.h. */
18772 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
18775 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
18778 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
18781 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
18783 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
18784 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
18785 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
18786 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
18787 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
18788 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
18789 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
18790 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
18791 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
18792 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
18793 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
18804 if ac_fn_c_try_compile
"$LINENO"; then :
18805 if test "$cross_compiling" = yes; then :
18806 gl_cv_header_working_stdint_h
=yes
18809 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18810 /* end confdefs.h. */
18813 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
18814 #include <stdint.h>
18817 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18818 included before <wchar.h>. */
18819 #include <stddef.h>
18820 #include <signal.h>
18822 # include <stdio.h>
18824 # include <wchar.h>
18829 #include <string.h>
18830 #define MVAL(macro) MVAL1(macro)
18831 #define MVAL1(expression) #expression
18832 static const char *macro_values[] =
18866 for (mv = macro_values; *mv != NULL; mv++)
18868 const char *value = *mv;
18869 /* Test whether it looks like a cast expression. */
18870 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
18871 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
18872 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
18873 || strncmp (value, "((int)"/*)*/, 6) == 0
18874 || strncmp (value, "((signed short)"/*)*/, 15) == 0
18875 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
18876 return mv - macro_values + 1;
18884 if ac_fn_c_try_run
"$LINENO"; then :
18885 gl_cv_header_working_stdint_h
=yes
18887 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18888 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18893 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
18897 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
18899 if test "$gl_cv_header_working_stdint_h" = yes; then
18902 for ac_header
in sys
/inttypes.h sys
/bitypes.h
18904 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18905 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18906 eval as_val
=\$
$as_ac_Header
18907 if test "x$as_val" = x
""yes; then :
18908 cat >>confdefs.h
<<_ACEOF
18909 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18916 if test $ac_cv_header_sys_inttypes_h = yes; then
18917 HAVE_SYS_INTTYPES_H
=1
18919 HAVE_SYS_INTTYPES_H
=0
18922 if test $ac_cv_header_sys_bitypes_h = yes; then
18923 HAVE_SYS_BITYPES_H
=1
18925 HAVE_SYS_BITYPES_H
=0
18931 if test $APPLE_UNIVERSAL_BUILD = 0; then
18934 for gltype
in ptrdiff_t size_t
; do
18935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
18936 $as_echo_n "checking for bit size of $gltype... " >&6; }
18937 if { as_var
=gl_cv_bitsizeof_
${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
18938 $as_echo_n "(cached) " >&6
18940 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
18941 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18942 included before <wchar.h>. */
18943 #include <stddef.h>
18944 #include <signal.h>
18946 # include <stdio.h>
18948 # include <wchar.h>
18951 #include <limits.h>"; then :
18957 eval gl_cv_bitsizeof_
${gltype}=\
$result
18960 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
18961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18962 $as_echo "$ac_res" >&6; }
18963 eval result
=\
$gl_cv_bitsizeof_${gltype}
18964 if test $result = unknown
; then
18967 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18968 cat >>confdefs.h
<<_ACEOF
18969 #define BITSIZEOF_${GLTYPE} $result
18972 eval BITSIZEOF_
${GLTYPE}=\
$result
18979 for gltype
in sig_atomic_t wchar_t wint_t
; do
18980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
18981 $as_echo_n "checking for bit size of $gltype... " >&6; }
18982 if { as_var
=gl_cv_bitsizeof_
${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
18983 $as_echo_n "(cached) " >&6
18985 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
18986 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18987 included before <wchar.h>. */
18988 #include <stddef.h>
18989 #include <signal.h>
18991 # include <stdio.h>
18993 # include <wchar.h>
18996 #include <limits.h>"; then :
19002 eval gl_cv_bitsizeof_
${gltype}=\
$result
19005 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
19006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19007 $as_echo "$ac_res" >&6; }
19008 eval result
=\
$gl_cv_bitsizeof_${gltype}
19009 if test $result = unknown
; then
19012 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
19013 cat >>confdefs.h
<<_ACEOF
19014 #define BITSIZEOF_${GLTYPE} $result
19017 eval BITSIZEOF_
${GLTYPE}=\
$result
19023 for gltype
in sig_atomic_t wchar_t wint_t
; do
19024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
19025 $as_echo_n "checking whether $gltype is signed... " >&6; }
19026 if { as_var
=gl_cv_type_
${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
19027 $as_echo_n "(cached) " >&6
19029 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19030 /* end confdefs.h. */
19032 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19033 included before <wchar.h>. */
19034 #include <stddef.h>
19035 #include <signal.h>
19037 # include <stdio.h>
19039 # include <wchar.h>
19042 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
19051 if ac_fn_c_try_compile
"$LINENO"; then :
19056 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19057 eval gl_cv_type_
${gltype}_signed
=\
$result
19060 eval ac_res
=\
$gl_cv_type_${gltype}_signed
19061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19062 $as_echo "$ac_res" >&6; }
19063 eval result
=\
$gl_cv_type_${gltype}_signed
19064 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
19065 if test "$result" = yes; then
19066 cat >>confdefs.h
<<_ACEOF
19067 #define HAVE_SIGNED_${GLTYPE} 1
19070 eval HAVE_SIGNED_
${GLTYPE}=1
19072 eval HAVE_SIGNED_
${GLTYPE}=0
19077 gl_cv_type_ptrdiff_t_signed
=yes
19078 gl_cv_type_size_t_signed
=no
19079 if test $APPLE_UNIVERSAL_BUILD = 0; then
19082 for gltype
in ptrdiff_t size_t
; do
19083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
19084 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
19085 if { as_var
=gl_cv_type_
${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
19086 $as_echo_n "(cached) " >&6
19088 eval gl_cv_type_
${gltype}_suffix
=no
19089 eval result
=\
$gl_cv_type_${gltype}_signed
19090 if test "$result" = yes; then
19095 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
19097 '') gltype1
='int';;
19098 l
) gltype1
='long int';;
19099 ll
) gltype1
='long long int';;
19100 i64
) gltype1
='__int64';;
19101 u
) gltype1
='unsigned int';;
19102 ul
) gltype1
='unsigned long int';;
19103 ull
) gltype1
='unsigned long long int';;
19104 ui64
)gltype1
='unsigned __int64';;
19106 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19107 /* end confdefs.h. */
19109 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19110 included before <wchar.h>. */
19111 #include <stddef.h>
19112 #include <signal.h>
19114 # include <stdio.h>
19116 # include <wchar.h>
19119 extern $gltype foo;
19120 extern $gltype1 foo;
19129 if ac_fn_c_try_compile
"$LINENO"; then :
19130 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
19132 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19133 eval result
=\
$gl_cv_type_${gltype}_suffix
19134 test "$result" != no
&& break
19137 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
19138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19139 $as_echo "$ac_res" >&6; }
19140 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
19141 eval result
=\
$gl_cv_type_${gltype}_suffix
19142 test "$result" = no
&& result
=
19143 eval ${GLTYPE}_SUFFIX
=\
$result
19144 cat >>confdefs.h
<<_ACEOF
19145 #define ${GLTYPE}_SUFFIX $result
19154 for gltype
in sig_atomic_t wchar_t wint_t
; do
19155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
19156 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
19157 if { as_var
=gl_cv_type_
${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
19158 $as_echo_n "(cached) " >&6
19160 eval gl_cv_type_
${gltype}_suffix
=no
19161 eval result
=\
$gl_cv_type_${gltype}_signed
19162 if test "$result" = yes; then
19167 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
19169 '') gltype1
='int';;
19170 l
) gltype1
='long int';;
19171 ll
) gltype1
='long long int';;
19172 i64
) gltype1
='__int64';;
19173 u
) gltype1
='unsigned int';;
19174 ul
) gltype1
='unsigned long int';;
19175 ull
) gltype1
='unsigned long long int';;
19176 ui64
)gltype1
='unsigned __int64';;
19178 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19179 /* end confdefs.h. */
19181 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19182 included before <wchar.h>. */
19183 #include <stddef.h>
19184 #include <signal.h>
19186 # include <stdio.h>
19188 # include <wchar.h>
19191 extern $gltype foo;
19192 extern $gltype1 foo;
19201 if ac_fn_c_try_compile
"$LINENO"; then :
19202 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
19204 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19205 eval result
=\
$gl_cv_type_${gltype}_suffix
19206 test "$result" != no
&& break
19209 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
19210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19211 $as_echo "$ac_res" >&6; }
19212 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
19213 eval result
=\
$gl_cv_type_${gltype}_suffix
19214 test "$result" = no
&& result
=
19215 eval ${GLTYPE}_SUFFIX
=\
$result
19216 cat >>confdefs.h
<<_ACEOF
19217 #define ${GLTYPE}_SUFFIX $result
19224 if test $BITSIZEOF_WINT_T -lt 32; then
19225 BITSIZEOF_WINT_T
=32
19231 if test -n "$STDINT_H"; then
19232 GL_GENERATE_STDINT_H_TRUE
=
19233 GL_GENERATE_STDINT_H_FALSE
='#'
19235 GL_GENERATE_STDINT_H_TRUE
='#'
19236 GL_GENERATE_STDINT_H_FALSE
=
19245 GNULIB_STRTOIMAX
=0;
19246 GNULIB_STRTOUMAX
=0;
19247 HAVE_DECL_IMAXABS
=1;
19248 HAVE_DECL_IMAXDIV
=1;
19249 HAVE_DECL_STRTOIMAX
=1;
19250 HAVE_DECL_STRTOUMAX
=1;
19251 REPLACE_STRTOIMAX
=0;
19252 INT32_MAX_LT_INTMAX_MAX
=1;
19253 INT64_MAX_EQ_LONG_MAX
='defined _LP64';
19254 PRI_MACROS_BROKEN
=0;
19255 PRIPTR_PREFIX
=__PRIPTR_PREFIX
;
19256 UINT32_MAX_LT_UINTMAX_MAX
=1;
19257 UINT64_MAX_EQ_ULONG_MAX
='defined _LP64';
19273 if test $gl_cv_have_include_next = yes; then
19274 gl_cv_next_inttypes_h
='<'inttypes.h
'>'
19276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
19277 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
19278 if test "${gl_cv_next_inttypes_h+set}" = set; then :
19279 $as_echo_n "(cached) " >&6
19282 if test $ac_cv_header_inttypes_h = yes; then
19285 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19286 /* end confdefs.h. */
19287 #include <inttypes.h>
19291 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
19292 *) gl_absname_cpp
="$ac_cpp" ;;
19297 gl_dirsep_regex
='[/\\]'
19300 gl_dirsep_regex
='\/'
19303 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
19305 gl_header_literal_regex
=`echo 'inttypes.h' \
19306 | sed -e "$gl_make_literal_regex_sed"`
19307 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19308 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19313 gl_cv_next_inttypes_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19314 sed -n "$gl_absolute_header_sed"`'"'
19316 gl_cv_next_inttypes_h
='<'inttypes.h
'>'
19321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
19322 $as_echo "$gl_cv_next_inttypes_h" >&6; }
19324 NEXT_INTTYPES_H
=$gl_cv_next_inttypes_h
19326 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
19327 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19328 gl_next_as_first_directive
='<'inttypes.h
'>'
19330 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19331 gl_next_as_first_directive
=$gl_cv_next_inttypes_h
19333 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
=$gl_next_as_first_directive
19347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5
19348 $as_echo_n "checking for 64-bit off_t... " >&6; }
19349 if test "${gl_cv_type_off_t_64+set}" = set; then :
19350 $as_echo_n "(cached) " >&6
19352 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19353 /* end confdefs.h. */
19354 #include <sys/types.h>
19355 int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1];
19365 if ac_fn_c_try_compile
"$LINENO"; then :
19366 gl_cv_type_off_t_64
=yes
19368 gl_cv_type_off_t_64
=no
19370 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5
19374 $as_echo "$gl_cv_type_off_t_64" >&6; }
19375 if test $gl_cv_type_off_t_64 = no
; then
19376 WINDOWS_64_BIT_OFF_T
=1
19378 WINDOWS_64_BIT_OFF_T
=0
19380 WINDOWS_64_BIT_ST_SIZE
=1
19383 WINDOWS_64_BIT_OFF_T
=0
19384 WINDOWS_64_BIT_ST_SIZE
=0
19392 GNULIB_NANOSLEEP
=0;
19396 HAVE_DECL_LOCALTIME_R
=1;
19400 REPLACE_LOCALTIME_R
=GNULIB_PORTCHECK
;
19401 REPLACE_MKTIME
=GNULIB_PORTCHECK
;
19402 REPLACE_NANOSLEEP
=GNULIB_PORTCHECK
;
19403 REPLACE_TIMEGM
=GNULIB_PORTCHECK
;
19419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/select.h> is self-contained" >&5
19420 $as_echo_n "checking whether <sys/select.h> is self-contained... " >&6; }
19421 if test "${gl_cv_header_sys_select_h_selfcontained+set}" = set; then :
19422 $as_echo_n "(cached) " >&6
19425 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19426 /* end confdefs.h. */
19427 #include <sys/select.h>
19436 if ac_fn_c_try_compile
"$LINENO"; then :
19437 gl_cv_header_sys_select_h_selfcontained
=yes
19439 gl_cv_header_sys_select_h_selfcontained
=no
19441 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19442 if test $gl_cv_header_sys_select_h_selfcontained = yes; then
19443 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19444 /* end confdefs.h. */
19445 #include <sys/select.h>
19449 int memset; int bzero;
19455 if ac_fn_c_try_compile
"$LINENO"; then :
19456 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19457 /* end confdefs.h. */
19458 #include <sys/select.h>
19464 #define memset nonexistent_memset
19469 void *memset (void *, int, unsigned long);
19471 #define bzero nonexistent_bzero
19476 void bzero (void *, unsigned long);
19485 if ac_fn_c_try_link
"$LINENO"; then :
19488 gl_cv_header_sys_select_h_selfcontained
=no
19490 rm -f core conftest.err conftest.
$ac_objext \
19491 conftest
$ac_exeext conftest.
$ac_ext
19494 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_selfcontained" >&5
19499 $as_echo "$gl_cv_header_sys_select_h_selfcontained" >&6; }
19509 if test $gl_cv_have_include_next = yes; then
19510 gl_cv_next_sys_select_h
='<'sys
/select.h
'>'
19512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/select.h>" >&5
19513 $as_echo_n "checking absolute name of <sys/select.h>... " >&6; }
19514 if test "${gl_cv_next_sys_select_h+set}" = set; then :
19515 $as_echo_n "(cached) " >&6
19518 if test $ac_cv_header_sys_select_h = yes; then
19521 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19522 /* end confdefs.h. */
19523 #include <sys/select.h>
19527 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
19528 *) gl_absname_cpp
="$ac_cpp" ;;
19533 gl_dirsep_regex
='[/\\]'
19536 gl_dirsep_regex
='\/'
19539 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
19541 gl_header_literal_regex
=`echo 'sys/select.h' \
19542 | sed -e "$gl_make_literal_regex_sed"`
19543 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19544 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19549 gl_cv_next_sys_select_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19550 sed -n "$gl_absolute_header_sed"`'"'
19552 gl_cv_next_sys_select_h
='<'sys
/select.h
'>'
19557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_select_h" >&5
19558 $as_echo "$gl_cv_next_sys_select_h" >&6; }
19560 NEXT_SYS_SELECT_H
=$gl_cv_next_sys_select_h
19562 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
19563 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19564 gl_next_as_first_directive
='<'sys
/select.h
'>'
19566 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19567 gl_next_as_first_directive
=$gl_cv_next_sys_select_h
19569 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H
=$gl_next_as_first_directive
19574 if test $ac_cv_header_sys_select_h = yes; then
19575 HAVE_SYS_SELECT_H
=1
19577 HAVE_SYS_SELECT_H
=0
19584 if test $ac_cv_header_sys_socket_h != yes; then
19585 for ac_header
in winsock2.h
19587 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
19588 if test "x$ac_cv_header_winsock2_h" = x
""yes; then :
19589 cat >>confdefs.h
<<_ACEOF
19590 #define HAVE_WINSOCK2_H 1
19598 if test "$ac_cv_header_winsock2_h" = yes; then
19600 UNISTD_H_HAVE_WINSOCK2_H
=1
19601 SYS_IOCTL_H_HAVE_WINSOCK2_H
=1
19613 GNULIB_PTHREAD_SIGMASK
=0;
19615 GNULIB_SIGNAL_H_SIGPIPE
=0;
19616 GNULIB_SIGPROCMASK
=0;
19617 GNULIB_SIGACTION
=0;
19618 HAVE_POSIX_SIGNALBLOCKING
=1;
19619 HAVE_PTHREAD_SIGMASK
=1;
19624 HAVE_STRUCT_SIGACTION_SA_SIGACTION
=1;
19626 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
=1;
19628 HAVE_SIGHANDLER_T
=1;
19629 REPLACE_PTHREAD_SIGMASK
=0;
19638 ac_fn_c_check_type
"$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
19639 #include <signal.h>
19640 /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */
19641 #include <sys/types.h>
19644 if test "x$ac_cv_type_sigset_t" = x
""yes; then :
19646 cat >>confdefs.h
<<_ACEOF
19647 #define HAVE_SIGSET_T 1
19650 gl_cv_type_sigset_t
=yes
19652 gl_cv_type_sigset_t
=no
19655 if test $gl_cv_type_sigset_t != yes; then
19661 if test $ac_cv_header_sys_socket_h = no
; then
19662 for ac_header
in ws2tcpip.h
19664 ac_fn_c_check_header_mongrel
"$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
19665 if test "x$ac_cv_header_ws2tcpip_h" = x
""yes; then :
19666 cat >>confdefs.h
<<_ACEOF
19667 #define HAVE_WS2TCPIP_H 1
19676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
19677 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
19678 if test "${ac_cv_header_stdbool_h+set}" = set; then :
19679 $as_echo_n "(cached) " >&6
19681 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19682 /* end confdefs.h. */
19684 #include <stdbool.h>
19686 "error: bool is not defined"
19689 "error: false is not defined"
19692 "error: false is not 0"
19695 "error: true is not defined"
19698 "error: true is not 1"
19700 #ifndef __bool_true_false_are_defined
19701 "error: __bool_true_false_are_defined is not defined"
19704 struct s { _Bool s: 1; _Bool t; } s;
19706 char a[true == 1 ? 1 : -1];
19707 char b[false == 0 ? 1 : -1];
19708 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
19709 char d[(bool) 0.5 == true ? 1 : -1];
19710 /* See body of main program for 'e'. */
19711 char f[(_Bool) 0.0 == false ? 1 : -1];
19713 char h[sizeof (_Bool)];
19714 char i[sizeof s.t];
19715 enum { j = false, k = true, l = false * true, m = true * 256 };
19716 /* The following fails for
19717 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
19719 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
19720 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
19721 /* Catch a bug in an HP-UX C compiler. See
19722 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
19723 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
19735 /* Refer to every declared value, to avoid compiler optimizations. */
19736 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
19737 + !m + !n + !o + !p + !q + !pq);
19743 if ac_fn_c_try_compile
"$LINENO"; then :
19744 ac_cv_header_stdbool_h
=yes
19746 ac_cv_header_stdbool_h
=no
19748 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
19751 $as_echo "$ac_cv_header_stdbool_h" >&6; }
19752 ac_fn_c_check_type
"$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
19753 if test "x$ac_cv_type__Bool" = x
""yes; then :
19755 cat >>confdefs.h
<<_ACEOF
19756 #define HAVE__BOOL 1
19768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
19769 $as_echo_n "checking for wchar_t... " >&6; }
19770 if test "${gt_cv_c_wchar_t+set}" = set; then :
19771 $as_echo_n "(cached) " >&6
19773 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19774 /* end confdefs.h. */
19775 #include <stddef.h>
19776 wchar_t foo = (wchar_t)'\0';
19785 if ac_fn_c_try_compile
"$LINENO"; then :
19786 gt_cv_c_wchar_t
=yes
19790 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
19793 $as_echo "$gt_cv_c_wchar_t" >&6; }
19794 if test $gt_cv_c_wchar_t = yes; then
19796 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
19809 GNULIB_FPRINTF_POSIX
=0;
19825 GNULIB_OBSTACK_PRINTF
=0;
19826 GNULIB_OBSTACK_PRINTF_POSIX
=0;
19831 GNULIB_PRINTF_POSIX
=0;
19840 GNULIB_SPRINTF_POSIX
=0;
19841 GNULIB_STDIO_H_NONBLOCKING
=0;
19842 GNULIB_STDIO_H_SIGPIPE
=0;
19844 GNULIB_VASPRINTF
=0;
19849 GNULIB_VFPRINTF_POSIX
=0;
19851 GNULIB_VPRINTF_POSIX
=0;
19852 GNULIB_VSNPRINTF
=0;
19853 GNULIB_VSPRINTF_POSIX
=0;
19854 HAVE_DECL_FPURGE
=1;
19855 HAVE_DECL_FSEEKO
=1;
19856 HAVE_DECL_FTELLO
=1;
19857 HAVE_DECL_GETDELIM
=1;
19858 HAVE_DECL_GETLINE
=1;
19859 HAVE_DECL_OBSTACK_PRINTF
=1;
19860 HAVE_DECL_SNPRINTF
=1;
19861 HAVE_DECL_VSNPRINTF
=1;
19882 REPLACE_GETDELIM
=0;
19884 REPLACE_OBSTACK_PRINTF
=0;
19890 REPLACE_RENAMEAT
=0;
19891 REPLACE_SNPRINTF
=0;
19893 REPLACE_STDIO_READ_FUNCS
=0;
19894 REPLACE_STDIO_WRITE_FUNCS
=0;
19896 REPLACE_VASPRINTF
=0;
19897 REPLACE_VDPRINTF
=0;
19898 REPLACE_VFPRINTF
=0;
19900 REPLACE_VSNPRINTF
=0;
19901 REPLACE_VSPRINTF
=0;
19903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
19904 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
19905 if test "${ac_cv_struct_tm+set}" = set; then :
19906 $as_echo_n "(cached) " >&6
19908 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19909 /* end confdefs.h. */
19910 #include <sys/types.h>
19917 int *p = &tm.tm_sec;
19923 if ac_fn_c_try_compile
"$LINENO"; then :
19924 ac_cv_struct_tm
=time.h
19926 ac_cv_struct_tm
=sys
/time.h
19928 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
19931 $as_echo "$ac_cv_struct_tm" >&6; }
19932 if test $ac_cv_struct_tm = sys
/time.h
; then
19934 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
19938 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
19939 #include <$ac_cv_struct_tm>
19942 if test "x$ac_cv_member_struct_tm_tm_zone" = x
""yes; then :
19944 cat >>confdefs.h
<<_ACEOF
19945 #define HAVE_STRUCT_TM_TM_ZONE 1
19951 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
19953 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
19956 ac_fn_c_check_decl
"$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
19958 if test "x$ac_cv_have_decl_tzname" = x
""yes; then :
19964 cat >>confdefs.h
<<_ACEOF
19965 #define HAVE_DECL_TZNAME $ac_have_decl
19968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
19969 $as_echo_n "checking for tzname... " >&6; }
19970 if test "${ac_cv_var_tzname+set}" = set; then :
19971 $as_echo_n "(cached) " >&6
19973 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19974 /* end confdefs.h. */
19976 #if !HAVE_DECL_TZNAME
19977 extern char *tzname[];
19983 return tzname[0][0];
19988 if ac_fn_c_try_link
"$LINENO"; then :
19989 ac_cv_var_tzname
=yes
19991 ac_cv_var_tzname
=no
19993 rm -f core conftest.err conftest.
$ac_objext \
19994 conftest
$ac_exeext conftest.
$ac_ext
19996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
19997 $as_echo "$ac_cv_var_tzname" >&6; }
19998 if test $ac_cv_var_tzname = yes; then
20000 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
20006 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
20008 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x
""yes; then :
20010 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
20017 ac_fn_c_check_decl
"$LINENO" "strtoimax" "ac_cv_have_decl_strtoimax" "$ac_includes_default"
20018 if test "x$ac_cv_have_decl_strtoimax" = x
""yes; then :
20024 cat >>confdefs.h
<<_ACEOF
20025 #define HAVE_DECL_STRTOIMAX $ac_have_decl
20030 ac_fn_c_check_decl
"$LINENO" "strtoumax" "ac_cv_have_decl_strtoumax" "$ac_includes_default"
20031 if test "x$ac_cv_have_decl_strtoumax" = x
""yes; then :
20037 cat >>confdefs.h
<<_ACEOF
20038 #define HAVE_DECL_STRTOUMAX $ac_have_decl
20043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
20044 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
20045 if test "${ac_cv_header_stat_broken+set}" = set; then :
20046 $as_echo_n "(cached) " >&6
20048 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20049 /* end confdefs.h. */
20050 #include <sys/types.h>
20051 #include <sys/stat.h>
20053 #if defined S_ISBLK && defined S_IFDIR
20054 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
20057 #if defined S_ISBLK && defined S_IFCHR
20058 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
20061 #if defined S_ISLNK && defined S_IFREG
20062 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
20065 #if defined S_ISSOCK && defined S_IFREG
20066 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
20070 if ac_fn_c_try_compile
"$LINENO"; then :
20071 ac_cv_header_stat_broken
=no
20073 ac_cv_header_stat_broken
=yes
20075 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
20078 $as_echo "$ac_cv_header_stat_broken" >&6; }
20079 if test $ac_cv_header_stat_broken = yes; then
20081 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
20089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
20090 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
20091 if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then :
20092 $as_echo_n "(cached) " >&6
20094 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20095 /* end confdefs.h. */
20101 static struct timespec x; x.tv_sec = x.tv_nsec;
20106 if ac_fn_c_try_compile
"$LINENO"; then :
20107 gl_cv_sys_struct_timespec_in_time_h
=yes
20109 gl_cv_sys_struct_timespec_in_time_h
=no
20111 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
20114 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
20116 TIME_H_DEFINES_STRUCT_TIMESPEC
=0
20117 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
=0
20118 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
=0
20119 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
20120 TIME_H_DEFINES_STRUCT_TIMESPEC
=1
20122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
20123 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
20124 if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then :
20125 $as_echo_n "(cached) " >&6
20127 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20128 /* end confdefs.h. */
20129 #include <sys/time.h>
20134 static struct timespec x; x.tv_sec = x.tv_nsec;
20139 if ac_fn_c_try_compile
"$LINENO"; then :
20140 gl_cv_sys_struct_timespec_in_sys_time_h
=yes
20142 gl_cv_sys_struct_timespec_in_sys_time_h
=no
20144 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
20147 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
20148 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
20149 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
=1
20151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
20152 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
20153 if test "${gl_cv_sys_struct_timespec_in_pthread_h+set}" = set; then :
20154 $as_echo_n "(cached) " >&6
20156 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20157 /* end confdefs.h. */
20158 #include <pthread.h>
20163 static struct timespec x; x.tv_sec = x.tv_nsec;
20168 if ac_fn_c_try_compile
"$LINENO"; then :
20169 gl_cv_sys_struct_timespec_in_pthread_h
=yes
20171 gl_cv_sys_struct_timespec_in_pthread_h
=no
20173 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
20176 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
20177 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
20178 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
=1
20197 if test $gl_cv_have_include_next = yes; then
20198 gl_cv_next_time_h
='<'time.h
'>'
20200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
20201 $as_echo_n "checking absolute name of <time.h>... " >&6; }
20202 if test "${gl_cv_next_time_h+set}" = set; then :
20203 $as_echo_n "(cached) " >&6
20206 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20207 /* end confdefs.h. */
20212 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
20213 *) gl_absname_cpp
="$ac_cpp" ;;
20218 gl_dirsep_regex
='[/\\]'
20221 gl_dirsep_regex
='\/'
20224 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
20226 gl_header_literal_regex
=`echo 'time.h' \
20227 | sed -e "$gl_make_literal_regex_sed"`
20228 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
20229 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
20234 gl_cv_next_time_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20235 sed -n "$gl_absolute_header_sed"`'"'
20239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
20240 $as_echo "$gl_cv_next_time_h" >&6; }
20242 NEXT_TIME_H
=$gl_cv_next_time_h
20244 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
20245 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20246 gl_next_as_first_directive
='<'time.h
'>'
20248 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20249 gl_next_as_first_directive
=$gl_cv_next_time_h
20251 NEXT_AS_FIRST_DIRECTIVE_TIME_H
=$gl_next_as_first_directive
20266 ac_fn_c_check_decl
"$LINENO" "unsetenv" "ac_cv_have_decl_unsetenv" "$ac_includes_default"
20267 if test "x$ac_cv_have_decl_unsetenv" = x
""yes; then :
20273 cat >>confdefs.h
<<_ACEOF
20274 #define HAVE_DECL_UNSETENV $ac_have_decl
20278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the utimes function works" >&5
20279 $as_echo_n "checking whether the utimes function works... " >&6; }
20280 if test "${gl_cv_func_working_utimes+set}" = set; then :
20281 $as_echo_n "(cached) " >&6
20284 if test "$cross_compiling" = yes; then :
20285 gl_cv_func_working_utimes
=no
20287 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20288 /* end confdefs.h. */
20290 #include <sys/types.h>
20291 #include <sys/stat.h>
20293 #include <sys/time.h>
20295 #include <unistd.h>
20296 #include <stdlib.h>
20301 inorder (time_t a, time_t b, time_t c)
20303 return a <= b && b <= c;
20310 char const *file = "conftest.utimes";
20311 static struct timeval timeval[2] = {{9, 10}, {999999, 999999}};
20313 /* Test whether utimes() essentially works. */
20316 FILE *f = fopen (file, "w");
20319 else if (fclose (f) != 0)
20321 else if (utimes (file, timeval) != 0)
20323 else if (lstat (file, &sbuf) != 0)
20325 else if (!(sbuf.st_atime == timeval[0].tv_sec
20326 && sbuf.st_mtime == timeval[1].tv_sec))
20328 if (unlink (file) != 0)
20332 /* Test whether utimes() with a NULL argument sets the file's timestamp
20333 to the current time. Use 'fstat' as well as 'time' to
20334 determine the "current" time, to accommodate NFS file systems
20335 if there is a time skew between the host and the NFS server. */
20337 int fd = open (file, O_WRONLY|O_CREAT, 0644);
20343 struct stat st0, st1, st2;
20344 if (time (&t0) == (time_t) -1)
20346 else if (fstat (fd, &st0) != 0)
20348 else if (utimes (file, timeval) != 0)
20350 else if (utimes (file, NULL) != 0)
20352 else if (fstat (fd, &st1) != 0)
20354 else if (write (fd, "\n", 1) != 1)
20356 else if (fstat (fd, &st2) != 0)
20358 else if (time (&t2) == (time_t) -1)
20362 int m_ok_POSIX = inorder (t0, st1.st_mtime, t2);
20363 int m_ok_NFS = inorder (st0.st_mtime, st1.st_mtime, st2.st_mtime);
20364 if (! (st1.st_atime == st1.st_mtime))
20366 if (! (m_ok_POSIX || m_ok_NFS))
20369 if (close (fd) != 0)
20372 if (unlink (file) != 0)
20376 /* Test whether utimes() with a NULL argument works on read-only files. */
20378 int fd = open (file, O_WRONLY|O_CREAT, 0444);
20381 else if (close (fd) != 0)
20383 else if (utimes (file, NULL) != 0)
20385 if (unlink (file) != 0)
20393 if ac_fn_c_try_run
"$LINENO"; then :
20394 gl_cv_func_working_utimes
=yes
20396 gl_cv_func_working_utimes
=no
20398 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20399 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_utimes" >&5
20404 $as_echo "$gl_cv_func_working_utimes" >&6; }
20406 if test $gl_cv_func_working_utimes = yes; then
20408 $as_echo "#define HAVE_WORKING_UTIMES 1" >>confdefs.h
20416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
20417 $as_echo_n "checking for struct utimbuf... " >&6; }
20418 if test "${gl_cv_sys_struct_utimbuf+set}" = set; then :
20419 $as_echo_n "(cached) " >&6
20421 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20422 /* end confdefs.h. */
20423 #if HAVE_SYS_TIME_H
20424 #include <sys/time.h>
20427 #ifdef HAVE_UTIME_H
20434 static struct utimbuf x; x.actime = x.modtime;
20439 if ac_fn_c_try_compile
"$LINENO"; then :
20440 gl_cv_sys_struct_utimbuf
=yes
20442 gl_cv_sys_struct_utimbuf
=no
20444 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_utimbuf" >&5
20447 $as_echo "$gl_cv_sys_struct_utimbuf" >&6; }
20449 if test $gl_cv_sys_struct_utimbuf = yes; then
20451 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
20465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5
20466 $as_echo_n "checking type of array argument to getgroups... " >&6; }
20467 if test "${ac_cv_type_getgroups+set}" = set; then :
20468 $as_echo_n "(cached) " >&6
20470 if test "$cross_compiling" = yes; then :
20471 ac_cv_type_getgroups
=cross
20473 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20474 /* end confdefs.h. */
20475 /* Thanks to Mike Rendell for this test. */
20476 $ac_includes_default
20479 #define MAX(x, y) ((x) > (y) ? (x) : (y))
20484 gid_t gidset[NGID];
20486 union { gid_t gval; long int lval; } val;
20489 for (i = 0; i < NGID; i++)
20490 gidset[i] = val.gval;
20491 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
20493 /* Exit non-zero if getgroups seems to require an array of ints. This
20494 happens when gid_t is short int but getgroups modifies an array
20496 return n > 0 && gidset[n] != val.gval;
20499 if ac_fn_c_try_run
"$LINENO"; then :
20500 ac_cv_type_getgroups
=gid_t
20502 ac_cv_type_getgroups
=int
20504 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20505 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20508 if test $ac_cv_type_getgroups = cross
; then
20509 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20510 /* end confdefs.h. */
20511 #include <unistd.h>
20514 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20515 $EGREP "getgroups.*int.*gid_t" >/dev
/null
2>&1; then :
20516 ac_cv_type_getgroups
=gid_t
20518 ac_cv_type_getgroups
=int
20524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5
20525 $as_echo "$ac_cv_type_getgroups" >&6; }
20527 cat >>confdefs.h
<<_ACEOF
20528 #define GETGROUPS_T $ac_cv_type_getgroups
20535 GL_COND_LIBTOOL_TRUE
=
20536 GL_COND_LIBTOOL_FALSE
='#'
20538 GL_COND_LIBTOOL_TRUE
='#'
20539 GL_COND_LIBTOOL_FALSE
=
20542 gl_cond_libtool
=false
20555 gl_source_base
='lib'
20558 if test $ac_cv_func_alloca_works = no
; then
20562 # Define an additional variable used in the Makefile substitution.
20563 if test $ac_cv_working_alloca_h = yes; then
20564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
20565 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
20566 if test "${gl_cv_rpl_alloca+set}" = set; then :
20567 $as_echo_n "(cached) " >&6
20570 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20571 /* end confdefs.h. */
20573 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
20578 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20579 $EGREP "Need own alloca" >/dev
/null
2>&1; then :
20580 gl_cv_rpl_alloca
=yes
20582 gl_cv_rpl_alloca
=no
20588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
20589 $as_echo "$gl_cv_rpl_alloca" >&6; }
20590 if test $gl_cv_rpl_alloca = yes; then
20592 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
20602 if test -n "$ALLOCA_H"; then
20603 GL_GENERATE_ALLOCA_H_TRUE
=
20604 GL_GENERATE_ALLOCA_H_FALSE
='#'
20606 GL_GENERATE_ALLOCA_H_TRUE
='#'
20607 GL_GENERATE_ALLOCA_H_FALSE
=
20615 # Solaris 2.5.1 needs -lposix4 to get the clock_gettime function.
20616 # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
20618 # Save and restore LIBS so e.g., -lrt, isn't added to it. Otherwise, *all*
20619 # programs in the package would end up linked with that potentially-shared
20620 # library, inducing unnecessary run-time overhead.
20623 gl_saved_libs
=$LIBS
20624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
20625 $as_echo_n "checking for library containing clock_gettime... " >&6; }
20626 if test "${ac_cv_search_clock_gettime+set}" = set; then :
20627 $as_echo_n "(cached) " >&6
20629 ac_func_search_save_LIBS
=$LIBS
20630 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20631 /* end confdefs.h. */
20633 /* Override any GCC internal prototype to avoid an error.
20634 Use char because int might match the return type of a GCC
20635 builtin and then its argument prototype would still apply. */
20639 char clock_gettime ();
20643 return clock_gettime ();
20648 for ac_lib
in '' rt posix4
; do
20649 if test -z "$ac_lib"; then
20650 ac_res
="none required"
20653 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
20655 if ac_fn_c_try_link
"$LINENO"; then :
20656 ac_cv_search_clock_gettime
=$ac_res
20658 rm -f core conftest.err conftest.
$ac_objext \
20660 if test "${ac_cv_search_clock_gettime+set}" = set; then :
20664 if test "${ac_cv_search_clock_gettime+set}" = set; then :
20667 ac_cv_search_clock_gettime
=no
20669 rm conftest.
$ac_ext
20670 LIBS
=$ac_func_search_save_LIBS
20672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
20673 $as_echo "$ac_cv_search_clock_gettime" >&6; }
20674 ac_res
=$ac_cv_search_clock_gettime
20675 if test "$ac_res" != no
; then :
20676 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
20677 test "$ac_cv_search_clock_gettime" = "none required" ||
20678 LIB_CLOCK_GETTIME
=$ac_cv_search_clock_gettime
20681 for ac_func
in clock_gettime clock_settime
20683 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20684 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
20685 eval as_val
=\$
$as_ac_var
20686 if test "x$as_val" = x
""yes; then :
20687 cat >>confdefs.h
<<_ACEOF
20688 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20694 LIBS
=$gl_saved_libs
20701 cat >>confdefs.h
<<_ACEOF
20702 #define GNULIB_CLOSE_STREAM 1
20732 if test $gl_cv_have_include_next = yes; then
20733 gl_cv_next_dirent_h
='<'dirent.h
'>'
20735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <dirent.h>" >&5
20736 $as_echo_n "checking absolute name of <dirent.h>... " >&6; }
20737 if test "${gl_cv_next_dirent_h+set}" = set; then :
20738 $as_echo_n "(cached) " >&6
20741 if test $ac_cv_header_dirent_h = yes; then
20744 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20745 /* end confdefs.h. */
20746 #include <dirent.h>
20750 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
20751 *) gl_absname_cpp
="$ac_cpp" ;;
20756 gl_dirsep_regex
='[/\\]'
20759 gl_dirsep_regex
='\/'
20762 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
20764 gl_header_literal_regex
=`echo 'dirent.h' \
20765 | sed -e "$gl_make_literal_regex_sed"`
20766 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
20767 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
20772 gl_cv_next_dirent_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20773 sed -n "$gl_absolute_header_sed"`'"'
20775 gl_cv_next_dirent_h
='<'dirent.h
'>'
20780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_dirent_h" >&5
20781 $as_echo "$gl_cv_next_dirent_h" >&6; }
20783 NEXT_DIRENT_H
=$gl_cv_next_dirent_h
20785 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
20786 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20787 gl_next_as_first_directive
='<'dirent.h
'>'
20789 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20790 gl_next_as_first_directive
=$gl_cv_next_dirent_h
20792 NEXT_AS_FIRST_DIRECTIVE_DIRENT_H
=$gl_next_as_first_directive
20797 if test $ac_cv_header_dirent_h = yes; then
20812 $as_echo "#define HAVE_DUP2 1" >>confdefs.h
20815 if test $HAVE_DUP2 = 1; then
20816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5
20817 $as_echo_n "checking whether dup2 works... " >&6; }
20818 if test "${gl_cv_func_dup2_works+set}" = set; then :
20819 $as_echo_n "(cached) " >&6
20821 if test "$cross_compiling" = yes; then :
20823 mingw
*) # on this platform, dup2 always returns 0 for success
20824 gl_cv_func_dup2_works
="guessing no" ;;
20825 cygwin
*) # on cygwin 1.5.x, dup2(1,1) returns 0
20826 gl_cv_func_dup2_works
="guessing no" ;;
20827 linux
*) # On linux between 2008-07-27 and 2009-05-11, dup2 of a
20828 # closed fd may yield -EBADF instead of -1 / errno=EBADF.
20829 gl_cv_func_dup2_works
="guessing no" ;;
20830 freebsd
*) # on FreeBSD 6.1, dup2(1,1000000) gives EMFILE, not EBADF.
20831 gl_cv_func_dup2_works
="guessing no" ;;
20832 haiku
*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC.
20833 gl_cv_func_dup2_works
="guessing no" ;;
20834 *) gl_cv_func_dup2_works
="guessing yes" ;;
20837 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20838 /* end confdefs.h. */
20840 #include <unistd.h>
20848 if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1)
20851 if (dup2 (1, 1) == 0)
20854 if (fcntl (1, F_GETFD) != FD_CLOEXEC)
20858 if (dup2 (0, 0) != -1)
20860 /* Many gnulib modules require POSIX conformance of EBADF. */
20861 if (dup2 (2, 1000000) == -1 && errno != EBADF)
20863 /* Flush out a cygwin core dump. */
20864 if (dup2 (2, -1) != -1 || errno != EBADF)
20873 if ac_fn_c_try_run
"$LINENO"; then :
20874 gl_cv_func_dup2_works
=yes
20876 gl_cv_func_dup2_works
=no
20878 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20879 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5
20885 $as_echo "$gl_cv_func_dup2_works" >&6; }
20886 case "$gl_cv_func_dup2_works" in
20895 if test $HAVE_DUP2 = 0 ||
test $REPLACE_DUP2 = 1; then
20904 gl_LIBOBJS
="$gl_LIBOBJS dup2.$ac_objext"
20935 EXECINFO_H
='execinfo.h'
20937 if test $ac_cv_header_execinfo_h = yes; then
20938 gl_saved_libs
=$LIBS
20939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing backtrace_symbols_fd" >&5
20940 $as_echo_n "checking for library containing backtrace_symbols_fd... " >&6; }
20941 if test "${ac_cv_search_backtrace_symbols_fd+set}" = set; then :
20942 $as_echo_n "(cached) " >&6
20944 ac_func_search_save_LIBS
=$LIBS
20945 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20946 /* end confdefs.h. */
20948 /* Override any GCC internal prototype to avoid an error.
20949 Use char because int might match the return type of a GCC
20950 builtin and then its argument prototype would still apply. */
20954 char backtrace_symbols_fd ();
20958 return backtrace_symbols_fd ();
20963 for ac_lib
in '' execinfo
; do
20964 if test -z "$ac_lib"; then
20965 ac_res
="none required"
20968 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
20970 if ac_fn_c_try_link
"$LINENO"; then :
20971 ac_cv_search_backtrace_symbols_fd
=$ac_res
20973 rm -f core conftest.err conftest.
$ac_objext \
20975 if test "${ac_cv_search_backtrace_symbols_fd+set}" = set; then :
20979 if test "${ac_cv_search_backtrace_symbols_fd+set}" = set; then :
20982 ac_cv_search_backtrace_symbols_fd
=no
20984 rm conftest.
$ac_ext
20985 LIBS
=$ac_func_search_save_LIBS
20987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_backtrace_symbols_fd" >&5
20988 $as_echo "$ac_cv_search_backtrace_symbols_fd" >&6; }
20989 ac_res
=$ac_cv_search_backtrace_symbols_fd
20990 if test "$ac_res" != no
; then :
20991 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
20992 test "$ac_cv_search_backtrace_symbols_fd" = "none required" ||
20993 LIB_EXECINFO
=$ac_cv_search_backtrace_symbols_fd
20996 LIBS
=$gl_saved_libs
20997 test "$ac_cv_search_backtrace_symbols_fd" = no || EXECINFO_H
=''
21000 if test -n "$EXECINFO_H"; then
21009 gl_LIBOBJS
="$gl_LIBOBJS execinfo.$ac_objext"
21015 if test -n "$EXECINFO_H"; then
21016 GL_GENERATE_EXECINFO_H_TRUE
=
21017 GL_GENERATE_EXECINFO_H_FALSE
='#'
21019 GL_GENERATE_EXECINFO_H_TRUE
='#'
21020 GL_GENERATE_EXECINFO_H_FALSE
=
21031 if test $ac_cv_func_faccessat = no
; then
21035 if test $HAVE_FACCESSAT = 0; then
21044 gl_LIBOBJS
="$gl_LIBOBJS faccessat.$ac_objext"
21047 for ac_func
in access
21049 ac_fn_c_check_func
"$LINENO" "access" "ac_cv_func_access"
21050 if test "x$ac_cv_func_access" = x
""yes; then :
21051 cat >>confdefs.h
<<_ACEOF
21052 #define HAVE_ACCESS 1
21062 cat >>confdefs.h
<<_ACEOF
21063 #define GNULIB_FACCESSAT 1
21089 if test $gl_cv_have_include_next = yes; then
21090 gl_cv_next_fcntl_h
='<'fcntl.h
'>'
21092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <fcntl.h>" >&5
21093 $as_echo_n "checking absolute name of <fcntl.h>... " >&6; }
21094 if test "${gl_cv_next_fcntl_h+set}" = set; then :
21095 $as_echo_n "(cached) " >&6
21098 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21099 /* end confdefs.h. */
21104 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
21105 *) gl_absname_cpp
="$ac_cpp" ;;
21110 gl_dirsep_regex
='[/\\]'
21113 gl_dirsep_regex
='\/'
21116 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
21118 gl_header_literal_regex
=`echo 'fcntl.h' \
21119 | sed -e "$gl_make_literal_regex_sed"`
21120 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21121 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21126 gl_cv_next_fcntl_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21127 sed -n "$gl_absolute_header_sed"`'"'
21131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_fcntl_h" >&5
21132 $as_echo "$gl_cv_next_fcntl_h" >&6; }
21134 NEXT_FCNTL_H
=$gl_cv_next_fcntl_h
21136 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
21137 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21138 gl_next_as_first_directive
='<'fcntl.h
'>'
21140 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21141 gl_next_as_first_directive
=$gl_cv_next_fcntl_h
21143 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H
=$gl_next_as_first_directive
21160 ac_fn_c_check_decl
"$LINENO" "fdopendir" "ac_cv_have_decl_fdopendir" "
21161 #include <dirent.h>
21164 if test "x$ac_cv_have_decl_fdopendir" = x
""yes; then :
21170 cat >>confdefs.h
<<_ACEOF
21171 #define HAVE_DECL_FDOPENDIR $ac_have_decl
21173 if test $ac_have_decl = 1; then :
21176 HAVE_DECL_FDOPENDIR
=0
21180 if test $ac_cv_func_fdopendir = no
; then
21183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fdopendir works" >&5
21184 $as_echo_n "checking whether fdopendir works... " >&6; }
21185 if test "${gl_cv_func_fdopendir_works+set}" = set; then :
21186 $as_echo_n "(cached) " >&6
21188 if test "$cross_compiling" = yes; then :
21190 # Guess yes on glibc systems.
21191 *-gnu*) gl_cv_func_fdopendir_works
="guessing yes" ;;
21192 # If we don't know, assume the worst.
21193 *) gl_cv_func_fdopendir_works
="guessing no" ;;
21197 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21198 /* end confdefs.h. */
21200 #include <dirent.h>
21202 #include <unistd.h>
21203 #if !HAVE_DECL_FDOPENDIR
21205 # ifdef __cplusplus
21208 DIR *fdopendir (int);
21215 int fd = open ("conftest.c", O_RDONLY);
21216 if (fd < 0) result |= 1;
21217 if (fdopendir (fd)) result |= 2;
21218 if (close (fd)) result |= 4;
21224 if ac_fn_c_try_run
"$LINENO"; then :
21225 gl_cv_func_fdopendir_works
=yes
21227 gl_cv_func_fdopendir_works
=no
21229 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21230 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fdopendir_works" >&5
21235 $as_echo "$gl_cv_func_fdopendir_works" >&6; }
21236 case "$gl_cv_func_fdopendir_works" in
21239 REPLACE_FDOPENDIR
=1
21244 if test $HAVE_FDOPENDIR = 0 ||
test $REPLACE_FDOPENDIR = 1; then
21253 gl_LIBOBJS
="$gl_LIBOBJS fdopendir.$ac_objext"
21269 cat >>confdefs.h
<<_ACEOF
21270 #define GNULIB_FDOPENDIR 1
21282 # include <stdio.h>
21283 # if HAVE_STDIO_EXT_H
21284 # include <stdio_ext.h>
21287 ac_fn_c_check_decl
"$LINENO" "__fpending" "ac_cv_have_decl___fpending" "$fp_headers
21289 if test "x$ac_cv_have_decl___fpending" = x
""yes; then :
21295 cat >>confdefs.h
<<_ACEOF
21296 #define HAVE_DECL___FPENDING $ac_have_decl
21300 if test $ac_cv_func___fpending = no
; then
21309 gl_LIBOBJS
="$gl_LIBOBJS fpending.$ac_objext"
21312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to determine the number of pending output bytes on a stream" >&5
21313 $as_echo_n "checking how to determine the number of pending output bytes on a stream... " >&6; }
21314 if test "${ac_cv_sys_pending_output_n_bytes+set}" = set; then :
21315 $as_echo_n "(cached) " >&6
21321 'fp->_IO_write_ptr - fp->_IO_write_base' \
21323 '# traditional Unix' \
21324 'fp->_ptr - fp->_base' \
21327 'fp->_p - fp->_bf._base' \
21329 '# SCO, Unixware' \
21330 '(fp->__ptr ? fp->__ptr - fp->__base : 0)' \
21333 '(fp->_Mode & 0x2000 /*_MWRITE*/ ? fp->_Next - fp->_Buf : 0)' \
21336 'fp->__bufp - fp->__buffer' \
21338 '# old glibc iostream?' \
21339 'fp->_pptr - fp->_pbase' \
21342 'fp->_ptr - fp->_buffer' \
21345 'fp->_ptr - fp->_buf' \
21348 'fp->wp - fp->buf' \
21351 '(*fp)->_ptr - (*fp)->_base' \
21353 '# e.g., DGUX R4.11; the info is not available' \
21357 # Skip each embedded comment.
21358 case "$ac_expr" in '#'*) continue;; esac
21360 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21361 /* end confdefs.h. */
21366 FILE *fp = stdin; (void) ($ac_expr);
21371 if ac_fn_c_try_compile
"$LINENO"; then :
21375 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21376 test "$fp_done" = yes && break
21379 ac_cv_sys_pending_output_n_bytes
=$ac_expr
21383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_pending_output_n_bytes" >&5
21384 $as_echo "$ac_cv_sys_pending_output_n_bytes" >&6; }
21386 cat >>confdefs.h
<<_ACEOF
21387 #define PENDING_OUTPUT_N_BYTES $ac_cv_sys_pending_output_n_bytes
21398 if test $ac_cv_func_fstatat = no
; then
21401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fstatat (..., 0) works" >&5
21402 $as_echo_n "checking whether fstatat (..., 0) works... " >&6; }
21403 if test "${gl_cv_func_fstatat_zero_flag+set}" = set; then :
21404 $as_echo_n "(cached) " >&6
21406 if test "$cross_compiling" = yes; then :
21408 aix
*) gl_cv_func_fstatat_zero_flag
="guessing no";;
21409 *) gl_cv_func_fstatat_zero_flag
="guessing yes";;
21413 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21414 /* end confdefs.h. */
21417 #include <sys/stat.h>
21422 return fstatat (AT_FDCWD, ".", &a, 0) != 0;
21426 if ac_fn_c_try_run
"$LINENO"; then :
21427 gl_cv_func_fstatat_zero_flag
=yes
21429 gl_cv_func_fstatat_zero_flag
=no
21431 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21432 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fstatat_zero_flag" >&5
21438 $as_echo "$gl_cv_func_fstatat_zero_flag" >&6; }
21440 case $gl_cv_func_fstatat_zero_flag+$gl_cv_func_lstat_dereferences_slashed_symlink in
21442 *) REPLACE_FSTATAT
=1
21443 case $gl_cv_func_fstatat_zero_flag in
21446 $as_echo "#define HAVE_WORKING_FSTATAT_ZERO_FLAG 1" >>confdefs.h
21454 if test $HAVE_FSTATAT = 0 ||
test $REPLACE_FSTATAT = 1; then
21463 gl_LIBOBJS
="$gl_LIBOBJS fstatat.$ac_objext"
21479 # Persuade glibc <stdlib.h> to declare getloadavg().
21484 # getloadvg is present in libc on glibc >= 2.2, Mac OS X, FreeBSD >= 2.0,
21485 # NetBSD >= 0.9, OpenBSD >= 2.0, Solaris >= 7.
21487 ac_fn_c_check_func
"$LINENO" "getloadavg" "ac_cv_func_getloadavg"
21488 if test "x$ac_cv_func_getloadavg" = x
""yes; then :
21491 gl_func_getloadavg_done
=no
21493 # Some systems with -lutil have (and need) -lkvm as well, some do not.
21494 # On Solaris, -lkvm requires nlist from -lelf, so check that first
21495 # to get the right answer into the cache.
21496 # For kstat on solaris, we need to test for libelf and libkvm to force the
21497 # definition of SVR4 below.
21498 if test $gl_func_getloadavg_done = no
; then
21499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
21500 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
21501 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then :
21502 $as_echo_n "(cached) " >&6
21504 ac_check_lib_save_LIBS
=$LIBS
21506 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21507 /* end confdefs.h. */
21509 /* Override any GCC internal prototype to avoid an error.
21510 Use char because int might match the return type of a GCC
21511 builtin and then its argument prototype would still apply. */
21519 return elf_begin ();
21524 if ac_fn_c_try_link
"$LINENO"; then :
21525 ac_cv_lib_elf_elf_begin
=yes
21527 ac_cv_lib_elf_elf_begin
=no
21529 rm -f core conftest.err conftest.
$ac_objext \
21530 conftest
$ac_exeext conftest.
$ac_ext
21531 LIBS
=$ac_check_lib_save_LIBS
21533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
21534 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
21535 if test "x$ac_cv_lib_elf_elf_begin" = x
""yes; then :
21539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
21540 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
21541 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then :
21542 $as_echo_n "(cached) " >&6
21544 ac_check_lib_save_LIBS
=$LIBS
21546 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21547 /* end confdefs.h. */
21549 /* Override any GCC internal prototype to avoid an error.
21550 Use char because int might match the return type of a GCC
21551 builtin and then its argument prototype would still apply. */
21559 return kvm_open ();
21564 if ac_fn_c_try_link
"$LINENO"; then :
21565 ac_cv_lib_kvm_kvm_open
=yes
21567 ac_cv_lib_kvm_kvm_open
=no
21569 rm -f core conftest.err conftest.
$ac_objext \
21570 conftest
$ac_exeext conftest.
$ac_ext
21571 LIBS
=$ac_check_lib_save_LIBS
21573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
21574 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
21575 if test "x$ac_cv_lib_kvm_kvm_open" = x
""yes; then :
21579 # Check for the 4.4BSD definition of getloadavg.
21580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
21581 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
21582 if test "${ac_cv_lib_util_getloadavg+set}" = set; then :
21583 $as_echo_n "(cached) " >&6
21585 ac_check_lib_save_LIBS
=$LIBS
21586 LIBS
="-lutil $LIBS"
21587 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21588 /* end confdefs.h. */
21590 /* Override any GCC internal prototype to avoid an error.
21591 Use char because int might match the return type of a GCC
21592 builtin and then its argument prototype would still apply. */
21596 char getloadavg ();
21600 return getloadavg ();
21605 if ac_fn_c_try_link
"$LINENO"; then :
21606 ac_cv_lib_util_getloadavg
=yes
21608 ac_cv_lib_util_getloadavg
=no
21610 rm -f core conftest.err conftest.
$ac_objext \
21611 conftest
$ac_exeext conftest.
$ac_ext
21612 LIBS
=$ac_check_lib_save_LIBS
21614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
21615 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
21616 if test "x$ac_cv_lib_util_getloadavg" = x
""yes; then :
21617 LIBS
="-lutil $LIBS" gl_func_getloadavg_done
=yes
21622 if test $gl_func_getloadavg_done = no
; then
21623 # There is a commonly available library for RS/6000 AIX.
21624 # Since it is not a standard part of AIX, it might be installed locally.
21625 gl_getloadavg_LIBS
=$LIBS
21626 LIBS
="-L/usr/local/lib $LIBS"
21627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
21628 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
21629 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then :
21630 $as_echo_n "(cached) " >&6
21632 ac_check_lib_save_LIBS
=$LIBS
21633 LIBS
="-lgetloadavg $LIBS"
21634 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21635 /* end confdefs.h. */
21637 /* Override any GCC internal prototype to avoid an error.
21638 Use char because int might match the return type of a GCC
21639 builtin and then its argument prototype would still apply. */
21643 char getloadavg ();
21647 return getloadavg ();
21652 if ac_fn_c_try_link
"$LINENO"; then :
21653 ac_cv_lib_getloadavg_getloadavg
=yes
21655 ac_cv_lib_getloadavg_getloadavg
=no
21657 rm -f core conftest.err conftest.
$ac_objext \
21658 conftest
$ac_exeext conftest.
$ac_ext
21659 LIBS
=$ac_check_lib_save_LIBS
21661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
21662 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
21663 if test "x$ac_cv_lib_getloadavg_getloadavg" = x
""yes; then :
21664 LIBS
="-lgetloadavg $LIBS" gl_func_getloadavg_done
=yes
21666 LIBS
=$gl_getloadavg_LIBS
21671 # Set up the replacement function if necessary.
21672 if test $gl_func_getloadavg_done = no
; then
21675 # Solaris has libkstat which does not require root.
21676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
21677 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
21678 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
21679 $as_echo_n "(cached) " >&6
21681 ac_check_lib_save_LIBS
=$LIBS
21682 LIBS
="-lkstat $LIBS"
21683 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21684 /* end confdefs.h. */
21686 /* Override any GCC internal prototype to avoid an error.
21687 Use char because int might match the return type of a GCC
21688 builtin and then its argument prototype would still apply. */
21692 char kstat_open ();
21696 return kstat_open ();
21701 if ac_fn_c_try_link
"$LINENO"; then :
21702 ac_cv_lib_kstat_kstat_open
=yes
21704 ac_cv_lib_kstat_kstat_open
=no
21706 rm -f core conftest.err conftest.
$ac_objext \
21707 conftest
$ac_exeext conftest.
$ac_ext
21708 LIBS
=$ac_check_lib_save_LIBS
21710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
21711 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
21712 if test "x$ac_cv_lib_kstat_kstat_open" = x
""yes; then :
21713 cat >>confdefs.h
<<_ACEOF
21714 #define HAVE_LIBKSTAT 1
21717 LIBS
="-lkstat $LIBS"
21721 test $ac_cv_lib_kstat_kstat_open = yes && gl_func_getloadavg_done
=yes
21723 # AIX has libperfstat which does not require root
21724 if test $gl_func_getloadavg_done = no
; then
21725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perfstat_cpu_total in -lperfstat" >&5
21726 $as_echo_n "checking for perfstat_cpu_total in -lperfstat... " >&6; }
21727 if test "${ac_cv_lib_perfstat_perfstat_cpu_total+set}" = set; then :
21728 $as_echo_n "(cached) " >&6
21730 ac_check_lib_save_LIBS
=$LIBS
21731 LIBS
="-lperfstat $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 perfstat_cpu_total ();
21745 return perfstat_cpu_total ();
21750 if ac_fn_c_try_link
"$LINENO"; then :
21751 ac_cv_lib_perfstat_perfstat_cpu_total
=yes
21753 ac_cv_lib_perfstat_perfstat_cpu_total
=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_perfstat_perfstat_cpu_total" >&5
21760 $as_echo "$ac_cv_lib_perfstat_perfstat_cpu_total" >&6; }
21761 if test "x$ac_cv_lib_perfstat_perfstat_cpu_total" = x
""yes; then :
21762 cat >>confdefs.h
<<_ACEOF
21763 #define HAVE_LIBPERFSTAT 1
21766 LIBS
="-lperfstat $LIBS"
21770 test $ac_cv_lib_perfstat_perfstat_cpu_total = yes && gl_func_getloadavg_done
=yes
21773 if test $gl_func_getloadavg_done = no
; then
21774 ac_fn_c_check_header_mongrel
"$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
21775 if test "x$ac_cv_header_sys_dg_sys_info_h" = x
""yes; then :
21776 gl_func_getloadavg_done
=yes
21778 $as_echo "#define DGUX 1" >>confdefs.h
21780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
21781 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
21782 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then :
21783 $as_echo_n "(cached) " >&6
21785 ac_check_lib_save_LIBS
=$LIBS
21787 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21788 /* end confdefs.h. */
21790 /* Override any GCC internal prototype to avoid an error.
21791 Use char because int might match the return type of a GCC
21792 builtin and then its argument prototype would still apply. */
21796 char dg_sys_info ();
21800 return dg_sys_info ();
21805 if ac_fn_c_try_link
"$LINENO"; then :
21806 ac_cv_lib_dgc_dg_sys_info
=yes
21808 ac_cv_lib_dgc_dg_sys_info
=no
21810 rm -f core conftest.err conftest.
$ac_objext \
21811 conftest
$ac_exeext conftest.
$ac_ext
21812 LIBS
=$ac_check_lib_save_LIBS
21814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
21815 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
21816 if test "x$ac_cv_lib_dgc_dg_sys_info" = x
""yes; then :
21817 cat >>confdefs.h
<<_ACEOF
21818 #define HAVE_LIBDGC 1
21833 if test "x$gl_save_LIBS" = x
; then
21834 GETLOADAVG_LIBS
=$LIBS
21836 GETLOADAVG_LIBS
=`echo "$LIBS" | sed "s!$gl_save_LIBS!!"`
21841 # Test whether the system declares getloadavg. Solaris has the function
21842 # but declares it in <sys/loadavg.h>, not <stdlib.h>.
21843 for ac_header
in sys
/loadavg.h
21845 ac_fn_c_check_header_mongrel
"$LINENO" "sys/loadavg.h" "ac_cv_header_sys_loadavg_h" "$ac_includes_default"
21846 if test "x$ac_cv_header_sys_loadavg_h" = x
""yes; then :
21847 cat >>confdefs.h
<<_ACEOF
21848 #define HAVE_SYS_LOADAVG_H 1
21855 if test $ac_cv_header_sys_loadavg_h = yes; then
21856 HAVE_SYS_LOADAVG_H
=1
21858 HAVE_SYS_LOADAVG_H
=0
21860 ac_fn_c_check_decl
"$LINENO" "getloadavg" "ac_cv_have_decl_getloadavg" "#if HAVE_SYS_LOADAVG_H
21861 # include <sys/loadavg.h>
21863 #include <stdlib.h>
21865 if test "x$ac_cv_have_decl_getloadavg" = x
""yes; then :
21868 HAVE_DECL_GETLOADAVG
=0
21872 if test $HAVE_GETLOADAVG = 0; then
21881 gl_LIBOBJS
="$gl_LIBOBJS getloadavg.$ac_objext"
21884 # Figure out what our getloadavg.c needs.
21888 # On HPUX9, an unprivileged user can get load averages this way.
21889 if test $gl_func_getloadavg_done = no
; then
21890 for ac_func
in pstat_getdynamic
21892 ac_fn_c_check_func
"$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
21893 if test "x$ac_cv_func_pstat_getdynamic" = x
""yes; then :
21894 cat >>confdefs.h
<<_ACEOF
21895 #define HAVE_PSTAT_GETDYNAMIC 1
21897 gl_func_getloadavg_done
=yes
21903 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
21904 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
21905 # Irix 4.0.5F has the header but not the library.
21906 if test $gl_func_getloadavg_done = no
&& test "$ac_cv_lib_elf_elf_begin" = yes \
21907 && test "$ac_cv_lib_kvm_kvm_open" = yes; then
21908 gl_func_getloadavg_done
=yes
21910 $as_echo "#define SVR4 1" >>confdefs.h
21914 if test $gl_func_getloadavg_done = no
; then
21915 ac_fn_c_check_header_mongrel
"$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
21916 if test "x$ac_cv_header_inq_stats_cpustats_h" = x
""yes; then :
21917 gl_func_getloadavg_done
=yes
21919 $as_echo "#define UMAX 1" >>confdefs.h
21922 $as_echo "#define UMAX4_3 1" >>confdefs.h
21929 if test $gl_func_getloadavg_done = no
; then
21930 ac_fn_c_check_header_mongrel
"$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
21931 if test "x$ac_cv_header_sys_cpustats_h" = x
""yes; then :
21932 gl_func_getloadavg_done
=yes; $as_echo "#define UMAX 1" >>confdefs.h
21939 if test $gl_func_getloadavg_done = no
; then
21940 for ac_header
in mach
/mach.h
21942 ac_fn_c_check_header_mongrel
"$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
21943 if test "x$ac_cv_header_mach_mach_h" = x
""yes; then :
21944 cat >>confdefs.h
<<_ACEOF
21945 #define HAVE_MACH_MACH_H 1
21954 for ac_header
in nlist.h
21956 ac_fn_c_check_header_mongrel
"$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
21957 if test "x$ac_cv_header_nlist_h" = x
""yes; then :
21958 cat >>confdefs.h
<<_ACEOF
21959 #define HAVE_NLIST_H 1
21961 ac_fn_c_check_member
"$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
21963 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x
""yes; then :
21965 cat >>confdefs.h
<<_ACEOF
21966 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
21972 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21973 /* end confdefs.h. */
21979 #ifdef HAVE_STRUCT_NLIST_N_UN_N_NAME
21980 x.n_un.n_name = "";
21988 if ac_fn_c_try_link
"$LINENO"; then :
21990 $as_echo "#define N_NAME_POINTER 1" >>confdefs.h
21993 rm -f core conftest.err conftest.
$ac_objext \
21994 conftest
$ac_exeext conftest.
$ac_ext
22006 GNULIB_GETLOADAVG
=1
22017 if test $REPLACE_GETOPT = 1; then
22026 gl_LIBOBJS
="$gl_LIBOBJS getopt.$ac_objext"
22036 gl_LIBOBJS
="$gl_LIBOBJS getopt1.$ac_objext"
22041 GNULIB_GL_UNISTD_H_GETOPT
=1
22051 if test -n "$gl_replace_getopt"; then
22055 if test $REPLACE_GETOPT = 1; then
22059 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
22065 if test $REPLACE_GETOPT = 1; then
22074 gl_LIBOBJS
="$gl_LIBOBJS getopt.$ac_objext"
22084 gl_LIBOBJS
="$gl_LIBOBJS getopt1.$ac_objext"
22089 GNULIB_GL_UNISTD_H_GETOPT
=1
22103 gl_gettimeofday_timezone
=void
22104 if test $ac_cv_func_gettimeofday != yes; then
22105 HAVE_GETTIMEOFDAY
=0
22110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday clobbers localtime buffer" >&5
22111 $as_echo_n "checking whether gettimeofday clobbers localtime buffer... " >&6; }
22112 if test "${gl_cv_func_gettimeofday_clobber+set}" = set; then :
22113 $as_echo_n "(cached) " >&6
22115 if test "$cross_compiling" = yes; then :
22116 # When cross-compiling:
22118 # Guess all is fine on glibc systems.
22119 *-gnu*) gl_cv_func_gettimeofday_clobber
="guessing no" ;;
22120 # If we don't know, assume the worst.
22121 *) gl_cv_func_gettimeofday_clobber
="guessing yes" ;;
22125 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22126 /* end confdefs.h. */
22127 #include <string.h>
22128 #include <sys/time.h>
22130 #include <stdlib.h>
22138 struct tm saved_lt;
22140 lt = localtime (&t);
22142 gettimeofday (&tv, NULL);
22143 return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0;
22149 if ac_fn_c_try_run
"$LINENO"; then :
22150 gl_cv_func_gettimeofday_clobber
=no
22152 gl_cv_func_gettimeofday_clobber
=yes
22154 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22155 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_clobber" >&5
22160 $as_echo "$gl_cv_func_gettimeofday_clobber" >&6; }
22162 case "$gl_cv_func_gettimeofday_clobber" in
22164 REPLACE_GETTIMEOFDAY
=1
22167 $as_echo "#define gmtime rpl_gmtime" >>confdefs.h
22170 $as_echo "#define localtime rpl_localtime" >>confdefs.h
22174 $as_echo "#define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1" >>confdefs.h
22179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday with POSIX signature" >&5
22180 $as_echo_n "checking for gettimeofday with POSIX signature... " >&6; }
22181 if test "${gl_cv_func_gettimeofday_posix_signature+set}" = set; then :
22182 $as_echo_n "(cached) " >&6
22184 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22185 /* end confdefs.h. */
22186 #include <sys/time.h>
22188 int gettimeofday (struct timeval *restrict, void *restrict);
22193 /* glibc uses struct timezone * rather than the POSIX void *
22194 if _GNU_SOURCE is defined. However, since the only portable
22195 use of gettimeofday uses NULL as the second parameter, and
22196 since the glibc definition is actually more typesafe, it is
22197 not worth wrapping this to get a compliant signature. */
22198 int (*f) (struct timeval *restrict, void *restrict)
22201 return !(x | c.tv_sec | c.tv_usec);
22207 if ac_fn_c_try_compile
"$LINENO"; then :
22208 gl_cv_func_gettimeofday_posix_signature
=yes
22210 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22211 /* end confdefs.h. */
22212 #include <sys/time.h>
22213 int gettimeofday (struct timeval *restrict, struct timezone *restrict);
22223 if ac_fn_c_try_compile
"$LINENO"; then :
22224 gl_cv_func_gettimeofday_posix_signature
=almost
22226 gl_cv_func_gettimeofday_posix_signature
=no
22228 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22230 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_posix_signature" >&5
22233 $as_echo "$gl_cv_func_gettimeofday_posix_signature" >&6; }
22234 if test $gl_cv_func_gettimeofday_posix_signature = almost
; then
22235 gl_gettimeofday_timezone
='struct timezone'
22236 elif test $gl_cv_func_gettimeofday_posix_signature != yes; then
22237 REPLACE_GETTIMEOFDAY
=1
22239 if test $REPLACE_STRUCT_TIMEVAL = 1; then
22240 REPLACE_GETTIMEOFDAY
=1
22245 cat >>confdefs.h
<<_ACEOF
22246 #define GETTIMEOFDAY_TIMEZONE $gl_gettimeofday_timezone
22250 if test $HAVE_GETTIMEOFDAY = 0 ||
test $REPLACE_GETTIMEOFDAY = 1; then
22259 gl_LIBOBJS
="$gl_LIBOBJS gettimeofday.$ac_objext"
22262 for ac_header
in sys
/timeb.h
22264 ac_fn_c_check_header_mongrel
"$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
22265 if test "x$ac_cv_header_sys_timeb_h" = x
""yes; then :
22266 cat >>confdefs.h
<<_ACEOF
22267 #define HAVE_SYS_TIMEB_H 1
22274 for ac_func
in _ftime
22276 ac_fn_c_check_func
"$LINENO" "_ftime" "ac_cv_func__ftime"
22277 if test "x$ac_cv_func__ftime" = x
""yes; then :
22278 cat >>confdefs.h
<<_ACEOF
22279 #define HAVE__FTIME 1
22292 GNULIB_GETTIMEOFDAY
=1
22303 if test $ac_cv_func_lstat = yes; then
22305 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
22314 if test $REPLACE_LSTAT = 1; then
22323 gl_LIBOBJS
="$gl_LIBOBJS lstat.$ac_objext"
22344 if test $APPLE_UNIVERSAL_BUILD = 1; then
22345 # A universal build on Apple Mac OS X platforms.
22346 # The test result would be 'yes' in 32-bit mode and 'no' in 64-bit mode.
22347 # But we need a configuration result that is valid in both modes.
22348 gl_cv_func_working_mktime
=no
22350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
22351 $as_echo_n "checking for working mktime... " >&6; }
22352 if test "${gl_cv_func_working_mktime+set}" = set; then :
22353 $as_echo_n "(cached) " >&6
22355 if test "$cross_compiling" = yes; then :
22356 gl_cv_func_working_mktime
=no
22358 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22359 /* end confdefs.h. */
22360 /* Test program from Paul Eggert and Tony Leneis. */
22361 #include <limits.h>
22362 #include <stdlib.h>
22365 #ifdef HAVE_UNISTD_H
22366 # include <unistd.h>
22370 # define alarm(X) /* empty */
22373 /* Work around redefinition to rpl_putenv by other config tests. */
22376 static time_t time_t_max;
22377 static time_t time_t_min;
22379 /* Values we'll use to set the TZ environment variable. */
22380 static char *tz_strings[] = {
22381 (char *) 0, "TZ=GMT0", "TZ=JST-9",
22382 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
22384 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
22386 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
22387 Based on a problem report from Andreas Jaeger. */
22389 spring_forward_gap ()
22391 /* glibc (up to about 1998-10-07) failed this test. */
22394 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
22395 instead of "TZ=America/Vancouver" in order to detect the bug even
22396 on systems that don't support the Olson extension, or don't have the
22397 full zoneinfo tables installed. */
22398 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
22407 return mktime (&tm) != (time_t) -1;
22411 mktime_test1 (time_t now)
22414 return ! (lt = localtime (&now)) || mktime (lt) == now;
22418 mktime_test (time_t now)
22420 return (mktime_test1 (now)
22421 && mktime_test1 ((time_t) (time_t_max - now))
22422 && mktime_test1 ((time_t) (time_t_min + now)));
22428 /* Based on code from Ariel Faigon. */
22438 return tm.tm_mon == 2 && tm.tm_mday == 31;
22442 bigtime_test (int j)
22446 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
22447 now = mktime (&tm);
22448 if (now != (time_t) -1)
22450 struct tm *lt = localtime (&now);
22452 && lt->tm_year == tm.tm_year
22453 && lt->tm_mon == tm.tm_mon
22454 && lt->tm_mday == tm.tm_mday
22455 && lt->tm_hour == tm.tm_hour
22456 && lt->tm_min == tm.tm_min
22457 && lt->tm_sec == tm.tm_sec
22458 && lt->tm_yday == tm.tm_yday
22459 && lt->tm_wday == tm.tm_wday
22460 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
22461 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
22470 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
22471 ignoring leap seconds. */
22472 unsigned long int answer = 2527315200UL;
22476 tm.tm_year = 2050 - 1900;
22479 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
22482 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
22483 instead of "TZ=America/Vancouver" in order to detect the bug even
22484 on systems that don't support the Olson extension, or don't have the
22485 full zoneinfo tables installed. */
22486 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
22490 /* Check that the result is either a failure, or close enough
22491 to the correct answer that we can assume the discrepancy is
22492 due to leap seconds. */
22493 return (t == (time_t) -1
22494 || (0 < t && answer - 120 <= t && t <= answer + 120));
22503 int time_t_signed_magnitude = (time_t) ~ (time_t) 0 < (time_t) -1;
22504 int time_t_signed = ! ((time_t) 0 < (time_t) -1);
22506 /* This test makes some buggy mktime implementations loop.
22507 Give up after 60 seconds; a mktime slower than that
22508 isn't worth using anyway. */
22511 time_t_max = (! time_t_signed
22513 : ((((time_t) 1 << (sizeof (time_t) * CHAR_BIT - 2)) - 1)
22515 time_t_min = (! time_t_signed
22517 : time_t_signed_magnitude
22521 delta = time_t_max / 997; /* a suitable prime number */
22522 for (i = 0; i < N_STRINGS; i++)
22525 putenv (tz_strings[i]);
22527 for (t = 0; t <= time_t_max - delta && (result & 1) == 0; t += delta)
22528 if (! mktime_test (t))
22530 if ((result & 2) == 0
22531 && ! (mktime_test ((time_t) 1)
22532 && mktime_test ((time_t) (60 * 60))
22533 && mktime_test ((time_t) (60 * 60 * 24))))
22536 for (j = 1; (result & 4) == 0; j <<= 1)
22538 if (! bigtime_test (j))
22540 if (INT_MAX / 2 < j)
22543 if ((result & 8) == 0 && ! bigtime_test (INT_MAX))
22546 if (! irix_6_4_bug ())
22548 if (! spring_forward_gap ())
22550 if (! year_2050_test ())
22555 if ac_fn_c_try_run
"$LINENO"; then :
22556 gl_cv_func_working_mktime
=yes
22558 gl_cv_func_working_mktime
=no
22560 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22561 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_mktime" >&5
22567 $as_echo "$gl_cv_func_working_mktime" >&6; }
22569 if test $gl_cv_func_working_mktime = no
; then
22575 if test $REPLACE_MKTIME = 1; then
22584 gl_LIBOBJS
="$gl_LIBOBJS mktime.$ac_objext"
22605 if test $ac_cv_func_pselect = yes; then
22606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether signature of pselect conforms to POSIX" >&5
22607 $as_echo_n "checking whether signature of pselect conforms to POSIX... " >&6; }
22608 if test "${gl_cv_sig_pselect+set}" = set; then :
22609 $as_echo_n "(cached) " >&6
22611 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22612 /* end confdefs.h. */
22613 #include <sys/select.h>
22618 int (*p) (int, fd_set *, fd_set *, fd_set *restrict,
22619 struct timespec const *restrict,
22620 sigset_t const *restrict) = pselect;
22626 if ac_fn_c_try_link
"$LINENO"; then :
22627 gl_cv_sig_pselect
=yes
22629 gl_cv_sig_pselect
=no
22631 rm -f core conftest.err conftest.
$ac_objext \
22632 conftest
$ac_exeext conftest.
$ac_ext
22634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sig_pselect" >&5
22635 $as_echo "$gl_cv_sig_pselect" >&6; }
22637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pselect detects invalid fds" >&5
22638 $as_echo_n "checking whether pselect detects invalid fds... " >&6; }
22639 if test "${gl_cv_func_pselect_detects_ebadf+set}" = set; then :
22640 $as_echo_n "(cached) " >&6
22643 if test "$cross_compiling" = yes; then :
22646 # Guess yes on glibc systems.
22647 *-gnu*) gl_cv_func_pselect_detects_ebadf
="guessing yes" ;;
22648 # If we don't know, assume the worst.
22649 *) gl_cv_func_pselect_detects_ebadf
="guessing no" ;;
22653 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22654 /* end confdefs.h. */
22656 #include <sys/types.h>
22657 #include <sys/time.h>
22658 #if HAVE_SYS_SELECT_H
22659 # include <sys/select.h>
22661 #include <unistd.h>
22673 struct timespec timeout;
22674 timeout.tv_sec = 0;
22675 timeout.tv_nsec = 5000;
22676 return pselect (17, &set, NULL, NULL, &timeout, NULL) != -1 || errno != EBADF;
22682 if ac_fn_c_try_run
"$LINENO"; then :
22683 gl_cv_func_pselect_detects_ebadf
=yes
22685 gl_cv_func_pselect_detects_ebadf
=no
22687 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22688 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pselect_detects_ebadf" >&5
22694 $as_echo "$gl_cv_func_pselect_detects_ebadf" >&6; }
22695 case $gl_cv_func_pselect_detects_ebadf in
22697 *) REPLACE_PSELECT
=1 ;;
22701 if test $ac_cv_func_pselect = no ||
test $gl_cv_sig_pselect = no
; then
22705 if test $HAVE_PSELECT = 0 ||
test $REPLACE_PSELECT = 1; then
22714 gl_LIBOBJS
="$gl_LIBOBJS pselect.$ac_objext"
22732 LIB_PTHREAD_SIGMASK
=
22737 if test "$gl_threads_api" = posix
; then
22738 if test $ac_cv_func_pthread_sigmask = yes; then
22741 if test -n "$LIBMULTITHREAD"; then
22742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_sigmask in $LIBMULTITHREAD" >&5
22743 $as_echo_n "checking for pthread_sigmask in $LIBMULTITHREAD... " >&6; }
22744 if test "${gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD+set}" = set; then :
22745 $as_echo_n "(cached) " >&6
22747 gl_save_LIBS
="$LIBS"
22748 LIBS
="$LIBS $LIBMULTITHREAD"
22749 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22750 /* end confdefs.h. */
22751 #include <pthread.h>
22752 #include <signal.h>
22757 return pthread_sigmask (0, (sigset_t *) 0, (sigset_t *) 0);
22763 if ac_fn_c_try_link
"$LINENO"; then :
22764 gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD
=yes
22766 gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD
=no
22768 rm -f core conftest.err conftest.
$ac_objext \
22769 conftest
$ac_exeext conftest.
$ac_ext
22770 LIBS
="$gl_save_LIBS"
22773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD" >&5
22774 $as_echo "$gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD" >&6; }
22775 if test $gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD = yes; then
22776 LIB_PTHREAD_SIGMASK
="$LIBMULTITHREAD"
22778 HAVE_PTHREAD_SIGMASK
=0
22781 HAVE_PTHREAD_SIGMASK
=0
22785 if test $ac_cv_func_pthread_sigmask = yes; then
22786 REPLACE_PTHREAD_SIGMASK
=1
22788 HAVE_PTHREAD_SIGMASK
=0
22795 if test $HAVE_PTHREAD_SIGMASK = 1; then
22798 if test -z "$LIB_PTHREAD_SIGMASK"; then
22799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask works without -lpthread" >&5
22800 $as_echo_n "checking whether pthread_sigmask works without -lpthread... " >&6; }
22801 if test "${gl_cv_func_pthread_sigmask_in_libc_works+set}" = set; then :
22802 $as_echo_n "(cached) " >&6
22805 if test "$cross_compiling" = yes; then :
22808 freebsd
* | hpux
* | solaris | solaris2.
[2-9]*)
22809 gl_cv_func_pthread_sigmask_in_libc_works
="guessing no";;
22811 gl_cv_func_pthread_sigmask_in_libc_works
="guessing yes";;
22815 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22816 /* end confdefs.h. */
22818 #include <pthread.h>
22819 #include <signal.h>
22820 #include <stddef.h>
22824 sigemptyset (&set);
22825 return pthread_sigmask (1729, &set, NULL) != 0;
22828 if ac_fn_c_try_run
"$LINENO"; then :
22829 gl_cv_func_pthread_sigmask_in_libc_works
=no
22831 gl_cv_func_pthread_sigmask_in_libc_works
=yes
22833 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22834 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_in_libc_works" >&5
22840 $as_echo "$gl_cv_func_pthread_sigmask_in_libc_works" >&6; }
22841 case "$gl_cv_func_pthread_sigmask_in_libc_works" in
22843 REPLACE_PTHREAD_SIGMASK
=1
22845 $as_echo "#define PTHREAD_SIGMASK_INEFFECTIVE 1" >>confdefs.h
22851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask returns error numbers" >&5
22852 $as_echo_n "checking whether pthread_sigmask returns error numbers... " >&6; }
22853 if test "${gl_cv_func_pthread_sigmask_return_works+set}" = set; then :
22854 $as_echo_n "(cached) " >&6
22857 gl_save_LIBS
="$LIBS"
22858 LIBS
="$LIBS $LIB_PTHREAD_SIGMASK"
22859 if test "$cross_compiling" = yes; then :
22862 gl_cv_func_pthread_sigmask_return_works
="guessing no";;
22864 gl_cv_func_pthread_sigmask_return_works
="guessing yes";;
22868 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22869 /* end confdefs.h. */
22871 #include <pthread.h>
22872 #include <signal.h>
22873 #include <stddef.h>
22877 sigemptyset (&set);
22878 if (pthread_sigmask (1729, &set, NULL) == -1)
22883 if ac_fn_c_try_run
"$LINENO"; then :
22884 gl_cv_func_pthread_sigmask_return_works
=yes
22886 gl_cv_func_pthread_sigmask_return_works
=no
22888 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22889 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22892 LIBS
="$gl_save_LIBS"
22895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_return_works" >&5
22896 $as_echo "$gl_cv_func_pthread_sigmask_return_works" >&6; }
22897 case "$gl_cv_func_pthread_sigmask_return_works" in
22899 REPLACE_PTHREAD_SIGMASK
=1
22901 $as_echo "#define PTHREAD_SIGMASK_FAILS_WITH_ERRNO 1" >>confdefs.h
22906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask unblocks signals correctly" >&5
22907 $as_echo_n "checking whether pthread_sigmask unblocks signals correctly... " >&6; }
22908 if test "${gl_cv_func_pthread_sigmask_unblock_works+set}" = set; then :
22909 $as_echo_n "(cached) " >&6
22914 gl_cv_func_pthread_sigmask_unblock_works
="guessing no";;
22916 gl_cv_func_pthread_sigmask_unblock_works
="guessing yes";;
22918 gl_save_LIBS
="$LIBS"
22919 LIBS
="$LIBS $LIBMULTITHREAD"
22920 if test "$cross_compiling" = yes; then :
22923 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22924 /* end confdefs.h. */
22926 #include <pthread.h>
22927 #include <signal.h>
22929 #include <stdlib.h>
22930 #include <unistd.h>
22931 static volatile int sigint_occurred;
22933 sigint_handler (int sig)
22940 int pid = getpid ();
22942 signal (SIGINT, sigint_handler);
22943 sigemptyset (&set);
22944 sigaddset (&set, SIGINT);
22945 if (!(pthread_sigmask (SIG_BLOCK, &set, NULL) == 0))
22947 sprintf (command, "sh -c 'sleep 1; kill -%d %d' &", SIGINT, pid);
22948 if (!(system (command) == 0))
22951 if (!(sigint_occurred == 0))
22953 if (!(pthread_sigmask (SIG_UNBLOCK, &set, NULL) == 0))
22955 if (!(sigint_occurred == 1)) /* This fails on IRIX. */
22960 if ac_fn_c_try_run
"$LINENO"; then :
22963 gl_cv_func_pthread_sigmask_unblock_works
=no
22965 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22966 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22969 LIBS
="$gl_save_LIBS"
22972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_unblock_works" >&5
22973 $as_echo "$gl_cv_func_pthread_sigmask_unblock_works" >&6; }
22974 case "$gl_cv_func_pthread_sigmask_unblock_works" in
22976 REPLACE_PTHREAD_SIGMASK
=1
22978 $as_echo "#define PTHREAD_SIGMASK_UNBLOCK_BUG 1" >>confdefs.h
22984 if test $HAVE_PTHREAD_SIGMASK = 0 ||
test $REPLACE_PTHREAD_SIGMASK = 1; then
22993 gl_LIBOBJS
="$gl_LIBOBJS pthread_sigmask.$ac_objext"
22996 if test $HAVE_PTHREAD_SIGMASK = 1; then
22998 $as_echo "#define HAVE_PTHREAD_SIGMASK 1" >>confdefs.h
23008 GNULIB_PTHREAD_SIGMASK
=1
23016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for putenv compatible with GNU and SVID" >&5
23017 $as_echo_n "checking for putenv compatible with GNU and SVID... " >&6; }
23018 if test "${gl_cv_func_svid_putenv+set}" = set; then :
23019 $as_echo_n "(cached) " >&6
23021 if test "$cross_compiling" = yes; then :
23023 # Guess yes on glibc systems.
23024 *-gnu*) gl_cv_func_svid_putenv
="guessing yes" ;;
23025 # If we don't know, assume the worst.
23026 *) gl_cv_func_svid_putenv
="guessing no" ;;
23030 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23031 /* end confdefs.h. */
23032 $ac_includes_default
23037 /* Put it in env. */
23038 if (putenv ("CONFTEST_putenv=val"))
23041 /* Try to remove it. */
23042 if (putenv ("CONFTEST_putenv"))
23045 /* Make sure it was deleted. */
23046 if (getenv ("CONFTEST_putenv") != 0)
23055 if ac_fn_c_try_run
"$LINENO"; then :
23056 gl_cv_func_svid_putenv
=yes
23058 gl_cv_func_svid_putenv
=no
23060 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23061 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_svid_putenv" >&5
23067 $as_echo "$gl_cv_func_svid_putenv" >&6; }
23068 case "$gl_cv_func_svid_putenv" in
23075 if test $REPLACE_PUTENV = 1; then
23084 gl_LIBOBJS
="$gl_LIBOBJS putenv.$ac_objext"
23101 if test $ac_cv_func_readlink = no
; then
23104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
23105 $as_echo_n "checking whether readlink signature is correct... " >&6; }
23106 if test "${gl_cv_decl_readlink_works+set}" = set; then :
23107 $as_echo_n "(cached) " >&6
23109 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23110 /* end confdefs.h. */
23111 #include <unistd.h>
23112 /* Cause compilation failure if original declaration has wrong type. */
23113 ssize_t readlink (const char *, char *, size_t);
23122 if ac_fn_c_try_compile
"$LINENO"; then :
23123 gl_cv_decl_readlink_works
=yes
23125 gl_cv_decl_readlink_works
=no
23127 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
23130 $as_echo "$gl_cv_decl_readlink_works" >&6; }
23131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
23132 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
23133 if test "${gl_cv_func_readlink_works+set}" = set; then :
23134 $as_echo_n "(cached) " >&6
23136 # We have readlink, so assume ln -s works.
23137 ln -s conftest.no-such conftest.link
23138 ln -s conftest.link conftest.lnk2
23139 if test "$cross_compiling" = yes; then :
23141 # Guess yes on glibc systems.
23142 *-gnu*) gl_cv_func_readlink_works
="guessing yes" ;;
23143 # If we don't know, assume the worst.
23144 *) gl_cv_func_readlink_works
="guessing no" ;;
23148 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23149 /* end confdefs.h. */
23150 #include <unistd.h>
23156 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
23161 if ac_fn_c_try_run
"$LINENO"; then :
23162 gl_cv_func_readlink_works
=yes
23164 gl_cv_func_readlink_works
=no
23166 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23167 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23170 rm -f conftest.link conftest.lnk2
23172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
23173 $as_echo "$gl_cv_func_readlink_works" >&6; }
23174 case "$gl_cv_func_readlink_works" in
23176 if test "$gl_cv_decl_readlink_works" != yes; then
23182 $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
23189 if test $HAVE_READLINK = 0 ||
test $REPLACE_READLINK = 1; then
23198 gl_LIBOBJS
="$gl_LIBOBJS readlink.$ac_objext"
23219 if test $ac_cv_func_readlinkat = no
; then
23223 if test $HAVE_READLINKAT = 0; then
23232 gl_LIBOBJS
="$gl_LIBOBJS readlinkat.$ac_objext"
23240 GNULIB_READLINKAT
=1
23247 for ac_func
in sig2str
23249 ac_fn_c_check_func
"$LINENO" "sig2str" "ac_cv_func_sig2str"
23250 if test "x$ac_cv_func_sig2str" = x
""yes; then :
23251 cat >>confdefs.h
<<_ACEOF
23252 #define HAVE_SIG2STR 1
23259 if test $ac_cv_func_sig2str = no
; then
23268 gl_LIBOBJS
="$gl_LIBOBJS sig2str.$ac_objext"
23285 if test $gl_cv_have_include_next = yes; then
23286 gl_cv_next_signal_h
='<'signal.h
'>'
23288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
23289 $as_echo_n "checking absolute name of <signal.h>... " >&6; }
23290 if test "${gl_cv_next_signal_h+set}" = set; then :
23291 $as_echo_n "(cached) " >&6
23294 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23295 /* end confdefs.h. */
23296 #include <signal.h>
23300 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
23301 *) gl_absname_cpp
="$ac_cpp" ;;
23306 gl_dirsep_regex
='[/\\]'
23309 gl_dirsep_regex
='\/'
23312 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
23314 gl_header_literal_regex
=`echo 'signal.h' \
23315 | sed -e "$gl_make_literal_regex_sed"`
23316 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23317 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23322 gl_cv_next_signal_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23323 sed -n "$gl_absolute_header_sed"`'"'
23327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
23328 $as_echo "$gl_cv_next_signal_h" >&6; }
23330 NEXT_SIGNAL_H
=$gl_cv_next_signal_h
23332 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
23333 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23334 gl_next_as_first_directive
='<'signal.h
'>'
23336 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23337 gl_next_as_first_directive
=$gl_cv_next_signal_h
23339 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
=$gl_next_as_first_directive
23345 # AIX declares sig_atomic_t to already include volatile, and C89 compilers
23346 # then choke on 'volatile sig_atomic_t'. C99 requires that it compile.
23347 ac_fn_c_check_type
"$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
23348 #include <signal.h>
23351 if test "x$ac_cv_type_volatile_sig_atomic_t" = x
""yes; then :
23354 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
=0
23363 ac_fn_c_check_type
"$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
23364 #include <signal.h>
23367 if test "x$ac_cv_type_sighandler_t" = x
""yes; then :
23370 HAVE_SIGHANDLER_T
=0
23376 ac_fn_c_check_type
"$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
23377 /* <sys/types.h> is not needed according to POSIX, but the
23378 <sys/socket.h> in i386-unknown-freebsd4.10 and
23379 powerpc-apple-darwin5.5 required it. */
23380 #include <sys/types.h>
23381 #if HAVE_SYS_SOCKET_H
23382 # include <sys/socket.h>
23383 #elif HAVE_WS2TCPIP_H
23384 # include <ws2tcpip.h>
23388 if test "x$ac_cv_type_socklen_t" = x
""yes; then :
23391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
23392 $as_echo_n "checking for socklen_t equivalent... " >&6; }
23393 if test "${gl_cv_socklen_t_equiv+set}" = set; then :
23394 $as_echo_n "(cached) " >&6
23396 # Systems have either "struct sockaddr *" or
23397 # "void *" as the second argument to getpeername
23398 gl_cv_socklen_t_equiv
=
23399 for arg2
in "struct sockaddr" void
; do
23400 for t
in int size_t
"unsigned int" "long int" "unsigned long int"; do
23401 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23402 /* end confdefs.h. */
23403 #include <sys/types.h>
23404 #include <sys/socket.h>
23406 int getpeername (int, $arg2 *, $t *);
23411 getpeername (0, 0, &len);
23416 if ac_fn_c_try_compile
"$LINENO"; then :
23417 gl_cv_socklen_t_equiv
="$t"
23419 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23420 test "$gl_cv_socklen_t_equiv" != "" && break
23422 test "$gl_cv_socklen_t_equiv" != "" && break
23427 if test "$gl_cv_socklen_t_equiv" = ""; then
23428 as_fn_error
"Cannot find a type to use in place of socklen_t" "$LINENO" 5
23430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
23431 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
23433 cat >>confdefs.h
<<_ACEOF
23434 #define socklen_t $gl_cv_socklen_t_equiv
23440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
23441 $as_echo_n "checking for ssize_t... " >&6; }
23442 if test "${gt_cv_ssize_t+set}" = set; then :
23443 $as_echo_n "(cached) " >&6
23445 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23446 /* end confdefs.h. */
23447 #include <sys/types.h>
23451 int x = sizeof (ssize_t *) + sizeof (ssize_t);
23457 if ac_fn_c_try_compile
"$LINENO"; then :
23462 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
23465 $as_echo "$gt_cv_ssize_t" >&6; }
23466 if test $gt_cv_ssize_t = no
; then
23468 $as_echo "#define ssize_t int" >>confdefs.h
23476 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>
23477 #include <sys/stat.h>
23479 if test "x$ac_cv_member_struct_stat_st_atim_tv_nsec" = x
""yes; then :
23481 cat >>confdefs.h
<<_ACEOF
23482 #define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1
23485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat.st_atim is of type struct timespec" >&5
23486 $as_echo_n "checking whether struct stat.st_atim is of type struct timespec... " >&6; }
23487 if test "${ac_cv_typeof_struct_stat_st_atim_is_struct_timespec+set}" = set; then :
23488 $as_echo_n "(cached) " >&6
23490 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23491 /* end confdefs.h. */
23493 #include <sys/types.h>
23494 #include <sys/stat.h>
23495 #if HAVE_SYS_TIME_H
23496 # include <sys/time.h>
23499 struct timespec ts;
23512 if ac_fn_c_try_compile
"$LINENO"; then :
23513 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec
=yes
23515 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec
=no
23517 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&5
23520 $as_echo "$ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&6; }
23521 if test $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec = yes; then
23523 $as_echo "#define TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC 1" >>confdefs.h
23527 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>
23528 #include <sys/stat.h>
23530 if test "x$ac_cv_member_struct_stat_st_atimespec_tv_nsec" = x
""yes; then :
23532 cat >>confdefs.h
<<_ACEOF
23533 #define HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC 1
23538 ac_fn_c_check_member
"$LINENO" "struct stat" "st_atimensec" "ac_cv_member_struct_stat_st_atimensec" "#include <sys/types.h>
23539 #include <sys/stat.h>
23541 if test "x$ac_cv_member_struct_stat_st_atimensec" = x
""yes; then :
23543 cat >>confdefs.h
<<_ACEOF
23544 #define HAVE_STRUCT_STAT_ST_ATIMENSEC 1
23549 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>
23550 #include <sys/stat.h>
23552 if test "x$ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" = x
""yes; then :
23554 cat >>confdefs.h
<<_ACEOF
23555 #define HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC 1
23571 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>
23572 #include <sys/stat.h>
23574 if test "x$ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" = x
""yes; then :
23576 cat >>confdefs.h
<<_ACEOF
23577 #define HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC 1
23582 ac_fn_c_check_member
"$LINENO" "struct stat" "st_birthtimensec" "ac_cv_member_struct_stat_st_birthtimensec" "#include <sys/types.h>
23583 #include <sys/stat.h>
23585 if test "x$ac_cv_member_struct_stat_st_birthtimensec" = x
""yes; then :
23587 cat >>confdefs.h
<<_ACEOF
23588 #define HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC 1
23593 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>
23594 #include <sys/stat.h>
23596 if test "x$ac_cv_member_struct_stat_st_birthtim_tv_nsec" = x
""yes; then :
23598 cat >>confdefs.h
<<_ACEOF
23599 #define HAVE_STRUCT_STAT_ST_BIRTHTIM_TV_NSEC 1
23611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdalign.h" >&5
23612 $as_echo_n "checking for working stdalign.h... " >&6; }
23613 if test "${gl_cv_header_working_stdalign_h+set}" = set; then :
23614 $as_echo_n "(cached) " >&6
23616 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23617 /* end confdefs.h. */
23618 #include <stdalign.h>
23619 #include <stddef.h>
23621 /* Test that alignof yields a result consistent with offsetof.
23622 This catches GCC bug 52023
23623 <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023>. */
23625 template <class t> struct alignof_helper { char a; t b; };
23626 # define ao(type) offsetof (alignof_helper<type>, b)
23628 # define ao(type) offsetof (struct { char a; type b; }, b)
23630 char test_double[ao (double) % _Alignof (double) == 0 ? 1 : -1];
23631 char test_long[ao (long int) % _Alignof (long int) == 0 ? 1 : -1];
23632 char test_alignof[alignof (double) == _Alignof (double) ? 1 : -1];
23634 /* Test _Alignas only on platforms where gnulib can help. */
23636 (__GNUC__ || __IBMC__ || __IBMCPP__ \
23637 || 0x5110 <= __SUNPRO_C || 1300 <= _MSC_VER)
23638 int alignas (8) alignas_int = 1;
23639 char test_alignas[_Alignof (alignas_int) == 8 ? 1 : -1];
23650 if ac_fn_c_try_compile
"$LINENO"; then :
23651 gl_cv_header_working_stdalign_h
=yes
23653 gl_cv_header_working_stdalign_h
=no
23655 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdalign_h" >&5
23658 $as_echo "$gl_cv_header_working_stdalign_h" >&6; }
23660 if test $gl_cv_header_working_stdalign_h = yes; then
23663 STDALIGN_H
='stdalign.h'
23667 if test -n "$STDALIGN_H"; then
23668 GL_GENERATE_STDALIGN_H_TRUE
=
23669 GL_GENERATE_STDALIGN_H_FALSE
='#'
23671 GL_GENERATE_STDALIGN_H_TRUE
='#'
23672 GL_GENERATE_STDALIGN_H_FALSE
=
23678 NEXT_STDARG_H
='<stdarg.h>'
23679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
23680 $as_echo_n "checking for va_copy... " >&6; }
23681 if test "${gl_cv_func_va_copy+set}" = set; then :
23682 $as_echo_n "(cached) " >&6
23685 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23686 /* end confdefs.h. */
23687 #include <stdarg.h>
23693 void (*func) (va_list, va_list) = va_copy;
23700 if ac_fn_c_try_compile
"$LINENO"; then :
23701 gl_cv_func_va_copy
=yes
23703 gl_cv_func_va_copy
=no
23705 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_va_copy" >&5
23709 $as_echo "$gl_cv_func_va_copy" >&6; }
23710 if test $gl_cv_func_va_copy = no
; then
23711 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23712 /* end confdefs.h. */
23713 #if defined _AIX && !defined __GNUC__
23718 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23719 $EGREP "vaccine" >/dev
/null
2>&1; then :
23726 if test $gl_aixcc = yes; then
23736 if test $gl_cv_have_include_next = yes; then
23737 gl_cv_next_stdarg_h
='<'stdarg.h
'>'
23739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdarg.h>" >&5
23740 $as_echo_n "checking absolute name of <stdarg.h>... " >&6; }
23741 if test "${gl_cv_next_stdarg_h+set}" = set; then :
23742 $as_echo_n "(cached) " >&6
23745 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23746 /* end confdefs.h. */
23747 #include <stdarg.h>
23751 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
23752 *) gl_absname_cpp
="$ac_cpp" ;;
23757 gl_dirsep_regex
='[/\\]'
23760 gl_dirsep_regex
='\/'
23763 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
23765 gl_header_literal_regex
=`echo 'stdarg.h' \
23766 | sed -e "$gl_make_literal_regex_sed"`
23767 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23768 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23773 gl_cv_next_stdarg_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23774 sed -n "$gl_absolute_header_sed"`'"'
23778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdarg_h" >&5
23779 $as_echo "$gl_cv_next_stdarg_h" >&6; }
23781 NEXT_STDARG_H
=$gl_cv_next_stdarg_h
23783 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
23784 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23785 gl_next_as_first_directive
='<'stdarg.h
'>'
23787 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23788 gl_next_as_first_directive
=$gl_cv_next_stdarg_h
23790 NEXT_AS_FIRST_DIRECTIVE_STDARG_H
=$gl_next_as_first_directive
23795 if test "$gl_cv_next_stdarg_h" = '""'; then
23796 gl_cv_next_stdarg_h
='"///usr/include/stdarg.h"'
23797 NEXT_STDARG_H
="$gl_cv_next_stdarg_h"
23801 saved_as_echo_n
="$as_echo_n"
23803 if test "${gl_cv_func___va_copy+set}" = set; then :
23804 $as_echo_n "(cached) " >&6
23807 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23808 /* end confdefs.h. */
23809 #include <stdarg.h>
23822 if ac_fn_c_try_compile
"$LINENO"; then :
23823 gl_cv_func___va_copy
=yes
23825 gl_cv_func___va_copy
=no
23827 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23830 as_echo_n
="$saved_as_echo_n"
23832 if test $gl_cv_func___va_copy = yes; then
23834 $as_echo "#define va_copy __va_copy" >>confdefs.h
23839 $as_echo "#define va_copy gl_va_copy" >>confdefs.h
23845 if test -n "$STDARG_H"; then
23846 GL_GENERATE_STDARG_H_TRUE
=
23847 GL_GENERATE_STDARG_H_FALSE
='#'
23849 GL_GENERATE_STDARG_H_TRUE
='#'
23850 GL_GENERATE_STDARG_H_FALSE
=
23858 # Define two additional variables used in the Makefile substitution.
23860 if test "$ac_cv_header_stdbool_h" = yes; then
23863 STDBOOL_H
='stdbool.h'
23866 if test -n "$STDBOOL_H"; then
23867 GL_GENERATE_STDBOOL_H_TRUE
=
23868 GL_GENERATE_STDBOOL_H_FALSE
='#'
23870 GL_GENERATE_STDBOOL_H_TRUE
='#'
23871 GL_GENERATE_STDBOOL_H_FALSE
=
23875 if test "$ac_cv_type__Bool" = yes; then
23886 if test $gt_cv_c_wchar_t = no
; then
23890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
23891 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
23892 if test "${gl_cv_decl_null_works+set}" = set; then :
23893 $as_echo_n "(cached) " >&6
23895 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23896 /* end confdefs.h. */
23897 #include <stddef.h>
23898 int test[2 * (sizeof NULL == sizeof (void *)) -1];
23908 if ac_fn_c_try_compile
"$LINENO"; then :
23909 gl_cv_decl_null_works
=yes
23911 gl_cv_decl_null_works
=no
23913 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
23916 $as_echo "$gl_cv_decl_null_works" >&6; }
23917 if test $gl_cv_decl_null_works = no
; then
23922 if test -n "$STDDEF_H"; then
23923 GL_GENERATE_STDDEF_H_TRUE
=
23924 GL_GENERATE_STDDEF_H_FALSE
='#'
23926 GL_GENERATE_STDDEF_H_TRUE
='#'
23927 GL_GENERATE_STDDEF_H_FALSE
=
23930 if test -n "$STDDEF_H"; then
23939 if test $gl_cv_have_include_next = yes; then
23940 gl_cv_next_stddef_h
='<'stddef.h
'>'
23942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
23943 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
23944 if test "${gl_cv_next_stddef_h+set}" = set; then :
23945 $as_echo_n "(cached) " >&6
23948 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23949 /* end confdefs.h. */
23950 #include <stddef.h>
23954 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
23955 *) gl_absname_cpp
="$ac_cpp" ;;
23960 gl_dirsep_regex
='[/\\]'
23963 gl_dirsep_regex
='\/'
23966 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
23968 gl_header_literal_regex
=`echo 'stddef.h' \
23969 | sed -e "$gl_make_literal_regex_sed"`
23970 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23971 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23976 gl_cv_next_stddef_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23977 sed -n "$gl_absolute_header_sed"`'"'
23981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
23982 $as_echo "$gl_cv_next_stddef_h" >&6; }
23984 NEXT_STDDEF_H
=$gl_cv_next_stddef_h
23986 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
23987 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23988 gl_next_as_first_directive
='<'stddef.h
'>'
23990 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23991 gl_next_as_first_directive
=$gl_cv_next_stddef_h
23993 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
=$gl_next_as_first_directive
24011 if test $gl_cv_have_include_next = yes; then
24012 gl_cv_next_stdio_h
='<'stdio.h
'>'
24014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
24015 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
24016 if test "${gl_cv_next_stdio_h+set}" = set; then :
24017 $as_echo_n "(cached) " >&6
24020 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24021 /* end confdefs.h. */
24026 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
24027 *) gl_absname_cpp
="$ac_cpp" ;;
24032 gl_dirsep_regex
='[/\\]'
24035 gl_dirsep_regex
='\/'
24038 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
24040 gl_header_literal_regex
=`echo 'stdio.h' \
24041 | sed -e "$gl_make_literal_regex_sed"`
24042 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24043 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24048 gl_cv_next_stdio_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24049 sed -n "$gl_absolute_header_sed"`'"'
24053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
24054 $as_echo "$gl_cv_next_stdio_h" >&6; }
24056 NEXT_STDIO_H
=$gl_cv_next_stdio_h
24058 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
24059 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24060 gl_next_as_first_directive
='<'stdio.h
'>'
24062 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24063 gl_next_as_first_directive
=$gl_cv_next_stdio_h
24065 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
=$gl_next_as_first_directive
24074 cat >>confdefs.h
<<_ACEOF
24075 #define GNULIB_FSCANF 1
24082 cat >>confdefs.h
<<_ACEOF
24083 #define GNULIB_SCANF 1
24119 if test $gl_cv_have_include_next = yes; then
24120 gl_cv_next_stdlib_h
='<'stdlib.h
'>'
24122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
24123 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
24124 if test "${gl_cv_next_stdlib_h+set}" = set; then :
24125 $as_echo_n "(cached) " >&6
24128 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24129 /* end confdefs.h. */
24130 #include <stdlib.h>
24134 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
24135 *) gl_absname_cpp
="$ac_cpp" ;;
24140 gl_dirsep_regex
='[/\\]'
24143 gl_dirsep_regex
='\/'
24146 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
24148 gl_header_literal_regex
=`echo 'stdlib.h' \
24149 | sed -e "$gl_make_literal_regex_sed"`
24150 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24151 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24156 gl_cv_next_stdlib_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24157 sed -n "$gl_absolute_header_sed"`'"'
24161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
24162 $as_echo "$gl_cv_next_stdlib_h" >&6; }
24164 NEXT_STDLIB_H
=$gl_cv_next_stdlib_h
24166 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
24167 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24168 gl_next_as_first_directive
='<'stdlib.h
'>'
24170 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24171 gl_next_as_first_directive
=$gl_cv_next_stdlib_h
24173 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
=$gl_next_as_first_directive
24183 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
24191 $as_echo "#define my_strftime nstrftime" >>confdefs.h
24200 if test "$ac_cv_have_decl_strtoimax" != yes; then
24201 HAVE_DECL_STRTOIMAX
=0
24204 if test $ac_cv_func_strtoimax = yes; then
24206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtoimax works" >&5
24207 $as_echo_n "checking whether strtoimax works... " >&6; }
24208 if test "${gl_cv_func_strtoimax+set}" = set; then :
24209 $as_echo_n "(cached) " >&6
24211 if test "$cross_compiling" = yes; then :
24213 # Guess no on AIX 5.
24214 aix5
*) gl_cv_func_strtoimax
="guessing no" ;;
24215 # Guess yes otherwise.
24216 *) gl_cv_func_strtoimax
="guessing yes" ;;
24220 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24221 /* end confdefs.h. */
24224 #include <string.h>
24225 #include <inttypes.h>
24228 if (sizeof (intmax_t) > sizeof (int))
24230 const char *s = "4294967295";
24234 res = strtoimax (s, &p, 10);
24235 if (p != s + strlen (s))
24239 if (res != (intmax_t) 65535 * (intmax_t) 65537)
24244 const char *s = "2147483647";
24248 res = strtoimax (s, &p, 10);
24249 if (p != s + strlen (s))
24253 if (res != 2147483647)
24260 if ac_fn_c_try_run
"$LINENO"; then :
24261 gl_cv_func_strtoimax
=yes
24263 gl_cv_func_strtoimax
=no
24265 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24266 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strtoimax" >&5
24272 $as_echo "$gl_cv_func_strtoimax" >&6; }
24273 case "$gl_cv_func_strtoimax" in
24274 *no
) REPLACE_STRTOIMAX
=1 ;;
24280 if test $HAVE_STRTOIMAX = 0 ||
test $REPLACE_STRTOIMAX = 1; then
24289 gl_LIBOBJS
="$gl_LIBOBJS strtoimax.$ac_objext"
24292 ac_fn_c_check_decl
"$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
24293 if test "x$ac_cv_have_decl_strtoll" = x
""yes; then :
24299 cat >>confdefs.h
<<_ACEOF
24300 #define HAVE_DECL_STRTOLL $ac_have_decl
24321 if test "$ac_cv_have_decl_strtoumax" != yes; then
24322 HAVE_DECL_STRTOUMAX
=0
24325 if test $ac_cv_func_strtoumax = no
; then
24334 gl_LIBOBJS
="$gl_LIBOBJS strtoumax.$ac_objext"
24337 ac_fn_c_check_decl
"$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
24338 if test "x$ac_cv_have_decl_strtoull" = x
""yes; then :
24344 cat >>confdefs.h
<<_ACEOF
24345 #define HAVE_DECL_STRTOULL $ac_have_decl
24364 if test $ac_cv_func_symlink = no
; then
24367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symlink handles trailing slash correctly" >&5
24368 $as_echo_n "checking whether symlink handles trailing slash correctly... " >&6; }
24369 if test "${gl_cv_func_symlink_works+set}" = set; then :
24370 $as_echo_n "(cached) " >&6
24372 if test "$cross_compiling" = yes; then :
24374 # Guess yes on glibc systems.
24375 *-gnu*) gl_cv_func_symlink_works
="guessing yes" ;;
24376 # If we don't know, assume the worst.
24377 *) gl_cv_func_symlink_works
="guessing no" ;;
24381 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24382 /* end confdefs.h. */
24383 #include <unistd.h>
24389 if (!symlink ("a", "conftest.link/"))
24391 if (symlink ("conftest.f", "conftest.lnk2"))
24393 else if (!symlink ("a", "conftest.lnk2/"))
24401 if ac_fn_c_try_run
"$LINENO"; then :
24402 gl_cv_func_symlink_works
=yes
24404 gl_cv_func_symlink_works
=no
24406 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24407 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24410 rm -f conftest.f conftest.link conftest.lnk2
24412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_symlink_works" >&5
24413 $as_echo "$gl_cv_func_symlink_works" >&6; }
24414 case "$gl_cv_func_symlink_works" in
24422 if test $HAVE_SYMLINK = 0 ||
test $REPLACE_SYMLINK = 1; then
24431 gl_LIBOBJS
="$gl_LIBOBJS symlink.$ac_objext"
24448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/select.h> is self-contained" >&5
24449 $as_echo_n "checking whether <sys/select.h> is self-contained... " >&6; }
24450 if test "${gl_cv_header_sys_select_h_selfcontained+set}" = set; then :
24451 $as_echo_n "(cached) " >&6
24454 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24455 /* end confdefs.h. */
24456 #include <sys/select.h>
24465 if ac_fn_c_try_compile
"$LINENO"; then :
24466 gl_cv_header_sys_select_h_selfcontained
=yes
24468 gl_cv_header_sys_select_h_selfcontained
=no
24470 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24471 if test $gl_cv_header_sys_select_h_selfcontained = yes; then
24472 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24473 /* end confdefs.h. */
24474 #include <sys/select.h>
24478 int memset; int bzero;
24484 if ac_fn_c_try_compile
"$LINENO"; then :
24485 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24486 /* end confdefs.h. */
24487 #include <sys/select.h>
24493 #define memset nonexistent_memset
24498 void *memset (void *, int, unsigned long);
24500 #define bzero nonexistent_bzero
24505 void bzero (void *, unsigned long);
24514 if ac_fn_c_try_link
"$LINENO"; then :
24517 gl_cv_header_sys_select_h_selfcontained
=no
24519 rm -f core conftest.err conftest.
$ac_objext \
24520 conftest
$ac_exeext conftest.
$ac_ext
24523 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_selfcontained" >&5
24528 $as_echo "$gl_cv_header_sys_select_h_selfcontained" >&6; }
24538 if test $gl_cv_have_include_next = yes; then
24539 gl_cv_next_sys_select_h
='<'sys
/select.h
'>'
24541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/select.h>" >&5
24542 $as_echo_n "checking absolute name of <sys/select.h>... " >&6; }
24543 if test "${gl_cv_next_sys_select_h+set}" = set; then :
24544 $as_echo_n "(cached) " >&6
24547 if test $ac_cv_header_sys_select_h = yes; then
24550 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24551 /* end confdefs.h. */
24552 #include <sys/select.h>
24556 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
24557 *) gl_absname_cpp
="$ac_cpp" ;;
24562 gl_dirsep_regex
='[/\\]'
24565 gl_dirsep_regex
='\/'
24568 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
24570 gl_header_literal_regex
=`echo 'sys/select.h' \
24571 | sed -e "$gl_make_literal_regex_sed"`
24572 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24573 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24578 gl_cv_next_sys_select_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24579 sed -n "$gl_absolute_header_sed"`'"'
24581 gl_cv_next_sys_select_h
='<'sys
/select.h
'>'
24586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_select_h" >&5
24587 $as_echo "$gl_cv_next_sys_select_h" >&6; }
24589 NEXT_SYS_SELECT_H
=$gl_cv_next_sys_select_h
24591 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
24592 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24593 gl_next_as_first_directive
='<'sys
/select.h
'>'
24595 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24596 gl_next_as_first_directive
=$gl_cv_next_sys_select_h
24598 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H
=$gl_next_as_first_directive
24603 if test $ac_cv_header_sys_select_h = yes; then
24604 HAVE_SYS_SELECT_H
=1
24606 HAVE_SYS_SELECT_H
=0
24613 if test $ac_cv_header_sys_socket_h != yes; then
24614 for ac_header
in winsock2.h
24616 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
24617 if test "x$ac_cv_header_winsock2_h" = x
""yes; then :
24618 cat >>confdefs.h
<<_ACEOF
24619 #define HAVE_WINSOCK2_H 1
24627 if test "$ac_cv_header_winsock2_h" = yes; then
24629 UNISTD_H_HAVE_WINSOCK2_H
=1
24630 SYS_IOCTL_H_HAVE_WINSOCK2_H
=1
24654 if test $gl_cv_have_include_next = yes; then
24655 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
24657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
24658 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
24659 if test "${gl_cv_next_sys_stat_h+set}" = set; then :
24660 $as_echo_n "(cached) " >&6
24663 if test $ac_cv_header_sys_stat_h = yes; then
24666 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24667 /* end confdefs.h. */
24668 #include <sys/stat.h>
24672 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
24673 *) gl_absname_cpp
="$ac_cpp" ;;
24678 gl_dirsep_regex
='[/\\]'
24681 gl_dirsep_regex
='\/'
24684 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
24686 gl_header_literal_regex
=`echo 'sys/stat.h' \
24687 | sed -e "$gl_make_literal_regex_sed"`
24688 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24689 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24694 gl_cv_next_sys_stat_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24695 sed -n "$gl_absolute_header_sed"`'"'
24697 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
24702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
24703 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
24705 NEXT_SYS_STAT_H
=$gl_cv_next_sys_stat_h
24707 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
24708 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24709 gl_next_as_first_directive
='<'sys
/stat.h
'>'
24711 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24712 gl_next_as_first_directive
=$gl_cv_next_sys_stat_h
24714 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
=$gl_next_as_first_directive
24726 if test $WINDOWS_64_BIT_ST_SIZE = 1; then
24728 $as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h
24732 ac_fn_c_check_type
"$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
24733 #include <sys/stat.h>
24735 if test "x$ac_cv_type_nlink_t" = x
""yes; then :
24739 $as_echo "#define nlink_t int" >>confdefs.h
24760 ac_fn_c_check_decl
"$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "#include <time.h>
24762 if test "x$ac_cv_have_decl_localtime_r" = x
""yes; then :
24768 cat >>confdefs.h
<<_ACEOF
24769 #define HAVE_DECL_LOCALTIME_R $ac_have_decl
24772 if test $ac_cv_have_decl_localtime_r = no
; then
24773 HAVE_DECL_LOCALTIME_R
=0
24777 if test $ac_cv_func_localtime_r = yes; then
24779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
24780 $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
24781 if test "${gl_cv_time_r_posix+set}" = set; then :
24782 $as_echo_n "(cached) " >&6
24784 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24785 /* end confdefs.h. */
24790 /* We don't need to append 'restrict's to the argument types,
24791 even though the POSIX signature has the 'restrict's,
24792 since C99 says they can't affect type compatibility. */
24793 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
24795 /* Check the return type is a pointer.
24796 On HP-UX 10 it is 'int'. */
24797 *localtime_r (0, 0);
24803 if ac_fn_c_try_compile
"$LINENO"; then :
24804 gl_cv_time_r_posix
=yes
24806 gl_cv_time_r_posix
=no
24808 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
24812 $as_echo "$gl_cv_time_r_posix" >&6; }
24813 if test $gl_cv_time_r_posix = yes; then
24814 REPLACE_LOCALTIME_R
=0
24816 REPLACE_LOCALTIME_R
=1
24822 if test $HAVE_LOCALTIME_R = 0 ||
test $REPLACE_LOCALTIME_R = 1; then
24831 gl_LIBOBJS
="$gl_LIBOBJS time_r.$ac_objext"
24855 gl_saved_libs
=$LIBS
24856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing timer_settime" >&5
24857 $as_echo_n "checking for library containing timer_settime... " >&6; }
24858 if test "${ac_cv_search_timer_settime+set}" = set; then :
24859 $as_echo_n "(cached) " >&6
24861 ac_func_search_save_LIBS
=$LIBS
24862 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24863 /* end confdefs.h. */
24865 /* Override any GCC internal prototype to avoid an error.
24866 Use char because int might match the return type of a GCC
24867 builtin and then its argument prototype would still apply. */
24871 char timer_settime ();
24875 return timer_settime ();
24880 for ac_lib
in '' rt posix4
; do
24881 if test -z "$ac_lib"; then
24882 ac_res
="none required"
24885 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
24887 if ac_fn_c_try_link
"$LINENO"; then :
24888 ac_cv_search_timer_settime
=$ac_res
24890 rm -f core conftest.err conftest.
$ac_objext \
24892 if test "${ac_cv_search_timer_settime+set}" = set; then :
24896 if test "${ac_cv_search_timer_settime+set}" = set; then :
24899 ac_cv_search_timer_settime
=no
24901 rm conftest.
$ac_ext
24902 LIBS
=$ac_func_search_save_LIBS
24904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_timer_settime" >&5
24905 $as_echo "$ac_cv_search_timer_settime" >&6; }
24906 ac_res
=$ac_cv_search_timer_settime
24907 if test "$ac_res" != no
; then :
24908 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
24909 test "$ac_cv_search_timer_settime" = "none required" ||
24910 LIB_TIMER_TIME
=$ac_cv_search_timer_settime
24913 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24914 /* end confdefs.h. */
24916 #include <features.h>
24917 #ifdef __GNU_LIBRARY__
24918 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2) || (__GLIBC__ > 2)) \
24919 && !defined __UCLIBC__
24920 Thread emulation available
24925 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24926 $EGREP "Thread" >/dev
/null
2>&1; then :
24927 LIB_TIMER_TIME
="$LIB_TIMER_TIME $LIBMULTITHREAD"
24931 for ac_func
in timer_settime
24933 ac_fn_c_check_func
"$LINENO" "timer_settime" "ac_cv_func_timer_settime"
24934 if test "x$ac_cv_func_timer_settime" = x
""yes; then :
24935 cat >>confdefs.h
<<_ACEOF
24936 #define HAVE_TIMER_SETTIME 1
24942 LIBS
=$gl_saved_libs
24957 if test $gl_cv_have_include_next = yes; then
24958 gl_cv_next_unistd_h
='<'unistd.h
'>'
24960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
24961 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
24962 if test "${gl_cv_next_unistd_h+set}" = set; then :
24963 $as_echo_n "(cached) " >&6
24966 if test $ac_cv_header_unistd_h = yes; then
24969 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24970 /* end confdefs.h. */
24971 #include <unistd.h>
24975 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
24976 *) gl_absname_cpp
="$ac_cpp" ;;
24981 gl_dirsep_regex
='[/\\]'
24984 gl_dirsep_regex
='\/'
24987 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
24989 gl_header_literal_regex
=`echo 'unistd.h' \
24990 | sed -e "$gl_make_literal_regex_sed"`
24991 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24992 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24997 gl_cv_next_unistd_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24998 sed -n "$gl_absolute_header_sed"`'"'
25000 gl_cv_next_unistd_h
='<'unistd.h
'>'
25005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
25006 $as_echo "$gl_cv_next_unistd_h" >&6; }
25008 NEXT_UNISTD_H
=$gl_cv_next_unistd_h
25010 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
25011 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
25012 gl_next_as_first_directive
='<'unistd.h
'>'
25014 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
25015 gl_next_as_first_directive
=$gl_cv_next_unistd_h
25017 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
=$gl_next_as_first_directive
25022 if test $ac_cv_header_unistd_h = yes; then
25038 if test $ac_cv_have_decl_unsetenv = no
; then
25039 HAVE_DECL_UNSETENV
=0
25041 for ac_func
in unsetenv
25043 ac_fn_c_check_func
"$LINENO" "unsetenv" "ac_cv_func_unsetenv"
25044 if test "x$ac_cv_func_unsetenv" = x
""yes; then :
25045 cat >>confdefs.h
<<_ACEOF
25046 #define HAVE_UNSETENV 1
25052 if test $ac_cv_func_unsetenv = no
; then
25056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsetenv() return type" >&5
25057 $as_echo_n "checking for unsetenv() return type... " >&6; }
25058 if test "${gt_cv_func_unsetenv_ret+set}" = set; then :
25059 $as_echo_n "(cached) " >&6
25061 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25062 /* end confdefs.h. */
25065 #define _BSD 1 /* unhide unsetenv declaration in OSF/1 5.1 <stdlib.h> */
25066 #include <stdlib.h>
25071 int unsetenv (const char *name);
25081 if ac_fn_c_try_compile
"$LINENO"; then :
25082 gt_cv_func_unsetenv_ret
='int'
25084 gt_cv_func_unsetenv_ret
='void'
25086 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_unsetenv_ret" >&5
25089 $as_echo "$gt_cv_func_unsetenv_ret" >&6; }
25090 if test $gt_cv_func_unsetenv_ret = 'void'; then
25092 $as_echo "#define VOID_UNSETENV 1" >>confdefs.h
25097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether unsetenv obeys POSIX" >&5
25098 $as_echo_n "checking whether unsetenv obeys POSIX... " >&6; }
25099 if test "${gl_cv_func_unsetenv_works+set}" = set; then :
25100 $as_echo_n "(cached) " >&6
25102 if test "$cross_compiling" = yes; then :
25104 # Guess yes on glibc systems.
25105 *-gnu*) gl_cv_func_unsetenv_works
="guessing yes" ;;
25106 # If we don't know, assume the worst.
25107 *) gl_cv_func_unsetenv_works
="guessing no" ;;
25111 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25112 /* end confdefs.h. */
25114 #include <stdlib.h>
25116 extern char **environ;
25122 char entry1[] = "a=1";
25123 char entry2[] = "b=2";
25124 char *env[] = { entry1, entry2, NULL };
25125 if (putenv ((char *) "a=1")) return 1;
25126 if (putenv (entry2)) return 2;
25129 if (getenv ("a")) return 3;
25130 if (!unsetenv ("") || errno != EINVAL) return 4;
25133 if (!getenv ("a")) return 5;
25136 if (getenv ("a")) return 6;
25142 if ac_fn_c_try_run
"$LINENO"; then :
25143 gl_cv_func_unsetenv_works
=yes
25145 gl_cv_func_unsetenv_works
=no
25147 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
25148 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
25152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_unsetenv_works" >&5
25153 $as_echo "$gl_cv_func_unsetenv_works" >&6; }
25154 case "$gl_cv_func_unsetenv_works" in
25162 if test $HAVE_UNSETENV = 0 ||
test $REPLACE_UNSETENV = 1; then
25171 gl_LIBOBJS
="$gl_LIBOBJS unsetenv.$ac_objext"
25195 if test $ac_cv_func_futimens = no
&& test $ac_cv_func_futimesat = yes; then
25196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether futimesat handles NULL file" >&5
25197 $as_echo_n "checking whether futimesat handles NULL file... " >&6; }
25198 if test "${gl_cv_func_futimesat_works+set}" = set; then :
25199 $as_echo_n "(cached) " >&6
25201 touch conftest.
file
25202 if test "$cross_compiling" = yes; then :
25204 # Guess yes on glibc systems.
25205 *-gnu*) gl_cv_func_futimesat_works
="guessing yes" ;;
25206 # If we don't know, assume the worst.
25207 *) gl_cv_func_futimesat_works
="guessing no" ;;
25211 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25212 /* end confdefs.h. */
25214 #include <stddef.h>
25215 #include <sys/times.h>
25221 int fd = open ("conftest.file", O_RDWR);
25222 if (fd < 0) return 1;
25223 if (futimesat (fd, NULL, NULL)) return 2;
25229 if ac_fn_c_try_run
"$LINENO"; then :
25230 gl_cv_func_futimesat_works
=yes
25232 gl_cv_func_futimesat_works
=no
25234 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
25235 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
25238 rm -f conftest.
file
25240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_futimesat_works" >&5
25241 $as_echo "$gl_cv_func_futimesat_works" >&6; }
25242 case "$gl_cv_func_futimesat_works" in
25246 $as_echo "#define FUTIMESAT_NULL_BUG 1" >>confdefs.h
25252 gl_gnulib_enabled_260941c0e5dc67ec9e87d1fb321c300b
=false
25253 gl_gnulib_enabled_dosname
=false
25254 gl_gnulib_enabled_euidaccess
=false
25255 gl_gnulib_enabled_getgroups
=false
25256 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36
=false
25257 gl_gnulib_enabled_a9786850e999ae65a836a6041e8e5ed1
=false
25258 gl_gnulib_enabled_03e0aaad4cb89ca757653bd367a6ccb7
=false
25259 gl_gnulib_enabled_pathmax
=false
25260 gl_gnulib_enabled_6099e9737f757db36c47fa9d9f02e88c
=false
25261 gl_gnulib_enabled_stat
=false
25262 gl_gnulib_enabled_strtoll
=false
25263 gl_gnulib_enabled_strtoull
=false
25264 gl_gnulib_enabled_verify
=false
25265 gl_gnulib_enabled_682e609604ccaac6be382e4ee3a4eaec
=false
25266 func_gl_gnulib_m4code_260941c0e5dc67ec9e87d1fb321c300b
()
25268 if ! $gl_gnulib_enabled_260941c0e5dc67ec9e87d1fb321c300b; then
25277 gl_LIBOBJS
="$gl_LIBOBJS openat-proc.$ac_objext"
25279 gl_gnulib_enabled_260941c0e5dc67ec9e87d1fb321c300b
=true
25282 func_gl_gnulib_m4code_dosname
()
25284 if ! $gl_gnulib_enabled_dosname; then
25285 gl_gnulib_enabled_dosname
=true
25288 func_gl_gnulib_m4code_euidaccess
()
25290 if ! $gl_gnulib_enabled_euidaccess; then
25296 for ac_func
in euidaccess
25298 ac_fn_c_check_func
"$LINENO" "euidaccess" "ac_cv_func_euidaccess"
25299 if test "x$ac_cv_func_euidaccess" = x
""yes; then :
25300 cat >>confdefs.h
<<_ACEOF
25301 #define HAVE_EUIDACCESS 1
25307 if test $ac_cv_func_euidaccess = no
; then
25311 if test $HAVE_EUIDACCESS = 0; then
25320 gl_LIBOBJS
="$gl_LIBOBJS euidaccess.$ac_objext"
25324 for ac_header
in libgen.h
25326 ac_fn_c_check_header_mongrel
"$LINENO" "libgen.h" "ac_cv_header_libgen_h" "$ac_includes_default"
25327 if test "x$ac_cv_header_libgen_h" = x
""yes; then :
25328 cat >>confdefs.h
<<_ACEOF
25329 #define HAVE_LIBGEN_H 1
25337 ac_fn_c_check_func
"$LINENO" "getgroups" "ac_cv_func_getgroups"
25338 if test "x$ac_cv_func_getgroups" = x
""yes; then :
25343 # If we don't yet have getgroups, see if it's in -lbsd.
25344 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
25346 if test $ac_cv_func_getgroups = no
; then
25347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getgroups in -lbsd" >&5
25348 $as_echo_n "checking for getgroups in -lbsd... " >&6; }
25349 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then :
25350 $as_echo_n "(cached) " >&6
25352 ac_check_lib_save_LIBS
=$LIBS
25354 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25355 /* end confdefs.h. */
25357 /* Override any GCC internal prototype to avoid an error.
25358 Use char because int might match the return type of a GCC
25359 builtin and then its argument prototype would still apply. */
25367 return getgroups ();
25372 if ac_fn_c_try_link
"$LINENO"; then :
25373 ac_cv_lib_bsd_getgroups
=yes
25375 ac_cv_lib_bsd_getgroups
=no
25377 rm -f core conftest.err conftest.
$ac_objext \
25378 conftest
$ac_exeext conftest.
$ac_ext
25379 LIBS
=$ac_check_lib_save_LIBS
25381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_getgroups" >&5
25382 $as_echo "$ac_cv_lib_bsd_getgroups" >&6; }
25383 if test "x$ac_cv_lib_bsd_getgroups" = x
""yes; then :
25384 GETGROUPS_LIB
=-lbsd
25389 # Run the program to test the functionality of the system-supplied
25390 # getgroups function only if there is such a function.
25391 if test $ac_cv_func_getgroups = yes; then
25392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getgroups" >&5
25393 $as_echo_n "checking for working getgroups... " >&6; }
25394 if test "${ac_cv_func_getgroups_works+set}" = set; then :
25395 $as_echo_n "(cached) " >&6
25397 if test "$cross_compiling" = yes; then :
25398 case "$host_os" in # ((
25399 # Guess yes on glibc systems.
25400 *-gnu*) ac_cv_func_getgroups_works
="guessing yes" ;;
25401 # If we don't know, assume the worst.
25402 *) ac_cv_func_getgroups_works
="guessing no" ;;
25406 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25407 /* end confdefs.h. */
25408 $ac_includes_default
25412 /* On Ultrix 4.3, getgroups (0, 0) always fails. */
25413 return getgroups (0, 0) == -1;
25419 if ac_fn_c_try_run
"$LINENO"; then :
25420 ac_cv_func_getgroups_works
=yes
25422 ac_cv_func_getgroups_works
=no
25424 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
25425 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
25430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getgroups_works" >&5
25431 $as_echo "$ac_cv_func_getgroups_works" >&6; }
25433 ac_cv_func_getgroups_works
=no
25435 case "$ac_cv_func_getgroups_works" in
25438 $as_echo "#define HAVE_GETGROUPS 1" >>confdefs.h
25445 # Solaris 9 and 10 need -lgen to get the eaccess function.
25446 # Save and restore LIBS so -lgen isn't added to it. Otherwise, *all*
25447 # programs in the package would end up linked with that potentially-shared
25448 # library, inducing unnecessary run-time overhead.
25451 gl_saved_libs
=$LIBS
25452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing eaccess" >&5
25453 $as_echo_n "checking for library containing eaccess... " >&6; }
25454 if test "${ac_cv_search_eaccess+set}" = set; then :
25455 $as_echo_n "(cached) " >&6
25457 ac_func_search_save_LIBS
=$LIBS
25458 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25459 /* end confdefs.h. */
25461 /* Override any GCC internal prototype to avoid an error.
25462 Use char because int might match the return type of a GCC
25463 builtin and then its argument prototype would still apply. */
25476 for ac_lib
in '' gen
; do
25477 if test -z "$ac_lib"; then
25478 ac_res
="none required"
25481 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
25483 if ac_fn_c_try_link
"$LINENO"; then :
25484 ac_cv_search_eaccess
=$ac_res
25486 rm -f core conftest.err conftest.
$ac_objext \
25488 if test "${ac_cv_search_eaccess+set}" = set; then :
25492 if test "${ac_cv_search_eaccess+set}" = set; then :
25495 ac_cv_search_eaccess
=no
25497 rm conftest.
$ac_ext
25498 LIBS
=$ac_func_search_save_LIBS
25500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_eaccess" >&5
25501 $as_echo "$ac_cv_search_eaccess" >&6; }
25502 ac_res
=$ac_cv_search_eaccess
25503 if test "$ac_res" != no
; then :
25504 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
25505 test "$ac_cv_search_eaccess" = "none required" ||
25506 LIB_EACCESS
=$ac_cv_search_eaccess
25509 for ac_func
in eaccess
25511 ac_fn_c_check_func
"$LINENO" "eaccess" "ac_cv_func_eaccess"
25512 if test "x$ac_cv_func_eaccess" = x
""yes; then :
25513 cat >>confdefs.h
<<_ACEOF
25514 #define HAVE_EACCESS 1
25520 LIBS
=$gl_saved_libs
25528 GNULIB_EUIDACCESS
=1
25534 gl_gnulib_enabled_euidaccess
=true
25535 if test $HAVE_EUIDACCESS = 0; then
25536 func_gl_gnulib_m4code_a9786850e999ae65a836a6041e8e5ed1
25538 func_gl_gnulib_m4code_6099e9737f757db36c47fa9d9f02e88c
25539 if test $HAVE_EUIDACCESS = 0; then
25540 func_gl_gnulib_m4code_stat
25544 func_gl_gnulib_m4code_getgroups
()
25546 if ! $gl_gnulib_enabled_getgroups; then
25552 ac_fn_c_check_func
"$LINENO" "getgroups" "ac_cv_func_getgroups"
25553 if test "x$ac_cv_func_getgroups" = x
""yes; then :
25558 # If we don't yet have getgroups, see if it's in -lbsd.
25559 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
25561 if test $ac_cv_func_getgroups = no
; then
25562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getgroups in -lbsd" >&5
25563 $as_echo_n "checking for getgroups in -lbsd... " >&6; }
25564 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then :
25565 $as_echo_n "(cached) " >&6
25567 ac_check_lib_save_LIBS
=$LIBS
25569 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25570 /* end confdefs.h. */
25572 /* Override any GCC internal prototype to avoid an error.
25573 Use char because int might match the return type of a GCC
25574 builtin and then its argument prototype would still apply. */
25582 return getgroups ();
25587 if ac_fn_c_try_link
"$LINENO"; then :
25588 ac_cv_lib_bsd_getgroups
=yes
25590 ac_cv_lib_bsd_getgroups
=no
25592 rm -f core conftest.err conftest.
$ac_objext \
25593 conftest
$ac_exeext conftest.
$ac_ext
25594 LIBS
=$ac_check_lib_save_LIBS
25596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_getgroups" >&5
25597 $as_echo "$ac_cv_lib_bsd_getgroups" >&6; }
25598 if test "x$ac_cv_lib_bsd_getgroups" = x
""yes; then :
25599 GETGROUPS_LIB
=-lbsd
25604 # Run the program to test the functionality of the system-supplied
25605 # getgroups function only if there is such a function.
25606 if test $ac_cv_func_getgroups = yes; then
25607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getgroups" >&5
25608 $as_echo_n "checking for working getgroups... " >&6; }
25609 if test "${ac_cv_func_getgroups_works+set}" = set; then :
25610 $as_echo_n "(cached) " >&6
25612 if test "$cross_compiling" = yes; then :
25613 case "$host_os" in # ((
25614 # Guess yes on glibc systems.
25615 *-gnu*) ac_cv_func_getgroups_works
="guessing yes" ;;
25616 # If we don't know, assume the worst.
25617 *) ac_cv_func_getgroups_works
="guessing no" ;;
25621 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25622 /* end confdefs.h. */
25623 $ac_includes_default
25627 /* On Ultrix 4.3, getgroups (0, 0) always fails. */
25628 return getgroups (0, 0) == -1;
25634 if ac_fn_c_try_run
"$LINENO"; then :
25635 ac_cv_func_getgroups_works
=yes
25637 ac_cv_func_getgroups_works
=no
25639 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
25640 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
25645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getgroups_works" >&5
25646 $as_echo "$ac_cv_func_getgroups_works" >&6; }
25648 ac_cv_func_getgroups_works
=no
25650 case "$ac_cv_func_getgroups_works" in
25653 $as_echo "#define HAVE_GETGROUPS 1" >>confdefs.h
25659 if test $ac_cv_func_getgroups != yes; then
25662 if test "$ac_cv_type_getgroups" != gid_t \
25663 ||
{ case "$ac_cv_func_getgroups_works" in
25668 REPLACE_GETGROUPS
=1
25670 $as_echo "#define GETGROUPS_ZERO_BUG 1" >>confdefs.h
25673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getgroups handles negative values" >&5
25674 $as_echo_n "checking whether getgroups handles negative values... " >&6; }
25675 if test "${gl_cv_func_getgroups_works+set}" = set; then :
25676 $as_echo_n "(cached) " >&6
25678 if test "$cross_compiling" = yes; then :
25680 # Guess yes on glibc systems.
25681 *-gnu*) gl_cv_func_getgroups_works
="guessing yes" ;;
25682 # If we don't know, assume the worst.
25683 *) gl_cv_func_getgroups_works
="guessing no" ;;
25687 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25688 /* end confdefs.h. */
25689 $ac_includes_default
25693 int size = getgroups (0, 0);
25694 gid_t *list = malloc (size * sizeof *list);
25695 return getgroups (-1, list) != -1;
25700 if ac_fn_c_try_run
"$LINENO"; then :
25701 gl_cv_func_getgroups_works
=yes
25703 gl_cv_func_getgroups_works
=no
25705 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
25706 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
25710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getgroups_works" >&5
25711 $as_echo "$gl_cv_func_getgroups_works" >&6; }
25712 case "$gl_cv_func_getgroups_works" in
25714 *) REPLACE_GETGROUPS
=1 ;;
25718 test -n "$GETGROUPS_LIB" && LIBS
="$GETGROUPS_LIB $LIBS"
25720 if test $HAVE_GETGROUPS = 0 ||
test $REPLACE_GETGROUPS = 1; then
25729 gl_LIBOBJS
="$gl_LIBOBJS getgroups.$ac_objext"
25743 gl_gnulib_enabled_getgroups
=true
25746 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36
()
25748 if ! $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
25751 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36
=true
25754 func_gl_gnulib_m4code_a9786850e999ae65a836a6041e8e5ed1
()
25756 if ! $gl_gnulib_enabled_a9786850e999ae65a836a6041e8e5ed1; then
25762 ac_fn_c_check_func
"$LINENO" "group_member" "ac_cv_func_group_member"
25763 if test "x$ac_cv_func_group_member" = x
""yes; then :
25767 HAVE_GROUP_MEMBER
=0
25772 if test $HAVE_GROUP_MEMBER = 0; then
25781 gl_LIBOBJS
="$gl_LIBOBJS group-member.$ac_objext"
25792 GNULIB_GROUP_MEMBER
=1
25798 gl_gnulib_enabled_a9786850e999ae65a836a6041e8e5ed1
=true
25799 if test $HAVE_GROUP_MEMBER = 0; then
25800 func_gl_gnulib_m4code_getgroups
25802 if test $HAVE_GROUP_MEMBER = 0; then
25803 func_gl_gnulib_m4code_682e609604ccaac6be382e4ee3a4eaec
25807 func_gl_gnulib_m4code_03e0aaad4cb89ca757653bd367a6ccb7
()
25809 if ! $gl_gnulib_enabled_03e0aaad4cb89ca757653bd367a6ccb7; then
25810 gl_gnulib_enabled_03e0aaad4cb89ca757653bd367a6ccb7
=true
25813 func_gl_gnulib_m4code_pathmax
()
25815 if ! $gl_gnulib_enabled_pathmax; then
25819 gl_gnulib_enabled_pathmax
=true
25822 func_gl_gnulib_m4code_6099e9737f757db36c47fa9d9f02e88c
()
25824 if ! $gl_gnulib_enabled_6099e9737f757db36c47fa9d9f02e88c; then
25825 gl_gnulib_enabled_6099e9737f757db36c47fa9d9f02e88c
=true
25828 func_gl_gnulib_m4code_stat
()
25830 if ! $gl_gnulib_enabled_stat; then
25834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
25835 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
25836 if test "${gl_cv_func_stat_dir_slash+set}" = set; then :
25837 $as_echo_n "(cached) " >&6
25839 if test "$cross_compiling" = yes; then :
25841 mingw
*) gl_cv_func_stat_dir_slash
="guessing no";;
25842 *) gl_cv_func_stat_dir_slash
="guessing yes";;
25845 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25846 /* end confdefs.h. */
25847 #include <sys/stat.h>
25852 struct stat st; return stat (".", &st) != stat ("./", &st);
25857 if ac_fn_c_try_run
"$LINENO"; then :
25858 gl_cv_func_stat_dir_slash
=yes
25860 gl_cv_func_stat_dir_slash
=no
25862 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
25863 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
25867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
25868 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
25869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
25870 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
25871 if test "${gl_cv_func_stat_file_slash+set}" = set; then :
25872 $as_echo_n "(cached) " >&6
25875 # Assume that if we have lstat, we can also check symlinks.
25876 if test $ac_cv_func_lstat = yes; then
25877 ln -s conftest.tmp conftest.lnk
25879 if test "$cross_compiling" = yes; then :
25881 # Guess yes on glibc systems.
25882 *-gnu*) gl_cv_func_stat_file_slash
="guessing yes" ;;
25883 # If we don't know, assume the worst.
25884 *) gl_cv_func_stat_file_slash
="guessing no" ;;
25888 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25889 /* end confdefs.h. */
25890 #include <sys/stat.h>
25897 if (!stat ("conftest.tmp/", &st))
25900 if (!stat ("conftest.lnk/", &st))
25909 if ac_fn_c_try_run
"$LINENO"; then :
25910 gl_cv_func_stat_file_slash
=yes
25912 gl_cv_func_stat_file_slash
=no
25914 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
25915 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
25918 rm -f conftest.tmp conftest.lnk
25920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
25921 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
25922 case $gl_cv_func_stat_dir_slash in
25923 *no
) REPLACE_STAT
=1
25925 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
25928 case $gl_cv_func_stat_file_slash in
25929 *no
) REPLACE_STAT
=1
25931 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
25935 if test $REPLACE_STAT = 1; then
25944 gl_LIBOBJS
="$gl_LIBOBJS stat.$ac_objext"
25959 gl_gnulib_enabled_stat
=true
25960 if test $REPLACE_STAT = 1; then
25961 func_gl_gnulib_m4code_dosname
25963 if test $REPLACE_STAT = 1; then
25964 func_gl_gnulib_m4code_pathmax
25966 if test $REPLACE_STAT = 1; then
25967 func_gl_gnulib_m4code_verify
25971 func_gl_gnulib_m4code_strtoll
()
25973 if ! $gl_gnulib_enabled_strtoll; then
25977 if test "$ac_cv_type_long_long_int" = yes; then
25978 for ac_func
in strtoll
25980 ac_fn_c_check_func
"$LINENO" "strtoll" "ac_cv_func_strtoll"
25981 if test "x$ac_cv_func_strtoll" = x
""yes; then :
25982 cat >>confdefs.h
<<_ACEOF
25983 #define HAVE_STRTOLL 1
25989 if test $ac_cv_func_strtoll = no
; then
25994 if test $HAVE_STRTOLL = 0; then
26003 gl_LIBOBJS
="$gl_LIBOBJS strtoll.$ac_objext"
26020 gl_gnulib_enabled_strtoll
=true
26023 func_gl_gnulib_m4code_strtoull
()
26025 if ! $gl_gnulib_enabled_strtoull; then
26029 if test "$ac_cv_type_unsigned_long_long_int" = yes; then
26030 for ac_func
in strtoull
26032 ac_fn_c_check_func
"$LINENO" "strtoull" "ac_cv_func_strtoull"
26033 if test "x$ac_cv_func_strtoull" = x
""yes; then :
26034 cat >>confdefs.h
<<_ACEOF
26035 #define HAVE_STRTOULL 1
26041 if test $ac_cv_func_strtoull = no
; then
26046 if test $HAVE_STRTOULL = 0; then
26055 gl_LIBOBJS
="$gl_LIBOBJS strtoull.$ac_objext"
26072 gl_gnulib_enabled_strtoull
=true
26075 func_gl_gnulib_m4code_verify
()
26077 if ! $gl_gnulib_enabled_verify; then
26078 gl_gnulib_enabled_verify
=true
26081 func_gl_gnulib_m4code_682e609604ccaac6be382e4ee3a4eaec
()
26083 if ! $gl_gnulib_enabled_682e609604ccaac6be382e4ee3a4eaec; then
26084 gl_gnulib_enabled_682e609604ccaac6be382e4ee3a4eaec
=true
26087 if test $HAVE_FACCESSAT = 0; then
26088 func_gl_gnulib_m4code_260941c0e5dc67ec9e87d1fb321c300b
26090 if test $HAVE_FACCESSAT = 0; then
26091 func_gl_gnulib_m4code_dosname
26093 if test $HAVE_FACCESSAT = 0; then
26094 func_gl_gnulib_m4code_euidaccess
26096 if test $HAVE_FACCESSAT = 0; then
26097 func_gl_gnulib_m4code_03e0aaad4cb89ca757653bd367a6ccb7
26099 if test $HAVE_FDOPENDIR = 0; then
26100 func_gl_gnulib_m4code_260941c0e5dc67ec9e87d1fb321c300b
26102 if test $HAVE_FSTATAT = 0 ||
test $REPLACE_FSTATAT = 1; then
26103 func_gl_gnulib_m4code_260941c0e5dc67ec9e87d1fb321c300b
26105 if test $HAVE_FSTATAT = 0 ||
test $REPLACE_FSTATAT = 1; then
26106 func_gl_gnulib_m4code_dosname
26108 if test $HAVE_FSTATAT = 0 ||
test $REPLACE_FSTATAT = 1; then
26109 func_gl_gnulib_m4code_03e0aaad4cb89ca757653bd367a6ccb7
26111 if test $REPLACE_GETOPT = 1; then
26112 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36
26114 if test $REPLACE_LSTAT = 1; then
26115 func_gl_gnulib_m4code_dosname
26117 if test $REPLACE_LSTAT = 1; then
26118 func_gl_gnulib_m4code_stat
26120 if test $HAVE_READLINK = 0 ||
test $REPLACE_READLINK = 1; then
26121 func_gl_gnulib_m4code_stat
26123 if test $HAVE_READLINKAT = 0; then
26124 func_gl_gnulib_m4code_260941c0e5dc67ec9e87d1fb321c300b
26126 if test $HAVE_READLINKAT = 0; then
26127 func_gl_gnulib_m4code_dosname
26129 if test $HAVE_READLINKAT = 0; then
26130 func_gl_gnulib_m4code_03e0aaad4cb89ca757653bd367a6ccb7
26132 if { test $HAVE_STRTOIMAX = 0 ||
test $REPLACE_STRTOIMAX = 1; } && test $ac_cv_type_long_long_int = yes; then
26133 func_gl_gnulib_m4code_strtoll
26135 if test $HAVE_STRTOIMAX = 0 ||
test $REPLACE_STRTOIMAX = 1; then
26136 func_gl_gnulib_m4code_verify
26138 if test $ac_cv_func_strtoumax = no
&& test $ac_cv_type_unsigned_long_long_int = yes; then
26139 func_gl_gnulib_m4code_strtoull
26141 if test $ac_cv_func_strtoumax = no
; then
26142 func_gl_gnulib_m4code_verify
26145 if $gl_gnulib_enabled_260941c0e5dc67ec9e87d1fb321c300b; then
26146 gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_TRUE
=
26147 gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_FALSE
='#'
26149 gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_TRUE
='#'
26150 gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_FALSE
=
26153 if $gl_gnulib_enabled_dosname; then
26154 gl_GNULIB_ENABLED_dosname_TRUE
=
26155 gl_GNULIB_ENABLED_dosname_FALSE
='#'
26157 gl_GNULIB_ENABLED_dosname_TRUE
='#'
26158 gl_GNULIB_ENABLED_dosname_FALSE
=
26161 if $gl_gnulib_enabled_euidaccess; then
26162 gl_GNULIB_ENABLED_euidaccess_TRUE
=
26163 gl_GNULIB_ENABLED_euidaccess_FALSE
='#'
26165 gl_GNULIB_ENABLED_euidaccess_TRUE
='#'
26166 gl_GNULIB_ENABLED_euidaccess_FALSE
=
26169 if $gl_gnulib_enabled_getgroups; then
26170 gl_GNULIB_ENABLED_getgroups_TRUE
=
26171 gl_GNULIB_ENABLED_getgroups_FALSE
='#'
26173 gl_GNULIB_ENABLED_getgroups_TRUE
='#'
26174 gl_GNULIB_ENABLED_getgroups_FALSE
=
26177 if $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
26178 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE
=
26179 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE
='#'
26181 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE
='#'
26182 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE
=
26185 if $gl_gnulib_enabled_a9786850e999ae65a836a6041e8e5ed1; then
26186 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_TRUE
=
26187 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_FALSE
='#'
26189 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_TRUE
='#'
26190 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_FALSE
=
26193 if $gl_gnulib_enabled_03e0aaad4cb89ca757653bd367a6ccb7; then
26194 gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_TRUE
=
26195 gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_FALSE
='#'
26197 gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_TRUE
='#'
26198 gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_FALSE
=
26201 if $gl_gnulib_enabled_pathmax; then
26202 gl_GNULIB_ENABLED_pathmax_TRUE
=
26203 gl_GNULIB_ENABLED_pathmax_FALSE
='#'
26205 gl_GNULIB_ENABLED_pathmax_TRUE
='#'
26206 gl_GNULIB_ENABLED_pathmax_FALSE
=
26209 if $gl_gnulib_enabled_6099e9737f757db36c47fa9d9f02e88c; then
26210 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_TRUE
=
26211 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_FALSE
='#'
26213 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_TRUE
='#'
26214 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_FALSE
=
26217 if $gl_gnulib_enabled_stat; then
26218 gl_GNULIB_ENABLED_stat_TRUE
=
26219 gl_GNULIB_ENABLED_stat_FALSE
='#'
26221 gl_GNULIB_ENABLED_stat_TRUE
='#'
26222 gl_GNULIB_ENABLED_stat_FALSE
=
26225 if $gl_gnulib_enabled_strtoll; then
26226 gl_GNULIB_ENABLED_strtoll_TRUE
=
26227 gl_GNULIB_ENABLED_strtoll_FALSE
='#'
26229 gl_GNULIB_ENABLED_strtoll_TRUE
='#'
26230 gl_GNULIB_ENABLED_strtoll_FALSE
=
26233 if $gl_gnulib_enabled_strtoull; then
26234 gl_GNULIB_ENABLED_strtoull_TRUE
=
26235 gl_GNULIB_ENABLED_strtoull_FALSE
='#'
26237 gl_GNULIB_ENABLED_strtoull_TRUE
='#'
26238 gl_GNULIB_ENABLED_strtoull_FALSE
=
26241 if $gl_gnulib_enabled_verify; then
26242 gl_GNULIB_ENABLED_verify_TRUE
=
26243 gl_GNULIB_ENABLED_verify_FALSE
='#'
26245 gl_GNULIB_ENABLED_verify_TRUE
='#'
26246 gl_GNULIB_ENABLED_verify_FALSE
=
26249 if $gl_gnulib_enabled_682e609604ccaac6be382e4ee3a4eaec; then
26250 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_TRUE
=
26251 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_FALSE
='#'
26253 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_TRUE
='#'
26254 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_FALSE
=
26257 # End of code from modules
26278 gl_source_base
='tests'
26279 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
26281 gl_module_indicator_condition
=$gltests_WITNESS
26292 LIBGNU_LIBDEPS
="$gl_libdeps"
26294 LIBGNU_LTLIBDEPS
="$gl_ltlibdeps"
26297 CFLAGS
=$SAVE_CFLAGS
26301 aix4-2
) LD_SWITCH_SYSTEM_TEMACS
="-Wl,-bnodelcsect" ;;
26304 ## The -headerpad option tells ld (see man page) to leave room at the
26305 ## end of the header for adding load commands. Needed for dumping.
26306 ## 0x690 is the total size of 30 segment load commands (at 56
26307 ## each); under Cocoa 31 commands are required.
26308 if test "$HAVE_NS" = "yes"; then
26309 libs_nsgui
="-framework AppKit"
26310 headerpad_extra
=6C8
26313 headerpad_extra
=690
26315 LD_SWITCH_SYSTEM_TEMACS
="-fno-pie -prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
26317 ## This is here because src/Makefile.in did some extra fiddling around
26318 ## with LD_SWITCH_SYSTEM. The cpp logic was:
26319 ## #ifndef LD_SWITCH_SYSTEM
26320 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
26321 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
26322 ## not using gcc, darwin.
26323 ## Because this was done in src/Makefile.in, the resulting part of
26324 ## LD_SWITCH_SYSTEM was not used in configure (ie, in ac_link).
26325 ## It therefore seems cleaner to put this in LD_SWITCH_SYSTEM_TEMACS,
26326 ## rather than LD_SWITCH_SYSTEM.
26327 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
26328 LD_SWITCH_SYSTEM_TEMACS
="-X $LD_SWITCH_SYSTEM_TEMACS"
26331 ## LD_SWITCH_X_SITE_RPATH is a -rpath option saying where to
26332 ## find X at run-time.
26333 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at the
26334 ## point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_RPATH
26335 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
26336 ## had different values in configure (in ac_link) and src/Makefile.in.
26337 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
26338 gnu
*) LD_SWITCH_SYSTEM_TEMACS
="\$(LD_SWITCH_X_SITE_RPATH)" ;;
26340 *) LD_SWITCH_SYSTEM_TEMACS
= ;;
26349 ## gnu: GNU needs its own crt0.
26350 aix4-2|cygwin|darwin|gnu|hpux
*|irix6-5|sol2
*|unixware
) ORDINARY_LINK
=yes ;;
26352 ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the
26353 ## library search parth, i.e. it won't search /usr/lib for libc and
26354 ## friends. Using -nostartfiles instead avoids this problem, and
26355 ## will also work on earlier NetBSD releases.
26356 netbsd|openbsd
) LD_FIRSTFLAG
="-nostartfiles" ;;
26358 ## powerpc*: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says
26359 ## MkLinux/LinuxPPC needs this.
26360 ## s390x-* only supports opsys = gnu-linux so it can be added here.
26362 case "$canonical" in
26363 powerpc
*|s390x-
*) LD_FIRSTFLAG
="-nostdlib" ;;
26369 if test "x$ORDINARY_LINK" = "xyes"; then
26373 $as_echo "#define ORDINARY_LINK 1" >>confdefs.h
26376 ## The system files defining neither ORDINARY_LINK nor LD_FIRSTFLAG are:
26377 ## freebsd, gnu-* not on powerpc*|s390x*.
26378 elif test "x$GCC" = "xyes" && test "x$LD_FIRSTFLAG" = "x"; then
26380 ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
26381 ## places that are difficult to figure out at make time. Fortunately,
26382 ## these same versions allow you to pass arbitrary flags on to the
26383 ## linker, so there is no reason not to use it as a linker.
26385 ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from
26386 ## searching for libraries in its internal directories, so we have to
26387 ## ask GCC explicitly where to find libgcc.a (LIB_GCC below).
26388 LD_FIRSTFLAG
="-nostdlib"
26391 ## FIXME? What setting of EDIT_LDFLAGS should this have?
26392 test "$NS_IMPL_GNUSTEP" = "yes" && LD_FIRSTFLAG
="-rdynamic"
26397 ## FIXME? The logic here is not precisely the same as that above.
26398 ## There is no check here for a pre-defined LD_FIRSTFLAG.
26399 ## Should we only be setting LIB_GCC if LD ~ -nostdlib?
26401 if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then
26404 freebsd|netbsd|openbsd
) LIB_GCC
= ;;
26407 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
26408 ## build on ARM EABI under GNU/Linux. (Bug#5518)
26414 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
26415 ## immediately undefine it again and redefine it to empty.
26416 ## Was the C_SWITCH_X_SITE part really necessary?
26417 ## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
26423 ## Ask GCC where to find libgcc.a.
26424 *) LIB_GCC
=`$CC -print-libgcc-file-name 2> /dev/null` ;;
26428 ## Common for all window systems
26429 if test "$window_system" != "none"; then
26431 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
26433 WINDOW_SYSTEM_OBJ
="fontset.o fringe.o image.o"
26440 #### Report on what we decided to do.
26441 #### Report GTK as a toolkit, even if it doesn't use Xt.
26442 #### It makes printing result more understandable as using GTK sets
26443 #### toolkit_scroll_bars to yes by default.
26444 if test "${HAVE_GTK}" = "yes"; then
26445 USE_X_TOOLKIT
="$USE_GTK_TOOLKIT"
26449 Configured for \`${canonical}'.
26451 Where should the build process find the source code? ${srcdir}
26452 What compiler should emacs be built with? ${CC} ${CFLAGS}
26453 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
26454 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
26455 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
26456 What window system should Emacs use? ${window_system}
26457 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
26459 if test -n "${x_includes}"; then
26460 echo " Where do we find X Windows header files? ${x_includes}"
26462 echo " Where do we find X Windows header files? Standard dirs"
26464 if test -n "${x_libraries}"; then
26465 echo " Where do we find X Windows libraries? ${x_libraries}"
26467 echo " Where do we find X Windows libraries? Standard dirs"
26470 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
26471 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
26472 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
26473 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
26474 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
26475 echo " Does Emacs use -lpng? ${HAVE_PNG}"
26476 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
26477 echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
26479 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
26480 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
26481 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
26482 echo " Does Emacs use GSettings? ${HAVE_GSETTINGS}"
26483 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
26484 echo " Does Emacs use -lgnutls? ${HAVE_GNUTLS}"
26485 echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}"
26487 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
26488 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
26489 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
26490 echo " Does Emacs use -lxft? ${HAVE_XFT}"
26492 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
26495 if test -n "${EMACSDATA}"; then
26496 echo " Environment variable EMACSDATA set to: $EMACSDATA"
26498 if test -n "${EMACSDOC}"; then
26499 echo " Environment variable EMACSDOC set to: $EMACSDOC"
26504 if test "$HAVE_NS" = "yes"; then
26506 echo "You must run \"${MAKE-make} install\" in order to test the built application.
26507 The installed application will go to nextstep/Emacs.app and can be
26508 run or moved from there."
26509 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
26510 echo "The application will be fully self-contained."
26512 echo "The lisp resources for the application will be installed under ${prefix}.
26513 You may need to run \"${MAKE-make} install\" with sudo. The application will fail
26514 to run if these resources are not installed."
26519 if test "${opsys}" = "cygwin"; then
26521 1.5.
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: building Emacs on Cygwin 1.5 is not supported." >&5
26522 $as_echo "$as_me: WARNING: building Emacs on Cygwin 1.5 is not supported." >&2;}
26528 # Remove any trailing slashes in these variables.
26529 test "${prefix}" != NONE
&&
26530 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
26531 test "${exec_prefix}" != NONE
&&
26532 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
26534 if test "$HAVE_NS" = "yes"; then
26535 if test "$NS_IMPL_GNUSTEP" = yes; then
26536 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"
26539 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"
26544 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"
26546 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"
26549 opt_makefile
=test
/automated
/Makefile
26551 if test -f "$srcdir/$opt_makefile.in"; then
26552 SUBDIR_MAKEFILES
="$SUBDIR_MAKEFILES $opt_makefile"
26553 ac_config_files
="$ac_config_files test/automated/Makefile"
26558 opt_makefile
=admin
/unidata
/Makefile
26560 if test -f "$srcdir/$opt_makefile.in"; then
26561 SUBDIR_MAKEFILES
="$SUBDIR_MAKEFILES $opt_makefile"
26562 ac_config_files
="$ac_config_files admin/unidata/Makefile"
26567 SUBDIR_MAKEFILES_IN
=`echo " ${SUBDIR_MAKEFILES}" | sed -e 's| | $(srcdir)/|g' -e 's|Makefile|Makefile.in|g'`
26571 ac_config_commands
="$ac_config_commands mkdirs"
26574 ac_config_commands
="$ac_config_commands epaths"
26577 ac_config_commands
="$ac_config_commands gdbinit"
26580 cat >confcache
<<\_ACEOF
26581 # This file is a shell script that caches the results of configure
26582 # tests run on this system so they can be shared between configure
26583 # scripts and configure runs, see configure's option --config-cache.
26584 # It is not useful on other systems. If it contains results you don't
26585 # want to keep, you may remove or edit it.
26587 # config.status only pays attention to the cache file if you give it
26588 # the --recheck option to rerun configure.
26590 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26591 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26592 # following values.
26596 # The following way of writing the cache mishandles newlines in values,
26597 # but we know of no workaround that is simple, portable, and efficient.
26598 # So, we kill variables containing newlines.
26599 # Ultrix sh set writes to stderr and can't be redirected directly,
26600 # and sets the high bit in the cache file unless we assign to the vars.
26602 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26603 eval ac_val
=\$
$ac_var
26607 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
26608 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
26611 _ | IFS | as_nl
) ;; #(
26612 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
26613 *) { eval $ac_var=; unset $ac_var;} ;;
26619 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26620 *${as_nl}ac_space
=\
*)
26621 # `set' does not quote correctly, so add quotes: double-quote
26622 # substitution turns \\\\ into \\, and sed turns \\ into \.
26625 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26628 # `set' quotes correctly as required by POSIX, so do not add quotes.
26629 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26638 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26640 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26642 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
26643 if test -w "$cache_file"; then
26644 test "x$cache_file" != "x/dev/null" &&
26645 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
26646 $as_echo "$as_me: updating cache $cache_file" >&6;}
26647 cat confcache
>$cache_file
26649 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
26650 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26655 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
26656 # Let make expand exec_prefix.
26657 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
26659 DEFS
=-DHAVE_CONFIG_H
26663 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
26664 # 1. Remove the extension, and $U if already installed.
26665 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
26666 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
26667 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
26668 # will be set to the directory where LIBOBJS objects are built.
26669 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26670 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
26672 LIBOBJS
=$ac_libobjs
26674 LTLIBOBJS
=$ac_ltlibobjs
26677 if test -n "$EXEEXT"; then
26679 am__EXEEXT_FALSE
='#'
26681 am__EXEEXT_TRUE
='#'
26685 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
26686 as_fn_error
"conditional \"AMDEP\" was never defined.
26687 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26689 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26690 as_fn_error
"conditional \"am__fastdepCC\" was never defined.
26691 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26693 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
26694 as_fn_error
"conditional \"GL_COND_LIBTOOL\" was never defined.
26695 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26697 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
26698 as_fn_error
"conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
26699 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26702 if test -z "${GL_GENERATE_EXECINFO_H_TRUE}" && test -z "${GL_GENERATE_EXECINFO_H_FALSE}"; then
26703 as_fn_error
"conditional \"GL_GENERATE_EXECINFO_H\" was never defined.
26704 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26706 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
26707 as_fn_error
"conditional \"GL_GENERATE_STDINT_H\" was never defined.
26708 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26710 if test -z "${GL_GENERATE_STDALIGN_H_TRUE}" && test -z "${GL_GENERATE_STDALIGN_H_FALSE}"; then
26711 as_fn_error
"conditional \"GL_GENERATE_STDALIGN_H\" was never defined.
26712 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26714 if test -z "${GL_GENERATE_STDARG_H_TRUE}" && test -z "${GL_GENERATE_STDARG_H_FALSE}"; then
26715 as_fn_error
"conditional \"GL_GENERATE_STDARG_H\" was never defined.
26716 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26718 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
26719 as_fn_error
"conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
26720 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26722 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
26723 as_fn_error
"conditional \"GL_GENERATE_STDDEF_H\" was never defined.
26724 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26726 if test -z "${gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_TRUE}" && test -z "${gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_FALSE}"; then
26727 as_fn_error
"conditional \"gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b\" was never defined.
26728 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26730 if test -z "${gl_GNULIB_ENABLED_dosname_TRUE}" && test -z "${gl_GNULIB_ENABLED_dosname_FALSE}"; then
26731 as_fn_error
"conditional \"gl_GNULIB_ENABLED_dosname\" was never defined.
26732 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26734 if test -z "${gl_GNULIB_ENABLED_euidaccess_TRUE}" && test -z "${gl_GNULIB_ENABLED_euidaccess_FALSE}"; then
26735 as_fn_error
"conditional \"gl_GNULIB_ENABLED_euidaccess\" was never defined.
26736 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26738 if test -z "${gl_GNULIB_ENABLED_getgroups_TRUE}" && test -z "${gl_GNULIB_ENABLED_getgroups_FALSE}"; then
26739 as_fn_error
"conditional \"gl_GNULIB_ENABLED_getgroups\" was never defined.
26740 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26742 if test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE}" && test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE}"; then
26743 as_fn_error
"conditional \"gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36\" was never defined.
26744 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26746 if test -z "${gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_TRUE}" && test -z "${gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_FALSE}"; then
26747 as_fn_error
"conditional \"gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1\" was never defined.
26748 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26750 if test -z "${gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_TRUE}" && test -z "${gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_FALSE}"; then
26751 as_fn_error
"conditional \"gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7\" was never defined.
26752 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26754 if test -z "${gl_GNULIB_ENABLED_pathmax_TRUE}" && test -z "${gl_GNULIB_ENABLED_pathmax_FALSE}"; then
26755 as_fn_error
"conditional \"gl_GNULIB_ENABLED_pathmax\" was never defined.
26756 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26758 if test -z "${gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_TRUE}" && test -z "${gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_FALSE}"; then
26759 as_fn_error
"conditional \"gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c\" was never defined.
26760 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26762 if test -z "${gl_GNULIB_ENABLED_stat_TRUE}" && test -z "${gl_GNULIB_ENABLED_stat_FALSE}"; then
26763 as_fn_error
"conditional \"gl_GNULIB_ENABLED_stat\" was never defined.
26764 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26766 if test -z "${gl_GNULIB_ENABLED_strtoll_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoll_FALSE}"; then
26767 as_fn_error
"conditional \"gl_GNULIB_ENABLED_strtoll\" was never defined.
26768 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26770 if test -z "${gl_GNULIB_ENABLED_strtoull_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoull_FALSE}"; then
26771 as_fn_error
"conditional \"gl_GNULIB_ENABLED_strtoull\" was never defined.
26772 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26774 if test -z "${gl_GNULIB_ENABLED_verify_TRUE}" && test -z "${gl_GNULIB_ENABLED_verify_FALSE}"; then
26775 as_fn_error
"conditional \"gl_GNULIB_ENABLED_verify\" was never defined.
26776 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26778 if test -z "${gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_TRUE}" && test -z "${gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_FALSE}"; then
26779 as_fn_error
"conditional \"gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec\" was never defined.
26780 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26785 if test -n "$gl_LIBOBJS"; then
26786 # Remove the extension.
26787 sed_drop_objext
='s/\.o$//;s/\.obj$//'
26788 for i
in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
26789 gl_libobjs
="$gl_libobjs $i.$ac_objext"
26790 gl_ltlibobjs
="$gl_ltlibobjs $i.lo"
26793 gl_LIBOBJS
=$gl_libobjs
26795 gl_LTLIBOBJS
=$gl_ltlibobjs
26801 if test -n "$gltests_LIBOBJS"; then
26802 # Remove the extension.
26803 sed_drop_objext
='s/\.o$//;s/\.obj$//'
26804 for i
in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
26805 gltests_libobjs
="$gltests_libobjs $i.$ac_objext"
26806 gltests_ltlibobjs
="$gltests_ltlibobjs $i.lo"
26809 gltests_LIBOBJS
=$gltests_libobjs
26811 gltests_LTLIBOBJS
=$gltests_ltlibobjs
26815 : ${CONFIG_STATUS=./config.status}
26817 ac_clean_files_save
=$ac_clean_files
26818 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
26819 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
26820 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
26822 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
26824 # Generated by $as_me.
26825 # Run this file to recreate the current configuration.
26826 # Compiler output produced by configure, useful for debugging
26827 # configure, is in config.log if it exists.
26830 ac_cs_recheck=false
26833 SHELL=\${CONFIG_SHELL-$SHELL}
26836 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
26837 ## -------------------- ##
26838 ## M4sh Initialization. ##
26839 ## -------------------- ##
26841 # Be more Bourne compatible
26842 DUALCASE
=1; export DUALCASE
# for MKS sh
26843 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
26846 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26847 # is contrary to our usage. Disable this feature.
26848 alias -g '${1+"$@"}'='"$@"'
26849 setopt NO_GLOB_SUBST
26851 case `(set -o) 2>/dev/null` in #(
26863 # Printing a long string crashes Solaris 7 /usr/bin/printf.
26864 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
26865 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
26866 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
26867 # Prefer a ksh shell builtin over an external printf program on Solaris,
26868 # but without wasting forks for bash or zsh.
26869 if test -z "$BASH_VERSION$ZSH_VERSION" \
26870 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
26871 as_echo='print
-r --'
26872 as_echo_n='print
-rn --'
26873 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
26874 as_echo='printf %s
\n'
26875 as_echo_n='printf %s
'
26877 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
26878 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
26879 as_echo_n='/usr
/ucb
/echo -n'
26881 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
26882 as_echo_n_body='eval
26886 expr "X$arg" : "X\\(.*\\)$as_nl";
26887 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
26889 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
26891 export as_echo_n_body
26892 as_echo_n='sh
-c $as_echo_n_body as_echo
'
26894 export as_echo_body
26895 as_echo='sh
-c $as_echo_body as_echo
'
26898 # The user is always right.
26899 if test "${PATH_SEPARATOR+set}" != set; then
26901 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
26902 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
26909 # We need space, tab and new line, in precisely that order. Quoting is
26910 # there to prevent editors from complaining about space-tab.
26911 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26912 # splitting by setting IFS to empty value.)
26915 # Find who we are. Look in the path if we contain no directory separator.
26917 *[\\/]* ) as_myself=$0 ;;
26918 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26919 for as_dir in $PATH
26922 test -z "$as_dir" && as_dir=.
26923 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26929 # We did not find ourselves, most probably we were run as `sh COMMAND'
26930 # in which case we are not to be found in the path.
26931 if test "x$as_myself" = x
; then
26934 if test ! -f "$as_myself"; then
26935 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26939 # Unset variables that we do not need and which cause bugs (e.g. in
26940 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
26941 # suppresses any "Segmentation fault" message there. '((' could
26942 # trigger a bug in pdksh 5.2.14.
26943 for as_var
in BASH_ENV ENV MAIL MAILPATH
26944 do eval test x\
${$as_var+set} = xset \
26945 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
26958 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
26961 # as_fn_error ERROR [LINENO LOG_FD]
26962 # ---------------------------------
26963 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
26964 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
26965 # script with status $?, using 1 if that was 0.
26968 as_status
=$?
; test $as_status -eq 0 && as_status
=1
26970 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
26971 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
26973 $as_echo "$as_me: error: $1" >&2
26974 as_fn_exit
$as_status
26978 # as_fn_set_status STATUS
26979 # -----------------------
26980 # Set $? to STATUS, without forking.
26981 as_fn_set_status
()
26984 } # as_fn_set_status
26986 # as_fn_exit STATUS
26987 # -----------------
26988 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
26992 as_fn_set_status
$1
26998 # Portably unset VAR.
27001 { eval $1=; unset $1;}
27003 as_unset
=as_fn_unset
27004 # as_fn_append VAR VALUE
27005 # ----------------------
27006 # Append the text in VALUE to the end of the definition contained in VAR. Take
27007 # advantage of any shell optimizations that allow amortized linear growth over
27008 # repeated appends, instead of the typical quadratic growth present in naive
27010 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
27011 eval 'as_fn_append ()
27022 # as_fn_arith ARG...
27023 # ------------------
27024 # Perform arithmetic evaluation on the ARGs, and store the result in the
27025 # global $as_val. Take advantage of shells that can avoid forks. The arguments
27026 # must be portable across $(()) and expr.
27027 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
27028 eval 'as_fn_arith ()
27035 as_val
=`expr "$@" || test $? -eq 1`
27040 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
27041 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
27047 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27048 as_basename
=basename
27053 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
27059 as_me
=`$as_basename -- "$0" ||
27060 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27061 X"$0" : 'X\(//\)$' \| \
27062 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27064 sed '/^.*\/\([^/][^/]*\)\/*$/{
27078 # Avoid depending upon Character Ranges.
27079 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
27080 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27081 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
27082 as_cr_digits
='0123456789'
27083 as_cr_alnum
=$as_cr_Letters$as_cr_digits
27085 ECHO_C
= ECHO_N
= ECHO_T
=
27086 case `echo -n x` in #(((((
27088 case `echo 'xy\c'` in
27089 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
27091 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
27098 rm -f conf$$ conf$$.exe conf$$.
file
27099 if test -d conf$$.dir
; then
27100 rm -f conf$$.dir
/conf$$.
file
27103 mkdir conf$$.dir
2>/dev
/null
27105 if (echo >conf$$.
file) 2>/dev
/null
; then
27106 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
27108 # ... but there are two gotchas:
27109 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27110 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27111 # In both cases, we have to default to `cp -p'.
27112 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
27114 elif ln conf$$.
file conf$$
2>/dev
/null
; then
27122 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
27123 rmdir conf$$.dir
2>/dev
/null
27128 # Create "$as_dir" as a directory, including parents if necessary.
27133 -*) as_dir
=.
/$as_dir;;
27135 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
27139 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27140 *) as_qdir
=$as_dir;;
27142 as_dirs
="'$as_qdir' $as_dirs"
27143 as_dir
=`$as_dirname -- "$as_dir" ||
27144 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27145 X"$as_dir" : 'X\(//\)[^/]' \| \
27146 X"$as_dir" : 'X\(//\)$' \| \
27147 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27148 $as_echo X"$as_dir" |
27149 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27153 /^X\(\/\/\)[^/].*/{
27166 test -d "$as_dir" && break
27168 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
27169 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
27173 if mkdir
-p .
2>/dev
/null
; then
27174 as_mkdir_p
='mkdir -p "$as_dir"'
27176 test -d .
/-p && rmdir .
/-p
27180 if test -x / >/dev
/null
2>&1; then
27181 as_test_x
='test -x'
27183 if ls -dL / >/dev
/null
2>&1; then
27190 if test -d "$1"; then
27196 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
27197 ???[sx]*):;;*)false;;esac;fi
27201 as_executable_p
=$as_test_x
27203 # Sed expression to map a string onto a valid CPP name.
27204 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27206 # Sed expression to map a string onto a valid variable name.
27207 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27211 ## ----------------------------------- ##
27212 ## Main body of $CONFIG_STATUS script. ##
27213 ## ----------------------------------- ##
27215 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
27217 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27218 # Save the log message, to keep $0 and so on meaningful, and to
27219 # report actual input values of CONFIG_FILES etc. instead of their
27220 # values after options handling.
27222 This file was extended by emacs $as_me 24.3.50, which was
27223 generated by GNU Autoconf 2.65. Invocation command line was
27225 CONFIG_FILES = $CONFIG_FILES
27226 CONFIG_HEADERS = $CONFIG_HEADERS
27227 CONFIG_LINKS = $CONFIG_LINKS
27228 CONFIG_COMMANDS = $CONFIG_COMMANDS
27231 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27236 case $ac_config_files in *"
27237 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
27240 case $ac_config_headers in *"
27241 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
27245 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27246 # Files that config.status was made for.
27247 config_files="$ac_config_files"
27248 config_headers="$ac_config_headers"
27249 config_commands="$ac_config_commands"
27253 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27255 \`$as_me' instantiates files and other configuration actions
27256 from templates according to the current configuration. Unless the files
27257 and actions are specified as TAGs, all are instantiated by default.
27259 Usage: $0 [OPTION]... [TAG]...
27261 -h, --help print this help, then exit
27262 -V, --version print version number and configuration settings, then exit
27263 --config print configuration, then exit
27264 -q, --quiet, --silent
27265 do not print progress messages
27266 -d, --debug don't remove temporary files
27267 --recheck update $as_me by reconfiguring in the same conditions
27268 --file=FILE[:TEMPLATE]
27269 instantiate the configuration file FILE
27270 --header=FILE[:TEMPLATE]
27271 instantiate the configuration header FILE
27273 Configuration files:
27276 Configuration headers:
27279 Configuration commands:
27282 Report bugs to the package provider."
27285 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27286 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
27288 emacs config.status 24.3.50
27289 configured by $0, generated by GNU Autoconf 2.65,
27290 with options \\"\$ac_cs_config\\"
27292 Copyright (C) 2009 Free Software Foundation, Inc.
27293 This config.status script is free software; the Free Software Foundation
27294 gives unlimited permission to copy, distribute and modify it."
27301 test -n "\$AWK" || AWK=awk
27304 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27305 # The default lists apply if the user does not specify any file.
27311 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
27312 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
27323 # Handling of the options.
27324 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
27326 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
27327 $as_echo "$ac_cs_version"; exit ;;
27328 --config |
--confi |
--conf |
--con |
--co |
--c )
27329 $as_echo "$ac_cs_config"; exit ;;
27330 --debug |
--debu |
--deb |
--de |
--d |
-d )
27332 --file |
--fil |
--fi |
--f )
27335 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27337 as_fn_append CONFIG_FILES
" '$ac_optarg'"
27338 ac_need_defaults
=false
;;
27339 --header |
--heade |
--head |
--hea )
27342 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27344 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
27345 ac_need_defaults
=false
;;
27347 # Conflict between --help and --header
27348 as_fn_error
"ambiguous option: \`$1'
27349 Try \`$0 --help' for more information.";;
27350 --help |
--hel |
-h )
27351 $as_echo "$ac_cs_usage"; exit ;;
27352 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
27353 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
27356 # This is an error.
27357 -*) as_fn_error
"unrecognized option: \`$1'
27358 Try \`$0 --help' for more information." ;;
27360 *) as_fn_append ac_config_targets
" $1"
27361 ac_need_defaults
=false
;;
27367 ac_configure_extra_args
=
27369 if $ac_cs_silent; then
27371 ac_configure_extra_args
="$ac_configure_extra_args --silent"
27375 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27376 if \$ac_cs_recheck; then
27377 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27379 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
27380 CONFIG_SHELL='$SHELL'
27381 export CONFIG_SHELL
27386 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27390 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27391 ## Running $as_me. ##
27397 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27401 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
27402 GCC="$GCC" CPPFLAGS="$CPPFLAGS"
27406 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27408 # Handling of arguments.
27409 for ac_config_target
in $ac_config_targets
27411 case $ac_config_target in
27412 "src/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
27413 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
27414 "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" ;;
27415 "nextstep/GNUstep/Emacs.base/Resources/Emacs.desktop") CONFIG_FILES
="$CONFIG_FILES nextstep/GNUstep/Emacs.base/Resources/Emacs.desktop:nextstep/templates/Emacs.desktop.in" ;;
27416 "nextstep/Cocoa/Emacs.base/Contents/Info.plist") CONFIG_FILES
="$CONFIG_FILES nextstep/Cocoa/Emacs.base/Contents/Info.plist:nextstep/templates/Info.plist.in" ;;
27417 "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" ;;
27418 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
27419 "lib/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/Makefile" ;;
27420 "lib-src/Makefile") CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile" ;;
27421 "oldXMenu/Makefile") CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
27422 "doc/emacs/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/emacs/Makefile" ;;
27423 "doc/misc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/misc/Makefile" ;;
27424 "doc/lispintro/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispintro/Makefile" ;;
27425 "doc/lispref/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispref/Makefile" ;;
27426 "src/Makefile") CONFIG_FILES
="$CONFIG_FILES src/Makefile" ;;
27427 "lwlib/Makefile") CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
27428 "lisp/Makefile") CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
27429 "leim/Makefile") CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
27430 "nextstep/Makefile") CONFIG_FILES
="$CONFIG_FILES nextstep/Makefile" ;;
27431 "test/automated/Makefile") CONFIG_FILES
="$CONFIG_FILES test/automated/Makefile" ;;
27432 "admin/unidata/Makefile") CONFIG_FILES
="$CONFIG_FILES admin/unidata/Makefile" ;;
27433 "mkdirs") CONFIG_COMMANDS
="$CONFIG_COMMANDS mkdirs" ;;
27434 "epaths") CONFIG_COMMANDS
="$CONFIG_COMMANDS epaths" ;;
27435 "gdbinit") CONFIG_COMMANDS
="$CONFIG_COMMANDS gdbinit" ;;
27437 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
27442 # If the user did not use the arguments to specify the items to instantiate,
27443 # then the envvar interface is used. Set only those that are not.
27444 # We use the long form for the default assignment because of an extremely
27445 # bizarre bug on SunOS 4.1.3.
27446 if $ac_need_defaults; then
27447 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
27448 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
27449 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
27452 # Have a temporary directory for convenience. Make it in the build tree
27453 # simply because there is no reason against having it here, and in addition,
27454 # creating and moving files from /tmp can sometimes cause problems.
27455 # Hook for its removal unless debugging.
27456 # Note that there is a small window in which the directory will not be cleaned:
27457 # after its creation but before its name has been assigned to `$tmp'.
27461 trap 'exit_status=$?
27462 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
27464 trap 'as_fn_exit 1' 1 2 13 15
27466 # Create a (secure) tmp directory for tmp files.
27469 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27470 test -n "$tmp" && test -d "$tmp"
27473 tmp
=.
/conf$$
-$RANDOM
27474 (umask 077 && mkdir
"$tmp")
27475 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
27477 # Set up the scripts for CONFIG_FILES section.
27478 # No need to generate them if there are no CONFIG_FILES.
27479 # This happens for instance with `./config.status config.h'.
27480 if test -n "$CONFIG_FILES"; then
27482 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
27483 ac_cs_awk_getline
=:
27484 ac_cs_awk_pipe_init
=
27485 ac_cs_awk_read_file
='
27486 while ((getline aline < (F[key])) > 0)
27489 ac_cs_awk_pipe_fini
=
27491 ac_cs_awk_getline
=false
27492 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
27493 ac_cs_awk_read_file
='
27495 print "cat " F[key] " &&"
27496 '$ac_cs_awk_pipe_init
27497 # The final `:' finishes the AND list.
27498 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
27500 ac_cr
=`echo X | tr X '\015'`
27501 # On cygwin, bash can eat \r inside `` if the user requested igncr.
27502 # But we know of no other shell where ac_cr would be empty at this
27503 # point, so we can use a bashism as a fallback.
27504 if test "x$ac_cr" = x
; then
27505 eval ac_cr
=\$
\'\\r
\'
27507 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
27508 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
27511 ac_cs_awk_cr
=$ac_cr
27514 echo 'BEGIN {' >"$tmp/subs1.awk" &&
27517 # Create commands to substitute file output variables.
27519 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
27520 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
27521 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
27524 } >conf$
$files.sh
&&
27525 . .
/conf$
$files.sh ||
27526 as_fn_error
"could not make $CONFIG_STATUS" "$LINENO" 5
27527 rm -f conf$
$files.sh
27530 echo "cat >conf$$subs.awk <<_ACEOF" &&
27531 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
27533 } >conf$$subs.sh ||
27534 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
27535 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
27537 for ac_last_try in false false false false false :; do
27538 . ./conf$$subs.sh ||
27539 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
27541 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
27542 if test $ac_delim_n = $ac_delim_num; then
27544 elif $ac_last_try; then
27545 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
27547 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
27550 rm -f conf$$subs.sh
27552 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27553 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
27557 s/^/S["/; s
/!.
*/"]=/
27567 s/\(.\{148\}\)..*/\1/
27569 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
27574 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
27581 s/\(.\{148\}\)..*/\1/
27583 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
27587 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
27592 ' <conf$$subs.awk | sed '
27597 ' >>$CONFIG_STATUS || ac_write_fail=1
27598 rm -f conf$$subs.awk
27599 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27601 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
27602 for (key in S) S_is_set[key] = 1
27604 \$ac_cs_awk_pipe_init
27608 nfields = split(line, field, "@
")
27610 len = length(field[1])
27611 for (i = 2; i < nfields; i++) {
27613 keylen = length(key)
27614 if (S_is_set[key]) {
27616 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
27617 len += length(value) + length(field[++i])
27622 if (nfields == 3 && !substed) {
27624 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
27625 \$ac_cs_awk_read_file
27631 \$ac_cs_awk_pipe_fini
27634 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27635 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
27636 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
27639 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
27640 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
27643 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27644 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
27645 # trailing colons and then remove the whole line if VPATH becomes empty
27646 # (actually we leave an empty line to preserve line numbers).
27647 if test "x
$srcdir" = x.; then
27648 ac_vpsub='/^[ ]*VPATH[ ]*=/{
27649 s/:*\$(srcdir):*/:/
27650 s/:*\${srcdir}:*/:/
27652 s/^\([^=]*=[ ]*\):*/\1/
27658 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27659 fi # test -n "$CONFIG_FILES"
27661 # Set up the scripts for CONFIG_HEADERS section.
27662 # No need to generate them if there are no CONFIG_HEADERS.
27663 # This happens for instance with `./config.status Makefile'.
27664 if test -n "$CONFIG_HEADERS"; then
27665 cat >"$tmp/defines.
awk" <<\_ACAWK ||
27669 # Transform confdefs.h into an awk script `defines.awk', embedded as
27670 # here-document in config.status, that substitutes the proper values into
27671 # config.h.in to produce config.h.
27673 # Create a delimiter string that does not exist in confdefs.h, to ease
27674 # handling of long lines.
27676 for ac_last_try in false false :; do
27677 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
27678 if test -z "$ac_t"; then
27680 elif $ac_last_try; then
27681 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
27683 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
27687 # For the awk script, D is an array of macro values keyed by name,
27688 # likewise P contains macro parameters if any. Preserve backslash
27689 # newline sequences.
27691 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27693 s/.\{148\}/&'"$ac_delim"'/g
27696 s/^[ ]*#[ ]*define[ ][ ]*/ /
27703 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
27705 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
27709 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
27710 D["\
1"]=" \
3\\\\\\n
"\\/p
27712 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
27717 s/.\{148\}/&'"$ac_delim"'/g
27722 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
27725 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
27727 ' <confdefs.h | sed '
27728 s/'"$ac_delim"'/"\\\
27729 "/g' >>$CONFIG_STATUS || ac_write_fail=1
27731 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27732 for (key in D) D_is_set[key] = 1
27735 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
27737 split(line, arg, " ")
27738 if (arg[1] == "#") {
27742 defundef
= substr
(arg
[1], 2)
27745 split(mac1
, mac2
, "(") #)
27747 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
27748 if (D_is_set
[macro
]) {
27749 # Preserve the white space surrounding the "#".
27750 print prefix
"define", macro P
[macro
] D
[macro
]
27753 # Replace #undef with comments. This is necessary, for example,
27754 # in the case of _POSIX_SOURCE, which is predefined and required
27755 # on some systems where configure will not decide to define it.
27756 if (defundef
== "undef") {
27757 print
"/*", prefix defundef
, macro
, "*/"
27765 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27766 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
27767 fi # test -n "$CONFIG_HEADERS"
27770 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
27775 :[FHLC
]) ac_mode
=$ac_tag; continue;;
27777 case $ac_mode$ac_tag in
27779 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
27780 :[FH
]-) ac_tag
=-:-;;
27781 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
27798 -) ac_f
="$tmp/stdin";;
27799 *) # Look for the file first in the build tree, then in the source tree
27800 # (if the path is not absolute). The absolute path cannot be DOS-style,
27801 # because $ac_f cannot contain `:'.
27805 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
27807 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
27809 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
27810 as_fn_append ac_file_inputs
" '$ac_f'"
27813 # Let's still pretend it is `configure' which instantiates (i.e., don't
27814 # use $as_me), people would be surprised to read:
27815 # /* config.h. Generated by config.status. */
27816 configure_input
='Generated from '`
27817 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
27819 if test x
"$ac_file" != x-
; then
27820 configure_input
="$ac_file. $configure_input"
27821 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
27822 $as_echo "$as_me: creating $ac_file" >&6;}
27824 # Neutralize special characters interpreted by sed in replacement strings.
27825 case $configure_input in #(
27826 *\
&* |
*\|
* |
*\\* )
27827 ac_sed_conf_input
=`$as_echo "$configure_input" |
27828 sed 's/[\\\\&|]/\\\\&/g'`;; #(
27829 *) ac_sed_conf_input
=$configure_input;;
27833 *:-:* |
*:-) cat >"$tmp/stdin" \
27834 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
27839 ac_dir
=`$as_dirname -- "$ac_file" ||
27840 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27841 X"$ac_file" : 'X\(//\)[^/]' \| \
27842 X"$ac_file" : 'X\(//\)$' \| \
27843 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27844 $as_echo X"$ac_file" |
27845 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27849 /^X\(\/\/\)[^/].*/{
27862 as_dir
="$ac_dir"; as_fn_mkdir_p
27866 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
27868 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
27869 # A ".." for each directory in $ac_dir_suffix.
27870 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
27871 case $ac_top_builddir_sub in
27872 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
27873 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
27876 ac_abs_top_builddir
=$ac_pwd
27877 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
27878 # for backward compatibility:
27879 ac_top_builddir
=$ac_top_build_prefix
27882 .
) # We are building in place.
27884 ac_top_srcdir
=$ac_top_builddir_sub
27885 ac_abs_top_srcdir
=$ac_pwd ;;
27886 [\\/]* | ?
:[\\/]* ) # Absolute name.
27887 ac_srcdir
=$srcdir$ac_dir_suffix;
27888 ac_top_srcdir
=$srcdir
27889 ac_abs_top_srcdir
=$srcdir ;;
27890 *) # Relative name.
27891 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
27892 ac_top_srcdir
=$ac_top_build_prefix$srcdir
27893 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
27895 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
27905 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
27906 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
27908 ac_MKDIR_P
=$MKDIR_P
27910 [\\/$
]* | ?
:[\\/]* ) ;;
27911 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
27915 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27916 # If the template does not know about datarootdir, expand it.
27917 # FIXME: This hack should be removed a few years after 2.60.
27918 ac_datarootdir_hack
=; ac_datarootdir_seen
=
27929 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
27930 *datarootdir
*) ac_datarootdir_seen
=yes;;
27931 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
27932 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27933 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27935 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27936 ac_datarootdir_hack='
27937 s&@datadir@&$datadir&g
27938 s&@docdir@&$docdir&g
27939 s&@infodir@&$infodir&g
27940 s&@localedir@&$localedir&g
27941 s&@mandir@&$mandir&g
27942 s&\\\${datarootdir}&$datarootdir&g' ;;
27946 # Neutralize VPATH when `$srcdir' = `.'.
27947 # Shell code in configure.ac might set extrasub.
27948 # FIXME: do we really want to maintain this feature?
27949 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27950 ac_sed_extra="$ac_vpsub
27953 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27955 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
27956 s|@configure_input@|
$ac_sed_conf_input|
;t t
27957 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
27958 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
27959 s
&@srcdir@
&$ac_srcdir&;t t
27960 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
27961 s
&@top_srcdir@
&$ac_top_srcdir&;t t
27962 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
27963 s
&@builddir@
&$ac_builddir&;t t
27964 s
&@abs_builddir@
&$ac_abs_builddir&;t t
27965 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
27966 s
&@INSTALL@
&$ac_INSTALL&;t t
27967 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
27968 $ac_datarootdir_hack
27970 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
27971 if $ac_cs_awk_getline; then
27972 $AWK -f "$tmp/subs.
awk"
27974 $AWK -f "$tmp/subs.
awk" | $SHELL
27976 || as_fn_error "could not create
$ac_file" "$LINENO" 5
27978 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27979 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
27980 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
27981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
27982 which seems to be undefined. Please make sure it is defined." >&5
27983 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
27984 which seems to be undefined. Please make sure it is defined." >&2;}
27988 -) cat "$tmp/out" && rm -f "$tmp/out";;
27989 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
27991 || as_fn_error "could not create $ac_file" "$LINENO" 5
27997 if test x"$ac_file" != x-; then
27999 $as_echo "/* $configure_input */" \
28000 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
28001 } >"$tmp/config.h" \
28002 || as_fn_error "could not create $ac_file" "$LINENO" 5
28003 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
28004 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
28005 $as_echo "$as_me: $ac_file is unchanged" >&6;}
28008 mv "$tmp/config.h" "$ac_file" \
28009 || as_fn_error "could not create $ac_file" "$LINENO" 5
28012 $as_echo "/* $configure_input */" \
28013 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
28014 || as_fn_error "could not create -" "$LINENO" 5
28016 # Compute "$ac_file"'s index
in $config_headers.
28019 for _am_header
in $config_headers :; do
28020 case $_am_header in
28021 $_am_arg |
$_am_arg:* )
28024 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
28027 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
28028 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28029 X"$_am_arg" : 'X\(//\)[^/]' \| \
28030 X"$_am_arg" : 'X\(//\)$' \| \
28031 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
28032 $as_echo X"$_am_arg" |
28033 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28037 /^X\(\/\/\)[^/].*/{
28049 s/.*/./; q'`/stamp-h
$_am_stamp_count
28052 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
28053 $as_echo "$as_me: executing $ac_file commands" >&6;}
28058 case $ac_file$ac_mode in
28059 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
28060 # Autoconf 2.62 quotes --file arguments for eval, but not when files
28061 # are listed without --file. Let's play safe and only enable the eval
28062 # if we detect the quoting.
28063 case $CONFIG_FILES in
28064 *\'*) eval set x
"$CONFIG_FILES" ;;
28065 *) set x
$CONFIG_FILES ;;
28070 # Strip MF so we end up with the name of the file.
28071 mf
=`echo "$mf" | sed -e 's/:.*$//'`
28072 # Check whether this is an Automake generated Makefile or not.
28073 # We used to match only the files named `Makefile.in', but
28074 # some people rename them; so instead we look at the file content.
28075 # Grep'ing the first line is not enough: some people post-process
28076 # each Makefile.in and add a new line on top of each file to say so.
28077 # Grep'ing the whole file is not good either: AIX grep has a line
28078 # limit of 2048, but all sed's we know have understand at least 4000.
28079 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
28080 dirpart
=`$as_dirname -- "$mf" ||
28081 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28082 X"$mf" : 'X\(//\)[^/]' \| \
28083 X"$mf" : 'X\(//\)$' \| \
28084 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
28086 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28090 /^X\(\/\/\)[^/].*/{
28106 # Extract the definition of DEPDIR, am__include, and am__quote
28107 # from the Makefile without running `make'.
28108 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
28109 test -z "$DEPDIR" && continue
28110 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
28111 test -z "am__include" && continue
28112 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
28113 # When using ansi2knr, U may be empty or an underscore; expand it
28114 U
=`sed -n 's/^U = //p' < "$mf"`
28115 # Find all dependency output files, they are included files with
28116 # $(DEPDIR) in their names. We invoke sed twice because it is the
28117 # simplest approach to changing $(DEPDIR) to its actual value in the
28119 for file in `sed -n "
28120 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
28121 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
28122 # Make sure the directory exists.
28123 test -f "$dirpart/$file" && continue
28124 fdir
=`$as_dirname -- "$file" ||
28125 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28126 X"$file" : 'X\(//\)[^/]' \| \
28127 X"$file" : 'X\(//\)$' \| \
28128 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
28129 $as_echo X"$file" |
28130 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28134 /^X\(\/\/\)[^/].*/{
28147 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
28148 # echo "creating $dirpart/$file"
28149 echo '# dummy' > "$dirpart/$file"
28155 for dir
in etc lisp
; do
28156 test -d ${dir} || mkdir
${dir}
28160 echo creating src
/epaths.h
28161 ${MAKE-make} MAKEFILE_NAME
=do-not-make-Makefile epaths-force
28164 if test ! -f src
/.gdbinit
&& test -f "$srcdir/src/.gdbinit"; then
28165 echo creating src
/.gdbinit
28166 echo "source $srcdir/src/.gdbinit" > src
/.gdbinit
28176 ac_clean_files
=$ac_clean_files_save
28178 test $ac_write_fail = 0 ||
28179 as_fn_error
"write failure creating $CONFIG_STATUS" "$LINENO" 5
28182 # configure is writing to config.log, and then calls config.status.
28183 # config.status does its own redirection, appending to config.log.
28184 # Unfortunately, on DOS this fails, as config.log is still kept open
28185 # by configure, so config.status won't be able to write to it; its
28186 # output is simply discarded. So we exec the FD to /dev/null,
28187 # effectively closing config.log, so it can be properly (re)opened and
28188 # appended to by config.status. When coming back to configure, we
28189 # need to make the FD available again.
28190 if test "$no_create" != yes; then
28192 ac_config_status_args
=
28193 test "$silent" = yes &&
28194 ac_config_status_args
="$ac_config_status_args --quiet"
28196 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
28198 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28199 # would make configure fail if this is the last instruction.
28200 $ac_cs_success || as_fn_exit $?
28202 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
28203 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
28204 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}